00001
00002
00003 #ifndef _LIBGNOMEUIMM_PIXMAP_ENTRY_H
00004 #define _LIBGNOMEUIMM_PIXMAP_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 #include <libgnomeuimm/file-entry.h>
00032 #include <libgnomeuimm/entry.h>
00033 #include <gtkmm/entry.h>
00034 #include <gtkmm/scrolledwindow.h>
00035
00036
00037
00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00039 typedef struct _GnomePixmapEntry GnomePixmapEntry;
00040 typedef struct _GnomePixmapEntryClass GnomePixmapEntryClass;
00041 #endif
00042
00043
00044 namespace Gnome
00045 {
00046
00047 namespace UI
00048 { class PixmapEntry_Class; }
00049
00050 }
00051 namespace Gnome
00052 {
00053
00054 namespace UI
00055 {
00056
00057
00058 class PixmapEntry : public Gtk::VBox
00059 {
00060 public:
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062 typedef PixmapEntry CppObjectType;
00063 typedef PixmapEntry_Class CppClassType;
00064 typedef GnomePixmapEntry BaseObjectType;
00065 typedef GnomePixmapEntryClass BaseClassType;
00066 #endif
00067
00068 virtual ~PixmapEntry();
00069
00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00071
00072 private:
00073 friend class PixmapEntry_Class;
00074 static CppClassType pixmapentry_class_;
00075
00076
00077 PixmapEntry(const PixmapEntry&);
00078 PixmapEntry& operator=(const PixmapEntry&);
00079
00080 protected:
00081 explicit PixmapEntry(const Glib::ConstructParams& construct_params);
00082 explicit PixmapEntry(GnomePixmapEntry* castitem);
00083
00084 #endif
00085
00086 public:
00087 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00088 static GType get_type() G_GNUC_CONST;
00089 static GType get_base_type() G_GNUC_CONST;
00090 #endif
00091
00093 GnomePixmapEntry* gobj() { return reinterpret_cast<GnomePixmapEntry*>(gobject_); }
00094
00096 const GnomePixmapEntry* gobj() const { return reinterpret_cast<GnomePixmapEntry*>(gobject_); }
00097
00098
00099 public:
00100
00101
00102 protected:
00103
00104
00105
00106
00107
00108 private:
00109 ;
00110 public:
00111 PixmapEntry();
00112
00113 PixmapEntry(const Glib::ustring& history_id,
00114 const Glib::ustring& browse_dialog_title,
00115 bool do_preview);
00116
00117
00118 void set_pixmap_subdir(const Glib::ustring& subdir);
00119
00120
00121 Gtk::ScrolledWindow* get_scrolled_window();
00122
00123 const Gtk::ScrolledWindow* get_scrolled_window() const;
00124
00125
00126 Gtk::Widget* get_preview_widget();
00127
00128 const Gtk::Widget* get_preview_widget() const;
00129
00130
00131 void set_preview(bool do_preview = true);
00132
00133 void set_preview_size(gint preview_w, gint preview_h);
00134
00135 Glib::ustring get_filename() const;
00136
00137
00138 };
00139
00140 }
00141 }
00142
00143
00144 namespace Glib
00145 {
00147 Gnome::UI::PixmapEntry* wrap(GnomePixmapEntry* object, bool take_copy = false);
00148 }
00149 #endif
00150