/[svn]/gigedit/trunk/src/gigedit/gigedit.h
ViewVC logotype

Annotation of /gigedit/trunk/src/gigedit/gigedit.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2246 - (hide annotations) (download) (as text)
Fri Aug 19 10:55:41 2011 UTC (12 years, 8 months ago) by persson
File MIME type: text/x-c++hdr
File size: 2957 byte(s)
* gtkmm 3 fix: rewrote the custom widgets (regionchooser and
  dimregionchooser) so they only draw pixels in the on_draw
  method. This should make them work again in newer gtkmm 3
  environments.

1 schoenebeck 1225 /* -*- c++ -*-
2 persson 2246 * Copyright (C) 2007-2011 Andreas Persson
3 schoenebeck 1225 *
4     * This program is free software; you can redistribute it and/or
5     * modify it under the terms of the GNU General Public License as
6     * published by the Free Software Foundation; either version 2, or (at
7     * your option) any later version.
8     *
9     * This program is distributed in the hope that it will be useful, but
10     * WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     * General Public License for more details.
13     *
14     * You should have received a copy of the GNU General Public License
15     * along with program; see the file COPYING. If not, write to the Free
16     * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17     * 02110-1301 USA.
18     */
19    
20     #ifndef GIGEDIT_H
21     #define GIGEDIT_H
22    
23     #include <gig.h>
24    
25 schoenebeck 1322 #include <list>
26 persson 2246 #include <cstddef>
27 schoenebeck 1322 #include <sigc++/signal.h>
28    
29 schoenebeck 1225 class GigEdit {
30     public:
31 schoenebeck 1654 GigEdit();
32    
33 persson 1456 int run(int argc, char* argv[]);
34 schoenebeck 1322 int run(gig::Instrument* pInstrument);
35    
36 schoenebeck 1339 sigc::signal<void, gig::File*>& signal_file_structure_to_be_changed();
37     sigc::signal<void, gig::File*>& signal_file_structure_changed();
38     sigc::signal<void, std::list<gig::Sample*> >& signal_samples_to_be_removed();
39     sigc::signal<void>& signal_samples_removed();
40     sigc::signal<void, gig::Region*>& signal_region_to_be_changed();
41     sigc::signal<void, gig::Region*>& signal_region_changed();
42     sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed();
43     sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed();
44 schoenebeck 1853 sigc::signal<void, gig::Sample*>& signal_sample_changed();
45 schoenebeck 1339 sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed();
46 schoenebeck 1660 sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit();
47     sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();
48 schoenebeck 1322
49 schoenebeck 1654 void on_note_on_event(int key, int velocity);
50     void on_note_off_event(int key, int velocity);
51    
52 schoenebeck 1322 private:
53     sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;
54     sigc::signal<void, gig::File*> file_structure_changed_signal;
55     sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal;
56     sigc::signal<void> samples_removed_signal;
57     sigc::signal<void, gig::Region*> region_to_be_changed_signal;
58     sigc::signal<void, gig::Region*> region_changed_signal;
59     sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal;
60     sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal;
61 schoenebeck 1853 sigc::signal<void, gig::Sample*> sample_changed_signal;
62 schoenebeck 1322 sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal;
63 schoenebeck 1660 sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_hit_signal;
64     sigc::signal<void, int/*key*/, int/*velocity*/> keyboard_key_released_signal;
65 schoenebeck 1654 void* state;
66 schoenebeck 1225 };
67    
68     #endif // GIGEDIT_H

  ViewVC Help
Powered by ViewVC