vdk 2.4.0
statusbar.h
1/*
2 * ===========================
3 * VDK Visual Development Kit
4 * Version 0.4
5 * October 1998
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
27#ifndef STATUSBAR_H
28#define STATUSBAR_H
29#include <vdk/vdkobj.h>
30#include <vdk/frame.h>
38{
39 int contextId;
40 protected:
41 void SetShadow(int shadow)
42 {
43 GtkStatusbar* sbar = GTK_STATUSBAR(widget);
44 gtk_frame_set_shadow_type(
45 GTK_FRAME(sbar->frame),
46 (GtkShadowType) shadow);
47 }
48public:
52 VDKReadWriteValueProp<VDKStatusbar, int> Shadow;
57 VDKStatusbar(VDKForm* owner = NULL);
61 virtual ~VDKStatusbar();
65 int Push(char* text)
66 {
67 return gtk_statusbar_push(
68 GTK_STATUSBAR(widget),
69 contextId, text);
70 }
74 void Pop()
75 {
76 gtk_statusbar_pop(GTK_STATUSBAR(widget),contextId);
77 }
78};
79
80#endif
81
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
Definition: vdkobj.h:141
GtkWidget * widget
Definition: vdkobj.h:241
Provides a statubar widget. Differently from gtkstatusbar VDKStatusbar does not handle context,...
Definition: statusbar.h:38
VDKStatusbar(VDKForm *owner=NULL)
Definition: statusbar.cc:33
int Push(char *text)
Definition: statusbar.h:65
void Pop()
Definition: statusbar.h:74
VDKReadWriteValueProp< VDKStatusbar, int > Shadow
Definition: statusbar.h:52
virtual ~VDKStatusbar()
Definition: statusbar.cc:46