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; |