projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DrawCircle() added
[wxWidgets.git]
/
include
/
wx
/
gtk
/
notebook.h
diff --git
a/include/wx/gtk/notebook.h
b/include/wx/gtk/notebook.h
index d61603dd8fdaa9c32926e784f21bbd8085072ab5..a47a9b08d89fbf6d4e51336d5f484532f3d8b371 100644
(file)
--- a/
include/wx/gtk/notebook.h
+++ b/
include/wx/gtk/notebook.h
@@
-32,12
+32,12
@@
class wxNotebookPage;
// notebook events
// ----------------------------------------------------------------------------
// notebook events
// ----------------------------------------------------------------------------
-class wxNotebookEvent : public wx
Command
Event
+class wxNotebookEvent : public wx
Notify
Event
{
public:
wxNotebookEvent(wxEventType commandType = wxEVT_NULL, int id = 0,
int nSel = -1, int nOldSel = -1)
{
public:
wxNotebookEvent(wxEventType commandType = wxEVT_NULL, int id = 0,
int nSel = -1, int nOldSel = -1)
- : wx
Command
Event(commandType, id)
+ : wx
Notify
Event(commandType, id)
{
m_bAllow = TRUE;
m_nSel = nSel;
{
m_bAllow = TRUE;
m_nSel = nSel;
@@
-118,7
+118,7
@@
public:
// associate image list with a control
void SetImageList(wxImageList* imageList);
// get pointer (may be NULL) to the associated image list
// associate image list with a control
void SetImageList(wxImageList* imageList);
// get pointer (may be NULL) to the associated image list
- wxImageList
*
GetImageList() const { return m_imageList; }
+ wxImageList
*
GetImageList() const { return m_imageList; }
// sets/returns item's image index in the current image list
int GetPageImage(int nPage) const;
// sets/returns item's image index in the current image list
int GetPageImage(int nPage) const;
@@
-133,6
+133,8
@@
public:
void SetPageSize(const wxSize& size);
// set the padding between tabs (in pixels)
void SetPadding(const wxSize& padding);
void SetPageSize(const wxSize& size);
// set the padding between tabs (in pixels)
void SetPadding(const wxSize& padding);
+ // sets the size of the tabs (assumes all tabs are the same size)
+ void SetTabSize(const wxSize& sz);
// operations
// ----------
// operations
// ----------
@@
-146,20
+148,24
@@
public:
// don't delete it yourself). If bSelect, this page becomes active.
bool AddPage(wxWindow *pPage,
const wxString& strText,
// don't delete it yourself). If bSelect, this page becomes active.
bool AddPage(wxWindow *pPage,
const wxString& strText,
- bool
bS
elect = FALSE,
+ bool
s
elect = FALSE,
int imageId = -1);
int imageId = -1);
- //
@@@@
VZ: I don't know how to implement InsertPage()
+ //
TODO
VZ: I don't know how to implement InsertPage()
// get the panel which represents the given page
wxWindow *GetPage(int nPage) const;
// get the panel which represents the given page
wxWindow *GetPage(int nPage) const;
-
+ void OnNavigationKey(wxNavigationKeyEvent& event);
+
// implementation
// implementation
-
+
void SetConstraintSizes(bool recurse);
bool DoPhase(int phase);
void ApplyWidgetStyle();
void SetConstraintSizes(bool recurse);
bool DoPhase(int phase);
void ApplyWidgetStyle();
+ // report if window belongs to notebook
+ bool IsOwnGtkWindow( GdkWindow *window );
+
// common part of all ctors
void Init();
// common part of all ctors
void Init();
@@
-171,6
+177,7
@@
public:
size_t m_idHandler; // the change page handler id
DECLARE_DYNAMIC_CLASS(wxNotebook)
size_t m_idHandler; // the change page handler id
DECLARE_DYNAMIC_CLASS(wxNotebook)
+ DECLARE_EVENT_TABLE()
};
// ----------------------------------------------------------------------------
};
// ----------------------------------------------------------------------------