#endif
#include <wx/notebook.h>
#include <wx/splitter.h>
+#include <wx/imaglist.h>
#ifdef __WXMSW__
#include <wx/msw/taskbar.h>
#endif
void SetTextValue(const wxString& str);
wxFont& GetFont();
void SetFont(wxFont& f);
- wxColour& GetTextColour();
+ wxColour GetTextColour();
void SetTextColour(const wxColour& colour);
- wxColour& GetBackgroundColour();
+ wxColour GetBackgroundColour();
void SetBackgroundColour(const wxColour& colour);
wxBrush& GetBackgroundBrush();
int GetAlignment();
class wxGrid : public wxPanel {
public:
wxGrid(wxWindow* parent, wxWindowID id,
- const wxPoint& pos=wxPyDefaultPosition,
- const wxSize& size=wxPyDefaultSize,
+ const wxPoint& pos=wxDefaultPosition,
+ const wxSize& size=wxDefaultSize,
long style=0,
char* name="grid");
wxGridCell* GetCell(int row, int col);
int GetCellAlignment(int row, int col);
%name(GetDefCellAlignment)int GetCellAlignment();
- wxColour& GetCellBackgroundColour(int row, int col);
+ wxColour GetCellBackgroundColour(int row, int col);
%name(GetDefCellBackgroundColour) wxColour& GetCellBackgroundColour();
//wxGridCell *** GetCells();
return rows;
}
}
- wxColour& GetCellTextColour(int row, int col);
+ wxColour GetCellTextColour(int row, int col);
%name(GetDefCellTextColour)wxColour& GetCellTextColour();
wxFont& GetCellTextFont(int row, int col);
%name(GetDefCellTextFont)wxFont& GetCellTextFont();
bool GetEditable();
wxScrollBar * GetHorizScrollBar();
int GetLabelAlignment(int orientation);
- wxColour& GetLabelBackgroundColour();
+ wxColour GetLabelBackgroundColour();
int GetLabelSize(int orientation);
- wxColour& GetLabelTextColour();
+ wxColour GetLabelTextColour();
wxFont& GetLabelTextFont();
wxString& GetLabelValue(int orientation, int pos);
int GetRowHeight(int row);
//---------------------------------------------------------------------------
+enum {
+ /* notebook control event types */
+ wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
+ wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
+};
+
+
class wxNotebookEvent : public wxNotifyEvent {
public:
int GetSelection();
public:
wxNotebook(wxWindow *parent,
wxWindowID id,
- const wxPoint& pos = wxPyDefaultPosition,
- const wxSize& size = wxPyDefaultSize,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
long style = 0,
char* name = "notebook");
bool SetPageImage(int nPage, int nImage);
int GetRowCount();
- // LINK ERROR: void SetPageSize(const wxSize& size);
- // LINK ERROR: void SetPadding(const wxSize& padding);
+ void SetPageSize(const wxSize& size);
+ void SetPadding(const wxSize& padding);
bool DeletePage(int nPage);
bool RemovePage(int nPage);
bool DeleteAllPages();
const wxString& strText,
int bSelect = FALSE,
int imageId = -1);
-#ifdef __WXMSW__
bool InsertPage(int nPage,
/*wxNotebookPage*/ wxWindow *pPage,
const wxString& strText,
bool bSelect = FALSE,
int imageId = -1);
-#endif
/*wxNotebookPage*/ wxWindow *GetPage(int nPage);
%addmethods {
//---------------------------------------------------------------------------
+enum {
+ /* splitter window events */
+ wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
+ wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
+ wxEVT_COMMAND_SPLITTER_UNSPLIT,
+ wxEVT_COMMAND_SPLITTER_DOUBLECLICKED,
+};
+
+
enum
{
wxSPLIT_HORIZONTAL,
wxSPLIT_DRAG_NONE,
wxSPLIT_DRAG_DRAGGING,
wxSPLIT_DRAG_LEFT_DOWN
-
};
class wxSplitterWindow : public wxWindow {
public:
wxSplitterWindow(wxWindow* parent, wxWindowID id,
- const wxPoint& point = wxPyDefaultPosition,
- const wxSize& size = wxPyDefaultSize,
+ const wxPoint& point = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
long style=wxSP_3D|wxCLIP_CHILDREN,
char* name = "splitterWindow");
wxTaskBarIcon();
~wxTaskBarIcon();
+ // We still use the magic methods here since that is the way it is documented...
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)"
%pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP)"
bool SetIcon(const wxIcon& icon, const char* tooltip = "");
bool RemoveIcon(void);
bool PopupMenu(wxMenu *menu);
-
+ bool IsIconInstalled();
+ bool IsOK();
};
#endif