1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2006 - 2016 Andreas Persson |
* Copyright (C) 2006 - 2017 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 |
20 |
#ifndef GIGEDIT_MAINWINDOW_H |
#ifndef GIGEDIT_MAINWINDOW_H |
21 |
#define GIGEDIT_MAINWINDOW_H |
#define GIGEDIT_MAINWINDOW_H |
22 |
|
|
23 |
#include <gig.h> |
#ifdef LIBGIG_HEADER_FILE |
24 |
|
# include LIBGIG_HEADER_FILE(gig.h) |
25 |
|
#else |
26 |
|
# include <gig.h> |
27 |
|
#endif |
28 |
|
|
29 |
#include <gtkmm/box.h> |
#include <gtkmm/box.h> |
30 |
#include <gtkmm/actiongroup.h> |
#include <gtkmm/actiongroup.h> |
217 |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
218 |
|
|
219 |
sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument(); |
sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument(); |
220 |
|
|
221 |
|
sigc::signal<void, gig::Script*> signal_script_to_be_changed; |
222 |
|
sigc::signal<void, gig::Script*> signal_script_changed; |
223 |
|
|
224 |
// implementation for abstract methods of interface class "ManagedWindow" |
// implementation for abstract methods of interface class "ManagedWindow" |
225 |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; } |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; } |
226 |
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; } |
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; } |
280 |
class ModelColumns : public Gtk::TreeModel::ColumnRecord { |
class ModelColumns : public Gtk::TreeModel::ColumnRecord { |
281 |
public: |
public: |
282 |
ModelColumns() { |
ModelColumns() { |
283 |
|
add(m_col_nr); |
284 |
add(m_col_name); |
add(m_col_name); |
285 |
add(m_col_instr); |
add(m_col_instr); |
286 |
} |
} |
287 |
|
|
288 |
|
Gtk::TreeModelColumn<int> m_col_nr; |
289 |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
290 |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
291 |
} m_Columns; |
} m_Columns; |
364 |
Gtk::CheckButton dimreg_all_regions; |
Gtk::CheckButton dimreg_all_regions; |
365 |
Gtk::CheckButton dimreg_all_dimregs; |
Gtk::CheckButton dimreg_all_dimregs; |
366 |
Gtk::CheckButton dimreg_stereo; |
Gtk::CheckButton dimreg_stereo; |
367 |
|
|
368 |
|
Gtk::HBox legend_hbox; |
369 |
|
Gtk::Image imageNoSample; |
370 |
|
Gtk::Label labelNoSample; |
371 |
|
Gtk::Image imageMissingSample; |
372 |
|
Gtk::Label labelMissingSample; |
373 |
|
Gtk::Image imageLooped; |
374 |
|
Gtk::Label labelLooped; |
375 |
|
Gtk::Image imageSomeLoops; |
376 |
|
Gtk::Label labelSomeLoops; |
377 |
DimRegionEdit dimreg_edit; |
DimRegionEdit dimreg_edit; |
378 |
|
|
379 |
Gtk::Notebook m_TreeViewNotebook; |
Gtk::Notebook m_TreeViewNotebook; |
399 |
void show_midi_rules(); |
void show_midi_rules(); |
400 |
void show_script_slots(); |
void show_script_slots(); |
401 |
void on_action_view_status_bar(); |
void on_action_view_status_bar(); |
402 |
|
void on_auto_restore_win_dim(); |
403 |
|
void on_save_with_temporary_file(); |
404 |
void on_action_refresh_all(); |
void on_action_refresh_all(); |
405 |
void on_action_warn_user_on_extensions(); |
void on_action_warn_user_on_extensions(); |
406 |
void on_action_sync_sampler_instrument_selection(); |
void on_action_sync_sampler_instrument_selection(); |