1 |
/* |
/* |
2 |
Copyright (c) 2014 Christian Schoenebeck |
Copyright (c) 2014-2017 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. |
8 |
#ifndef GIGEDIT_COMBINEINSTRUMENTSDIALOG |
#ifndef GIGEDIT_COMBINEINSTRUMENTSDIALOG |
9 |
#define GIGEDIT_COMBINEINSTRUMENTSDIALOG |
#define GIGEDIT_COMBINEINSTRUMENTSDIALOG |
10 |
|
|
11 |
#include <gig.h> |
#ifdef LIBGIG_HEADER_FILE |
12 |
|
# include LIBGIG_HEADER_FILE(gig.h) |
13 |
|
#else |
14 |
|
# include <gig.h> |
15 |
|
#endif |
16 |
|
|
17 |
#include <gtkmm/buttonbox.h> |
#include <gtkmm/buttonbox.h> |
18 |
#include <gtkmm/window.h> |
#include <gtkmm/window.h> |
24 |
#include <gtkmm/scrolledwindow.h> |
#include <gtkmm/scrolledwindow.h> |
25 |
|
|
26 |
#include "wrapLabel.hh" |
#include "wrapLabel.hh" |
27 |
|
#include "ManagedWindow.h" |
28 |
|
|
29 |
/** |
/** |
30 |
* @brief Modal dialog which allows to merge instruments. |
* @brief Modal dialog which allows to merge instruments. |
36 |
* If the user successfully combined instruments in this dialog, then |
* If the user successfully combined instruments in this dialog, then |
37 |
* newCombinedInstrument() will return a pointer to that new instrument. |
* newCombinedInstrument() will return a pointer to that new instrument. |
38 |
*/ |
*/ |
39 |
class CombineInstrumentsDialog : public Gtk::Dialog { |
class CombineInstrumentsDialog : public ManagedDialog { |
40 |
public: |
public: |
41 |
CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig); |
CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig); |
42 |
bool fileWasChanged() const; |
bool fileWasChanged() const; |
43 |
gig::Instrument* newCombinedInstrument() const; |
gig::Instrument* newCombinedInstrument() const; |
44 |
|
|
45 |
|
// implementation for abstract methods of interface class "ManagedDialog" |
46 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->combineInstrumentsWindowX; } |
47 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->combineInstrumentsWindowY; } |
48 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->combineInstrumentsWindowW; } |
49 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->combineInstrumentsWindowH; } |
50 |
|
|
51 |
protected: |
protected: |
52 |
gig::File* m_gig; |
gig::File* m_gig; |
53 |
bool m_fileWasChanged; |
bool m_fileWasChanged; |