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
00106
00107 private:
00108
00109 public:
00110
00111 IconEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title);
00112
00113
00114 void set_pixmap_subdir(const Glib::ustring& subdir);
00115
00116 Glib::ustring get_filename() const;
00117
00118 bool set_filename(const Glib::ustring& filename);
00119
00120 void set_browse_dialog_title(const Glib::ustring& browse_dialog_title);
00121
00122 void set_history_id(const Glib::ustring& history_id);
00123
00124
00125 Gtk::Widget* get_pick_dialog();
00126
00127 const Gtk::Widget* get_pick_dialog() const;
00128
00129
00130 };
00131
00132 }
00133 }
00134
00135
00136 namespace Glib
00137 {
00139 Gnome::UI::IconEntry* wrap(GnomeIconEntry* object, bool take_copy = false);
00140 }
00141 #endif
00142