/[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 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_COMBINEINSTRUMENTSDIALOG  #ifndef GIGEDIT_COMBINEINSTRUMENTSDIALOG
9  #define GIGEDIT_COMBINEINSTRUMENTSDIALOG  #define GIGEDIT_COMBINEINSTRUMENTSDIALOG
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/buttonbox.h>  #include <gtkmm/buttonbox.h>
18  #include <gtkmm/window.h>  #include <gtkmm/window.h>
# Line 20  Line 24 
24  #include <gtkmm/scrolledwindow.h>  #include <gtkmm/scrolledwindow.h>
25    
26  #include "wrapLabel.hh"  #include "wrapLabel.hh"
27    #include "ManagedWindow.h"
28    
29  /**  /**
30   * @brief Modal dialog which allows to merge instruments.   * @brief Modal dialog which allows to merge instruments.
# Line 31  Line 36 
36   * If the user successfully combined instruments in this dialog, then   * If the user successfully combined instruments in this dialog, then
37   * newCombinedInstrument() will return a pointer to that new instrument.   * newCombinedInstrument() will return a pointer to that new instrument.
38   */   */
39  class CombineInstrumentsDialog : public Gtk::Dialog {  class CombineInstrumentsDialog : public ManagedDialog {
40  public:  public:
41      CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig);      CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig);
42      bool fileWasChanged() const;      bool fileWasChanged() const;
43      gig::Instrument* newCombinedInstrument() const;      gig::Instrument* newCombinedInstrument() const;
44    
45        // implementation for abstract methods of interface class "ManagedDialog"
46        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->combineInstrumentsWindowX; }
47        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->combineInstrumentsWindowY; }
48        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->combineInstrumentsWindowW; }
49        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->combineInstrumentsWindowH; }
50    
51  protected:  protected:
52      gig::File* m_gig;      gig::File* m_gig;
53      bool m_fileWasChanged;      bool m_fileWasChanged;

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

  ViewVC Help
Powered by ViewVC