/[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 2701 by schoenebeck, Mon Jan 12 23:28:04 2015 UTC revision 2893 by schoenebeck, Fri Apr 29 14:19:53 2016 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006 - 2015 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>
# Line 46  Line 47 
47  #ifndef OLD_THREADS  #ifndef OLD_THREADS
48  #include <glibmm/threads.h>  #include <glibmm/threads.h>
49  #endif  #endif
50    #include "ManagedWindow.h"
51    
52  class MainWindow;  class MainWindow;
53    
# Line 172  private: Line 174  private:
174      float progress;      float progress;
175  };  };
176    
177  class MainWindow : public Gtk::Window {  class MainWindow : public ManagedWindow {
178  public:  public:
179      MainWindow();      MainWindow();
180      virtual ~MainWindow();      virtual ~MainWindow();
# Line 197  public: Line 199  public:
199      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();      sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released();
200    
201      sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();      sigc::signal<void, gig::Instrument*>& signal_switch_sampler_instrument();
202        
203        // implementation for abstract methods of interface class "ManagedWindow"
204        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->mainWindowX; }
205        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->mainWindowY; }
206        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->mainWindowW; }
207        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->mainWindowH; }
208    
209  protected:  protected:
210      Glib::RefPtr<Gtk::ActionGroup> actionGroup;      Glib::RefPtr<Gtk::ActionGroup> actionGroup;
# Line 358  protected: Line 366  protected:
366      void show_midi_rules();      void show_midi_rules();
367      void show_script_slots();      void show_script_slots();
368      void on_action_view_status_bar();      void on_action_view_status_bar();
369        void on_action_refresh_all();
370      void on_action_warn_user_on_extensions();      void on_action_warn_user_on_extensions();
371      void on_action_sync_sampler_instrument_selection();      void on_action_sync_sampler_instrument_selection();
372        void on_action_move_root_note_with_region_moved();
373      void on_action_help_about();      void on_action_help_about();
374    
375      // sample right-click popup actions      // sample right-click popup actions
# Line 367  protected: Line 377  protected:
377      void on_action_sample_properties();      void on_action_sample_properties();
378      void on_action_add_group();      void on_action_add_group();
379      void on_action_add_sample();      void on_action_add_sample();
380        void on_action_replace_sample();
381      void on_action_replace_all_samples_in_all_groups();      void on_action_replace_all_samples_in_all_groups();
382      void on_action_remove_sample();      void on_action_remove_sample();
383            void on_action_remove_unused_samples();
384    
385      // script right-click popup actions      // script right-click popup actions
386      void on_script_treeview_button_release(GdkEventButton* button);      void on_script_treeview_button_release(GdkEventButton* button);
387      void on_action_add_script_group();      void on_action_add_script_group();
# Line 448  protected: Line 460  protected:
460      void on_sample_ref_count_incremented(gig::Sample* sample, int offset);      void on_sample_ref_count_incremented(gig::Sample* sample, int offset);
461      void on_samples_to_be_removed(std::list<gig::Sample*> samples);      void on_samples_to_be_removed(std::list<gig::Sample*> samples);
462    
463        void add_or_replace_sample(bool replace);
464    
465      void __import_queued_samples();      void __import_queued_samples();
466      void __clear();      void __clear();
467      void __refreshEntireGUI();      void __refreshEntireGUI();

Legend:
Removed from v.2701  
changed lines
  Added in v.2893

  ViewVC Help
Powered by ViewVC