removed wxABI_TESTS, they're irrelvant in 2.9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,8 +45,8 @@ enum wxAuiNotebookOption
|
|||||||
wxAUI_NB_CLOSE_BUTTON = 1 << 10,
|
wxAUI_NB_CLOSE_BUTTON = 1 << 10,
|
||||||
wxAUI_NB_CLOSE_ON_ACTIVE_TAB = 1 << 11,
|
wxAUI_NB_CLOSE_ON_ACTIVE_TAB = 1 << 11,
|
||||||
wxAUI_NB_CLOSE_ON_ALL_TABS = 1 << 12,
|
wxAUI_NB_CLOSE_ON_ALL_TABS = 1 << 12,
|
||||||
|
|
||||||
|
|
||||||
wxAUI_NB_DEFAULT_STYLE = wxAUI_NB_TOP |
|
wxAUI_NB_DEFAULT_STYLE = wxAUI_NB_TOP |
|
||||||
wxAUI_NB_TAB_SPLIT |
|
wxAUI_NB_TAB_SPLIT |
|
||||||
wxAUI_NB_TAB_MOVE |
|
wxAUI_NB_TAB_MOVE |
|
||||||
@@ -82,10 +82,10 @@ public:
|
|||||||
|
|
||||||
void SetSelection(int s) { selection = s; m_commandInt = s; }
|
void SetSelection(int s) { selection = s; m_commandInt = s; }
|
||||||
int GetSelection() const { return selection; }
|
int GetSelection() const { return selection; }
|
||||||
|
|
||||||
void SetOldSelection(int s) { old_selection = s; }
|
void SetOldSelection(int s) { old_selection = s; }
|
||||||
int GetOldSelection() const { return old_selection; }
|
int GetOldSelection() const { return old_selection; }
|
||||||
|
|
||||||
void SetDragSource(wxAuiNotebook* s) { drag_source = s; }
|
void SetDragSource(wxAuiNotebook* s) { drag_source = s; }
|
||||||
wxAuiNotebook* GetDragSource() const { return drag_source; }
|
wxAuiNotebook* GetDragSource() const { return drag_source; }
|
||||||
|
|
||||||
@@ -138,13 +138,13 @@ public:
|
|||||||
|
|
||||||
wxAuiTabArt() { }
|
wxAuiTabArt() { }
|
||||||
virtual ~wxAuiTabArt() { }
|
virtual ~wxAuiTabArt() { }
|
||||||
|
|
||||||
virtual wxAuiTabArt* Clone() = 0;
|
virtual wxAuiTabArt* Clone() = 0;
|
||||||
virtual void SetFlags(unsigned int flags) = 0;
|
virtual void SetFlags(unsigned int flags) = 0;
|
||||||
|
|
||||||
virtual void SetSizingInfo(const wxSize& tab_ctrl_size,
|
virtual void SetSizingInfo(const wxSize& tab_ctrl_size,
|
||||||
size_t tab_count) = 0;
|
size_t tab_count) = 0;
|
||||||
|
|
||||||
virtual void SetNormalFont(const wxFont& font) = 0;
|
virtual void SetNormalFont(const wxFont& font) = 0;
|
||||||
virtual void SetSelectedFont(const wxFont& font) = 0;
|
virtual void SetSelectedFont(const wxFont& font) = 0;
|
||||||
virtual void SetMeasuringFont(const wxFont& font) = 0;
|
virtual void SetMeasuringFont(const wxFont& font) = 0;
|
||||||
@@ -161,8 +161,8 @@ public:
|
|||||||
int close_button_state,
|
int close_button_state,
|
||||||
wxRect* out_tab_rect,
|
wxRect* out_tab_rect,
|
||||||
wxRect* out_button_rect,
|
wxRect* out_button_rect,
|
||||||
int* x_extent) = 0;
|
int* x_extent) = 0;
|
||||||
|
|
||||||
virtual void DrawButton(
|
virtual void DrawButton(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
@@ -171,7 +171,7 @@ public:
|
|||||||
int button_state,
|
int button_state,
|
||||||
int orientation,
|
int orientation,
|
||||||
wxRect* out_rect) = 0;
|
wxRect* out_rect) = 0;
|
||||||
|
|
||||||
virtual wxSize GetTabSize(
|
virtual wxSize GetTabSize(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
@@ -180,18 +180,18 @@ public:
|
|||||||
bool active,
|
bool active,
|
||||||
int close_button_state,
|
int close_button_state,
|
||||||
int* x_extent) = 0;
|
int* x_extent) = 0;
|
||||||
|
|
||||||
virtual int ShowDropDown(
|
virtual int ShowDropDown(
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiNotebookPageArray& items,
|
const wxAuiNotebookPageArray& items,
|
||||||
int active_idx) = 0;
|
int active_idx) = 0;
|
||||||
|
|
||||||
virtual int GetIndentSize() = 0;
|
virtual int GetIndentSize() = 0;
|
||||||
|
|
||||||
virtual int GetBestTabCtrlSize(
|
virtual int GetBestTabCtrlSize(
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiNotebookPageArray& pages,
|
const wxAuiNotebookPageArray& pages,
|
||||||
const wxSize& required_bmp_size) = 0;
|
const wxSize& required_bmp_size) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ public:
|
|||||||
|
|
||||||
wxAuiDefaultTabArt();
|
wxAuiDefaultTabArt();
|
||||||
virtual ~wxAuiDefaultTabArt();
|
virtual ~wxAuiDefaultTabArt();
|
||||||
|
|
||||||
wxAuiTabArt* Clone();
|
wxAuiTabArt* Clone();
|
||||||
void SetFlags(unsigned int flags);
|
void SetFlags(unsigned int flags);
|
||||||
void SetSizingInfo(const wxSize& tab_ctrl_size,
|
void SetSizingInfo(const wxSize& tab_ctrl_size,
|
||||||
@@ -216,7 +216,7 @@ public:
|
|||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect);
|
const wxRect& rect);
|
||||||
|
|
||||||
void DrawTab(wxDC& dc,
|
void DrawTab(wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiNotebookPage& pane,
|
const wxAuiNotebookPage& pane,
|
||||||
@@ -225,7 +225,7 @@ public:
|
|||||||
wxRect* out_tab_rect,
|
wxRect* out_tab_rect,
|
||||||
wxRect* out_button_rect,
|
wxRect* out_button_rect,
|
||||||
int* x_extent);
|
int* x_extent);
|
||||||
|
|
||||||
void DrawButton(
|
void DrawButton(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
@@ -234,9 +234,9 @@ public:
|
|||||||
int button_state,
|
int button_state,
|
||||||
int orientation,
|
int orientation,
|
||||||
wxRect* out_rect);
|
wxRect* out_rect);
|
||||||
|
|
||||||
int GetIndentSize();
|
int GetIndentSize();
|
||||||
|
|
||||||
wxSize GetTabSize(
|
wxSize GetTabSize(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
@@ -245,7 +245,7 @@ public:
|
|||||||
bool active,
|
bool active,
|
||||||
int close_button_state,
|
int close_button_state,
|
||||||
int* x_extent);
|
int* x_extent);
|
||||||
|
|
||||||
int ShowDropDown(
|
int ShowDropDown(
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiNotebookPageArray& items,
|
const wxAuiNotebookPageArray& items,
|
||||||
@@ -253,7 +253,7 @@ public:
|
|||||||
|
|
||||||
int GetBestTabCtrlSize(wxWindow* wnd,
|
int GetBestTabCtrlSize(wxWindow* wnd,
|
||||||
const wxAuiNotebookPageArray& pages,
|
const wxAuiNotebookPageArray& pages,
|
||||||
const wxSize& required_bmp_size);
|
const wxSize& required_bmp_size);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@@ -272,7 +272,7 @@ protected:
|
|||||||
wxBitmap m_disabled_right_bmp;
|
wxBitmap m_disabled_right_bmp;
|
||||||
wxBitmap m_active_windowlist_bmp;
|
wxBitmap m_active_windowlist_bmp;
|
||||||
wxBitmap m_disabled_windowlist_bmp;
|
wxBitmap m_disabled_windowlist_bmp;
|
||||||
|
|
||||||
int m_fixed_tab_width;
|
int m_fixed_tab_width;
|
||||||
int m_tab_ctrl_height;
|
int m_tab_ctrl_height;
|
||||||
unsigned int m_flags;
|
unsigned int m_flags;
|
||||||
@@ -286,7 +286,7 @@ public:
|
|||||||
|
|
||||||
wxAuiSimpleTabArt();
|
wxAuiSimpleTabArt();
|
||||||
virtual ~wxAuiSimpleTabArt();
|
virtual ~wxAuiSimpleTabArt();
|
||||||
|
|
||||||
wxAuiTabArt* Clone();
|
wxAuiTabArt* Clone();
|
||||||
void SetFlags(unsigned int flags);
|
void SetFlags(unsigned int flags);
|
||||||
|
|
||||||
@@ -301,7 +301,7 @@ public:
|
|||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect);
|
const wxRect& rect);
|
||||||
|
|
||||||
void DrawTab(wxDC& dc,
|
void DrawTab(wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiNotebookPage& pane,
|
const wxAuiNotebookPage& pane,
|
||||||
@@ -310,7 +310,7 @@ public:
|
|||||||
wxRect* out_tab_rect,
|
wxRect* out_tab_rect,
|
||||||
wxRect* out_button_rect,
|
wxRect* out_button_rect,
|
||||||
int* x_extent);
|
int* x_extent);
|
||||||
|
|
||||||
void DrawButton(
|
void DrawButton(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
@@ -319,9 +319,9 @@ public:
|
|||||||
int button_state,
|
int button_state,
|
||||||
int orientation,
|
int orientation,
|
||||||
wxRect* out_rect);
|
wxRect* out_rect);
|
||||||
|
|
||||||
int GetIndentSize();
|
int GetIndentSize();
|
||||||
|
|
||||||
wxSize GetTabSize(
|
wxSize GetTabSize(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
@@ -330,7 +330,7 @@ public:
|
|||||||
bool active,
|
bool active,
|
||||||
int close_button_state,
|
int close_button_state,
|
||||||
int* x_extent);
|
int* x_extent);
|
||||||
|
|
||||||
int ShowDropDown(
|
int ShowDropDown(
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiNotebookPageArray& items,
|
const wxAuiNotebookPageArray& items,
|
||||||
@@ -338,7 +338,7 @@ public:
|
|||||||
|
|
||||||
int GetBestTabCtrlSize(wxWindow* wnd,
|
int GetBestTabCtrlSize(wxWindow* wnd,
|
||||||
const wxAuiNotebookPageArray& pages,
|
const wxAuiNotebookPageArray& pages,
|
||||||
const wxSize& required_bmp_size);
|
const wxSize& required_bmp_size);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@@ -358,7 +358,7 @@ protected:
|
|||||||
wxBitmap m_disabled_right_bmp;
|
wxBitmap m_disabled_right_bmp;
|
||||||
wxBitmap m_active_windowlist_bmp;
|
wxBitmap m_active_windowlist_bmp;
|
||||||
wxBitmap m_disabled_windowlist_bmp;
|
wxBitmap m_disabled_windowlist_bmp;
|
||||||
|
|
||||||
int m_fixed_tab_width;
|
int m_fixed_tab_width;
|
||||||
unsigned int m_flags;
|
unsigned int m_flags;
|
||||||
};
|
};
|
||||||
@@ -405,7 +405,7 @@ public:
|
|||||||
void SetMeasuringFont(const wxFont& measuring_font);
|
void SetMeasuringFont(const wxFont& measuring_font);
|
||||||
void DoShowHide();
|
void DoShowHide();
|
||||||
void SetRect(const wxRect& rect);
|
void SetRect(const wxRect& rect);
|
||||||
|
|
||||||
void RemoveButton(int id);
|
void RemoveButton(int id);
|
||||||
void AddButton(int id,
|
void AddButton(int id,
|
||||||
int location,
|
int location,
|
||||||
@@ -414,7 +414,7 @@ public:
|
|||||||
|
|
||||||
size_t GetTabOffset() const;
|
size_t GetTabOffset() const;
|
||||||
void SetTabOffset(size_t offset);
|
void SetTabOffset(size_t offset);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual void Render(wxDC* dc, wxWindow* wnd);
|
virtual void Render(wxDC* dc, wxWindow* wnd);
|
||||||
@@ -444,7 +444,7 @@ public:
|
|||||||
long style = 0);
|
long style = 0);
|
||||||
|
|
||||||
~wxAuiTabCtrl();
|
~wxAuiTabCtrl();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void OnPaint(wxPaintEvent& evt);
|
void OnPaint(wxPaintEvent& evt);
|
||||||
@@ -456,7 +456,7 @@ protected:
|
|||||||
void OnLeaveWindow(wxMouseEvent& evt);
|
void OnLeaveWindow(wxMouseEvent& evt);
|
||||||
void OnButton(wxAuiNotebookEvent& evt);
|
void OnButton(wxAuiNotebookEvent& evt);
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
wxPoint m_click_pt;
|
wxPoint m_click_pt;
|
||||||
@@ -494,14 +494,14 @@ public:
|
|||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0);
|
long style = 0);
|
||||||
|
|
||||||
void SetWindowStyleFlag(long style);
|
void SetWindowStyleFlag(long style);
|
||||||
void SetArtProvider(wxAuiTabArt* art);
|
void SetArtProvider(wxAuiTabArt* art);
|
||||||
wxAuiTabArt* GetArtProvider() const;
|
wxAuiTabArt* GetArtProvider() const;
|
||||||
|
|
||||||
virtual void SetUniformBitmapSize(const wxSize& size);
|
virtual void SetUniformBitmapSize(const wxSize& size);
|
||||||
virtual void SetTabCtrlHeight(int height);
|
virtual void SetTabCtrlHeight(int height);
|
||||||
|
|
||||||
bool AddPage(wxWindow* page,
|
bool AddPage(wxWindow* page,
|
||||||
const wxString& caption,
|
const wxString& caption,
|
||||||
bool select = false,
|
bool select = false,
|
||||||
@@ -515,7 +515,7 @@ public:
|
|||||||
|
|
||||||
bool DeletePage(size_t page);
|
bool DeletePage(size_t page);
|
||||||
bool RemovePage(size_t page);
|
bool RemovePage(size_t page);
|
||||||
|
|
||||||
size_t GetPageCount() const;
|
size_t GetPageCount() const;
|
||||||
wxWindow* GetPage(size_t page_idx) const;
|
wxWindow* GetPage(size_t page_idx) const;
|
||||||
int GetPageIndex(wxWindow* page_wnd) const;
|
int GetPageIndex(wxWindow* page_wnd) const;
|
||||||
@@ -531,9 +531,7 @@ public:
|
|||||||
|
|
||||||
virtual void Split(size_t page, int direction);
|
virtual void Split(size_t page, int direction);
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20801
|
|
||||||
const wxAuiManager& GetAuiManager() const { return m_mgr; }
|
const wxAuiManager& GetAuiManager() const { return m_mgr; }
|
||||||
#endif
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@@ -541,7 +539,7 @@ protected:
|
|||||||
virtual void UpdateTabCtrlHeight();
|
virtual void UpdateTabCtrlHeight();
|
||||||
virtual int CalculateTabCtrlHeight();
|
virtual int CalculateTabCtrlHeight();
|
||||||
virtual wxSize CalculateNewSplitSize();
|
virtual wxSize CalculateNewSplitSize();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void DoSizing();
|
void DoSizing();
|
||||||
@@ -552,7 +550,7 @@ protected:
|
|||||||
bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx);
|
bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx);
|
||||||
void RemoveEmptyTabFrames();
|
void RemoveEmptyTabFrames();
|
||||||
void UpdateHintWindowSize();
|
void UpdateHintWindowSize();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void OnChildFocus(wxChildFocusEvent& evt);
|
void OnChildFocus(wxChildFocusEvent& evt);
|
||||||
@@ -563,7 +561,7 @@ protected:
|
|||||||
void OnTabDragMotion(wxCommandEvent& evt);
|
void OnTabDragMotion(wxCommandEvent& evt);
|
||||||
void OnTabEndDrag(wxCommandEvent& evt);
|
void OnTabEndDrag(wxCommandEvent& evt);
|
||||||
void OnTabButton(wxCommandEvent& evt);
|
void OnTabButton(wxCommandEvent& evt);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
wxAuiManager m_mgr;
|
wxAuiManager m_mgr;
|
||||||
@@ -577,7 +575,7 @@ protected:
|
|||||||
wxFont m_selected_font;
|
wxFont m_selected_font;
|
||||||
wxFont m_normal_font;
|
wxFont m_normal_font;
|
||||||
int m_tab_ctrl_height;
|
int m_tab_ctrl_height;
|
||||||
|
|
||||||
int m_last_drag_x;
|
int m_last_drag_x;
|
||||||
unsigned int m_flags;
|
unsigned int m_flags;
|
||||||
|
|
||||||
@@ -609,7 +607,7 @@ typedef void (wxEvtHandler::*wxAuiNotebookEventFunction)(wxAuiNotebookEvent&);
|
|||||||
|
|
||||||
#define wxAuiNotebookEventHandler(func) \
|
#define wxAuiNotebookEventHandler(func) \
|
||||||
(wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxAuiNotebookEventFunction, &func)
|
(wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxAuiNotebookEventFunction, &func)
|
||||||
|
|
||||||
#define EVT_AUINOTEBOOK_PAGE_CLOSE(winid, fn) \
|
#define EVT_AUINOTEBOOK_PAGE_CLOSE(winid, fn) \
|
||||||
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, winid, wxAuiNotebookEventHandler(fn))
|
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, winid, wxAuiNotebookEventHandler(fn))
|
||||||
#define EVT_AUINOTEBOOK_PAGE_CHANGED(winid, fn) \
|
#define EVT_AUINOTEBOOK_PAGE_CHANGED(winid, fn) \
|
||||||
|
@@ -639,11 +639,9 @@ public:
|
|||||||
// resets time to 00:00:00, doesn't change the date
|
// resets time to 00:00:00, doesn't change the date
|
||||||
wxDateTime& ResetTime();
|
wxDateTime& ResetTime();
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20802
|
|
||||||
// get the date part of this object only, i.e. the object which has the
|
// get the date part of this object only, i.e. the object which has the
|
||||||
// same date as this one but time of 00:00:00
|
// same date as this one but time of 00:00:00
|
||||||
wxDateTime GetDateOnly() const;
|
wxDateTime GetDateOnly() const;
|
||||||
#endif // wxABI 2.8.1+
|
|
||||||
|
|
||||||
// the following functions don't change the values of the other
|
// the following functions don't change the values of the other
|
||||||
// fields, i.e. SetMinute() won't change either hour or seconds value
|
// fields, i.e. SetMinute() won't change either hour or seconds value
|
||||||
|
@@ -594,11 +594,9 @@ public:
|
|||||||
|
|
||||||
const wxList& GetMenus() const { return m_fileMenus; }
|
const wxList& GetMenus() const { return m_fileMenus; }
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20802
|
|
||||||
// Set/get base id
|
// Set/get base id
|
||||||
void SetBaseId(wxWindowID baseId) { m_idBase = baseId; }
|
void SetBaseId(wxWindowID baseId) { m_idBase = baseId; }
|
||||||
wxWindowID GetBaseId() const { return m_idBase; }
|
wxWindowID GetBaseId() const { return m_idBase; }
|
||||||
#endif // wxABI 2.8.2+
|
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_6
|
#if WXWIN_COMPATIBILITY_2_6
|
||||||
// deprecated, use GetCount() instead
|
// deprecated, use GetCount() instead
|
||||||
|
@@ -60,11 +60,9 @@ public:
|
|||||||
virtual void ShowCancelButton( bool show );
|
virtual void ShowCancelButton( bool show );
|
||||||
virtual bool IsCancelButtonVisible() const;
|
virtual bool IsCancelButtonVisible() const;
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20802
|
|
||||||
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
||||||
void SetDescriptiveText(const wxString& text);
|
void SetDescriptiveText(const wxString& text);
|
||||||
wxString GetDescriptiveText() const;
|
wxString GetDescriptiveText() const;
|
||||||
#endif
|
|
||||||
|
|
||||||
// accessors
|
// accessors
|
||||||
// ---------
|
// ---------
|
||||||
|
@@ -108,10 +108,10 @@ class WXDLLEXPORT wxListCtrl: public wxControl
|
|||||||
|
|
||||||
// Sets the item text
|
// Sets the item text
|
||||||
void SetItemText(long item, const wxString& str) ;
|
void SetItemText(long item, const wxString& str) ;
|
||||||
|
|
||||||
void SetItemTextColour(long item, const wxColour& colour) ;
|
void SetItemTextColour(long item, const wxColour& colour) ;
|
||||||
wxColour GetItemTextColour(long item) const;
|
wxColour GetItemTextColour(long item) const;
|
||||||
|
|
||||||
void SetItemBackgroundColour(long item, const wxColour& colour) ;
|
void SetItemBackgroundColour(long item, const wxColour& colour) ;
|
||||||
wxColour GetItemBackgroundColour(long item) const;
|
wxColour GetItemBackgroundColour(long item) const;
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl
|
|||||||
|
|
||||||
// Gets the number of selected items in the list control
|
// Gets the number of selected items in the list control
|
||||||
int GetSelectedItemCount() const;
|
int GetSelectedItemCount() const;
|
||||||
|
|
||||||
wxRect GetViewRect() const;
|
wxRect GetViewRect() const;
|
||||||
|
|
||||||
// Gets the text colour of the listview
|
// Gets the text colour of the listview
|
||||||
@@ -316,13 +316,13 @@ class WXDLLEXPORT wxListCtrl: public wxControl
|
|||||||
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
|
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
|
||||||
long GetCompareFuncData() { return m_compareFuncData; };
|
long GetCompareFuncData() { return m_compareFuncData; };
|
||||||
|
|
||||||
|
|
||||||
// public overrides needed for pimpl approach
|
// public overrides needed for pimpl approach
|
||||||
virtual bool SetFont(const wxFont& font);
|
virtual bool SetFont(const wxFont& font);
|
||||||
virtual bool SetForegroundColour(const wxColour& colour);
|
virtual bool SetForegroundColour(const wxColour& colour);
|
||||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||||
virtual wxColour GetBackgroundColour();
|
virtual wxColour GetBackgroundColour();
|
||||||
|
|
||||||
// functions for editing/timer
|
// functions for editing/timer
|
||||||
void OnRenameTimer();
|
void OnRenameTimer();
|
||||||
bool OnRenameAccept(long itemEdit, const wxString& value);
|
bool OnRenameAccept(long itemEdit, const wxString& value);
|
||||||
@@ -331,33 +331,31 @@ class WXDLLEXPORT wxListCtrl: public wxControl
|
|||||||
void ChangeCurrent(long current);
|
void ChangeCurrent(long current);
|
||||||
void ResetCurrent() { ChangeCurrent((long)-1); }
|
void ResetCurrent() { ChangeCurrent((long)-1); }
|
||||||
bool HasCurrent() const { return m_current != (long)-1; }
|
bool HasCurrent() const { return m_current != (long)-1; }
|
||||||
|
|
||||||
void OnLeftDown(wxMouseEvent& event);
|
void OnLeftDown(wxMouseEvent& event);
|
||||||
void OnDblClick(wxMouseEvent& event);
|
void OnDblClick(wxMouseEvent& event);
|
||||||
|
|
||||||
void FinishEditing(wxTextCtrl *text)
|
void FinishEditing(wxTextCtrl *text)
|
||||||
{
|
{
|
||||||
delete text;
|
delete text;
|
||||||
m_textctrlWrapper = NULL;
|
m_textctrlWrapper = NULL;
|
||||||
SetFocus();
|
SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int GetScrollPos(int orient) const;
|
virtual int GetScrollPos(int orient) const;
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20801
|
|
||||||
void OnRightDown(wxMouseEvent& event);
|
void OnRightDown(wxMouseEvent& event);
|
||||||
void OnMiddleDown(wxMouseEvent& event);
|
void OnMiddleDown(wxMouseEvent& event);
|
||||||
void OnChar(wxKeyEvent& event);
|
void OnChar(wxKeyEvent& event);
|
||||||
virtual void SetFocus();
|
virtual void SetFocus();
|
||||||
void FireMouseEvent(wxEventType eventType, wxPoint position);
|
void FireMouseEvent(wxEventType eventType, wxPoint position);
|
||||||
#endif
|
|
||||||
|
|
||||||
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
||||||
virtual wxDropTarget* GetDropTarget() const;
|
virtual wxDropTarget* GetDropTarget() const;
|
||||||
|
|
||||||
// with CG, we need to get the context from an kEventControlDraw event
|
// with CG, we need to get the context from an kEventControlDraw event
|
||||||
// unfortunately, the DataBrowser callbacks don't provide the context
|
// unfortunately, the DataBrowser callbacks don't provide the context
|
||||||
// and we need it, so we need to set/remove it before and after draw
|
// and we need it, so we need to set/remove it before and after draw
|
||||||
// events so we can access it in the callbacks.
|
// events so we can access it in the callbacks.
|
||||||
void MacSetDrawingContext(void* context) { m_cgContext = context; }
|
void MacSetDrawingContext(void* context) { m_cgContext = context; }
|
||||||
void* MacGetDrawingContext() { return m_cgContext; }
|
void* MacGetDrawingContext() { return m_cgContext; }
|
||||||
@@ -376,23 +374,23 @@ protected:
|
|||||||
wxListCtrlRenameTimer *m_renameTimer;
|
wxListCtrlRenameTimer *m_renameTimer;
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
wxGenericListCtrl* m_genericImpl; // allow use of the generic impl.
|
wxGenericListCtrl* m_genericImpl; // allow use of the generic impl.
|
||||||
wxMacDataBrowserListCtrlControl* m_dbImpl;
|
wxMacDataBrowserListCtrlControl* m_dbImpl;
|
||||||
void* m_macListCtrlEventHandler;
|
void* m_macListCtrlEventHandler;
|
||||||
void* m_cgContext;
|
void* m_cgContext;
|
||||||
wxListCtrlCompare m_compareFunc;
|
wxListCtrlCompare m_compareFunc;
|
||||||
long m_compareFuncData;
|
long m_compareFuncData;
|
||||||
|
|
||||||
wxTextCtrl* m_textCtrl; // The control used for editing a label
|
wxTextCtrl* m_textCtrl; // The control used for editing a label
|
||||||
wxImageList * m_imageListNormal; // The image list for normal icons
|
wxImageList * m_imageListNormal; // The image list for normal icons
|
||||||
wxImageList * m_imageListSmall; // The image list for small icons
|
wxImageList * m_imageListSmall; // The image list for small icons
|
||||||
wxImageList * m_imageListState; // The image list state icons (not implemented yet)
|
wxImageList * m_imageListState; // The image list state icons (not implemented yet)
|
||||||
|
|
||||||
wxColumnList m_colsInfo; // for storing info about each column
|
wxColumnList m_colsInfo; // for storing info about each column
|
||||||
wxColour m_textColor;
|
wxColour m_textColor;
|
||||||
wxColour m_bgColor;
|
wxColour m_bgColor;
|
||||||
|
|
||||||
// keep track of whether or not we should delete the image list ourselves.
|
// keep track of whether or not we should delete the image list ourselves.
|
||||||
bool m_ownsImageListNormal,
|
bool m_ownsImageListNormal,
|
||||||
m_ownsImageListSmall,
|
m_ownsImageListSmall,
|
||||||
@@ -405,8 +403,8 @@ protected:
|
|||||||
// keep track of inserted/deleted columns
|
// keep track of inserted/deleted columns
|
||||||
|
|
||||||
int m_count; // for virtual lists, store item count
|
int m_count; // for virtual lists, store item count
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -53,11 +53,9 @@ public:
|
|||||||
virtual void ShowCancelButton( bool show );
|
virtual void ShowCancelButton( bool show );
|
||||||
virtual bool IsCancelButtonVisible() const;
|
virtual bool IsCancelButtonVisible() const;
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20802
|
|
||||||
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
||||||
void SetDescriptiveText(const wxString& text);
|
void SetDescriptiveText(const wxString& text);
|
||||||
wxString GetDescriptiveText() const;
|
wxString GetDescriptiveText() const;
|
||||||
#endif
|
|
||||||
|
|
||||||
virtual wxInt32 MacSearchFieldSearchHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
|
virtual wxInt32 MacSearchFieldSearchHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
|
||||||
virtual wxInt32 MacSearchFieldCancelHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
|
virtual wxInt32 MacSearchFieldCancelHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
|
||||||
|
@@ -191,12 +191,9 @@ public:
|
|||||||
wxFileOffset Tell(); //FIXME: This should be const
|
wxFileOffset Tell(); //FIXME: This should be const
|
||||||
wxFileOffset Length(); //FIXME: This should be const
|
wxFileOffset Length(); //FIXME: This should be const
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20601 /* 2.6.1+ only */
|
|
||||||
double GetPlaybackRate(); //All but MCI & GStreamer
|
double GetPlaybackRate(); //All but MCI & GStreamer
|
||||||
bool SetPlaybackRate(double dRate); //All but MCI & GStreamer
|
bool SetPlaybackRate(double dRate); //All but MCI & GStreamer
|
||||||
#endif
|
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20602 /* 2.6.2+ only */
|
|
||||||
bool Load(const wxURI& location);
|
bool Load(const wxURI& location);
|
||||||
bool Load(const wxURI& location, const wxURI& proxy);
|
bool Load(const wxURI& location, const wxURI& proxy);
|
||||||
|
|
||||||
@@ -214,7 +211,6 @@ public:
|
|||||||
{ return Load(wxURI(fileName)); }
|
{ return Load(wxURI(fileName)); }
|
||||||
bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy)
|
bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy)
|
||||||
{ return Load(wxURI(fileName), wxURI(proxy)); }
|
{ return Load(wxURI(fileName), wxURI(proxy)); }
|
||||||
#endif
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static wxClassInfo* NextBackend();
|
static wxClassInfo* NextBackend();
|
||||||
@@ -348,23 +344,19 @@ typedef void (wxEvtHandler::*wxMediaEventFunction)(wxMediaEvent&);
|
|||||||
#define EVT_MEDIA_FINISHED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_FINISHED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
#define EVT_MEDIA_FINISHED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_FINISHED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
||||||
#define EVT_MEDIA_STOP(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STOP, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
#define EVT_MEDIA_STOP(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STOP, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20602 /* 2.6.2+ only */
|
#define wxMEDIA_LOADED_ID 13002
|
||||||
# define wxMEDIA_LOADED_ID 13002
|
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_LOADED, wxMEDIA_LOADED_ID)
|
||||||
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_LOADED, wxMEDIA_LOADED_ID)
|
#define EVT_MEDIA_LOADED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_LOADED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
||||||
# define EVT_MEDIA_LOADED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_LOADED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20603 /* 2.6.3+ only */
|
#define wxMEDIA_STATECHANGED_ID 13003
|
||||||
# define wxMEDIA_STATECHANGED_ID 13003
|
#define wxMEDIA_PLAY_ID 13004
|
||||||
# define wxMEDIA_PLAY_ID 13004
|
#define wxMEDIA_PAUSE_ID 13005
|
||||||
# define wxMEDIA_PAUSE_ID 13005
|
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_STATECHANGED, wxMEDIA_STATECHANGED_ID)
|
||||||
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_STATECHANGED, wxMEDIA_STATECHANGED_ID)
|
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PLAY, wxMEDIA_PLAY_ID)
|
||||||
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PLAY, wxMEDIA_PLAY_ID)
|
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PAUSE, wxMEDIA_PAUSE_ID)
|
||||||
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PAUSE, wxMEDIA_PAUSE_ID)
|
#define EVT_MEDIA_STATECHANGED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STATECHANGED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
||||||
# define EVT_MEDIA_STATECHANGED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STATECHANGED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
#define EVT_MEDIA_PLAY(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PLAY, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
||||||
# define EVT_MEDIA_PLAY(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PLAY, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
#define EVT_MEDIA_PAUSE(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PAUSE, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
||||||
# define EVT_MEDIA_PAUSE(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PAUSE, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ),
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// common backend base class used by many other backends
|
// common backend base class used by many other backends
|
||||||
@@ -379,9 +371,7 @@ public:
|
|||||||
// notify that the movie playback is finished
|
// notify that the movie playback is finished
|
||||||
void QueueFinishEvent()
|
void QueueFinishEvent()
|
||||||
{
|
{
|
||||||
#if wxABI_VERSION >= 20603 /* 2.6.3+ only */
|
|
||||||
QueueEvent(wxEVT_MEDIA_STATECHANGED);
|
QueueEvent(wxEVT_MEDIA_STATECHANGED);
|
||||||
#endif
|
|
||||||
QueueEvent(wxEVT_MEDIA_FINISHED);
|
QueueEvent(wxEVT_MEDIA_FINISHED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -155,7 +155,6 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20802
|
|
||||||
// setters for the others flags
|
// setters for the others flags
|
||||||
wxSizerFlags& Shaped()
|
wxSizerFlags& Shaped()
|
||||||
{
|
{
|
||||||
@@ -170,7 +169,6 @@ public:
|
|||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
#endif // wx 2.8.2+
|
|
||||||
|
|
||||||
// accessors for wxSizer only
|
// accessors for wxSizer only
|
||||||
int GetProportion() const { return m_proportion; }
|
int GetProportion() const { return m_proportion; }
|
||||||
|
@@ -385,10 +385,8 @@ public:
|
|||||||
|
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
#if wxABI_VERSION >= 20802
|
|
||||||
// return true if the conversion could be initilized successfully
|
// return true if the conversion could be initilized successfully
|
||||||
bool IsOk() const;
|
bool IsOk() const;
|
||||||
#endif // wx 2.8.2+
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
|
@@ -172,10 +172,8 @@ public:
|
|||||||
virtual bool IsSelected(const wxTreeItemId& item) const = 0;
|
virtual bool IsSelected(const wxTreeItemId& item) const = 0;
|
||||||
// is item text in bold font?
|
// is item text in bold font?
|
||||||
virtual bool IsBold(const wxTreeItemId& item) const = 0;
|
virtual bool IsBold(const wxTreeItemId& item) const = 0;
|
||||||
#if wxABI_VERSION >= 20801
|
|
||||||
// is the control empty?
|
// is the control empty?
|
||||||
bool IsEmpty() const;
|
bool IsEmpty() const;
|
||||||
#endif // wxABI 2.8.1+
|
|
||||||
|
|
||||||
|
|
||||||
// number of children
|
// number of children
|
||||||
@@ -298,12 +296,10 @@ public:
|
|||||||
void ExpandAll();
|
void ExpandAll();
|
||||||
// collapse the item without removing its children
|
// collapse the item without removing its children
|
||||||
virtual void Collapse(const wxTreeItemId& item) = 0;
|
virtual void Collapse(const wxTreeItemId& item) = 0;
|
||||||
#if wxABI_VERSION >= 20801
|
|
||||||
// collapse the item and all its childs and thats childs
|
// collapse the item and all its childs and thats childs
|
||||||
void CollapseAllChildren(const wxTreeItemId& item);
|
void CollapseAllChildren(const wxTreeItemId& item);
|
||||||
// collapse all items
|
// collapse all items
|
||||||
void CollapseAll();
|
void CollapseAll();
|
||||||
#endif // wxABI 2.8.1+
|
|
||||||
// collapse the item and remove all children
|
// collapse the item and remove all children
|
||||||
virtual void CollapseAndReset(const wxTreeItemId& item) = 0;
|
virtual void CollapseAndReset(const wxTreeItemId& item) = 0;
|
||||||
// toggles the current state
|
// toggles the current state
|
||||||
|
Reference in New Issue
Block a user