/[svn]/gigedit/trunk/src/gigedit/CombineInstrumentsDialog.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/CombineInstrumentsDialog.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3299 by schoenebeck, Sun Jul 9 12:44:59 2017 UTC revision 3300 by schoenebeck, Sun Jul 9 18:15:02 2017 UTC
# Line 19  Line 19 
19  #include <gtkmm/dialog.h>  #include <gtkmm/dialog.h>
20  #include <gtkmm/treeview.h>  #include <gtkmm/treeview.h>
21  #include <gtkmm/liststore.h>  #include <gtkmm/liststore.h>
22    #include <gtkmm/iconview.h>
23  #include <gtkmm/table.h>  #include <gtkmm/table.h>
24  #include <gtkmm/comboboxtext.h>  #include <gtkmm/comboboxtext.h>
25  #include <gtkmm/scrolledwindow.h>  #include <gtkmm/scrolledwindow.h>
# Line 59  protected: Line 60  protected:
60      Gtk::HButtonBox m_buttonBox;      Gtk::HButtonBox m_buttonBox;
61      Gtk::ScrolledWindow m_scrolledWindow;      Gtk::ScrolledWindow m_scrolledWindow;
62      Gtk::TreeView   m_treeView;      Gtk::TreeView   m_treeView;
63        Gtk::IconView   m_iconView;
64      Gtk::Button     m_cancelButton;      Gtk::Button     m_cancelButton;
65      Gtk::Button     m_OKButton;      Gtk::Button     m_OKButton;
66  #if GTKMM_MAJOR_VERSION < 3  #if GTKMM_MAJOR_VERSION < 3
# Line 69  protected: Line 71  protected:
71      Gtk::Table      m_tableDimCombo;      Gtk::Table      m_tableDimCombo;
72      Gtk::ComboBox   m_comboDimType;      Gtk::ComboBox   m_comboDimType;
73      Gtk::Label      m_labelDimType;      Gtk::Label      m_labelDimType;
74        Gtk::Label      m_labelOrder;
75    
76      class ComboDimsModel : public Gtk::TreeModel::ColumnRecord {      class ComboDimsModel : public Gtk::TreeModel::ColumnRecord {
77      public:      public:
# Line 94  protected: Line 97  protected:
97          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;
98      } m_columns;      } m_columns;
99    
100        class OrderListModel : public Gtk::TreeModel::ColumnRecord {
101        public:
102            OrderListModel() {
103                add(m_col_name);
104                add(m_col_markup);
105                add(m_col_instr);
106            }
107    
108            Gtk::TreeModelColumn<Glib::ustring>    m_col_name;
109            Gtk::TreeModelColumn<Glib::ustring>    m_col_markup;
110            Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;
111        } m_orderColumns;
112    
113      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
114        Glib::RefPtr<Gtk::ListStore> m_refOrderModel;
115        bool first_call_to_drag_data_get;
116    
117      void combineSelectedInstruments();      void combineSelectedInstruments();
118      void onSelectionChanged();      void onSelectionChanged();
119        void on_order_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
120        void on_order_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
121                                    Gtk::SelectionData& selection_data, guint, guint);
122        void on_order_drop_drag_data_received(
123            const Glib::RefPtr<Gdk::DragContext>& context, int x, int y,
124            const Gtk::SelectionData& selection_data, guint, guint time
125        );
126  };  };
127    
128  #endif // GIGEDIT_COMBINEINSTRUMENTSDIALOG  #endif // GIGEDIT_COMBINEINSTRUMENTSDIALOG

Legend:
Removed from v.3299  
changed lines
  Added in v.3300

  ViewVC Help
Powered by ViewVC