]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/cspalette.h
Rebake after MSLU and other changes
[wxWidgets.git] / contrib / samples / ogl / studio / cspalette.h
CommitLineData
1fc25a89
JS
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
2ba06d5a 9// Licence: wxWindows licence
1fc25a89
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _STUDIO_CSPALETTE_H_
13#define _STUDIO_CSPALETTE_H_
14
ab7ce33c 15#if defined(__GNUG__) && !defined(__APPLE__)
1fc25a89
JS
16// #pragma interface
17#endif
18
19#include <wx/wx.h>
20#include <wx/string.h>
cecdcad1 21#include <wx/ogl/ogl.h> // base header of OGL, includes and adjusts wx/deprecated/setup.h
1fc25a89
JS
22
23/*
24 * Object editor tool palette
25 *
26 */
27
1484b5cc 28#define TOOLPALETTECLASS wxToolBar
1fc25a89
JS
29
30class csEditorToolPalette: public TOOLPALETTECLASS
31{
32public:
33
2ba06d5a 34 csEditorToolPalette(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
1fc25a89
JS
35 const wxSize& size = wxDefaultSize,
36 long style = wxTB_VERTICAL);
37
38 bool OnLeftClick(int toolIndex, bool toggled);
39 void OnMouseEnter(int toolIndex);
40
41 inline int GetSelection() const { return m_currentlySelected; }
42 void SetSelection(int sel);
43
44 void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
45
46protected:
47 int m_currentlySelected;
48};
49
50#define PALETTE_ARROW 200
51#define PALETTE_TEXT_TOOL 201
52
53#endif
54 // _STUDIO_CSPALETTE_H_