48 lines
971 B
C++
48 lines
971 B
C++
#ifndef CURVES_H
|
|
#define CURVES_H
|
|
|
|
#include "modelpanel.h"
|
|
#include <QSpinBox>
|
|
|
|
namespace Ui {
|
|
class Curves;
|
|
}
|
|
|
|
class Curves : public ModelPanel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Curves(QWidget *parent, ModelData & model);
|
|
virtual ~Curves();
|
|
|
|
virtual void update();
|
|
|
|
private slots:
|
|
void resetCurve();
|
|
void editCurve();
|
|
void plotCurve(bool checked);
|
|
void on_cname_LE_editingFinished();
|
|
void on_curvetype_CB_currentIndexChanged(int index);
|
|
void onPointEdited();
|
|
void onNodeMoved(int x, int y);
|
|
void onNodeFocus();
|
|
void onNodeUnfocus();
|
|
|
|
protected:
|
|
virtual void resizeEvent(QResizeEvent *event);
|
|
|
|
private:
|
|
Ui::Curves *ui;
|
|
int currentCurve;
|
|
bool visibleCurves[C9X_MAX_CURVES];
|
|
QSpinBox * spnx[C9X_MAX_POINTS];
|
|
QSpinBox * spny[C9X_MAX_POINTS];
|
|
void setCurrentCurve(int index);
|
|
void updateCurve();
|
|
void updateCurveType();
|
|
|
|
};
|
|
|
|
#endif // CURVES_H
|