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

Diff of /qsampler/trunk/src/qsamplerInstrumentForm.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 1474 by schoenebeck, Mon Nov 5 20:47:38 2007 UTC
# Line 1  Line 1 
1    // qsamplerInstrumentForm.cpp
2    //
3    /****************************************************************************
4       Copyright (C) 2003-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
18       along with this program; if not, write to the Free Software
19       Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20    
21    *****************************************************************************/
22    
23  #include "qsamplerInstrumentForm.h"  #include "qsamplerInstrumentForm.h"
24    
25  #include "qsamplerAbout.h"  #include "qsamplerAbout.h"
# Line 30  InstrumentForm::InstrumentForm(QWidget* Line 52  InstrumentForm::InstrumentForm(QWidget*
52    
53          // Try to restore normal window positioning.          // Try to restore normal window positioning.
54          adjustSize();          adjustSize();
55    
56    
57            QObject::connect(ui.MapComboBox,
58                    SIGNAL(activated(int)),
59                    SLOT(changed()));
60            QObject::connect(ui.BankSpinBox,
61                    SIGNAL(valueChanged(int)),
62                    SLOT(changed()));
63            QObject::connect(ui.ProgSpinBox,
64                    SIGNAL(valueChanged(int)),
65                    SLOT(changed()));
66            QObject::connect(ui.NameLineEdit,
67                    SIGNAL(textChanged(const QString&)),
68                    SLOT(nameChanged(const QString&)));
69            QObject::connect(ui.EngineNameComboBox,
70                    SIGNAL(activated(int)),
71                    SLOT(changed()));
72            QObject::connect(ui.InstrumentFileComboBox,
73                    SIGNAL(activated(const QString&)),
74                    SLOT(updateInstrumentName()));
75            QObject::connect(ui.InstrumentFileToolButton,
76                    SIGNAL(clicked()),
77                    SLOT(openInstrumentFile()));
78            QObject::connect(ui.InstrumentNrComboBox,
79                    SIGNAL(activated(int)),
80                    SLOT(instrumentNrChanged()));
81            QObject::connect(ui.VolumeSpinBox,
82                    SIGNAL(valueChanged(int)),
83                    SLOT(changed()));
84            QObject::connect(ui.LoadModeComboBox,
85                    SIGNAL(activated(int)),
86                    SLOT(changed()));
87            QObject::connect(ui.OkPushButton,
88                    SIGNAL(clicked()),
89                    SLOT(accept()));
90            QObject::connect(ui.CancelPushButton,
91                    SIGNAL(clicked()),
92                    SLOT(reject()));
93  }  }
94    
95  InstrumentForm::~InstrumentForm() {  InstrumentForm::~InstrumentForm() {
# Line 119  void InstrumentForm::setup ( qsamplerIns Line 179  void InstrumentForm::setup ( qsamplerIns
179          if (sEngineName.isEmpty())          if (sEngineName.isEmpty())
180                  sEngineName = qsamplerChannel::noEngineName();                  sEngineName = qsamplerChannel::noEngineName();
181          if (ui.EngineNameComboBox->findText(sEngineName,          if (ui.EngineNameComboBox->findText(sEngineName,
182                          Qt::MatchExactly | Qt::MatchCaseSensitive) == 0) {                          Qt::MatchExactly | Qt::MatchCaseSensitive) < 0) {
183                  ui.EngineNameComboBox->insertItem(sEngineName);                  ui.EngineNameComboBox->insertItem(sEngineName);
184          }          }
185          ui.EngineNameComboBox->setCurrentText(sEngineName);          ui.EngineNameComboBox->setCurrentText(sEngineName);
# Line 326  void InstrumentForm::stabilizeForm (void Line 386  void InstrumentForm::stabilizeForm (void
386  }  }
387    
388  } // namespace QSampler  } // namespace QSampler
389    
390    
391    // end of qsamplerInstrumentForm.cpp

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

  ViewVC Help
Powered by ViewVC