2000-03-03 06:25:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: cspalette.h
|
|
|
|
// Purpose: OGL sample palette
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 12/07/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-06-09 12:42:34 -04:00
|
|
|
// Licence: wxWindows licence
|
2000-03-03 06:25:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _STUDIO_CSPALETTE_H_
|
|
|
|
#define _STUDIO_CSPALETTE_H_
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/string.h>
|
2005-03-31 14:18:25 -05:00
|
|
|
#include <wx/ogl/ogl.h> // base header of OGL, includes and adjusts wx/deprecated/setup.h
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Object editor tool palette
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2003-08-21 05:05:56 -04:00
|
|
|
#define TOOLPALETTECLASS wxToolBar
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
class csEditorToolPalette: public TOOLPALETTECLASS
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2004-06-09 12:42:34 -04:00
|
|
|
csEditorToolPalette(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
|
2000-03-03 06:25:10 -05:00
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTB_VERTICAL);
|
|
|
|
|
|
|
|
bool OnLeftClick(int toolIndex, bool toggled);
|
|
|
|
void OnMouseEnter(int toolIndex);
|
|
|
|
|
|
|
|
inline int GetSelection() const { return m_currentlySelected; }
|
|
|
|
void SetSelection(int sel);
|
|
|
|
|
|
|
|
void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
int m_currentlySelected;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define PALETTE_ARROW 200
|
|
|
|
#define PALETTE_TEXT_TOOL 201
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _STUDIO_CSPALETTE_H_
|