]> git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/editrpal.h
Major changes to Dialog Editor (still at alpha level)
[wxWidgets.git] / utils / dialoged / src / editrpal.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: editrpal.h
3 // Purpose: Tool palette
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _EDITRPAL_H_
13 #define _EDITRPAL_H_
14
15 #ifdef __GNUG__
16 #pragma interface "editrpal.h"
17 #endif
18
19 #include "wx/wx.h"
20 #include "wx/string.h"
21 #include "wx/layout.h"
22 #include "wx/resource.h"
23 #include "wx/tbarsmpl.h"
24
25 #include "proplist.h"
26
27 /*
28 * Object editor tool palette
29 *
30 */
31
32 // For some reason, wxButtonBar under Windows 95 cannot be moved to a non-0,0 position!
33 #define TOOLPALETTECLASS wxToolBarSimple
34
35 class EditorToolPalette: public TOOLPALETTECLASS
36 {
37 public:
38 int currentlySelected;
39 wxResourceManager *resourceManager;
40
41 EditorToolPalette(wxResourceManager *manager, wxFrame *frame, int x = 0, int y = 0, int w = -1, int h = -1,
42 long style = wxNO_BORDER, int direction = wxVERTICAL, int RowsOrColumns = 2);
43 bool OnLeftClick(int toolIndex, bool toggled);
44 void OnMouseEnter(int toolIndex);
45 void OnPaint(wxPaintEvent& event);
46
47 DECLARE_EVENT_TABLE()
48 };
49
50 #define PALETTE_FRAME 1
51 #define PALETTE_DIALOG_BOX 2
52 #define PALETTE_PANEL 3
53 #define PALETTE_CANVAS 4
54 #define PALETTE_TEXT_WINDOW 5
55 #define PALETTE_MESSAGE 6
56 #define PALETTE_BUTTON 7
57 #define PALETTE_CHECKBOX 8
58 #define PALETTE_LISTBOX 9
59 #define PALETTE_RADIOBOX 10
60 #define PALETTE_CHOICE 11
61 #define PALETTE_TEXT 12
62 #define PALETTE_MULTITEXT 13
63 #define PALETTE_SLIDER 14
64 #define PALETTE_ARROW 15
65 #define PALETTE_GAUGE 16
66 #define PALETTE_GROUPBOX 17
67 #define PALETTE_BITMAP_MESSAGE 18
68 #define PALETTE_BITMAP_BUTTON 19
69 #define PALETTE_SCROLLBAR 20
70
71 #endif