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

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

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

revision 2893 by schoenebeck, Tue Jan 6 18:11:27 2015 UTC revision 2894 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (c) 2014,2015 Christian Schoenebeck      Copyright (c) 2014-2016 Christian Schoenebeck
3            
4      This file is part of "gigedit" and released under the terms of the      This file is part of "gigedit" and released under the terms of the
5      GNU General Public License version 2.      GNU General Public License version 2.
# Line 11  Line 11 
11  #include <gig.h>  #include <gig.h>
12  #include <gtkmm.h>  #include <gtkmm.h>
13  #include "wrapLabel.hh"  #include "wrapLabel.hh"
14    #include "ManagedWindow.h"
15    
16  /** @brief Sample reference browser dialog.  /** @brief Sample reference browser dialog.
17   *   *
18   * Shows a modal dialog with a tree view showing all instruments and their   * Shows a modal dialog with a tree view showing all instruments and their
19   * respective regions which reference the selected sample at least once.   * respective regions which reference the selected sample at least once.
20   */   */
21  class ReferencesView : public Gtk::Dialog {  class ReferencesView : public ManagedDialog {
22  public:  public:
23      ReferencesView(Gtk::Window& parent);      ReferencesView(Gtk::Window& parent);
24      void setSample(gig::Sample* sample);      void setSample(gig::Sample* sample);
# Line 29  public: Line 30  public:
30      // or should return false on errors.      // or should return false on errors.
31      sigc::signal<bool, gig::DimensionRegion*> dimension_region_selected;      sigc::signal<bool, gig::DimensionRegion*> dimension_region_selected;
32    
33        // implementation for abstract methods of interface class "ManagedDialog"
34        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->sampleRefsWindowX; }
35        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->sampleRefsWindowY; }
36        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->sampleRefsWindowW; }
37        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->sampleRefsWindowH; }
38    
39  protected:  protected:
40      gig::Sample* m_sample;      gig::Sample* m_sample;
41    

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

  ViewVC Help
Powered by ViewVC