43 |
#include <gtkmm/treeview.h> |
#include <gtkmm/treeview.h> |
44 |
#include <gtkmm/uimanager.h> |
#include <gtkmm/uimanager.h> |
45 |
#include <gtkmm/window.h> |
#include <gtkmm/window.h> |
46 |
|
#include <gtkmm/menuitem.h> |
47 |
|
|
48 |
|
#include <sstream> |
49 |
|
|
50 |
#include "regionchooser.h" |
#include "regionchooser.h" |
51 |
#include "dimregionchooser.h" |
#include "dimregionchooser.h" |
471 |
PropDialog propDialog; |
PropDialog propDialog; |
472 |
InstrumentProps instrumentProps; |
InstrumentProps instrumentProps; |
473 |
|
|
474 |
|
void on_instrument_selection_change(int index); |
475 |
void on_sel_change(); |
void on_sel_change(); |
476 |
void region_changed(); |
void region_changed(); |
477 |
void dimreg_changed(); |
void dimreg_changed(); |
488 |
|
|
489 |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
490 |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
491 |
}; |
} m_Columns; |
|
|
|
|
ModelColumns m_Columns; |
|
492 |
|
|
493 |
Gtk::VBox m_VBox; |
Gtk::VBox m_VBox; |
494 |
Gtk::HPaned m_HPaned; |
Gtk::HPaned m_HPaned; |
497 |
Gtk::TreeView m_TreeView; |
Gtk::TreeView m_TreeView; |
498 |
Glib::RefPtr<Gtk::ListStore> m_refTreeModel; |
Glib::RefPtr<Gtk::ListStore> m_refTreeModel; |
499 |
|
|
500 |
|
class SamplesModel : public Gtk::TreeModel::ColumnRecord { |
501 |
|
public: |
502 |
|
SamplesModel() { |
503 |
|
add(m_col_name); |
504 |
|
add(m_col_sample); |
505 |
|
} |
506 |
|
|
507 |
|
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
508 |
|
Gtk::TreeModelColumn<gig::Sample*> m_col_sample; |
509 |
|
Gtk::TreeModelColumn<gig::Group*> m_col_group; |
510 |
|
} m_SamplesModel; |
511 |
|
Gtk::TreeView m_TreeViewSamples; |
512 |
|
Glib::RefPtr<Gtk::TreeStore> m_refSamplesTreeModel; |
513 |
|
|
514 |
Gtk::Notebook m_Notebook; |
Gtk::Notebook m_Notebook; |
515 |
|
Gtk::Notebook m_TreeViewNotebook; |
516 |
|
|
517 |
Gtk::Table* table[5]; |
Gtk::Table* table[5]; |
518 |
|
|
544 |
void on_action_file_properties(); |
void on_action_file_properties(); |
545 |
void on_action_help_about(); |
void on_action_help_about(); |
546 |
|
|
547 |
|
// sample right-click popup actions |
548 |
|
void on_sample_treeview_button_release(GdkEventButton* button); |
549 |
|
void on_action_sample_properties(); |
550 |
|
void on_action_add_group(); |
551 |
|
void on_action_add_sample(); |
552 |
|
void on_action_remove_sample(); |
553 |
|
|
554 |
LoadDialog* load_dialog; |
LoadDialog* load_dialog; |
555 |
Loader* loader; |
Loader* loader; |
556 |
void load_gig(gig::File* gig, const char* filename); |
void load_gig(gig::File* gig, const char* filename); |