|
Revision 195, 1.7 kB
(checked in by timo, 11 months ago)
|
apply patch from Martin Gerhardy - more quake2 related modules compiled and misc fixes
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
#ifndef __IPLUGTOOLBAR_H_ |
|---|
| 23 |
#define __IPLUGTOOLBAR_H_ |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
#define TOOLBAR_MAJOR "toolbar" |
|---|
| 32 |
|
|---|
| 33 |
class IToolbarButton |
|---|
| 34 |
{ |
|---|
| 35 |
public: |
|---|
| 36 |
enum EType |
|---|
| 37 |
{ |
|---|
| 38 |
eSpace, |
|---|
| 39 |
eButton, |
|---|
| 40 |
eToggleButton, |
|---|
| 41 |
eRadioButton, |
|---|
| 42 |
}; |
|---|
| 43 |
|
|---|
| 44 |
virtual ~IToolbarButton() { } |
|---|
| 45 |
virtual const char* getImage() const = 0; |
|---|
| 46 |
virtual const char* getText() const = 0; |
|---|
| 47 |
virtual const char* getTooltip() const = 0; |
|---|
| 48 |
virtual EType getType() const = 0; |
|---|
| 49 |
virtual void activate() const = 0; |
|---|
| 50 |
}; |
|---|
| 51 |
|
|---|
| 52 |
typedef unsigned int (* PFN_TOOLBARBUTTONCOUNT)(); |
|---|
| 53 |
typedef const IToolbarButton* (* PFN_GETTOOLBARBUTTON)(unsigned int index); |
|---|
| 54 |
|
|---|
| 55 |
struct _QERPlugToolbarTable |
|---|
| 56 |
{ |
|---|
| 57 |
int m_nSize; |
|---|
| 58 |
PFN_TOOLBARBUTTONCOUNT m_pfnToolbarButtonCount; |
|---|
| 59 |
PFN_GETTOOLBARBUTTON m_pfnGetToolbarButton; |
|---|
| 60 |
}; |
|---|
| 61 |
|
|---|
| 62 |
#endif |
|---|