summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/functionconfig.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-26 13:27:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-26 13:27:29 +0200
commit2ef88a343443774e24154d5757f3c17b515db2f5 (patch)
tree31bd1eea04d53255f204050de0b4a2ba2474eeae /spline-widget/functionconfig.h
parent875a401f7d99a31f13ae901b445c930803473dbe (diff)
spline-widget: move more from header
Diffstat (limited to 'spline-widget/functionconfig.h')
-rw-r--r--spline-widget/functionconfig.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h
index cac3c65c..4db24b84 100644
--- a/spline-widget/functionconfig.h
+++ b/spline-widget/functionconfig.h
@@ -44,29 +44,21 @@ private:
volatile bool activep;
State cur, saved;
public:
- double maxInput() const { return max_x; }
- double maxOutput() const { return max_y; }
+ double maxInput() const;
+ double maxOutput() const;
Map();
Map(double maxx, double maxy);
float getValue(float x);
bool getLastPoint(QPointF& point);
void removePoint(int i);
- void removeAllPoints() {
- QMutexLocker foo(&_mutex);
- cur.input.clear();
- reload();
- }
+ void removeAllPoints();
void addPoint(QPointF pt);
void movePoint(int idx, QPointF pt);
const QList<QPointF> getPoints();
- void setMaxInput(double MaxInput) {
- max_x = MaxInput;
- }
- void setMaxOutput(double MaxOutput) {
- max_y = MaxOutput;
- }
+ void setMaxInput(double MaxInput);
+ void setMaxOutput(double MaxOutput);
void saveSettings(QSettings& settings, const QString& title);
void loadSettings(QSettings& settings, const QString& title);