00001
00002
00003 #ifndef _LIBGNOMEUIMM_ICON_ENTRY_H
00004 #define _LIBGNOMEUIMM_ICON_ENTRY_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 #include <libgnomeuimm/file-entry.h>
00034 #include <libgnomeuimm/entry.h>
00035 #include <gtkmm/entry.h>
00036
00037
00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00039 typedef struct _GnomeIconEntry GnomeIconEntry;
00040 typedef struct _GnomeIconEntryClass GnomeIconEntryClass;
00041 #endif
00042
00043
00044 namespace Gnome
00045 {
00046
00047 namespace UI
00048 { class IconEntry_Class; }
00049
00050 }
00051 namespace Gnome
00052 {
00053
00054 namespace UI
00055 {
00056
00057
00058 class IconEntry : public Gtk::VBox
00059 {
00060 public:
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062 typedef IconEntry CppObjectType;
00063 typedef IconEntry_Class CppClassType;
00064 typedef GnomeIconEntry BaseObjectType;
00065 typedef GnomeIconEntryClass BaseClassType;
00066 #endif
00067
00068 virtual ~IconEntry();
00069
00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00071
00072 private:
00073 friend class IconEntry_Class;
00074 static CppClassType iconentry_class_;
00075
00076
00077 IconEntry(const IconEntry&);
00078 IconEntry& operator=(const IconEntry&);
00079
00080 protected:
00081 explicit IconEntry(const Glib::ConstructParams& construct_params);
00082 explicit IconEntry(GnomeIconEntry* castitem);
00083
00084 #endif
00085
00086 public:
00087 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00088 static GType get_type() G_GNUC_CONST;
00089
00090
00091 static GType get_base_type() G_GNUC_CONST;
00092 #endif
00093
00095 GnomeIconEntry* gobj() { return reinterpret_cast<GnomeIconEntry*>(gobject_); }
00096
00098 const GnomeIconEntry* gobj() const { return reinterpret_cast<GnomeIconEntry*>(gobject_); }
00099
00100
00101 public:
00102
00103 #ifdef GLIBMM_VFUNCS_ENABLED
00104 #endif //GLIBMM_VFUNCS_ENABLED
00105
00106 protected:
00107
00108 #ifdef GLIBMM_VFUNCS_ENABLED
00109 #endif //GLIBMM_VFUNCS_ENABLED
00110
00111
00112 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00113 virtual void on_changed();
00114 virtual void on_browse();
00115 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00116
00117
00118 private:
00119
00120
00121
00122 public:
00123 IconEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title);
00124
00125
00126 void set_pixmap_subdir(const Glib::ustring& subdir);
00127
00128 Glib::ustring get_filename() const;
00129
00130 bool set_filename(const Glib::ustring& filename);
00131
00132 void set_browse_dialog_title(const Glib::ustring& browse_dialog_title);
00133
00134 void set_history_id(const Glib::ustring& history_id);
00135
00136 void set_max_saved(guint max_saved);
00137
00138
00139 Gtk::Widget* get_pick_dialog();
00140
00141 const Gtk::Widget* get_pick_dialog() const;
00142
00143
00149 Glib::SignalProxy0< void > signal_changed();
00150
00151
00157 Glib::SignalProxy0< void > signal_browse();
00158
00159
00160 };
00161
00162 }
00163 }
00164
00165
00166 namespace Glib
00167 {
00176 Gnome::UI::IconEntry* wrap(GnomeIconEntry* object, bool take_copy = false);
00177 }
00178
00179
00180 #endif
00181