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(); |
sigc::signal<void>& signal_instrument_changed(); |
59 |
protected: |
protected: |
60 |
Gtk::VBox vbox; |
Gtk::VBox vbox; |
61 |
Gtk::HButtonBox buttonBox; |
Gtk::HButtonBox buttonBox; |
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(); |
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(); |
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(); |
235 |
|
|
236 |
LoadDialog* load_dialog; |
LoadDialog* load_dialog; |
237 |
Loader* loader; |
Loader* loader; |
238 |
void load_gig(gig::File* gig, const char* filename); |
void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false); |
239 |
|
|
240 |
gig::File* file; |
gig::File* file; |
241 |
|
bool file_is_shared; |
242 |
bool file_has_name; |
bool file_has_name; |
243 |
bool file_is_changed; |
bool file_is_changed; |
244 |
std::string filename; |
std::string filename; |
246 |
|
|
247 |
bool file_save(); |
bool file_save(); |
248 |
bool file_save_as(); |
bool file_save_as(); |
249 |
|
bool check_if_savable(); |
250 |
|
|
251 |
void on_button_release(GdkEventButton* button); |
void on_button_release(GdkEventButton* button); |
252 |
|
void on_sample_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context); |
253 |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
254 |
Gtk::SelectionData& selection_data, guint, guint); |
Gtk::SelectionData& selection_data, guint, guint); |
255 |
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, |
256 |
int, int, |
int, int, |
257 |
const Gtk::SelectionData& selection_data, |
const Gtk::SelectionData& selection_data, |
258 |
guint, guint time); |
guint, guint time); |
259 |
|
|
260 |
void sample_name_changed(const Gtk::TreeModel::Path& path, |
void sample_name_changed(const Gtk::TreeModel::Path& path, |
261 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
262 |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
266 |
void __clear(); |
void __clear(); |
267 |
|
|
268 |
bool close_confirmation_dialog(); |
bool close_confirmation_dialog(); |
269 |
|
bool leaving_shared_mode_dialog(); |
270 |
|
|
271 |
Gtk::Menu* popup_menu; |
Gtk::Menu* popup_menu; |
272 |
|
|
273 |
bool on_delete_event(GdkEventAny* event); |
bool on_delete_event(GdkEventAny* event); |
274 |
|
|
275 |
|
bool first_call_to_drag_data_get; |
276 |
}; |
}; |
277 |
|
|
278 |
#endif |
#endif |