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