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

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

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

revision 2038 by capela, Thu Jan 7 18:42:26 2010 UTC revision 2039 by capela, Thu Jan 7 19:39:47 2010 UTC
# Line 142  void DeviceStatusForm::updateGUIPorts (v Line 142  void DeviceStatusForm::updateGUIPorts (v
142    
143          // rebuild the GUI          // rebuild the GUI
144          for (int i = 0; i < ports.size(); ++i) {          for (int i = 0; i < ports.size(); ++i) {
                 QLabel *pLabel  
                         = new QLabel(tr("MIDI port %1").arg(ports[i]->portName()));  
                 pLabel->setToolTip(tr("Device ID %1").arg(ports[i]->portID()));  
                 pLayout->addWidget(pLabel, i, 0, Qt::AlignLeft);  
145                  MidiActivityLED *pLED = new MidiActivityLED();                  MidiActivityLED *pLED = new MidiActivityLED();
146                  m_midiActivityLEDs.push_back(pLED);                  m_midiActivityLEDs.push_back(pLED);
147                  pLayout->addWidget(pLED, i, 1);                  pLayout->addWidget(pLED, i, 0);
148                    QLabel *pLabel = new QLabel(
149                            m_pDevice->deviceTypeName()
150                            + ' ' + m_pDevice->driverName()
151                            + ' ' + ports[i]->portName());
152                    pLayout->addWidget(pLabel, i, 1, Qt::AlignLeft);
153          }          }
154  }  }
155    
# Line 223  void DeviceStatusForm::onDevicesChanged Line 224  void DeviceStatusForm::onDevicesChanged
224                  }                  }
225                  // create status forms for new devices                  // create status forms for new devices
226                  std::set<int>::iterator it = deviceIDs.begin();                  std::set<int>::iterator it = deviceIDs.begin();
227                  for ( ; it != deviceIDs.end(); ++iter) {                  for ( ; it != deviceIDs.end(); ++it) {
228                          if (g_instances.find(*it) == g_instances.end()) {                          if (g_instances.find(*it) == g_instances.end()) {
229                                  // What style do we create these forms?                                  // What style do we create these forms?
230                                  Qt::WindowFlags wflags = Qt::Window                                  Qt::WindowFlags wflags = Qt::Window

Legend:
Removed from v.2038  
changed lines
  Added in v.2039

  ViewVC Help
Powered by ViewVC