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