Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | Related Pages

statusbar.h

00001 /*
00002  * ===========================
00003  * VDK Visual Development Kit
00004  * Version 0.4
00005  * October 1998
00006  * ===========================
00007  *
00008  * Copyright (C) 1998, Mario Motta
00009  * Developed by Mario Motta <mmotta@guest.net>
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this library; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00024  * 02111-1307, USA.
00025  */
00026 
00027 #ifndef STATUSBAR_H
00028 #define STATUSBAR_H
00029 #include <vdk/vdkobj.h>
00030 #include <vdk/frame.h>
00037 class VDKStatusbar: public VDKObject
00038 {
00039   int contextId;
00040  protected:
00041   void SetShadow(int shadow)
00042     { 
00043       GtkStatusbar* sbar = GTK_STATUSBAR(widget);
00044       gtk_frame_set_shadow_type(
00045                                 GTK_FRAME(sbar->frame),
00046                                 (GtkShadowType) shadow); 
00047     }
00048 public:
00052   VDKReadWriteValueProp<VDKStatusbar, int> Shadow;
00057   VDKStatusbar(VDKForm* owner = NULL);
00061   virtual ~VDKStatusbar();
00065   int Push(char* text)
00066     { 
00067       return gtk_statusbar_push(
00068                                 GTK_STATUSBAR(widget),
00069                                 contextId, text);
00070     }
00074   void Pop()
00075     {
00076       gtk_statusbar_pop(GTK_STATUSBAR(widget),contextId);
00077     }
00078 };
00079 
00080 #endif
00081 

Generated on Wed Aug 6 11:01:51 2003 for vdk 2.0.3 by doxygen 1.3.2