244 |
InstrumentProps instrumentProps; |
InstrumentProps instrumentProps; |
245 |
MidiRules midiRules; |
MidiRules midiRules; |
246 |
|
|
247 |
|
/** |
248 |
|
* Ensures that the 2 signals MainWindow::dimreg_to_be_changed_signal and |
249 |
|
* MainWindowv::dimreg_changed_signal are always triggered correctly as a |
250 |
|
* pair. It behaves similar to a "mutex lock guard" design pattern. |
251 |
|
*/ |
252 |
|
class DimRegionChangeGuard : public SignalGuard<gig::DimensionRegion*> { |
253 |
|
public: |
254 |
|
DimRegionChangeGuard(MainWindow* w, gig::DimensionRegion* pDimReg) : |
255 |
|
SignalGuard<gig::DimensionRegion*>(w->dimreg_to_be_changed_signal, w->dimreg_changed_signal, pDimReg) |
256 |
|
{ |
257 |
|
} |
258 |
|
}; |
259 |
|
|
260 |
sigc::signal<void, gig::File*> file_structure_to_be_changed_signal; |
sigc::signal<void, gig::File*> file_structure_to_be_changed_signal; |
261 |
sigc::signal<void, gig::File*> file_structure_changed_signal; |
sigc::signal<void, gig::File*> file_structure_changed_signal; |
262 |
sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal; |
sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal; |
286 |
void on_saver_progress(); |
void on_saver_progress(); |
287 |
void on_saver_error(); |
void on_saver_error(); |
288 |
void on_saver_finished(); |
void on_saver_finished(); |
289 |
|
void updateMacroMenu(); |
290 |
|
void onMacroSelected(int iMacro); |
291 |
|
void setupMacros(); |
292 |
|
void onMacrosSetupChanged(const std::vector<Serialization::Archive>& macros); |
293 |
|
void applyMacro(Serialization::Archive& macro); |
294 |
|
|
295 |
void dimreg_all_dimregs_toggled(); |
void dimreg_all_dimregs_toggled(); |
296 |
gig::Instrument* get_instrument(); |
gig::Instrument* get_instrument(); |
463 |
void select_prev_dimension(); |
void select_prev_dimension(); |
464 |
void select_next_dimension(); |
void select_next_dimension(); |
465 |
|
|
466 |
Serialization::Archive m_serializationArchive; |
Serialization::Archive m_serializationArchive; ///< Clipboard content. |
467 |
|
std::vector<Serialization::Archive> m_macros; ///< User configured list of macros. |
468 |
|
|
469 |
void copy_selected_dimrgn(); |
void copy_selected_dimrgn(); |
470 |
void paste_copied_dimrgn(); |
void paste_copied_dimrgn(); |
471 |
|
void adjust_clipboard_content(); |
472 |
void updateClipboardCopyAvailable(); |
void updateClipboardCopyAvailable(); |
473 |
void updateClipboardPasteAvailable(); |
void updateClipboardPasteAvailable(); |
474 |
void on_clipboard_owner_change(GdkEventOwnerChange* event); |
void on_clipboard_owner_change(GdkEventOwnerChange* event); |