wxArt2D
tooldlg.h
Go to the documentation of this file.
1 /*! \file wx/canvas/tooldlg.h
2  \brief dialog for choosing a tool
3  \author Klaas Holwerda
4 
5  Copyright: 2000-2004 (c) Klaas Holwerda
6 
7  Licence: wxWidgets Licence
8 
9  RCS-ID: $Id: tooldlg.h,v 1.13 2009/10/05 20:03:12 titato Exp $
10 */
11 
12 
13 #ifndef __TOOLDLG_H__
14 #define __TOOLDLG_H__
15 
16 #ifndef WX_PRECOMP
17 #include "wx/wx.h"
18 #endif
19 
20 #include "wx/minifram.h"
21 
22 #include "wx/canvas/canmod.h"
23 #include "wx/canvas/sttool.h"
24 #include "wx/canvas/edit.h"
25 
26 #include "wx/canvas/strucdlg.h"
27 
28 extern wxBitmap* GetBitmap( const wxString& name );
29 
30 //class A2DCANVASDLLEXP a2dCentralCanvasCommandProcessor;
31 
32 //! GUI to choose a tool, and execute it via the command processor
33 class A2DCANVASDLLEXP ToolDlg: public wxMiniFrame
34 {
35 
36 public:
37  //! Constructor
38  ToolDlg( wxFrame* parent );
39 
40  //! Destructor
41  ~ToolDlg();
42 
43  virtual void Populate();
44 
45  //! add a command menu to the parent menu, and connect it to the eventhandler of the dialog
46  /*!
47  See also a2dDocumentFrameAddCmdMenu()
48  */
49  void AddCmdMenu( wxBitmap& bitmap, const a2dMenuIdItem& cmdId );
50 
51  //! remove a command menu from the parent menu.
52  /*!
53  See AddCmdMenu()
54  */
55  void RemoveCmdMenu( const a2dMenuIdItem& cmdId );
56 
57 
58 protected:
59 
60  //! used by AddCmdMenu() to dynamically connect menu to function.
61  //! The function just Skippes the event, so it will be handled by a command processor in the end.
62  void OnCmdMenuId( wxCommandEvent& event );
63 
64  void OnCloseWindow( wxCloseEvent& event );
65 
66  wxPanel* m_panel;
67 
68  //the chosen tool.
69  int m_chosen;
70 
71  wxGridSizer* m_sizer;
72 
73  // Declare used events.
74  DECLARE_EVENT_TABLE()
75 
76 };
77 
78 
79 #endif
80 
store a menu Id generated by XRCID( menuIdString ) plus a menustring and helpstring ...
Definition: comevt.h:1563
GUI to choose a tool, and execute it via the command processor.
Definition: tooldlg.h:33
for choosing a a2dCanvasObject from a list.
editing tool for a2dCanvasObject's
all headers of the canvas module
stack based tools controller and tools for drawing and editing.
tooldlg.h Source File -- Sun Oct 12 2014 17:04:26 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation