GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

statusbar.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00023 00024 #ifndef GFC_GTK_STATUSBAR_HH 00025 #define GFC_GTK_STATUSBAR_HH 00026 00027 #ifndef GFC_GTK_HBOX_HH 00028 #include <gfc/gtk/box.hh> 00029 #endif 00030 00031 #ifndef __GTK_STATUSBAR_H__ 00032 #include <gtk/gtkstatusbar.h> 00033 #endif 00034 00035 namespace GFC { 00036 00037 namespace Gtk { 00038 00059 00060 class Statusbar : public HBox 00061 { 00062 friend class G::Object; 00063 00064 Statusbar(const Statusbar&); 00065 Statusbar& operator=(const Statusbar&); 00066 00067 protected: 00070 00071 explicit Statusbar(GtkStatusbar *statusbar, bool owns_reference = false); 00078 00082 00083 typedef G::Signal<void, unsigned int, const String&> TextPushedSignalType; 00084 typedef G::SignalProxy<TypeInstance, TextPushedSignalType> TextPushedSignalProxy; 00085 static const TextPushedSignalType text_pushed_signal; 00092 00093 typedef G::Signal<void, unsigned int, const String&> TextPoppedSignalType; 00094 typedef G::SignalProxy<TypeInstance, TextPoppedSignalType> TextPoppedSignalProxy; 00095 static const TextPoppedSignalType text_popped_signal; 00102 00104 00105 public: 00108 00109 Statusbar(); 00111 00112 virtual ~Statusbar(); 00114 00118 00119 GtkStatusbar* gtk_statusbar() const; 00121 00122 operator GtkStatusbar* () const; 00124 00125 unsigned int get_context_id(const char *context_description) const; 00126 unsigned int get_context_id(const String& context_description) const; 00130 00131 bool get_has_resize_grip() const; 00133 00137 00138 unsigned int push(const char *text, unsigned int context_id = 0); 00139 unsigned int push(const String& text, unsigned int context_id = 0); 00144 00145 void pop(unsigned int context_id = 0); 00148 00149 void remove(unsigned int message_id, unsigned int context_id = 0); 00155 00156 void set_has_resize_grip(bool setting); 00159 00163 00164 const TextPushedSignalProxy sig_text_pushed(); 00166 00167 const TextPoppedSignalProxy sig_text_popped(); 00169 00171 }; 00172 00173 } // namespace Gtk 00174 00175 } // namespace GFC 00176 00177 #include <gfc/gtk/inline/statusbar.inl> 00178 00179 #endif // GFC_GTK_STATUSBAR_HH 00180

Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by doxygen 1.3.8