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 |
22 |
|
|
23 |
#include <gig.h> |
#include <gig.h> |
24 |
|
|
25 |
|
#include <list> |
26 |
|
#include <sigc++/signal.h> |
27 |
|
|
28 |
class GigEdit { |
class GigEdit { |
29 |
public: |
public: |
30 |
static int run(); |
GigEdit(); |
31 |
static int run(const char* pFileName); |
|
32 |
static int run(gig::Instrument* pInstrument); |
int run(int argc, char* argv[]); |
33 |
|
int run(gig::Instrument* pInstrument); |
34 |
|
|
35 |
|
sigc::signal<void, gig::File*>& signal_file_structure_to_be_changed(); |
36 |
|
sigc::signal<void, gig::File*>& signal_file_structure_changed(); |
37 |
|
sigc::signal<void, std::list<gig::Sample*> >& signal_samples_to_be_removed(); |
38 |
|
sigc::signal<void>& signal_samples_removed(); |
39 |
|
sigc::signal<void, gig::Region*>& signal_region_to_be_changed(); |
40 |
|
sigc::signal<void, gig::Region*>& signal_region_changed(); |
41 |
|
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
42 |
|
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
43 |
|
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed(); |
44 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit(); |
45 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
46 |
|
|
47 |
|
void on_note_on_event(int key, int velocity); |
48 |
|
void on_note_off_event(int key, int velocity); |
49 |
|
|
50 |
|
private: |
51 |
|
sigc::signal<void, gig::File*> file_structure_to_be_changed_signal; |
52 |
|
sigc::signal<void, gig::File*> file_structure_changed_signal; |
53 |
|
sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal; |
54 |
|
sigc::signal<void> samples_removed_signal; |
55 |
|
sigc::signal<void, gig::Region*> region_to_be_changed_signal; |
56 |
|
sigc::signal<void, gig::Region*> region_changed_signal; |
57 |
|
sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal; |
58 |
|
sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal; |
59 |
|
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal; |
60 |
|
sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_hit_signal; |
61 |
|
sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_released_signal; |
62 |
|
void* state; |
63 |
}; |
}; |
64 |
|
|
65 |
#endif // GIGEDIT_H |
#endif // GIGEDIT_H |