MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

NtbSheet Class Reference

Sheet container. More...

#include <NtbSheet.h>

List of all members.

Public Member Functions

wxMenu * GetPopUp ()
 Return the pop-up menu of the object.
 NtbSheet (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSIMPLE_BORDER, const wxString &name=_T("NtbSheet"))
 Constructor.
void InsertPage ()
 Insert a new page in the tab.

Public Attributes

int click_position
 Index of the clicked tab.

Private Member Functions

void OnRightDown (wxMouseEvent &event)
 Show the popup menu.
void OnLeftDClick (wxMouseEvent &event)
 Add a new tab.
void MnuChangeNameClick (wxCommandEvent &event)
 Prompt an input box to change the name of the tab.
void MnuCloseClick (wxCommandEvent &event)
 Close the clicked tab.
void MnuCloseAllExceptThisClick (wxCommandEvent &event)
 Close all the tab except the one that has been clicked.
void MnuCloseAllClick (wxCommandEvent &event)
 Close all the tabs.
void ChangeName ()
 Actually change the name of the tab.

Private Attributes

int pagen
 Index of the last page clicked.
wxMenu * PopLista
 right-click popup menu


Detailed Description

Sheet container.

NtbSheet contains all the sheet opened in the program it's derived from wxNotebook

Definition at line 9 of file NtbSheet.h.


Constructor & Destructor Documentation

NtbSheet::NtbSheet wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxSIMPLE_BORDER,
const wxString &  name = _T("NtbSheet")
 

Constructor.

Definition at line 26 of file NtbSheet.cpp.


Member Function Documentation

void NtbSheet::ChangeName  )  [private]
 

Actually change the name of the tab.

See also:
MnuChangeNameClick()

Definition at line 133 of file NtbSheet.cpp.

References click_position.

Referenced by MnuChangeNameClick(), and OnLeftDClick().

wxMenu * NtbSheet::GetPopUp  ) 
 

Return the pop-up menu of the object.

Returns:
the popoup menu

Definition at line 167 of file NtbSheet.cpp.

References PopLista.

Referenced by PnlObjTree::OnItemMenu().

void NtbSheet::InsertPage  ) 
 

Insert a new page in the tab.

Definition at line 121 of file NtbSheet.cpp.

References pagen.

Referenced by MainFrm::BtnNuovoFoglioClick1(), and OnLeftDClick().

void NtbSheet::MnuChangeNameClick wxCommandEvent &  event  )  [private]
 

Prompt an input box to change the name of the tab.

See also:
ChangeName()

Definition at line 50 of file NtbSheet.cpp.

References ChangeName().

void NtbSheet::MnuCloseAllClick wxCommandEvent &  event  )  [private]
 

Close all the tabs.

See also:
MnuCloseClick(), MnuCloseAllExceptThisClick()

Definition at line 90 of file NtbSheet.cpp.

void NtbSheet::MnuCloseAllExceptThisClick wxCommandEvent &  event  )  [private]
 

Close all the tab except the one that has been clicked.

See also:
MnuCloseClick(), MnuCloseAllClick()

Definition at line 71 of file NtbSheet.cpp.

References click_position.

void NtbSheet::MnuCloseClick wxCommandEvent &  event  )  [private]
 

Close the clicked tab.

See also:
MnuCloseAllClick(), MnuCloseAllExceptThisClick()

Definition at line 58 of file NtbSheet.cpp.

References click_position.

void NtbSheet::OnLeftDClick wxMouseEvent &  event  )  [private]
 

Add a new tab.

Definition at line 105 of file NtbSheet.cpp.

References ChangeName(), click_position, and InsertPage().

void NtbSheet::OnRightDown wxMouseEvent &  event  )  [private]
 

Show the popup menu.

Definition at line 40 of file NtbSheet.cpp.

References click_position, and PopLista.


Member Data Documentation

int NtbSheet::click_position
 

Index of the clicked tab.

Definition at line 67 of file NtbSheet.h.

Referenced by ChangeName(), MnuCloseAllExceptThisClick(), MnuCloseClick(), PnlObjTree::OnItemMenu(), OnLeftDClick(), and OnRightDown().

int NtbSheet::pagen [private]
 

Index of the last page clicked.

Definition at line 53 of file NtbSheet.h.

Referenced by InsertPage().

wxMenu* NtbSheet::PopLista [private]
 

right-click popup menu

Definition at line 56 of file NtbSheet.h.

Referenced by GetPopUp(), and OnRightDown().


The documentation for this class was generated from the following files:

 

SourceForge Logo