]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/ogl/ogledit/palette.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: contrib/samples/ogl/ogledit/palette.h
3 // Purpose: OGL sample palette
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _OGLSAMPLE_PALETTE_H_
13 #define _OGLSAMPLE_PALETTE_H_
16 #include "wx/string.h"
17 #include "wx/deprecated/setup.h"
18 #include "wx/deprecated/tbarsmpl.h"
21 * Object editor tool palette
25 // TODO for wxWin: wxToolBar95 cannot be moved to a non-0,0 position!
26 // Needs to have a parent window...
27 // So use a simple toolbar at present.
28 // ABX: Simple toolbar is not available in default compilation
29 // so I use wxToolBar anyway
30 // #if 0 // def __WXGTK__
31 // #define TOOLPALETTECLASS wxToolBar
33 // #define TOOLPALETTECLASS wxToolBarSimple
35 #define TOOLPALETTECLASS wxToolBar
37 class EditorToolPalette
: public TOOLPALETTECLASS
40 int currentlySelected
;
42 EditorToolPalette(wxWindow
*parent
, const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
,
44 long style
= wxTB_VERTICAL
);
45 bool OnLeftClick(int toolIndex
, bool toggled
);
46 void OnMouseEnter(int toolIndex
);
47 void SetSize(int x
, int y
, int width
, int height
, int sizeFlags
= wxSIZE_AUTO
);
50 #define PALETTE_TOOL1 1
51 #define PALETTE_TOOL2 2
52 #define PALETTE_TOOL3 3
53 #define PALETTE_TOOL4 4
54 #define PALETTE_TOOL5 5
55 #define PALETTE_TOOL6 6
56 #define PALETTE_TOOL7 7
57 #define PALETTE_TOOL8 8
58 #define PALETTE_TOOL9 9
59 #define PALETTE_ARROW 10
62 // _OGLSAMPLE_PALETTE_H_