X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae7e6cc946f85a9f12ab97f5860bf8d6235ec12a..29de6f400ce48a9ce52c4aa900d8d1edb178d5ba:/include/wx/rearrangectrl.h diff --git a/include/wx/rearrangectrl.h b/include/wx/rearrangectrl.h index da1b0c1d69..737671db3b 100644 --- a/include/wx/rearrangectrl.h +++ b/include/wx/rearrangectrl.h @@ -12,6 +12,9 @@ #define _WX_REARRANGECTRL_H_ #include "wx/checklst.h" + +#if wxUSE_REARRANGECTRL + #include "wx/panel.h" #include "wx/dialog.h" @@ -199,9 +202,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 @@ -212,5 +227,7 @@ private: DECLARE_NO_COPY_CLASS(wxRearrangeDialog) }; +#endif // wxUSE_REARRANGECTRL + #endif // _WX_REARRANGECTRL_H_