wxArt2D
identifydlg.h
Go to the documentation of this file.
1 /*! \file wx/canvas/identifydlg.h
2  \brief Identification Dialog
3  \author Klaas Holwerda
4 
5  Copyright: 2000-2004 (c) Klaas Holwerda
6 
7  Licence: wxWidgets Licence
8 
9  RCS-ID: $Id: identifydlg.h,v 1.6 2009/09/03 20:09:53 titato Exp $
10 */
11 
12 
13 //!
14 //!
15 /*
16  * Definition of class for dialog to specify the layerorder.
17 */
18 
19 #ifndef _IDENTIFYDLG_H_
20 #define _IDENTIFYDLG_H_
21 
22 #include "wx/canvas/canobj.h"
23 
24 /*!
25  * Control identifiers
26  */
27 
28 ////@begin control identifiers
29 #define SYMBOL_IDENTIFYDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
30 #define SYMBOL_IDENTIFYDIALOG_TITLE _("Identify Dialog")
31 #define SYMBOL_IDENTIFYDIALOG_IDNAME 10000
32 #define SYMBOL_IDENTIFYDIALOG_SIZE wxSize(500, 100)
33 #define SYMBOL_IDENTIFYDIALOG_POSITION wxDefaultPosition
34 #define ID_IDENT_LISTBOX 10001
35 #define ID_IDENT_HIDE 10002
36 #define ID_IDENT_UPDATE 10003
37 ////@end control identifiers
38 
39 #ifndef wxCLOSE_BOX
40 #define wxCLOSE_BOX 0x1000
41 #endif
42 #ifndef wxFIXED_MINSIZE
43 #define wxFIXED_MINSIZE 0
44 #endif
45 
46 /*!
47  * IdentifyDialog class declaration
48  */
49 class IdentifyDialog: public wxDialog
50 {
51  DECLARE_DYNAMIC_CLASS( IdentifyDialog )
52  DECLARE_EVENT_TABLE()
53 
54 public:
55  /// Constructors
56  IdentifyDialog( );
57  IdentifyDialog( wxWindow* parent, wxWindowID id = SYMBOL_IDENTIFYDIALOG_IDNAME, const wxString& caption = SYMBOL_IDENTIFYDIALOG_TITLE, const wxPoint& pos = SYMBOL_IDENTIFYDIALOG_POSITION, const wxSize& size = SYMBOL_IDENTIFYDIALOG_SIZE, long style = SYMBOL_IDENTIFYDIALOG_STYLE );
58 
59  ~IdentifyDialog( );
60 
61  /// Creation
62  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_IDENTIFYDIALOG_IDNAME, const wxString& caption = SYMBOL_IDENTIFYDIALOG_TITLE, const wxPoint& pos = SYMBOL_IDENTIFYDIALOG_POSITION, const wxSize& size = SYMBOL_IDENTIFYDIALOG_SIZE, long style = SYMBOL_IDENTIFYDIALOG_STYLE );
63 
64  /// Creates the controls and sizers
65  void CreateControls();
66 
67  //! selected child objects with this as parent will be shown
68  void Init( a2dCanvasObject* showObject );
69 
70 protected:
71  void hide( wxCommandEvent& );
72  void OnCloseWindow( wxCloseEvent& event );
73  void Update( wxCommandEvent& );
74  void OnActivate( wxActivateEvent& windowevent );
75  //void OnActivateView( a2dViewEvent& viewevent );
76  //void OnChangedDocument( a2dCommandEvent& event );
77 
78  void OnSize( wxSizeEvent& WXUNUSED( event ) );
79  void OnDoEvent( a2dCommandProcessorEvent& event );
80  void OnComEvent( a2dComEvent& event );
81 
82  /// Retrieves bitmap resources
83  wxBitmap GetBitmapResource( const wxString& name );
84 
85  /// Retrieves icon resources
86  wxIcon GetIconResource( const wxString& name );
87 
88  /// Should we show tooltips?
89  static bool ShowToolTips();
90 
91  wxListBox* m_objectsList;
92  wxButton* m_update;
93 
94  //! selected child objects with this as parent will be shown
96 };
97 
98 #endif // _IDENTIFYDLG_H_
99 
100 
IdentifyDialog()
Constructors.
Definition: identifydlg.cpp:40
bool Create(wxWindow *parent, wxWindowID id=SYMBOL_IDENTIFYDIALOG_IDNAME, const wxString &caption=SYMBOL_IDENTIFYDIALOG_TITLE, const wxPoint &pos=SYMBOL_IDENTIFYDIALOG_POSITION, const wxSize &size=SYMBOL_IDENTIFYDIALOG_SIZE, long style=SYMBOL_IDENTIFYDIALOG_STYLE)
Creation.
Definition: identifydlg.cpp:87
void Init(a2dCanvasObject *showObject)
selected child objects with this as parent will be shown
static bool ShowToolTips()
Should we show tooltips?
The base class for all drawable objects in a a2dCanvasDocument.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
a2dCanvasObject is the base class for Canvas Objects.
Definition: canobj.h:371
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void CreateControls()
Creates the controls and sizers.
a2dCanvasObject * m_showObject
selected child objects with this as parent will be shown
Definition: identifydlg.h:95
#define SYMBOL_IDENTIFYDIALOG_STYLE
Definition: identifydlg.h:29
Event sent to a2dCommandProcessor.
Definition: comevt.h:701
see a2dComEvent
Definition: gen.h:371
identifydlg.h Source File -- Sun Oct 12 2014 17:04:21 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation