/[svn]/gigedit/trunk/src/gigedit/mainwindow.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.cpp

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

revision 1582 by persson, Sat Dec 8 12:28:53 2007 UTC revision 1660 by schoenebeck, Sun Feb 3 00:19:55 2008 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 2006, 2007 Andreas Persson   * Copyright (C) 2006 - 2008 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 351  MainWindow::MainWindow() : Line 351  MainWindow::MainWindow() :
351      m_RegionChooser.signal_region_changed_signal().connect(      m_RegionChooser.signal_region_changed_signal().connect(
352          region_changed_signal.make_slot());          region_changed_signal.make_slot());
353    
354        note_on_signal.connect(
355            sigc::mem_fun(m_RegionChooser, &RegionChooser::on_note_on_event));
356        note_off_signal.connect(
357            sigc::mem_fun(m_RegionChooser, &RegionChooser::on_note_off_event));
358    
359      dimreg_all_regions.signal_toggled().connect(      dimreg_all_regions.signal_toggled().connect(
360          sigc::mem_fun(*this, &MainWindow::update_dimregs));          sigc::mem_fun(*this, &MainWindow::update_dimregs));
361      dimreg_all_dimregs.signal_toggled().connect(      dimreg_all_dimregs.signal_toggled().connect(
# Line 1043  InstrumentProps::InstrumentProps() Line 1048  InstrumentProps::InstrumentProps()
1048        eFineTune("Fine tune", -8400, 8400),        eFineTune("Fine tune", -8400, 8400),
1049        ePitchbendRange("Pitchbend range", 0, 12),        ePitchbendRange("Pitchbend range", 0, 12),
1050        ePianoReleaseMode("Piano release mode"),        ePianoReleaseMode("Piano release mode"),
1051        eDimensionKeyRangeLow("Dimension key range low"),        eDimensionKeyRangeLow("Keyswitching range low"),
1052        eDimensionKeyRangeHigh("Dimension key range high"),        eDimensionKeyRangeHigh("Keyswitching range high"),
1053        update_model(0)        update_model(0)
1054  {  {
1055      set_title("Instrument Properties");      set_title("Instrument Properties");
1056    
1057        eDimensionKeyRangeLow.set_tip(
1058            _("start of the keyboard area which should switch the "
1059              "\"keyswitching\" dimension")
1060        );
1061        eDimensionKeyRangeHigh.set_tip(
1062            _("end of the keyboard area which should switch the "
1063              "\"keyswitching\" dimension")
1064        );
1065    
1066      connect(eIsDrum, &InstrumentProps::set_IsDrum);      connect(eIsDrum, &InstrumentProps::set_IsDrum);
1067      connect(eMIDIBank, &InstrumentProps::set_MIDIBank);      connect(eMIDIBank, &InstrumentProps::set_MIDIBank);
1068      connect(eMIDIProgram, &InstrumentProps::set_MIDIProgram);      connect(eMIDIProgram, &InstrumentProps::set_MIDIProgram);
# Line 1737  sigc::signal<void, gig::DimensionRegion* Line 1751  sigc::signal<void, gig::DimensionRegion*
1751  sigc::signal<void, gig::DimensionRegion*>& MainWindow::signal_dimreg_changed() {  sigc::signal<void, gig::DimensionRegion*>& MainWindow::signal_dimreg_changed() {
1752      return dimreg_changed_signal;      return dimreg_changed_signal;
1753  }  }
1754    
1755    sigc::signal<void, int/*key*/, int/*velocity*/>& MainWindow::signal_note_on() {
1756        return note_on_signal;
1757    }
1758    
1759    sigc::signal<void, int/*key*/, int/*velocity*/>& MainWindow::signal_note_off() {
1760        return note_off_signal;
1761    }
1762    
1763    sigc::signal<void, int/*key*/, int/*velocity*/>& MainWindow::signal_keyboard_key_hit() {
1764        return m_RegionChooser.signal_keyboard_key_hit();
1765    }
1766    
1767    sigc::signal<void, int/*key*/, int/*velocity*/>& MainWindow::signal_keyboard_key_released() {
1768        return m_RegionChooser.signal_keyboard_key_released();
1769    }

Legend:
Removed from v.1582  
changed lines
  Added in v.1660

  ViewVC Help
Powered by ViewVC