Marlin  1.10.0
 All Classes Namespaces Functions Variables Enumerations Friends Pages
icoldelegate.h
1 #ifndef ICOLDELEGATE_H
2 #define ICOLDELEGATE_H
3 
11 #include <QItemDelegate>
12 
13 #include "marlin/CCProcessor.h"
14 #include "marlin/MarlinSteerCheck.h"
15 
16 class QTableWidget;
17 
18 using namespace marlin;
19 
20 class IColDelegate : public QItemDelegate
21 {
22  Q_OBJECT
23 
24 public:
25  IColDelegate(CCProcessor* p, MarlinSteerCheck* msc, const QString& name, const QString& type, QObject *parent = 0);
26 
27  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
28  void setEditorData(QWidget *editor, const QModelIndex &index) const;
29  void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
30 
31 public slots:
32  void addCollection();
33  void remCollection();
34 
35 private:
36  std::string _name;
37  std::string _type;
38  CCProcessor* _p;
39  MarlinSteerCheck* _msc;
40  QTableWidget* _parent;
41 };
42 
43 #endif
this class is a Marlin Steering File consistency check Tool.
Definition: MarlinSteerCheck.h:72
handles information about marlin processors and their collections needed by MarlinSteerCheck ...
Definition: CCProcessor.h:39
Definition: icoldelegate.h:20