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

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

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

revision 2893 by persson, Sun Jan 12 19:37:55 2014 UTC revision 2894 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2013-2014 Andreas Persson   * Copyright (C) 2013-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 41  Line 41 
41    
42  #include "paramedit.h"  #include "paramedit.h"
43  #include "compat.h"  #include "compat.h"
44    #include "ManagedWindow.h"
45    
46  class MidiRuleCtrlTrigger : public Gtk::VBox,  class MidiRuleCtrlTrigger : public Gtk::VBox,
47                              public PropEditor<gig::MidiRuleCtrlTrigger> {                              public PropEditor<gig::MidiRuleCtrlTrigger> {
# Line 138  protected: Line 139  protected:
139  };  };
140    
141    
142  class MidiRules : public Gtk::Window,  class MidiRules : public ManagedWindow,
143                    public PropEditor<gig::Instrument> {                    public PropEditor<gig::Instrument> {
144  public:  public:
145      MidiRules();      MidiRules();
146      void set_instrument(gig::Instrument* instrument);      void set_instrument(gig::Instrument* instrument);
147    
148        // implementation for abstract methods of interface class "ManagedWindow"
149        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->midiRulesWindowX; }
150        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->midiRulesWindowY; }
151        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->midiRulesWindowW; }
152        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->midiRulesWindowH; }
153    
154  protected:  protected:
155      enum {      enum {
156          NONE = 0,          NONE = 0,

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

  ViewVC Help
Powered by ViewVC