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