00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
#ifndef _vdkhlbuttonbar_h
00027
00028
#define _vdkhlbuttonbar_h
00029
#include <vdk/siglisthandle.h>
00030
#include <vdk/vdkhlbutton.h>
00031
#include <vdk/frame.h>
00032
#include <vdk/vdkprops.h>
00033
00034
typedef VDKList <VDKHLButton>
BList;
00035
typedef VDKListIterator <VDKHLButton> ButtonListIterator;
00036
class VDKHLButtonBar:
public VDKFrame
00037 {
00038
protected:
00039 BList blist;
00040
bool OnClick (
VDKObject* sender);
00041
public:
00042 VDKHLButtonBar (
VDKForm* owner,
00043
int mode = h_box,
00044
int shadow = shadow_none);
00045
virtual ~ VDKHLButtonBar ();
00046 BList* ButtonList() {
return &blist; }
00047
void AddButton (
const char** pixdata,
00048
const char* tip = NULL,
00049
const char* text = NULL);
00050
void AddButton (
const char* pixfile,
00051
const char* tip = NULL,
00052
const char* text = NULL);
00053
VDKHLButton* operator[](
int n);
00054 VDKReadWriteValueProp <VDKHLButtonBar, int> ButtonPressed;
00055 DECLARE_SIGNAL_LIST (VDKHLButtonBar);
00056 };
00057
00058
00059
#endif
00060