Main Page - Header
Author: The Inti Development Team

Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# statusbar.h

Go to the documentation of this file.

    00001 /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2002 The Inti Development Team.
    00003  *  Copyright (C) 2000 Red Hat, Inc.
    00004  *
    00005  *  This program is free software; you can redistribute it and/or modify
    00006  *  it under the terms of the GNU General Public License as published by
    00007  *  the Free Software Foundation; either version 2 of the License, or
    00008  *  (at your option) any later version.
    00009  *
    00010  *  This program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00013  *  GNU Library General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU Library General Public License
    00016  *  along with this program; if not, write to the Free Software
    00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00018  */
    00019
    00024
    00025 #ifndef INTI_GTK_STATUSBAR_H
    00026 #define INTI_GTK_STATUSBAR_H
    00027
    00028 #ifndef INTI_GTK_HBOX_H
    00029 #include <inti/gtk/box.h>
    00030 #endif
    00031
    00032 #ifndef __GTK_STATUSBAR_H__
    00033 #include <gtk/gtkstatusbar.h>
    00034 #endif
    00035
    00036 namespace Inti {
    00037
    00038 namespace Gtk {
    00039
    00040 class StatusbarClass;
    00041
    00062
    00063 class Statusbar : public HBox
    00064 {
    00065         friend class G::Object;
    00066         friend class StatusbarClass;
    00067
    00068         Statusbar(const Statusbar&);
    00069         Statusbar& operator=(const Statusbar&);
    00070
    00071 protected:
    00074
    00075         explicit Statusbar(GtkStatusbar *statusbar, bool reference = false);
    00082
    00086
    00087         virtual void on_text_pushed(unsigned int context_id, const String& text);
    00091
    00092         virtual void on_text_popped(unsigned int context_id, const String& text);
    00096
    00098 //  Signals
    00099
    00100         typedef G::Signal2<void, unsigned int, const char*> TextPushedSignalType;
    00101         typedef G::SignalProxy<TypeInstance, TextPushedSignalType> TextPushedSignalProxy;
    00102         static const TextPushedSignalType text_pushed_signal;
    00103
    00104         typedef G::Signal2<void, unsigned int, const char*> TextPoppedSignalType;
    00105         typedef G::SignalProxy<TypeInstance, TextPoppedSignalType> TextPoppedSignalProxy;
    00106         static const TextPoppedSignalType text_popped_signal;
    00107
    00108 public:
    00111
    00112         Statusbar();
    00114
    00115         virtual ~Statusbar();
    00117
    00121
    00122         GtkStatusbar* gtk_statusbar() const { return (GtkStatusbar*)instance; }
    00124
    00125         GtkStatusbarClass* gtk_statusbar_class() const;
    00127
    00128         operator GtkStatusbar* () const;
    00130
    00131         unsigned int get_context_id(const String& context_description) const;
    00135
    00136         bool get_has_resize_grip() const;
    00138
    00142
    00143         unsigned int push(const String& text, unsigned int context_id = 0);
    00148
    00149         void pop(unsigned int context_id = 0);
    00152
    00153         void remove(unsigned int message_id, unsigned int context_id = 0);
    00159
    00160         void set_has_resize_grip(bool setting);
    00163
    00167
    00168         const TextPushedSignalProxy sig_text_pushed()
    00169         {
    00170                 return TextPushedSignalProxy(this, &text_pushed_signal);
    00171         }
    00173
    00174         const TextPoppedSignalProxy sig_text_popped()
    00175         {
    00176                 return TextPoppedSignalProxy(this, &text_popped_signal);
    00177         }
    00179
    00181 };
    00182
    00183 } // namespace Gtk
    00184
    00185 } // namespace Inti
    00186
    00187 #endif // INTI_GTK_STATUSBAR_H
    00188

Main Page - Footer