vdk 2.4.0
Main Page
Related Pages
Classes
Files
File List
vdk
vdkhlbuttonbar.h
1
/*
2
* ===========================
3
* VDK Visual Development Kit
4
* Version 2.0.3
5
* January 2003
6
* ===========================
7
*
8
* Copyright (C) 1998, Mario Motta
9
* Developed by Mario Motta <mmotta@guest.net>
10
*
11
* This library is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU Library General Public
13
* License as published by the Free Software Foundation; either
14
* version 2 of the License, or (at your option) any later version.
15
*
16
* This library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Library General Public License for more details.
20
*
21
* You should have received a copy of the GNU Library General Public
22
* License along with this library; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24
* 02111-1307, USA.
25
*/
26
#ifndef _vdkhlbuttonbar_h
27
// put your code below here
28
#define _vdkhlbuttonbar_h
29
#include <vdk/siglisthandle.h>
30
#include <vdk/vdkhlbutton.h>
31
#include <vdk/frame.h>
32
#include <vdk/vdkprops.h>
33
34
typedef
VDKList <VDKHLButton>
BList
;
35
typedef
VDKListIterator <VDKHLButton> ButtonListIterator;
36
class
VDKHLButtonBar:
public
VDKFrame
37
{
38
protected
:
39
BList
blist;
40
bool
OnClick (
VDKObject
* sender);
41
public
:
42
VDKHLButtonBar (
VDKForm
* owner,
43
int
mode = h_box,
44
int
shadow = shadow_none);
45
virtual
~ VDKHLButtonBar ();
46
BList
* ButtonList() {
return
&blist; }
47
void
AddButton (
const
char
** pixdata,
48
const
char
* tip = NULL,
49
const
char
* text = NULL);
50
void
AddButton (
const
char
* pixfile,
51
const
char
* tip = NULL,
52
const
char
* text = NULL);
53
VDKHLButton
* operator[](
int
n);
54
VDKReadWriteValueProp <VDKHLButtonBar, int> ButtonPressed;
55
DECLARE_SIGNAL_LIST (VDKHLButtonBar);
56
};
57
58
//
59
#endif
60
Generated on Wed Mar 12 2014 15:03:43 for vdk 2.4.0 by
1.8.1.2