~ubuntu-branches/ubuntu/precise/glom/precise-updates

« back to all changes in this revision

Viewing changes to glom/utility_widgets/combo_textglade.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-10-09 16:50:36 UTC
  • mfrom: (1.1.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20091009165036-orinvwmohk838xxl
Tags: 1.12.2-0ubuntu1
* New upstream version:
  - FFE LP: #391664
* debian/control:
  - Bump python-gnome2-extras-dev build-dep to >= 2.25.3.
  - Bump libgdamm3.0-dev build-dep to libgdamm4.0-dev >= 3.99.14.
  - Change libgda3-dev build-dep to libgda-4.0-dev.
  - Change libgda3-postgres dependency to libgda-4.0-postgres.
  - Bump libgtkmm-2.4-dev build-dep to >= 2.14.
  - Add build-dep on libgconfmm-2.6-dev.
  - Bump libgoocanvasmm-dev build-dep to >= 0.14.0.
  - Remove build-dep on libbakery-2.6-dev.
  - Bump postgresql-8.3 dependency to postgresql-8.4.
  - Change scrollkeeper build-dep to rarian-compat.
  - Rename libglom{0,-dev} -> libglom-1.12-{0,dev}. Upstream include
    APIVER in the library name now.
* debian/rules:
  - Update --with-postgres-utils configure flag to point to the new
    path.
  - Drop deprecated --disable-scrollkeeper configure flag.
  - Update DEB_SHLIBDEPS_INCLUDE with new libglom-1.12-0 package name.
  - Don't include /usr/share/cdbs/1/rules/simple-patchsys.mk - there
    are currently no patches.
* debian/libglom-1.12-0.install:
  - Updated for new version.
* debian/libglom-1.12-dev.install:
  - Install pc and header files.
* debian/glom-doc.install:
  - Updated for new version.
* debian/glom.install:
  - Updated for new version.
* Fix debian/watch.
* Dropped obsolete 10-distro-install-postgres-change.patch.
* Built against latest libgoocanvasmm (LP: #428445).
* Also closes LP: #230007, LP: #393229, LP: #393231, LP: #394507,
  LP: #394887, LP: #394894, LP: #397409, LP: #381563.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef GLOM_MODE_DESIGN_COMBO_TEXTGLADE_HH
22
22
#define GLOM_MODE_DESIGN_COMBO_TEXTGLADE_HH
23
23
 
24
 
//#include <gtkmm/comboboxtext.h>
25
 
#include <gtkmm/combobox.h>
26
 
#include <libglademm.h>
 
24
#include <gtkmm/comboboxtext.h>
 
25
#include <gtkmm/builder.h>
27
26
 
28
27
#include <gtkmm/liststore.h>
29
28
 
30
29
namespace Glom
31
30
{
32
31
 
33
 
/** This class should just derive from Gtk::ComboBoxText and provide a constuctor suitable for libglade's get_widget_derived() template.
34
 
 * However, I have reimplemented Gtk::ComboBoxText here temporarily, until the fixes in gtkmm 2.4.3 are widely available.
 
32
/** This class just derives from Gtk::ComboBoxText and provides a constuctor suitable for libglade's get_widget_derived() template.
35
33
 */
36
 
class Combo_TextGlade : public Gtk::ComboBox
 
34
class Combo_TextGlade : public Gtk::ComboBoxText
37
35
{
38
36
public:
39
 
  Combo_TextGlade(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
40
 
  virtual ~Combo_TextGlade();
41
 
 
42
 
  void append_text(const Glib::ustring& text);
43
 
  void append_separator();
44
 
  void prepend_text(const Glib::ustring& text);
45
 
  Glib::ustring get_active_text() const;
46
 
 
47
 
  //This is not part of ComboBoxText:
48
 
  void clear_text();
49
 
  void set_active_text(const Glib::ustring& text);
50
 
 
51
 
  ///This ensures that something is selected:
 
37
  Combo_TextGlade(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& builder);
 
38
  
 
39
  ///This ensures that something is selected,
52
40
  void set_first_active();
53
 
 
54
 
protected:
55
 
 
56
 
  //This determines whether each row should be shown as a separator.
57
 
  bool on_row_separator(const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::iterator& iter);
58
 
 
59
 
  //Tree model columns:
60
 
  //These columns are used by the model that is created by the default constructor
61
 
  class TextModelColumns : public Gtk::TreeModel::ColumnRecord
62
 
  {
63
 
  public:
64
 
    TextModelColumns()
65
 
    { add(m_column); add(m_separator); }
66
 
 
67
 
    Gtk::TreeModelColumn<Glib::ustring> m_column;
68
 
    Gtk::TreeModelColumn<bool> m_separator;
69
 
  };
70
 
 
71
 
  TextModelColumns m_text_columns;
72
 
  Glib::RefPtr<Gtk::ListStore> m_model;
73
41
};
74
42
 
75
43
} //namespace Glom