]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/ogl/studio/cspalette.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: OGL sample palette
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _STUDIO_CSPALETTE_H_
13 #define _STUDIO_CSPALETTE_H_
15 #if defined(__GNUG__) && !defined(__APPLE__)
20 #include <wx/string.h>
21 #include <wx/ogl/ogl.h> // base header of OGL, includes and adjusts wx/deprecated/setup.h
24 * Object editor tool palette
28 #define TOOLPALETTECLASS wxToolBar
30 class csEditorToolPalette
: public TOOLPALETTECLASS
34 csEditorToolPalette(wxWindow
*parent
, wxWindowID id
= wxID_ANY
, const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
36 long style
= wxTB_VERTICAL
);
38 bool OnLeftClick(int toolIndex
, bool toggled
);
39 void OnMouseEnter(int toolIndex
);
41 inline int GetSelection() const { return m_currentlySelected
; }
42 void SetSelection(int sel
);
44 void SetSize(int x
, int y
, int width
, int height
, int sizeFlags
= wxSIZE_AUTO
);
47 int m_currentlySelected
;
50 #define PALETTE_ARROW 200
51 #define PALETTE_TEXT_TOOL 201
54 // _STUDIO_CSPALETTE_H_