/[svn]/gigedit/trunk/src/gigedit/mainwindow.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2894 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC revision 3144 by schoenebeck, Wed May 3 19:00:11 2017 UTC
# Line 1  Line 1 
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
# Line 20  Line 20 
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    # include LIBGIG_HEADER_FILE(serialization.h)
26    #else
27    # include <gig.h>
28    # include <serialization.h>
29    #endif
30    
31  #include <gtkmm/box.h>  #include <gtkmm/box.h>
32  #include <gtkmm/actiongroup.h>  #include <gtkmm/actiongroup.h>
# Line 213  public: Line 219  public:
219      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();
220    
221      sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();      sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();
222        
223        sigc::signal<void, gig::Script*> signal_script_to_be_changed;
224        sigc::signal<void, gig::Script*> signal_script_changed;
225    
226      // implementation for abstract methods of interface class "ManagedWindow"      // implementation for abstract methods of interface class "ManagedWindow"
227      virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; }      virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; }
228      virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; }      virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; }
# Line 273  protected: Line 282  protected:
282      class ModelColumns : public Gtk::TreeModel::ColumnRecord {      class ModelColumns : public Gtk::TreeModel::ColumnRecord {
283      public:      public:
284          ModelColumns() {          ModelColumns() {
285              add(m_col_nr);
286            add(m_col_name);            add(m_col_name);
287            add(m_col_instr);            add(m_col_instr);
288          }          }
289    
290            Gtk::TreeModelColumn<int> m_col_nr;
291          Gtk::TreeModelColumn<Glib::ustring> m_col_name;          Gtk::TreeModelColumn<Glib::ustring> m_col_name;
292          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;
293      } m_Columns;      } m_Columns;
# Line 355  protected: Line 366  protected:
366      Gtk::CheckButton dimreg_all_regions;      Gtk::CheckButton dimreg_all_regions;
367      Gtk::CheckButton dimreg_all_dimregs;      Gtk::CheckButton dimreg_all_dimregs;
368      Gtk::CheckButton dimreg_stereo;      Gtk::CheckButton dimreg_stereo;
369    
370        Gtk::HBox legend_hbox;
371        Gtk::Label labelLegend;
372        Gtk::Image imageNoSample;
373        Gtk::Label labelNoSample;
374        Gtk::Image imageMissingSample;
375        Gtk::Label labelMissingSample;
376        Gtk::Image imageLooped;
377        Gtk::Label labelLooped;
378        Gtk::Image imageSomeLoops;
379        Gtk::Label labelSomeLoops;
380      DimRegionEdit dimreg_edit;      DimRegionEdit dimreg_edit;
381    
382      Gtk::Notebook m_TreeViewNotebook;      Gtk::Notebook m_TreeViewNotebook;
# Line 366  protected: Line 388  protected:
388          Glib::ustring sample_path; // file name of the sample to be          Glib::ustring sample_path; // file name of the sample to be
389                                     // imported                                     // imported
390      };      };
391      std::list<SampleImportItem> m_SampleImportQueue;      std::map<gig::Sample*, SampleImportItem> m_SampleImportQueue;
392    
393    
394      void on_action_file_new();      void on_action_file_new();
# Line 380  protected: Line 402  protected:
402      void show_midi_rules();      void show_midi_rules();
403      void show_script_slots();      void show_script_slots();
404      void on_action_view_status_bar();      void on_action_view_status_bar();
405        void on_auto_restore_win_dim();
406        void on_save_with_temporary_file();
407      void on_action_refresh_all();      void on_action_refresh_all();
408      void on_action_warn_user_on_extensions();      void on_action_warn_user_on_extensions();
409      void on_action_sync_sampler_instrument_selection();      void on_action_sync_sampler_instrument_selection();
# Line 411  protected: Line 435  protected:
435      void show_intruments_tab();      void show_intruments_tab();
436      void show_scripts_tab();      void show_scripts_tab();
437    
438        void select_prev_region();
439        void select_next_region();
440    
441        void select_next_dim_rgn_zone();
442        void select_prev_dim_rgn_zone();
443        void select_add_next_dim_rgn_zone();
444        void select_add_prev_dim_rgn_zone();
445        void select_prev_dimension();
446        void select_next_dimension();
447    
448        Serialization::Archive m_serializationArchive;
449    
450        void copy_selected_dimrgn();
451        void paste_copied_dimrgn();
452        void updateClipboardCopyAvailable();
453        void updateClipboardPasteAvailable();
454        void on_clipboard_owner_change(GdkEventOwnerChange* event);
455        void on_clipboard_get(Gtk::SelectionData& selection_data, guint info);
456        void on_clipboard_clear();
457        void on_clipboard_received(const Gtk::SelectionData& selection_data);
458        void on_clipboard_received_targets(const std::vector<Glib::ustring>& targets);
459    
460      void add_instrument(gig::Instrument* instrument);      void add_instrument(gig::Instrument* instrument);
461      Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name,      Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name,
462                                                 int position = -1);                                                 int position = -1);

Legend:
Removed from v.2894  
changed lines
  Added in v.3144

  ViewVC Help
Powered by ViewVC