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 static GType get_base_type() G_GNUC_CONST;
00091 #endif
00092
00094 GnomePixmapEntry* gobj() { return reinterpret_cast<GnomePixmapEntry*>(gobject_); }
00095
00097 const GnomePixmapEntry* gobj() const { return reinterpret_cast<GnomePixmapEntry*>(gobject_); }
00098
00099
00100 public:
00101
00102 #ifdef GLIBMM_VFUNCS_ENABLED
00103 #endif //GLIBMM_VFUNCS_ENABLED
00104
00105 protected:
00106
00107 #ifdef GLIBMM_VFUNCS_ENABLED
00108 #endif //GLIBMM_VFUNCS_ENABLED
00109
00110
00111 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00112 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00113
00114
00115 private:
00116 ;
00117
00118
00119 public:
00120 PixmapEntry();
00121
00122 PixmapEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title, bool do_preview);
00123
00124
00125 void set_pixmap_subdir(const Glib::ustring& subdir);
00126
00127
00128 Gtk::ScrolledWindow* get_scrolled_window();
00129
00130 const Gtk::ScrolledWindow* get_scrolled_window() const;
00131
00132
00133 Gtk::Widget* get_preview_widget();
00134
00135 const Gtk::Widget* get_preview_widget() const;
00136
00137
00138 void set_preview(bool do_preview = true);
00139
00140 void set_preview_size(gint preview_w, gint preview_h);
00141
00142 Glib::ustring get_filename() const;
00143
00144
00145 };
00146
00147 }
00148 }
00149
00150
00151 namespace Glib
00152 {
00158 Gnome::UI::PixmapEntry* wrap(GnomePixmapEntry* object, bool take_copy = false);
00159 }
00160
00161
00162 #endif
00163