]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/ogl/ogledit/palette.h
1 /////////////////////////////////////////////////////////////////////////////
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_
20 #include <wx/string.h>
21 #if 0 // def __WXGTK__
22 #include <wx/toolbar.h>
24 #include <wx/tbarsmpl.h>
28 * Object editor tool palette
32 // TODO for wxWin: wxToolBar95 cannot be moved to a non-0,0 position!
33 // Needs to have a parent window...
34 // So use a simple toolbar at present.
35 #if 0 // def __WXGTK__
36 #define TOOLPALETTECLASS wxToolBar
38 #define TOOLPALETTECLASS wxToolBarSimple
41 class EditorToolPalette
: public TOOLPALETTECLASS
44 int currentlySelected
;
46 EditorToolPalette(wxWindow
*parent
, const wxPoint
& pos
= wxDefaultPosition
,
47 const wxSize
& size
= wxDefaultSize
,
48 long style
= wxTB_VERTICAL
);
49 bool OnLeftClick(int toolIndex
, bool toggled
);
50 void OnMouseEnter(int toolIndex
);
51 void SetSize(int x
, int y
, int width
, int height
, int sizeFlags
= wxSIZE_AUTO
);
54 #define PALETTE_TOOL1 1
55 #define PALETTE_TOOL2 2
56 #define PALETTE_TOOL3 3
57 #define PALETTE_TOOL4 4
58 #define PALETTE_TOOL5 5
59 #define PALETTE_TOOL6 6
60 #define PALETTE_TOOL7 7
61 #define PALETTE_TOOL8 8
62 #define PALETTE_TOOL9 9
63 #define PALETTE_ARROW 10
66 // _OGLSAMPLE_PALETTE_H_