00001
00002
00003 #ifndef _LIBGNOMEUIMM_DRUID_PAGE_H
00004 #define _LIBGNOMEUIMM_DRUID_PAGE_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <gtkmm/bin.h>
00032
00033 #include <libgnomeui/gnome-druid-page.h>
00034
00035
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GnomeDruidPage GnomeDruidPage;
00038 typedef struct _GnomeDruidPageClass GnomeDruidPageClass;
00039 #endif
00040
00041
00042 namespace Gnome
00043 {
00044
00045 namespace UI
00046 { class DruidPage_Class; }
00047
00048 }
00049 namespace Gnome
00050 {
00051
00052 namespace UI
00053 {
00054
00055
00056 class DruidPage : public Gtk::Bin
00057 {
00058 public:
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060 typedef DruidPage CppObjectType;
00061 typedef DruidPage_Class CppClassType;
00062 typedef GnomeDruidPage BaseObjectType;
00063 typedef GnomeDruidPageClass BaseClassType;
00064 #endif
00065
00066 virtual ~DruidPage();
00067
00068 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00069
00070 private:
00071 friend class DruidPage_Class;
00072 static CppClassType druidpage_class_;
00073
00074
00075 DruidPage(const DruidPage&);
00076 DruidPage& operator=(const DruidPage&);
00077
00078 protected:
00079 explicit DruidPage(const Glib::ConstructParams& construct_params);
00080 explicit DruidPage(GnomeDruidPage* castitem);
00081
00082 #endif
00083
00084 public:
00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00086 static GType get_type() G_GNUC_CONST;
00087 static GType get_base_type() G_GNUC_CONST;
00088 #endif
00089
00091 GnomeDruidPage* gobj() { return reinterpret_cast<GnomeDruidPage*>(gobject_); }
00092
00094 const GnomeDruidPage* gobj() const { return reinterpret_cast<GnomeDruidPage*>(gobject_); }
00095
00096
00097 public:
00098
00099
00100 protected:
00101
00102
00103
00104 virtual bool on_next(Gtk::Widget& druid);
00105 virtual void on_prepare(Gtk::Widget& druid);
00106 virtual bool on_back(Gtk::Widget& druid);
00107 virtual void on_finish(Gtk::Widget& druid);
00108 virtual bool on_cancel(Gtk::Widget& druid);
00109
00110
00111 private:
00112
00113 public:
00114 DruidPage();
00115
00116
00117 bool next();
00118
00119 void prepare();
00120
00121 bool back();
00122
00123 void finish();
00124
00125 bool cancel();
00126
00127
00128 Glib::SignalProxy1< bool,Gtk::Widget& > signal_next();
00129
00130
00131 Glib::SignalProxy1< void,Gtk::Widget& > signal_prepare();
00132
00133
00134 Glib::SignalProxy1< bool,Gtk::Widget& > signal_back();
00135
00136
00137 Glib::SignalProxy1< void,Gtk::Widget& > signal_finish();
00138
00139
00140 Glib::SignalProxy1< bool,Gtk::Widget& > signal_cancel();
00141
00142
00143
00144 virtual void set_bg_color(const Gdk::Color& color);
00145 virtual void set_title(const Glib::ustring& title);
00146 virtual void set_title_color(const Gdk::Color& color);
00147 virtual void set_logo(const Glib::RefPtr<Gdk::Pixbuf>& logo_image);
00148 virtual void set_logo_bg_color(const Gdk::Color& color);
00149
00150
00151 };
00152
00153 }
00154 }
00155
00156
00157 namespace Glib
00158 {
00164 Gnome::UI::DruidPage* wrap(GnomeDruidPage* object, bool take_copy = false);
00165 }
00166 #endif
00167