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 |
|
|
121 |
protected: |
protected: |
122 |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
200 |
void on_action_file_save(); |
void on_action_file_save(); |
201 |
void on_action_file_save_as(); |
void on_action_file_save_as(); |
202 |
void on_action_file_properties(); |
void on_action_file_properties(); |
203 |
|
void on_action_quit(); |
204 |
void show_instr_props(); |
void show_instr_props(); |
205 |
void on_action_help_about(); |
void on_action_help_about(); |
206 |
|
|
219 |
void load_gig(gig::File* gig, const char* filename); |
void load_gig(gig::File* gig, const char* filename); |
220 |
|
|
221 |
gig::File* file; |
gig::File* file; |
222 |
|
bool file_has_name; |
223 |
|
bool file_is_changed; |
224 |
|
std::string filename; |
225 |
|
std::string current_dir; |
226 |
|
|
227 |
|
bool file_save(); |
228 |
|
bool file_save_as(); |
229 |
|
bool check_if_savable(); |
230 |
|
|
231 |
void on_button_release(GdkEventButton* button); |
void on_button_release(GdkEventButton* button); |
232 |
|
void on_sample_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context); |
233 |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
234 |
Gtk::SelectionData& selection_data, guint, guint); |
Gtk::SelectionData& selection_data, guint, guint); |
235 |
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, |
236 |
int, int, |
int, int, |
237 |
const Gtk::SelectionData& selection_data, |
const Gtk::SelectionData& selection_data, |
238 |
guint, guint time); |
guint, guint time); |
239 |
|
|
240 |
void sample_name_changed(const Gtk::TreeModel::Path& path, |
void sample_name_changed(const Gtk::TreeModel::Path& path, |
241 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
242 |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
void instrument_name_changed(const Gtk::TreeModel::Path& path, |
245 |
void __import_queued_samples(); |
void __import_queued_samples(); |
246 |
void __clear(); |
void __clear(); |
247 |
|
|
248 |
|
bool close_confirmation_dialog(); |
249 |
|
|
250 |
Gtk::Menu* popup_menu; |
Gtk::Menu* popup_menu; |
251 |
|
|
252 |
|
bool on_delete_event(GdkEventAny* event); |
253 |
|
|
254 |
|
bool first_call_to_drag_data_get; |
255 |
}; |
}; |
256 |
|
|
257 |
#endif |
#endif |