/[svn]/qsampler/trunk/src/qsamplerDeviceForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDeviceForm.ui.h

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

revision 431 by capela, Tue Mar 8 20:12:08 2005 UTC revision 432 by capela, Wed Mar 9 11:33:27 2005 UTC
# Line 366  void qsamplerDeviceForm::selectDevice (v Line 366  void qsamplerDeviceForm::selectDevice (v
366  }  }
367    
368    
369    // parameter value change slot.
370    void qsamplerDeviceForm::changeValue ( int iRow, int iCol )
371    {
372            //
373            //  TODO: Device parameter change...
374            //
375            m_pMainForm->appendMessages("qsamplerDeviceForm::changeValue()");
376            
377            QListViewItem *pItem = DeviceListView->selectedItem();
378            if (pItem == NULL || pItem->rtti() != QSAMPLER_DEVICE_ITEM)
379                    return;
380    
381            qsamplerDevice& device = ((qsamplerDeviceItem *) pItem)->device();
382    
383            // Table 3rd column has the parameter name;
384            qsamplerDeviceParamMap& params = device.params();
385            QString sParam = DeviceParamTable->text(iRow, 2);
386            params[sParam].value = DeviceParamTable->text(iRow, iCol);
387    
388            m_iDirtyCount++;
389            stabilizeForm();
390    }
391    
392    
393  // Stabilize current form state.  // Stabilize current form state.
394  void qsamplerDeviceForm::stabilizeForm (void)  void qsamplerDeviceForm::stabilizeForm (void)
395  {  {

Legend:
Removed from v.431  
changed lines
  Added in v.432

  ViewVC Help
Powered by ViewVC