libgnomeuimm  2.28.0
pixmap-entry.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEUIMM_PIXMAP_ENTRY_H
4 #define _LIBGNOMEUIMM_PIXMAP_ENTRY_H
5 
6 
7 #include <glibmm.h>
8 
9 /* $Id: pixmap-entry.hg,v 1.15 2004/04/07 14:18:45 murrayc Exp $ */
10 
11 
12 /* pixmap-entry.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>
33 #include <libgnomeuimm/entry.h>
34 #include <gtkmm/entry.h>
35 #include <gtkmm/scrolledwindow.h>
36 //#include <libgnomeui/gnome-pixmap-entry.h>
37 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 typedef struct _GnomePixmapEntry GnomePixmapEntry;
41 typedef struct _GnomePixmapEntryClass GnomePixmapEntryClass;
42 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
43 
44 
45 namespace Gnome
46 {
47 
48 namespace UI
49 { class PixmapEntry_Class; } // namespace UI
50 
51 } // namespace Gnome
52 namespace Gnome
53 {
54 
55 namespace UI
56 {
57 
58 
59 class PixmapEntry : public FileEntry
60 {
61  public:
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63  typedef PixmapEntry CppObjectType;
64  typedef PixmapEntry_Class CppClassType;
65  typedef GnomePixmapEntry BaseObjectType;
66  typedef GnomePixmapEntryClass BaseClassType;
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68 
69  virtual ~PixmapEntry();
70 
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 
73 private:
74  friend class PixmapEntry_Class;
75  static CppClassType pixmapentry_class_;
76 
77  // noncopyable
78  PixmapEntry(const PixmapEntry&);
79  PixmapEntry& operator=(const PixmapEntry&);
80 
81 protected:
82  explicit PixmapEntry(const Glib::ConstructParams& construct_params);
83  explicit PixmapEntry(GnomePixmapEntry* castitem);
84 
85 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
86 
87 public:
88 #ifndef DOXYGEN_SHOULD_SKIP_THIS
89  static GType get_type() G_GNUC_CONST;
90 
91 
92  static GType get_base_type() G_GNUC_CONST;
93 #endif
94 
96  GnomePixmapEntry* gobj() { return reinterpret_cast<GnomePixmapEntry*>(gobject_); }
97 
99  const GnomePixmapEntry* gobj() const { return reinterpret_cast<GnomePixmapEntry*>(gobject_); }
100 
101 
102 public:
103  //C++ methods used to invoke GTK+ virtual functions:
104 #ifdef GLIBMM_VFUNCS_ENABLED
105 #endif //GLIBMM_VFUNCS_ENABLED
106 
107 protected:
108  //GTK+ Virtual Functions (override these to change behaviour):
109 #ifdef GLIBMM_VFUNCS_ENABLED
110 #endif //GLIBMM_VFUNCS_ENABLED
111 
112  //Default Signal Handlers::
113 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
114 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
115 
116 
117 private:
118 ;
119  // These are deprecated
120 
121 public:
122  PixmapEntry();
123 
124  PixmapEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title, bool do_preview);
125 
126 
127  void set_pixmap_subdir(const Glib::ustring& subdir);
128 
129 
130  Gtk::ScrolledWindow* get_scrolled_window();
131 
132  const Gtk::ScrolledWindow* get_scrolled_window() const;
133 
134 
135  Gtk::Widget* get_preview_widget();
136 
137  const Gtk::Widget* get_preview_widget() const;
138 
139 
140  void set_preview(bool do_preview = true);
141 
142  void set_preview_size(gint preview_w, gint preview_h);
143 
144  Glib::ustring get_filename() const;
145 
146 
147 };
148 
149 } /* namespace UI */
150 } /* namespace Gnome */
151 
152 
153 namespace Glib
154 {
163  Gnome::UI::PixmapEntry* wrap(GnomePixmapEntry* object, bool take_copy = false);
164 } //namespace Glib
165 
166 
167 #endif /* _LIBGNOMEUIMM_PIXMAP_ENTRY_H */
168