]>
git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/editrpal.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Tool palette
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "editrpal.h"
20 #include "wx/string.h"
21 #include "wx/layout.h"
22 #include "wx/resource.h"
23 #include "wx/tbarsmpl.h"
28 * Object editor tool palette
32 // For some reason, wxButtonBar under Windows 95 cannot be moved to a non-0,0 position!
33 #define TOOLPALETTECLASS wxToolBarSimple
35 class EditorToolPalette
: public TOOLPALETTECLASS
38 int currentlySelected
;
39 wxResourceManager
*resourceManager
;
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
);
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