/[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 1558 by capela, Thu Dec 6 09:35:33 2007 UTC revision 1667 by schoenebeck, Mon Feb 4 23:24:19 2008 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck     Copyright (C) 2007, 2008 Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 613  void DeviceForm::deviceListViewContextMe Line 613  void DeviceForm::deviceListViewContextMe
613          bool bClient = (pMainForm->client() != NULL);          bool bClient = (pMainForm->client() != NULL);
614          bool bEnabled = (pItem != NULL);          bool bEnabled = (pItem != NULL);
615          pAction = menu.addAction(          pAction = menu.addAction(
616                  QIcon(":/qsampler/pixmaps/deviceCreate.png"),                  QIcon(":/icons/deviceCreate.png"),
617                  tr("&Create device"), this, SLOT(createDevice()));                  tr("&Create device"), this, SLOT(createDevice()));
618          pAction->setEnabled(bEnabled || (bClient && m_bNewDevice));          pAction->setEnabled(bEnabled || (bClient && m_bNewDevice));
619          pAction = menu.addAction(          pAction = menu.addAction(
620                  QIcon(":/qsampler/pixmaps/deviceDelete.png"),                  QIcon(":/icons/deviceDelete.png"),
621                  tr("&Delete device"), this, SLOT(deleteDevice()));                  tr("&Delete device"), this, SLOT(deleteDevice()));
622          pAction->setEnabled(bEnabled && !m_bNewDevice);          pAction->setEnabled(bEnabled && !m_bNewDevice);
623          menu.addSeparator();          menu.addSeparator();
624          pAction = menu.addAction(          pAction = menu.addAction(
625                  QIcon(":/qsampler/pixmaps/formRefresh.png"),                  QIcon(":/icons/formRefresh.png"),
626                  tr("&Refresh"), this, SLOT(refreshDevices()));                  tr("&Refresh"), this, SLOT(refreshDevices()));
627          pAction->setEnabled(bClient);          pAction->setEnabled(bClient);
628    

Legend:
Removed from v.1558  
changed lines
  Added in v.1667

  ViewVC Help
Powered by ViewVC