]>
Commit | Line | Data |
---|---|---|
f449ef69 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: palette.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 _OGLSAMPLE_PALETTE_H_ | |
13 | #define _OGLSAMPLE_PALETTE_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 EditorToolPalette: public TOOLPALETTECLASS | |
34 | { | |
35 | public: | |
36 | int currentlySelected; | |
37 | ||
38 | EditorToolPalette(wxWindow *parent, const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = wxTB_VERTICAL); | |
41 | bool OnLeftClick(int toolIndex, bool toggled); | |
42 | void OnMouseEnter(int toolIndex); | |
43 | void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); | |
44 | }; | |
45 | ||
46 | #define PALETTE_TOOL1 1 | |
47 | #define PALETTE_TOOL2 2 | |
48 | #define PALETTE_TOOL3 3 | |
49 | #define PALETTE_TOOL4 4 | |
50 | #define PALETTE_TOOL5 5 | |
51 | #define PALETTE_TOOL6 6 | |
52 | #define PALETTE_TOOL7 7 | |
53 | #define PALETTE_TOOL8 8 | |
54 | #define PALETTE_TOOL9 9 | |
55 | #define PALETTE_ARROW 10 | |
56 | ||
57 | #endif | |
58 | // _OGLSAMPLE_PALETTE_H_ |