/[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 1725 by persson, Sat Apr 26 08:52:15 2008 UTC revision 2894 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006 - 2008 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
# Line 22  Line 22 
22    
23  #include <gig.h>  #include <gig.h>
24    
25    #include <gtkmm/box.h>
26  #include <gtkmm/actiongroup.h>  #include <gtkmm/actiongroup.h>
27  #include <gtkmm/buttonbox.h>  #include <gtkmm/buttonbox.h>
28  #include <gtkmm/dialog.h>  #include <gtkmm/dialog.h>
29  #include <gtkmm/liststore.h>  #include <gtkmm/liststore.h>
30    #include <gtkmm/menu.h>
31  #include <gtkmm/paned.h>  #include <gtkmm/paned.h>
32  #include <gtkmm/progressbar.h>  #include <gtkmm/progressbar.h>
33    #include <gtkmm/radiomenuitem.h>
34  #include <gtkmm/scrolledwindow.h>  #include <gtkmm/scrolledwindow.h>
35  #include <gtkmm/treestore.h>  #include <gtkmm/treestore.h>
36  #include <gtkmm/uimanager.h>  #include <gtkmm/uimanager.h>
# Line 40  Line 43 
43  #include "regionchooser.h"  #include "regionchooser.h"
44  #include "dimregionchooser.h"  #include "dimregionchooser.h"
45  #include "dimregionedit.h"  #include "dimregionedit.h"
46    #include "midirules.h"
47    #ifndef OLD_THREADS
48    #include <glibmm/threads.h>
49    #endif
50    #include "ManagedWindow.h"
51    
52  class MainWindow;  class MainWindow;
53    
54  class Table : public Gtk::Table  class PropDialog : public ManagedWindow,
55  {                     public PropEditor<DLS::Info> {
 public:  
     Table(int x, int y);  
     void add(BoolEntry& boolentry);  
     void add(BoolEntryPlus6& boolentry);  
     void add(LabelWidget& labelwidget);  
 private:  
     int rowno;  
 };  
   
 class PropDialog : public Gtk::Window {  
56  public:  public:
57      PropDialog();      PropDialog();
58      void set_info(DLS::Info* info);      void set_info(DLS::Info* info);
59      sigc::signal<void>& signal_info_changed();      void set_file(gig::File* file);
60    
61        // implementation for abstract methods of interface class "ManagedWindow"
62        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->filePropsWindowX; }
63        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->filePropsWindowY; }
64        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->filePropsWindowW; }
65        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->filePropsWindowH; }
66    
67  protected:  protected:
68      sigc::signal<void> info_changed;      ChoiceEntry<int> eFileFormat;
69      StringEntry eName;      StringEntry eName;
70      StringEntry eCreationDate;      StringEntry eCreationDate;
71      StringEntryMultiLine eComments;      StringEntryMultiLine eComments;
# Line 81  protected: Line 86  protected:
86      Gtk::HButtonBox buttonBox;      Gtk::HButtonBox buttonBox;
87      Gtk::Button quitButton;      Gtk::Button quitButton;
88      Table table;      Table table;
     int update_model;  
     DLS::Info* info;  
89    
90      template<typename T>      gig::File* m_file;
     void set_member(T value, T DLS::Info::* member) {  
         if (update_model == 0) {  
             info->*member = value;  
             info_changed();  
         }  
     }  
91    
92      template<typename C, typename T>      void onFileFormatChanged();
     void connect(C& widget, T DLS::Info::* member) {  
         widget.signal_value_changed().connect(  
             sigc::compose(  
                 sigc::bind(sigc::mem_fun(*this, &PropDialog::set_member<T>), member),  
                 sigc::mem_fun(widget, &C::get_value)));  
     }  
