2000-03-03 06:25:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: palette.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 _OGLSAMPLE_PALETTE_H_
|
|
|
|
#define _OGLSAMPLE_PALETTE_H_
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/string.h>
|
2003-08-17 07:14:08 -04:00
|
|
|
#include <wx/deprecated/setup.h>
|
2003-08-17 06:20:08 -04:00
|
|
|
#include <wx/deprecated/tbarsmpl.h>
|
2000-03-03 06:25:10 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Object editor tool palette
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TODO for wxWin: wxToolBar95 cannot be moved to a non-0,0 position!
|
|
|
|
// Needs to have a parent window...
|
|
|
|
// So use a simple toolbar at present.
|
2003-08-21 05:05:56 -04:00
|
|
|
// ABX: Simple toolbar is not available in default compilation
|
|
|
|
// so I use wxToolBar anyway
|
|
|
|
// #if 0 // def __WXGTK__
|
|
|
|
// #define TOOLPALETTECLASS wxToolBar
|
|
|
|
// #else
|
|
|
|
// #define TOOLPALETTECLASS wxToolBarSimple
|
|
|
|
// #endif
|
2000-03-03 06:25:10 -05:00
|
|
|
#define TOOLPALETTECLASS wxToolBar
|
|
|
|
|
|
|
|
class EditorToolPalette: public TOOLPALETTECLASS
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int currentlySelected;
|
|
|
|
|
|
|
|
EditorToolPalette(wxWindow *parent, const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTB_VERTICAL);
|
|
|
|
bool OnLeftClick(int toolIndex, bool toggled);
|
|
|
|
void OnMouseEnter(int toolIndex);
|
|
|
|
void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
|
|
|
};
|
|
|
|
|
|
|
|
#define PALETTE_TOOL1 1
|
|
|
|
#define PALETTE_TOOL2 2
|
|
|
|
#define PALETTE_TOOL3 3
|
|
|
|
#define PALETTE_TOOL4 4
|
|
|
|
#define PALETTE_TOOL5 5
|
|
|
|
#define PALETTE_TOOL6 6
|
|
|
|
#define PALETTE_TOOL7 7
|
|
|
|
#define PALETTE_TOOL8 8
|
|
|
|
#define PALETTE_TOOL9 9
|
|
|
|
#define PALETTE_ARROW 10
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _OGLSAMPLE_PALETTE_H_
|