druid-page.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEUIMM_DRUID_PAGE_H
00004 #define _LIBGNOMEUIMM_DRUID_PAGE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: druid-page.hg,v 1.10 2002/05/06 16:15:23 murrayc Exp $ */
00010 
00011 
00012 /* druid-page.hg
00013  * 
00014  * Copyright (C) 1999 The Gtk-- Development Team
00015  *
00016  * This library is free software; you can redistribute it and/or
00017  * modify it under the terms of the GNU Library General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2 of the License, or (at your option) any later version.
00020  *
00021  * This library is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024  * Library General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU Library General Public
00027  * License along with this library; if not, write to the Free
00028  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00029  */
00030 
00031 
00032 #include <gtkmm/bin.h>
00033 //#include <libgnome/gnome-defs.h>
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00041 
00042 
00043 namespace Gnome
00044 {
00045 
00046 namespace UI
00047 { class DruidPage_Class; } // namespace UI
00048 
00049 } // namespace Gnome
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   //C++ methods used to invoke GTK+ virtual functions:
00100 #ifdef GLIBMM_VFUNCS_ENABLED
00101 #endif //GLIBMM_VFUNCS_ENABLED
00102 
00103 protected:
00104   //GTK+ Virtual Functions (override these to change behaviour):
00105 #ifdef GLIBMM_VFUNCS_ENABLED
00106 #endif //GLIBMM_VFUNCS_ENABLED
00107 
00108   //Default Signal Handlers::
00109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00110   virtual bool on_next(Gtk::Widget& druid);
00111   virtual void on_prepare(Gtk::Widget& druid);
00112   virtual bool on_back(Gtk::Widget& druid);
00113   virtual void on_finish(Gtk::Widget& druid);
00114   virtual bool on_cancel(Gtk::Widget& druid);
00115 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00116 
00117 
00118 private:
00119 
00120 public:
00121   DruidPage();
00122 
00123   
00124   bool next();
00125   
00126   void prepare();
00127   
00128   bool back();
00129   
00130   void finish();
00131   
00132   bool cancel();
00133 
00134   
00140   Glib::SignalProxy1< bool,Gtk::Widget& > signal_next();
00141 
00142   
00148   Glib::SignalProxy1< void,Gtk::Widget& > signal_prepare();
00149 
00150   
00156   Glib::SignalProxy1< bool,Gtk::Widget& > signal_back();
00157 
00158   
00164   Glib::SignalProxy1< void,Gtk::Widget& > signal_finish();
00165 
00166   
00172   Glib::SignalProxy1< bool,Gtk::Widget& > signal_cancel();
00173 
00174 
00175 /* common functions */
00176   virtual void set_bg_color(const Gdk::Color& color);
00177   virtual void set_title(const Glib::ustring& title);
00178   virtual void set_title_color(const Gdk::Color& color);
00179   virtual void set_logo(const Glib::RefPtr<Gdk::Pixbuf>& logo_image);
00180   virtual void set_logo_bg_color(const Gdk::Color& color);
00181 
00182 
00183 };
00184 
00185 } /* namespace UI */
00186 } /* namespace Gnome */
00187 
00188 
00189 namespace Glib
00190 {
00199   Gnome::UI::DruidPage* wrap(GnomeDruidPage* object, bool take_copy = false);
00200 } //namespace Glib
00201 
00202 
00203 #endif /* _LIBGNOMEUIMM_DRUID_PAGE_H */
00204 

Generated on Wed Sep 19 19:41:23 2007 for libgnomeuimm by  doxygen 1.5.3