icon-sel.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEUIMM_ICON_SEL_H
00004 #define _LIBGNOMEUIMM_ICON_SEL_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: icon-sel.hg,v 1.10 2002/09/16 12:18:30 murrayc Exp $ */
00010 
00011 
00012 /* icon-sel.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 Library General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2 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  * Library General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU Library 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 
00033 
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeIconSelection GnomeIconSelection;
00036 typedef struct _GnomeIconSelectionClass GnomeIconSelectionClass;
00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 namespace UI
00044 { class IconSelection_Class; } // namespace UI
00045 
00046 } // namespace Gnome
00047 namespace Gnome
00048 {
00049 
00050 namespace UI
00051 {
00052 
00053 
00054 class IconSelection : public Gtk::VBox
00055 {
00056   public:
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058   typedef IconSelection CppObjectType;
00059   typedef IconSelection_Class CppClassType;
00060   typedef GnomeIconSelection BaseObjectType;
00061   typedef GnomeIconSelectionClass BaseClassType;
00062 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00063 
00064   virtual ~IconSelection();
00065 
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067 
00068 private:
00069   friend class IconSelection_Class;
00070   static CppClassType iconselection_class_;
00071 
00072   // noncopyable
00073   IconSelection(const IconSelection&);
00074   IconSelection& operator=(const IconSelection&);
00075 
00076 protected:
00077   explicit IconSelection(const Glib::ConstructParams& construct_params);
00078   explicit IconSelection(GnomeIconSelection* castitem);
00079 
00080 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00081 
00082 public:
00083 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00084   static GType get_type()      G_GNUC_CONST;
00085   static GType get_base_type() G_GNUC_CONST;
00086 #endif
00087 
00089   GnomeIconSelection*       gobj()       { return reinterpret_cast<GnomeIconSelection*>(gobject_); }
00090 
00092   const GnomeIconSelection* gobj() const { return reinterpret_cast<GnomeIconSelection*>(gobject_); }
00093 
00094 
00095 public:
00096   //C++ methods used to invoke GTK+ virtual functions:
00097 #ifdef GLIBMM_VFUNCS_ENABLED
00098 #endif //GLIBMM_VFUNCS_ENABLED
00099 
00100 protected:
00101   //GTK+ Virtual Functions (override these to change behaviour):
00102 #ifdef GLIBMM_VFUNCS_ENABLED
00103 #endif //GLIBMM_VFUNCS_ENABLED
00104 
00105   //Default Signal Handlers::
00106 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00107 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00108 
00109 
00110 private:
00111 
00112 public:
00113   IconSelection();
00114 
00115   
00116   void add_defaults();
00117   
00118   void add_directory(const Glib::ustring& dir);
00119   
00120   void show_icons();
00121   
00122   void clear(bool not_shown = true);
00123   
00124   Glib::ustring get_icon(bool full_path = true) const;
00125   
00126   void select_icon(const Glib::ustring& filename);
00127   
00128   void stop_loading();
00129 
00130   
00131   Gtk::Widget* get_gil();
00132   
00133   const Gtk::Widget* get_gil() const;
00134 
00135   
00136   Gtk::Widget* get_box();
00137   
00138   const Gtk::Widget* get_box() const;
00139 
00140 
00141 };
00142 
00143 } /* namespace UI */
00144 } /* namespace Gnome */
00145 
00146 
00147 namespace Glib
00148 {
00154   Gnome::UI::IconSelection* wrap(GnomeIconSelection* object, bool take_copy = false);
00155 } //namespace Glib
00156 
00157 
00158 #endif /* _LIBGNOMEUIMM_ICON_SEL_H */
00159 

Generated on Mon Sep 25 16:06:04 2006 for libgnomeuimm by  doxygen 1.4.7