51 |
|
|
52 |
class MainWindow; |
class MainWindow; |
53 |
|
|
54 |
class PropDialog : public Gtk::Window, |
class PropDialog : public ManagedWindow, |
55 |
public PropEditor<DLS::Info> { |
public PropEditor<DLS::Info> { |
56 |
public: |
public: |
57 |
PropDialog(); |
PropDialog(); |
58 |
void set_info(DLS::Info* info); |
void set_info(DLS::Info* info); |
59 |
void set_file(gig::File* file); |
void set_file(gig::File* file); |
60 |
|
|
61 |
|
// implementation for abstract methods of interface class "ManagedWindow" |
62 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->filePropsWindowX; } |
63 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->filePropsWindowY; } |
64 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->filePropsWindowW; } |
65 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->filePropsWindowH; } |
66 |
|
|
67 |
protected: |
protected: |
68 |
ChoiceEntry<int> eFileFormat; |
ChoiceEntry<int> eFileFormat; |
69 |
StringEntry eName; |
StringEntry eName; |
92 |
void onFileFormatChanged(); |
void onFileFormatChanged(); |
93 |
}; |
}; |
94 |
|
|
95 |
class InstrumentProps : public Gtk::Window, |
class InstrumentProps : public ManagedWindow, |
96 |
public PropEditor<gig::Instrument> { |
public PropEditor<gig::Instrument> { |
97 |
public: |
public: |
98 |
InstrumentProps(); |
InstrumentProps(); |
102 |
sigc::signal<void>& signal_name_changed() { |
sigc::signal<void>& signal_name_changed() { |
103 |
return sig_name_changed; |
return sig_name_changed; |
104 |
} |
} |
105 |
|
|
106 |
|
// implementation for abstract methods of interface class "ManagedWindow" |
107 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->instrPropsWindowX; } |
108 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->instrPropsWindowY; } |
109 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->instrPropsWindowW; } |
110 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->instrPropsWindowH; } |
111 |
|
|
112 |
protected: |
protected: |
113 |
void set_Name(const gig::String& name); |
void set_Name(const gig::String& name); |
114 |
void set_IsDrum(bool value); |
void set_IsDrum(bool value); |
213 |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
214 |
|
|
215 |
sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument(); |
sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument(); |
216 |
|
|
217 |
|
sigc::signal<void, gig::Script*> signal_script_to_be_changed; |
218 |
|
sigc::signal<void, gig::Script*> signal_script_changed; |
219 |
|
|
220 |
// implementation for abstract methods of interface class "ManagedWindow" |
// implementation for abstract methods of interface class "ManagedWindow" |
221 |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; } |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; } |
222 |
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; } |
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; } |