1 |
/* |
/* |
2 |
Copyright (c) 2014 Christian Schoenebeck |
Copyright (c) 2014-2016 Christian Schoenebeck |
3 |
|
|
4 |
This file is part of "gigedit" and released under the terms of the |
This file is part of "gigedit" and released under the terms of the |
5 |
GNU General Public License version 2. |
GNU General Public License version 2. |
20 |
#include <gtkmm/scrolledwindow.h> |
#include <gtkmm/scrolledwindow.h> |
21 |
|
|
22 |
#include "wrapLabel.hh" |
#include "wrapLabel.hh" |
23 |
|
#include "ManagedWindow.h" |
24 |
|
|
25 |
/** |
/** |
26 |
* @brief Modal dialog which allows to merge instruments. |
* @brief Modal dialog which allows to merge instruments. |
32 |
* If the user successfully combined instruments in this dialog, then |
* If the user successfully combined instruments in this dialog, then |
33 |
* newCombinedInstrument() will return a pointer to that new instrument. |
* newCombinedInstrument() will return a pointer to that new instrument. |
34 |
*/ |
*/ |
35 |
class CombineInstrumentsDialog : public Gtk::Dialog { |
class CombineInstrumentsDialog : public ManagedDialog { |
36 |
public: |
public: |
37 |
CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig); |
CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig); |
38 |
bool fileWasChanged() const; |
bool fileWasChanged() const; |
39 |
gig::Instrument* newCombinedInstrument() const; |
gig::Instrument* newCombinedInstrument() const; |
40 |
|
|
41 |
|
// implementation for abstract methods of interface class "ManagedDialog" |
42 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->combineInstrumentsWindowX; } |
43 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->combineInstrumentsWindowY; } |
44 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->combineInstrumentsWindowW; } |
45 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->combineInstrumentsWindowH; } |
46 |
|
|
47 |
protected: |
protected: |
48 |
gig::File* m_gig; |
gig::File* m_gig; |
49 |
bool m_fileWasChanged; |
bool m_fileWasChanged; |