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

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

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

revision 2616 by schoenebeck, Tue Jun 10 20:20:21 2014 UTC revision 2894 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC
# Line 1  Line 1 
1  /*  /*
2      Copyright (c) 2014 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 20  Line 20 
20  #include <gtkmm/scrolledwindow.h>  #include <gtkmm/scrolledwindow.h>
21    
22  #include "wrapLabel.hh"  #include "wrapLabel.hh"
23    #include "ManagedWindow.h"
24    
25  /**  /**
26   * @brief Modal dialog which allows to merge instruments.   * @brief Modal dialog which allows to merge instruments.
# Line 31  Line 32 
32   * If the user successfully combined instruments in this dialog, then   * If the user successfully combined instruments in this dialog, then
33   * newCombinedInstrument() will return a pointer to that new instrument.   * newCombinedInstrument() will return a pointer to that new instrument.
34   */   */
35  class CombineInstrumentsDialog : public Gtk::Dialog {  class CombineInstrumentsDialog : public ManagedDialog {
36  public:  public:
37      CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig);      CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig);
38      bool fileWasChanged() const;      bool fileWasChanged() const;
39      gig::Instrument* newCombinedInstrument() const;      gig::Instrument* newCombinedInstrument() const;
40    
41        // implementation for abstract methods of interface class "ManagedDialog"
42        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->combineInstrumentsWindowX; }
43        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->combineInstrumentsWindowY; }
44        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->combineInstrumentsWindowW; }
45        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->combineInstrumentsWindowH; }
46    
47  protected:  protected:
48      gig::File* m_gig;      gig::File* m_gig;
49      bool m_fileWasChanged;      bool m_fileWasChanged;

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

  ViewVC Help
Powered by ViewVC