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

Diff of /qsampler/trunk/src/qsamplerInstrumentListForm.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    // qsamplerInstrumentListForm.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 "qsamplerInstrumentListForm.h"  #include "qsamplerInstrumentListForm.h"
24    
25  #include "qsamplerMainForm.h"  #include "qsamplerMainForm.h"
# Line 21  InstrumentListForm::InstrumentListForm(Q Line 43  InstrumentListForm::InstrumentListForm(Q
43      ui.refreshInstrumentsAction->setShortcut(Qt::Key_F5);      ui.refreshInstrumentsAction->setShortcut(Qt::Key_F5);
44    
45      // Setup toolbar widgets.      // Setup toolbar widgets.
46      InstrumentToolbar = addToolBar(tr("MIDI Instruments"));      m_pMapComboBox = new QComboBox(ui.InstrumentToolbar);
     m_pMapComboBox = new QComboBox(InstrumentToolbar);  
47      m_pMapComboBox->setMinimumWidth(120);      m_pMapComboBox->setMinimumWidth(120);
48      m_pMapComboBox->setEnabled(false);      m_pMapComboBox->setEnabled(false);
49      QToolTip::add(m_pMapComboBox, tr("Instrument Map"));      QToolTip::add(m_pMapComboBox, tr("Instrument Map"));
50    
51      InstrumentToolbar->addSeparator();      ui.InstrumentToolbar->addSeparator();
52      ui.newInstrumentAction->addTo(InstrumentToolbar);      ui.newInstrumentAction->addTo(ui.InstrumentToolbar);
53      ui.editInstrumentAction->addTo(InstrumentToolbar);      ui.editInstrumentAction->addTo(ui.InstrumentToolbar);
54      ui.deleteInstrumentAction->addTo(InstrumentToolbar);      ui.deleteInstrumentAction->addTo(ui.InstrumentToolbar);
55      InstrumentToolbar->addSeparator();      ui.InstrumentToolbar->addSeparator();
56      ui.refreshInstrumentsAction->addTo(InstrumentToolbar);      ui.refreshInstrumentsAction->addTo(ui.InstrumentToolbar);
57    
58      ui.InstrumentTable->setModel(&model);      ui.InstrumentTable->setModel(&model);
59      //ui.InstrumentTable->setDelegate(delegate);      //ui.InstrumentTable->setDelegate(delegate);
# Line 41  InstrumentListForm::InstrumentListForm(Q Line 62  InstrumentListForm::InstrumentListForm(Q
62                  SIGNAL(activated(int)),                  SIGNAL(activated(int)),
63                  SLOT(activateMap(int)));                  SLOT(activateMap(int)));
64    
65      connect(          QObject::connect(
66          ui.refreshInstrumentsAction,                  ui.refreshInstrumentsAction,
67          SIGNAL(triggered()), SLOT(refreshInstruments(void))                  SIGNAL(triggered()),
68                    SLOT(refreshInstruments(void))
69      );      );
70  }  }
71    
# Line 125  void InstrumentListForm::activateMap ( i Line 147  void InstrumentListForm::activateMap ( i
147  }  }
148    
149  } // namespace QSampler  } // namespace QSampler
150    
151    
152    // end of qsamplerInstrumentListForm.cpp

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

  ViewVC Help
Powered by ViewVC