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; |
74 |
NoteEntry eDimensionKeyRangeLow; |
NoteEntry eDimensionKeyRangeLow; |
75 |
NoteEntry eDimensionKeyRangeHigh; |
NoteEntry eDimensionKeyRangeHigh; |
76 |
int rowno; |
int rowno; |
77 |
|
void add_prop(BoolEntry& prop); |
78 |
|
void add_prop(BoolEntryPlus6& prop); |
79 |
void add_prop(LabelWidget& prop); |
void add_prop(LabelWidget& prop); |
80 |
void key_range_low_changed(); |
void key_range_low_changed(); |
81 |
void key_range_high_changed(); |
void key_range_high_changed(); |
82 |
|
sigc::signal<void> instrument_changed; |
83 |
}; |
}; |
84 |
|
|
85 |
class LoadDialog : public Gtk::Dialog { |
class LoadDialog : public Gtk::Dialog { |
116 |
virtual ~MainWindow(); |
virtual ~MainWindow(); |
117 |
void load_file(const char* name); |
void load_file(const char* name); |
118 |
void load_instrument(gig::Instrument* instr); |
void load_instrument(gig::Instrument* instr); |
119 |
|
void file_changed(); |
120 |
|
sigc::signal<void, gig::File*>& signal_file_structure_to_be_changed(); |
121 |
|
sigc::signal<void, gig::File*>& signal_file_structure_changed(); |
122 |
|
sigc::signal<void, std::list<gig::Sample*> >& signal_samples_to_be_removed(); |
123 |
|
sigc::signal<void>& signal_samples_removed(); |
124 |
|
sigc::signal<void, gig::Region*>& signal_region_to_be_changed(); |
125 |
|
sigc::signal<void, gig::Region*>& signal_region_changed(); |
126 |
|
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
127 |
|
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
128 |
|
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed(); |
129 |
|
|
130 |
protected: |
protected: |
131 |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
137 |
PropDialog propDialog; |
PropDialog propDialog; |
138 |
InstrumentProps instrumentProps; |
InstrumentProps instrumentProps; |
139 |
|
|
140 |
|
sigc::signal<void, gig::File*> file_structure_to_be_changed_signal; |
141 |
|
sigc::signal<void, gig::File*> file_structure_changed_signal; |
142 |
|
sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal; |
143 |
|
sigc::signal<void> samples_removed_signal; |
144 |
|
sigc::signal<void, gig::Region*> region_to_be_changed_signal; |
145 |
|
sigc::signal<void, gig::Region*> region_changed_signal; |
146 |
|
sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal; |
147 |
|
sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal; |
148 |
|
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal; |
149 |
|
|
150 |
void on_instrument_selection_change(int index); |
void on_instrument_selection_change(int index); |
151 |
void on_sel_change(); |
void on_sel_change(); |
152 |
void region_changed(); |
void region_changed(); |
219 |
void on_action_file_save(); |
void on_action_file_save(); |
220 |
void on_action_file_save_as(); |
void on_action_file_save_as(); |
221 |
void on_action_file_properties(); |
void on_action_file_properties(); |
222 |
|
void on_action_quit(); |
223 |
void show_instr_props(); |
void show_instr_props(); |
224 |
void on_action_help_about(); |
void on_action_help_about(); |
225 |
|
|
238 |
void load_gig(gig::File* gig, const char* filename); |
void load_gig(gig::File* gig, const char* filename); |
239 |
|
|
240 |
gig::File* file; |
gig::File* file; |
241 |
|
bool file_has_name; |
242 |
|
bool file_is_changed; |
243 |
|
std::string filename; |
244 |
|
std::string current_dir; |
245 |
|
|
246 |
|
bool file_save(); |
247 |
|
bool file_save_as(); |
248 |
|
bool check_if_savable(); |
249 |
|
|
250 |
void on_button_release(GdkEventButton* button); |
void on_button_release(GdkEventButton* button); |
251 |
|
void on_sample_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context); |
252 |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
253 |
Gtk::SelectionData& selection_data, guint, guint); |
Gtk::SelectionData& selection_data, guint, guint); |
254 |
void on_sample_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, |
void on_sample_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, |
255 |
int, int, |
int, int, |
256 |
const Gtk::SelectionData& selection_data, |
const Gtk::SelectionData& selection_data, |
257 |
guint, guint time); |
guint, guint time); |
258 |
|
|
259 |
void sample_name_changed(const Gtk::TreeModel::Path& path, |
void sample_name_changed(const Gtk::TreeModel::Path& path, |
260 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
261 |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
264 |
void __import_queued_samples(); |
void __import_queued_samples(); |
265 |
void __clear(); |
void __clear(); |
266 |
|
|
267 |
|
bool close_confirmation_dialog(); |
268 |
|
|
269 |
Gtk::Menu* popup_menu; |
Gtk::Menu* popup_menu; |
270 |
|
|
271 |
|
bool on_delete_event(GdkEventAny* event); |
272 |
|
|
273 |
|
bool first_call_to_drag_data_get; |
274 |
}; |
}; |
275 |
|
|
276 |
#endif |
#endif |