libgnomeuimm 2.28.0
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_PIXMAP_ENTRY_H 00004 #define _LIBGNOMEUIMM_PIXMAP_ENTRY_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: pixmap-entry.hg,v 1.15 2004/04/07 14:18:45 murrayc Exp $ */ 00010 00011 00012 /* pixmap-entry.hg 00013 * 00014 * Copyright (C) 1999 The Gtk-- Development Team 00015 * 00016 * This library is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU Lesser General Public 00018 * License as published by the Free Software Foundation; either 00019 * version 2.1 of the License, or (at your option) any later version. 00020 * 00021 * This library is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 * Lesser General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU Lesser General Public 00027 * License along with this library; if not, write to the Free 00028 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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 //#include <libgnomeui/gnome-pixmap-entry.h> 00037 00038 00039 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00040 typedef struct _GnomePixmapEntry GnomePixmapEntry; 00041 typedef struct _GnomePixmapEntryClass GnomePixmapEntryClass; 00042 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00043 00044 00045 namespace Gnome 00046 { 00047 00048 namespace UI 00049 { class PixmapEntry_Class; } // namespace UI 00050 00051 } // namespace Gnome 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 /* DOXYGEN_SHOULD_SKIP_THIS */ 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 // noncopyable 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 /* DOXYGEN_SHOULD_SKIP_THIS */ 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 //C++ methods used to invoke GTK+ virtual functions: 00104 #ifdef GLIBMM_VFUNCS_ENABLED 00105 #endif //GLIBMM_VFUNCS_ENABLED 00106 00107 protected: 00108 //GTK+ Virtual Functions (override these to change behaviour): 00109 #ifdef GLIBMM_VFUNCS_ENABLED 00110 #endif //GLIBMM_VFUNCS_ENABLED 00111 00112 //Default Signal Handlers:: 00113 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00114 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00115 00116 00117 private: 00118 ; 00119 // These are deprecated 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 } /* namespace UI */ 00150 } /* namespace Gnome */ 00151 00152 00153 namespace Glib 00154 { 00163 Gnome::UI::PixmapEntry* wrap(GnomePixmapEntry* object, bool take_copy = false); 00164 } //namespace Glib 00165 00166 00167 #endif /* _LIBGNOMEUIMM_PIXMAP_ENTRY_H */ 00168