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> |
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::Label labelLegend; |
370 |
|
Gtk::Image imageNoSample; |
371 |
|
Gtk::Label labelNoSample; |
372 |
|
Gtk::Image imageMissingSample; |
373 |
|
Gtk::Label labelMissingSample; |
374 |
|
Gtk::Image imageLooped; |
375 |
|
Gtk::Label labelLooped; |
376 |
|
Gtk::Image imageSomeLoops; |
377 |
|
Gtk::Label labelSomeLoops; |
378 |
DimRegionEdit dimreg_edit; |
DimRegionEdit dimreg_edit; |
379 |
|
|
380 |
Gtk::Notebook m_TreeViewNotebook; |
Gtk::Notebook m_TreeViewNotebook; |
386 |
Glib::ustring sample_path; // file name of the sample to be |
Glib::ustring sample_path; // file name of the sample to be |
387 |
// imported |
// imported |
388 |
}; |
}; |
389 |
std::list<SampleImportItem> m_SampleImportQueue; |
std::map<gig::Sample*, SampleImportItem> m_SampleImportQueue; |
390 |
|
|
391 |
|
|
392 |
void on_action_file_new(); |
void on_action_file_new(); |
433 |
void show_intruments_tab(); |
void show_intruments_tab(); |
434 |
void show_scripts_tab(); |
void show_scripts_tab(); |
435 |
|
|
436 |
|
void select_prev_region(); |
437 |
|
void select_next_region(); |
438 |
|
|
439 |
|
void select_next_dim_rgn_zone(); |
440 |
|
void select_prev_dim_rgn_zone(); |
441 |
|
void select_add_next_dim_rgn_zone(); |
442 |
|
void select_add_prev_dim_rgn_zone(); |
443 |
|
void select_prev_dimension(); |
444 |
|
void select_next_dimension(); |
445 |
|
|
446 |
void add_instrument(gig::Instrument* instrument); |
void add_instrument(gig::Instrument* instrument); |
447 |
Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name, |
Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name, |
448 |
int position = -1); |
int position = -1); |