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