93  };  };
94    
95  class InstrumentProps : public Gtk::Window {  class InstrumentProps : public ManagedWindow,
96                            public PropEditor<gig::Instrument> {
97  public:  public:
98      InstrumentProps();      InstrumentProps();
99      void set_instrument(gig::Instrument* instrument);      void set_instrument(gig::Instrument* instrument);
100      sigc::signal<void>& signal_instrument_changed();      gig::Instrument* get_instrument() { return m; }
101  protected:      void update_name();
102      gig::Instrument* instrument;      sigc::signal<void>& signal_name_changed() {
103      int update_model;          return sig_name_changed;
   
     template<typename T>  
     void set_value(T value, sigc::slot<void, InstrumentProps*, T> setter) {  
         if (update_model == 0) {  
             setter(this, value);  
             instrument_changed();  
         }  
     }  
   
     template<typename C, typename T>  
     void connect(C& widget, T gig::Instrument::* member) {  
         widget.signal_value_changed().connect(  
             sigc::compose(  
                 sigc::bind(sigc::mem_fun(*this, &InstrumentProps::set_value<T>),  
                            sigc::bind(sigc::mem_fun(&InstrumentProps::set_member<T>), member)),  
                 sigc::mem_fun(widget, &C::get_value)));  
     }  
   
     template<typename C, typename T>  
     void connect(C& widget, void (InstrumentProps::*setter)(T)) {  
         widget.signal_value_changed().connect(  
             sigc::compose(  
                 sigc::bind(sigc::mem_fun(*this, &InstrumentProps::set_value<T>),  
                            sigc::mem_fun(setter)),  
                 sigc::mem_fun(widget, &C::get_value)));  
104      }      }
105    
106      template<typename T>      // implementation for abstract methods of interface class "ManagedWindow"
107      void set_member(T value, T gig::Instrument::* member) {      virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->instrPropsWindowX; }
108          instrument->*member = value;      virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->instrPropsWindowY; }
109      }      virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->instrPropsWindowW; }
110        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->instrPropsWindowH; }
111    
112    protected:
113        void set_Name(const gig::String& name);
114      void set_IsDrum(bool value);      void set_IsDrum(bool value);
115      void set_MIDIBank(uint16_t value);      void set_MIDIBank(uint16_t value);
116      void set_MIDIProgram(uint32_t value);      void set_MIDIProgram(uint32_t value);
     void set_DimensionKeyRange_low(uint8_t value);  
     void set_DimensionKeyRange_high(uint8_t value);  
117    
118        sigc::signal<void> sig_name_changed;
119      Gtk::VBox vbox;      Gtk::VBox vbox;
120      Gtk::HButtonBox buttonBox;      Gtk::HButtonBox buttonBox;
121      Gtk::Button quitButton;      Gtk::Button quitButton;
# Line 163  protected: Line 132  protected:
132      BoolEntry ePianoReleaseMode;      BoolEntry ePianoReleaseMode;
133      NoteEntry eDimensionKeyRangeLow;      NoteEntry eDimensionKeyRangeLow;
134      NoteEntry eDimensionKeyRangeHigh;      NoteEntry eDimensionKeyRangeHigh;
     sigc::signal<void> instrument_changed;  
