/[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 2624 by schoenebeck, Wed Jun 11 20:26:26 2014 UTC revision 3068 by schoenebeck, Mon Jan 2 22:13:01 2017 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (c) 2014 Christian Schoenebeck      Copyright (c) 2014-2017 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 8  Line 8 
8  #ifndef GIGEDIT_REFERENCESVIEW_H  #ifndef GIGEDIT_REFERENCESVIEW_H
9  #define GIGEDIT_REFERENCESVIEW_H  #define GIGEDIT_REFERENCESVIEW_H
10    
11  #include <gig.h>  #ifdef LIBGIG_HEADER_FILE
12    # include LIBGIG_HEADER_FILE(gig.h)
13    #else
14    # include <gig.h>
15    #endif
16    
17  #include <gtkmm.h>  #include <gtkmm.h>
18  #include "wrapLabel.hh"  #include "wrapLabel.hh"
19    #include "ManagedWindow.h"
20    
21  /** @brief Sample reference browser dialog.  /** @brief Sample reference browser dialog.
22   *   *
23   * 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
24   * respective regions which reference the selected sample at least once.   * respective regions which reference the selected sample at least once.
25   */   */
26  class ReferencesView : public Gtk::Dialog {  class ReferencesView : public ManagedDialog {
27  public:  public:
28      ReferencesView(Gtk::Window& parent);      ReferencesView(Gtk::Window& parent);
29      void setSample(gig::Sample* sample);      void setSample(gig::Sample* sample);
30    
31        // When the user single clicked on a sample reference on this reference
32        // view dialog, then this signal is emitted and the dimension region editor
33        // shall select the respective, instrument, region and dimension region for
34        // further editing. The editor shall return true if selection was successful
35        // or should return false on errors.
36        sigc::signal<bool, gig::DimensionRegion*> dimension_region_selected;
37    
38        // implementation for abstract methods of interface class "ManagedDialog"
39        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->sampleRefsWindowX; }
40        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->sampleRefsWindowY; }
41        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->sampleRefsWindowW; }
42        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->sampleRefsWindowH; }
43    
44  protected:  protected:
45      gig::Sample* m_sample;      gig::Sample* m_sample;
46    
# Line 64  protected: Line 84  protected:
84      };      };
85    
86      Glib::RefPtr<RefsTreeStore>  m_refTreeModel;      Glib::RefPtr<RefsTreeStore>  m_refTreeModel;
87    
88        void onSelectionChanged();
89  };  };
90    
91  #endif // GIGEDIT_REFERENCESVIEW_H  #endif // GIGEDIT_REFERENCESVIEW_H

Legend:
Removed from v.2624  
changed lines
  Added in v.3068

  ViewVC Help
Powered by ViewVC