/[svn]/qsampler/trunk/src/qsamplerChannelForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannelForm.cpp

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

revision 1461 by schoenebeck, Sun Oct 28 23:30:36 2007 UTC revision 1466 by capela, Thu Nov 1 19:25:10 2007 UTC
# Line 1  Line 1 
1    // qsamplerChannelForm.cpp
2    //
3    /****************************************************************************
4       Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.
5       Copyright (C) 2007, Christian Schoenebeck
6    
7       This program is free software; you can redistribute it and/or
8       modify it under the terms of the GNU General Public License
9       as published by the Free Software Foundation; either version 2
10       of the License, or (at your option) any later version.
11    
12       This program is distributed in the hope that it will be useful,
13       but WITHOUT ANY WARRANTY; without even the implied warranty of
14       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15       GNU General Public License for more details.
16    
17       You should have received a copy of the GNU General Public License along
18       with this program; if not, write to the Free Software Foundation, Inc.,
19       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20    
21    *****************************************************************************/
22    
23  #include "qsamplerChannelForm.h"  #include "qsamplerChannelForm.h"
24    
25  #include "qsamplerAbout.h"  #include "qsamplerAbout.h"
# Line 29  ChannelForm::ChannelForm(QWidget* parent Line 51  ChannelForm::ChannelForm(QWidget* parent
51    
52          // Try to restore normal window positioning.          // Try to restore normal window positioning.
53          adjustSize();          adjustSize();
54    
55            QObject::connect(ui.EngineNameComboBox,
56                    SIGNAL(activated(int)),
57                    SLOT(optionsChanged()));
58            QObject::connect(ui.InstrumentFileComboBox,
59                    SIGNAL(activated(const QString&)),
60                    SLOT(updateInstrumentName()));
61            QObject::connect(ui.InstrumentFileToolButton,
62                    SIGNAL(clicked()),
63                    SLOT(openInstrumentFile()));
64            QObject::connect(ui.InstrumentNrComboBox,
65                    SIGNAL(activated(int)),
66                    SLOT(optionsChanged()));
67            QObject::connect(ui.MidiDriverComboBox,
68                    SIGNAL(activated(const QString&)),
69                    SLOT(selectMidiDriver(const QString&)));
70            QObject::connect(ui.MidiDeviceComboBox,
71                    SIGNAL(activated(int)),
72                    SLOT(selectMidiDevice(int)));
73            QObject::connect(ui.MidiPortSpinBox,
74                    SIGNAL(valueChanged(int)),
75                    SLOT(optionsChanged()));
76            QObject::connect(ui.MidiChannelComboBox,
77                    SIGNAL(activated(int)),
78                    SLOT(optionsChanged()));
79            QObject::connect(ui.MidiMapComboBox,
80                    SIGNAL(activated(int)),
81                    SLOT(optionsChanged()));
82            QObject::connect(ui.AudioDriverComboBox,
83                    SIGNAL(activated(const QString&)),
84                    SLOT(selectAudioDriver(const QString&)));
85            QObject::connect(ui.AudioDeviceComboBox,
86                    SIGNAL(activated(int)),
87                    SLOT(selectAudioDevice(int)));
88            QObject::connect(ui.OkPushButton,
89                    SIGNAL(clicked()),
90                    SLOT(accept()));
91            QObject::connect(ui.CancelPushButton,
92                    SIGNAL(clicked()),
93                    SLOT(reject()));
94            QObject::connect(ui.MidiDeviceToolButton,
95                    SIGNAL(clicked()),
96                    SLOT(setupMidiDevice()));
97            QObject::connect(ui.AudioDeviceToolButton,
98                    SIGNAL(clicked()),
99                    SLOT(setupAudioDevice()));
100  }  }
101    
102  ChannelForm::~ChannelForm() {  ChannelForm::~ChannelForm() {
# Line 664  void ChannelForm::stabilizeForm (void) Line 732  void ChannelForm::stabilizeForm (void)
732    
733    
734  } // namespace QSampler  } // namespace QSampler
735    
736    
737    // end of qsamplerChannelForm.cpp

Legend:
Removed from v.1461  
changed lines
  Added in v.1466

  ViewVC Help
Powered by ViewVC