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