55 |
public: |
public: |
56 |
InstrumentProps(); |
InstrumentProps(); |
57 |
void set_instrument(gig::Instrument* instrument); |
void set_instrument(gig::Instrument* instrument); |
58 |
|
sigc::signal<void> signal_instrument_changed(); |
59 |
protected: |
protected: |
60 |
Gtk::VBox vbox; |
Gtk::VBox vbox; |
61 |
Gtk::HButtonBox buttonBox; |
Gtk::HButtonBox buttonBox; |
62 |
Gtk::Button quitButton; |
Gtk::Button quitButton; |
63 |
Gtk::Table table; |
Gtk::Table table; |
|
Gtk::Label label[10]; |
|
|
Gtk::Entry entry[8]; |
|
|
Gtk::CheckButton check[2]; |
|
64 |
StringEntry eName; |
StringEntry eName; |
65 |
BoolEntry eIsDrum; |
BoolEntry eIsDrum; |
66 |
NumEntryTemp<uint16_t> eMIDIBank; |
NumEntryTemp<uint16_t> eMIDIBank; |
77 |
void add_prop(LabelWidget& prop); |
void add_prop(LabelWidget& prop); |
78 |
void key_range_low_changed(); |
void key_range_low_changed(); |
79 |
void key_range_high_changed(); |
void key_range_high_changed(); |
80 |
|
sigc::signal<void> instrument_changed; |
81 |
}; |
}; |
82 |
|
|
83 |
class LoadDialog : public Gtk::Dialog { |
class LoadDialog : public Gtk::Dialog { |
114 |
virtual ~MainWindow(); |
virtual ~MainWindow(); |
115 |
void load_file(const char* name); |
void load_file(const char* name); |
116 |
void load_instrument(gig::Instrument* instr); |
void load_instrument(gig::Instrument* instr); |
117 |
|
void file_changed(); |
118 |
|
|
119 |
protected: |
protected: |
120 |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
198 |
void on_action_file_save(); |
void on_action_file_save(); |
199 |
void on_action_file_save_as(); |
void on_action_file_save_as(); |
200 |
void on_action_file_properties(); |
void on_action_file_properties(); |
201 |
|
void on_action_quit(); |
202 |
void show_instr_props(); |
void show_instr_props(); |
203 |
void on_action_help_about(); |
void on_action_help_about(); |
204 |
|
|
217 |
void load_gig(gig::File* gig, const char* filename); |
void load_gig(gig::File* gig, const char* filename); |
218 |
|
|
219 |
gig::File* file; |
gig::File* file; |
220 |
|
bool file_has_name; |
221 |
|
bool file_is_changed; |
222 |
|
std::string filename; |
223 |
|
std::string current_dir; |
224 |
|
|
225 |
|
bool file_save(); |
226 |
|
bool file_save_as(); |
227 |
|
|
228 |
void on_button_release(GdkEventButton* button); |
void on_button_release(GdkEventButton* button); |
229 |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
240 |
void __import_queued_samples(); |
void __import_queued_samples(); |
241 |
void __clear(); |
void __clear(); |
242 |
|
|
243 |
|
bool close_confirmation_dialog(); |
244 |
|
|
245 |
Gtk::Menu* popup_menu; |
Gtk::Menu* popup_menu; |
246 |
|
|
247 |
|
bool on_delete_event(GdkEventAny* event); |
248 |
}; |
}; |
249 |
|
|
250 |
#endif |
#endif |