1998-07-29 06:43:51 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: palette.h
|
|
|
|
// Purpose: OGL sample palette
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 12/07/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _OGLSAMPLE_PALETTE_H_
|
|
|
|
#define _OGLSAMPLE_PALETTE_H_
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
// #pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/string.h>
|
1999-02-28 20:31:51 -05:00
|
|
|
#if 0 // def __WXGTK__
|
1998-12-27 09:44:40 -05:00
|
|
|
#include <wx/toolbar.h>
|
|
|
|
#else
|
1998-07-29 06:43:51 -04:00
|
|
|
#include <wx/tbarsmpl.h>
|
1998-12-27 09:44:40 -05:00
|
|
|
#endif
|
1998-07-29 06:43:51 -04: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.
|
1999-02-28 18:39:59 -05:00
|
|
|
#if 0 // def __WXGTK__
|
1998-12-27 09:44:40 -05:00
|
|
|
#define TOOLPALETTECLASS wxToolBar
|
|
|
|
#else
|
1998-07-29 06:43:51 -04:00
|
|
|
#define TOOLPALETTECLASS wxToolBarSimple
|
1998-12-27 09:44:40 -05:00
|
|
|
#endif
|
1998-07-29 06:43:51 -04:00
|
|
|
|
|
|
|
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_
|