Ardour  8.7-14-g57a6773833
combobox.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_COMBOBOX_H
4 #define _GTKMM_COMBOBOX_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: combobox.hg,v 1.17 2006/09/19 20:08:42 murrayc Exp $ */
11 
12 /* combobox.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/bin.h>
32 #include <gtkmm/celllayout.h>
33 #include <gtkmm/treemodel.h>
34 #include <gtkmm/cellrenderer.h>
35 #include <gtkmm/treeview.h>
36 #include <gtkmm/enums.h> //For SensitivityType.
37 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 typedef struct _GtkComboBox GtkComboBox;
41 typedef struct _GtkComboBoxClass GtkComboBoxClass;
42 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
43 
44 
45 namespace Gtk
46 { class ComboBox_Class; } // namespace Gtk
47 namespace Gtk
48 {
49 
68 class ComboBox
69 : public Bin,
70  public CellLayout
71 //TODO: Since GTK+ 2.6, this should now inherit also from CellEditable, but we can't add this base without breaking ABI.
72 {
73  public:
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
75  typedef ComboBox CppObjectType;
76  typedef ComboBox_Class CppClassType;
77  typedef GtkComboBox BaseObjectType;
78  typedef GtkComboBoxClass BaseClassType;
79 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
80 
81  virtual ~ComboBox();
82 
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 
85 private:
86  friend class ComboBox_Class;
87  static CppClassType combobox_class_;
88 
89  // noncopyable
90  ComboBox(const ComboBox&);
91  ComboBox& operator=(const ComboBox&);
92 
93 protected:
94  explicit ComboBox(const Glib::ConstructParams& construct_params);
95  explicit ComboBox(GtkComboBox* castitem);
96 
97 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
98 
99 public:
100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
101  static GType get_type() G_GNUC_CONST;
102 
103 
104  static GType get_base_type() G_GNUC_CONST;
105 #endif
106 
108  GtkComboBox* gobj() { return reinterpret_cast<GtkComboBox*>(gobject_); }
109 
111  const GtkComboBox* gobj() const { return reinterpret_cast<GtkComboBox*>(gobject_); }
112 
113 
114 public:
115  //C++ methods used to invoke GTK+ virtual functions:
116 
117 protected:
118  //GTK+ Virtual Functions (override these to change behaviour):
119 
120  //Default Signal Handlers::
122  virtual void on_changed();
123 
124 
125 private:
126 
127 
128 public:
130 
133  explicit ComboBox(const Glib::RefPtr<TreeModel>& model);
134 
135  //See ComboBoxText for an equivalent of gtk_combo_box_new_text().
136 
140  explicit ComboBox(bool has_entry); //has_entry has a default value in gtkmm-3.0 but can't here because we already have a default constructor.
141 
146  explicit ComboBox(const Glib::RefPtr<TreeModel>& model, bool has_entry); //has_entry has a default value in gtkmm-3.0 but can't here because we already have a default constructor.
147 
148 
156 
163  int get_wrap_width() const;
164 
165 
172  void set_row_span_column(int row_span);
173 
178  int get_row_span_column() const;
179 
180 
187  void set_column_span_column(int column_span);
188 
194 
195 
200  bool get_add_tearoffs() const;
201 
207  void set_add_tearoffs(bool add_tearoffs = true);
208 
209 
216  Glib::ustring get_title() const;
217 
222  void set_title(const Glib::ustring& title);
223 
224 
231  bool get_focus_on_click() const;
232 
241  void set_focus_on_click(bool focus_on_click = true);
242 
243 /* get/set active item */
244 
255 
260 
265 
266 
272  void set_active(int index);
273 
279  void set_active(const TreeModel::iterator& iter);
280 
281  //TODO: See https://bugzilla.gnome.org/show_bug.cgi?id=612396#c30
284  Glib::ustring get_entry_text() const;
285 
288  void unset_active();
289 
290 
296  Glib::RefPtr<TreeModel> get_model();
297 
303  Glib::RefPtr<const TreeModel> get_model() const;
304 
314  void set_model(const Glib::RefPtr<TreeModel>& model);
315 
320  void unset_model();
321 
323 
330 
334 
335 
343 
354 
355 
360  bool get_has_entry() const;
361 
362 
373  void set_entry_text_column(const TreeModelColumnBase& text_column) const;
374 
385  void set_entry_text_column(int text_column);
386 
387 
394 
395 
401  void popup();
402 
408  void popdown();
409 
410 
411 #ifdef GTKMM_ATKMM_ENABLED
412 
421  Glib::RefPtr<Atk::Object> get_popup_accessible();
422 #endif // GTKMM_ATKMM_ENABLED
423 
424 
425 #ifdef GTKMM_ATKMM_ENABLED
426 
435  Glib::RefPtr<const Atk::Object> get_popup_accessible() const;
436 #endif // GTKMM_ATKMM_ENABLED
437 
438 
439  //These are in ComboBoxText.
440 
444 
447  const Entry* get_entry() const;
448 
454  Glib::PropertyProxy< Glib::RefPtr<TreeModel> > property_model() ;
455 
461  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<TreeModel> > property_model() const;
462 
468  Glib::PropertyProxy< int > property_wrap_width() ;
469 
475  Glib::PropertyProxy_ReadOnly< int > property_wrap_width() const;
476 
482  Glib::PropertyProxy< int > property_row_span_column() ;
483 
489  Glib::PropertyProxy_ReadOnly< int > property_row_span_column() const;
490 
496  Glib::PropertyProxy< int > property_column_span_column() ;
497 
503  Glib::PropertyProxy_ReadOnly< int > property_column_span_column() const;
504 
510  Glib::PropertyProxy< int > property_active() ;
511 
517  Glib::PropertyProxy_ReadOnly< int > property_active() const;
518 
524  Glib::PropertyProxy< bool > property_add_tearoffs() ;
525 
531  Glib::PropertyProxy_ReadOnly< bool > property_add_tearoffs() const;
532 
538  Glib::PropertyProxy< bool > property_has_frame() ;
539 
545  Glib::PropertyProxy_ReadOnly< bool > property_has_frame() const;
546 
552  Glib::PropertyProxy< bool > property_focus_on_click() ;
553 
559  Glib::PropertyProxy_ReadOnly< bool > property_focus_on_click() const;
560 
566  Glib::PropertyProxy< Glib::ustring > property_tearoff_title() ;
567 
573  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_tearoff_title() const;
574 
580  Glib::PropertyProxy_ReadOnly< bool > property_popup_shown() const;
581 
582 
588  Glib::PropertyProxy< SensitivityType > property_button_sensitivity() ;
589 
595  Glib::PropertyProxy_ReadOnly< SensitivityType > property_button_sensitivity() const;
596 
597 
608  Glib::SignalProxy0< void > signal_changed();
609 
610 
611  //Key-binding signals:
612 
613 
614 };
615 
616 
617 } // namespace Gtk
618 
619 
620 namespace Glib
621 {
630  Gtk::ComboBox* wrap(GtkComboBox* object, bool take_copy = false);
631 } //namespace Glib
632 
633 
634 #endif /* _GTKMM_COMBOBOX_H */
635 
Definition: bin.h:55
static GType get_type() G_GNUC_CONST
bool get_focus_on_click() const
Glib::PropertyProxy_ReadOnly< bool > property_has_frame() const
GtkComboBox * gobj()
Provides access to the underlying C GtkObject.
Definition: combobox.h:108
bool get_has_entry() const
Glib::PropertyProxy< int > property_row_span_column()
int get_row_span_column() const
ComboBox(const Glib::RefPtr< TreeModel > &model, bool has_entry)
void set_row_separator_func(const SlotRowSeparator &slot)
void set_wrap_width(int width)
void set_column_span_column(int column_span)
int get_column_span_column() const
Glib::PropertyProxy_ReadOnly< int > property_active() const
TreeModel::const_iterator get_active() const
const GtkComboBox * gobj() const
Provides access to the underlying C GtkObject.
Definition: combobox.h:111
void set_add_tearoffs(bool add_tearoffs=true)
Glib::PropertyProxy< SensitivityType > property_button_sensitivity()
TreeView::SlotRowSeparator SlotRowSeparator
Definition: combobox.h:322
void set_active(int index)
Glib::PropertyProxy< bool > property_has_frame()
void unset_model()
Glib::PropertyProxy< int > property_wrap_width()
Glib::PropertyProxy< int > property_active()
int get_active_row_number() const
virtual void on_changed()
This is a default handler for the signal signal_changed().
int get_wrap_width() const
void set_active(const TreeModel::iterator &iter)
Glib::PropertyProxy< int > property_column_span_column()
void set_entry_text_column(int text_column)
Glib::ustring get_entry_text() const
virtual ~ComboBox()
void unset_row_separator_func()
TreeModel::iterator get_active()
Glib::PropertyProxy_ReadOnly< int > property_column_span_column() const
void set_row_span_column(int row_span)
const Entry * get_entry() const
Glib::ustring get_title() const
ComboBox(const Glib::RefPtr< TreeModel > &model)
Glib::PropertyProxy_ReadOnly< bool > property_popup_shown() const
Glib::PropertyProxy_ReadOnly< bool > property_add_tearoffs() const
void set_focus_on_click(bool focus_on_click=true)
void unset_active()
Glib::RefPtr< const TreeModel > get_model() const
bool get_add_tearoffs() const
Glib::PropertyProxy_ReadOnly< bool > property_focus_on_click() const
void set_model(const Glib::RefPtr< TreeModel > &model)
Glib::PropertyProxy_ReadOnly< int > property_wrap_width() const
Glib::PropertyProxy_ReadOnly< int > property_row_span_column() const
void set_title(const Glib::ustring &title)
void set_entry_text_column(const TreeModelColumnBase &text_column) const
Glib::PropertyProxy< Glib::RefPtr< TreeModel > > property_model()
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< TreeModel > > property_model() const
Glib::SignalProxy0< void > signal_changed()
Glib::PropertyProxy_ReadOnly< SensitivityType > property_button_sensitivity() const
Glib::RefPtr< TreeModel > get_model()
Gtk::ComboBox * wrap(GtkComboBox *object, bool take_copy=false)
Glib::PropertyProxy< bool > property_add_tearoffs()
int get_entry_text_column() const
SensitivityType get_button_sensitivity() const
Entry * get_entry()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_tearoff_title() const
Glib::PropertyProxy< bool > property_focus_on_click()
void set_button_sensitivity(SensitivityType sensitivity)
ComboBox(bool has_entry)
Glib::PropertyProxy< Glib::ustring > property_tearoff_title()
sigc::slot< bool, const Glib::RefPtr< TreeModel > &, const TreeModel::iterator & > SlotRowSeparator
Definition: treeview.h:1498
Definition: ardour_ui.h:188
gint width
Definition: xcursors.h:1