#include <NtbSheet.h>
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 |
NtbSheet contains all the sheet opened in the program it's derived from wxNotebook
Definition at line 9 of file NtbSheet.h.
|
Constructor.
Definition at line 26 of file NtbSheet.cpp. |
|
Actually change the name of the tab.
Definition at line 133 of file NtbSheet.cpp. References click_position. Referenced by MnuChangeNameClick(), and OnLeftDClick(). |
|
Return the pop-up menu of the object.
Definition at line 167 of file NtbSheet.cpp. References PopLista. Referenced by PnlObjTree::OnItemMenu(). |
|
Insert a new page in the tab.
Definition at line 121 of file NtbSheet.cpp. References pagen. Referenced by MainFrm::BtnNuovoFoglioClick1(), and OnLeftDClick(). |
|
Prompt an input box to change the name of the tab.
Definition at line 50 of file NtbSheet.cpp. References ChangeName(). |
|
Close all the tabs.
Definition at line 90 of file NtbSheet.cpp. |
|
Close all the tab except the one that has been clicked.
Definition at line 71 of file NtbSheet.cpp. References click_position. |
|
Close the clicked tab.
Definition at line 58 of file NtbSheet.cpp. References click_position. |
|
Add a new tab.
Definition at line 105 of file NtbSheet.cpp. References ChangeName(), click_position, and InsertPage(). |
|
Show the popup menu.
Definition at line 40 of file NtbSheet.cpp. References click_position, and PopLista. |
|
Index of the clicked tab.
Definition at line 67 of file NtbSheet.h. Referenced by ChangeName(), MnuCloseAllExceptThisClick(), MnuCloseClick(), PnlObjTree::OnItemMenu(), OnLeftDClick(), and OnRightDown(). |
|
Index of the last page clicked.
Definition at line 53 of file NtbSheet.h. Referenced by InsertPage(). |
|
right-click popup menu
Definition at line 56 of file NtbSheet.h. Referenced by GetPopUp(), and OnRightDown(). |