1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2006 - 2015 Andreas Persson |
* Copyright (C) 2006 - 2016 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
47 |
#ifndef OLD_THREADS |
#ifndef OLD_THREADS |
48 |
#include <glibmm/threads.h> |
#include <glibmm/threads.h> |
49 |
#endif |
#endif |
50 |
|
#include "ManagedWindow.h" |
51 |
|
|
52 |
class MainWindow; |
class MainWindow; |
53 |
|
|
174 |
float progress; |
float progress; |
175 |
}; |
}; |
176 |
|
|
177 |
class MainWindow : public Gtk::Window { |
class MainWindow : public ManagedWindow { |
178 |
public: |
public: |
179 |
MainWindow(); |
MainWindow(); |
180 |
virtual ~MainWindow(); |
virtual ~MainWindow(); |
199 |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
200 |
|
|
201 |
sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument(); |
sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument(); |
202 |
|
|
203 |
|
// implementation for abstract methods of interface class "ManagedWindow" |
204 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; } |
205 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; } |
206 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->mainWindowW; } |
207 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->mainWindowH; } |
208 |
|
|
209 |
protected: |
protected: |
210 |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |