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