00001
00002
00003 #ifndef _LIBGNOMEUIMM_ICON_SEL_H
00004 #define _LIBGNOMEUIMM_ICON_SEL_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 #include <gtkmm/box.h>
00032
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeIconSelection GnomeIconSelection;
00036 typedef struct _GnomeIconSelectionClass GnomeIconSelectionClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace UI
00044 { class IconSelection_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace UI
00051 {
00052
00053
00054 class IconSelection : public Gtk::VBox
00055 {
00056 public:
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058 typedef IconSelection CppObjectType;
00059 typedef IconSelection_Class CppClassType;
00060 typedef GnomeIconSelection BaseObjectType;
00061 typedef GnomeIconSelectionClass BaseClassType;
00062 #endif
00063
00064 virtual ~IconSelection();
00065
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067
00068 private:
00069 friend class IconSelection_Class;
00070 static CppClassType iconselection_class_;
00071
00072
00073 IconSelection(const IconSelection&);
00074 IconSelection& operator=(const IconSelection&);
00075
00076 protected:
00077 explicit IconSelection(const Glib::ConstructParams& construct_params);
00078 explicit IconSelection(GnomeIconSelection* castitem);
00079
00080 #endif
00081
00082 public:
00083 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00084 static GType get_type() G_GNUC_CONST;
00085
00086
00087 static GType get_base_type() G_GNUC_CONST;
00088 #endif
00089
00091 GnomeIconSelection* gobj() { return reinterpret_cast<GnomeIconSelection*>(gobject_); }
00092
00094 const GnomeIconSelection* gobj() const { return reinterpret_cast<GnomeIconSelection*>(gobject_); }
00095
00096
00097 public:
00098
00099 #ifdef GLIBMM_VFUNCS_ENABLED
00100 #endif //GLIBMM_VFUNCS_ENABLED
00101
00102 protected:
00103
00104 #ifdef GLIBMM_VFUNCS_ENABLED
00105 #endif //GLIBMM_VFUNCS_ENABLED
00106
00107
00108 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00109 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00110
00111
00112 private:
00113
00114 public:
00115 IconSelection();
00116
00117
00118 void add_defaults();
00119
00120 void add_directory(const Glib::ustring& dir);
00121
00122 void show_icons();
00123
00124 void clear(bool not_shown = true);
00125
00126 Glib::ustring get_icon(bool full_path = true) const;
00127
00128 void select_icon(const Glib::ustring& filename);
00129
00130 void stop_loading();
00131
00132
00133 Gtk::Widget* get_gil();
00134
00135 const Gtk::Widget* get_gil() const;
00136
00137
00138 Gtk::Widget* get_box();
00139
00140 const Gtk::Widget* get_box() const;
00141
00142
00143 };
00144
00145 }
00146 }
00147
00148
00149 namespace Glib
00150 {
00159 Gnome::UI::IconSelection* wrap(GnomeIconSelection* object, bool take_copy = false);
00160 }
00161
00162
00163 #endif
00164