]>
Commit | Line | Data |
---|---|---|
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 | #include <wx/wx.h> | |
16 | #include <wx/string.h> | |
17 | #include <wx/ogl/ogl.h> // base header of OGL, includes and adjusts wx/deprecated/setup.h | |
18 | ||
19 | /* | |
20 | * Object editor tool palette | |
21 | * | |
22 | */ | |
23 | ||
24 | #define TOOLPALETTECLASS wxToolBar | |
25 | ||
26 | class csEditorToolPalette: public TOOLPALETTECLASS | |
27 | { | |
28 | public: | |
29 | ||
30 | csEditorToolPalette(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, | |
31 | const wxSize& size = wxDefaultSize, | |
32 | long style = wxTB_VERTICAL); | |
33 | ||
34 | bool OnLeftClick(int toolIndex, bool toggled); | |
35 | void OnMouseEnter(int toolIndex); | |
36 | ||
37 | inline int GetSelection() const { return m_currentlySelected; } | |
38 | void SetSelection(int sel); | |
39 | ||
40 | void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); | |
41 | ||
42 | protected: | |
43 | int m_currentlySelected; | |
44 | }; | |
45 | ||
46 | #define PALETTE_ARROW 200 | |
47 | #define PALETTE_TEXT_TOOL 201 | |
48 | ||
49 | #endif | |
50 | // _STUDIO_CSPALETTE_H_ |