1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2007 Andreas Persson |
* Copyright (C) 2007, 2008 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
27 |
|
|
28 |
class GigEdit { |
class GigEdit { |
29 |
public: |
public: |
30 |
|
GigEdit(); |
31 |
|
|
32 |
int run(int argc, char* argv[]); |
int run(int argc, char* argv[]); |
33 |
int run(gig::Instrument* pInstrument); |
int run(gig::Instrument* pInstrument); |
34 |
|
|
40 |
sigc::signal<void, gig::Region*>& signal_region_changed(); |
sigc::signal<void, gig::Region*>& signal_region_changed(); |
41 |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
42 |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
43 |
|
sigc::signal<void, gig::Sample*>& signal_sample_changed(); |
44 |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed(); |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed(); |
45 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit(); |
46 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
47 |
|
|
48 |
|
void on_note_on_event(int key, int velocity); |
49 |
|
void on_note_off_event(int key, int velocity); |
50 |
|
|
51 |
private: |
private: |
52 |
sigc::signal<void, gig::File*> file_structure_to_be_changed_signal; |
sigc::signal<void, gig::File*> file_structure_to_be_changed_signal; |
57 |
sigc::signal<void, gig::Region*> region_changed_signal; |
sigc::signal<void, gig::Region*> region_changed_signal; |
58 |
sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal; |
sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal; |
59 |
sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal; |
sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal; |
60 |
|
sigc::signal<void, gig::Sample*> sample_changed_signal; |
61 |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal; |
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal; |
62 |
|
sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_hit_signal; |
63 |
|
sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_released_signal; |
64 |
|
void* state; |
65 |
}; |
}; |
66 |
|
|
67 |
#endif // GIGEDIT_H |
#endif // GIGEDIT_H |