]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/ogl/studio/cspalette.h
wxSystemSettings docs correction
[wxWidgets.git] / contrib / samples / ogl / studio / cspalette.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cspalette.h
3 // Purpose: OGL sample palette
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 12/07/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _STUDIO_CSPALETTE_H_
13 #define _STUDIO_CSPALETTE_H_
14
15 #ifdef __GNUG__
16 // #pragma interface
17 #endif
18
19 #include <wx/wx.h>
20 #include <wx/string.h>
21 #include <wx/tbarsmpl.h>
22
23 /*
24 * Object editor tool palette
25 *
26 */
27
28 // TODO for wxWin: wxToolBar95 cannot be moved to a non-0,0 position!
29 // Needs to have a parent window...
30 // So use a simple toolbar at present.
31 #define TOOLPALETTECLASS wxToolBarSimple
32
33 class csEditorToolPalette: public TOOLPALETTECLASS
34 {
35 public:
36
37 csEditorToolPalette(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize,
39 long style = wxTB_VERTICAL);
40
41 bool OnLeftClick(int toolIndex, bool toggled);
42 void OnMouseEnter(int toolIndex);
43
44 inline int GetSelection() const { return m_currentlySelected; }
45 void SetSelection(int sel);
46
47 void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
48
49 protected:
50 int m_currentlySelected;
51 };
52
53 #define PALETTE_ARROW 200
54 #define PALETTE_TEXT_TOOL 201
55
56 #endif
57 // _STUDIO_CSPALETTE_H_