libgnomeuimm 2.28.0
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_ICON_ENTRY_H 00004 #define _LIBGNOMEUIMM_ICON_ENTRY_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: icon-entry.hg,v 1.12 2004/04/06 21:16:41 mxpxpod Exp $ */ 00010 00011 00012 /* icon-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 <libgnomeui/gnome-icon-entry.h> 00033 #include <libgnomeuimm/file-entry.h> 00034 #include <libgnomeuimm/entry.h> 00035 #include <gtkmm/entry.h> 00036 00037 00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00039 typedef struct _GnomeIconEntry GnomeIconEntry; 00040 typedef struct _GnomeIconEntryClass GnomeIconEntryClass; 00041 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00042 00043 00044 namespace Gnome 00045 { 00046 00047 namespace UI 00048 { class IconEntry_Class; } // namespace UI 00049 00050 } // namespace Gnome 00051 namespace Gnome 00052 { 00053 00054 namespace UI 00055 { 00056 00057 00058 class IconEntry : public Gtk::VBox 00059 { 00060 public: 00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00062 typedef IconEntry CppObjectType; 00063 typedef IconEntry_Class CppClassType; 00064 typedef GnomeIconEntry BaseObjectType; 00065 typedef GnomeIconEntryClass BaseClassType; 00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00067 00068 virtual ~IconEntry(); 00069 00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00071 00072 private: 00073 friend class IconEntry_Class; 00074 static CppClassType iconentry_class_; 00075 00076 // noncopyable 00077 IconEntry(const IconEntry&); 00078 IconEntry& operator=(const IconEntry&); 00079 00080 protected: 00081 explicit IconEntry(const Glib::ConstructParams& construct_params); 00082 explicit IconEntry(GnomeIconEntry* castitem); 00083 00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00085 00086 public: 00087 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00088 static GType get_type() G_GNUC_CONST; 00089 00090 00091 static GType get_base_type() G_GNUC_CONST; 00092 #endif 00093 00095 GnomeIconEntry* gobj() { return reinterpret_cast<GnomeIconEntry*>(gobject_); } 00096 00098 const GnomeIconEntry* gobj() const { return reinterpret_cast<GnomeIconEntry*>(gobject_); } 00099 00100 00101 public: 00102 //C++ methods used to invoke GTK+ virtual functions: 00103 #ifdef GLIBMM_VFUNCS_ENABLED 00104 #endif //GLIBMM_VFUNCS_ENABLED 00105 00106 protected: 00107 //GTK+ Virtual Functions (override these to change behaviour): 00108 #ifdef GLIBMM_VFUNCS_ENABLED 00109 #endif //GLIBMM_VFUNCS_ENABLED 00110 00111 //Default Signal Handlers:: 00112 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00113 virtual void on_changed(); 00114 virtual void on_browse(); 00115 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00116 00117 00118 private: 00119 00120 // These are deprecated 00121 00122 public: 00123 IconEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title); 00124 00125 00126 void set_pixmap_subdir(const Glib::ustring& subdir); 00127 00128 Glib::ustring get_filename() const; 00129 00130 bool set_filename(const Glib::ustring& filename); 00131 00132 void set_browse_dialog_title(const Glib::ustring& browse_dialog_title); 00133 00134 void set_history_id(const Glib::ustring& history_id); 00135 00136 void set_max_saved(guint max_saved); 00137 00138 00139 Gtk::Widget* get_pick_dialog(); 00140 00141 const Gtk::Widget* get_pick_dialog() const; 00142 00143 00149 Glib::SignalProxy0< void > signal_changed(); 00150 00151 00157 Glib::SignalProxy0< void > signal_browse(); 00158 00159 00160 }; 00161 00162 } /* namespace UI */ 00163 } /* namespace Gnome */ 00164 00165 00166 namespace Glib 00167 { 00176 Gnome::UI::IconEntry* wrap(GnomeIconEntry* object, bool take_copy = false); 00177 } //namespace Glib 00178 00179 00180 #endif /* _LIBGNOMEUIMM_ICON_ENTRY_H */ 00181