COPASI API  4.16.103
CQPlotEditWidget.h
Go to the documentation of this file.
1 // Copyright (C) 2012 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef CQ_PLOT_EDIT_WIDGET_H
7 #define CQ_PLOT_EDIT_WIDGET_H
8 
9 #include <QtGui/QWidget>
10 
11 class CPlotItem;
12 class CModel;
13 
14 class CQPlotEditWidget : public QWidget
15 {
16 public:
17  CQPlotEditWidget(QWidget* parent = NULL, Qt::WindowFlags fl = 0);
18  virtual ~CQPlotEditWidget();
19 
20  virtual bool LoadFromCurveSpec(const CPlotItem * curve) = 0;
21  virtual bool SaveToCurveSpec(CPlotItem * curve, const CPlotItem *original = NULL) const = 0;
22  virtual void setModel(const CModel * model);
23 
24  /**
25  * In multiple edit mode, we don't want to edit name & channels
26  */
27  virtual void setMultipleEditMode(bool mode) = 0;
28 
29 protected:
30  const CModel* mpModel;
31 };
32 
33 #endif //CQ_PLOT_EDIT_WIDGET_H
const CModel * mpModel
virtual void setModel(const CModel *model)
virtual bool SaveToCurveSpec(CPlotItem *curve, const CPlotItem *original=NULL) const =0
virtual bool LoadFromCurveSpec(const CPlotItem *curve)=0
virtual ~CQPlotEditWidget()
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
virtual void setMultipleEditMode(bool mode)=0
Definition: CModel.h:50
CQPlotEditWidget(QWidget *parent=NULL, Qt::WindowFlags fl=0)