libgnomeuimm 2.28.0
appbar.h
Go to the documentation of this file.
1// -*- c++ -*-
2// Generated by gtkmmproc -- DO NOT MODIFY!
3#ifndef _LIBGNOMEUIMM_APPBAR_H
4#define _LIBGNOMEUIMM_APPBAR_H
5
6
7#include <glibmm.h>
8
9// -*- C++ -*-
10/* $Id: appbar.hg,v 1.11 2002/09/15 12:12:37 murrayc Exp $ */
11
12/* appbar.h
13 *
14 * Copyright (C) 1998 EMC Capital Management Inc.
15 * Developed by Havoc Pennington <hp@pobox.com>
16 *
17 * Copyright (C) 1999 The Gtk-- Development Team
18 *
19 * This library is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU Lesser General Public
21 * License as published by the Free Software Foundation; either
22 * version 2.1 of the License, or (at your option) any later version.
23 *
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
28 *
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free
31 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 */
33
34#include <libgnomeui/gnome-appbar.h>
35#include <gtkmm/box.h>
36#include <gtkmm/progressbar.h>
37
38
39#ifndef DOXYGEN_SHOULD_SKIP_THIS
40typedef struct _GnomeAppBar GnomeAppBar;
41typedef struct _GnomeAppBarClass GnomeAppBarClass;
42#endif /* DOXYGEN_SHOULD_SKIP_THIS */
43
44
45namespace Gnome
46{
47
48namespace UI
49{ class AppBar_Class; } // namespace UI
50
51} // namespace Gnome
52namespace Gnome
53{
54
55namespace UI
56{
57
58
65{
69};
70
71} // namespace UI
72
73} // namespace Gnome
74
75
76#ifndef DOXYGEN_SHOULD_SKIP_THIS
77namespace Glib
78{
79
80template <>
81class Value<Gnome::UI::PreferencesType> : public Glib::Value_Enum<Gnome::UI::PreferencesType>
82{
83public:
84 static GType value_type() G_GNUC_CONST;
85};
86
87} // namespace Glib
88#endif /* DOXYGEN_SHOULD_SKIP_THIS */
89
90
91namespace Gnome
92{
93
94namespace UI
95{
96
97
98class AppBar : public Gtk::HBox
99{
100 public:
101#ifndef DOXYGEN_SHOULD_SKIP_THIS
102 typedef AppBar CppObjectType;
103 typedef AppBar_Class CppClassType;
104 typedef GnomeAppBar BaseObjectType;
105 typedef GnomeAppBarClass BaseClassType;
106#endif /* DOXYGEN_SHOULD_SKIP_THIS */
107
108 virtual ~AppBar();
109
110#ifndef DOXYGEN_SHOULD_SKIP_THIS
111
112private:
113 friend class AppBar_Class;
114 static CppClassType appbar_class_;
115
116 // noncopyable
117 AppBar(const AppBar&);
118 AppBar& operator=(const AppBar&);
119
120protected:
121 explicit AppBar(const Glib::ConstructParams& construct_params);
122 explicit AppBar(GnomeAppBar* castitem);
123
124#endif /* DOXYGEN_SHOULD_SKIP_THIS */
125
126public:
127#ifndef DOXYGEN_SHOULD_SKIP_THIS
128 static GType get_type() G_GNUC_CONST;
129
130
131 static GType get_base_type() G_GNUC_CONST;
132#endif
133
135 GnomeAppBar* gobj() { return reinterpret_cast<GnomeAppBar*>(gobject_); }
136
138 const GnomeAppBar* gobj() const { return reinterpret_cast<GnomeAppBar*>(gobject_); }
139
140
141public:
142 //C++ methods used to invoke GTK+ virtual functions:
143#ifdef GLIBMM_VFUNCS_ENABLED
144#endif //GLIBMM_VFUNCS_ENABLED
145
146protected:
147 //GTK+ Virtual Functions (override these to change behaviour):
148#ifdef GLIBMM_VFUNCS_ENABLED
149#endif //GLIBMM_VFUNCS_ENABLED
150
151 //Default Signal Handlers::
152#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
153 virtual void on_clear_prompt();
154 virtual void on_user_response();
155#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
156
157
158private:
159
160public:
161
162 explicit AppBar(bool has_progress = false, bool has_status = true, PreferencesType interactivity = PREFERENCES_NEVER);
163
164
165 Gtk::ProgressBar* get_progress();
166
167
168 Gtk::Widget* get_status();
169
170 const Gtk::Widget* get_status() const;
171
172
173 void set_default(const Glib::ustring& default_status);
174
175 void set_status(const Glib::ustring& status);
176
177 void push(const Glib::ustring& status);
178
179 void pop();
180
182
183 void set_progress_percentage(gfloat percentage);
184
185 void refresh();
186
187 void prompt(const Glib::ustring& message, bool modal = true);
188
190
191 Glib::ustring get_response() const;
192
193
199 Glib::SignalProxy0< void > signal_clear_prompt();
200
201
207 Glib::SignalProxy0< void > signal_user_response();
208
209
210};
211
212} /* namespace UI */
213} /* namespace Gnome */
214
215
216namespace Glib
217{
226 Gnome::UI::AppBar* wrap(GnomeAppBar* object, bool take_copy = false);
227} //namespace Glib
228
229
230#endif /* _LIBGNOMEUIMM_APPBAR_H */
231
Definition: appbar.h:99
virtual void on_user_response()
virtual void on_clear_prompt()
void set_progress_percentage(gfloat percentage)
Gtk::Widget * get_status()
const GnomeAppBar * gobj() const
Provides access to the underlying C GtkObject.
Definition: appbar.h:138
AppBar(bool has_progress=false, bool has_status=true, PreferencesType interactivity=PREFERENCES_NEVER)
Gnome::UI::AppBar * wrap(GnomeAppBar *object, bool take_copy=false)
A Glib::wrap() method for this object.
void set_default(const Glib::ustring &default_status)
Glib::ustring get_response() const
Glib::SignalProxy0< void > signal_user_response()
void set_status(const Glib::ustring &status)
Glib::SignalProxy0< void > signal_clear_prompt()
const Gtk::Widget * get_status() const
Gtk::ProgressBar * get_progress()
GnomeAppBar * gobj()
Provides access to the underlying C GtkObject.
Definition: appbar.h:135
void push(const Glib::ustring &status)
void prompt(const Glib::ustring &message, bool modal=true)
PreferencesType
Definition: appbar.h:65
@ PREFERENCES_ALWAYS
Definition: appbar.h:68
@ PREFERENCES_USER
Definition: appbar.h:67
@ PREFERENCES_NEVER
Definition: appbar.h:66
Definition: about.h:306
Definition: about.h:46