1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2006 - 2008 Andreas Persson |
* Copyright (C) 2006 - 2013 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 |
40 |
#include "regionchooser.h" |
#include "regionchooser.h" |
41 |
#include "dimregionchooser.h" |
#include "dimregionchooser.h" |
42 |
#include "dimregionedit.h" |
#include "dimregionedit.h" |
43 |
|
#ifndef OLD_THREADS |
44 |
|
#include <glibmm/threads.h> |
45 |
|
#endif |
46 |
|
|
47 |
class MainWindow; |
class MainWindow; |
48 |
|
|
189 |
gig::File* gig; |
gig::File* gig; |
190 |
|
|
191 |
private: |
private: |
192 |
Glib::Thread* thread; |
Glib::Threads::Thread* thread; |
193 |
void thread_function(); |
void thread_function(); |
194 |
Glib::Dispatcher finished_dispatcher; |
Glib::Dispatcher finished_dispatcher; |
195 |
Glib::Dispatcher progress_dispatcher; |
Glib::Dispatcher progress_dispatcher; |
196 |
Glib::Mutex progressMutex; |
Glib::Threads::Mutex progressMutex; |
197 |
float progress; |
float progress; |
198 |
}; |
}; |
199 |
|
|
212 |
sigc::signal<void, gig::Region*>& signal_region_changed(); |
sigc::signal<void, gig::Region*>& signal_region_changed(); |
213 |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
214 |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
215 |
|
sigc::signal<void, gig::Sample*>& signal_sample_changed(); |
216 |
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(); |
217 |
|
|
218 |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_on(); |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_on(); |
219 |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_off(); |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_off(); |
220 |
|
|
221 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit(); |
222 |
|
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
223 |
|
|
224 |
protected: |
protected: |
225 |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
226 |
Glib::RefPtr<Gtk::UIManager> uiManager; |
Glib::RefPtr<Gtk::UIManager> uiManager; |
243 |
sigc::signal<void, gig::Region*> region_changed_signal; |
sigc::signal<void, gig::Region*> region_changed_signal; |
244 |
sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal; |
sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal; |
245 |
sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal; |
sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal; |
246 |
|
sigc::signal<void, gig::Sample*> sample_changed_signal; |
247 |
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; |
248 |
|
|
249 |
sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal; |
sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal; |
341 |
void on_action_sample_properties(); |
void on_action_sample_properties(); |
342 |
void on_action_add_group(); |
void on_action_add_group(); |
343 |
void on_action_add_sample(); |
void on_action_add_sample(); |
344 |
|
void on_action_replace_all_samples_in_all_groups(); |
345 |
void on_action_remove_sample(); |
void on_action_remove_sample(); |
346 |
|
|
347 |
void on_action_add_instrument(); |
void on_action_add_instrument(); |
348 |
|
void on_action_duplicate_instrument(); |
349 |
void on_action_remove_instrument(); |
void on_action_remove_instrument(); |
350 |
|
|
351 |
LoadDialog* load_dialog; |
LoadDialog* load_dialog; |
357 |
bool file_has_name; |
bool file_has_name; |
358 |
bool file_is_changed; |
bool file_is_changed; |
359 |
std::string filename; |
std::string filename; |
360 |
std::string current_dir; |
std::string current_gig_dir; |
361 |
|
std::string current_sample_dir; |
362 |
|
|
363 |
void set_file_is_shared(bool); |
void set_file_is_shared(bool); |
364 |
|
|