00001
00002
00003 #ifndef _LIBGNOMEDBMM_GRAYBAR_H
00004 #define _LIBGNOMEDBMM_GRAYBAR_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/bin.h>
00031 #include <gtkmm/stock.h>
00032
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeDbGrayBar GnomeDbGrayBar;
00036 typedef struct _GnomeDbGrayBarClass GnomeDbGrayBarClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace Db
00044 { class GrayBar_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace Db
00051 {
00052
00057 class GrayBar : public Gtk::Bin
00058 {
00059 public:
00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00061 typedef GrayBar CppObjectType;
00062 typedef GrayBar_Class CppClassType;
00063 typedef GnomeDbGrayBar BaseObjectType;
00064 typedef GnomeDbGrayBarClass BaseClassType;
00065 #endif
00066
00067 virtual ~GrayBar();
00068
00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00070
00071 private:
00072 friend class GrayBar_Class;
00073 static CppClassType graybar_class_;
00074
00075
00076 GrayBar(const GrayBar&);
00077 GrayBar& operator=(const GrayBar&);
00078
00079 protected:
00080 explicit GrayBar(const Glib::ConstructParams& construct_params);
00081 explicit GrayBar(GnomeDbGrayBar* 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 GnomeDbGrayBar* gobj() { return reinterpret_cast<GnomeDbGrayBar*>(gobject_); }
00093
00095 const GnomeDbGrayBar* gobj() const { return reinterpret_cast<GnomeDbGrayBar*>(gobject_); }
00096
00097
00098 public:
00099
00100 #ifdef GLIBMM_VFUNCS_ENABLED
00101 #endif //GLIBMM_VFUNCS_ENABLED
00102
00103 protected:
00104
00105 #ifdef GLIBMM_VFUNCS_ENABLED
00106 #endif //GLIBMM_VFUNCS_ENABLED
00107
00108
00109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00110 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00111
00112
00113 private:
00114
00115 public:
00116 explicit GrayBar(const Glib::ustring& text);
00117
00118
00122 void set_text(const Glib::ustring& text);
00123
00129 Glib::ustring get_text() const;
00130
00131
00132 void set_icon_from_file(const std::string& filename);
00133
00134 void set_icon_from_stock(const Gtk::StockID& stock_id, Gtk::IconSize size);
00135
00136
00140 void set_show_icon(bool show = true);
00141
00145 bool get_show_icon() const;
00146
00147
00148 };
00149
00150 }
00151 }
00152
00153
00154 namespace Glib
00155 {
00161 Gnome::Db::GrayBar* wrap(GnomeDbGrayBar* object, bool take_copy = false);
00162 }
00163
00164
00165 #endif
00166