Ardour  8.7-14-g57a6773833
comboboxentry.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_COMBOBOXENTRY_H
4 #define _GTKMM_COMBOBOXENTRY_H
5 
6 
7 #ifndef GTKMM_DISABLE_DEPRECATED
8 
9 
10 #include <glibmm/ustring.h>
11 #include <sigc++/sigc++.h>
12 
13 /* $Id: comboboxentry.hg,v 1.10 2005/05/26 21:07:42 murrayc Exp $ */
14 
15 /* combobox.h
16  *
17  * Copyright (C) 2003 The gtkmm Development Team
18  *
19  * This library is free software; you can redistribute it and/or
20  * modify it under the terms of the GNU Lesser General Public
21  * License as published by the Free Software Foundation; either
22  * version 2.1 of the License, or (at your option) any later version.
23  *
24  * This library is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27  * Lesser General Public License for more details.
28  *
29  * You should have received a copy of the GNU Lesser General Public
30  * License along with this library; if not, write to the Free
31  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32  */
33 
34 #include <gtkmm/combobox.h>
35 #include <gtkmm/entry.h>
36 
37 
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 typedef struct _GtkComboBoxEntry GtkComboBoxEntry;
41 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
42 
43 
44 namespace Gtk
45 { class ComboBoxEntry_Class; } // namespace Gtk
46 namespace Gtk
47 {
48 
73 class ComboBoxEntry : public ComboBox
74 {
75  public:
76 #ifndef DOXYGEN_SHOULD_SKIP_THIS
77  typedef ComboBoxEntry CppObjectType;
78  typedef ComboBoxEntry_Class CppClassType;
79  typedef GtkComboBoxEntry BaseObjectType;
80  typedef GtkComboBoxEntryClass BaseClassType;
81 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
82 
83  virtual ~ComboBoxEntry();
84 
85 #ifndef DOXYGEN_SHOULD_SKIP_THIS
86 
87 private:
88  friend class ComboBoxEntry_Class;
89  static CppClassType comboboxentry_class_;
90 
91  // noncopyable
93  ComboBoxEntry& operator=(const ComboBoxEntry&);
94 
95 protected:
96  explicit ComboBoxEntry(const Glib::ConstructParams& construct_params);
97  explicit ComboBoxEntry(GtkComboBoxEntry* castitem);
98 
99 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
100 
101 public:
102 #ifndef DOXYGEN_SHOULD_SKIP_THIS
103  static GType get_type() G_GNUC_CONST;
104 
105 
106  static GType get_base_type() G_GNUC_CONST;
107 #endif
108 
110  GtkComboBoxEntry* gobj() { return reinterpret_cast<GtkComboBoxEntry*>(gobject_); }
111 
113  const GtkComboBoxEntry* gobj() const { return reinterpret_cast<GtkComboBoxEntry*>(gobject_); }
114 
115 
116 public:
117  //C++ methods used to invoke GTK+ virtual functions:
118 
119 protected:
120  //GTK+ Virtual Functions (override these to change behaviour):
121 
122  //Default Signal Handlers::
123 
124 
125 private:
126 
127 
128 public:
130  //gtkmmproc error: gtk_combo_box_entyry_new_text : ignored method defs lookup failed //See ComboBoxEntryText for an equivalent of gtk_combo_box_entry_new_text().
131 
139  explicit ComboBoxEntry(const Glib::RefPtr<TreeModel>& model, const TreeModelColumnBase& text_column);
140 
141 
149  explicit ComboBoxEntry(const Glib::RefPtr<TreeModel>& model, int text_column = 0);
150 
151 
159  void set_text_column(const TreeModelColumnBase& text_column) const;
160 
168  void set_text_column(int text_column) const;
169 
176  int get_text_column() const;
177 
181  Glib::ustring get_active_text() const;
182 
183  //The child is always an entry:
184 
188 
191  const Entry* get_entry() const;
192 
198  Glib::PropertyProxy< int > property_text_column() ;
199 
205  Glib::PropertyProxy_ReadOnly< int > property_text_column() const;
206 
207 
208 };
209 
210 
211 } // namespace Gtk
212 
213 
214 namespace Glib
215 {
224  Gtk::ComboBoxEntry* wrap(GtkComboBoxEntry* object, bool take_copy = false);
225 } //namespace Glib
226 
227 
228 #endif // GTKMM_DISABLE_DEPRECATED
229 
230 
231 #endif /* _GTKMM_COMBOBOXENTRY_H */
232 
static GType get_type() G_GNUC_CONST
ComboBoxEntry(const Glib::RefPtr< TreeModel > &model, int text_column=0)
const GtkComboBoxEntry * gobj() const
Provides access to the underlying C GtkObject.
int get_text_column() const
Glib::PropertyProxy< int > property_text_column()
void set_text_column(const TreeModelColumnBase &text_column) const
GtkComboBoxEntry * gobj()
Provides access to the underlying C GtkObject.
virtual ~ComboBoxEntry()
Gtk::ComboBoxEntry * wrap(GtkComboBoxEntry *object, bool take_copy=false)
void set_text_column(int text_column) const
Glib::PropertyProxy_ReadOnly< int > property_text_column() const
ComboBoxEntry(const Glib::RefPtr< TreeModel > &model, const TreeModelColumnBase &text_column)
Glib::ustring get_active_text() const
const Entry * get_entry() const
Definition: ardour_ui.h:188