Update wxWidgets to 3.1.0
From wxWidgets master 81570ae070b35c9d52de47b1f14897f3ff1a66c7. include/wx/defs.h -- __w64 warning disable patch by comex brought forward. include/wx/msw/window.h -- added GetContentScaleFactor() which was not implemented on Windows but is necessary for wxBitmap scaling on Mac OS X so it needs to work to avoid #ifdef-ing the code. src/gtk/window.cpp -- Modified DoSetClientSize() to direct call wxWindowGTK::DoSetSize() instead of using public wxWindowBase::SetSize() which now prevents derived classes (like wxAuiToolbar) intercepting the call and breaking it. This matches Windows which does NOT need to call DoSetSize internally. End result is this fixes Dolphin's debug tools toolbars on Linux. src/osx/window_osx.cpp -- Same fix as for GTK since it has the same issue. src/msw/radiobox.cpp -- Hacked to fix display in HiDPI (was clipping off end of text). Updated CMakeLists for Linux and Mac OS X. Small code changes to Dolphin to fix debug error boxes, deprecation warnings, and retain previous UI behavior on Windows.
This commit is contained in:
1 parent
3a26167148
commit
822326eea9
1748 files changed
+58817
-84428
No files matched your search
+3
-3
@@ -38,11 +38,11 @@ public:
|
||||
|
||||
protected:
|
||||
// ref counting code
|
||||
virtual wxObjectRefData *CreateRefData() const;
|
||||
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
|
||||
virtual wxObjectRefData *CreateRefData() const wxOVERRIDE;
|
||||
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxAcceleratorTable);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_ACCEL_H_
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/generic/activityindicator.h
|
||||
// Purpose: Declaration of wxActivityIndicatorGeneric.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2015-03-06
|
||||
// Copyright: (c) 2015 Vadim Zeitlin <[email protected]>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GENERIC_ACTIVITYINDICATOR_H_
|
||||
#define _WX_GENERIC_ACTIVITYINDICATOR_H_
|
||||
|
||||
#ifndef wxHAS_NATIVE_ACTIVITYINDICATOR
|
||||
// This is the only implementation we have, so call it accordingly.
|
||||
#define wxActivityIndicatorGeneric wxActivityIndicator
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxActivityIndicatorGeneric: built-in generic implementation.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_ADV wxActivityIndicatorGeneric : public wxActivityIndicatorBase
|
||||
{
|
||||
public:
|
||||
wxActivityIndicatorGeneric()
|
||||
{
|
||||
m_impl = NULL;
|
||||
}
|
||||
|
||||
explicit
|
||||
wxActivityIndicatorGeneric(wxWindow* parent,
|
||||
wxWindowID winid = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString& name = wxActivityIndicatorNameStr)
|
||||
{
|
||||
m_impl = NULL;
|
||||
|
||||
Create(parent, winid, pos, size, style, name);
|
||||
}
|
||||
|
||||
bool Create(wxWindow* parent,
|
||||
wxWindowID winid = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString& name = wxActivityIndicatorNameStr);
|
||||
|
||||
virtual ~wxActivityIndicatorGeneric();
|
||||
|
||||
virtual void Start() wxOVERRIDE;
|
||||
virtual void Stop() wxOVERRIDE;
|
||||
virtual bool IsRunning() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
class wxActivityIndicatorImpl *m_impl;
|
||||
|
||||
#ifndef wxHAS_NATIVE_ACTIVITYINDICATOR
|
||||
wxDECLARE_DYNAMIC_CLASS(wxActivityIndicator);
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_ACTIVITYINDICATOR_H_
|
||||
+14
-14
@@ -58,7 +58,7 @@ public:
|
||||
static void CleanUpHandlers();
|
||||
static void InitStandardHandlers();
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxAnimation)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxAnimation);
|
||||
};
|
||||
|
||||
|
||||
@@ -95,23 +95,23 @@ public:
|
||||
~wxAnimationCtrl();
|
||||
|
||||
public:
|
||||
virtual bool LoadFile(const wxString& filename, wxAnimationType type = wxANIMATION_TYPE_ANY);
|
||||
virtual bool Load(wxInputStream& stream, wxAnimationType type = wxANIMATION_TYPE_ANY);
|
||||
virtual bool LoadFile(const wxString& filename, wxAnimationType type = wxANIMATION_TYPE_ANY) wxOVERRIDE;
|
||||
virtual bool Load(wxInputStream& stream, wxAnimationType type = wxANIMATION_TYPE_ANY) wxOVERRIDE;
|
||||
|
||||
virtual void Stop();
|
||||
virtual bool Play()
|
||||
virtual void Stop() wxOVERRIDE;
|
||||
virtual bool Play() wxOVERRIDE
|
||||
{ return Play(true /* looped */); }
|
||||
virtual bool IsPlaying() const
|
||||
virtual bool IsPlaying() const wxOVERRIDE
|
||||
{ return m_isPlaying; }
|
||||
|
||||
void SetAnimation(const wxAnimation &animation);
|
||||
wxAnimation GetAnimation() const
|
||||
void SetAnimation(const wxAnimation &animation) wxOVERRIDE;
|
||||
wxAnimation GetAnimation() const wxOVERRIDE
|
||||
{ return m_animation; }
|
||||
|
||||
virtual void SetInactiveBitmap(const wxBitmap &bmp);
|
||||
virtual void SetInactiveBitmap(const wxBitmap &bmp) wxOVERRIDE;
|
||||
|
||||
// override base class method
|
||||
virtual bool SetBackgroundColour(const wxColour& col);
|
||||
virtual bool SetBackgroundColour(const wxColour& col) wxOVERRIDE;
|
||||
|
||||
public: // event handlers
|
||||
|
||||
@@ -153,8 +153,8 @@ protected: // internal utilities
|
||||
bool RebuildBackingStoreUpToFrame(unsigned int);
|
||||
void DrawFrame(wxDC &dc, unsigned int);
|
||||
|
||||
virtual void DisplayStaticImage();
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual void DisplayStaticImage() wxOVERRIDE;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
unsigned int m_currentFrame; // Current frame
|
||||
@@ -170,8 +170,8 @@ protected:
|
||||
|
||||
private:
|
||||
typedef wxAnimationCtrlBase base_type;
|
||||
DECLARE_DYNAMIC_CLASS(wxAnimationCtrl)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxAnimationCtrl);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_ANIMATEH__
|
||||
+14
-14
@@ -98,39 +98,39 @@ public:
|
||||
unsigned int pos, wxClientData *clientData);
|
||||
|
||||
// Sets the image for the given item.
|
||||
virtual void SetItemBitmap(unsigned int n, const wxBitmap& bitmap);
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual void SetItemBitmap(unsigned int n, const wxBitmap& bitmap) wxOVERRIDE;
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
|
||||
virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, int item, int flags) const;
|
||||
virtual void OnDrawItem(wxDC& dc, const wxRect& rect, int item, int flags) const;
|
||||
virtual wxCoord OnMeasureItem(size_t item) const;
|
||||
virtual wxCoord OnMeasureItemWidth(size_t item) const;
|
||||
virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, int item, int flags) const wxOVERRIDE;
|
||||
virtual void OnDrawItem(wxDC& dc, const wxRect& rect, int item, int flags) const wxOVERRIDE;
|
||||
virtual wxCoord OnMeasureItem(size_t item) const wxOVERRIDE;
|
||||
virtual wxCoord OnMeasureItemWidth(size_t item) const wxOVERRIDE;
|
||||
|
||||
// Event handlers
|
||||
void OnSize(wxSizeEvent& event);
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
virtual wxItemContainer* GetItemContainer() { return this; }
|
||||
virtual wxWindow* GetControl() { return this; }
|
||||
virtual wxItemContainer* GetItemContainer() wxOVERRIDE { return this; }
|
||||
virtual wxWindow* GetControl() wxOVERRIDE { return this; }
|
||||
|
||||
// wxItemContainer implementation
|
||||
virtual int DoInsertItems(const wxArrayStringsAdapter & items,
|
||||
unsigned int pos,
|
||||
void **clientData, wxClientDataType type);
|
||||
virtual void DoClear();
|
||||
virtual void DoDeleteOneItem(unsigned int n);
|
||||
void **clientData, wxClientDataType type) wxOVERRIDE;
|
||||
virtual void DoClear() wxOVERRIDE;
|
||||
virtual void DoDeleteOneItem(unsigned int n) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
bool m_inResize;
|
||||
|
||||
void Init();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmapComboBox)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxBitmapComboBox);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_BMPCBOX_H_
|
||||
+11
-1
@@ -27,11 +27,21 @@ class WXDLLIMPEXP_FWD_CORE wxWindow;
|
||||
class WXDLLIMPEXP_CORE wxBusyInfo : public wxObject
|
||||
{
|
||||
public:
|
||||
wxBusyInfo(const wxString& message, wxWindow *parent = NULL);
|
||||
wxBusyInfo(const wxBusyInfoFlags& flags)
|
||||
{
|
||||
Init(flags);
|
||||
}
|
||||
|
||||
wxBusyInfo(const wxString& message, wxWindow *parent = NULL)
|
||||
{
|
||||
Init(wxBusyInfoFlags().Parent(parent).Label(message));
|
||||
}
|
||||
|
||||
virtual ~wxBusyInfo();
|
||||
|
||||
private:
|
||||
void Init(const wxBusyInfoFlags& flags);
|
||||
|
||||
wxFrame *m_InfoFrame;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxBusyInfo);
|
||||
|
||||
+13
-13
@@ -47,22 +47,22 @@ public:
|
||||
|
||||
virtual ~wxButtonToolBar();
|
||||
|
||||
virtual bool Realize();
|
||||
virtual bool Realize() wxOVERRIDE;
|
||||
|
||||
virtual void SetToolShortHelp(int id, const wxString& helpString);
|
||||
virtual wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y) const;
|
||||
virtual void SetToolShortHelp(int id, const wxString& helpString) wxOVERRIDE;
|
||||
virtual wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y) const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// implement base class pure virtuals
|
||||
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
|
||||
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool);
|
||||
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool) wxOVERRIDE;
|
||||
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool) wxOVERRIDE;
|
||||
|
||||
virtual void DoEnableTool(wxToolBarToolBase *tool, bool enable);
|
||||
virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle);
|
||||
virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle);
|
||||
virtual void DoEnableTool(wxToolBarToolBase *tool, bool enable) wxOVERRIDE;
|
||||
virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle) wxOVERRIDE;
|
||||
virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle) wxOVERRIDE;
|
||||
|
||||
virtual wxToolBarToolBase *CreateTool(int id,
|
||||
const wxString& label,
|
||||
@@ -71,11 +71,11 @@ protected:
|
||||
wxItemKind kind,
|
||||
wxObject *clientData,
|
||||
const wxString& shortHelp,
|
||||
const wxString& longHelp);
|
||||
const wxString& longHelp) wxOVERRIDE;
|
||||
virtual wxToolBarToolBase *CreateTool(wxControl *control,
|
||||
const wxString& label);
|
||||
const wxString& label) wxOVERRIDE;
|
||||
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
// calculate layout
|
||||
void DoLayout();
|
||||
@@ -114,8 +114,8 @@ private:
|
||||
int m_labelMargin;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxButtonToolBar)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxButtonToolBar);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+33
-32
@@ -46,22 +46,22 @@ public:
|
||||
|
||||
virtual ~wxGenericCalendarCtrl();
|
||||
|
||||
virtual bool Destroy();
|
||||
virtual bool Destroy() wxOVERRIDE;
|
||||
|
||||
// set/get the current date
|
||||
// ------------------------
|
||||
|
||||
virtual bool SetDate(const wxDateTime& date);
|
||||
virtual wxDateTime GetDate() const { return m_date; }
|
||||
virtual bool SetDate(const wxDateTime& date) wxOVERRIDE;
|
||||
virtual wxDateTime GetDate() const wxOVERRIDE { return m_date; }
|
||||
|
||||
|
||||
// set/get the range in which selection can occur
|
||||
// ---------------------------------------------
|
||||
|
||||
virtual bool SetDateRange(const wxDateTime& lowerdate = wxDefaultDateTime,
|
||||
const wxDateTime& upperdate = wxDefaultDateTime);
|
||||
const wxDateTime& upperdate = wxDefaultDateTime) wxOVERRIDE;
|
||||
|
||||
virtual bool GetDateRange(wxDateTime *lowerdate, wxDateTime *upperdate) const;
|
||||
virtual bool GetDateRange(wxDateTime *lowerdate, wxDateTime *upperdate) const wxOVERRIDE;
|
||||
|
||||
// these functions are for generic version only, don't use them but use the
|
||||
// Set/GetDateRange() above instead
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
// should be used instead for them
|
||||
|
||||
// corresponds to wxCAL_NO_MONTH_CHANGE bit
|
||||
virtual bool EnableMonthChange(bool enable = true);
|
||||
virtual bool EnableMonthChange(bool enable = true) wxOVERRIDE;
|
||||
|
||||
// corresponds to wxCAL_NO_YEAR_CHANGE bit, deprecated, generic only
|
||||
void EnableYearChange(bool enable = true);
|
||||
@@ -88,48 +88,48 @@ public:
|
||||
// customization
|
||||
// -------------
|
||||
|
||||
virtual void Mark(size_t day, bool mark);
|
||||
virtual void Mark(size_t day, bool mark) wxOVERRIDE;
|
||||
|
||||
// all other functions in this section are for generic version only
|
||||
|
||||
// header colours are used for painting the weekdays at the top
|
||||
virtual void SetHeaderColours(const wxColour& colFg, const wxColour& colBg)
|
||||
virtual void SetHeaderColours(const wxColour& colFg, const wxColour& colBg) wxOVERRIDE
|
||||
{
|
||||
m_colHeaderFg = colFg;
|
||||
m_colHeaderBg = colBg;
|
||||
}
|
||||
|
||||
virtual const wxColour& GetHeaderColourFg() const { return m_colHeaderFg; }
|
||||
virtual const wxColour& GetHeaderColourBg() const { return m_colHeaderBg; }
|
||||
virtual const wxColour& GetHeaderColourFg() const wxOVERRIDE { return m_colHeaderFg; }
|
||||
virtual const wxColour& GetHeaderColourBg() const wxOVERRIDE { return m_colHeaderBg; }
|
||||
|
||||
// highlight colour is used for the currently selected date
|
||||
virtual void SetHighlightColours(const wxColour& colFg, const wxColour& colBg)
|
||||
virtual void SetHighlightColours(const wxColour& colFg, const wxColour& colBg) wxOVERRIDE
|
||||
{
|
||||
m_colHighlightFg = colFg;
|
||||
m_colHighlightBg = colBg;
|
||||
}
|
||||
|
||||
virtual const wxColour& GetHighlightColourFg() const { return m_colHighlightFg; }
|
||||
virtual const wxColour& GetHighlightColourBg() const { return m_colHighlightBg; }
|
||||
virtual const wxColour& GetHighlightColourFg() const wxOVERRIDE { return m_colHighlightFg; }
|
||||
virtual const wxColour& GetHighlightColourBg() const wxOVERRIDE { return m_colHighlightBg; }
|
||||
|
||||
// holiday colour is used for the holidays (if style & wxCAL_SHOW_HOLIDAYS)
|
||||
virtual void SetHolidayColours(const wxColour& colFg, const wxColour& colBg)
|
||||
virtual void SetHolidayColours(const wxColour& colFg, const wxColour& colBg) wxOVERRIDE
|
||||
{
|
||||
m_colHolidayFg = colFg;
|
||||
m_colHolidayBg = colBg;
|
||||
}
|
||||
|
||||
virtual const wxColour& GetHolidayColourFg() const { return m_colHolidayFg; }
|
||||
virtual const wxColour& GetHolidayColourBg() const { return m_colHolidayBg; }
|
||||
virtual const wxColour& GetHolidayColourFg() const wxOVERRIDE { return m_colHolidayFg; }
|
||||
virtual const wxColour& GetHolidayColourBg() const wxOVERRIDE { return m_colHolidayBg; }
|
||||
|
||||
virtual wxCalendarDateAttr *GetAttr(size_t day) const
|
||||
virtual wxCalendarDateAttr *GetAttr(size_t day) const wxOVERRIDE
|
||||
{
|
||||
wxCHECK_MSG( day > 0 && day < 32, NULL, wxT("invalid day") );
|
||||
|
||||
return m_attrs[day - 1];
|
||||
}
|
||||
|
||||
virtual void SetAttr(size_t day, wxCalendarDateAttr *attr)
|
||||
virtual void SetAttr(size_t day, wxCalendarDateAttr *attr) wxOVERRIDE
|
||||
{
|
||||
wxCHECK_RET( day > 0 && day < 32, wxT("invalid day") );
|
||||
|
||||
@@ -137,24 +137,24 @@ public:
|
||||
m_attrs[day - 1] = attr;
|
||||
}
|
||||
|
||||
virtual void ResetAttr(size_t day) { SetAttr(day, NULL); }
|
||||
virtual void ResetAttr(size_t day) wxOVERRIDE { SetAttr(day, NULL); }
|
||||
|
||||
virtual void SetHoliday(size_t day);
|
||||
virtual void SetHoliday(size_t day) wxOVERRIDE;
|
||||
|
||||
virtual wxCalendarHitTestResult HitTest(const wxPoint& pos,
|
||||
wxDateTime *date = NULL,
|
||||
wxDateTime::WeekDay *wd = NULL);
|
||||
wxDateTime::WeekDay *wd = NULL) wxOVERRIDE;
|
||||
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
||||
// forward these functions to all subcontrols
|
||||
virtual bool Enable(bool enable = true);
|
||||
virtual bool Show(bool show = true);
|
||||
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||
|
||||
virtual void SetWindowStyleFlag(long style);
|
||||
virtual void SetWindowStyleFlag(long style) wxOVERRIDE;
|
||||
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||
{ return GetClassDefaultAttributes(GetWindowVariant()); }
|
||||
|
||||
static wxVisualAttributes
|
||||
@@ -164,9 +164,9 @@ public:
|
||||
|
||||
protected:
|
||||
// override some base class virtuals
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
virtual void DoGetSize(int *width, int *height) const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||
virtual void DoGetSize(int *width, int *height) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// common part of all ctors
|
||||
@@ -179,6 +179,7 @@ private:
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
void OnClick(wxMouseEvent& event);
|
||||
void OnDClick(wxMouseEvent& event);
|
||||
void OnWheel(wxMouseEvent& event);
|
||||
void OnChar(wxKeyEvent& event);
|
||||
void OnMonthChange(wxCommandEvent& event);
|
||||
|
||||
@@ -247,8 +248,8 @@ public:
|
||||
wxControl *GetYearControl() const;
|
||||
|
||||
private:
|
||||
virtual void ResetHolidayAttrs();
|
||||
virtual void RefreshHolidays() { Refresh(); }
|
||||
virtual void ResetHolidayAttrs() wxOVERRIDE;
|
||||
virtual void RefreshHolidays() wxOVERRIDE { Refresh(); }
|
||||
|
||||
// OnPaint helper-methods
|
||||
|
||||
@@ -308,8 +309,8 @@ private:
|
||||
// the year control
|
||||
bool m_userChangedYear;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericCalendarCtrl)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericCalendarCtrl);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericCalendarCtrl);
|
||||
};
|
||||
|
||||
|
||||
+7
-7
@@ -25,7 +25,7 @@ class WXDLLIMPEXP_CORE wxCaretTimer : public wxTimer
|
||||
{
|
||||
public:
|
||||
wxCaretTimer(wxCaret *caret);
|
||||
virtual void Notify();
|
||||
virtual void Notify() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxCaret *m_caret;
|
||||
@@ -50,17 +50,17 @@ public:
|
||||
// --------------
|
||||
|
||||
// called by wxWindow (not using the event tables)
|
||||
virtual void OnSetFocus();
|
||||
virtual void OnKillFocus();
|
||||
virtual void OnSetFocus() wxOVERRIDE;
|
||||
virtual void OnKillFocus() wxOVERRIDE;
|
||||
|
||||
// called by wxCaretTimer
|
||||
void OnTimer();
|
||||
|
||||
protected:
|
||||
virtual void DoShow();
|
||||
virtual void DoHide();
|
||||
virtual void DoMove();
|
||||
virtual void DoSize();
|
||||
virtual void DoShow() wxOVERRIDE;
|
||||
virtual void DoHide() wxOVERRIDE;
|
||||
virtual void DoMove() wxOVERRIDE;
|
||||
virtual void DoSize() wxOVERRIDE;
|
||||
|
||||
// blink the caret once
|
||||
void Blink();
|
||||
|
||||
+5
-15
@@ -23,13 +23,8 @@ class WXDLLIMPEXP_FWD_CORE wxListBoxBase;
|
||||
#define wxCHOICE_HEIGHT 150
|
||||
#define wxCHOICE_WIDTH 200
|
||||
|
||||
#ifdef __WXWINCE__
|
||||
#define wxCHOICEDLG_STYLE \
|
||||
(wxDEFAULT_DIALOG_STYLE | wxOK | wxCANCEL | wxCENTRE)
|
||||
#else
|
||||
#define wxCHOICEDLG_STYLE \
|
||||
(wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE)
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxAnyChoiceDialog: a base class for dialogs containing a listbox
|
||||
@@ -214,12 +209,7 @@ public:
|
||||
|
||||
// implementation from now on
|
||||
void OnOK(wxCommandEvent& event);
|
||||
#ifndef __SMARTPHONE__
|
||||
void OnListBoxDClick(wxCommandEvent& event);
|
||||
#endif
|
||||
#ifdef __WXWINCE__
|
||||
void OnJoystickButtonDown(wxJoystickEvent& event);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
int m_selection;
|
||||
@@ -228,8 +218,8 @@ protected:
|
||||
void DoChoice();
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSingleChoiceDialog)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxSingleChoiceDialog);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -279,19 +269,19 @@ public:
|
||||
wxArrayInt GetSelections() const { return m_selections; }
|
||||
|
||||
// implementation from now on
|
||||
virtual bool TransferDataFromWindow();
|
||||
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
#if wxUSE_CHECKLISTBOX
|
||||
virtual wxListBoxBase *CreateList(int n,
|
||||
const wxString *choices,
|
||||
long styleLbox);
|
||||
long styleLbox) wxOVERRIDE;
|
||||
#endif // wxUSE_CHECKLISTBOX
|
||||
|
||||
wxArrayInt m_selections;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMultiChoiceDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxMultiChoiceDialog);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ protected:
|
||||
static wxColourData ms_data;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericColourButton)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericColourButton);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/generic/collheaderctrl.h
|
||||
// Purpose: wxGenericCollapsibleHeaderCtrl
|
||||
// Author: Tobias Taschner
|
||||
// Created: 2015-09-19
|
||||
// Copyright: (c) 2015 wxWidgets development team
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GENERIC_COLLAPSIBLEHEADER_CTRL_H_
|
||||
#define _WX_GENERIC_COLLAPSIBLEHEADER_CTRL_H_
|
||||
|
||||
class WXDLLIMPEXP_CORE wxGenericCollapsibleHeaderCtrl
|
||||
: public wxCollapsibleHeaderCtrlBase
|
||||
{
|
||||
public:
|
||||
wxGenericCollapsibleHeaderCtrl() { Init(); }
|
||||
|
||||
wxGenericCollapsibleHeaderCtrl(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxBORDER_NONE,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxCollapsibleHeaderCtrlNameStr)
|
||||
{
|
||||
Init();
|
||||
|
||||
Create(parent, id, label, pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxBORDER_NONE,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxCollapsibleHeaderCtrlNameStr);
|
||||
|
||||
virtual void SetCollapsed(bool collapsed = true) wxOVERRIDE;
|
||||
|
||||
virtual bool IsCollapsed() const wxOVERRIDE
|
||||
{ return m_collapsed; }
|
||||
|
||||
protected:
|
||||
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
bool m_collapsed;
|
||||
bool m_inWindow;
|
||||
bool m_mouseDown;
|
||||
|
||||
void Init();
|
||||
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
// Handle set/kill focus events (invalidate for painting focus rect)
|
||||
void OnFocus(wxFocusEvent& event);
|
||||
|
||||
// Handle click
|
||||
void OnLeftUp(wxMouseEvent& event);
|
||||
|
||||
// Handle pressed state
|
||||
void OnLeftDown(wxMouseEvent& event);
|
||||
|
||||
// Handle current state
|
||||
void OnEnterWindow(wxMouseEvent& event);
|
||||
|
||||
void OnLeaveWindow(wxMouseEvent& event);
|
||||
|
||||
// Toggle on space
|
||||
void OnChar(wxKeyEvent& event);
|
||||
|
||||
void DoSetCollapsed(bool collapsed);
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericCollapsibleHeaderCtrl);
|
||||
};
|
||||
|
||||
|
||||
#endif // _WX_GENERIC_COLLAPSIBLEHEADER_CTRL_H_
|
||||
+11
-23
@@ -12,11 +12,8 @@
|
||||
#define _WX_COLLAPSABLE_PANE_H_GENERIC_
|
||||
|
||||
// forward declared
|
||||
class WXDLLIMPEXP_FWD_CORE wxButton;
|
||||
class WXDLLIMPEXP_FWD_CORE wxCollapsibleHeaderCtrl;
|
||||
class WXDLLIMPEXP_FWD_CORE wxStaticLine;
|
||||
#if defined( __WXMAC__ ) && !defined(__WXUNIVERSAL__)
|
||||
class WXDLLIMPEXP_FWD_CORE wxDisclosureTriangle;
|
||||
#endif
|
||||
|
||||
#include "wx/containr.h"
|
||||
|
||||
@@ -56,17 +53,16 @@ public:
|
||||
const wxString& name = wxCollapsiblePaneNameStr);
|
||||
|
||||
// public wxCollapsiblePane API
|
||||
virtual void Collapse(bool collapse = true);
|
||||
virtual void SetLabel(const wxString &label);
|
||||
virtual void Collapse(bool collapse = true) wxOVERRIDE;
|
||||
virtual void SetLabel(const wxString &label) wxOVERRIDE;
|
||||
|
||||
virtual bool IsCollapsed() const
|
||||
virtual bool IsCollapsed() const wxOVERRIDE
|
||||
{ return m_pPane==NULL || !m_pPane->IsShown(); }
|
||||
virtual wxWindow *GetPane() const
|
||||
virtual wxWindow *GetPane() const wxOVERRIDE
|
||||
{ return m_pPane; }
|
||||
virtual wxString GetLabel() const
|
||||
{ return m_strLabel; }
|
||||
virtual wxString GetLabel() const wxOVERRIDE;
|
||||
|
||||
virtual bool Layout();
|
||||
virtual bool Layout() wxOVERRIDE;
|
||||
|
||||
|
||||
// for the generic collapsible pane only:
|
||||
@@ -78,24 +74,16 @@ public:
|
||||
|
||||
protected:
|
||||
// overridden methods
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
wxString GetBtnLabel() const;
|
||||
int GetBorder() const;
|
||||
|
||||
// child controls
|
||||
#if defined( __WXMAC__ ) && !defined(__WXUNIVERSAL__)
|
||||
wxDisclosureTriangle *m_pButton;
|
||||
#else
|
||||
wxButton *m_pButton;
|
||||
#endif
|
||||
wxCollapsibleHeaderCtrl *m_pButton;
|
||||
wxStaticLine *m_pStaticLine;
|
||||
wxWindow *m_pPane;
|
||||
wxSizer *m_sz;
|
||||
|
||||
// the button label without ">>" or "<<"
|
||||
wxString m_strLabel;
|
||||
|
||||
private:
|
||||
void Init();
|
||||
|
||||
@@ -103,8 +91,8 @@ private:
|
||||
void OnButton(wxCommandEvent &ev);
|
||||
void OnSize(wxSizeEvent &ev);
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericCollapsiblePane)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericCollapsiblePane);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // _WX_COLLAPSABLE_PANE_H_GENERIC_
|
||||
+1
-1
@@ -65,7 +65,7 @@ private:
|
||||
unsigned char m_alpha;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxColour)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxColour);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_COLOUR_H_
|
||||
+33
-16
@@ -14,18 +14,21 @@
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/dialog.h"
|
||||
|
||||
#define wxID_ADD_CUSTOM 3000
|
||||
|
||||
#if wxUSE_SLIDER
|
||||
|
||||
#define wxID_RED_SLIDER 3001
|
||||
#define wxID_GREEN_SLIDER 3002
|
||||
#define wxID_BLUE_SLIDER 3003
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxSlider;
|
||||
|
||||
#endif // wxUSE_SLIDER
|
||||
|
||||
// Preview with opacity is possible only if wxGCDC and wxStaticBitmap are
|
||||
// available and currently it only works in wxOSX and wxMSW as it uses wxBitmap
|
||||
// UseAlpha() and HasAlpha() methods which only these ports provide.
|
||||
#define wxCLRDLGG_USE_PREVIEW_WITH_ALPHA \
|
||||
((wxUSE_GRAPHICS_CONTEXT && wxUSE_STATBMP) && \
|
||||
(defined(__WXMSW__) || defined(__WXOSX__)))
|
||||
|
||||
#if wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
class wxStaticBitmap;
|
||||
#endif // wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
|
||||
class WXDLLIMPEXP_CORE wxGenericColourDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
@@ -38,18 +41,23 @@ public:
|
||||
|
||||
wxColourData &GetColourData() { return m_colourData; }
|
||||
|
||||
virtual int ShowModal();
|
||||
virtual int ShowModal() wxOVERRIDE;
|
||||
|
||||
// Internal functions
|
||||
void OnMouseEvent(wxMouseEvent& event);
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
#if wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
void OnCustomColourMouseClick(wxMouseEvent& event);
|
||||
#endif // wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
|
||||
virtual void CalculateMeasurements();
|
||||
virtual void CreateWidgets();
|
||||
virtual void InitializeColours();
|
||||
|
||||
virtual void PaintBasicColours(wxDC& dc);
|
||||
virtual void PaintCustomColours(wxDC& dc);
|
||||
#if !wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
virtual void PaintCustomColours(wxDC& dc, int clrIndex = -1);
|
||||
#endif // !wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
virtual void PaintCustomColour(wxDC& dc);
|
||||
virtual void PaintHighlight(wxDC& dc, bool draw);
|
||||
|
||||
@@ -62,10 +70,15 @@ public:
|
||||
void OnRedSlider(wxCommandEvent& event);
|
||||
void OnGreenSlider(wxCommandEvent& event);
|
||||
void OnBlueSlider(wxCommandEvent& event);
|
||||
void OnAlphaSlider(wxCommandEvent& event);
|
||||
#endif // wxUSE_SLIDER
|
||||
|
||||
void OnCloseWindow(wxCloseEvent& event);
|
||||
|
||||
#if wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
void DoPreviewBitmap(wxBitmap& bmp, const wxColour& colour);
|
||||
#endif // wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
|
||||
protected:
|
||||
wxColourData m_colourData;
|
||||
|
||||
@@ -75,10 +88,7 @@ protected:
|
||||
wxRect m_singleCustomColourRect;
|
||||
|
||||
// Size of each colour rectangle
|
||||
wxPoint m_smallRectangleSize;
|
||||
|
||||
// For single customizable colour
|
||||
wxPoint m_customRectangleSize;
|
||||
wxSize m_smallRectangleSize;
|
||||
|
||||
// Grid spacing (between rectangles)
|
||||
int m_gridSpacing;
|
||||
@@ -100,7 +110,14 @@ protected:
|
||||
wxSlider *m_redSlider;
|
||||
wxSlider *m_greenSlider;
|
||||
wxSlider *m_blueSlider;
|
||||
wxSlider *m_alphaSlider;
|
||||
#endif // wxUSE_SLIDER
|
||||
#if wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
// Bitmap to preview selected colour (with alpha channel)
|
||||
wxStaticBitmap *m_customColourBmp;
|
||||
// Bitmaps to preview custom colours (with alpha channel)
|
||||
wxStaticBitmap *m_customColoursBmp[16];
|
||||
#endif // wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
|
||||
int m_buttonY;
|
||||
|
||||
@@ -109,8 +126,8 @@ protected:
|
||||
|
||||
// static bool colourDialogCancelled;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericColourDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericColourDialog);
|
||||
};
|
||||
|
||||
#endif // _WX_COLORDLGG_H_
|
||||
+8
-10
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
void SetCustomPaintWidth( int width );
|
||||
|
||||
virtual bool IsKeyPopupToggle(const wxKeyEvent& event) const;
|
||||
virtual bool IsKeyPopupToggle(const wxKeyEvent& event) const wxOVERRIDE;
|
||||
|
||||
static int GetFeatures() { return wxComboCtrlFeatures::All; }
|
||||
|
||||
@@ -88,17 +88,15 @@ protected:
|
||||
virtual WXWidget GetTextWidget() const { return NULL; }
|
||||
#elif defined(__WXGTK__)
|
||||
#if defined(__WXGTK20__)
|
||||
virtual GtkEditable *GetEditable() const { return NULL; }
|
||||
virtual GtkEntry *GetEntry() const { return NULL; }
|
||||
virtual GtkEditable *GetEditable() const wxOVERRIDE { return NULL; }
|
||||
virtual GtkEntry *GetEntry() const wxOVERRIDE { return NULL; }
|
||||
#endif
|
||||
#elif defined(__WXMAC__)
|
||||
// Looks like there's nothing we need to override here
|
||||
#elif defined(__WXPM__)
|
||||
virtual WXHWND GetEditHWND() const { return NULL; }
|
||||
#endif
|
||||
|
||||
// For better transparent background rendering
|
||||
virtual bool HasTransparentBackground()
|
||||
virtual bool HasTransparentBackground() wxOVERRIDE
|
||||
{
|
||||
#if wxALWAYS_NATIVE_DOUBLE_BUFFER
|
||||
#ifdef __WXGTK__
|
||||
@@ -113,7 +111,7 @@ protected:
|
||||
}
|
||||
|
||||
// Mandatory virtuals
|
||||
virtual void OnResize();
|
||||
virtual void OnResize() wxOVERRIDE;
|
||||
|
||||
// Event handlers
|
||||
void OnPaintEvent( wxPaintEvent& event );
|
||||
@@ -122,9 +120,9 @@ protected:
|
||||
private:
|
||||
void Init();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericComboCtrl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericComboCtrl);
|
||||
};
|
||||
|
||||
|
||||
@@ -156,7 +154,7 @@ public:
|
||||
protected:
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxComboCtrl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxComboCtrl);
|
||||
};
|
||||
|
||||
#endif // _WX_COMBOCONTROL_H_
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
#define _WX_GENERIC_CUSTOMBGWIN_H_
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
// A helper to avoid template bloat: this class contains all type-independent
|
||||
// code of wxCustomBackgroundWindow<> below.
|
||||
|
||||
+23
-6
@@ -155,6 +155,7 @@ public:
|
||||
virtual int GetColumnPosition( const wxDataViewColumn *column ) const;
|
||||
|
||||
virtual wxDataViewColumn *GetSortingColumn() const;
|
||||
virtual wxVector<wxDataViewColumn *> GetSortingColumns() const;
|
||||
|
||||
virtual int GetSelectedItemsCount() const;
|
||||
virtual int GetSelections( wxDataViewItemArray & sel ) const;
|
||||
@@ -183,6 +184,10 @@ public:
|
||||
|
||||
virtual bool SetFont(const wxFont & font);
|
||||
|
||||
virtual bool AllowMultiColumnSort(bool allow);
|
||||
virtual bool IsMultiColumnSortAllowed() { return m_allowMultiColumnSort; }
|
||||
virtual void ToggleSortByColumn(int column);
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
virtual bool EnableDragSource( const wxDataFormat &format );
|
||||
virtual bool EnableDropTarget( const wxDataFormat &format );
|
||||
@@ -205,8 +210,17 @@ protected:
|
||||
virtual wxDataViewItem GetItemByRow( unsigned int row ) const;
|
||||
virtual int GetRowByItem( const wxDataViewItem & item ) const;
|
||||
|
||||
int GetSortingColumnIndex() const { return m_sortingColumnIdx; }
|
||||
void SetSortingColumnIndex(int idx) { m_sortingColumnIdx = idx; }
|
||||
// Mark the column as being used or not for sorting.
|
||||
void UseColumnForSorting(int idx);
|
||||
void DontUseColumnForSorting(int idx);
|
||||
|
||||
// Return true if the given column is sorted
|
||||
bool IsColumnSorted(int idx) const;
|
||||
|
||||
// Reset all columns currently used for sorting.
|
||||
void ResetAllSortColumns();
|
||||
|
||||
virtual void DoEnableSystemTheme(bool enable, wxWindow* window) wxOVERRIDE;
|
||||
|
||||
public: // utility functions not part of the API
|
||||
|
||||
@@ -267,8 +281,11 @@ private:
|
||||
// user defined color to draw row lines, may be invalid
|
||||
wxColour m_alternateRowColour;
|
||||
|
||||
// the index of the column currently used for sorting or -1
|
||||
int m_sortingColumnIdx;
|
||||
// columns indices used for sorting, empty if nothing is sorted
|
||||
wxVector<int> m_sortingColumnIdxs;
|
||||
|
||||
// if true, allow sorting by more than one column
|
||||
bool m_allowMultiColumnSort;
|
||||
|
||||
private:
|
||||
void OnSize( wxSizeEvent &event );
|
||||
@@ -283,9 +300,9 @@ private:
|
||||
WX_FORWARD_TO_SCROLL_HELPER()
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxDataViewCtrl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxDataViewCtrl);
|
||||
wxDECLARE_NO_COPY_CLASS(wxDataViewCtrl);
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
|
||||
|
||||
+9
-9
@@ -49,11 +49,11 @@ public:
|
||||
const wxString& name = wxDatePickerCtrlNameStr);
|
||||
|
||||
// wxDatePickerCtrl methods
|
||||
void SetValue(const wxDateTime& date);
|
||||
wxDateTime GetValue() const;
|
||||
void SetValue(const wxDateTime& date) wxOVERRIDE;
|
||||
wxDateTime GetValue() const wxOVERRIDE;
|
||||
|
||||
bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
|
||||
void SetRange(const wxDateTime &dt1, const wxDateTime &dt2);
|
||||
bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const wxOVERRIDE;
|
||||
void SetRange(const wxDateTime &dt1, const wxDateTime &dt2) wxOVERRIDE;
|
||||
|
||||
bool SetDateRange(const wxDateTime& lowerdate = wxDefaultDateTime,
|
||||
const wxDateTime& upperdate = wxDefaultDateTime);
|
||||
@@ -66,29 +66,29 @@ public:
|
||||
// -------------------------------
|
||||
|
||||
// overridden base class methods
|
||||
virtual bool Destroy();
|
||||
virtual bool Destroy() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void Init();
|
||||
|
||||
// return the list of the windows composing this one
|
||||
virtual wxWindowList GetCompositeWindowParts() const;
|
||||
virtual wxWindowList GetCompositeWindowParts() const wxOVERRIDE;
|
||||
|
||||
void OnText(wxCommandEvent &event);
|
||||
void OnSize(wxSizeEvent& event);
|
||||
void OnFocus(wxFocusEvent& event);
|
||||
|
||||
#ifdef __WXOSX_COCOA__
|
||||
virtual void OSXGenerateEvent(const wxDateTime& WXUNUSED(dt)) { }
|
||||
virtual void OSXGenerateEvent(const wxDateTime& WXUNUSED(dt)) wxOVERRIDE { }
|
||||
#endif
|
||||
|
||||
wxComboCtrl* m_combo;
|
||||
wxCalendarComboPopup* m_popup;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxDatePickerCtrlGeneric);
|
||||
};
|
||||
|
||||
|
||||
+50
-50
@@ -35,7 +35,7 @@ public:
|
||||
wxPostScriptDC(const wxPrintData& printData);
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPostScriptDC)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPostScriptDC);
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxPostScriptDCImpl : public wxDCImpl
|
||||
@@ -51,91 +51,91 @@ public:
|
||||
virtual ~wxPostScriptDCImpl();
|
||||
|
||||
virtual bool Ok() const { return IsOk(); }
|
||||
virtual bool IsOk() const;
|
||||
virtual bool IsOk() const wxOVERRIDE;
|
||||
|
||||
bool CanDrawBitmap() const { return true; }
|
||||
bool CanDrawBitmap() const wxOVERRIDE { return true; }
|
||||
|
||||
void Clear();
|
||||
void SetFont( const wxFont& font );
|
||||
void SetPen( const wxPen& pen );
|
||||
void SetBrush( const wxBrush& brush );
|
||||
void SetLogicalFunction( wxRasterOperationMode function );
|
||||
void SetBackground( const wxBrush& brush );
|
||||
void Clear() wxOVERRIDE;
|
||||
void SetFont( const wxFont& font ) wxOVERRIDE;
|
||||
void SetPen( const wxPen& pen ) wxOVERRIDE;
|
||||
void SetBrush( const wxBrush& brush ) wxOVERRIDE;
|
||||
void SetLogicalFunction( wxRasterOperationMode function ) wxOVERRIDE;
|
||||
void SetBackground( const wxBrush& brush ) wxOVERRIDE;
|
||||
|
||||
void DestroyClippingRegion();
|
||||
void DestroyClippingRegion() wxOVERRIDE;
|
||||
|
||||
bool StartDoc(const wxString& message);
|
||||
void EndDoc();
|
||||
void StartPage();
|
||||
void EndPage();
|
||||
bool StartDoc(const wxString& message) wxOVERRIDE;
|
||||
void EndDoc() wxOVERRIDE;
|
||||
void StartPage() wxOVERRIDE;
|
||||
void EndPage() wxOVERRIDE;
|
||||
|
||||
wxCoord GetCharHeight() const;
|
||||
wxCoord GetCharWidth() const;
|
||||
bool CanGetTextExtent() const { return true; }
|
||||
wxCoord GetCharHeight() const wxOVERRIDE;
|
||||
wxCoord GetCharWidth() const wxOVERRIDE;
|
||||
bool CanGetTextExtent() const wxOVERRIDE { return true; }
|
||||
|
||||
// Resolution in pixels per logical inch
|
||||
wxSize GetPPI() const;
|
||||
wxSize GetPPI() const wxOVERRIDE;
|
||||
|
||||
virtual void ComputeScaleAndOrigin();
|
||||
virtual void ComputeScaleAndOrigin() wxOVERRIDE;
|
||||
|
||||
void SetBackgroundMode(int WXUNUSED(mode)) { }
|
||||
void SetPalette(const wxPalette& WXUNUSED(palette)) { }
|
||||
void SetBackgroundMode(int WXUNUSED(mode)) wxOVERRIDE { }
|
||||
void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE { }
|
||||
|
||||
void SetPrintData(const wxPrintData& data);
|
||||
wxPrintData& GetPrintData() { return m_printData; }
|
||||
|
||||
virtual int GetDepth() const { return 24; }
|
||||
virtual int GetDepth() const wxOVERRIDE { return 24; }
|
||||
|
||||
void PsPrint( const wxString& psdata );
|
||||
|
||||
// Overrridden for wxPrinterDC Impl
|
||||
|
||||
virtual int GetResolution() const;
|
||||
virtual wxRect GetPaperRect() const;
|
||||
virtual int GetResolution() const wxOVERRIDE;
|
||||
virtual wxRect GetPaperRect() const wxOVERRIDE;
|
||||
|
||||
virtual void* GetHandle() const { return NULL; }
|
||||
virtual void* GetHandle() const wxOVERRIDE { return NULL; }
|
||||
|
||||
protected:
|
||||
bool DoFloodFill(wxCoord x1, wxCoord y1, const wxColour &col,
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE);
|
||||
bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const;
|
||||
void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
|
||||
void DoCrossHair(wxCoord x, wxCoord y) ;
|
||||
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc);
|
||||
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea);
|
||||
void DoDrawPoint(wxCoord x, wxCoord y);
|
||||
void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE) wxOVERRIDE;
|
||||
bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const wxOVERRIDE;
|
||||
void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE;
|
||||
void DoCrossHair(wxCoord x, wxCoord y) wxOVERRIDE ;
|
||||
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc) wxOVERRIDE;
|
||||
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea) wxOVERRIDE;
|
||||
void DoDrawPoint(wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0) wxOVERRIDE;
|
||||
void DoDrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE;
|
||||
void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
|
||||
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20);
|
||||
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE;
|
||||
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20) wxOVERRIDE;
|
||||
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
#if wxUSE_SPLINES
|
||||
void DoDrawSpline(const wxPointList *points);
|
||||
void DoDrawSpline(const wxPointList *points) wxOVERRIDE;
|
||||
#endif
|
||||
bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
||||
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
||||
wxRasterOperationMode rop = wxCOPY, bool useMask = false,
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
|
||||
void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y);
|
||||
void DoDrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask = false);
|
||||
void DoDrawText(const wxString& text, wxCoord x, wxCoord y);
|
||||
void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle);
|
||||
void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoSetDeviceClippingRegion( const wxRegion &WXUNUSED(clip))
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord) wxOVERRIDE;
|
||||
void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
void DoDrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask = false) wxOVERRIDE;
|
||||
void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle) wxOVERRIDE;
|
||||
void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
void DoSetDeviceClippingRegion( const wxRegion &WXUNUSED(clip)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( "not implemented" );
|
||||
}
|
||||
void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL,
|
||||
const wxFont *theFont = NULL) const;
|
||||
void DoGetSize(int* width, int* height) const;
|
||||
void DoGetSizeMM(int *width, int *height) const;
|
||||
const wxFont *theFont = NULL) const wxOVERRIDE;
|
||||
void DoGetSize(int* width, int* height) const wxOVERRIDE;
|
||||
void DoGetSizeMM(int *width, int *height) const wxOVERRIDE;
|
||||
|
||||
FILE* m_pstream; // PostScript output stream
|
||||
unsigned char m_currentRed;
|
||||
@@ -149,7 +149,7 @@ protected:
|
||||
double m_pageHeight;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPostScriptDCImpl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPostScriptDCImpl);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+22
-14
@@ -45,7 +45,9 @@ enum
|
||||
// Editable labels
|
||||
wxDIRCTRL_EDIT_LABELS = 0x0100,
|
||||
// Allow multiple selection
|
||||
wxDIRCTRL_MULTIPLE = 0x0200
|
||||
wxDIRCTRL_MULTIPLE = 0x0200,
|
||||
|
||||
wxDIRCTRL_DEFAULT_STYLE = wxDIRCTRL_3D_INTERNAL
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -78,11 +80,11 @@ class WXDLLIMPEXP_CORE wxGenericDirCtrl: public wxControl
|
||||
{
|
||||
public:
|
||||
wxGenericDirCtrl();
|
||||
wxGenericDirCtrl(wxWindow *parent, const wxWindowID id = wxID_ANY,
|
||||
wxGenericDirCtrl(wxWindow *parent, wxWindowID id = wxID_ANY,
|
||||
const wxString &dir = wxDirDialogDefaultFolderStr,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDIRCTRL_3D_INTERNAL,
|
||||
long style = wxDIRCTRL_DEFAULT_STYLE,
|
||||
const wxString& filter = wxEmptyString,
|
||||
int defaultFilter = 0,
|
||||
const wxString& name = wxTreeCtrlNameStr )
|
||||
@@ -91,11 +93,11 @@ public:
|
||||
Create(parent, id, dir, pos, size, style, filter, defaultFilter, name);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent, const wxWindowID id = wxID_ANY,
|
||||
bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
|
||||
const wxString &dir = wxDirDialogDefaultFolderStr,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDIRCTRL_3D_INTERNAL,
|
||||
long style = wxDIRCTRL_DEFAULT_STYLE,
|
||||
const wxString& filter = wxEmptyString,
|
||||
int defaultFilter = 0,
|
||||
const wxString& name = wxTreeCtrlNameStr );
|
||||
@@ -172,7 +174,7 @@ public:
|
||||
virtual void CollapseTree();
|
||||
|
||||
// overridden base class methods
|
||||
virtual void SetFocus();
|
||||
virtual void SetFocus() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void ExpandRoot();
|
||||
@@ -204,8 +206,8 @@ private:
|
||||
wxDirFilterListCtrl* m_filterListCtrl;
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericDirCtrl)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericDirCtrl);
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericDirCtrl);
|
||||
};
|
||||
|
||||
@@ -226,7 +228,7 @@ class WXDLLIMPEXP_CORE wxDirFilterListCtrl: public wxChoice
|
||||
{
|
||||
public:
|
||||
wxDirFilterListCtrl() { Init(); }
|
||||
wxDirFilterListCtrl(wxGenericDirCtrl* parent, const wxWindowID id = wxID_ANY,
|
||||
wxDirFilterListCtrl(wxGenericDirCtrl* parent, wxWindowID id = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0)
|
||||
@@ -235,7 +237,7 @@ public:
|
||||
Create(parent, id, pos, size, style);
|
||||
}
|
||||
|
||||
bool Create(wxGenericDirCtrl* parent, const wxWindowID id = wxID_ANY,
|
||||
bool Create(wxGenericDirCtrl* parent, wxWindowID id = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0);
|
||||
@@ -253,12 +255,12 @@ public:
|
||||
protected:
|
||||
wxGenericDirCtrl* m_dirCtrl;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_CLASS(wxDirFilterListCtrl)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_CLASS(wxDirFilterListCtrl);
|
||||
wxDECLARE_NO_COPY_CLASS(wxDirFilterListCtrl);
|
||||
};
|
||||
|
||||
#if !defined(__WXMSW__) && !defined(__WXMAC__) && !defined(__WXPM__)
|
||||
#if !defined(__WXMSW__) && !defined(__WXMAC__)
|
||||
#define wxDirCtrl wxGenericDirCtrl
|
||||
#endif
|
||||
|
||||
@@ -298,11 +300,17 @@ public:
|
||||
int GetIconID(const wxString& extension, const wxString& mime = wxEmptyString);
|
||||
wxImageList *GetSmallImageList();
|
||||
|
||||
const wxSize& GetSize() const { return m_size; }
|
||||
void SetSize(const wxSize& sz) { m_size = sz; }
|
||||
|
||||
bool IsOk() const { return m_smallImageList != NULL; }
|
||||
|
||||
protected:
|
||||
void Create(); // create on first use
|
||||
void Create(const wxSize& sz); // create on first use
|
||||
|
||||
wxImageList *m_smallImageList;
|
||||
wxHashTable *m_HashTable;
|
||||
wxSize m_size;
|
||||
};
|
||||
|
||||
// The global fileicons table
|
||||
|
||||
+7
-11
@@ -23,11 +23,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxDirDialogNameStr[];
|
||||
extern WXDLLIMPEXP_DATA_CORE(const char) wxDirSelectorPromptStr[];
|
||||
|
||||
#ifndef wxDD_DEFAULT_STYLE
|
||||
#ifdef __WXWINCE__
|
||||
#define wxDD_DEFAULT_STYLE wxDEFAULT_DIALOG_STYLE
|
||||
#else
|
||||
#define wxDD_DEFAULT_STYLE (wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
|
||||
#endif
|
||||
#define wxDD_DEFAULT_STYLE (wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
|
||||
#endif
|
||||
|
||||
#include "wx/dialog.h"
|
||||
@@ -58,12 +54,12 @@ public:
|
||||
const wxString& name = wxDirDialogNameStr);
|
||||
|
||||
//// Accessors
|
||||
void SetPath(const wxString& path);
|
||||
wxString GetPath() const;
|
||||
void SetPath(const wxString& path) wxOVERRIDE;
|
||||
wxString GetPath() const wxOVERRIDE;
|
||||
|
||||
//// Overrides
|
||||
virtual int ShowModal();
|
||||
virtual void EndModal(int retCode);
|
||||
virtual int ShowModal() wxOVERRIDE;
|
||||
virtual void EndModal(int retCode) wxOVERRIDE;
|
||||
|
||||
// this one is specific to wxGenericDirDialog
|
||||
wxTextCtrl* GetInputCtrl() const { return m_input; }
|
||||
@@ -81,8 +77,8 @@ protected:
|
||||
wxGenericDirCtrl* m_dirCtrl;
|
||||
wxTextCtrl* m_input;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericDirDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericDirDialog);
|
||||
};
|
||||
|
||||
#endif // _WX_DIRDLGG_H_
|
||||
+1
-13
@@ -121,18 +121,6 @@ public:
|
||||
Create(str, cursor);
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// don't use in new code, use versions without hot spot parameter
|
||||
wxDEPRECATED( wxGenericDragImage(const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
wxDEPRECATED( wxGenericDragImage(const wxBitmap& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
wxDEPRECATED( wxGenericDragImage(const wxIcon& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
wxDEPRECATED( wxGenericDragImage(const wxString& str, const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
wxDEPRECATED( bool Create(const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
wxDEPRECATED( bool Create(const wxBitmap& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
wxDEPRECATED( bool Create(const wxIcon& image, const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
wxDEPRECATED( bool Create(const wxString& str, const wxCursor& cursor, const wxPoint& cursorHotspot) );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
#if wxUSE_TREECTRL
|
||||
wxGenericDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
||||
{
|
||||
@@ -263,7 +251,7 @@ protected:
|
||||
bool m_fullScreen;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericDragImage)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericDragImage);
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericDragImage);
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ private:
|
||||
|
||||
wxDC *m_dc;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewRenderer)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewRenderer);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_DVRENDERER_H_
|
||||
|
||||
+38
-26
@@ -18,7 +18,9 @@
|
||||
class WXDLLIMPEXP_ADV wxDataViewCustomRenderer: public wxDataViewRenderer
|
||||
{
|
||||
public:
|
||||
wxDataViewCustomRenderer( const wxString &varianttype = wxT("string"),
|
||||
static wxString GetDefaultType() { return wxS("string"); }
|
||||
|
||||
wxDataViewCustomRenderer( const wxString &varianttype = GetDefaultType(),
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
@@ -35,7 +37,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCustomRenderer)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCustomRenderer);
|
||||
};
|
||||
|
||||
|
||||
@@ -46,12 +48,14 @@ private:
|
||||
class WXDLLIMPEXP_ADV wxDataViewTextRenderer: public wxDataViewRenderer
|
||||
{
|
||||
public:
|
||||
wxDataViewTextRenderer( const wxString &varianttype = wxT("string"),
|
||||
static wxString GetDefaultType() { return wxS("string"); }
|
||||
|
||||
wxDataViewTextRenderer( const wxString &varianttype = GetDefaultType(),
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
bool SetValue( const wxVariant &value );
|
||||
bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state);
|
||||
virtual wxSize GetSize() const;
|
||||
@@ -66,7 +70,7 @@ protected:
|
||||
wxString m_text;
|
||||
|
||||
protected:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewTextRenderer)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewTextRenderer);
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@@ -76,22 +80,24 @@ protected:
|
||||
class WXDLLIMPEXP_ADV wxDataViewBitmapRenderer: public wxDataViewRenderer
|
||||
{
|
||||
public:
|
||||
wxDataViewBitmapRenderer( const wxString &varianttype = wxT("wxBitmap"),
|
||||
static wxString GetDefaultType() { return wxS("wxBitmap"); }
|
||||
|
||||
wxDataViewBitmapRenderer( const wxString &varianttype = GetDefaultType(),
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
bool SetValue( const wxVariant &value );
|
||||
bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
|
||||
bool Render( wxRect cell, wxDC *dc, int state );
|
||||
wxSize GetSize() const;
|
||||
virtual bool Render( wxRect cell, wxDC *dc, int state );
|
||||
virtual wxSize GetSize() const;
|
||||
|
||||
private:
|
||||
wxIcon m_icon;
|
||||
wxBitmap m_bitmap;
|
||||
|
||||
protected:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewBitmapRenderer)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewBitmapRenderer);
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@@ -101,15 +107,17 @@ protected:
|
||||
class WXDLLIMPEXP_ADV wxDataViewToggleRenderer: public wxDataViewRenderer
|
||||
{
|
||||
public:
|
||||
wxDataViewToggleRenderer( const wxString &varianttype = wxT("bool"),
|
||||
static wxString GetDefaultType() { return wxS("bool"); }
|
||||
|
||||
wxDataViewToggleRenderer( const wxString &varianttype = GetDefaultType(),
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
bool SetValue( const wxVariant &value );
|
||||
bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
|
||||
bool Render( wxRect cell, wxDC *dc, int state );
|
||||
wxSize GetSize() const;
|
||||
virtual bool Render( wxRect cell, wxDC *dc, int state );
|
||||
virtual wxSize GetSize() const;
|
||||
|
||||
// Implementation only, don't use nor override
|
||||
virtual bool WXActivateCell(const wxRect& cell,
|
||||
@@ -121,7 +129,7 @@ private:
|
||||
bool m_toggle;
|
||||
|
||||
protected:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewToggleRenderer)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewToggleRenderer);
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@@ -131,13 +139,15 @@ protected:
|
||||
class WXDLLIMPEXP_ADV wxDataViewProgressRenderer: public wxDataViewRenderer
|
||||
{
|
||||
public:
|
||||
static wxString GetDefaultType() { return wxS("long"); }
|
||||
|
||||
wxDataViewProgressRenderer( const wxString &label = wxEmptyString,
|
||||
const wxString &varianttype = wxT("long"),
|
||||
const wxString &varianttype = GetDefaultType(),
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
bool SetValue( const wxVariant &value );
|
||||
bool GetValue( wxVariant& value ) const;
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant& value ) const;
|
||||
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state);
|
||||
virtual wxSize GetSize() const;
|
||||
@@ -147,7 +157,7 @@ private:
|
||||
int m_value;
|
||||
|
||||
protected:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewProgressRenderer)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewProgressRenderer);
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@@ -157,12 +167,14 @@ protected:
|
||||
class WXDLLIMPEXP_ADV wxDataViewIconTextRenderer: public wxDataViewRenderer
|
||||
{
|
||||
public:
|
||||
wxDataViewIconTextRenderer( const wxString &varianttype = wxT("wxDataViewIconText"),
|
||||
static wxString GetDefaultType() { return wxS("wxDataViewIconText"); }
|
||||
|
||||
wxDataViewIconTextRenderer( const wxString &varianttype = GetDefaultType(),
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
bool SetValue( const wxVariant &value );
|
||||
bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state);
|
||||
virtual wxSize GetSize() const;
|
||||
@@ -176,7 +188,7 @@ private:
|
||||
wxDataViewIconText m_value;
|
||||
|
||||
protected:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewIconTextRenderer)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewIconTextRenderer);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_DVRENDERERS_H_
|
||||
|
||||
+2
-2
@@ -62,9 +62,9 @@ protected:
|
||||
*m_textRepl;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_FDREPDLG_H_
|
||||
+18
-18
@@ -177,8 +177,8 @@ protected:
|
||||
wxFileData::fileListFieldType m_sort_field;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxFileListCtrl)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxFileListCtrl);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxGenericFileCtrl : public wxNavigationEnabled<wxControl>,
|
||||
@@ -217,32 +217,32 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
const wxString& name = wxFileCtrlNameStr );
|
||||
|
||||
virtual void SetWildcard( const wxString& wildCard );
|
||||
virtual void SetFilterIndex( int filterindex );
|
||||
virtual bool SetDirectory( const wxString& dir );
|
||||
virtual void SetWildcard( const wxString& wildCard ) wxOVERRIDE;
|
||||
virtual void SetFilterIndex( int filterindex ) wxOVERRIDE;
|
||||
virtual bool SetDirectory( const wxString& dir ) wxOVERRIDE;
|
||||
|
||||
// Selects a certain file.
|
||||
// In case the filename specified isn't found/couldn't be shown with
|
||||
// currently selected filter, false is returned and nothing happens
|
||||
virtual bool SetFilename( const wxString& name );
|
||||
virtual bool SetFilename( const wxString& name ) wxOVERRIDE;
|
||||
|
||||
// Changes to a certain directory and selects a certain file.
|
||||
// In case the filename specified isn't found/couldn't be shown with
|
||||
// currently selected filter, false is returned and if directory exists
|
||||
// it's chdir'ed to
|
||||
virtual bool SetPath( const wxString& path );
|
||||
virtual bool SetPath( const wxString& path ) wxOVERRIDE;
|
||||
|
||||
virtual wxString GetFilename() const;
|
||||
virtual wxString GetDirectory() const;
|
||||
virtual wxString GetWildcard() const { return this->m_wildCard; }
|
||||
virtual wxString GetPath() const;
|
||||
virtual void GetPaths( wxArrayString& paths ) const;
|
||||
virtual void GetFilenames( wxArrayString& files ) const;
|
||||
virtual int GetFilterIndex() const { return m_filterIndex; }
|
||||
virtual wxString GetFilename() const wxOVERRIDE;
|
||||
virtual wxString GetDirectory() const wxOVERRIDE;
|
||||
virtual wxString GetWildcard() const wxOVERRIDE { return this->m_wildCard; }
|
||||
virtual wxString GetPath() const wxOVERRIDE;
|
||||
virtual void GetPaths( wxArrayString& paths ) const wxOVERRIDE;
|
||||
virtual void GetFilenames( wxArrayString& files ) const wxOVERRIDE;
|
||||
virtual int GetFilterIndex() const wxOVERRIDE { return m_filterIndex; }
|
||||
|
||||
virtual bool HasMultipleFileSelection() const
|
||||
virtual bool HasMultipleFileSelection() const wxOVERRIDE
|
||||
{ return HasFlag(wxFC_MULTIPLE); }
|
||||
virtual void ShowHidden(bool show) { m_list->ShowHidden( show ); }
|
||||
virtual void ShowHidden(bool show) wxOVERRIDE { m_list->ShowHidden( show ); }
|
||||
|
||||
void GoToParentDir();
|
||||
void GoToHomeDir();
|
||||
@@ -294,8 +294,8 @@ private:
|
||||
bool m_ignoreChanges;
|
||||
bool m_noSelChgEvent; // suppress selection changed events.
|
||||
|
||||
DECLARE_DYNAMIC_CLASS( wxGenericFileCtrl )
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericFileCtrl);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // wxUSE_FILECTRL
|
||||
|
||||
+21
-21
@@ -60,39 +60,39 @@ public:
|
||||
|
||||
virtual ~wxGenericFileDialog();
|
||||
|
||||
virtual void SetDirectory(const wxString& dir)
|
||||
virtual void SetDirectory(const wxString& dir) wxOVERRIDE
|
||||
{ m_filectrl->SetDirectory(dir); }
|
||||
virtual void SetFilename(const wxString& name)
|
||||
virtual void SetFilename(const wxString& name) wxOVERRIDE
|
||||
{ m_filectrl->SetFilename(name); }
|
||||
virtual void SetMessage(const wxString& message) { SetTitle(message); }
|
||||
virtual void SetPath(const wxString& path)
|
||||
virtual void SetMessage(const wxString& message) wxOVERRIDE { SetTitle(message); }
|
||||
virtual void SetPath(const wxString& path) wxOVERRIDE
|
||||
{ m_filectrl->SetPath(path); }
|
||||
virtual void SetFilterIndex(int filterIndex)
|
||||
virtual void SetFilterIndex(int filterIndex) wxOVERRIDE
|
||||
{ m_filectrl->SetFilterIndex(filterIndex); }
|
||||
virtual void SetWildcard(const wxString& wildCard)
|
||||
virtual void SetWildcard(const wxString& wildCard) wxOVERRIDE
|
||||
{ m_filectrl->SetWildcard(wildCard); }
|
||||
|
||||
virtual wxString GetPath() const
|
||||
virtual wxString GetPath() const wxOVERRIDE
|
||||
{ return m_filectrl->GetPath(); }
|
||||
virtual void GetPaths(wxArrayString& paths) const
|
||||
virtual void GetPaths(wxArrayString& paths) const wxOVERRIDE
|
||||
{ m_filectrl->GetPaths(paths); }
|
||||
virtual wxString GetDirectory() const
|
||||
virtual wxString GetDirectory() const wxOVERRIDE
|
||||
{ return m_filectrl->GetDirectory(); }
|
||||
virtual wxString GetFilename() const
|
||||
virtual wxString GetFilename() const wxOVERRIDE
|
||||
{ return m_filectrl->GetFilename(); }
|
||||
virtual void GetFilenames(wxArrayString& files) const
|
||||
virtual void GetFilenames(wxArrayString& files) const wxOVERRIDE
|
||||
{ m_filectrl->GetFilenames(files); }
|
||||
virtual wxString GetWildcard() const
|
||||
virtual wxString GetWildcard() const wxOVERRIDE
|
||||
{ return m_filectrl->GetWildcard(); }
|
||||
virtual int GetFilterIndex() const
|
||||
virtual int GetFilterIndex() const wxOVERRIDE
|
||||
{ return m_filectrl->GetFilterIndex(); }
|
||||
virtual bool SupportsExtraControl() const { return true; }
|
||||
virtual bool SupportsExtraControl() const wxOVERRIDE { return true; }
|
||||
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
||||
virtual int ShowModal();
|
||||
virtual bool Show( bool show = true );
|
||||
virtual int ShowModal() wxOVERRIDE;
|
||||
virtual bool Show( bool show = true ) wxOVERRIDE;
|
||||
|
||||
void OnList( wxCommandEvent &event );
|
||||
void OnReport( wxCommandEvent &event );
|
||||
@@ -121,8 +121,8 @@ private:
|
||||
wxBitmapButton* AddBitmapButton( wxWindowID winId, const wxArtID& artId,
|
||||
const wxString& tip, wxSizer *sizer );
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericFileDialog)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericFileDialog);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
// these variables are preserved between wxGenericFileDialog calls
|
||||
static long ms_lastViewStyle; // list or report?
|
||||
@@ -148,11 +148,11 @@ public:
|
||||
defaultDir, defaultFile, wildCard,
|
||||
style,
|
||||
pos, size)
|
||||
{
|
||||
}
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxFileDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxFileDialog);
|
||||
};
|
||||
|
||||
#endif // wxHAS_GENERIC_FILEDIALOG
|
||||
|
||||
+12
-12
@@ -46,7 +46,7 @@ public:
|
||||
pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
virtual wxControl *AsControl() { return this; }
|
||||
virtual wxControl *AsControl() wxOVERRIDE { return this; }
|
||||
|
||||
public: // overridable
|
||||
|
||||
@@ -57,7 +57,7 @@ public: // overridable
|
||||
|
||||
virtual wxEventType GetEventType() const = 0;
|
||||
|
||||
virtual void SetInitialDirectory(const wxString& dir);
|
||||
virtual void SetInitialDirectory(const wxString& dir) wxOVERRIDE;
|
||||
|
||||
public:
|
||||
|
||||
@@ -144,19 +144,19 @@ public: // overridable
|
||||
return filedlgstyle;
|
||||
}
|
||||
|
||||
virtual wxDialog *CreateDialog();
|
||||
virtual wxDialog *CreateDialog() wxOVERRIDE;
|
||||
|
||||
wxEventType GetEventType() const
|
||||
wxEventType GetEventType() const wxOVERRIDE
|
||||
{ return wxEVT_FILEPICKER_CHANGED; }
|
||||
|
||||
protected:
|
||||
void UpdateDialogPath(wxDialog *p)
|
||||
void UpdateDialogPath(wxDialog *p) wxOVERRIDE
|
||||
{ wxStaticCast(p, wxFileDialog)->SetPath(m_path); }
|
||||
void UpdatePathFromDialog(wxDialog *p)
|
||||
void UpdatePathFromDialog(wxDialog *p) wxOVERRIDE
|
||||
{ m_path = wxStaticCast(p, wxFileDialog)->GetPath(); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericFileButton)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericFileButton);
|
||||
};
|
||||
|
||||
|
||||
@@ -199,19 +199,19 @@ public: // overridable
|
||||
return dirdlgstyle;
|
||||
}
|
||||
|
||||
virtual wxDialog *CreateDialog();
|
||||
virtual wxDialog *CreateDialog() wxOVERRIDE;
|
||||
|
||||
wxEventType GetEventType() const
|
||||
wxEventType GetEventType() const wxOVERRIDE
|
||||
{ return wxEVT_DIRPICKER_CHANGED; }
|
||||
|
||||
protected:
|
||||
void UpdateDialogPath(wxDialog *p)
|
||||
void UpdateDialogPath(wxDialog *p) wxOVERRIDE
|
||||
{ wxStaticCast(p, wxDirDialog)->SetPath(m_path); }
|
||||
void UpdatePathFromDialog(wxDialog *p)
|
||||
void UpdatePathFromDialog(wxDialog *p) wxOVERRIDE
|
||||
{ m_path = wxStaticCast(p, wxDirDialog)->GetPath(); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericDirButton)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericDirButton);
|
||||
};
|
||||
|
||||
// old wxEVT_COMMAND_* constants
|
||||
|
||||
+4
-20
@@ -14,12 +14,7 @@
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/font.h"
|
||||
|
||||
#ifdef __WXWINCE__
|
||||
#define USE_SPINCTRL_FOR_POINT_SIZE 1
|
||||
class WXDLLIMPEXP_FWD_CORE wxSpinEvent;
|
||||
#else
|
||||
#define USE_SPINCTRL_FOR_POINT_SIZE 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* FONT DIALOG
|
||||
@@ -50,12 +45,7 @@ public:
|
||||
: wxFontDialogBase(parent, data) { Init(); }
|
||||
virtual ~wxGenericFontDialog();
|
||||
|
||||
virtual int ShowModal();
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// deprecated, for backwards compatibility only
|
||||
wxDEPRECATED( wxGenericFontDialog(wxWindow *parent, const wxFontData *data) );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
virtual int ShowModal() wxOVERRIDE;
|
||||
|
||||
// Internal functions
|
||||
void OnCloseWindow(wxCloseEvent& event);
|
||||
@@ -71,7 +61,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
virtual bool DoCreate(wxWindow *parent);
|
||||
virtual bool DoCreate(wxWindow *parent) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
|
||||
@@ -96,14 +86,8 @@ private:
|
||||
bool m_useEvents;
|
||||
|
||||
// static bool fontDialogCancelled;
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericFontDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericFontDialog);
|
||||
};
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// deprecated, for backwards compatibility only
|
||||
inline wxGenericFontDialog::wxGenericFontDialog(wxWindow *parent, const wxFontData *data)
|
||||
:wxFontDialogBase(parent) { Init(); InitFontData(data); Create(parent); }
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
#endif // _WX_GENERIC_FONTDLGG_H
|
||||
+7
-1
@@ -35,6 +35,12 @@ public:
|
||||
Create(parent, id, initial, pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
virtual wxColour GetSelectedColour() const
|
||||
{ return m_data.GetColour(); }
|
||||
|
||||
virtual void SetSelectedColour(const wxColour &colour)
|
||||
{ m_data.SetColour(colour); UpdateFont(); }
|
||||
|
||||
virtual ~wxGenericFontButton() {}
|
||||
|
||||
|
||||
@@ -68,7 +74,7 @@ protected:
|
||||
wxFontData m_data;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericFontButton)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericFontButton);
|
||||
};
|
||||
|
||||
|
||||
|
||||
+73
-56
@@ -174,6 +174,30 @@ public:
|
||||
wxDC& dc,
|
||||
int row, int col) = 0;
|
||||
|
||||
// Get the preferred height for a given width. Override this method if the
|
||||
// renderer computes height as function of its width, as is the case of the
|
||||
// standard wxGridCellAutoWrapStringRenderer, for example.
|
||||
// and vice versa
|
||||
virtual int GetBestHeight(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col,
|
||||
int WXUNUSED(width))
|
||||
{
|
||||
return GetBestSize(grid, attr, dc, row, col).GetHeight();
|
||||
}
|
||||
|
||||
// Get the preferred width for a given height, this is the symmetric
|
||||
// version of GetBestHeight().
|
||||
virtual int GetBestWidth(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col,
|
||||
int WXUNUSED(height))
|
||||
{
|
||||
return GetBestSize(grid, attr, dc, row, col).GetWidth();
|
||||
}
|
||||
|
||||
// create a new object which is the copy of this one
|
||||
virtual wxGridCellRenderer *Clone() const = 0;
|
||||
};
|
||||
@@ -355,7 +379,7 @@ class WXDLLIMPEXP_ADV wxGridRowHeaderRendererDefault
|
||||
public:
|
||||
virtual void DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const;
|
||||
wxRect& rect) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
// Column header cells renderers
|
||||
@@ -365,7 +389,7 @@ class WXDLLIMPEXP_ADV wxGridColumnHeaderRendererDefault
|
||||
public:
|
||||
virtual void DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const;
|
||||
wxRect& rect) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
// Header corner renderer
|
||||
@@ -375,7 +399,7 @@ class WXDLLIMPEXP_ADV wxGridCornerHeaderRendererDefault
|
||||
public:
|
||||
virtual void DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const;
|
||||
wxRect& rect) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
|
||||
@@ -752,7 +776,7 @@ private:
|
||||
wxGrid * m_view;
|
||||
wxGridCellAttrProvider *m_attrProvider;
|
||||
|
||||
DECLARE_ABSTRACT_CLASS(wxGridTableBase)
|
||||
wxDECLARE_ABSTRACT_CLASS(wxGridTableBase);
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridTableBase);
|
||||
};
|
||||
|
||||
@@ -765,9 +789,12 @@ private:
|
||||
//
|
||||
enum wxGridTableRequest
|
||||
{
|
||||
// The first two requests never did anything, simply don't use them.
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxGRIDTABLE_REQUEST_VIEW_GET_VALUES = 2000,
|
||||
wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES,
|
||||
wxGRIDTABLE_NOTIFY_ROWS_INSERTED,
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
wxGRIDTABLE_NOTIFY_ROWS_INSERTED = 2002,
|
||||
wxGRIDTABLE_NOTIFY_ROWS_APPENDED,
|
||||
wxGRIDTABLE_NOTIFY_ROWS_DELETED,
|
||||
wxGRIDTABLE_NOTIFY_COLS_INSERTED,
|
||||
@@ -826,25 +853,25 @@ public:
|
||||
|
||||
// these are pure virtual in wxGridTableBase
|
||||
//
|
||||
virtual int GetNumberRows() { return static_cast<int>(m_data.size()); }
|
||||
virtual int GetNumberCols() { return m_numCols; }
|
||||
virtual wxString GetValue( int row, int col );
|
||||
virtual void SetValue( int row, int col, const wxString& s );
|
||||
virtual int GetNumberRows() wxOVERRIDE { return static_cast<int>(m_data.size()); }
|
||||
virtual int GetNumberCols() wxOVERRIDE { return m_numCols; }
|
||||
virtual wxString GetValue( int row, int col ) wxOVERRIDE;
|
||||
virtual void SetValue( int row, int col, const wxString& s ) wxOVERRIDE;
|
||||
|
||||
// overridden functions from wxGridTableBase
|
||||
//
|
||||
void Clear();
|
||||
bool InsertRows( size_t pos = 0, size_t numRows = 1 );
|
||||
bool AppendRows( size_t numRows = 1 );
|
||||
bool DeleteRows( size_t pos = 0, size_t numRows = 1 );
|
||||
bool InsertCols( size_t pos = 0, size_t numCols = 1 );
|
||||
bool AppendCols( size_t numCols = 1 );
|
||||
bool DeleteCols( size_t pos = 0, size_t numCols = 1 );
|
||||
void Clear() wxOVERRIDE;
|
||||
bool InsertRows( size_t pos = 0, size_t numRows = 1 ) wxOVERRIDE;
|
||||
bool AppendRows( size_t numRows = 1 ) wxOVERRIDE;
|
||||
bool DeleteRows( size_t pos = 0, size_t numRows = 1 ) wxOVERRIDE;
|
||||
bool InsertCols( size_t pos = 0, size_t numCols = 1 ) wxOVERRIDE;
|
||||
bool AppendCols( size_t numCols = 1 ) wxOVERRIDE;
|
||||
bool DeleteCols( size_t pos = 0, size_t numCols = 1 ) wxOVERRIDE;
|
||||
|
||||
void SetRowLabelValue( int row, const wxString& );
|
||||
void SetColLabelValue( int col, const wxString& );
|
||||
wxString GetRowLabelValue( int row );
|
||||
wxString GetColLabelValue( int col );
|
||||
void SetRowLabelValue( int row, const wxString& ) wxOVERRIDE;
|
||||
void SetColLabelValue( int col, const wxString& ) wxOVERRIDE;
|
||||
wxString GetRowLabelValue( int row ) wxOVERRIDE;
|
||||
wxString GetColLabelValue( int col ) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxGridStringArray m_data;
|
||||
@@ -861,7 +888,7 @@ private:
|
||||
wxArrayString m_rowLabels;
|
||||
wxArrayString m_colLabels;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY( wxGridStringTable )
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxGridStringTable);
|
||||
};
|
||||
|
||||
|
||||
@@ -1083,7 +1110,7 @@ public:
|
||||
|
||||
int GetBatchCount() { return m_batchCount; }
|
||||
|
||||
virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL);
|
||||
virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL) wxOVERRIDE;
|
||||
|
||||
// Use this, rather than wxWindow::Refresh(), to force an
|
||||
// immediate repainting of the grid. Has no effect if you are
|
||||
@@ -1424,15 +1451,10 @@ public:
|
||||
if ( m_colAt.IsEmpty() )
|
||||
return idx;
|
||||
|
||||
for ( int i = 0; i < m_numCols; i++ )
|
||||
{
|
||||
if ( m_colAt[i] == idx )
|
||||
return i;
|
||||
}
|
||||
int pos = m_colAt.Index(idx);
|
||||
wxASSERT_MSG( pos != wxNOT_FOUND, "invalid column index" );
|
||||
|
||||
wxFAIL_MSG( "invalid column index" );
|
||||
|
||||
return wxNOT_FOUND;
|
||||
return pos;
|
||||
}
|
||||
|
||||
// reset the columns positions to the default order
|
||||
@@ -1642,7 +1664,7 @@ public:
|
||||
|
||||
// ------- drag and drop
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
virtual void SetDropTarget(wxDropTarget *dropTarget);
|
||||
virtual void SetDropTarget(wxDropTarget *dropTarget) wxOVERRIDE;
|
||||
#endif // wxUSE_DRAG_AND_DROP
|
||||
|
||||
|
||||
@@ -1838,16 +1860,16 @@ public:
|
||||
|
||||
|
||||
// override some base class functions
|
||||
virtual bool Enable(bool enable = true);
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl()
|
||||
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE
|
||||
{ return (wxWindow*)m_gridWin; }
|
||||
virtual void Fit();
|
||||
virtual void Fit() wxOVERRIDE;
|
||||
|
||||
// implementation only
|
||||
void CancelMouseCapture();
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
bool m_created;
|
||||
|
||||
@@ -2098,21 +2120,21 @@ protected:
|
||||
|
||||
// generate the appropriate grid event and return -1 if it was vetoed, 1 if
|
||||
// it was processed (but not vetoed) and 0 if it wasn't processed
|
||||
int SendEvent(const wxEventType evtType,
|
||||
int SendEvent(wxEventType evtType,
|
||||
int row, int col,
|
||||
const wxMouseEvent& e);
|
||||
int SendEvent(const wxEventType evtType,
|
||||
int SendEvent(wxEventType evtType,
|
||||
const wxGridCellCoords& coords,
|
||||
const wxMouseEvent& e)
|
||||
{ return SendEvent(evtType, coords.GetRow(), coords.GetCol(), e); }
|
||||
int SendEvent(const wxEventType evtType,
|
||||
int SendEvent(wxEventType evtType,
|
||||
int row, int col,
|
||||
const wxString& s = wxString());
|
||||
int SendEvent(const wxEventType evtType,
|
||||
int SendEvent(wxEventType evtType,
|
||||
const wxGridCellCoords& coords,
|
||||
const wxString& s = wxString())
|
||||
{ return SendEvent(evtType, coords.GetRow(), coords.GetCol(), s); }
|
||||
int SendEvent(const wxEventType evtType, const wxString& s = wxString())
|
||||
int SendEvent(wxEventType evtType, const wxString& s = wxString())
|
||||
{ return SendEvent(evtType, m_currentCellCoords, s); }
|
||||
|
||||
// send wxEVT_GRID_{ROW,COL}_SIZE or wxEVT_GRID_COL_AUTO_SIZE, return true
|
||||
@@ -2145,11 +2167,6 @@ protected:
|
||||
{ UpdateBlockBeingSelected(topLeft.GetRow(), topLeft.GetCol(),
|
||||
bottomRight.GetRow(), bottomRight.GetCol()); }
|
||||
|
||||
// ------ functions to get/send data (see also public functions)
|
||||
//
|
||||
bool GetModelValues();
|
||||
bool SetModelValues();
|
||||
|
||||
friend class WXDLLIMPEXP_FWD_ADV wxGridSelection;
|
||||
friend class wxGridRowOperations;
|
||||
friend class wxGridColumnOperations;
|
||||
@@ -2166,7 +2183,7 @@ protected:
|
||||
private:
|
||||
|
||||
// implement wxScrolledWindow method to return m_gridWin size
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size);
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size) wxOVERRIDE;
|
||||
|
||||
// redraw the grid lines, should be called after changing their attributes
|
||||
void RedrawGridLines();
|
||||
@@ -2329,8 +2346,8 @@ private:
|
||||
wxGridFixedIndicesSet *m_setFixedRows,
|
||||
*m_setFixedCols;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS( wxGrid )
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGrid);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGrid);
|
||||
};
|
||||
|
||||
@@ -2420,7 +2437,7 @@ public:
|
||||
wxPoint GetPosition() { return wxPoint( m_x, m_y ); }
|
||||
bool Selecting() { return m_selecting; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_row;
|
||||
@@ -2439,7 +2456,7 @@ private:
|
||||
m_selecting = sel;
|
||||
}
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridEvent);
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_ADV wxGridSizeEvent : public wxNotifyEvent,
|
||||
@@ -2480,7 +2497,7 @@ public:
|
||||
int GetRowOrCol() { return m_rowOrCol; }
|
||||
wxPoint GetPosition() { return wxPoint( m_x, m_y ); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridSizeEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridSizeEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_rowOrCol;
|
||||
@@ -2495,7 +2512,7 @@ private:
|
||||
m_y = y;
|
||||
}
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridSizeEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridSizeEvent);
|
||||
};
|
||||
|
||||
|
||||
@@ -2544,7 +2561,7 @@ public:
|
||||
int GetRightCol() { return m_bottomRight.GetCol(); }
|
||||
bool Selecting() { return m_selecting; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridRangeSelectEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridRangeSelectEvent(*this); }
|
||||
|
||||
protected:
|
||||
void Init(const wxGridCellCoords& topLeft,
|
||||
@@ -2560,7 +2577,7 @@ protected:
|
||||
wxGridCellCoords m_bottomRight;
|
||||
bool m_selecting;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridRangeSelectEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridRangeSelectEvent);
|
||||
};
|
||||
|
||||
|
||||
@@ -2585,14 +2602,14 @@ public:
|
||||
void SetCol(int col) { m_col = col; }
|
||||
void SetControl(wxControl* ctrl) { m_ctrl = ctrl; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridEditorCreatedEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridEditorCreatedEvent(*this); }
|
||||
|
||||
private:
|
||||
int m_row;
|
||||
int m_col;
|
||||
wxControl* m_ctrl;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridEditorCreatedEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxGridEditorCreatedEvent);
|
||||
};
|
||||
|
||||
|
||||
|
||||
+36
-24
@@ -29,15 +29,15 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
// return the string extent
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellStringRenderer; }
|
||||
|
||||
protected:
|
||||
@@ -63,14 +63,14 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellNumberRenderer; }
|
||||
|
||||
protected:
|
||||
@@ -98,18 +98,18 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
// parameters string format is "width[,precision[,format]]"
|
||||
// with format being one of f|e|g|E|F|G
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const;
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString GetString(const wxGrid& grid, int row, int col);
|
||||
@@ -133,15 +133,15 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
// return the checkmark size
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellBoolRenderer; }
|
||||
|
||||
private:
|
||||
@@ -166,17 +166,17 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const;
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE;
|
||||
|
||||
// output strptime()-like format string
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString GetString(const wxGrid& grid, int row, int col);
|
||||
@@ -201,18 +201,18 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const;
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE;
|
||||
|
||||
// parameters string format is "item1[,item2[...,itemN]]" where itemN will
|
||||
// be used if the cell value is N-1
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString GetString(const wxGrid& grid, int row, int col);
|
||||
@@ -231,14 +231,26 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual int GetBestHeight(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col,
|
||||
int width) wxOVERRIDE;
|
||||
|
||||
virtual int GetBestWidth(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col,
|
||||
int height) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellAutoWrapStringRenderer; }
|
||||
|
||||
private:
|
||||
|
||||
+66
-62
@@ -41,8 +41,8 @@ private:
|
||||
// a combobox within a set focus event.
|
||||
bool m_inSetFocus;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGridCellEditorEvtHandler)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGridCellEditorEvtHandler);
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridCellEditorEvtHandler);
|
||||
};
|
||||
|
||||
@@ -57,31 +57,33 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
virtual void SetSize(const wxRect& rect);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
virtual void SetSize(const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
virtual void PaintBackground(wxDC& dc,
|
||||
const wxRect& rectCell,
|
||||
const wxGridCellAttr& attr);
|
||||
const wxGridCellAttr& attr) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void HandleReturn(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void HandleReturn(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
// parameters string format is "max_width"
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
#if wxUSE_VALIDATORS
|
||||
virtual void SetValidator(const wxValidator& validator);
|
||||
#endif
|
||||
|
||||
virtual wxGridCellEditor *Clone() const;
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE;
|
||||
|
||||
// added GetValue so we can get the value which is in the control
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxTextCtrl *Text() const { return (wxTextCtrl *)m_control; }
|
||||
@@ -94,7 +96,9 @@ protected:
|
||||
|
||||
private:
|
||||
size_t m_maxChars; // max number of chars allowed
|
||||
#if wxUSE_VALIDATORS
|
||||
wxScopedPtr<wxValidator> m_validator;
|
||||
#endif
|
||||
wxString m_value;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridCellTextEditor);
|
||||
@@ -110,25 +114,25 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
// parameters string format is "min,max"
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellNumberEditor(m_min, m_max); }
|
||||
|
||||
// added GetValue so we can get the value which is in the control
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
#if wxUSE_SPINCTRL
|
||||
@@ -193,23 +197,23 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellFloatEditor(m_width, m_precision); }
|
||||
|
||||
// parameters string format is "width[,precision[,format]]"
|
||||
// format to choose beween f|e|g|E|G (f is used by default)
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// string representation of our value
|
||||
@@ -238,27 +242,27 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual void SetSize(const wxRect& rect);
|
||||
virtual void Show(bool show, wxGridCellAttr *attr = NULL);
|
||||
virtual void SetSize(const wxRect& rect) wxOVERRIDE;
|
||||
virtual void Show(bool show, wxGridCellAttr *attr = NULL) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingClick();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingClick() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellBoolEditor; }
|
||||
|
||||
// added GetValue so we can get the value which is in the control, see
|
||||
// also UseStringValues()
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
// set the string values returned by GetValue() for the true and false
|
||||
// states, respectively
|
||||
@@ -297,28 +301,28 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual void SetSize(const wxRect& rect);
|
||||
virtual void SetSize(const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
virtual void PaintBackground(wxDC& dc,
|
||||
const wxRect& rectCell,
|
||||
const wxGridCellAttr& attr);
|
||||
const wxGridCellAttr& attr) wxOVERRIDE;
|
||||
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
|
||||
// parameters string format is "item1[,item2[...,itemN]]"
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const;
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE;
|
||||
|
||||
// added GetValue so we can get the value which is in the control
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxComboBox *Combo() const { return (wxComboBox *)m_control; }
|
||||
@@ -340,12 +344,12 @@ public:
|
||||
wxGridCellEnumEditor( const wxString& choices = wxEmptyString );
|
||||
virtual ~wxGridCellEnumEditor() {}
|
||||
|
||||
virtual wxGridCellEditor* Clone() const;
|
||||
virtual wxGridCellEditor* Clone() const wxOVERRIDE;
|
||||
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
long m_index;
|
||||
@@ -361,9 +365,9 @@ public:
|
||||
wxGridCellAutoWrapStringEditor() : wxGridCellTextEditor() { }
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellAutoWrapStringEditor; }
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridCellAutoWrapStringEditor);
|
||||
|
||||
+8
-8
@@ -48,19 +48,19 @@ public:
|
||||
virtual ~wxHeaderCtrl();
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
|
||||
private:
|
||||
// implement base class pure virtuals
|
||||
virtual void DoSetCount(unsigned int count);
|
||||
virtual unsigned int DoGetCount() const;
|
||||
virtual void DoUpdate(unsigned int idx);
|
||||
virtual void DoSetCount(unsigned int count) wxOVERRIDE;
|
||||
virtual unsigned int DoGetCount() const wxOVERRIDE;
|
||||
virtual void DoUpdate(unsigned int idx) wxOVERRIDE;
|
||||
|
||||
virtual void DoScrollHorz(int dx);
|
||||
virtual void DoScrollHorz(int dx) wxOVERRIDE;
|
||||
|
||||
virtual void DoSetColumnsOrder(const wxArrayInt& order);
|
||||
virtual wxArrayInt DoGetColumnsOrder() const;
|
||||
virtual void DoSetColumnsOrder(const wxArrayInt& order) wxOVERRIDE;
|
||||
virtual wxArrayInt DoGetColumnsOrder() const wxOVERRIDE;
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
@@ -173,7 +173,7 @@ private:
|
||||
wxArrayInt m_colIndices;
|
||||
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxHeaderCtrl);
|
||||
};
|
||||
|
||||
|
||||
+14
-14
@@ -37,36 +37,36 @@ public:
|
||||
|
||||
// Set viewer: new name for SetBrowser
|
||||
virtual void SetViewer(const wxString& viewer = wxEmptyString,
|
||||
long flags = wxHELP_NETSCAPE);
|
||||
long flags = wxHELP_NETSCAPE) wxOVERRIDE;
|
||||
|
||||
virtual bool Initialize(const wxString& dir, int WXUNUSED(server))
|
||||
virtual bool Initialize(const wxString& dir, int WXUNUSED(server)) wxOVERRIDE
|
||||
{ return Initialize(dir); }
|
||||
|
||||
virtual bool Initialize(const wxString& dir);
|
||||
virtual bool LoadFile(const wxString& file = wxEmptyString);
|
||||
virtual bool DisplayContents(void);
|
||||
virtual bool DisplaySection(int sectionNo);
|
||||
virtual bool DisplaySection(const wxString& section);
|
||||
virtual bool DisplayBlock(long blockNo);
|
||||
virtual bool Initialize(const wxString& dir) wxOVERRIDE;
|
||||
virtual bool LoadFile(const wxString& file = wxEmptyString) wxOVERRIDE;
|
||||
virtual bool DisplayContents(void) wxOVERRIDE;
|
||||
virtual bool DisplaySection(int sectionNo) wxOVERRIDE;
|
||||
virtual bool DisplaySection(const wxString& section) wxOVERRIDE;
|
||||
virtual bool DisplayBlock(long blockNo) wxOVERRIDE;
|
||||
virtual bool KeywordSearch(const wxString& k,
|
||||
wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
|
||||
wxHelpSearchMode mode = wxHELP_SEARCH_ALL) wxOVERRIDE;
|
||||
|
||||
virtual bool Quit(void);
|
||||
virtual void OnQuit(void);
|
||||
virtual bool Quit(void) wxOVERRIDE;
|
||||
virtual void OnQuit(void) wxOVERRIDE;
|
||||
|
||||
virtual bool DisplayHelp(const wxString &) ;
|
||||
|
||||
virtual void SetFrameParameters(const wxString& WXUNUSED(title),
|
||||
const wxSize& WXUNUSED(size),
|
||||
const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
|
||||
bool WXUNUSED(newFrameEachTime) = false)
|
||||
bool WXUNUSED(newFrameEachTime) = false) wxOVERRIDE
|
||||
{
|
||||
// does nothing by default
|
||||
}
|
||||
|
||||
virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL,
|
||||
wxPoint *WXUNUSED(pos) = NULL,
|
||||
bool *WXUNUSED(newFrameEachTime) = NULL)
|
||||
bool *WXUNUSED(newFrameEachTime) = NULL) wxOVERRIDE
|
||||
{
|
||||
return NULL; // does nothing by default
|
||||
}
|
||||
@@ -97,7 +97,7 @@ private:
|
||||
// Is the viewer a variant of netscape?
|
||||
bool m_BrowserIsNetscape;
|
||||
|
||||
DECLARE_CLASS(wxExtHelpController)
|
||||
wxDECLARE_CLASS(wxExtHelpController);
|
||||
};
|
||||
|
||||
#endif // wxUSE_HELP
|
||||
|
||||
+2
-2
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
// unhide the base class version
|
||||
virtual bool LoadFile(const wxString& name,
|
||||
wxBitmapType flags = wxICON_DEFAULT_TYPE)
|
||||
wxBitmapType flags = wxICON_DEFAULT_TYPE) wxOVERRIDE
|
||||
{ return wxBitmap::LoadFile(name, flags); }
|
||||
|
||||
// create from bitmap (which should have a mask unless it's monochrome):
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
void CopyFromBitmap(const wxBitmap& bmp);
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxIcon)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxIcon);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_ICON_H_
|
||||
+4
-3
@@ -10,7 +10,7 @@
|
||||
#ifndef _WX_IMAGLISTG_H_
|
||||
#define _WX_IMAGLISTG_H_
|
||||
|
||||
#include "wx/list.h"
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxDC;
|
||||
class WXDLLIMPEXP_FWD_CORE wxBitmap;
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
|
||||
virtual int GetImageCount() const;
|
||||
virtual bool GetSize( int index, int &width, int &height ) const;
|
||||
virtual wxSize GetSize() const { return wxSize(m_width, m_height); }
|
||||
|
||||
int Add( const wxBitmap& bitmap );
|
||||
int Add( const wxBitmap& bitmap, const wxBitmap& mask );
|
||||
@@ -52,7 +53,7 @@ private:
|
||||
int m_width;
|
||||
int m_height;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericImageList)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericImageList);
|
||||
};
|
||||
|
||||
#ifndef wxHAS_NATIVE_IMAGELIST
|
||||
@@ -64,7 +65,7 @@ private:
|
||||
|
||||
class WXDLLIMPEXP_CORE wxImageList: public wxGenericImageList
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxImageList)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxImageList);
|
||||
|
||||
public:
|
||||
wxImageList() {}
|
||||
|
||||
+12
-8
@@ -38,13 +38,17 @@ public:
|
||||
// ----------------------------
|
||||
|
||||
virtual void ShowMessage(const wxString& msg,
|
||||
int flags = wxICON_INFORMATION);
|
||||
int flags = wxICON_INFORMATION) wxOVERRIDE;
|
||||
|
||||
virtual void Dismiss();
|
||||
virtual void Dismiss() wxOVERRIDE;
|
||||
|
||||
virtual void AddButton(wxWindowID btnid, const wxString& label = wxString());
|
||||
virtual void AddButton(wxWindowID btnid, const wxString& label = wxString()) wxOVERRIDE;
|
||||
|
||||
virtual void RemoveButton(wxWindowID btnid);
|
||||
virtual void RemoveButton(wxWindowID btnid) wxOVERRIDE;
|
||||
|
||||
virtual size_t GetButtonCount() const wxOVERRIDE;
|
||||
virtual wxWindowID GetButtonId(size_t idx) const wxOVERRIDE;
|
||||
virtual bool HasButtonId(wxWindowID btnid) const wxOVERRIDE;
|
||||
|
||||
// methods specific to this version
|
||||
// --------------------------------
|
||||
@@ -77,15 +81,15 @@ public:
|
||||
|
||||
// setting the font of this window sets it for the text control inside it
|
||||
// (default font is a larger and bold version of the normal one)
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
|
||||
// same thing with the colour: this affects the text colour
|
||||
virtual bool SetForegroundColour(const wxColor& colour);
|
||||
virtual bool SetForegroundColour(const wxColor& colour) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// info bar shouldn't have any border by default, the colour difference
|
||||
// between it and the main window separates it well enough
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
||||
|
||||
// update the parent to take our new or changed size into account (notably
|
||||
@@ -127,7 +131,7 @@ private:
|
||||
m_hideEffect;
|
||||
int m_effectDuration;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxInfoBarGeneric);
|
||||
};
|
||||
|
||||
|
||||
+6
-6
@@ -87,7 +87,7 @@ public:
|
||||
void SetAlignment(wxLayoutAlignment align) { m_alignment = align; }
|
||||
wxLayoutAlignment GetAlignment() const { return m_alignment; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxQueryLayoutInfoEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxQueryLayoutInfoEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_flags;
|
||||
@@ -97,7 +97,7 @@ protected:
|
||||
wxLayoutAlignment m_alignment;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxQueryLayoutInfoEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxQueryLayoutInfoEvent);
|
||||
};
|
||||
|
||||
typedef void (wxEvtHandler::*wxQueryLayoutInfoEventFunction)(wxQueryLayoutInfoEvent&);
|
||||
@@ -130,14 +130,14 @@ public:
|
||||
void SetRect(const wxRect& rect) { m_rect = rect; }
|
||||
wxRect GetRect() const { return m_rect; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxCalculateLayoutEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxCalculateLayoutEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_flags;
|
||||
wxRect m_rect;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxCalculateLayoutEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxCalculateLayoutEvent);
|
||||
};
|
||||
|
||||
typedef void (wxEvtHandler::*wxCalculateLayoutEventFunction)(wxCalculateLayoutEvent&);
|
||||
@@ -195,8 +195,8 @@ private:
|
||||
wxSize m_defaultSize;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSashLayoutWindow)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxSashLayoutWindow);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // wxUSE_SASH
|
||||
|
||||
+41
-38
@@ -63,10 +63,10 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString &name = wxListCtrlNameStr);
|
||||
|
||||
bool GetColumn( int col, wxListItem& item ) const;
|
||||
bool SetColumn( int col, const wxListItem& item );
|
||||
int GetColumnWidth( int col ) const;
|
||||
bool SetColumnWidth( int col, int width);
|
||||
bool GetColumn( int col, wxListItem& item ) const wxOVERRIDE;
|
||||
bool SetColumn( int col, const wxListItem& item ) wxOVERRIDE;
|
||||
int GetColumnWidth( int col ) const wxOVERRIDE;
|
||||
bool SetColumnWidth( int col, int width) wxOVERRIDE;
|
||||
int GetCountPerPage() const; // not the same in wxGLC as in Windows, I think
|
||||
wxRect GetViewRect() const;
|
||||
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
bool GetItemPosition( long item, wxPoint& pos ) const;
|
||||
bool SetItemPosition( long item, const wxPoint& pos ); // not supported in wxGLC
|
||||
int GetItemCount() const;
|
||||
int GetColumnCount() const;
|
||||
int GetColumnCount() const wxOVERRIDE;
|
||||
void SetItemSpacing( int spacing, bool isSmall = false );
|
||||
wxSize GetItemSpacing() const;
|
||||
void SetItemTextColour( long item, const wxColour& col);
|
||||
@@ -101,25 +101,34 @@ public:
|
||||
void SetTextColour(const wxColour& col);
|
||||
long GetTopItem() const;
|
||||
|
||||
virtual bool HasCheckboxes() const wxOVERRIDE;
|
||||
virtual bool EnableCheckboxes(bool enable = true) wxOVERRIDE;
|
||||
virtual bool IsItemChecked(long item) const wxOVERRIDE;
|
||||
virtual void CheckItem(long item, bool check) wxOVERRIDE;
|
||||
|
||||
void SetSingleStyle( long style, bool add = true ) ;
|
||||
void SetWindowStyleFlag( long style );
|
||||
void SetWindowStyleFlag( long style ) wxOVERRIDE;
|
||||
void RecreateWindow() {}
|
||||
long GetNextItem( long item, int geometry = wxLIST_NEXT_ALL, int state = wxLIST_STATE_DONTCARE ) const;
|
||||
wxImageList *GetImageList( int which ) const;
|
||||
void SetImageList( wxImageList *imageList, int which );
|
||||
void AssignImageList( wxImageList *imageList, int which );
|
||||
wxImageList *GetImageList( int which ) const wxOVERRIDE;
|
||||
void SetImageList( wxImageList *imageList, int which ) wxOVERRIDE;
|
||||
void AssignImageList( wxImageList *imageList, int which ) wxOVERRIDE;
|
||||
bool Arrange( int flag = wxLIST_ALIGN_DEFAULT ); // always wxLIST_ALIGN_LEFT in wxGLC
|
||||
|
||||
void ClearAll();
|
||||
bool DeleteItem( long item );
|
||||
bool DeleteAllItems();
|
||||
bool DeleteAllColumns();
|
||||
bool DeleteColumn( int col );
|
||||
bool DeleteAllColumns() wxOVERRIDE;
|
||||
bool DeleteColumn( int col ) wxOVERRIDE;
|
||||
|
||||
void SetItemCount(long count);
|
||||
|
||||
wxTextCtrl *EditLabel(long item,
|
||||
wxClassInfo* textControlClass = wxCLASSINFO(wxTextCtrl));
|
||||
|
||||
// End label editing, optionally cancelling the edit
|
||||
bool EndEditLabel(bool cancel);
|
||||
|
||||
wxTextCtrl* GetEditControl() const;
|
||||
void Edit( long item ) { EditLabel(item); }
|
||||
|
||||
@@ -143,18 +152,12 @@ public:
|
||||
void RefreshItem(long item);
|
||||
void RefreshItems(long itemFrom, long itemTo);
|
||||
|
||||
virtual void EnableBellOnNoMatch(bool on = true);
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// obsolete, don't use
|
||||
wxDEPRECATED( int GetItemSpacing( bool isSmall ) const );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
virtual void EnableBellOnNoMatch(bool on = true) wxOVERRIDE;
|
||||
|
||||
// overridden base class virtuals
|
||||
// ------------------------------
|
||||
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||
{
|
||||
return GetClassDefaultAttributes(GetWindowVariant());
|
||||
}
|
||||
@@ -162,7 +165,7 @@ public:
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
virtual void Update();
|
||||
virtual void Update() wxOVERRIDE;
|
||||
|
||||
|
||||
// implementation only from now on
|
||||
@@ -171,25 +174,25 @@ public:
|
||||
// generic version extension, don't use in portable code
|
||||
bool Update( long item );
|
||||
|
||||
void OnInternalIdle( );
|
||||
void OnInternalIdle( ) wxOVERRIDE;
|
||||
|
||||
// We have to hand down a few functions
|
||||
virtual void Refresh(bool eraseBackground = true,
|
||||
const wxRect *rect = NULL);
|
||||
const wxRect *rect = NULL) wxOVERRIDE;
|
||||
|
||||
virtual bool SetBackgroundColour( const wxColour &colour );
|
||||
virtual bool SetForegroundColour( const wxColour &colour );
|
||||
virtual bool SetBackgroundColour( const wxColour &colour ) wxOVERRIDE;
|
||||
virtual bool SetForegroundColour( const wxColour &colour ) wxOVERRIDE;
|
||||
virtual wxColour GetBackgroundColour() const;
|
||||
virtual wxColour GetForegroundColour() const;
|
||||
virtual bool SetFont( const wxFont &font );
|
||||
virtual bool SetCursor( const wxCursor &cursor );
|
||||
virtual bool SetFont( const wxFont &font ) wxOVERRIDE;
|
||||
virtual bool SetCursor( const wxCursor &cursor ) wxOVERRIDE;
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
||||
virtual wxDropTarget *GetDropTarget() const;
|
||||
virtual void SetDropTarget( wxDropTarget *dropTarget ) wxOVERRIDE;
|
||||
virtual wxDropTarget *GetDropTarget() const wxOVERRIDE;
|
||||
#endif
|
||||
|
||||
virtual bool ShouldInheritColours() const { return false; }
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE { return false; }
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
@@ -205,12 +208,12 @@ public:
|
||||
|
||||
protected:
|
||||
// Implement base class pure virtual methods.
|
||||
long DoInsertColumn(long col, const wxListItem& info);
|
||||
long DoInsertColumn(long col, const wxListItem& info) wxOVERRIDE;
|
||||
|
||||
|
||||
virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
|
||||
virtual bool DoPopupMenu( wxMenu *menu, int x, int y ) wxOVERRIDE;
|
||||
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
// return the text for the given column of the given item
|
||||
virtual wxString OnGetItemText(long item, long column) const;
|
||||
@@ -226,9 +229,9 @@ protected:
|
||||
// it calls our OnGetXXX() functions
|
||||
friend class WXDLLIMPEXP_FWD_CORE wxListMainWindow;
|
||||
|
||||
virtual wxBorder GetDefaultBorder() const;
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size);
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void CreateOrDestroyHeaderWindowAsNeeded();
|
||||
@@ -237,15 +240,15 @@ private:
|
||||
|
||||
// we need to return a special WM_GETDLGCODE value to process just the
|
||||
// arrows but let the other navigation characters through
|
||||
#if defined(__WXMSW__) && !defined(__WXWINCE__) && !defined(__WXUNIVERSAL__)
|
||||
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
|
||||
virtual WXLRESULT
|
||||
MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
||||
#endif // __WXMSW__
|
||||
|
||||
WX_FORWARD_TO_SCROLL_HELPER()
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericListCtrl)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericListCtrl);
|
||||
};
|
||||
|
||||
#if (!defined(__WXMSW__) || defined(__WXUNIVERSAL__)) && (!(defined(__WXMAC__) && wxOSX_USE_CARBON) || defined(__WXUNIVERSAL__ ))
|
||||
@@ -256,7 +259,7 @@ private:
|
||||
|
||||
class WXDLLIMPEXP_CORE wxListCtrl: public wxGenericListCtrl
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxListCtrl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxListCtrl);
|
||||
|
||||
public:
|
||||
wxListCtrl() {}
|
||||
|
||||
+4
-4
@@ -33,7 +33,7 @@ public:
|
||||
|
||||
protected:
|
||||
// implement sink function
|
||||
virtual void DoLogText(const wxString& msg);
|
||||
virtual void DoLogText(const wxString& msg) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// the control we use
|
||||
@@ -57,12 +57,12 @@ public:
|
||||
wxLogGui();
|
||||
|
||||
// show all messages that were logged since the last Flush()
|
||||
virtual void Flush();
|
||||
virtual void Flush() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void DoLogRecord(wxLogLevel level,
|
||||
const wxString& msg,
|
||||
const wxLogRecordInfo& info);
|
||||
const wxLogRecordInfo& info) wxOVERRIDE;
|
||||
|
||||
// return the title to be used for the log dialog, depending on m_bErrors
|
||||
// and m_bWarnings values
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
virtual void OnFrameDelete(wxFrame *frame);
|
||||
|
||||
protected:
|
||||
virtual void DoLogTextAtLevel(wxLogLevel level, const wxString& msg);
|
||||
virtual void DoLogTextAtLevel(wxLogLevel level, const wxString& msg) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxLogFrame *m_pLogFrame; // the log frame
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ private:
|
||||
|
||||
wxBitmap m_bitmap;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMask)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxMask);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_MASKG_H_
|
||||
|
||||
+5
-5
@@ -124,8 +124,8 @@ private:
|
||||
// and we forwarded the event to this child (as we do with menu events)
|
||||
wxMDIChildFrameBase *m_childHandler;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericMDIParentFrame)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericMDIParentFrame);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -202,8 +202,8 @@ private:
|
||||
void OnMenuHighlight(wxMenuEvent& event);
|
||||
void OnClose(wxCloseEvent& event);
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericMDIChildFrame)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericMDIChildFrame);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
friend class wxGenericMDIClientWindow;
|
||||
};
|
||||
@@ -243,7 +243,7 @@ private:
|
||||
// the notebook containing all MDI children as its pages
|
||||
wxNotebook *m_notebook;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericMDIClientWindow)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericMDIClientWindow);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
+3
-3
@@ -22,7 +22,7 @@ public:
|
||||
long style = wxOK|wxCENTRE,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
|
||||
virtual int ShowModal();
|
||||
virtual int ShowModal() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// Creates a message dialog taking any options that have been set after
|
||||
@@ -48,8 +48,8 @@ private:
|
||||
wxPoint m_pos;
|
||||
bool m_created;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericMessageDialog);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_MSGDLGG_H_
|
||||
+2
-2
@@ -148,8 +148,8 @@ protected:
|
||||
|
||||
wxTabView* m_tabView;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxNotebook)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxNotebook);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // _WX_NOTEBOOK_H_
|
||||
+10
-23
@@ -10,8 +10,6 @@
|
||||
#ifndef _WX_GENERIC_NOTIFMSG_H_
|
||||
#define _WX_GENERIC_NOTIFMSG_H_
|
||||
|
||||
class wxNotificationMessageDialog;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGenericNotificationMessage
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -19,40 +17,29 @@ class wxNotificationMessageDialog;
|
||||
class WXDLLIMPEXP_ADV wxGenericNotificationMessage : public wxNotificationMessageBase
|
||||
{
|
||||
public:
|
||||
wxGenericNotificationMessage() { Init(); }
|
||||
wxGenericNotificationMessage(const wxString& title,
|
||||
const wxString& message = wxString(),
|
||||
wxWindow *parent = NULL,
|
||||
int flags = wxICON_INFORMATION)
|
||||
: wxNotificationMessageBase(title, message, parent, flags)
|
||||
wxGenericNotificationMessage()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
virtual ~wxGenericNotificationMessage();
|
||||
|
||||
|
||||
virtual bool Show(int timeout = Timeout_Auto);
|
||||
virtual bool Close();
|
||||
wxGenericNotificationMessage(const wxString& title,
|
||||
const wxString& message = wxString(),
|
||||
wxWindow *parent = NULL,
|
||||
int flags = wxICON_INFORMATION)
|
||||
{
|
||||
Init();
|
||||
Create(title, message, parent, flags);
|
||||
}
|
||||
|
||||
// generic implementation-specific methods
|
||||
|
||||
// get/set the default timeout (used if Timeout_Auto is specified)
|
||||
static int GetDefaultTimeout() { return ms_timeout; }
|
||||
static int GetDefaultTimeout();
|
||||
static void SetDefaultTimeout(int timeout);
|
||||
|
||||
private:
|
||||
void Init();
|
||||
|
||||
|
||||
// default timeout
|
||||
static int ms_timeout;
|
||||
|
||||
// notification message is represented by a modeless dialog in this
|
||||
// implementation
|
||||
wxNotificationMessageDialog *m_dialog;
|
||||
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericNotificationMessage);
|
||||
};
|
||||
|
||||
|
||||
+18
-3
@@ -30,12 +30,27 @@
|
||||
class WXDLLIMPEXP_CORE wxNumberEntryDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
wxNumberEntryDialog()
|
||||
{
|
||||
m_value = m_min = m_max = 0;
|
||||
}
|
||||
|
||||
wxNumberEntryDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& prompt,
|
||||
const wxString& caption,
|
||||
long value, long min, long max,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
const wxPoint& pos = wxDefaultPosition)
|
||||
{
|
||||
Create(parent, message, prompt, caption, value, min, max, pos);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& prompt,
|
||||
const wxString& caption,
|
||||
long value, long min, long max,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
|
||||
long GetValue() const { return m_value; }
|
||||
|
||||
@@ -54,8 +69,8 @@ protected:
|
||||
long m_value, m_min, m_max;
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxNumberEntryDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxNumberEntryDialog);
|
||||
wxDECLARE_NO_COPY_CLASS(wxNumberEntryDialog);
|
||||
};
|
||||
|
||||
|
||||
+4
-4
@@ -37,14 +37,14 @@ public:
|
||||
int GetPixel( unsigned char red, unsigned char green, unsigned char blue ) const;
|
||||
bool GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const;
|
||||
|
||||
virtual int GetColoursCount() const;
|
||||
virtual int GetColoursCount() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
||||
virtual wxGDIRefData *CreateGDIRefData() const wxOVERRIDE;
|
||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPalette)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPalette);
|
||||
};
|
||||
|
||||
#endif // __WX_PALETTEG_H__
|
||||
+7
-7
@@ -26,12 +26,12 @@ public:
|
||||
wxPostScriptPrinter(wxPrintDialogData *data = NULL);
|
||||
virtual ~wxPostScriptPrinter();
|
||||
|
||||
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
|
||||
virtual wxDC* PrintDialog(wxWindow *parent);
|
||||
virtual bool Setup(wxWindow *parent);
|
||||
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true) wxOVERRIDE;
|
||||
virtual wxDC* PrintDialog(wxWindow *parent) wxOVERRIDE;
|
||||
virtual bool Setup(wxWindow *parent) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPostScriptPrinter);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -51,14 +51,14 @@ public:
|
||||
|
||||
virtual ~wxPostScriptPrintPreview();
|
||||
|
||||
virtual bool Print(bool interactive);
|
||||
virtual void DetermineScaling();
|
||||
virtual bool Print(bool interactive) wxOVERRIDE;
|
||||
virtual void DetermineScaling() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
||||
|
||||
private:
|
||||
DECLARE_CLASS(wxPostScriptPrintPreview)
|
||||
wxDECLARE_CLASS(wxPostScriptPrintPreview);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/generic/private/addremovectrl.h
|
||||
// Purpose: Generic wxAddRemoveImpl implementation, also used in wxMSW
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2015-02-05
|
||||
// Copyright: (c) 2015 Vadim Zeitlin <[email protected]>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GENERIC_PRIVATE_ADDREMOVECTRL_H_
|
||||
#define _WX_GENERIC_PRIVATE_ADDREMOVECTRL_H_
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxAddRemoveImpl
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxAddRemoveImpl : public wxAddRemoveImplWithButtons
|
||||
{
|
||||
public:
|
||||
wxAddRemoveImpl(wxAddRemoveAdaptor* adaptor,
|
||||
wxAddRemoveCtrl* parent,
|
||||
wxWindow* ctrlItems)
|
||||
: wxAddRemoveImplWithButtons(adaptor, parent, ctrlItems)
|
||||
{
|
||||
m_btnAdd = new wxButton(parent, wxID_ADD, GetAddButtonLabel(),
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
wxBU_EXACTFIT | wxBORDER_NONE);
|
||||
m_btnRemove = new wxButton(parent, wxID_REMOVE, GetRemoveButtonLabel(),
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
wxBU_EXACTFIT | wxBORDER_NONE);
|
||||
|
||||
wxSizer* const sizerBtns = new wxBoxSizer(wxVERTICAL);
|
||||
sizerBtns->Add(m_btnAdd, wxSizerFlags().Expand());
|
||||
sizerBtns->Add(m_btnRemove, wxSizerFlags().Expand());
|
||||
|
||||
wxSizer* const sizerTop = new wxBoxSizer(wxHORIZONTAL);
|
||||
sizerTop->Add(ctrlItems, wxSizerFlags(1).Expand());
|
||||
sizerTop->Add(sizerBtns, wxSizerFlags().Centre().Border(wxLEFT));
|
||||
parent->SetSizer(sizerTop);
|
||||
|
||||
SetUpEvents();
|
||||
}
|
||||
|
||||
private:
|
||||
static wxString GetAddButtonLabel()
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
return wchar_t(0xFF0B); // FULLWIDTH PLUS SIGN
|
||||
#else
|
||||
return "+";
|
||||
#endif
|
||||
}
|
||||
|
||||
static wxString GetRemoveButtonLabel()
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
return wchar_t(0x2012); // FIGURE DASH
|
||||
#else
|
||||
return "-";
|
||||
#endif
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_PRIVATE_ADDREMOVECTRL_H_
|
||||
+87
-87
@@ -92,11 +92,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual wxString GetTitle() const { return m_grid->GetColLabelValue(m_col); }
|
||||
virtual wxBitmap GetBitmap() const { return wxNullBitmap; }
|
||||
virtual int GetWidth() const { return m_grid->GetColSize(m_col); }
|
||||
virtual int GetMinWidth() const { return 0; }
|
||||
virtual wxAlignment GetAlignment() const
|
||||
virtual wxString GetTitle() const wxOVERRIDE { return m_grid->GetColLabelValue(m_col); }
|
||||
virtual wxBitmap GetBitmap() const wxOVERRIDE { return wxNullBitmap; }
|
||||
virtual int GetWidth() const wxOVERRIDE { return m_grid->GetColSize(m_col); }
|
||||
virtual int GetMinWidth() const wxOVERRIDE { return 0; }
|
||||
virtual wxAlignment GetAlignment() const wxOVERRIDE
|
||||
{
|
||||
int horz,
|
||||
vert;
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
return static_cast<wxAlignment>(horz);
|
||||
}
|
||||
|
||||
virtual int GetFlags() const
|
||||
virtual int GetFlags() const wxOVERRIDE
|
||||
{
|
||||
// we can't know in advance whether we can sort by this column or not
|
||||
// with wxGrid API so suppose we can by default
|
||||
@@ -120,12 +120,12 @@ public:
|
||||
return flags;
|
||||
}
|
||||
|
||||
virtual bool IsSortKey() const
|
||||
virtual bool IsSortKey() const wxOVERRIDE
|
||||
{
|
||||
return m_grid->IsSortingBy(m_col);
|
||||
}
|
||||
|
||||
virtual bool IsSortOrderAscending() const
|
||||
virtual bool IsSortOrderAscending() const wxOVERRIDE
|
||||
{
|
||||
return m_grid->IsSortOrderAscending();
|
||||
}
|
||||
@@ -153,7 +153,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual const wxHeaderColumn& GetColumn(unsigned int idx) const
|
||||
virtual const wxHeaderColumn& GetColumn(unsigned int idx) const wxOVERRIDE
|
||||
{
|
||||
return m_columns[idx];
|
||||
}
|
||||
@@ -171,7 +171,7 @@ private:
|
||||
}
|
||||
|
||||
// override the base class method to update our m_columns array
|
||||
virtual void OnColumnCountChanging(unsigned int count)
|
||||
virtual void OnColumnCountChanging(unsigned int count) wxOVERRIDE
|
||||
{
|
||||
const unsigned countOld = m_columns.size();
|
||||
if ( count < countOld )
|
||||
@@ -191,7 +191,7 @@ private:
|
||||
}
|
||||
|
||||
// override to implement column auto sizing
|
||||
virtual bool UpdateColumnWidthToFit(unsigned int idx, int widthTitle)
|
||||
virtual bool UpdateColumnWidthToFit(unsigned int idx, int widthTitle) wxOVERRIDE
|
||||
{
|
||||
// TODO: currently grid doesn't support computing the column best width
|
||||
// from its contents so we just use the best label width as is
|
||||
@@ -201,7 +201,7 @@ private:
|
||||
}
|
||||
|
||||
// overridden to react to the actions using the columns popup menu
|
||||
virtual void UpdateColumnVisibility(unsigned int idx, bool show)
|
||||
virtual void UpdateColumnVisibility(unsigned int idx, bool show) wxOVERRIDE
|
||||
{
|
||||
GetOwner()->SetColSize(idx, show ? wxGRID_AUTOSIZE : 0);
|
||||
|
||||
@@ -213,7 +213,7 @@ private:
|
||||
|
||||
// overridden to react to the columns order changes in the customization
|
||||
// dialog
|
||||
virtual void UpdateColumnsOrder(const wxArrayInt& order)
|
||||
virtual void UpdateColumnsOrder(const wxArrayInt& order) wxOVERRIDE
|
||||
{
|
||||
GetOwner()->SetColumnsOrder(order);
|
||||
}
|
||||
@@ -285,7 +285,7 @@ private:
|
||||
|
||||
wxVector<wxGridHeaderColumn> m_columns;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridHeaderCtrl);
|
||||
};
|
||||
|
||||
@@ -304,9 +304,9 @@ public:
|
||||
m_owner = owner;
|
||||
}
|
||||
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl() { return m_owner; }
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE { return m_owner; }
|
||||
|
||||
virtual bool AcceptsFocus() const { return false; }
|
||||
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||
|
||||
wxGrid *GetOwner() { return m_owner; }
|
||||
|
||||
@@ -315,7 +315,7 @@ protected:
|
||||
|
||||
wxGrid *m_owner;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridSubwindow);
|
||||
};
|
||||
|
||||
@@ -333,7 +333,7 @@ private:
|
||||
void OnMouseEvent( wxMouseEvent& event );
|
||||
void OnMouseWheel( wxMouseEvent& event );
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridRowLabelWindow);
|
||||
};
|
||||
|
||||
@@ -352,7 +352,7 @@ private:
|
||||
void OnMouseEvent( wxMouseEvent& event );
|
||||
void OnMouseWheel( wxMouseEvent& event );
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridColLabelWindow);
|
||||
};
|
||||
|
||||
@@ -370,7 +370,7 @@ private:
|
||||
void OnMouseWheel( wxMouseEvent& event );
|
||||
void OnPaint( wxPaintEvent& event );
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridCornerLabelWindow);
|
||||
};
|
||||
|
||||
@@ -385,9 +385,9 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual void ScrollWindow( int dx, int dy, const wxRect *rect );
|
||||
virtual void ScrollWindow( int dx, int dy, const wxRect *rect ) wxOVERRIDE;
|
||||
|
||||
virtual bool AcceptsFocus() const { return true; }
|
||||
virtual bool AcceptsFocus() const wxOVERRIDE { return true; }
|
||||
|
||||
private:
|
||||
void OnPaint( wxPaintEvent &event );
|
||||
@@ -399,7 +399,7 @@ private:
|
||||
void OnEraseBackground( wxEraseEvent& );
|
||||
void OnFocus( wxFocusEvent& );
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridWindow);
|
||||
};
|
||||
|
||||
@@ -574,135 +574,135 @@ public:
|
||||
class wxGridRowOperations : public wxGridOperations
|
||||
{
|
||||
public:
|
||||
virtual wxGridOperations& Dual() const;
|
||||
virtual wxGridOperations& Dual() const wxOVERRIDE;
|
||||
|
||||
virtual int GetNumberOfLines(const wxGrid *grid) const
|
||||
virtual int GetNumberOfLines(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetNumberRows(); }
|
||||
|
||||
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const
|
||||
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const wxOVERRIDE
|
||||
{ return wxGrid::wxGridSelectRows; }
|
||||
|
||||
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const
|
||||
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const wxOVERRIDE
|
||||
{ return wxGridCellCoords(thisDir, otherDir); }
|
||||
|
||||
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const
|
||||
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const wxOVERRIDE
|
||||
{ return grid->CalcScrolledPosition(wxPoint(pos, 0)).x; }
|
||||
|
||||
virtual int Select(const wxGridCellCoords& c) const { return c.GetRow(); }
|
||||
virtual int Select(const wxPoint& pt) const { return pt.x; }
|
||||
virtual int Select(const wxSize& sz) const { return sz.x; }
|
||||
virtual int Select(const wxRect& r) const { return r.x; }
|
||||
virtual int& Select(wxRect& r) const { return r.x; }
|
||||
virtual int& SelectSize(wxRect& r) const { return r.width; }
|
||||
virtual wxSize MakeSize(int first, int second) const
|
||||
virtual int Select(const wxGridCellCoords& c) const wxOVERRIDE { return c.GetRow(); }
|
||||
virtual int Select(const wxPoint& pt) const wxOVERRIDE { return pt.x; }
|
||||
virtual int Select(const wxSize& sz) const wxOVERRIDE { return sz.x; }
|
||||
virtual int Select(const wxRect& r) const wxOVERRIDE { return r.x; }
|
||||
virtual int& Select(wxRect& r) const wxOVERRIDE { return r.x; }
|
||||
virtual int& SelectSize(wxRect& r) const wxOVERRIDE { return r.width; }
|
||||
virtual wxSize MakeSize(int first, int second) const wxOVERRIDE
|
||||
{ return wxSize(first, second); }
|
||||
virtual void Set(wxGridCellCoords& coords, int line) const
|
||||
virtual void Set(wxGridCellCoords& coords, int line) const wxOVERRIDE
|
||||
{ coords.SetRow(line); }
|
||||
|
||||
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const
|
||||
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const wxOVERRIDE
|
||||
{ dc.DrawLine(start, pos, end, pos); }
|
||||
|
||||
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const
|
||||
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const wxOVERRIDE
|
||||
{ return grid->YToRow(pos, clip); }
|
||||
virtual int GetLineStartPos(const wxGrid *grid, int line) const
|
||||
virtual int GetLineStartPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetRowTop(line); }
|
||||
virtual int GetLineEndPos(const wxGrid *grid, int line) const
|
||||
virtual int GetLineEndPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetRowBottom(line); }
|
||||
virtual int GetLineSize(const wxGrid *grid, int line) const
|
||||
virtual int GetLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetRowHeight(line); }
|
||||
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const
|
||||
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->m_rowBottoms; }
|
||||
virtual int GetDefaultLineSize(const wxGrid *grid) const
|
||||
virtual int GetDefaultLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetDefaultRowSize(); }
|
||||
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const
|
||||
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetRowMinimalAcceptableHeight(); }
|
||||
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const
|
||||
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetRowMinimalHeight(line); }
|
||||
virtual void SetLineSize(wxGrid *grid, int line, int size) const
|
||||
virtual void SetLineSize(wxGrid *grid, int line, int size) const wxOVERRIDE
|
||||
{ grid->SetRowSize(line, size); }
|
||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const wxOVERRIDE
|
||||
{ grid->SetDefaultRowSize(size, resizeExisting); }
|
||||
|
||||
virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int pos) const
|
||||
virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int pos) const wxOVERRIDE
|
||||
{ return pos; } // TODO: implement row reordering
|
||||
virtual int GetLinePos(const wxGrid * WXUNUSED(grid), int line) const
|
||||
virtual int GetLinePos(const wxGrid * WXUNUSED(grid), int line) const wxOVERRIDE
|
||||
{ return line; } // TODO: implement row reordering
|
||||
|
||||
virtual int GetLineBefore(const wxGrid* WXUNUSED(grid), int line) const
|
||||
virtual int GetLineBefore(const wxGrid* WXUNUSED(grid), int line) const wxOVERRIDE
|
||||
{ return line - 1; }
|
||||
|
||||
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const
|
||||
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetGridRowLabelWindow(); }
|
||||
virtual int GetHeaderWindowSize(wxGrid *grid) const
|
||||
virtual int GetHeaderWindowSize(wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetRowLabelSize(); }
|
||||
};
|
||||
|
||||
class wxGridColumnOperations : public wxGridOperations
|
||||
{
|
||||
public:
|
||||
virtual wxGridOperations& Dual() const;
|
||||
virtual wxGridOperations& Dual() const wxOVERRIDE;
|
||||
|
||||
virtual int GetNumberOfLines(const wxGrid *grid) const
|
||||
virtual int GetNumberOfLines(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetNumberCols(); }
|
||||
|
||||
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const
|
||||
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const wxOVERRIDE
|
||||
{ return wxGrid::wxGridSelectColumns; }
|
||||
|
||||
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const
|
||||
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const wxOVERRIDE
|
||||
{ return wxGridCellCoords(otherDir, thisDir); }
|
||||
|
||||
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const
|
||||
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const wxOVERRIDE
|
||||
{ return grid->CalcScrolledPosition(wxPoint(0, pos)).y; }
|
||||
|
||||
virtual int Select(const wxGridCellCoords& c) const { return c.GetCol(); }
|
||||
virtual int Select(const wxPoint& pt) const { return pt.y; }
|
||||
virtual int Select(const wxSize& sz) const { return sz.y; }
|
||||
virtual int Select(const wxRect& r) const { return r.y; }
|
||||
virtual int& Select(wxRect& r) const { return r.y; }
|
||||
virtual int& SelectSize(wxRect& r) const { return r.height; }
|
||||
virtual wxSize MakeSize(int first, int second) const
|
||||
virtual int Select(const wxGridCellCoords& c) const wxOVERRIDE { return c.GetCol(); }
|
||||
virtual int Select(const wxPoint& pt) const wxOVERRIDE { return pt.y; }
|
||||
virtual int Select(const wxSize& sz) const wxOVERRIDE { return sz.y; }
|
||||
virtual int Select(const wxRect& r) const wxOVERRIDE { return r.y; }
|
||||
virtual int& Select(wxRect& r) const wxOVERRIDE { return r.y; }
|
||||
virtual int& SelectSize(wxRect& r) const wxOVERRIDE { return r.height; }
|
||||
virtual wxSize MakeSize(int first, int second) const wxOVERRIDE
|
||||
{ return wxSize(second, first); }
|
||||
virtual void Set(wxGridCellCoords& coords, int line) const
|
||||
virtual void Set(wxGridCellCoords& coords, int line) const wxOVERRIDE
|
||||
{ coords.SetCol(line); }
|
||||
|
||||
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const
|
||||
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const wxOVERRIDE
|
||||
{ dc.DrawLine(pos, start, pos, end); }
|
||||
|
||||
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const
|
||||
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const wxOVERRIDE
|
||||
{ return grid->XToCol(pos, clip); }
|
||||
virtual int GetLineStartPos(const wxGrid *grid, int line) const
|
||||
virtual int GetLineStartPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetColLeft(line); }
|
||||
virtual int GetLineEndPos(const wxGrid *grid, int line) const
|
||||
virtual int GetLineEndPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetColRight(line); }
|
||||
virtual int GetLineSize(const wxGrid *grid, int line) const
|
||||
virtual int GetLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetColWidth(line); }
|
||||
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const
|
||||
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->m_colRights; }
|
||||
virtual int GetDefaultLineSize(const wxGrid *grid) const
|
||||
virtual int GetDefaultLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetDefaultColSize(); }
|
||||
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const
|
||||
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetColMinimalAcceptableWidth(); }
|
||||
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const
|
||||
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetColMinimalWidth(line); }
|
||||
virtual void SetLineSize(wxGrid *grid, int line, int size) const
|
||||
virtual void SetLineSize(wxGrid *grid, int line, int size) const wxOVERRIDE
|
||||
{ grid->SetColSize(line, size); }
|
||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const wxOVERRIDE
|
||||
{ grid->SetDefaultColSize(size, resizeExisting); }
|
||||
|
||||
virtual int GetLineAt(const wxGrid *grid, int pos) const
|
||||
virtual int GetLineAt(const wxGrid *grid, int pos) const wxOVERRIDE
|
||||
{ return grid->GetColAt(pos); }
|
||||
virtual int GetLinePos(const wxGrid *grid, int line) const
|
||||
virtual int GetLinePos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||
{ return grid->GetColPos(line); }
|
||||
|
||||
virtual int GetLineBefore(const wxGrid* grid, int line) const
|
||||
virtual int GetLineBefore(const wxGrid* grid, int line) const wxOVERRIDE
|
||||
{
|
||||
int posBefore = grid->GetColPos(line) - 1;
|
||||
return posBefore >= 0 ? grid->GetColAt(posBefore) : wxNOT_FOUND;
|
||||
}
|
||||
|
||||
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const
|
||||
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetGridColLabelWindow(); }
|
||||
virtual int GetHeaderWindowSize(wxGrid *grid) const
|
||||
virtual int GetHeaderWindowSize(wxGrid *grid) const wxOVERRIDE
|
||||
{ return grid->GetColLabelSize(); }
|
||||
};
|
||||
|
||||
@@ -787,7 +787,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const
|
||||
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const wxOVERRIDE
|
||||
{
|
||||
wxASSERT_MSG( m_oper.Select(coords) >= 0, "invalid row/column" );
|
||||
|
||||
@@ -808,7 +808,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void Advance(wxGridCellCoords& coords) const
|
||||
virtual void Advance(wxGridCellCoords& coords) const wxOVERRIDE
|
||||
{
|
||||
int pos = GetLinePos(coords);
|
||||
for ( ;; )
|
||||
@@ -825,7 +825,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual int MoveByPixelDistance(int line, int distance) const
|
||||
virtual int MoveByPixelDistance(int line, int distance) const wxOVERRIDE
|
||||
{
|
||||
int pos = m_oper.GetLineStartPos(m_grid, line);
|
||||
return m_oper.PosToLine(m_grid, pos - distance + 1, true);
|
||||
@@ -843,7 +843,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const
|
||||
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const wxOVERRIDE
|
||||
{
|
||||
wxASSERT_MSG( m_oper.Select(coords) < m_numLines, "invalid row/column" );
|
||||
|
||||
@@ -858,7 +858,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void Advance(wxGridCellCoords& coords) const
|
||||
virtual void Advance(wxGridCellCoords& coords) const wxOVERRIDE
|
||||
{
|
||||
int pos = GetLinePos(coords);
|
||||
for ( ;; )
|
||||
@@ -875,7 +875,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual int MoveByPixelDistance(int line, int distance) const
|
||||
virtual int MoveByPixelDistance(int line, int distance) const wxOVERRIDE
|
||||
{
|
||||
int pos = m_oper.GetLineStartPos(m_grid, line);
|
||||
return m_oper.PosToLine(m_grid, pos + distance, true);
|
||||
|
||||
+30
-10
@@ -200,6 +200,8 @@ public:
|
||||
// is this item selected? [NB: not used in virtual mode]
|
||||
bool m_highlighted;
|
||||
|
||||
bool m_checked;
|
||||
|
||||
// back pointer to the list ctrl
|
||||
wxListMainWindow *m_owner;
|
||||
|
||||
@@ -249,6 +251,9 @@ public:
|
||||
void SetImage( int index, int image );
|
||||
int GetImage( int index ) const;
|
||||
|
||||
void Check(bool check) { m_checked = check; }
|
||||
bool IsChecked() { return m_checked; }
|
||||
|
||||
bool HasImage() const { return GetImage() != -1; }
|
||||
bool HasText() const { return !GetText(0).empty(); }
|
||||
|
||||
@@ -349,7 +354,7 @@ public:
|
||||
virtual ~wxListHeaderWindow();
|
||||
|
||||
// We never need focus as we don't have any keyboard interface.
|
||||
virtual bool AcceptsFocus() const { return false; }
|
||||
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||
|
||||
void DrawCurrent();
|
||||
void AdjustDC( wxDC& dc );
|
||||
@@ -365,7 +370,7 @@ public:
|
||||
int m_colToSend;
|
||||
int m_widthToSend;
|
||||
|
||||
virtual void OnInternalIdle();
|
||||
virtual void OnInternalIdle() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// common part of all ctors
|
||||
@@ -375,7 +380,7 @@ private:
|
||||
// it wasn't vetoed, i.e. if we should proceed
|
||||
bool SendListEvent(wxEventType type, const wxPoint& pos);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -389,7 +394,7 @@ private:
|
||||
|
||||
public:
|
||||
wxListRenameTimer( wxListMainWindow *owner );
|
||||
void Notify();
|
||||
void Notify() wxOVERRIDE;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -407,7 +412,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void Notify();
|
||||
virtual void Notify() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxListMainWindow *m_owner;
|
||||
@@ -458,7 +463,7 @@ private:
|
||||
size_t m_itemEdited;
|
||||
bool m_aboutToFinish;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -564,6 +569,9 @@ public:
|
||||
// start editing the label of the given item
|
||||
wxTextCtrl *EditLabel(long item,
|
||||
wxClassInfo* textControlClass = wxCLASSINFO(wxTextCtrl));
|
||||
|
||||
bool EndEditLabel(bool cancel);
|
||||
|
||||
wxTextCtrl *GetEditControl() const
|
||||
{
|
||||
return m_textctrlWrapper ? m_textctrlWrapper->GetText() : NULL;
|
||||
@@ -633,6 +641,11 @@ public:
|
||||
bool GetItemPosition( long item, wxPoint& pos ) const;
|
||||
int GetSelectedItemCount() const;
|
||||
|
||||
bool HasCheckboxes() const;
|
||||
bool EnableCheckboxes(bool enable = true);
|
||||
bool IsItemChecked(long item) const;
|
||||
void CheckItem(long item, bool check);
|
||||
|
||||
wxString GetItemText(long item, int col = 0) const
|
||||
{
|
||||
wxListItem info;
|
||||
@@ -691,7 +704,7 @@ public:
|
||||
const wxPoint& point = wxDefaultPosition );
|
||||
|
||||
// override base class virtual to reset m_lineHeight when the font changes
|
||||
virtual bool SetFont(const wxFont& font)
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE
|
||||
{
|
||||
if ( !wxWindow::SetFont(font) )
|
||||
return false;
|
||||
@@ -721,7 +734,7 @@ public:
|
||||
return m_hasFocus ? m_highlightBrush : m_highlightUnfocusedBrush;
|
||||
}
|
||||
|
||||
bool HasFocus() const
|
||||
bool HasFocus() const wxOVERRIDE
|
||||
{
|
||||
return m_hasFocus;
|
||||
}
|
||||
@@ -776,8 +789,10 @@ protected:
|
||||
m_lineBeforeLastClicked,
|
||||
m_lineSelectSingleOnUp;
|
||||
|
||||
bool m_hasCheckboxes;
|
||||
|
||||
protected:
|
||||
wxWindow *GetMainWindowOfCompositeControl() { return GetParent(); }
|
||||
wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE { return GetParent(); }
|
||||
|
||||
// the total count of items in a virtual list control
|
||||
size_t m_countVirt;
|
||||
@@ -835,6 +850,10 @@ private:
|
||||
// Compute the minimal width needed to fully display the column header.
|
||||
int ComputeMinHeaderWidth(const wxListHeaderData* header) const;
|
||||
|
||||
// Check if the given point is inside the checkbox of this item.
|
||||
//
|
||||
// Always returns false if there are no checkboxes.
|
||||
bool IsInsideCheckbox(long item, int x, int y);
|
||||
|
||||
// the height of one line using the current font
|
||||
wxCoord m_lineHeight;
|
||||
@@ -857,9 +876,10 @@ private:
|
||||
wxListTextCtrlWrapper *m_textctrlWrapper;
|
||||
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
friend class wxGenericListCtrl;
|
||||
friend class wxListCtrlMaxWidthCalculator;
|
||||
};
|
||||
|
||||
#endif // wxUSE_LISTCTRL
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/generic/private/notifmsg.h
|
||||
// Purpose: wxGenericNotificationMessage declarations
|
||||
// Author: Tobias Taschner
|
||||
// Created: 2015-08-04
|
||||
// Copyright: (c) 2015 wxWidgets development team
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GENERIC_PRIVATE_NOTIFMSG_H_
|
||||
#define _WX_GENERIC_PRIVATE_NOTIFMSG_H_
|
||||
|
||||
#include "wx/private/notifmsg.h"
|
||||
|
||||
class wxGenericNotificationMessageImpl : public wxNotificationMessageImpl
|
||||
{
|
||||
public:
|
||||
wxGenericNotificationMessageImpl(wxNotificationMessageBase* notification);
|
||||
|
||||
virtual ~wxGenericNotificationMessageImpl();
|
||||
|
||||
virtual bool Show(int timeout) wxOVERRIDE;
|
||||
|
||||
virtual bool Close() wxOVERRIDE;
|
||||
|
||||
virtual void SetTitle(const wxString& title) wxOVERRIDE;
|
||||
|
||||
virtual void SetMessage(const wxString& message) wxOVERRIDE;
|
||||
|
||||
virtual void SetParent(wxWindow *parent) wxOVERRIDE;
|
||||
|
||||
virtual void SetFlags(int flags) wxOVERRIDE;
|
||||
|
||||
virtual void SetIcon(const wxIcon& icon) wxOVERRIDE;
|
||||
|
||||
virtual bool AddAction(wxWindowID actionid, const wxString &label) wxOVERRIDE;
|
||||
|
||||
// get/set the default timeout (used if Timeout_Auto is specified)
|
||||
static int GetDefaultTimeout() { return ms_timeout; }
|
||||
static void SetDefaultTimeout(int timeout);
|
||||
|
||||
private:
|
||||
// default timeout
|
||||
static int ms_timeout;
|
||||
|
||||
// notification message is represented by a frame in this implementation
|
||||
class wxNotificationMessageWindow *m_window;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericNotificationMessageImpl);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_PRIVATE_NOTIFMSG_H_
|
||||
@@ -0,0 +1,123 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/generic/private/widthcalc.h
|
||||
// Purpose: wxMaxWidthCalculatorBase helper class.
|
||||
// Author: Václav Slavík, Kinaou Hervé
|
||||
// Copyright: (c) 2015 wxWidgets team
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GENERIC_PRIVATE_WIDTHCALC_H_
|
||||
#define _WX_GENERIC_PRIVATE_WIDTHCALC_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_DATAVIEWCTRL || wxUSE_LISTCTRL
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/timer.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxMaxWidthCalculatorBase: base class for calculating max column width
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxMaxWidthCalculatorBase
|
||||
{
|
||||
public:
|
||||
// column of which calculate the width
|
||||
explicit wxMaxWidthCalculatorBase(size_t column)
|
||||
: m_column(column),
|
||||
m_width(0)
|
||||
{
|
||||
}
|
||||
|
||||
void UpdateWithWidth(int width)
|
||||
{
|
||||
m_width = wxMax(m_width, width);
|
||||
}
|
||||
|
||||
// Update the max with for the expected row
|
||||
virtual void UpdateWithRow(int row) = 0;
|
||||
|
||||
int GetMaxWidth() const { return m_width; }
|
||||
size_t GetColumn() const { return m_column; }
|
||||
|
||||
void
|
||||
ComputeBestColumnWidth(size_t count,
|
||||
size_t first_visible,
|
||||
size_t last_visible)
|
||||
{
|
||||
// The code below deserves some explanation. For very large controls, we
|
||||
// simply can't afford to calculate sizes for all items, it takes too
|
||||
// long. So the best we can do is to check the first and the last N/2
|
||||
// items in the control for some sufficiently large N and calculate best
|
||||
// sizes from that. That can result in the calculated best width being too
|
||||
// small for some outliers, but it's better to get slightly imperfect
|
||||
// result than to wait several seconds after every update. To avoid highly
|
||||
// visible miscalculations, we also include all currently visible items
|
||||
// no matter what. Finally, the value of N is determined dynamically by
|
||||
// measuring how much time we spent on the determining item widths so far.
|
||||
|
||||
#if wxUSE_STOPWATCH
|
||||
size_t top_part_end = count;
|
||||
static const long CALC_TIMEOUT = 20/*ms*/;
|
||||
// don't call wxStopWatch::Time() too often
|
||||
static const unsigned CALC_CHECK_FREQ = 100;
|
||||
wxStopWatch timer;
|
||||
#else
|
||||
// use some hard-coded limit, that's the best we can do without timer
|
||||
size_t top_part_end = wxMin(500, count);
|
||||
#endif // wxUSE_STOPWATCH/!wxUSE_STOPWATCH
|
||||
|
||||
size_t row = 0;
|
||||
|
||||
for ( row = 0; row < top_part_end; row++ )
|
||||
{
|
||||
#if wxUSE_STOPWATCH
|
||||
if ( row % CALC_CHECK_FREQ == CALC_CHECK_FREQ-1 &&
|
||||
timer.Time() > CALC_TIMEOUT )
|
||||
break;
|
||||
#endif // wxUSE_STOPWATCH
|
||||
UpdateWithRow(row);
|
||||
}
|
||||
|
||||
// row is the first unmeasured item now; that's our value of N/2
|
||||
if ( row < count )
|
||||
{
|
||||
top_part_end = row;
|
||||
|
||||
// add bottom N/2 items now:
|
||||
const size_t bottom_part_start = wxMax(row, count - row);
|
||||
for ( row = bottom_part_start; row < count; row++ )
|
||||
{
|
||||
UpdateWithRow(row);
|
||||
}
|
||||
|
||||
// finally, include currently visible items in the calculation:
|
||||
first_visible = wxMax(first_visible, top_part_end);
|
||||
last_visible = wxMin(bottom_part_start, last_visible);
|
||||
|
||||
for ( row = first_visible; row < last_visible; row++ )
|
||||
{
|
||||
UpdateWithRow(row);
|
||||
}
|
||||
|
||||
wxLogTrace("items container",
|
||||
"determined best size from %zu top, %zu bottom "
|
||||
"plus %zu more visible items out of %zu total",
|
||||
top_part_end,
|
||||
count - bottom_part_start,
|
||||
last_visible - first_visible,
|
||||
count);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
const size_t m_column;
|
||||
int m_width;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxMaxWidthCalculatorBase);
|
||||
};
|
||||
|
||||
#endif // wxUSE_DATAVIEWCTRL || wxUSE_LISTCTRL
|
||||
|
||||
#endif // _WX_GENERIC_PRIVATE_WIDTHCALC_H_
|
||||
+22
-22
@@ -83,11 +83,11 @@ public:
|
||||
wxPostScriptPrintNativeData();
|
||||
virtual ~wxPostScriptPrintNativeData();
|
||||
|
||||
virtual bool TransferTo( wxPrintData &data );
|
||||
virtual bool TransferFrom( const wxPrintData &data );
|
||||
virtual bool TransferTo( wxPrintData &data ) wxOVERRIDE;
|
||||
virtual bool TransferFrom( const wxPrintData &data ) wxOVERRIDE;
|
||||
|
||||
virtual bool Ok() const { return IsOk(); }
|
||||
virtual bool IsOk() const { return true; }
|
||||
virtual bool Ok() const wxOVERRIDE { return IsOk(); }
|
||||
virtual bool IsOk() const wxOVERRIDE { return true; }
|
||||
|
||||
const wxString& GetPrinterCommand() const { return m_printerCommand; }
|
||||
const wxString& GetPrinterOptions() const { return m_printerOptions; }
|
||||
@@ -128,7 +128,7 @@ private:
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPostScriptPrintNativeData)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPostScriptPrintNativeData);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -149,16 +149,16 @@ public:
|
||||
void OnRange(wxCommandEvent& event);
|
||||
void OnOK(wxCommandEvent& event);
|
||||
|
||||
virtual bool TransferDataFromWindow();
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||
|
||||
virtual int ShowModal();
|
||||
virtual int ShowModal() wxOVERRIDE;
|
||||
|
||||
wxPrintData& GetPrintData()
|
||||
wxPrintData& GetPrintData() wxOVERRIDE
|
||||
{ return m_printDialogData.GetPrintData(); }
|
||||
|
||||
wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
|
||||
wxDC *GetPrintDC();
|
||||
wxPrintDialogData& GetPrintDialogData() wxOVERRIDE { return m_printDialogData; }
|
||||
wxDC *GetPrintDC() wxOVERRIDE;
|
||||
|
||||
public:
|
||||
// wxStaticText* m_printerMessage;
|
||||
@@ -177,8 +177,8 @@ protected:
|
||||
void Init(wxWindow *parent);
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericPrintDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericPrintDialog);
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxGenericPrintSetupDialog : public wxDialog
|
||||
@@ -193,8 +193,8 @@ public:
|
||||
|
||||
void OnPrinter(wxListEvent& event);
|
||||
|
||||
virtual bool TransferDataFromWindow();
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||
|
||||
virtual wxComboBox *CreatePaperTypeChoice();
|
||||
|
||||
@@ -213,8 +213,8 @@ public:
|
||||
wxPrintData* m_targetData;
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_CLASS(wxGenericPrintSetupDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_CLASS(wxGenericPrintSetupDialog);
|
||||
};
|
||||
#endif
|
||||
// wxUSE_POSTSCRIPT
|
||||
@@ -226,10 +226,10 @@ public:
|
||||
wxPageSetupDialogData* data = NULL);
|
||||
virtual ~wxGenericPageSetupDialog();
|
||||
|
||||
virtual bool TransferDataFromWindow();
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||
|
||||
virtual wxPageSetupDialogData& GetPageSetupDialogData();
|
||||
virtual wxPageSetupDialogData& GetPageSetupDialogData() wxOVERRIDE;
|
||||
|
||||
void OnPrinter(wxCommandEvent& event);
|
||||
wxComboBox *CreatePaperTypeChoice(int* x, int* y);
|
||||
@@ -246,8 +246,8 @@ public:
|
||||
wxPageSetupDialogData m_pageData;
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericPageSetupDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericPageSetupDialog);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+4
-6
@@ -57,9 +57,9 @@ public:
|
||||
bool WasSkipped() const;
|
||||
|
||||
// Must provide overload to avoid hiding it (and warnings about it)
|
||||
virtual void Update() { wxDialog::Update(); }
|
||||
virtual void Update() wxOVERRIDE { wxDialog::Update(); }
|
||||
|
||||
virtual bool Show( bool show = true );
|
||||
virtual bool Show( bool show = true ) wxOVERRIDE;
|
||||
|
||||
// This enum is an implementation detail and should not be used
|
||||
// by user code.
|
||||
@@ -134,7 +134,7 @@ protected:
|
||||
// the maximum value
|
||||
int m_maximum;
|
||||
|
||||
#if defined(__WXMSW__ ) || defined(__WXPM__)
|
||||
#if defined(__WXMSW__)
|
||||
// the factor we use to always keep the value in 16 bit range as the native
|
||||
// control only supports ranges from 0 to 65,535
|
||||
size_t m_factor;
|
||||
@@ -195,11 +195,9 @@ private:
|
||||
// skip some portion
|
||||
bool m_skip;
|
||||
|
||||
#if !defined(__SMARTPHONE__)
|
||||
// the abort and skip buttons (or NULL if none)
|
||||
wxButton *m_btnAbort;
|
||||
wxButton *m_btnSkip;
|
||||
#endif
|
||||
|
||||
// saves the time when elapsed time was updated so there is only one
|
||||
// update per second
|
||||
@@ -222,7 +220,7 @@ private:
|
||||
wxEventLoop *m_tempEventLoop;
|
||||
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericProgressDialog);
|
||||
};
|
||||
|
||||
|
||||
+6
-12
@@ -21,11 +21,8 @@ class WXDLLIMPEXP_FWD_CORE wxBookCtrlBase;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxPropertySheetDialog
|
||||
// A platform-independent properties dialog.
|
||||
//
|
||||
// * on PocketPC, a flat-look 'property sheet' notebook will be used, with
|
||||
// no OK/Cancel/Help buttons
|
||||
// * on other platforms, a normal notebook will be used, with standard buttons
|
||||
// A platform-independent properties dialog with a notebook and standard
|
||||
// buttons.
|
||||
//
|
||||
// To use this class, call Create from your derived class.
|
||||
// Then create pages and add to the book control. Finally call CreateButtons and
|
||||
@@ -106,7 +103,7 @@ public:
|
||||
wxBookCtrlBase* GetBookCtrl() const { return m_bookCtrl; }
|
||||
|
||||
// Override function in base
|
||||
virtual wxWindow* GetContentWindow() const;
|
||||
virtual wxWindow* GetContentWindow() const wxOVERRIDE;
|
||||
|
||||
// Set and get the inner sizer
|
||||
void SetInnerSize(wxSizer* sizer) { m_innerSizer = sizer; }
|
||||
@@ -126,7 +123,7 @@ public:
|
||||
|
||||
/// Operations
|
||||
|
||||
// Creates the buttons (none on PocketPC)
|
||||
// Creates the buttons
|
||||
virtual void CreateButtons(int flags = wxOK|wxCANCEL);
|
||||
|
||||
// Lay out the dialog, to be called after pages have been created
|
||||
@@ -141,9 +138,6 @@ public:
|
||||
// Adds the book control to the inner sizer.
|
||||
virtual void AddBookCtrl(wxSizer* sizer);
|
||||
|
||||
// Set the focus
|
||||
void OnActivate(wxActivateEvent& event);
|
||||
|
||||
// Resize dialog if necessary
|
||||
void OnIdle(wxIdleEvent& event);
|
||||
|
||||
@@ -158,8 +152,8 @@ protected:
|
||||
int m_sheetInnerBorder;
|
||||
int m_selectedPage;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxPropertySheetDialog)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPropertySheetDialog);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // wxUSE_BOOKCTRL
|
||||
|
||||
+6
-6
@@ -20,27 +20,27 @@ class WXDLLIMPEXP_CORE wxGenericRichMessageDialog
|
||||
public:
|
||||
wxGenericRichMessageDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& caption,
|
||||
long style)
|
||||
const wxString& caption = wxMessageBoxCaptionStr,
|
||||
long style = wxOK | wxCENTRE)
|
||||
: wxRichMessageDialogBase( parent, message, caption, style ),
|
||||
m_checkBox(NULL),
|
||||
m_detailsPane(NULL)
|
||||
{ }
|
||||
|
||||
virtual bool IsCheckBoxChecked() const;
|
||||
virtual bool IsCheckBoxChecked() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxCheckBox *m_checkBox;
|
||||
wxCollapsiblePane *m_detailsPane;
|
||||
|
||||
// overrides methods in the base class
|
||||
virtual void AddMessageDialogCheckBox(wxSizer *sizer);
|
||||
virtual void AddMessageDialogDetails(wxSizer *sizer);
|
||||
virtual void AddMessageDialogCheckBox(wxSizer *sizer) wxOVERRIDE;
|
||||
virtual void AddMessageDialogDetails(wxSizer *sizer) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void OnPaneChanged(wxCollapsiblePaneEvent& event);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericRichMessageDialog);
|
||||
};
|
||||
|
||||
+4
-20
@@ -40,15 +40,9 @@ class WXDLLIMPEXP_ADV wxSashEdge
|
||||
public:
|
||||
wxSashEdge()
|
||||
{ m_show = false;
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
m_border = false;
|
||||
#endif
|
||||
m_margin = 0; }
|
||||
|
||||
bool m_show; // Is the sash showing?
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
bool m_border; // Do we draw a border?
|
||||
#endif
|
||||
int m_margin; // The margin size
|
||||
};
|
||||
|
||||
@@ -97,16 +91,6 @@ public:
|
||||
// Get whether there's a sash in this position
|
||||
bool GetSashVisible(wxSashEdgePosition edge) const { return m_sashes[edge].m_show; }
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// Set whether there's a border in this position
|
||||
// This value is unused in wxSashWindow.
|
||||
void SetSashBorder(wxSashEdgePosition edge, bool border) { m_sashes[edge].m_border = border; }
|
||||
|
||||
// Get whether there's a border in this position
|
||||
// This value is unused in wxSashWindow.
|
||||
bool HasBorder(wxSashEdgePosition edge) const { return m_sashes[edge].m_border; }
|
||||
#endif
|
||||
|
||||
// Get border size
|
||||
int GetEdgeMargin(wxSashEdgePosition edge) const { return m_sashes[edge].m_margin; }
|
||||
|
||||
@@ -197,8 +181,8 @@ private:
|
||||
wxCursor* m_currentCursor;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxSashWindow)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxSashWindow);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxSashWindow);
|
||||
};
|
||||
|
||||
@@ -240,7 +224,7 @@ public:
|
||||
void SetDragStatus(wxSashDragStatus status) { m_dragStatus = status; }
|
||||
wxSashDragStatus GetDragStatus() const { return m_dragStatus; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxSashEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxSashEvent(*this); }
|
||||
|
||||
private:
|
||||
wxSashEdgePosition m_edge;
|
||||
@@ -248,7 +232,7 @@ private:
|
||||
wxSashDragStatus m_dragStatus;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSashEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSashEvent);
|
||||
};
|
||||
|
||||
typedef void (wxEvtHandler::*wxSashEventFunction)(wxSashEvent&);
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#ifndef _WX_GENERIC_SCROLLWIN_H_
|
||||
#define _WX_GENERIC_SCROLLWIN_H_
|
||||
|
||||
#include "wx/recguard.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// generic wxScrollHelper implementation
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -45,6 +47,7 @@ private:
|
||||
|
||||
wxScrollbarVisibility m_xVisibility,
|
||||
m_yVisibility;
|
||||
wxRecursionGuardFlag m_adjustScrollFlagReentrancy;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxScrollHelper);
|
||||
};
|
||||
|
||||
+16
-19
@@ -64,30 +64,27 @@ public:
|
||||
// T GetMin() const
|
||||
// T GetMax() const
|
||||
// T GetIncrement() const
|
||||
virtual bool GetSnapToTicks() const { return m_snap_to_ticks; }
|
||||
virtual bool GetSnapToTicks() const wxOVERRIDE { return m_snap_to_ticks; }
|
||||
// unsigned GetDigits() const - wxSpinCtrlDouble only
|
||||
|
||||
// operations
|
||||
virtual void SetValue(const wxString& text);
|
||||
virtual void SetValue(const wxString& text) wxOVERRIDE;
|
||||
// void SetValue(T val)
|
||||
// void SetRange(T minVal, T maxVal)
|
||||
// void SetIncrement(T inc)
|
||||
virtual void SetSnapToTicks(bool snap_to_ticks);
|
||||
virtual void SetSnapToTicks(bool snap_to_ticks) wxOVERRIDE;
|
||||
// void SetDigits(unsigned digits) - wxSpinCtrlDouble only
|
||||
|
||||
// Select text in the textctrl
|
||||
void SetSelection(long from, long to);
|
||||
void SetSelection(long from, long to) wxOVERRIDE;
|
||||
|
||||
// implementation from now on
|
||||
|
||||
// forward these functions to all subcontrols
|
||||
virtual bool Enable(bool enable = true);
|
||||
virtual bool Show(bool show = true);
|
||||
#if wxUSE_TOOLTIPS
|
||||
virtual void DoSetToolTip(wxToolTip *tip);
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||
|
||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
// get the subcontrols
|
||||
wxTextCtrl *GetText() const { return m_textCtrl; }
|
||||
@@ -101,16 +98,16 @@ public:
|
||||
// this window itself is used only as a container for its sub windows so it
|
||||
// shouldn't accept the focus at all and any attempts to explicitly set
|
||||
// focus to it should give focus to its text constol part
|
||||
virtual bool AcceptsFocus() const { return false; }
|
||||
virtual void SetFocus();
|
||||
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||
virtual void SetFocus() wxOVERRIDE;
|
||||
|
||||
friend class wxSpinCtrlTextGeneric;
|
||||
|
||||
protected:
|
||||
// override the base class virtuals involved into geometry calculations
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const wxOVERRIDE;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// and, for MSW, enabling this window itself
|
||||
@@ -168,9 +165,9 @@ private:
|
||||
void Init();
|
||||
|
||||
// Implement pure virtual function inherited from wxCompositeWindow.
|
||||
virtual wxWindowList GetCompositeWindowParts() const;
|
||||
virtual wxWindowList GetCompositeWindowParts() const wxOVERRIDE;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#else // !wxUSE_SPINBTN
|
||||
@@ -344,7 +341,7 @@ private:
|
||||
|
||||
int m_base;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxSpinCtrl);
|
||||
};
|
||||
|
||||
#endif // wxHAS_NATIVE_SPINCTRL
|
||||
@@ -426,7 +423,7 @@ private:
|
||||
|
||||
wxString m_format;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxSpinCtrlDouble)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxSpinCtrlDouble);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_SPINCTRL_H_
|
||||
+4
-4
@@ -54,7 +54,7 @@ public:
|
||||
int GetTimeout() const { return m_milliseconds; }
|
||||
|
||||
// Override wxEventFilter method to hide splash screen on any user input.
|
||||
virtual int FilterEvent(wxEvent& event);
|
||||
virtual int FilterEvent(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// Common part of all ctors.
|
||||
@@ -65,8 +65,8 @@ protected:
|
||||
int m_milliseconds;
|
||||
wxTimer m_timer;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxSplashScreen)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxSplashScreen);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxSplashScreen);
|
||||
};
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
protected:
|
||||
wxBitmap m_bitmap;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxSplashScreenWindow);
|
||||
};
|
||||
|
||||
|
||||
+8
-8
@@ -105,7 +105,7 @@ public:
|
||||
// and changing the split mode.
|
||||
// Does nothing and returns false if the window is already split.
|
||||
// A sashPosition of 0 means choose a default sash position,
|
||||
// negative sashPosition specifies the size of right/lower pane as it's
|
||||
// negative sashPosition specifies the size of right/lower pane as its
|
||||
// absolute value rather than the size of left/upper pane.
|
||||
virtual bool SplitVertically(wxWindow *window1,
|
||||
wxWindow *window2,
|
||||
@@ -202,7 +202,7 @@ public:
|
||||
void OnSize(wxSizeEvent& event);
|
||||
|
||||
// In live mode, resize child windows in idle time
|
||||
void OnInternalIdle();
|
||||
void OnInternalIdle() wxOVERRIDE;
|
||||
|
||||
// Draws the sash
|
||||
virtual void DrawSash(wxDC& dc);
|
||||
@@ -217,7 +217,7 @@ public:
|
||||
virtual void SizeWindows();
|
||||
|
||||
#ifdef __WXMAC__
|
||||
virtual bool MacClipGrandChildren() const { return true ; }
|
||||
virtual bool MacClipGrandChildren() const wxOVERRIDE { return true ; }
|
||||
#endif
|
||||
|
||||
// Sets the sash size: this doesn't do anything and shouldn't be used at
|
||||
@@ -274,7 +274,7 @@ protected:
|
||||
|
||||
// return the best size of the splitter equal to best sizes of its
|
||||
// subwindows
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
|
||||
wxSplitMode m_splitMode;
|
||||
@@ -301,8 +301,8 @@ protected:
|
||||
bool m_isHot:1;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxSplitterWindow)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxSplitterWindow);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxSplitterWindow);
|
||||
};
|
||||
|
||||
@@ -370,7 +370,7 @@ public:
|
||||
return m_data.pt.y;
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxSplitterEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxSplitterEvent(*this); }
|
||||
|
||||
private:
|
||||
friend class WXDLLIMPEXP_FWD_CORE wxSplitterWindow;
|
||||
@@ -386,7 +386,7 @@ private:
|
||||
} pt; // position of double click for DCLICK event
|
||||
} m_data;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSplitterEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSplitterEvent);
|
||||
};
|
||||
|
||||
typedef void (wxEvtHandler::*wxSplitterEventFunction)(wxSplitterEvent&);
|
||||
|
||||
+65
-63
@@ -49,17 +49,17 @@ public:
|
||||
#if wxUSE_MENUS
|
||||
// get/set search button menu
|
||||
// --------------------------
|
||||
virtual void SetMenu( wxMenu* menu );
|
||||
virtual wxMenu* GetMenu();
|
||||
virtual void SetMenu( wxMenu* menu ) wxOVERRIDE;
|
||||
virtual wxMenu* GetMenu() wxOVERRIDE;
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
// get/set search options
|
||||
// ----------------------
|
||||
virtual void ShowSearchButton( bool show );
|
||||
virtual bool IsSearchButtonVisible() const;
|
||||
virtual void ShowSearchButton( bool show ) wxOVERRIDE;
|
||||
virtual bool IsSearchButtonVisible() const wxOVERRIDE;
|
||||
|
||||
virtual void ShowCancelButton( bool show );
|
||||
virtual bool IsCancelButtonVisible() const;
|
||||
virtual void ShowCancelButton( bool show ) wxOVERRIDE;
|
||||
virtual bool IsCancelButtonVisible() const wxOVERRIDE;
|
||||
|
||||
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
||||
void SetDescriptiveText(const wxString& text);
|
||||
@@ -68,48 +68,48 @@ public:
|
||||
// accessors
|
||||
// ---------
|
||||
|
||||
virtual wxString GetRange(long from, long to) const;
|
||||
virtual wxString GetRange(long from, long to) const wxOVERRIDE;
|
||||
|
||||
virtual int GetLineLength(long lineNo) const;
|
||||
virtual wxString GetLineText(long lineNo) const;
|
||||
virtual int GetNumberOfLines() const;
|
||||
virtual int GetLineLength(long lineNo) const wxOVERRIDE;
|
||||
virtual wxString GetLineText(long lineNo) const wxOVERRIDE;
|
||||
virtual int GetNumberOfLines() const wxOVERRIDE;
|
||||
|
||||
virtual bool IsModified() const;
|
||||
virtual bool IsEditable() const;
|
||||
virtual bool IsModified() const wxOVERRIDE;
|
||||
virtual bool IsEditable() const wxOVERRIDE;
|
||||
|
||||
// more readable flag testing methods
|
||||
virtual bool IsSingleLine() const;
|
||||
virtual bool IsMultiLine() const;
|
||||
|
||||
// If the return values from and to are the same, there is no selection.
|
||||
virtual void GetSelection(long* from, long* to) const;
|
||||
virtual void GetSelection(long* from, long* to) const wxOVERRIDE;
|
||||
|
||||
virtual wxString GetStringSelection() const;
|
||||
virtual wxString GetStringSelection() const wxOVERRIDE;
|
||||
|
||||
// operations
|
||||
// ----------
|
||||
|
||||
// editing
|
||||
virtual void Clear();
|
||||
virtual void Replace(long from, long to, const wxString& value);
|
||||
virtual void Remove(long from, long to);
|
||||
virtual void Clear() wxOVERRIDE;
|
||||
virtual void Replace(long from, long to, const wxString& value) wxOVERRIDE;
|
||||
virtual void Remove(long from, long to) wxOVERRIDE;
|
||||
|
||||
// load/save the controls contents from/to the file
|
||||
virtual bool LoadFile(const wxString& file);
|
||||
virtual bool SaveFile(const wxString& file = wxEmptyString);
|
||||
|
||||
// sets/clears the dirty flag
|
||||
virtual void MarkDirty();
|
||||
virtual void DiscardEdits();
|
||||
virtual void MarkDirty() wxOVERRIDE;
|
||||
virtual void DiscardEdits() wxOVERRIDE;
|
||||
|
||||
// set the max number of characters which may be entered in a single line
|
||||
// text control
|
||||
virtual void SetMaxLength(unsigned long WXUNUSED(len));
|
||||
virtual void SetMaxLength(unsigned long WXUNUSED(len)) wxOVERRIDE;
|
||||
|
||||
// writing text inserts it at the current position, appending always
|
||||
// inserts it at the end
|
||||
virtual void WriteText(const wxString& text);
|
||||
virtual void AppendText(const wxString& text);
|
||||
virtual void WriteText(const wxString& text) wxOVERRIDE;
|
||||
virtual void AppendText(const wxString& text) wxOVERRIDE;
|
||||
|
||||
// insert the character which would have resulted from this key event,
|
||||
// return true if anything has been inserted
|
||||
@@ -118,53 +118,53 @@ public:
|
||||
// text control under some platforms supports the text styles: these
|
||||
// methods allow to apply the given text style to the given selection or to
|
||||
// set/get the style which will be used for all appended text
|
||||
virtual bool SetStyle(long start, long end, const wxTextAttr& style);
|
||||
virtual bool GetStyle(long position, wxTextAttr& style);
|
||||
virtual bool SetDefaultStyle(const wxTextAttr& style);
|
||||
virtual const wxTextAttr& GetDefaultStyle() const;
|
||||
virtual bool SetStyle(long start, long end, const wxTextAttr& style) wxOVERRIDE;
|
||||
virtual bool GetStyle(long position, wxTextAttr& style) wxOVERRIDE;
|
||||
virtual bool SetDefaultStyle(const wxTextAttr& style) wxOVERRIDE;
|
||||
virtual const wxTextAttr& GetDefaultStyle() const wxOVERRIDE;
|
||||
|
||||
// translate between the position (which is just an index in the text ctrl
|
||||
// considering all its contents as a single strings) and (x, y) coordinates
|
||||
// which represent column and line.
|
||||
virtual long XYToPosition(long x, long y) const;
|
||||
virtual bool PositionToXY(long pos, long *x, long *y) const;
|
||||
virtual long XYToPosition(long x, long y) const wxOVERRIDE;
|
||||
virtual bool PositionToXY(long pos, long *x, long *y) const wxOVERRIDE;
|
||||
|
||||
virtual void ShowPosition(long pos);
|
||||
virtual void ShowPosition(long pos) wxOVERRIDE;
|
||||
|
||||
// find the character at position given in pixels
|
||||
//
|
||||
// NB: pt is in device coords (not adjusted for the client area origin nor
|
||||
// scrolling)
|
||||
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const;
|
||||
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const wxOVERRIDE;
|
||||
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt,
|
||||
wxTextCoord *col,
|
||||
wxTextCoord *row) const;
|
||||
wxTextCoord *row) const wxOVERRIDE;
|
||||
|
||||
// Clipboard operations
|
||||
virtual void Copy();
|
||||
virtual void Cut();
|
||||
virtual void Paste();
|
||||
virtual void Copy() wxOVERRIDE;
|
||||
virtual void Cut() wxOVERRIDE;
|
||||
virtual void Paste() wxOVERRIDE;
|
||||
|
||||
virtual bool CanCopy() const;
|
||||
virtual bool CanCut() const;
|
||||
virtual bool CanPaste() const;
|
||||
virtual bool CanCopy() const wxOVERRIDE;
|
||||
virtual bool CanCut() const wxOVERRIDE;
|
||||
virtual bool CanPaste() const wxOVERRIDE;
|
||||
|
||||
// Undo/redo
|
||||
virtual void Undo();
|
||||
virtual void Redo();
|
||||
virtual void Undo() wxOVERRIDE;
|
||||
virtual void Redo() wxOVERRIDE;
|
||||
|
||||
virtual bool CanUndo() const;
|
||||
virtual bool CanRedo() const;
|
||||
virtual bool CanUndo() const wxOVERRIDE;
|
||||
virtual bool CanRedo() const wxOVERRIDE;
|
||||
|
||||
// Insertion point
|
||||
virtual void SetInsertionPoint(long pos);
|
||||
virtual void SetInsertionPointEnd();
|
||||
virtual long GetInsertionPoint() const;
|
||||
virtual wxTextPos GetLastPosition() const;
|
||||
virtual void SetInsertionPoint(long pos) wxOVERRIDE;
|
||||
virtual void SetInsertionPointEnd() wxOVERRIDE;
|
||||
virtual long GetInsertionPoint() const wxOVERRIDE;
|
||||
virtual wxTextPos GetLastPosition() const wxOVERRIDE;
|
||||
|
||||
virtual void SetSelection(long from, long to);
|
||||
virtual void SelectAll();
|
||||
virtual void SetEditable(bool editable);
|
||||
virtual void SetSelection(long from, long to) wxOVERRIDE;
|
||||
virtual void SelectAll() wxOVERRIDE;
|
||||
virtual void SetEditable(bool editable) wxOVERRIDE;
|
||||
|
||||
#if 0
|
||||
|
||||
@@ -180,17 +180,17 @@ public:
|
||||
wxTextCtrl& operator<<(long i);
|
||||
wxTextCtrl& operator<<(float f);
|
||||
wxTextCtrl& operator<<(double d);
|
||||
wxTextCtrl& operator<<(const wxChar c);
|
||||
wxTextCtrl& operator<<(wxChar c);
|
||||
#endif
|
||||
|
||||
// do the window-specific processing after processing the update event
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event);
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual bool ShouldInheritColours() const;
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE;
|
||||
|
||||
// wxWindow overrides
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
// search control generic only
|
||||
void SetSearchBitmap( const wxBitmap& bitmap );
|
||||
@@ -200,16 +200,15 @@ public:
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
protected:
|
||||
virtual void DoSetValue(const wxString& value, int flags);
|
||||
virtual wxString DoGetValue() const;
|
||||
virtual void DoSetValue(const wxString& value, int flags) wxOVERRIDE;
|
||||
virtual wxString DoGetValue() const wxOVERRIDE;
|
||||
|
||||
virtual bool DoLoadFile(const wxString& file, int fileType);
|
||||
virtual bool DoSaveFile(const wxString& file, int fileType);
|
||||
virtual bool DoLoadFile(const wxString& file, int fileType) wxOVERRIDE;
|
||||
virtual bool DoSaveFile(const wxString& file, int fileType) wxOVERRIDE;
|
||||
|
||||
// override the base class virtuals involved into geometry calculations
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
virtual void LayoutControls(int x, int y, int width, int height);
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||
|
||||
virtual void RecalcBitmaps();
|
||||
|
||||
@@ -236,7 +235,10 @@ private:
|
||||
friend class wxSearchButton;
|
||||
|
||||
// Implement pure virtual function inherited from wxCompositeWindow.
|
||||
virtual wxWindowList GetCompositeWindowParts() const;
|
||||
virtual wxWindowList GetCompositeWindowParts() const wxOVERRIDE;
|
||||
|
||||
// Position the child controls using the current window size.
|
||||
void LayoutControls();
|
||||
|
||||
#if wxUSE_MENUS
|
||||
void PopupSearchMenu();
|
||||
@@ -266,9 +268,9 @@ private:
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxSearchCtrl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxSearchCtrl);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif // wxUSE_SEARCHCTRL
|
||||
|
||||
+13
-5
@@ -35,16 +35,16 @@ public:
|
||||
long style = 0,
|
||||
const wxString& name = wxStaticBitmapNameStr);
|
||||
|
||||
virtual void SetBitmap(const wxBitmap& bitmap)
|
||||
virtual void SetBitmap(const wxBitmap& bitmap) wxOVERRIDE
|
||||
{
|
||||
m_bitmap = bitmap;
|
||||
SetInitialSize(GetBitmapSize());
|
||||
Refresh();
|
||||
}
|
||||
|
||||
virtual wxBitmap GetBitmap() const { return m_bitmap; }
|
||||
virtual wxBitmap GetBitmap() const wxOVERRIDE { return m_bitmap; }
|
||||
|
||||
virtual void SetIcon(const wxIcon& icon)
|
||||
virtual void SetIcon(const wxIcon& icon) wxOVERRIDE
|
||||
{
|
||||
m_bitmap.CopyFromIcon(icon);
|
||||
SetInitialSize(GetBitmapSize());
|
||||
@@ -53,9 +53,16 @@ public:
|
||||
|
||||
#if defined(__WXGTK20__) || defined(__WXMAC__)
|
||||
// icons and bitmaps are really the same thing in wxGTK and wxMac
|
||||
wxIcon GetIcon() const { return (const wxIcon &)m_bitmap; }
|
||||
wxIcon GetIcon() const wxOVERRIDE { return (const wxIcon &)m_bitmap; }
|
||||
#endif
|
||||
|
||||
virtual void SetScaleMode(ScaleMode scaleMode) wxOVERRIDE
|
||||
{
|
||||
m_scaleMode = scaleMode;
|
||||
Refresh();
|
||||
}
|
||||
|
||||
virtual ScaleMode GetScaleMode() const wxOVERRIDE { return m_scaleMode; }
|
||||
|
||||
private:
|
||||
wxSize GetBitmapSize()
|
||||
@@ -67,8 +74,9 @@ private:
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
wxBitmap m_bitmap;
|
||||
ScaleMode m_scaleMode;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericStaticBitmap)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericStaticBitmap);
|
||||
};
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ class wxStaticBox;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxStaticLine)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxStaticLine);
|
||||
|
||||
public:
|
||||
// constructors and pseudo-constructors
|
||||
|
||||
+8
-8
@@ -48,19 +48,19 @@ public:
|
||||
|
||||
|
||||
// overridden base class virtual methods
|
||||
virtual void SetLabel(const wxString& label);
|
||||
virtual bool SetFont(const wxFont &font);
|
||||
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
||||
virtual bool SetFont(const wxFont &font) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
virtual wxString DoGetLabel() const { return m_label; }
|
||||
virtual void DoSetLabel(const wxString& label);
|
||||
virtual wxString DoGetLabel() const wxOVERRIDE { return m_label; }
|
||||
virtual void DoSetLabel(const wxString& label) wxOVERRIDE;
|
||||
|
||||
void DoSetSize(int x, int y, int width, int height, int sizeFlags);
|
||||
void DoSetSize(int x, int y, int width, int height, int sizeFlags) wxOVERRIDE;
|
||||
|
||||
#if wxUSE_MARKUP
|
||||
virtual bool DoSetLabelMarkup(const wxString& markup);
|
||||
virtual bool DoSetLabelMarkup(const wxString& markup) wxOVERRIDE;
|
||||
#endif // wxUSE_MARKUP
|
||||
|
||||
private:
|
||||
@@ -83,7 +83,7 @@ private:
|
||||
class wxMarkupText *m_markupText;
|
||||
#endif // wxUSE_MARKUP
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericStaticText)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericStaticText);
|
||||
};
|
||||
|
||||
#endif // _WX_GENERIC_STATTEXTG_H_
|
||||
|
||||
+9
-9
@@ -44,12 +44,12 @@ public:
|
||||
const wxString& name = wxStatusBarNameStr);
|
||||
|
||||
// implement base class methods
|
||||
virtual void SetStatusWidths(int n, const int widths_field[]);
|
||||
virtual bool GetFieldRect(int i, wxRect& rect) const;
|
||||
virtual void SetMinHeight(int height);
|
||||
virtual void SetStatusWidths(int n, const int widths_field[]) wxOVERRIDE;
|
||||
virtual bool GetFieldRect(int i, wxRect& rect) const wxOVERRIDE;
|
||||
virtual void SetMinHeight(int height) wxOVERRIDE;
|
||||
|
||||
virtual int GetBorderX() const { return m_borderX; }
|
||||
virtual int GetBorderY() const { return m_borderY; }
|
||||
virtual int GetBorderX() const wxOVERRIDE { return m_borderX; }
|
||||
virtual int GetBorderY() const wxOVERRIDE { return m_borderY; }
|
||||
|
||||
|
||||
// implementation only (not part of wxStatusBar public API):
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
int GetFieldFromPoint(const wxPoint& point) const;
|
||||
|
||||
protected:
|
||||
virtual void DoUpdateStatusText(int number);
|
||||
virtual void DoUpdateStatusText(int number) wxOVERRIDE;
|
||||
|
||||
// event handlers
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
@@ -103,14 +103,14 @@ protected:
|
||||
wxPen m_mediumShadowPen;
|
||||
wxPen m_hilightPen;
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// Update m_lastClientSize and m_widthsAbs from the current size.
|
||||
void DoUpdateFieldWidths();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBarGeneric)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBarGeneric);
|
||||
};
|
||||
|
||||
#endif // wxUSE_STATUSBAR
|
||||
|
||||
+7
-7
@@ -28,7 +28,7 @@ class WXDLLIMPEXP_FWD_CORE wxTabView;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTabControl: public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxTabControl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxTabControl);
|
||||
public:
|
||||
wxTabControl(wxTabView *v = NULL);
|
||||
virtual ~wxTabControl(void);
|
||||
@@ -95,7 +95,7 @@ WX_DECLARE_LIST(wxTabLayer, wxTabLayerList);
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTabView: public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxTabView)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxTabView);
|
||||
public:
|
||||
wxTabView(long style = wxTAB_STYLE_DRAW_BOX | wxTAB_STYLE_COLOUR_INTERIOR);
|
||||
virtual ~wxTabView();
|
||||
@@ -267,7 +267,7 @@ protected:
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTabbedDialog : public wxDialog
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxTabbedDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxTabbedDialog);
|
||||
|
||||
public:
|
||||
wxTabbedDialog(wxWindow *parent,
|
||||
@@ -290,7 +290,7 @@ protected:
|
||||
wxTabView* m_tabView;
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -299,7 +299,7 @@ private:
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTabbedPanel : public wxPanel
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxTabbedPanel)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxTabbedPanel);
|
||||
|
||||
public:
|
||||
wxTabbedPanel(wxWindow *parent,
|
||||
@@ -320,7 +320,7 @@ protected:
|
||||
wxTabView* m_tabView;
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
WX_DECLARE_HASH_MAP(int, wxWindow*, wxIntegerHash, wxIntegerEqual,
|
||||
@@ -328,7 +328,7 @@ WX_DECLARE_HASH_MAP(int, wxWindow*, wxIntegerHash, wxIntegerEqual,
|
||||
|
||||
class WXDLLIMPEXP_CORE wxPanelTabView : public wxTabView
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxPanelTabView)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPanelTabView);
|
||||
|
||||
public:
|
||||
wxPanelTabView(wxPanel *pan, long style = wxTAB_STYLE_DRAW_BOX | wxTAB_STYLE_COLOUR_INTERIOR);
|
||||
|
||||
+22
-7
@@ -27,7 +27,7 @@ class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
|
||||
extern WXDLLIMPEXP_DATA_CORE(const char) wxGetTextFromUserPromptStr[];
|
||||
extern WXDLLIMPEXP_DATA_CORE(const char) wxGetPasswordFromUserPromptStr[];
|
||||
|
||||
#define wxTextEntryDialogStyle (wxOK | wxCANCEL | wxCENTRE | wxWS_EX_VALIDATE_RECURSIVELY)
|
||||
#define wxTextEntryDialogStyle (wxOK | wxCANCEL | wxCENTRE)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTextEntryDialog: a dialog with text control, [ok] and [cancel] buttons
|
||||
@@ -63,6 +63,8 @@ public:
|
||||
|
||||
void SetMaxLength(unsigned long len);
|
||||
|
||||
void ForceUpper();
|
||||
|
||||
#if wxUSE_VALIDATORS
|
||||
void SetTextValidator( const wxTextValidator& validator );
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
@@ -72,8 +74,8 @@ public:
|
||||
wxTextValidator* GetTextValidator() { return (wxTextValidator*)m_textctrl->GetValidator(); }
|
||||
#endif // wxUSE_VALIDATORS
|
||||
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow();
|
||||
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||
|
||||
// implementation only
|
||||
void OnOK(wxCommandEvent& event);
|
||||
@@ -84,8 +86,8 @@ protected:
|
||||
long m_dialogStyle;
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxTextEntryDialog)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxTextEntryDialog);
|
||||
wxDECLARE_NO_COPY_CLASS(wxTextEntryDialog);
|
||||
};
|
||||
|
||||
@@ -96,14 +98,27 @@ private:
|
||||
class WXDLLIMPEXP_CORE wxPasswordEntryDialog : public wxTextEntryDialog
|
||||
{
|
||||
public:
|
||||
wxPasswordEntryDialog() { }
|
||||
wxPasswordEntryDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& caption = wxGetPasswordFromUserPromptStr,
|
||||
const wxString& value = wxEmptyString,
|
||||
long style = wxTextEntryDialogStyle,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
const wxPoint& pos = wxDefaultPosition)
|
||||
{
|
||||
Create(parent, message, caption, value, style, pos);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& caption = wxGetPasswordFromUserPromptStr,
|
||||
const wxString& value = wxEmptyString,
|
||||
long style = wxTextEntryDialogStyle,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPasswordEntryDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxPasswordEntryDialog);
|
||||
wxDECLARE_NO_COPY_CLASS(wxPasswordEntryDialog);
|
||||
};
|
||||
|
||||
|
||||
+78
-83
@@ -67,74 +67,74 @@ public:
|
||||
// implement base class pure virtuals
|
||||
// ----------------------------------
|
||||
|
||||
virtual unsigned int GetCount() const;
|
||||
virtual unsigned int GetCount() const wxOVERRIDE;
|
||||
|
||||
virtual unsigned int GetIndent() const { return m_indent; }
|
||||
virtual void SetIndent(unsigned int indent);
|
||||
virtual unsigned int GetIndent() const wxOVERRIDE { return m_indent; }
|
||||
virtual void SetIndent(unsigned int indent) wxOVERRIDE;
|
||||
|
||||
|
||||
virtual void SetImageList(wxImageList *imageList);
|
||||
virtual void SetStateImageList(wxImageList *imageList);
|
||||
virtual void SetImageList(wxImageList *imageList) wxOVERRIDE;
|
||||
virtual void SetStateImageList(wxImageList *imageList) wxOVERRIDE;
|
||||
|
||||
virtual wxString GetItemText(const wxTreeItemId& item) const;
|
||||
virtual wxString GetItemText(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual int GetItemImage(const wxTreeItemId& item,
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
|
||||
virtual wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
|
||||
virtual wxColour GetItemTextColour(const wxTreeItemId& item) const;
|
||||
virtual wxColour GetItemBackgroundColour(const wxTreeItemId& item) const;
|
||||
virtual wxFont GetItemFont(const wxTreeItemId& item) const;
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal) const wxOVERRIDE;
|
||||
virtual wxTreeItemData *GetItemData(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxColour GetItemTextColour(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxColour GetItemBackgroundColour(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxFont GetItemFont(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
virtual void SetItemText(const wxTreeItemId& item, const wxString& text);
|
||||
virtual void SetItemText(const wxTreeItemId& item, const wxString& text) wxOVERRIDE;
|
||||
virtual void SetItemImage(const wxTreeItemId& item,
|
||||
int image,
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal);
|
||||
virtual void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal) wxOVERRIDE;
|
||||
virtual void SetItemData(const wxTreeItemId& item, wxTreeItemData *data) wxOVERRIDE;
|
||||
|
||||
virtual void SetItemHasChildren(const wxTreeItemId& item, bool has = true);
|
||||
virtual void SetItemBold(const wxTreeItemId& item, bool bold = true);
|
||||
virtual void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true);
|
||||
virtual void SetItemTextColour(const wxTreeItemId& item, const wxColour& col);
|
||||
virtual void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col);
|
||||
virtual void SetItemFont(const wxTreeItemId& item, const wxFont& font);
|
||||
virtual void SetItemHasChildren(const wxTreeItemId& item, bool has = true) wxOVERRIDE;
|
||||
virtual void SetItemBold(const wxTreeItemId& item, bool bold = true) wxOVERRIDE;
|
||||
virtual void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true) wxOVERRIDE;
|
||||
virtual void SetItemTextColour(const wxTreeItemId& item, const wxColour& col) wxOVERRIDE;
|
||||
virtual void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col) wxOVERRIDE;
|
||||
virtual void SetItemFont(const wxTreeItemId& item, const wxFont& font) wxOVERRIDE;
|
||||
|
||||
virtual bool IsVisible(const wxTreeItemId& item) const;
|
||||
virtual bool ItemHasChildren(const wxTreeItemId& item) const;
|
||||
virtual bool IsExpanded(const wxTreeItemId& item) const;
|
||||
virtual bool IsSelected(const wxTreeItemId& item) const;
|
||||
virtual bool IsBold(const wxTreeItemId& item) const;
|
||||
virtual bool IsVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool ItemHasChildren(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool IsExpanded(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool IsSelected(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool IsBold(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
virtual size_t GetChildrenCount(const wxTreeItemId& item,
|
||||
bool recursively = true) const;
|
||||
bool recursively = true) const wxOVERRIDE;
|
||||
|
||||
// navigation
|
||||
// ----------
|
||||
|
||||
virtual wxTreeItemId GetRootItem() const { return m_anchor; }
|
||||
virtual wxTreeItemId GetSelection() const
|
||||
virtual wxTreeItemId GetRootItem() const wxOVERRIDE { return m_anchor; }
|
||||
virtual wxTreeItemId GetSelection() const wxOVERRIDE
|
||||
{
|
||||
wxASSERT_MSG( !HasFlag(wxTR_MULTIPLE),
|
||||
wxT("must use GetSelections() with this control") );
|
||||
|
||||
return m_current;
|
||||
}
|
||||
virtual size_t GetSelections(wxArrayTreeItemIds&) const;
|
||||
virtual wxTreeItemId GetFocusedItem() const { return m_current; }
|
||||
virtual size_t GetSelections(wxArrayTreeItemIds&) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetFocusedItem() const wxOVERRIDE { return m_current; }
|
||||
|
||||
virtual void ClearFocusedItem();
|
||||
virtual void SetFocusedItem(const wxTreeItemId& item);
|
||||
virtual void ClearFocusedItem() wxOVERRIDE;
|
||||
virtual void SetFocusedItem(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetFirstChild(const wxTreeItemId& item,
|
||||
wxTreeItemIdValue& cookie) const;
|
||||
wxTreeItemIdValue& cookie) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetNextChild(const wxTreeItemId& item,
|
||||
wxTreeItemIdValue& cookie) const;
|
||||
virtual wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
|
||||
wxTreeItemIdValue& cookie) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetLastChild(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetNextSibling(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
virtual wxTreeItemId GetFirstVisibleItem() const;
|
||||
virtual wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetFirstVisibleItem() const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetNextVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
|
||||
// operations
|
||||
@@ -142,41 +142,41 @@ public:
|
||||
|
||||
virtual wxTreeItemId AddRoot(const wxString& text,
|
||||
int image = -1, int selectedImage = -1,
|
||||
wxTreeItemData *data = NULL);
|
||||
wxTreeItemData *data = NULL) wxOVERRIDE;
|
||||
|
||||
virtual void Delete(const wxTreeItemId& item);
|
||||
virtual void DeleteChildren(const wxTreeItemId& item);
|
||||
virtual void DeleteAllItems();
|
||||
virtual void Delete(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void DeleteChildren(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void DeleteAllItems() wxOVERRIDE;
|
||||
|
||||
virtual void Expand(const wxTreeItemId& item);
|
||||
virtual void Collapse(const wxTreeItemId& item);
|
||||
virtual void CollapseAndReset(const wxTreeItemId& item);
|
||||
virtual void Toggle(const wxTreeItemId& item);
|
||||
virtual void Expand(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void Collapse(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void CollapseAndReset(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void Toggle(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
virtual void Unselect();
|
||||
virtual void UnselectAll();
|
||||
virtual void SelectItem(const wxTreeItemId& item, bool select = true);
|
||||
virtual void SelectChildren(const wxTreeItemId& parent);
|
||||
virtual void Unselect() wxOVERRIDE;
|
||||
virtual void UnselectAll() wxOVERRIDE;
|
||||
virtual void SelectItem(const wxTreeItemId& item, bool select = true) wxOVERRIDE;
|
||||
virtual void SelectChildren(const wxTreeItemId& parent) wxOVERRIDE;
|
||||
|
||||
virtual void EnsureVisible(const wxTreeItemId& item);
|
||||
virtual void ScrollTo(const wxTreeItemId& item);
|
||||
virtual void EnsureVisible(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void ScrollTo(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
virtual wxTextCtrl *EditLabel(const wxTreeItemId& item,
|
||||
wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl));
|
||||
virtual wxTextCtrl *GetEditControl() const;
|
||||
wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl)) wxOVERRIDE;
|
||||
virtual wxTextCtrl *GetEditControl() const wxOVERRIDE;
|
||||
virtual void EndEditLabel(const wxTreeItemId& item,
|
||||
bool discardChanges = false);
|
||||
bool discardChanges = false) wxOVERRIDE;
|
||||
|
||||
virtual void EnableBellOnNoMatch(bool on = true);
|
||||
virtual void EnableBellOnNoMatch(bool on = true) wxOVERRIDE;
|
||||
|
||||
virtual void SortChildren(const wxTreeItemId& item);
|
||||
virtual void SortChildren(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
// items geometry
|
||||
// --------------
|
||||
|
||||
virtual bool GetBoundingRect(const wxTreeItemId& item,
|
||||
wxRect& rect,
|
||||
bool textOnly = false) const;
|
||||
bool textOnly = false) const wxOVERRIDE;
|
||||
|
||||
|
||||
// this version specific methods
|
||||
@@ -191,21 +191,16 @@ public:
|
||||
|
||||
wxTreeItemId GetNext(const wxTreeItemId& item) const;
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// use EditLabel() instead
|
||||
void Edit( const wxTreeItemId& item ) { EditLabel(item); }
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
// implementation only from now on
|
||||
|
||||
// overridden base class virtuals
|
||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||
virtual bool SetForegroundColour(const wxColour& colour);
|
||||
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
virtual bool SetForegroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
virtual void Refresh(bool eraseBackground = true, const wxRect *rect = NULL);
|
||||
virtual void Refresh(bool eraseBackground = true, const wxRect *rect = NULL) wxOVERRIDE;
|
||||
|
||||
virtual bool SetFont( const wxFont &font );
|
||||
virtual void SetWindowStyle(const long styles);
|
||||
virtual bool SetFont( const wxFont &font ) wxOVERRIDE;
|
||||
virtual void SetWindowStyleFlag(long styles) wxOVERRIDE;
|
||||
|
||||
// callbacks
|
||||
void OnPaint( wxPaintEvent &event );
|
||||
@@ -216,9 +211,9 @@ public:
|
||||
void OnMouse( wxMouseEvent &event );
|
||||
void OnGetToolTip( wxTreeEvent &event );
|
||||
void OnSize( wxSizeEvent &event );
|
||||
void OnInternalIdle( );
|
||||
void OnInternalIdle( ) wxOVERRIDE;
|
||||
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||
{
|
||||
return GetClassDefaultAttributes(GetWindowVariant());
|
||||
}
|
||||
@@ -286,7 +281,7 @@ protected:
|
||||
void Init();
|
||||
|
||||
// overridden wxWindow methods
|
||||
virtual void DoThaw();
|
||||
virtual void DoThaw() wxOVERRIDE;
|
||||
|
||||
// misc helpers
|
||||
void SendDeleteEvent(wxGenericTreeItem *itemBeingDeleted);
|
||||
@@ -299,21 +294,21 @@ protected:
|
||||
bool unselect_others = true,
|
||||
bool extended_select = false);
|
||||
|
||||
virtual int DoGetItemState(const wxTreeItemId& item) const;
|
||||
virtual void DoSetItemState(const wxTreeItemId& item, int state);
|
||||
virtual int DoGetItemState(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual void DoSetItemState(const wxTreeItemId& item, int state) wxOVERRIDE;
|
||||
|
||||
virtual wxTreeItemId DoInsertItem(const wxTreeItemId& parent,
|
||||
size_t previous,
|
||||
const wxString& text,
|
||||
int image,
|
||||
int selectedImage,
|
||||
wxTreeItemData *data);
|
||||
wxTreeItemData *data) wxOVERRIDE;
|
||||
virtual wxTreeItemId DoInsertAfter(const wxTreeItemId& parent,
|
||||
const wxTreeItemId& idPrevious,
|
||||
const wxString& text,
|
||||
int image = -1, int selImage = -1,
|
||||
wxTreeItemData *data = NULL);
|
||||
virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) const;
|
||||
wxTreeItemData *data = NULL) wxOVERRIDE;
|
||||
virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) const wxOVERRIDE;
|
||||
|
||||
// called by wxTextTreeCtrl when it marks itself for deletion
|
||||
void ResetTextControl();
|
||||
@@ -353,15 +348,15 @@ protected:
|
||||
|
||||
void DoDirtyProcessing();
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// Reset the state of the last find (i.e. keyboard incremental search)
|
||||
// operation.
|
||||
void ResetFindState();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl)
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl);
|
||||
wxDECLARE_NO_COPY_CLASS(wxGenericTreeCtrl);
|
||||
};
|
||||
|
||||
@@ -373,7 +368,7 @@ private:
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTreeCtrl: public wxGenericTreeCtrl
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxTreeCtrl)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxTreeCtrl);
|
||||
|
||||
public:
|
||||
wxTreeCtrl() {}
|
||||
|
||||
+11
-10
@@ -46,13 +46,13 @@ public:
|
||||
virtual ~wxWizard();
|
||||
|
||||
// implement base class pure virtuals
|
||||
virtual bool RunWizard(wxWizardPage *firstPage);
|
||||
virtual wxWizardPage *GetCurrentPage() const;
|
||||
virtual void SetPageSize(const wxSize& size);
|
||||
virtual wxSize GetPageSize() const;
|
||||
virtual void FitToPage(const wxWizardPage *firstPage);
|
||||
virtual wxSizer *GetPageAreaSizer() const;
|
||||
virtual void SetBorder(int border);
|
||||
virtual bool RunWizard(wxWizardPage *firstPage) wxOVERRIDE;
|
||||
virtual wxWizardPage *GetCurrentPage() const wxOVERRIDE;
|
||||
virtual void SetPageSize(const wxSize& size) wxOVERRIDE;
|
||||
virtual wxSize GetPageSize() const wxOVERRIDE;
|
||||
virtual void FitToPage(const wxWizardPage *firstPage) wxOVERRIDE;
|
||||
virtual wxSizer *GetPageAreaSizer() const wxOVERRIDE;
|
||||
virtual void SetBorder(int border) wxOVERRIDE;
|
||||
|
||||
/// set/get bitmap
|
||||
const wxBitmap& GetBitmap() const { return m_bitmap; }
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
virtual void DoCreateControls();
|
||||
|
||||
// Do the adaptation
|
||||
virtual bool DoLayoutAdaptation();
|
||||
virtual bool DoLayoutAdaptation() wxOVERRIDE;
|
||||
|
||||
// Set/get bitmap background colour
|
||||
void SetBitmapBackgroundColour(const wxColour& colour) { m_bitmapBackgroundColour = colour; }
|
||||
@@ -124,6 +124,7 @@ protected:
|
||||
|
||||
// wizard state
|
||||
wxWizardPage *m_page; // the current page or NULL
|
||||
wxWizardPage *m_firstpage; // the page RunWizard started on or NULL
|
||||
wxBitmap m_bitmap; // the default bitmap to show
|
||||
|
||||
// wizard controls
|
||||
@@ -160,8 +161,8 @@ protected:
|
||||
|
||||
friend class wxWizardSizer;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxWizard)
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_DYNAMIC_CLASS(wxWizard);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_NO_COPY_CLASS(wxWizard);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user