/[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 2691 by schoenebeck, Sun Jan 4 19:46:54 2015 UTC revision 3364 by schoenebeck, Tue Nov 14 18:07:25 2017 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006 - 2015 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 "compat.h"
32    
33  #include <gtkmm/actiongroup.h>  #include <gtkmm/box.h>
34  #include <gtkmm/buttonbox.h>  #include <gtkmm/buttonbox.h>
35  #include <gtkmm/dialog.h>  #include <gtkmm/dialog.h>
36  #include <gtkmm/liststore.h>  #include <gtkmm/liststore.h>
# Line 32  Line 40 
40  #include <gtkmm/radiomenuitem.h>  #include <gtkmm/radiomenuitem.h>
41  #include <gtkmm/scrolledwindow.h>  #include <gtkmm/scrolledwindow.h>
42  #include <gtkmm/treestore.h>  #include <gtkmm/treestore.h>
43  #include <gtkmm/uimanager.h>  #include <gtkmm/treemodelfilter.h>
44  #include <gtkmm/window.h>  #include <gtkmm/window.h>
45  #include <gtkmm/statusbar.h>  #include <gtkmm/statusbar.h>
46  #include <gtkmm/image.h>  #include <gtkmm/image.h>
47    #include <gtkmm/entry.h>
48    #include <gtkmm/notebook.h>
49    
50    #if USE_GTKMM_BUILDER
51    # include <gtkmm/builder.h>
52    #else
53    # include <gtkmm/uimanager.h> // deprecated in gtkmm >= 3.21.4
54    #endif
55    
56  #include <sstream>  #include <sstream>
57    
# Line 46  Line 62 
62  #ifndef OLD_THREADS  #ifndef OLD_THREADS
63  #include <glibmm/threads.h>  #include <glibmm/threads.h>
64  #endif  #endif
65    #include "ManagedWindow.h"
66    
67  class MainWindow;  class MainWindow;
68    
69  class PropDialog : public Gtk::Window,  class PropDialog : public ManagedWindow,
70                     public PropEditor<DLS::Info> {                     public PropEditor<DLS::Info> {
71  public:  public:
72      PropDialog();      PropDialog();
73      void set_info(DLS::Info* info);      void set_info(DLS::Info* info);
74      void set_file(gig::File* file);      void set_file(gig::File* file);
75    
76        // implementation for abstract methods of interface class "ManagedWindow"
77        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->filePropsWindowX; }
78        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->filePropsWindowY; }
79        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->filePropsWindowW; }
80        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->filePropsWindowH; }
81    
82  protected:  protected:
83      ChoiceEntry<int> eFileFormat;      ChoiceEntry<int> eFileFormat;
84      StringEntry eName;      StringEntry eName;
# Line 73  protected: Line 97  protected:
97      StringEntry eSourceForm;      StringEntry eSourceForm;
98      StringEntry eCommissioned;      StringEntry eCommissioned;
99      StringEntry eSubject;      StringEntry eSubject;
100      Gtk::VBox vbox;      VBox vbox;
101      Gtk::HButtonBox buttonBox;      HButtonBox buttonBox;
102      Gtk::Button quitButton;      Gtk::Button quitButton;
103      Table table;      Table table;
104    
# Line 83  protected: Line 107  protected:
107      void onFileFormatChanged();      void onFileFormatChanged();
108  };  };
109    
110  class InstrumentProps : public Gtk::Window,  class InstrumentProps : public ManagedWindow,
111                          public PropEditor<gig::Instrument> {                          public PropEditor<gig::Instrument> {
112  public:  public:
113      InstrumentProps();      InstrumentProps();
# Line 93  public: Line 117  public:
117      sigc::signal<void>& signal_name_changed() {      sigc::signal<void>& signal_name_changed() {
118          return sig_name_changed;          return sig_name_changed;
119      }      }
120    
121        // implementation for abstract methods of interface class "ManagedWindow"
122        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->instrPropsWindowX; }
123        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->instrPropsWindowY; }
124        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->instrPropsWindowW; }
125        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->instrPropsWindowH; }
126    
127  protected:  protected:
128      void set_Name(const gig::String& name);      void set_Name(const gig::String& name);
129      void set_IsDrum(bool value);      void set_IsDrum(bool value);
# Line 100  protected: Line 131  protected:
131      void set_MIDIProgram(uint32_t value);      void set_MIDIProgram(uint32_t value);
132    
133      sigc::signal<void> sig_name_changed;      sigc::signal<void> sig_name_changed;
134      Gtk::VBox vbox;      VBox vbox;
135      Gtk::HButtonBox buttonBox;      HButtonBox buttonBox;
136      Gtk::Button quitButton;      Gtk::Button quitButton;
137      Table table;      Table table;
138      StringEntry eName;      StringEntry eName;
# Line 172  private: Line 203  private:
203      float progress;      float progress;
204  };  };
205    
206  class MainWindow : public Gtk::Window {  class MainWindow : public ManagedWindow {
207  public:  public:
208      MainWindow();      MainWindow();
209      virtual ~MainWindow();      virtual ~MainWindow();
# Line 198  public: Line 229  public:
229    
230      sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();      sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();
231    
232        sigc::signal<void, gig::Script*> signal_script_to_be_changed;
233        sigc::signal<void, gig::Script*> signal_script_changed;
234    
235        // implementation for abstract methods of interface class "ManagedWindow"
236        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; }
237        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; }
238        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->mainWindowW; }
239        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->mainWindowH; }
240    
241  protected:  protected:
242    #if USE_GTKMM_BUILDER
243        Glib::RefPtr<Gio::SimpleActionGroup> m_actionGroup;
244        Glib::RefPtr<Gtk::Builder> m_uiManager;
245    #else
246      Glib::RefPtr<Gtk::ActionGroup> actionGroup;      Glib::RefPtr<Gtk::ActionGroup> actionGroup;
247      Glib::RefPtr<Gtk::UIManager> uiManager;      Glib::RefPtr<Gtk::UIManager> uiManager;
248    #endif
249    
250    #if USE_GLIB_ACTION
251        Glib::RefPtr<Gio::SimpleAction> m_actionMIDIRules;
252    
253        Glib::RefPtr<Gio::SimpleAction> m_actionCopyDimRgn;
254        Glib::RefPtr<Gio::SimpleAction> m_actionPasteDimRgn;
255        Glib::RefPtr<Gio::SimpleAction> m_actionAdjustClipboard;
256    
257        Glib::RefPtr<Gio::SimpleAction> m_actionSampleProperties;
258        Glib::RefPtr<Gio::SimpleAction> m_actionAddSample;
259        Glib::RefPtr<Gio::SimpleAction> m_actionRemoveSample;
260        Glib::RefPtr<Gio::SimpleAction> m_actionViewSampleRefs;
261        Glib::RefPtr<Gio::SimpleAction> m_actionReplaceSample;
262        Glib::RefPtr<Gio::SimpleAction> m_actionAddSampleGroup;
263    
264        Glib::RefPtr<Gio::SimpleAction> m_actionAddScriptGroup;
265        Glib::RefPtr<Gio::SimpleAction> m_actionAddScript;
266        Glib::RefPtr<Gio::SimpleAction> m_actionEditScript;
267        Glib::RefPtr<Gio::SimpleAction> m_actionRemoveScript;
268    
269        Glib::RefPtr<Gio::SimpleAction> m_actionToggleCopySampleUnity;
270        Glib::RefPtr<Gio::SimpleAction> m_actionToggleCopySampleTune;
271        Glib::RefPtr<Gio::SimpleAction> m_actionToggleCopySampleLoop;
272        Glib::RefPtr<Gio::SimpleAction> m_actionToggleStatusBar;
273        Glib::RefPtr<Gio::SimpleAction> m_actionToggleRestoreWinDim;
274        Glib::RefPtr<Gio::SimpleAction> m_actionToggleSaveWithTempFile;
275        Glib::RefPtr<Gio::SimpleAction> m_actionToggleWarnOnExtensions;
276        Glib::RefPtr<Gio::SimpleAction> m_actionToggleSyncSamplerSelection;
277        Glib::RefPtr<Gio::SimpleAction> m_actionToggleMoveRootNoteWithRegion;
278    #endif
279    
280      Gtk::Statusbar m_StatusBar;      Gtk::Statusbar m_StatusBar;
281      Gtk::Label     m_AttachedStateLabel;      Gtk::Label     m_AttachedStateLabel;
# Line 213  protected: Line 288  protected:
288      InstrumentProps instrumentProps;      InstrumentProps instrumentProps;
289      MidiRules midiRules;      MidiRules midiRules;
290    
291        /**
292         * Ensures that the 2 signals MainWindow::dimreg_to_be_changed_signal and
293         * MainWindowv::dimreg_changed_signal are always triggered correctly as a
294         * pair. It behaves similar to a "mutex lock guard" design pattern.
295         */
296        class DimRegionChangeGuard : public SignalGuard<gig::DimensionRegion*> {
297        public:
298            DimRegionChangeGuard(MainWindow* w, gig::DimensionRegion* pDimReg) :
299            SignalGuard<gig::DimensionRegion*>(w->dimreg_to_be_changed_signal, w->dimreg_changed_signal, pDimReg)
300            {
301            }
302        };
303    
304      sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;      sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;
305      sigc::signal<void, gig::File*> file_structure_changed_signal;      sigc::signal<void, gig::File*> file_structure_changed_signal;
306      sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal;      sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal;
# Line 229  protected: Line 317  protected:
317    
318      sigc::signal<void, gig::Instrument*> switch_sampler_instrument_signal;      sigc::signal<void, gig::Instrument*> switch_sampler_instrument_signal;
319    
320    #if !USE_GTKMM_BUILDER
321      void on_instrument_selection_change(Gtk::RadioMenuItem* item);      void on_instrument_selection_change(Gtk::RadioMenuItem* item);
322    #endif
323      void on_sel_change();      void on_sel_change();
324      void region_changed();      void region_changed();
325      void dimreg_changed();      void dimreg_changed();
326        void select_instrument(gig::Instrument* instrument);
327        bool select_dimension_region(gig::DimensionRegion* dimRgn);
328      void select_sample(gig::Sample* sample);      void select_sample(gig::Sample* sample);
329      void on_loader_progress();      void on_loader_progress();
330      void on_loader_finished();      void on_loader_finished();
# Line 240  protected: Line 332  protected:
332      void on_saver_progress();      void on_saver_progress();
333      void on_saver_error();      void on_saver_error();
334      void on_saver_finished();      void on_saver_finished();
335        void updateMacroMenu();
336        void onMacroSelected(int iMacro);
337        void setupMacros();
338        void onMacrosSetupChanged(const std::vector<Serialization::Archive>& macros);
339        void applyMacro(Serialization::Archive& macro);
340        void onScriptSlotsModified(gig::Instrument* pInstrument);
341        void bringToFront();
342    
343      void dimreg_all_dimregs_toggled();      void dimreg_all_dimregs_toggled();
344      gig::Instrument* get_instrument();      gig::Instrument* get_instrument();
# Line 249  protected: Line 348  protected:
348      class ModelColumns : public Gtk::TreeModel::ColumnRecord {      class ModelColumns : public Gtk::TreeModel::ColumnRecord {
349      public:      public:
350          ModelColumns() {          ModelColumns() {
351              add(m_col_nr);
352            add(m_col_name);            add(m_col_name);
353            add(m_col_instr);            add(m_col_instr);
354              add(m_col_scripts);
355          }          }
356    
357            Gtk::TreeModelColumn<int> m_col_nr;
358          Gtk::TreeModelColumn<Glib::ustring> m_col_name;          Gtk::TreeModelColumn<Glib::ustring> m_col_name;
359          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;
360            Gtk::TreeModelColumn<Glib::ustring> m_col_scripts;
361      } m_Columns;      } m_Columns;
362    
363      Gtk::VBox m_VBox;      VBox m_VBox;
364      Gtk::HPaned m_HPaned;      Gtk::HPaned m_HPaned;
365    
366      Gtk::ScrolledWindow m_ScrolledWindow;      Gtk::ScrolledWindow m_ScrolledWindow;
367    
368      Gtk::TreeView m_TreeView;      Gtk::TreeView m_TreeView;
369      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
370        Glib::RefPtr<Gtk::TreeModelFilter> m_refTreeModelFilter; //FIXME: I really would love to get rid of TreeModelFilter, because it causes behavior conflicts with get_model() all over the place (see the respective comments regarding get_model()), however I found no other way to filter a treeview effectively.
371    
372      Gtk::Menu* instrument_menu;  #if USE_GTKMM_BUILDER
373        Gtk::Menu* menuMacro;
374    #else
375        Gtk::Menu* instrument_menu; // kept for GTKMM 2 version only, will be completely removed in future
376    #endif
377        Gtk::Menu* assign_scripts_menu;
378    
379      std::map<gig::Sample*,int> sample_ref_count;      std::map<gig::Sample*,int> sample_ref_count;
380    
# Line 325  protected: Line 434  protected:
434      Gtk::TreeView m_TreeViewScripts;      Gtk::TreeView m_TreeViewScripts;
435      Glib::RefPtr<ScriptsTreeStore> m_refScriptsTreeModel;      Glib::RefPtr<ScriptsTreeStore> m_refScriptsTreeModel;
436    
437      Gtk::VBox dimreg_vbox;      VBox dimreg_vbox;
438      Gtk::HBox dimreg_hbox;      HBox dimreg_hbox;
439      Gtk::Label dimreg_label;      Gtk::Label dimreg_label;
440      Gtk::CheckButton dimreg_all_regions;      Gtk::CheckButton dimreg_all_regions;
441      Gtk::CheckButton dimreg_all_dimregs;      Gtk::CheckButton dimreg_all_dimregs;
442      Gtk::CheckButton dimreg_stereo;      Gtk::CheckButton dimreg_stereo;
443    
444        HBox legend_hbox;
445        Gtk::Label labelLegend;
446        Gtk::Image imageNoSample;
447        Gtk::Label labelNoSample;
448        Gtk::Image imageMissingSample;
449        Gtk::Label labelMissingSample;
450        Gtk::Image imageLooped;
451        Gtk::Label labelLooped;
452        Gtk::Image imageSomeLoops;
453        Gtk::Label labelSomeLoops;
454      DimRegionEdit dimreg_edit;      DimRegionEdit dimreg_edit;
455    
456        VBox m_left_vbox;
457      Gtk::Notebook m_TreeViewNotebook;      Gtk::Notebook m_TreeViewNotebook;
458        HBox m_searchField;
459        Gtk::Label m_searchLabel;
460        Gtk::Entry m_searchText;
461    
462      struct SampleImportItem {      struct SampleImportItem {
463          gig::Sample*  gig_sample;  // pointer to the gig::Sample to          gig::Sample*  gig_sample;  // pointer to the gig::Sample to
# Line 342  protected: Line 466  protected:
466          Glib::ustring sample_path; // file name of the sample to be          Glib::ustring sample_path; // file name of the sample to be
467                                     // imported                                     // imported
468      };      };
469      std::list<SampleImportItem> m_SampleImportQueue;      std::map<gig::Sample*, SampleImportItem> m_SampleImportQueue;
470    
471    
472      void on_action_file_new();      void on_action_file_new();
# Line 356  protected: Line 480  protected:
480      void show_midi_rules();      void show_midi_rules();
481      void show_script_slots();      void show_script_slots();
482      void on_action_view_status_bar();      void on_action_view_status_bar();
483        void on_auto_restore_win_dim();
484        void on_save_with_temporary_file();
485        void on_action_refresh_all();
486      void on_action_warn_user_on_extensions();      void on_action_warn_user_on_extensions();
487      void on_action_sync_sampler_instrument_selection();      void on_action_sync_sampler_instrument_selection();
488        void on_action_move_root_note_with_region_moved();
489      void on_action_help_about();      void on_action_help_about();
490    
491        void on_notebook_tab_switched(void* page, guint page_num);
492    
493      // sample right-click popup actions      // sample right-click popup actions
494    #if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && (GTKMM_MINOR_VERSION > 91 || (GTKMM_MINOR_VERSION == 91 && GTKMM_MICRO_VERSION >= 2))) // GTKMM >= 3.91.2
495        bool on_sample_treeview_button_release(Gdk::EventButton& button);
496    #else
497      void on_sample_treeview_button_release(GdkEventButton* button);      void on_sample_treeview_button_release(GdkEventButton* button);
498    #endif
499      void on_action_sample_properties();      void on_action_sample_properties();
500      void on_action_add_group();      void on_action_add_group();
501      void on_action_add_sample();      void on_action_add_sample();
502        void on_action_replace_sample();
503      void on_action_replace_all_samples_in_all_groups();      void on_action_replace_all_samples_in_all_groups();
504      void on_action_remove_sample();      void on_action_remove_sample();
505            void on_action_remove_unused_samples();
506    
507      // script right-click popup actions      // script right-click popup actions
508    #if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && (GTKMM_MINOR_VERSION > 91 || (GTKMM_MINOR_VERSION == 91 && GTKMM_MICRO_VERSION >= 2))) // GTKMM >= 3.91.2
509        bool on_script_treeview_button_release(Gdk::EventButton& button);
510    #else
511      void on_script_treeview_button_release(GdkEventButton* button);      void on_script_treeview_button_release(GdkEventButton* button);
512    #endif
513      void on_action_add_script_group();      void on_action_add_script_group();
514      void on_action_add_script();      void on_action_add_script();
515      void on_action_edit_script();      void on_action_edit_script();
# Line 383  protected: Line 523  protected:
523      void show_intruments_tab();      void show_intruments_tab();
524      void show_scripts_tab();      void show_scripts_tab();
525    
526        void select_prev_instrument();
527        void select_next_instrument();
528        void select_instrument_by_dir(int dir);
529    
530        void select_prev_region();
531        void select_next_region();
532    
533        void select_next_dim_rgn_zone();
534        void select_prev_dim_rgn_zone();
535        void select_add_next_dim_rgn_zone();
536        void select_add_prev_dim_rgn_zone();
537        void select_prev_dimension();
538        void select_next_dimension();
539    
540        Serialization::Archive m_serializationArchive; ///< Clipboard content.
541        std::vector<Serialization::Archive> m_macros; ///< User configured list of macros.
542    
543        void copy_selected_dimrgn();
544        void paste_copied_dimrgn();
545        void adjust_clipboard_content();
546        void updateClipboardCopyAvailable();
547        void updateClipboardPasteAvailable();
548    #if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && (GTKMM_MINOR_VERSION > 91 || (GTKMM_MINOR_VERSION == 91 && GTKMM_MICRO_VERSION >= 2))) // GTKMM >= 3.91.2
549        void on_clipboard_owner_change(Gdk::EventOwnerChange& event);
550    #else
551        void on_clipboard_owner_change(GdkEventOwnerChange* event);
552    #endif
553        void on_clipboard_get(Gtk::SelectionData& selection_data, guint info);
554        void on_clipboard_clear();
555        void on_clipboard_received(const Gtk::SelectionData& selection_data);
556        void on_clipboard_received_targets(const std::vector<Glib::ustring>& targets);
557    
558      void add_instrument(gig::Instrument* instrument);      void add_instrument(gig::Instrument* instrument);
559    #if !USE_GTKMM_BUILDER
560      Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name,      Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name,
561                                                 int position = -1);                                                 int position = -1);
562      void remove_instrument_from_menu(int index);      void remove_instrument_from_menu(int index);
563    #endif
564    
565      ProgressDialog* progress_dialog;      ProgressDialog* progress_dialog;
566      Loader* loader;      Loader* loader;
# Line 408  protected: Line 582  protected:
582      bool file_save_as();      bool file_save_as();
583      bool check_if_savable();      bool check_if_savable();
584    
585    #if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && (GTKMM_MINOR_VERSION > 91 || (GTKMM_MINOR_VERSION == 91 && GTKMM_MICRO_VERSION >= 2))) // GTKMM >= 3.91.2
586        bool on_button_release(Gdk::EventButton& button);
587    #else
588      void on_button_release(GdkEventButton* button);      void on_button_release(GdkEventButton* button);
589    #endif
590        void on_instruments_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
591        void on_instruments_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
592                                                   Gtk::SelectionData& selection_data, guint, guint);
593        void on_instruments_treeview_drop_drag_data_received(
594            const Glib::RefPtr<Gdk::DragContext>& context, int, int,
595            const Gtk::SelectionData& selection_data, guint, guint time
596        );
597      void on_scripts_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);      void on_scripts_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
598      void on_scripts_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,      void on_scripts_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
599                                             Gtk::SelectionData& selection_data, guint, guint);                                             Gtk::SelectionData& selection_data, guint, guint);
# Line 428  protected: Line 613  protected:
613      void instrument_name_changed(const Gtk::TreeModel::Path& path,      void instrument_name_changed(const Gtk::TreeModel::Path& path,
614                                   const Gtk::TreeModel::iterator& iter);                                   const Gtk::TreeModel::iterator& iter);
615      void instr_name_changed_by_instr_props(Gtk::TreeModel::iterator& it);      void instr_name_changed_by_instr_props(Gtk::TreeModel::iterator& it);
616        bool instrument_row_visible(const Gtk::TreeModel::const_iterator& iter);
617      sigc::connection instrument_name_connection;      sigc::connection instrument_name_connection;
618    
619      void on_action_combine_instruments();      void on_action_combine_instruments();
# Line 439  protected: Line 625  protected:
625      void on_sample_ref_count_incremented(gig::Sample* sample, int offset);      void on_sample_ref_count_incremented(gig::Sample* sample, int offset);
626      void on_samples_to_be_removed(std::list<gig::Sample*> samples);      void on_samples_to_be_removed(std::list<gig::Sample*> samples);
627    
628        void add_or_replace_sample(bool replace);
629    
630      void __import_queued_samples();      void __import_queued_samples();
631      void __clear();      void __clear();
632      void __refreshEntireGUI();      void __refreshEntireGUI();
633        void updateScriptListOfMenu();
634        void assignScript(gig::Script* pScript);
635    
636      bool close_confirmation_dialog();      bool close_confirmation_dialog();
637      bool leaving_shared_mode_dialog();      bool leaving_shared_mode_dialog();
638    
639      Gtk::Menu* popup_menu;      Gtk::Menu* popup_menu;
640    #if USE_GTKMM_BUILDER
641        Gtk::Menu* sample_popup;
642        Gtk::Menu* script_popup;
643    #endif
644    
645      bool on_delete_event(GdkEventAny* event);      bool on_delete_event(GdkEventAny* event);
646    

Legend:
Removed from v.2691  
changed lines
  Added in v.3364

  ViewVC Help
Powered by ViewVC