26 |
#include <gtkmm/buttonbox.h> |
#include <gtkmm/buttonbox.h> |
27 |
#include <gtkmm/dialog.h> |
#include <gtkmm/dialog.h> |
28 |
#include <gtkmm/liststore.h> |
#include <gtkmm/liststore.h> |
29 |
|
#include <gtkmm/menu.h> |
30 |
#include <gtkmm/paned.h> |
#include <gtkmm/paned.h> |
31 |
#include <gtkmm/progressbar.h> |
#include <gtkmm/progressbar.h> |
32 |
|
#include <gtkmm/radiomenuitem.h> |
33 |
#include <gtkmm/scrolledwindow.h> |
#include <gtkmm/scrolledwindow.h> |
34 |
#include <gtkmm/treestore.h> |
#include <gtkmm/treestore.h> |
35 |
#include <gtkmm/uimanager.h> |
#include <gtkmm/uimanager.h> |
81 |
public: |
public: |
82 |
InstrumentProps(); |
InstrumentProps(); |
83 |
void set_instrument(gig::Instrument* instrument); |
void set_instrument(gig::Instrument* instrument); |
84 |
|
gig::Instrument* get_instrument() { return m; } |
85 |
|
void update_name(); |
86 |
|
sigc::signal<void>& signal_name_changed() { |
87 |
|
return sig_name_changed; |
88 |
|
} |
89 |
protected: |
protected: |
90 |
|
void set_Name(const gig::String& name); |
91 |
void set_IsDrum(bool value); |
void set_IsDrum(bool value); |
92 |
void set_MIDIBank(uint16_t value); |
void set_MIDIBank(uint16_t value); |
93 |
void set_MIDIProgram(uint32_t value); |
void set_MIDIProgram(uint32_t value); |
94 |
|
|
95 |
|
sigc::signal<void> sig_name_changed; |
96 |
Gtk::VBox vbox; |
Gtk::VBox vbox; |
97 |
Gtk::HButtonBox buttonBox; |
Gtk::HButtonBox buttonBox; |
98 |
Gtk::Button quitButton; |
Gtk::Button quitButton; |
191 |
sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal; |
sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal; |
192 |
sigc::signal<void, int/*key*/, int/*velocity*/> note_off_signal; |
sigc::signal<void, int/*key*/, int/*velocity*/> note_off_signal; |
193 |
|
|
194 |
void on_instrument_selection_change(int index); |
void on_instrument_selection_change(Gtk::RadioMenuItem* item); |
195 |
void on_sel_change(); |
void on_sel_change(); |
196 |
void region_changed(); |
void region_changed(); |
197 |
void dimreg_changed(); |
void dimreg_changed(); |
221 |
Gtk::TreeView m_TreeView; |
Gtk::TreeView m_TreeView; |
222 |
Glib::RefPtr<Gtk::ListStore> m_refTreeModel; |
Glib::RefPtr<Gtk::ListStore> m_refTreeModel; |
223 |
|
|
224 |
|
Gtk::Menu* instrument_menu; |
225 |
|
|
226 |
class SamplesModel : public Gtk::TreeModel::ColumnRecord { |
class SamplesModel : public Gtk::TreeModel::ColumnRecord { |
227 |
public: |
public: |
228 |
SamplesModel() { |
SamplesModel() { |
276 |
void on_action_file_properties(); |
void on_action_file_properties(); |
277 |
void on_action_quit(); |
void on_action_quit(); |
278 |
void show_instr_props(); |
void show_instr_props(); |
279 |
|
bool instr_props_set_instrument(); |
280 |
void on_action_view_status_bar(); |
void on_action_view_status_bar(); |
281 |
void on_action_help_about(); |
void on_action_help_about(); |
282 |
|
|
292 |
void on_action_duplicate_instrument(); |
void on_action_duplicate_instrument(); |
293 |
void on_action_remove_instrument(); |
void on_action_remove_instrument(); |
294 |
|
|
295 |
|
void add_instrument(gig::Instrument* instrument); |
296 |
|
Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name, |
297 |
|
int position = -1); |
298 |
|
void remove_instrument_from_menu(int index); |
299 |
|
|
300 |
LoadDialog* load_dialog; |
LoadDialog* load_dialog; |
301 |
Loader* loader; |
Loader* loader; |
302 |
void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false); |
void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false); |
328 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
329 |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
330 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
331 |
|
void instr_name_changed_by_instr_props(Gtk::TreeModel::iterator& it); |
332 |
|
sigc::connection instrument_name_connection; |
333 |
|
|
334 |
void __import_queued_samples(); |
void __import_queued_samples(); |
335 |
void __clear(); |
void __clear(); |