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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3109 - (hide annotations) (download) (as text)
Sun Feb 12 16:35:03 2017 UTC (2 years, 9 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 18902 byte(s)
- Just added a "Legend:" label to the new symbols.

1 schoenebeck 1225 /* -*- c++ -*-
2 schoenebeck 3068 * Copyright (C) 2006 - 2017 Andreas Persson
3 schoenebeck 1225 *
4     * This program is free software; you can redistribute it and/or
5     * modify it under the terms of the GNU General Public License as
6     * published by the Free Software Foundation; either version 2, or (at
7     * your option) any later version.
8     *
9     * This program is distributed in the hope that it will be useful, but
10     * WITHOUT ANY WARRANTY; without even the implied warranty of
11     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     * General Public License for more details.
13     *
14     * You should have received a copy of the GNU General Public License
15     * along with program; see the file COPYING. If not, write to the Free
16     * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17     * 02110-1301 USA.
18     */
19    
20     #ifndef GIGEDIT_MAINWINDOW_H
21     #define GIGEDIT_MAINWINDOW_H
22    
23 schoenebeck 3068 #ifdef LIBGIG_HEADER_FILE
24     # include LIBGIG_HEADER_FILE(gig.h)
25     #else
26     # include <gig.h>
27     #endif
28 schoenebeck 1225
29 persson 2844 #include <gtkmm/box.h>
30 schoenebeck 1225 #include <gtkmm/actiongroup.h>
31     #include <gtkmm/buttonbox.h>
32     #include <gtkmm/dialog.h>
33     #include <gtkmm/liststore.h>
34 persson 2442 #include <gtkmm/menu.h>
35 schoenebeck 1225 #include <gtkmm/paned.h>
36     #include <gtkmm/progressbar.h>
37 persson 2442 #include <gtkmm/radiomenuitem.h>
38 schoenebeck 1225 #include <gtkmm/scrolledwindow.h>
39     #include <gtkmm/treestore.h>
40     #include <gtkmm/uimanager.h>
41     #include <gtkmm/window.h>
42 schoenebeck 1411 #include <gtkmm/statusbar.h>
43     #include <gtkmm/image.h>
44 schoenebeck 1225
45     #include <sstream>
46    
47     #include "regionchooser.h"
48     #include "dimregionchooser.h"
49     #include "dimregionedit.h"
50 persson 2507 #include "midirules.h"
51 persson 2325 #ifndef OLD_THREADS
52     #include <glibmm/threads.h>
53     #endif
54 schoenebeck 2893 #include "ManagedWindow.h"
55 schoenebeck 1225
56     class MainWindow;
57    
58 schoenebeck 2894 class PropDialog : public ManagedWindow,
59 persson 2423 public PropEditor<DLS::Info> {
60 persson 1582 public:
61 schoenebeck 1225 PropDialog();
62     void set_info(DLS::Info* info);
63 schoenebeck 2560 void set_file(gig::File* file);
64 schoenebeck 2894
65     // implementation for abstract methods of interface class "ManagedWindow"
66     virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->filePropsWindowX; }
67     virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->filePropsWindowY; }
68     virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->filePropsWindowW; }
69     virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->filePropsWindowH; }
70    
71 schoenebeck 1225 protected:
72 schoenebeck 2560 ChoiceEntry<int> eFileFormat;
73 persson 1582 StringEntry eName;
74     StringEntry eCreationDate;
75     StringEntryMultiLine eComments;
76     StringEntry eProduct;
77     StringEntry eCopyright;
78     StringEntry eArtists;
79     StringEntry eGenre;
80     StringEntry eKeywords;
81     StringEntry eEngineer;
82     StringEntry eTechnician;
83     StringEntry eSoftware;
84     StringEntry eMedium;
85     StringEntry eSource;
86     StringEntry eSourceForm;
87     StringEntry eCommissioned;
88     StringEntry eSubject;
89     Gtk::VBox vbox;
90     Gtk::HButtonBox buttonBox;
91     Gtk::Button quitButton;
92     Table table;
93 schoenebeck 2560
94     gig::File* m_file;
95    
96     void onFileFormatChanged();
97 schoenebeck 1225 };
98    
99 schoenebeck 2894 class InstrumentProps : public ManagedWindow,
100 persson 2423 public PropEditor<gig::Instrument> {
101 schoenebeck 1225 public:
102     InstrumentProps();
103     void set_instrument(gig::Instrument* instrument);
104 persson 2445 gig::Instrument* get_instrument() { return m; }
105     void update_name();
106     sigc::signal<void>& signal_name_changed() {
107     return sig_name_changed;
108     }
109 schoenebeck 2894
110     // implementation for abstract methods of interface class "ManagedWindow"
111     virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->instrPropsWindowX; }
112     virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->instrPropsWindowY; }
113     virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->instrPropsWindowW; }
114     virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->instrPropsWindowH; }
115    
116 schoenebeck 1225 protected:
117 persson 2445 void set_Name(const gig::String& name);
118 persson 1460 void set_IsDrum(bool value);
119     void set_MIDIBank(uint16_t value);
120     void set_MIDIProgram(uint32_t value);
121    
122 persson 2445 sigc::signal<void> sig_name_changed;
123 schoenebeck 1225 Gtk::VBox vbox;
124     Gtk::HButtonBox buttonBox;
125     Gtk::Button quitButton;
126 persson 1582 Table table;
127 schoenebeck 1225 StringEntry eName;
128     BoolEntry eIsDrum;
129     NumEntryTemp<uint16_t> eMIDIBank;
130     NumEntryTemp<uint32_t> eMIDIProgram;
131     NumEntryGain eAttenuation;
132     BoolEntryPlus6 eGainPlus6;
133     NumEntryTemp<uint16_t> eEffectSend;
134     NumEntryTemp<int16_t> eFineTune;
135     NumEntryTemp<uint16_t> ePitchbendRange;
136     BoolEntry ePianoReleaseMode;
137     NoteEntry eDimensionKeyRangeLow;
138     NoteEntry eDimensionKeyRangeHigh;
139     };
140    
141 schoenebeck 2683 class ProgressDialog : public Gtk::Dialog {
142 schoenebeck 1225 public:
143 schoenebeck 2683 ProgressDialog(const Glib::ustring& title, Gtk::Window& parent);
144 schoenebeck 1225 void set_fraction(float fraction) { progressBar.set_fraction(fraction); }
145     protected:
146     Gtk::ProgressBar progressBar;
147     };
148    
149     class Loader : public sigc::trackable {
150     public:
151     Loader(const char* filename);
152     void launch();
153     Glib::Dispatcher& signal_progress();
154 schoenebeck 2683 Glib::Dispatcher& signal_finished(); ///< Finished successfully, without error.
155     Glib::Dispatcher& signal_error();
156 schoenebeck 1225 void progress_callback(float fraction);
157     float get_progress();
158 schoenebeck 2683 const Glib::ustring filename;
159     Glib::ustring error_message;
160 schoenebeck 1225 gig::File* gig;
161    
162     private:
163 persson 2325 Glib::Threads::Thread* thread;
164 schoenebeck 1225 void thread_function();
165     Glib::Dispatcher finished_dispatcher;
166     Glib::Dispatcher progress_dispatcher;
167 schoenebeck 2683 Glib::Dispatcher error_dispatcher;
168 persson 2325 Glib::Threads::Mutex progressMutex;
169 schoenebeck 1225 float progress;
170     };
171    
172 schoenebeck 2683 class Saver : public sigc::trackable {
173     public:
174     Saver(gig::File* file, Glib::ustring filename = ""); ///< one argument means "save", two arguments means "save as"
175     void launch();
176     Glib::Dispatcher& signal_progress();
177     Glib::Dispatcher& signal_finished(); ///< Finished successfully, without error.
178     Glib::Dispatcher& signal_error();
179     void progress_callback(float fraction);
180     float get_progress();
181     gig::File* gig;
182     const Glib::ustring filename;
183     Glib::ustring error_message;
184    
185     private:
186     Glib::Threads::Thread* thread;
187     void thread_function();
188     Glib::Dispatcher finished_dispatcher;
189     Glib::Dispatcher progress_dispatcher;
190     Glib::Dispatcher error_dispatcher;
191     Glib::Threads::Mutex progressMutex;
192     float progress;
193     };
194    
195 schoenebeck 2893 class MainWindow : public ManagedWindow {
196 schoenebeck 1225 public:
197     MainWindow();
198     virtual ~MainWindow();
199     void load_file(const char* name);
200     void load_instrument(gig::Instrument* instr);
201 persson 1261 void file_changed();
202 schoenebeck 1339 sigc::signal<void, gig::File*>& signal_file_structure_to_be_changed();
203     sigc::signal<void, gig::File*>& signal_file_structure_changed();
204     sigc::signal<void, std::list<gig::Sample*> >& signal_samples_to_be_removed();
205     sigc::signal<void>& signal_samples_removed();
206     sigc::signal<void, gig::Region*>& signal_region_to_be_changed();
207     sigc::signal<void, gig::Region*>& signal_region_changed();
208     sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed();
209     sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed();
210 schoenebeck 1853 sigc::signal<void, gig::Sample*>& signal_sample_changed();
211 schoenebeck 1339 sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed();
212 schoenebeck 1225
213 schoenebeck 1654 sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_on();
214     sigc::signal<void, int/*key*/, int/*velocity*/>& signal_note_off();
215    
216 schoenebeck 1660 sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_hit();
217     sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();
218    
219 schoenebeck 2689 sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();
220 schoenebeck 2903
221     sigc::signal<void, gig::Script*> signal_script_to_be_changed;
222     sigc::signal<void, gig::Script*> signal_script_changed;
223    
224 schoenebeck 2893 // implementation for abstract methods of interface class "ManagedWindow"
225     virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; }
226     virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; }
227     virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->mainWindowW; }
228     virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->mainWindowH; }
229 schoenebeck 2689
230 schoenebeck 1225 protected:
231     Glib::RefPtr<Gtk::ActionGroup> actionGroup;
232     Glib::RefPtr<Gtk::UIManager> uiManager;
233    
234 schoenebeck 1411 Gtk::Statusbar m_StatusBar;
235     Gtk::Label m_AttachedStateLabel;
236     Gtk::Image m_AttachedStateImage;
237    
238 schoenebeck 1225 RegionChooser m_RegionChooser;
239     DimRegionChooser m_DimRegionChooser;
240    
241     PropDialog propDialog;
242     InstrumentProps instrumentProps;
243 persson 2507 MidiRules midiRules;
244 schoenebeck 1225
245 schoenebeck 1322 sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;
246     sigc::signal<void, gig::File*> file_structure_changed_signal;
247     sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal;
248     sigc::signal<void> samples_removed_signal;
249     sigc::signal<void, gig::Region*> region_to_be_changed_signal;
250     sigc::signal<void, gig::Region*> region_changed_signal;
251     sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal;
252     sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal;
253 schoenebeck 1853 sigc::signal<void, gig::Sample*> sample_changed_signal;
254 schoenebeck 1322 sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal;
255    
256 schoenebeck 1654 sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal;
257     sigc::signal<void, int/*key*/, int/*velocity*/> note_off_signal;
258    
259 schoenebeck 2689 sigc::signal<void, gig::Instrument*> switch_sampler_instrument_signal;
260    
261 persson 2442 void on_instrument_selection_change(Gtk::RadioMenuItem* item);
262 schoenebeck 1225 void on_sel_change();
263     void region_changed();
264     void dimreg_changed();
265 schoenebeck 2701 void select_instrument(gig::Instrument* instrument);
266 schoenebeck 2695 bool select_dimension_region(gig::DimensionRegion* dimRgn);
267 schoenebeck 2691 void select_sample(gig::Sample* sample);
268 schoenebeck 1225 void on_loader_progress();
269     void on_loader_finished();
270 schoenebeck 2683 void on_loader_error();
271     void on_saver_progress();
272     void on_saver_error();
273     void on_saver_finished();
274    
275 persson 1533 void dimreg_all_dimregs_toggled();
276     gig::Instrument* get_instrument();
277     void add_region_to_dimregs(gig::Region* region, bool stereo, bool all_dimregs);
278     void update_dimregs();
279 schoenebeck 1225
280     class ModelColumns : public Gtk::TreeModel::ColumnRecord {
281     public:
282     ModelColumns() {
283 schoenebeck 2994 add(m_col_nr);
284 schoenebeck 1225 add(m_col_name);
285     add(m_col_instr);
286     }
287    
288 schoenebeck 2994 Gtk::TreeModelColumn<int> m_col_nr;
289 schoenebeck 1225 Gtk::TreeModelColumn<Glib::ustring> m_col_name;
290     Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;
291     } m_Columns;
292    
293     Gtk::VBox m_VBox;
294     Gtk::HPaned m_HPaned;
295    
296     Gtk::ScrolledWindow m_ScrolledWindow;
297    
298     Gtk::TreeView m_TreeView;
299     Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
300    
301 persson 2442 Gtk::Menu* instrument_menu;
302    
303 schoenebeck 2621 std::map<gig::Sample*,int> sample_ref_count;
304    
305 schoenebeck 1225 class SamplesModel : public Gtk::TreeModel::ColumnRecord {
306     public:
307     SamplesModel() {
308     add(m_col_name);
309     add(m_col_sample);
310     add(m_col_group);
311 schoenebeck 2621 add(m_col_refcount);
312     add(m_color);
313 schoenebeck 1225 }
314    
315     Gtk::TreeModelColumn<Glib::ustring> m_col_name;
316     Gtk::TreeModelColumn<gig::Sample*> m_col_sample;
317     Gtk::TreeModelColumn<gig::Group*> m_col_group;
318 schoenebeck 2621 Gtk::TreeModelColumn<Glib::ustring> m_col_refcount;
319     Gtk::TreeModelColumn<Glib::ustring> m_color;
320 schoenebeck 1225 } m_SamplesModel;
321    
322     class SamplesTreeStore : public Gtk::TreeStore {
323     public:
324     static Glib::RefPtr<SamplesTreeStore> create(const SamplesModel& columns) {
325     return Glib::RefPtr<SamplesTreeStore>( new SamplesTreeStore(columns) );
326     }
327     protected:
328     SamplesTreeStore(const SamplesModel& columns) : Gtk::TreeStore(columns) {}
329     };
330    
331     Gtk::ScrolledWindow m_ScrolledWindowSamples;
332     Gtk::TreeView m_TreeViewSamples;
333     Glib::RefPtr<SamplesTreeStore> m_refSamplesTreeModel;
334    
335 schoenebeck 2604 class ScriptsModel : public Gtk::TreeModel::ColumnRecord {
336     public:
337     ScriptsModel() {
338     add(m_col_name);
339     add(m_col_script);
340     add(m_col_group);
341     }
342    
343     Gtk::TreeModelColumn<Glib::ustring> m_col_name;
344     Gtk::TreeModelColumn<gig::Script*> m_col_script;
345     Gtk::TreeModelColumn<gig::ScriptGroup*> m_col_group;
346     } m_ScriptsModel;
347    
348     class ScriptsTreeStore : public Gtk::TreeStore {
349     public:
350     static Glib::RefPtr<ScriptsTreeStore> create(const ScriptsModel& columns) {
351     return Glib::RefPtr<ScriptsTreeStore>( new ScriptsTreeStore(columns) );
352     }
353     protected:
354     ScriptsTreeStore(const ScriptsModel& columns) : Gtk::TreeStore(columns) {}
355     };
356    
357     Gtk::ScrolledWindow m_ScrolledWindowScripts;
358     Gtk::TreeView m_TreeViewScripts;
359     Glib::RefPtr<ScriptsTreeStore> m_refScriptsTreeModel;
360    
361 persson 1533 Gtk::VBox dimreg_vbox;
362     Gtk::HBox dimreg_hbox;
363     Gtk::Label dimreg_label;
364     Gtk::CheckButton dimreg_all_regions;
365     Gtk::CheckButton dimreg_all_dimregs;
366     Gtk::CheckButton dimreg_stereo;
367 schoenebeck 3106
368     Gtk::HBox legend_hbox;
369 schoenebeck 3109 Gtk::Label labelLegend;
370 schoenebeck 3106 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 schoenebeck 1225 DimRegionEdit dimreg_edit;
379    
380     Gtk::Notebook m_TreeViewNotebook;
381    
382     struct SampleImportItem {
383     gig::Sample* gig_sample; // pointer to the gig::Sample to
384     // which the sample data should be
385     // imported to
386     Glib::ustring sample_path; // file name of the sample to be
387     // imported
388     };
389     std::list<SampleImportItem> m_SampleImportQueue;
390    
391    
392     void on_action_file_new();
393     void on_action_file_open();
394     void on_action_file_save();
395     void on_action_file_save_as();
396     void on_action_file_properties();
397 persson 1261 void on_action_quit();
398 schoenebeck 1225 void show_instr_props();
399 persson 2445 bool instr_props_set_instrument();
400 persson 2507 void show_midi_rules();
401 schoenebeck 2610 void show_script_slots();
402 schoenebeck 1415 void on_action_view_status_bar();
403 schoenebeck 2918 void on_auto_restore_win_dim();
404 schoenebeck 2967 void on_save_with_temporary_file();
405 schoenebeck 2772 void on_action_refresh_all();
406 schoenebeck 2541 void on_action_warn_user_on_extensions();
407 schoenebeck 2689 void on_action_sync_sampler_instrument_selection();
408 schoenebeck 2773 void on_action_move_root_note_with_region_moved();
409 schoenebeck 1225 void on_action_help_about();
410    
411     // sample right-click popup actions
412     void on_sample_treeview_button_release(GdkEventButton* button);
413     void on_action_sample_properties();
414     void on_action_add_group();
415     void on_action_add_sample();
416 schoenebeck 2715 void on_action_replace_sample();
417 schoenebeck 1673 void on_action_replace_all_samples_in_all_groups();
418 schoenebeck 1225 void on_action_remove_sample();
419 schoenebeck 2772 void on_action_remove_unused_samples();
420    
421 schoenebeck 2604 // script right-click popup actions
422     void on_script_treeview_button_release(GdkEventButton* button);
423     void on_action_add_script_group();
424     void on_action_add_script();
425     void on_action_edit_script();
426     void on_action_remove_script();
427 schoenebeck 1225
428     void on_action_add_instrument();
429 schoenebeck 2395 void on_action_duplicate_instrument();
430 schoenebeck 1225 void on_action_remove_instrument();
431    
432 schoenebeck 2625 void show_samples_tab();
433     void show_intruments_tab();
434     void show_scripts_tab();
435    
436 persson 2442 void add_instrument(gig::Instrument* instrument);
437     Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name,
438     int position = -1);
439     void remove_instrument_from_menu(int index);
440    
441 schoenebeck 2683 ProgressDialog* progress_dialog;
442 schoenebeck 1225 Loader* loader;
443 schoenebeck 2683 Saver* saver;
444 schoenebeck 1382 void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false);
445 schoenebeck 2621 void updateSampleRefCountMap(gig::File* gig);
446 schoenebeck 1225
447     gig::File* file;
448 schoenebeck 1382 bool file_is_shared;
449 persson 1261 bool file_has_name;
450     bool file_is_changed;
451     std::string filename;
452 persson 1725 std::string current_gig_dir;
453     std::string current_sample_dir;
454 schoenebeck 1225
455 schoenebeck 1411 void set_file_is_shared(bool);
456    
457 persson 1261 bool file_save();
458     bool file_save_as();
459 persson 1303 bool check_if_savable();
460 persson 1261
461 schoenebeck 1225 void on_button_release(GdkEventButton* button);
462 schoenebeck 2701 void on_instruments_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
463     void on_instruments_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
464     Gtk::SelectionData& selection_data, guint, guint);
465     void on_instruments_treeview_drop_drag_data_received(
466     const Glib::RefPtr<Gdk::DragContext>& context, int, int,
467     const Gtk::SelectionData& selection_data, guint, guint time
468     );
469 schoenebeck 2610 void on_scripts_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
470     void on_scripts_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
471     Gtk::SelectionData& selection_data, guint, guint);
472 persson 1303 void on_sample_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
473 schoenebeck 1225 void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
474     Gtk::SelectionData& selection_data, guint, guint);
475     void on_sample_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context,
476     int, int,
477     const Gtk::SelectionData& selection_data,
478     guint, guint time);
479 persson 1303
480 schoenebeck 2604 void script_name_changed(const Gtk::TreeModel::Path& path,
481     const Gtk::TreeModel::iterator& iter);
482 schoenebeck 2644 void script_double_clicked(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
483 schoenebeck 1225 void sample_name_changed(const Gtk::TreeModel::Path& path,
484     const Gtk::TreeModel::iterator& iter);
485     void instrument_name_changed(const Gtk::TreeModel::Path& path,
486     const Gtk::TreeModel::iterator& iter);
487 persson 2445 void instr_name_changed_by_instr_props(Gtk::TreeModel::iterator& it);
488 persson 2442 sigc::connection instrument_name_connection;
489 schoenebeck 1225
490 schoenebeck 2548 void on_action_combine_instruments();
491 schoenebeck 2624 void on_action_view_references();
492 schoenebeck 2553 void on_action_merge_files();
493     void mergeFiles(const std::vector<std::string>& filenames);
494 schoenebeck 2548
495 schoenebeck 2621 void on_sample_ref_changed(gig::Sample* oldSample, gig::Sample* newSample);
496     void on_sample_ref_count_incremented(gig::Sample* sample, int offset);
497     void on_samples_to_be_removed(std::list<gig::Sample*> samples);
498    
499 schoenebeck 2715 void add_or_replace_sample(bool replace);
500    
501 schoenebeck 1225 void __import_queued_samples();
502     void __clear();
503 schoenebeck 2553 void __refreshEntireGUI();
504 schoenebeck 1225
505 persson 1261 bool close_confirmation_dialog();
506 schoenebeck 1382 bool leaving_shared_mode_dialog();
507 persson 1261
508 schoenebeck 1225 Gtk::Menu* popup_menu;
509 persson 1261
510     bool on_delete_event(GdkEventAny* event);
511 persson 1303
512     bool first_call_to_drag_data_get;
513 schoenebeck 2464
514     bool is_copy_samples_unity_note_enabled() const;
515     bool is_copy_samples_fine_tune_enabled() const;
516     bool is_copy_samples_loop_enabled() const;
517 schoenebeck 1225 };
518    
519     #endif

  ViewVC Help
Powered by ViewVC