X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae7e6cc946f85a9f12ab97f5860bf8d6235ec12a..c8841d1493e0d19085990c9e331dd85c4da45d8e:/include/wx/rearrangectrl.h diff --git a/include/wx/rearrangectrl.h b/include/wx/rearrangectrl.h index da1b0c1d69..b54b04fa11 100644 --- a/include/wx/rearrangectrl.h +++ b/include/wx/rearrangectrl.h @@ -3,7 +3,6 @@ // Purpose: various controls for rearranging the items interactively // Author: Vadim Zeitlin // Created: 2008-12-15 -// RCS-ID: $Id$ // Copyright: (c) 2008 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -12,6 +11,9 @@ #define _WX_REARRANGECTRL_H_ #include "wx/checklst.h" + +#if wxUSE_REARRANGECTRL + #include "wx/panel.h" #include "wx/dialog.h" @@ -106,7 +108,7 @@ private: DECLARE_EVENT_TABLE() - DECLARE_NO_COPY_CLASS(wxRearrangeList) + wxDECLARE_NO_COPY_CLASS(wxRearrangeList); }; // ---------------------------------------------------------------------------- @@ -163,7 +165,7 @@ private: DECLARE_EVENT_TABLE() - DECLARE_NO_COPY_CLASS(wxRearrangeCtrl) + wxDECLARE_NO_COPY_CLASS(wxRearrangeCtrl); }; // ---------------------------------------------------------------------------- @@ -199,9 +201,21 @@ public: const wxPoint& pos = wxDefaultPosition, const wxString& name = wxRearrangeDialogNameStr); + + // methods for the dialog customization + + // add extra contents to the dialog below the wxRearrangeCtrl part: the + // given window (usually a wxPanel containing more control inside it) must + // have the dialog as its parent and will be inserted into it at the right + // place by this method + void AddExtraControls(wxWindow *win); + + // return the wxRearrangeList control used by the dialog + wxRearrangeList *GetList() const; + + // get the order of items after it was modified by the user - wxArrayInt GetOrder() const - { return m_ctrl->GetList()->GetCurrentOrder(); } + wxArrayInt GetOrder() const; private: // common part of all ctors @@ -209,8 +223,10 @@ private: wxRearrangeCtrl *m_ctrl; - DECLARE_NO_COPY_CLASS(wxRearrangeDialog) + wxDECLARE_NO_COPY_CLASS(wxRearrangeDialog); }; +#endif // wxUSE_REARRANGECTRL + #endif // _WX_REARRANGECTRL_H_