Ardour  9.0-pre0-582-g084a23a80d
filechooserbutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_FILECHOOSERBUTTON_H
4 #define _GTKMM_FILECHOOSERBUTTON_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: filechooserbutton.hg,v 1.7 2005/12/12 08:14:21 murrayc Exp $ */
11 
12 /* filechooserbutton.h
13  *
14  * Copyright (C) 2003 The gtkmm 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 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class FileChooserButton_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
62  : public HBox,
63  public FileChooser
64 {
65  public:
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67  typedef FileChooserButton CppObjectType;
68  typedef FileChooserButton_Class CppClassType;
69  typedef GtkFileChooserButton BaseObjectType;
70  typedef GtkFileChooserButtonClass BaseClassType;
71 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
72 
73  virtual ~FileChooserButton();
74 
75 #ifndef DOXYGEN_SHOULD_SKIP_THIS
76 
77 private:
78  friend class FileChooserButton_Class;
79  static CppClassType filechooserbutton_class_;
80 
81  // noncopyable
83  FileChooserButton& operator=(const FileChooserButton&);
84 
85 protected:
86  explicit FileChooserButton(const Glib::ConstructParams& construct_params);
87  explicit FileChooserButton(GtkFileChooserButton* castitem);
88 
89 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
90 
91 public:
92 #ifndef DOXYGEN_SHOULD_SKIP_THIS
93  static GType get_type() G_GNUC_CONST;
94 
95 
96  static GType get_base_type() G_GNUC_CONST;
97 #endif
98 
100  GtkFileChooserButton* gobj() { return reinterpret_cast<GtkFileChooserButton*>(gobject_); }
101 
103  const GtkFileChooserButton* gobj() const { return reinterpret_cast<GtkFileChooserButton*>(gobject_); }
104 
105 
106 public:
107  //C++ methods used to invoke GTK+ virtual functions:
108 
109 protected:
110  //GTK+ Virtual Functions (override these to change behaviour):
111 
112  //Default Signal Handlers::
113 
114 
115 private:
116 
117 
118 public:
119 
124 
130  explicit FileChooserButton(const Glib::ustring& title, FileChooserAction action = FILE_CHOOSER_ACTION_OPEN);
131 
132 
139  explicit FileChooserButton(const Glib::ustring& title, FileChooserAction action, const Glib::ustring& backend);
140 
141 
147 
148 
154  Glib::ustring get_title() const;
155 
160  void set_title(const Glib::ustring& title);
161 
162 
167  int get_width_chars() const;
168 
173  void set_width_chars(int n_chars);
174 
175 
182  bool get_focus_on_click() const;
183 
191  void set_focus_on_click(gboolean focus_on_click = true);
192 
193  //TODO: Remove no_default_handler when we can break ABI.
194  //This is a G_SIGNAL_ACTION signal, but it seems to be public API for applications.
195  //See http://bugzilla.gnome.org/show_bug.cgi?id=353196
196 
203  Glib::SignalProxy0< void > signal_file_set();
204 
205 
206  //gtkmmproc error: dialog : attempt to wrap write-only and construct-only property.
212  Glib::PropertyProxy< bool > property_focus_on_click() ;
213 
219  Glib::PropertyProxy_ReadOnly< bool > property_focus_on_click() const;
220 
226  Glib::PropertyProxy< Glib::ustring > property_title() ;
227 
233  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const;
234 
240  Glib::PropertyProxy< int > property_width_chars() ;
241 
247  Glib::PropertyProxy_ReadOnly< int > property_width_chars() const;
248 
249 
250 };
251 
252 
253 } // namespace Gtk
254 
255 
256 namespace Glib
257 {
266  Gtk::FileChooserButton* wrap(GtkFileChooserButton* object, bool take_copy = false);
267 } //namespace Glib
268 
269 
270 #endif /* _GTKMM_FILECHOOSERBUTTON_H */
271 
bool get_focus_on_click() const
Glib::PropertyProxy< Glib::ustring > property_title()
const GtkFileChooserButton * gobj() const
Provides access to the underlying C GtkObject.
FileChooserButton(const Glib::ustring &title, FileChooserAction action, const Glib::ustring &backend)
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const
Glib::SignalProxy0< void > signal_file_set()
virtual ~FileChooserButton()
Glib::PropertyProxy_ReadOnly< bool > property_focus_on_click() const
Glib::PropertyProxy< bool > property_focus_on_click()
void set_focus_on_click(gboolean focus_on_click=true)
int get_width_chars() const
Glib::PropertyProxy_ReadOnly< int > property_width_chars() const
FileChooserButton(FileChooserDialog &dialog)
Gtk::FileChooserButton * wrap(GtkFileChooserButton *object, bool take_copy=false)
FileChooserButton(const Glib::ustring &title, FileChooserAction action=FILE_CHOOSER_ACTION_OPEN)
void set_width_chars(int n_chars)
Glib::PropertyProxy< int > property_width_chars()
GtkFileChooserButton * gobj()
Provides access to the underlying C GtkObject.
Glib::ustring get_title() const
void set_title(const Glib::ustring &title)
FileChooserButton(FileChooserAction action=FILE_CHOOSER_ACTION_OPEN)
static GType get_type() G_GNUC_CONST
FileChooserAction
Definition: filechooser.h:56
@ FILE_CHOOSER_ACTION_OPEN
Definition: filechooser.h:57
Definition: ardour_ui.h:188