libgnomeuimm  2.28.0
icon-sel.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEUIMM_ICON_SEL_H
4 #define _LIBGNOMEUIMM_ICON_SEL_H
5 
6 
7 #include <glibmm.h>
8 
9 /* $Id: icon-sel.hg,v 1.10 2002/09/16 12:18:30 murrayc Exp $ */
10 
11 
12 /* icon-sel.hg
13  *
14  * Copyright (C) 1999 The Gtk-- Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/box.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GnomeIconSelection GnomeIconSelection;
36 typedef struct _GnomeIconSelectionClass GnomeIconSelectionClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gnome
41 {
42 
43 namespace UI
44 { class IconSelection_Class; } // namespace UI
45 
46 } // namespace Gnome
47 namespace Gnome
48 {
49 
50 namespace UI
51 {
52 
53 
54 class IconSelection : public Gtk::VBox
55 {
56  public:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  typedef IconSelection CppObjectType;
59  typedef IconSelection_Class CppClassType;
60  typedef GnomeIconSelection BaseObjectType;
61  typedef GnomeIconSelectionClass BaseClassType;
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 
64  virtual ~IconSelection();
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 private:
69  friend class IconSelection_Class;
70  static CppClassType iconselection_class_;
71 
72  // noncopyable
74  IconSelection& operator=(const IconSelection&);
75 
76 protected:
77  explicit IconSelection(const Glib::ConstructParams& construct_params);
78  explicit IconSelection(GnomeIconSelection* castitem);
79 
80 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
81 
82 public:
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84  static GType get_type() G_GNUC_CONST;
85 
86 
87  static GType get_base_type() G_GNUC_CONST;
88 #endif
89 
91  GnomeIconSelection* gobj() { return reinterpret_cast<GnomeIconSelection*>(gobject_); }
92 
94  const GnomeIconSelection* gobj() const { return reinterpret_cast<GnomeIconSelection*>(gobject_); }
95 
96 
97 public:
98  //C++ methods used to invoke GTK+ virtual functions:
99 #ifdef GLIBMM_VFUNCS_ENABLED
100 #endif //GLIBMM_VFUNCS_ENABLED
101 
102 protected:
103  //GTK+ Virtual Functions (override these to change behaviour):
104 #ifdef GLIBMM_VFUNCS_ENABLED
105 #endif //GLIBMM_VFUNCS_ENABLED
106 
107  //Default Signal Handlers::
108 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
109 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
110 
111 
112 private:
113 
114 public:
115  IconSelection();
116 
117 
118  void add_defaults();
119 
120  void add_directory(const Glib::ustring& dir);
121 
122  void show_icons();
123 
124  void clear(bool not_shown = true);
125 
126  Glib::ustring get_icon(bool full_path = true) const;
127 
128  void select_icon(const Glib::ustring& filename);
129 
130  void stop_loading();
131 
132 
133  Gtk::Widget* get_gil();
134 
135  const Gtk::Widget* get_gil() const;
136 
137 
138  Gtk::Widget* get_box();
139 
140  const Gtk::Widget* get_box() const;
141 
142 
143 };
144 
145 } /* namespace UI */
146 } /* namespace Gnome */
147 
148 
149 namespace Glib
150 {
159  Gnome::UI::IconSelection* wrap(GnomeIconSelection* object, bool take_copy = false);
160 } //namespace Glib
161 
162 
163 #endif /* _LIBGNOMEUIMM_ICON_SEL_H */
164 
Gtk::Widget * get_box()
Definition: about.h:305
Definition: about.h:45
void add_directory(const Glib::ustring &dir)
Gtk::Widget * get_gil()
const GnomeIconSelection * gobj() const
Provides access to the underlying C GtkObject.
Definition: icon-sel.h:94
GnomeIconSelection * gobj()
Provides access to the underlying C GtkObject.
Definition: icon-sel.h:91
void select_icon(const Glib::ustring &filename)
Definition: icon-sel.h:54
void clear(bool not_shown=true)
Glib::ustring get_icon(bool full_path=true) const