00001
00002
00003 #ifndef _HILDON_LIBSMM_BANNER_H
00004 #define _HILDON_LIBSMM_BANNER_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <gtkmm/window.h>
00031 #include <gtkmm/progressbar.h>
00032 #include <gtkmm/label.h>
00033
00034
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _HildonBanner HildonBanner;
00037 typedef struct _HildonBannerClass HildonBannerClass;
00038 #endif
00039
00040
00041 namespace Hildon
00042 { class Banner_Class; }
00043 namespace Hildon
00044 {
00045
00051 class Banner : public Gtk::Window
00052 {
00053 public:
00054 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00055 typedef Banner CppObjectType;
00056 typedef Banner_Class CppClassType;
00057 typedef HildonBanner BaseObjectType;
00058 typedef HildonBannerClass BaseClassType;
00059 #endif
00060
00061 virtual ~Banner();
00062
00063 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00064
00065 private:
00066 friend class Banner_Class;
00067 static CppClassType banner_class_;
00068
00069
00070 Banner(const Banner&);
00071 Banner& operator=(const Banner&);
00072
00073 protected:
00074 explicit Banner(const Glib::ConstructParams& construct_params);
00075 explicit Banner(HildonBanner* castitem);
00076
00077 #endif
00078
00079 public:
00080 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00081 static GType get_type() G_GNUC_CONST;
00082 static GType get_base_type() G_GNUC_CONST;
00083 #endif
00084
00086 HildonBanner* gobj() { return reinterpret_cast<HildonBanner*>(gobject_); }
00087
00089 const HildonBanner* gobj() const { return reinterpret_cast<HildonBanner*>(gobject_); }
00090
00091
00092 public:
00093
00094 #ifdef GLIBMM_VFUNCS_ENABLED
00095 #endif //GLIBMM_VFUNCS_ENABLED
00096
00097 protected:
00098
00099 #ifdef GLIBMM_VFUNCS_ENABLED
00100 #endif //GLIBMM_VFUNCS_ENABLED
00101
00102
00103 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00104 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00105
00106
00107 private:
00108
00109 protected:
00110 Banner();
00111
00112 public:
00113
00126 static void show_information(Gtk::Widget& widget, const Glib::ustring& icon_name, const Glib::ustring& text);
00127
00128 static void show_information(Gtk::Widget& widget, const Glib::ustring& text);
00129
00142 static void show_information_with_markup(Gtk::Widget& widget, const Glib::ustring& icon_name, const Glib::ustring& markup);
00143
00144 static void show_information_with_markup(Gtk::Widget& widget, const Glib::ustring& markup);
00145
00146
00172 static Banner* show_animation(Gtk::Widget& widget, const Glib::ustring& animation_name, const Glib::ustring& text);
00173
00174 static Banner* show_animation(Gtk::Widget& widget, const Glib::ustring& animation_name);
00175
00188 static Banner* show_progress(Gtk::Widget& widget, Gtk::ProgressBar& bar, const Glib::ustring& text);
00189
00190 static Banner* show_progress(Gtk::Widget& widget, const Glib::ustring& text);
00191
00192
00198 void set_text(const Glib::ustring& text);
00199
00205 void set_markup(const Glib::ustring& markup);
00206
00207 void set_fraction(double fraction);
00208
00209
00210 };
00211
00212 }
00213
00214
00215 namespace Glib
00216 {
00222 Hildon::Banner* wrap(HildonBanner* object, bool take_copy = false);
00223 }
00224
00225
00226 #endif
00227