135  };  };
136    
137  class LoadDialog : public Gtk::Dialog {  class ProgressDialog : public Gtk::Dialog {
138  public:  public:
139      LoadDialog(const Glib::ustring& title, Gtk::Window& parent);      ProgressDialog(const Glib::ustring& title, Gtk::Window& parent);
140      void set_fraction(float fraction) { progressBar.set_fraction(fraction); }      void set_fraction(float fraction) { progressBar.set_fraction(fraction); }
141  protected:  protected:
142      Gtk::ProgressBar progressBar;      Gtk::ProgressBar progressBar;
# Line 179  public: Line 147  public:
147      Loader(const char* filename);      Loader(const char* filename);
148      void launch();      void launch();
149      Glib::Dispatcher& signal_progress();      Glib::Dispatcher& signal_progress();
150      Glib::Dispatcher& signal_finished();      Glib::Dispatcher& signal_finished(); ///< Finished successfully, without error.
151        Glib::Dispatcher& signal_error();
152        void progress_callback(float fraction);
153        float get_progress();
154        const Glib::ustring filename;
155        Glib::ustring error_message;
156        gig::File* gig;
157    
158    private:
159        Glib::Threads::Thread* thread;
160        void thread_function();
161        Glib::Dispatcher finished_dispatcher;
162        Glib::Dispatcher progress_dispatcher;
163        Glib::Dispatcher error_dispatcher;
164        Glib::Threads::Mutex progressMutex;
165        float progress;
166    };
167    
168    class Saver : public sigc::trackable {
169    public:
170        Saver(gig::File* file, Glib::ustring filename = ""); ///< one argument means "save", two arguments means "save as"
171        void launch();
172        Glib::Dispatcher& signal_progress();
173        Glib::Dispatcher& signal_finished(); ///< Finished successfully, without error.
174        Glib::Dispatcher& signal_error();
175      void progress_callback(float fraction);      void progress_callback(float fraction);
176      float get_progress();      float get_progress();
     const char* filename;  
177      gig::File* gig;      gig::File* gig;
178        const Glib::ustring filename;
179        Glib::ustring error_message;
180    
181  private:  private:
182      Glib::Thread* thread;      Glib::Threads::Thread* thread;
183      void thread_function();      void thread_function();
184      Glib::Dispatcher finished_dispatcher;      Glib::Dispatcher finished_dispatcher;
185      Glib::Dispatcher progress_dispatcher;      Glib::Dispatcher progress_dispatcher;
186      Glib::Mutex progressMutex;      Glib::Dispatcher error_dispatcher;
187        Glib::Threads::Mutex progressMutex;
188      float progress;      float progress;
189  };  };
190    
191  class MainWindow : public Gtk::Window {  class MainWindow : public ManagedWindow {
192  public:  public:
193      MainWindow();      MainWindow();
194      virtual ~MainWindow();      virtual ~MainWindow();
# Line 209  public: Line 203  public:
203      sigc::signal<void, gig::Region*>& signal_region_changed();      sigc::signal<void, gig::Region*>& signal_region_changed();
204      sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed();      sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed();
205      sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed();      sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed();
206        sigc::signal<void, gig::Sample*>& signal_sample_changed();
207      sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed();      sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed();
208    
209      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_on();      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_on();
# Line 217  public: Line 212  public:
212      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit();      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit();
213      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();
214    
215        sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();
216        
217        // implementation for abstract methods of interface class "ManagedWindow"
218        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; }
219        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; }
220        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->mainWindowW; }
221        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->mainWindowH; }
222    
223  protected:  protected:
224      Glib::RefPtr<Gtk::ActionGroup> actionGroup;      Glib::RefPtr<Gtk::ActionGroup> actionGroup;
225      Glib::RefPtr<Gtk::UIManager> uiManager;      Glib::RefPtr<Gtk::UIManager> uiManager;
# Line 230  protected: Line 233  protected:
233    
234      PropDialog propDialog;      PropDialog propDialog;
235      InstrumentProps instrumentProps;      InstrumentProps instrumentProps;
236        MidiRules midiRules;
237    
238      sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;      sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;
239      sigc::signal<void, gig::File*> file_structure_changed_signal;      sigc::signal<void, gig::File*> file_structure_changed_signal;
# Line 239  protected: Line 243  protected:
243      sigc::signal<void, gig::Region*> region_changed_signal;      sigc::signal<void, gig::Region*> region_changed_signal;
244      sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal;      sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal;
245      sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal;      sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal;
246        sigc::signal<void, gig::Sample*> sample_changed_signal;
247      sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal;      sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal;
248    
249      sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal;      sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal;
250      sigc::signal<void, int/*key*/, int/*velocity*/> note_off_signal;      sigc::signal<void, int/*key*/, int/*velocity*/> note_off_signal;
251    
252      void on_instrument_selection_change(int index);      sigc::signal<void, gig::Instrument*> switch_sampler_instrument_signal;
253    
254        void on_instrument_selection_change(Gtk::RadioMenuItem* item);
255      void on_sel_change();      void on_sel_change();
256      void region_changed();      void region_changed();
257      void dimreg_changed();      void dimreg_changed();
258        void select_instrument(gig::Instrument* instrument);
259        bool select_dimension_region(gig::DimensionRegion* dimRgn);
260        void select_sample(gig::Sample* sample);
261      void on_loader_progress();      void on_loader_progress();
262      void on_loader_finished();      void on_loader_finished();
263        void on_loader_error();
264        void on_saver_progress();
265        void on_saver_error();
266        void on_saver_finished();
267    
268      void dimreg_all_dimregs_toggled();      void dimreg_all_dimregs_toggled();
269      gig::Instrument* get_instrument();      gig::Instrument* get_instrument();
270      void add_region_to_dimregs(gig::Region* region, bool stereo, bool all_dimregs);      void add_region_to_dimregs(gig::Region* region, bool stereo, bool all_dimregs);
# Line 274  protected: Line 289  protected:
289      Gtk::TreeView m_TreeView;      Gtk::TreeView m_TreeView;
290      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
291    
292        Gtk::Menu* instrument_menu;
293    
294        std::map<gig::Sample*,int> sample_ref_count;
295    
296      class SamplesModel : public Gtk::TreeModel::ColumnRecord {      class SamplesModel : public Gtk::TreeModel::ColumnRecord {
297      public:      public:
298          SamplesModel() {          SamplesModel() {
299              add(m_col_name);              add(m_col_name);
300              add(m_col_sample);              add(m_col_sample);
301              add(m_col_group);              add(m_col_group);
302                add(m_col_refcount);
303                add(m_color);
304          }          }
305    
306          Gtk::TreeModelColumn<Glib::ustring> m_col_name;          Gtk::TreeModelColumn<Glib::ustring> m_col_name;
307          Gtk::TreeModelColumn<gig::Sample*> m_col_sample;          Gtk::TreeModelColumn<gig::Sample*> m_col_sample;
308          Gtk::TreeModelColumn<gig::Group*> m_col_group;          Gtk::TreeModelColumn<gig::Group*> m_col_group;
309            Gtk::TreeModelColumn<Glib::ustring> m_col_refcount;
310            Gtk::TreeModelColumn<Glib::ustring> m_color;
311      } m_SamplesModel;      } m_SamplesModel;
312    
313      class SamplesTreeStore : public Gtk::TreeStore {      class SamplesTreeStore : public Gtk::TreeStore {
# Line 300  protected: Line 323  protected:
323      Gtk::TreeView m_TreeViewSamples;      Gtk::TreeView m_TreeViewSamples;
324      Glib::RefPtr<SamplesTreeStore> m_refSamplesTreeModel;      Glib::RefPtr<SamplesTreeStore> m_refSamplesTreeModel;
325    
326        class ScriptsModel : public Gtk::TreeModel::ColumnRecord {
327        public:
328            ScriptsModel() {
329                add(m_col_name);
330                add(m_col_script);
331                add(m_col_group);
332            }
333    
334            Gtk::TreeModelColumn<Glib::ustring> m_col_name;
335            Gtk::TreeModelColumn<gig::Script*> m_col_script;
336            Gtk::TreeModelColumn<gig::ScriptGroup*> m_col_group;
337        } m_ScriptsModel;
338    
339        class ScriptsTreeStore : public Gtk::TreeStore {
340        public:
341            static Glib::RefPtr<ScriptsTreeStore> create(const ScriptsModel& columns) {
342                return Glib::RefPtr<ScriptsTreeStore>( new ScriptsTreeStore(columns) );
343            }
344        protected:
345            ScriptsTreeStore(const ScriptsModel& columns) : Gtk::TreeStore(columns) {}
346        };
347    
348        Gtk::ScrolledWindow m_ScrolledWindowScripts;
349        Gtk::TreeView m_TreeViewScripts;
350        Glib::RefPtr<ScriptsTreeStore> m_refScriptsTreeModel;
351    
352      Gtk::VBox dimreg_vbox;      Gtk::VBox dimreg_vbox;
353      Gtk::HBox dimreg_hbox;      Gtk::HBox dimreg_hbox;
354      Gtk::Label dimreg_label;      Gtk::Label dimreg_label;
# Line 308  protected: Line 357  protected:
357      Gtk::CheckButton dimreg_stereo;      Gtk::CheckButton dimreg_stereo;
358      DimRegionEdit dimreg_edit;      DimRegionEdit dimreg_edit;
359    
     Gtk::Notebook m_Notebook;  
360      Gtk::Notebook m_TreeViewNotebook;      Gtk::Notebook m_TreeViewNotebook;
361    
362      struct SampleImportItem {      struct SampleImportItem {
# Line 328  protected: Line 376  protected:
376      void on_action_file_properties();      void on_action_file_properties();
377      void on_action_quit();      void on_action_quit();
378      void show_instr_props();      void show_instr_props();
379        bool instr_props_set_instrument();
380        void show_midi_rules();
381        void show_script_slots();
382      void on_action_view_status_bar();      void on_action_view_status_bar();
383        void on_action_refresh_all();
384        void on_action_warn_user_on_extensions();
385        void on_action_sync_sampler_instrument_selection();
386        void on_action_move_root_note_with_region_moved();
387      void on_action_help_about();      void on_action_help_about();
388    
389      // sample right-click popup actions      // sample right-click popup actions
# Line 336  protected: Line 391  protected:
391      void on_action_sample_properties();      void on_action_sample_properties();
392      void on_action_add_group();      void on_action_add_group();
393      void on_action_add_sample();      void on_action_add_sample();
394        void on_action_replace_sample();
395      void on_action_replace_all_samples_in_all_groups();      void on_action_replace_all_samples_in_all_groups();
396      void on_action_remove_sample();      void on_action_remove_sample();
397        void on_action_remove_unused_samples();
398    
399        // script right-click popup actions
400        void on_script_treeview_button_release(GdkEventButton* button);
401        void on_action_add_script_group();
402        void on_action_add_script();
403        void on_action_edit_script();
404        void on_action_remove_script();
405    
406      void on_action_add_instrument();      void on_action_add_instrument();
407        void on_action_duplicate_instrument();
408      void on_action_remove_instrument();      void on_action_remove_instrument();
409    
410      LoadDialog* load_dialog;      void show_samples_tab();
411        void show_intruments_tab();
412        void show_scripts_tab();
413    
414        void add_instrument(gig::Instrument* instrument);
415        Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name,
416                                                   int position = -1);
417        void remove_instrument_from_menu(int index);
418    
419        ProgressDialog* progress_dialog;
420      Loader* loader;      Loader* loader;
421        Saver* saver;
422      void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false);      void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false);
423        void updateSampleRefCountMap(gig::File* gig);
424    
425      gig::File* file;      gig::File* file;
426      bool file_is_shared;      bool file_is_shared;
# Line 361  protected: Line 437  protected:
437      bool check_if_savable();      bool check_if_savable();
438    
439      void on_button_release(GdkEventButton* button);      void on_button_release(GdkEventButton* button);
440        void on_instruments_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
441        void on_instruments_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
442                                                   Gtk::SelectionData& selection_data, guint, guint);
443        void on_instruments_treeview_drop_drag_data_received(
444            const Glib::RefPtr<Gdk::DragContext>& context, int, int,
445            const Gtk::SelectionData& selection_data, guint, guint time
446        );
447        void on_scripts_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
448        void on_scripts_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
449                                               Gtk::SelectionData& selection_data, guint, guint);
450      void on_sample_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);      void on_sample_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
451      void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,      void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
452                                            Gtk::SelectionData& selection_data, guint, guint);                                            Gtk::SelectionData& selection_data, guint, guint);
# Line 369  protected: Line 455  protected:
455                                                   const Gtk::SelectionData& selection_data,                                                   const Gtk::SelectionData& selection_data,
456                                                   guint, guint time);                                                   guint, guint time);
457    
458        void script_name_changed(const Gtk::TreeModel::Path& path,
459                                 const Gtk::TreeModel::iterator& iter);
460        void script_double_clicked(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
461      void sample_name_changed(const Gtk::TreeModel::Path& path,      void sample_name_changed(const Gtk::TreeModel::Path& path,
462                               const Gtk::TreeModel::iterator& iter);                               const Gtk::TreeModel::iterator& iter);
463      void instrument_name_changed(const Gtk::TreeModel::Path& path,      void instrument_name_changed(const Gtk::TreeModel::Path& path,
464                                   const Gtk::TreeModel::iterator& iter);                                   const Gtk::TreeModel::iterator& iter);
465        void instr_name_changed_by_instr_props(Gtk::TreeModel::iterator& it);
466        sigc::connection instrument_name_connection;
467    
468        void on_action_combine_instruments();
469        void on_action_view_references();
470        void on_action_merge_files();
471        void mergeFiles(const std::vector<std::string>& filenames);
472    
473        void on_sample_ref_changed(gig::Sample* oldSample, gig::Sample* newSample);
474        void on_sample_ref_count_incremented(gig::Sample* sample, int offset);
475        void on_samples_to_be_removed(std::list<gig::Sample*> samples);
476    
477        void add_or_replace_sample(bool replace);
478    
479      void __import_queued_samples();      void __import_queued_samples();
480      void __clear();      void __clear();
481        void __refreshEntireGUI();
482    
483      bool close_confirmation_dialog();      bool close_confirmation_dialog();
484      bool leaving_shared_mode_dialog();      bool leaving_shared_mode_dialog();
# Line 385  protected: Line 488  protected:
488      bool on_delete_event(GdkEventAny* event);      bool on_delete_event(GdkEventAny* event);
489    
490      bool first_call_to_drag_data_get;      bool first_call_to_drag_data_get;
491        
492        bool is_copy_samples_unity_note_enabled() const;
493        bool is_copy_samples_fine_tune_enabled() const;
494        bool is_copy_samples_loop_enabled() const;
495  };  };
496    
497  #endif  #endif

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

  ViewVC Help
Powered by ViewVC