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. |
12 |
#include <gtkmm.h> |
#include <gtkmm.h> |
13 |
#include "compat.h" |
#include "compat.h" |
14 |
#include <vector> |
#include <vector> |
15 |
|
#include "Settings.h" |
16 |
|
#include "ManagedWindow.h" |
17 |
|
|
18 |
class ScriptSlots : public Gtk::Window { |
class ScriptSlots : public ManagedWindow { |
19 |
public: |
public: |
20 |
ScriptSlots(); |
ScriptSlots(); |
21 |
~ScriptSlots(); |
~ScriptSlots(); |
22 |
void setInstrument(gig::Instrument* instrument); |
void setInstrument(gig::Instrument* instrument); |
23 |
|
|
24 |
|
// implementation for abstract methods of interface class "ManagedWindow" |
25 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->scriptSlotsWindowX; } |
26 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->scriptSlotsWindowY; } |
27 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->scriptSlotsWindowW; } |
28 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->scriptSlotsWindowH; } |
29 |
|
|
30 |
protected: |
protected: |
31 |
struct Row { |
struct Row { |
32 |
int id; |
int id; |