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

appbar.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_APPBAR_H 00004 #define _LIBGNOMEUIMM_APPBAR_H 00005 00006 #include <glibmm.h> 00007 00008 // -*- C++ -*- 00009 /* $Id: appbar.hg,v 1.11 2002/09/15 12:12:37 murrayc Exp $ */ 00010 00011 /* appbar.h 00012 * 00013 * Copyright (C) 1998 EMC Capital Management Inc. 00014 * Developed by Havoc Pennington <hp@pobox.com> 00015 * 00016 * Copyright (C) 1999 The Gtk-- Development Team 00017 * 00018 * This library is free software; you can redistribute it and/or 00019 * modify it under the terms of the GNU Library General Public 00020 * License as published by the Free Software Foundation; either 00021 * version 2 of the License, or (at your option) any later version. 00022 * 00023 * This library is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00026 * Library General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU Library General Public 00029 * License along with this library; if not, write to the Free 00030 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00031 */ 00032 00033 #include <libgnomeui/gnome-appbar.h> 00034 #include <gtkmm/box.h> 00035 #include <gtkmm/progressbar.h> 00036 00037 00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00039 typedef struct _GnomeAppBar GnomeAppBar; 00040 typedef struct _GnomeAppBarClass GnomeAppBarClass; 00041 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00042 00043 00044 namespace Gnome 00045 { 00046 00047 namespace UI 00048 { class AppBar_Class; } // namespace UI 00049 00050 } // namespace Gnome 00051 namespace Gnome 00052 { 00053 00054 namespace UI 00055 { 00056 00057 00063 enum PreferencesType 00064 { 00065 PREFERENCES_NEVER, 00066 PREFERENCES_USER, 00067 PREFERENCES_ALWAYS 00068 }; 00069 00070 } // namespace UI 00071 00072 } // namespace Gnome 00073 00074 00075 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00076 namespace Glib 00077 { 00078 00079 template <> 00080 class Value<Gnome::UI::PreferencesType> : public Glib::Value_Enum<Gnome::UI::PreferencesType> 00081 { 00082 public: 00083 static GType value_type() G_GNUC_CONST; 00084 }; 00085 00086 } // namespace Glib 00087 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00088 00089 00090 namespace Gnome 00091 { 00092 00093 namespace UI 00094 { 00095 00096 00097 class AppBar : public Gtk::HBox 00098 { 00099 public: 00100 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00101 typedef AppBar CppObjectType; 00102 typedef AppBar_Class CppClassType; 00103 typedef GnomeAppBar BaseObjectType; 00104 typedef GnomeAppBarClass BaseClassType; 00105 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00106 00107 virtual ~AppBar(); 00108 00109 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00110 00111 private: 00112 friend class AppBar_Class; 00113 static CppClassType appbar_class_; 00114 00115 // noncopyable 00116 AppBar(const AppBar&); 00117 AppBar& operator=(const AppBar&); 00118 00119 protected: 00120 explicit AppBar(const Glib::ConstructParams& construct_params); 00121 explicit AppBar(GnomeAppBar* castitem); 00122 00123 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00124 00125 public: 00126 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00127 static GType get_type() G_GNUC_CONST; 00128 static GType get_base_type() G_GNUC_CONST; 00129 #endif 00130 00132 GnomeAppBar* gobj() { return reinterpret_cast<GnomeAppBar*>(gobject_); } 00133 00135 const GnomeAppBar* gobj() const { return reinterpret_cast<GnomeAppBar*>(gobject_); } 00136 00137 00138 public: 00139 //C++ methods used to invoke GTK+ virtual functions: 00140 00141 protected: 00142 //GTK+ Virtual Functions (override these to change behaviour): 00143 00144 //Default Signal Handlers:: 00145 virtual void on_clear_prompt(); 00146 virtual void on_user_response(); 00147 00148 00149 private: 00150 00151 public: 00152 00153 explicit AppBar(bool has_progress = false, bool has_status = true, PreferencesType interactivity = PREFERENCES_NEVER); 00154 00155 00156 Gtk::ProgressBar* get_progress(); 00157 00158 00159 Gtk::Widget* get_status(); 00160 00161 const Gtk::Widget* get_status() const; 00162 00163 00164 void set_default(const Glib::ustring& default_status); 00165 00166 void set_status(const Glib::ustring& status); 00167 00168 void push(const Glib::ustring& status); 00169 00170 void pop(); 00171 00172 void clear_stack(); 00173 00174 void set_progress_percentage(gfloat percentage); 00175 00176 void refresh(); 00177 00178 void prompt(const Glib::ustring& message, bool modal = true); 00179 00180 void clear_prompt(); 00181 00182 Glib::ustring get_response() const; 00183 00184 00189 Glib::SignalProxy0<void> signal_clear_prompt(); 00190 00191 00196 Glib::SignalProxy0<void> signal_user_response(); 00197 00198 00199 }; 00200 00201 } /* namespace UI */ 00202 } /* namespace Gnome */ 00203 00204 namespace Glib 00205 { 00207 Gnome::UI::AppBar* wrap(GnomeAppBar* object, bool take_copy = false); 00208 } 00209 #endif /* _LIBGNOMEUIMM_APPBAR_H */ 00210

Generated on Sat Jul 24 18:14:26 2004 for libgnomeuimm by doxygen 1.3.7