wxArt2D
orderdlg.h
Go to the documentation of this file.
1 /*! \file wx/editor/orderdlg.h
2  \brief Definition of class for dialog to specify the layerorder.
3  \author Klaas Holwerda
4 
5  Copyright: 2000-2004 (c) Klaas Holwerda
6 
7  Licence: wxWidgets Licence
8 
9  RCS-ID: $Id: orderdlg.h,v 1.6 2009/10/01 19:22:35 titato Exp $
10 */
11 
12 
13 //!
14 //!
15 /*
16  * Definition of class for dialog to specify the layerorder.
17 */
18 
19 #ifndef __ORDERDLG_H
20 #define __ORDERDLG_H
21 
22 #ifndef WX_PRECOMP
23 #include "wx/wx.h"
24 #endif
25 
26 
27 #include "wx/docview/doccom.h"
28 
29 class A2DEDITORDLLEXP a2dDragListBox;
30 
31 //! This class is used to show the layerorder dialog, in which the drawing order of the used layers
32 //! can be set.
33 class A2DEDITORDLLEXP a2dLayerOrderDialog: public wxDialog
34 {
35 public:
36 
37  //! constructor.
38  a2dLayerOrderDialog( wxWindow* parent, a2dLayers* layersetup, const wxString& title, long style = 0, const wxString& name = wxT( "layer_order_dlg" ) );
39 
40  //! destructor.
42 
43  //! initialize with this layer setup
44  void Init( a2dLayers* layersetup );
45 
46  //! store current order to layer setup
47  void StoreOrder();
48 
49 protected:
50 
51  //! Close window if OK-button is pressed.
52  void CmOk( wxCommandEvent& );
53 
54  //! Close window if CANCEL-button is pressed.
55  void CmCancel( wxCommandEvent& );
56 
57  //! Move selected layer to a heigher layersetting if UP-button is pressed.
58  void CmUp( wxCommandEvent& );
59 
60  //! Move selected layer to a lower layersetting if the DOWN-button is pressed.
61  void CmDown( wxCommandEvent& );
62 
63  //! Show new layerorder if the SHOW-button is pressed.
64  void CmShow( wxCommandEvent& );
65 
66  //! Make sure the UP- and DOWN-button can't be used if the top or the bottom of the list
67  //! has been reached.
68  void CmListBox( wxCommandEvent& );
69 
70  //! Close window if EXIT-button is pressed.
71  void OnCloseWindow( wxCloseEvent& event );
72 
73  void OnActivateView( a2dViewEvent& viewevent );
74 
75  void OnChangedDocument( a2dCommandEvent& event );
76 
77  void OnComEvent( a2dComEvent& event );
78 
79  wxButton* m_buttonOK;
80 
81  wxButton* m_buttonCANCEL;
82 
83  a2dDragListBox* m_listbox;
84 
85  wxButton* m_buttonUP;
86 
87  wxButton* m_buttonDOWN;
88 
89  wxButton* m_buttonSHOW;
90 
91  // pointer to the layer setup of the active view.
92  a2dSmrtPtr<a2dLayers> m_layersetup;
93 
94  // Declare used events.
95  DECLARE_EVENT_TABLE()
96 
97 };
98 
99 #endif
see a2dCommandEvent
Definition: doccom.h:79
a2dView event, to report events in the a2dView class
Definition: docviewref.h:424
Docview framework its controlling class.
GUI listbox with copy feature.
Definition: canorderdlg.h:29
see a2dComEvent
Definition: gen.h:371
orderdlg.h Source File -- Sun Oct 12 2014 17:04:22 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation