/[svn]/qsampler/trunk/src/qsamplerDevice.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDevice.h

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

revision 1507 by capela, Tue Nov 20 16:48:04 2007 UTC revision 1508 by schoenebeck, Thu Nov 22 02:48:41 2007 UTC
# Line 246  private: Line 246  private:
246  struct DeviceParameterRow {  struct DeviceParameterRow {
247      QString             name;      QString             name;
248      qsamplerDeviceParam param;      qsamplerDeviceParam param;
249        bool                alive; // whether these params refer to an existing device or for a device that is yet to be created
250  };  };
251    
252  // so we can use it i.e. through QVariant  // so we can use it i.e. through QVariant
# Line 262  class AbstractDeviceParamModel : public Line 263  class AbstractDeviceParamModel : public
263          // overridden methods from subclass(es)          // overridden methods from subclass(es)
264          int rowCount(const QModelIndex& parent = QModelIndex()) const;          int rowCount(const QModelIndex& parent = QModelIndex()) const;
265          int columnCount(const QModelIndex& parent = QModelIndex() ) const;          int columnCount(const QModelIndex& parent = QModelIndex() ) const;
         QVariant data(const QModelIndex &index, int role) const;  
266          QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;          QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
267          Qt::ItemFlags flags(const QModelIndex& index) const;          Qt::ItemFlags flags(const QModelIndex& index) const;
268    
# Line 284  class DeviceParamModel : public Abstract Line 284  class DeviceParamModel : public Abstract
284          DeviceParamModel(QObject* parent = 0);          DeviceParamModel(QObject* parent = 0);
285    
286          // overridden methods from subclass(es)          // overridden methods from subclass(es)
287            QVariant data(const QModelIndex &index, int role) const;
288          bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);          bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
289          void clear();          void clear();
290    
# Line 303  class PortParamModel : public AbstractDe Line 304  class PortParamModel : public AbstractDe
304          PortParamModel(QObject* parent = 0);          PortParamModel(QObject* parent = 0);
305    
306          // overridden methods from subclass(es)          // overridden methods from subclass(es)
307            QVariant data(const QModelIndex &index, int role) const;
308          bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);          bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
309          void clear();          void clear();
310    

Legend:
Removed from v.1507  
changed lines
  Added in v.1508

  ViewVC Help
Powered by ViewVC