1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2013-2014 Andreas Persson |
* Copyright (C) 2013-2016 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 |
41 |
|
|
42 |
#include "paramedit.h" |
#include "paramedit.h" |
43 |
#include "compat.h" |
#include "compat.h" |
44 |
|
#include "ManagedWindow.h" |
45 |
|
|
46 |
class MidiRuleCtrlTrigger : public Gtk::VBox, |
class MidiRuleCtrlTrigger : public Gtk::VBox, |
47 |
public PropEditor<gig::MidiRuleCtrlTrigger> { |
public PropEditor<gig::MidiRuleCtrlTrigger> { |
139 |
}; |
}; |
140 |
|
|
141 |
|
|
142 |
class MidiRules : public Gtk::Window, |
class MidiRules : public ManagedWindow, |
143 |
public PropEditor<gig::Instrument> { |
public PropEditor<gig::Instrument> { |
144 |
public: |
public: |
145 |
MidiRules(); |
MidiRules(); |
146 |
void set_instrument(gig::Instrument* instrument); |
void set_instrument(gig::Instrument* instrument); |
147 |
|
|
148 |
|
// implementation for abstract methods of interface class "ManagedWindow" |
149 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->midiRulesWindowX; } |
150 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->midiRulesWindowY; } |
151 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->midiRulesWindowW; } |
152 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->midiRulesWindowH; } |
153 |
|
|
154 |
protected: |
protected: |
155 |
enum { |
enum { |
156 |
NONE = 0, |
NONE = 0, |