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

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

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

revision 1464 by capela, Thu Nov 1 17:14:21 2007 UTC revision 1470 by schoenebeck, Sun Nov 4 23:37:47 2007 UTC
# Line 55  DeviceForm::DeviceForm(QWidget* parent, Line 55  DeviceForm::DeviceForm(QWidget* parent,
55          refreshDevices();          refreshDevices();
56          // Try to restore normal window positioning.          // Try to restore normal window positioning.
57          adjustSize();          adjustSize();
58    
59            QObject::connect(ui.DeviceListView,
60                    SIGNAL(itemSelectionChanged()),
61                    SLOT(selectDevice()));
62            QObject::connect(ui.DeviceListView,
63                    SIGNAL(customContextMenuRequested(const QPoint&)),
64                    SLOT(deviceListViewContextMenu(const QPoint&)));
65            QObject::connect(ui.RefreshDevicesPushButton,
66                    SIGNAL(clicked()),
67                    SLOT(refreshDevices()));
68            QObject::connect(ui.DriverNameComboBox,
69                    SIGNAL(activated(const QString&)),
70                    SLOT(selectDriver(const QString&)));
71            QObject::connect(ui.DevicePortComboBox,
72                    SIGNAL(activated(int)),
73                    SLOT(selectDevicePort(int)));
74            QObject::connect(ui.CreateDevicePushButton,
75                    SIGNAL(clicked()),
76                    SLOT(createDevice()));
77            QObject::connect(ui.DeleteDevicePushButton,
78                    SIGNAL(clicked()),
79                    SLOT(deleteDevice()));
80            QObject::connect(ui.ClosePushButton,
81                    SIGNAL(clicked()),
82                    SLOT(close()));
83  }  }
84    
85  DeviceForm::~DeviceForm() {  DeviceForm::~DeviceForm() {
# Line 528  void DeviceForm::changeDevicePortParam ( Line 553  void DeviceForm::changeDevicePortParam (
553    
554    
555  // Device list view context menu handler.  // Device list view context menu handler.
556  void DeviceForm::contextMenu ( QTreeWidgetItem* pItem, const QPoint& pos, int )  void DeviceForm::deviceListViewContextMenu ( const QPoint& pos )
557  {  {
558          MainForm *pMainForm = MainForm::getInstance();          MainForm *pMainForm = MainForm::getInstance();
559          if (pMainForm == NULL)          if (pMainForm == NULL)
560                  return;                  return;
561    
562            QTreeWidgetItem* pItem = ui.DeviceListView->itemAt(pos);
563            if (pItem == NULL)
564                    return;
565    
566          int iItemID;          int iItemID;
567    
568          // Build the device context menu...          // Build the device context menu...

Legend:
Removed from v.1464  
changed lines
  Added in v.1470

  ViewVC Help
Powered by ViewVC