ModelEdit window splitted (one file per tab). Templates/Wizard still have to be re-introduced, but in a menu instead of a Model tab

This commit is contained in:
Bertrand Songis
2013-12-19 19:19:44 +01:00
parent 39a4b8e39d
commit b802bc5db2
68 changed files with 14773 additions and 32446 deletions
+47
View File
@@ -0,0 +1,47 @@
#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