summaryrefslogtreecommitdiff
path: root/muse2/awl/posedit.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2012-03-19 15:13:58 +0000
committerFlorian Jung <flo@windfisch.org>2012-03-19 15:13:58 +0000
commit7200b77f549aef6e92170f110aeda8f5433a3dfc (patch)
tree4643738bbfdc59aa34ba3e1f682fac9c348d9bc2 /muse2/awl/posedit.h
parent2800c0e742bdc9d141f6e8c77dbfba1831e8efb2 (diff)
merged with release_2_0
Diffstat (limited to 'muse2/awl/posedit.h')
-rw-r--r--muse2/awl/posedit.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/muse2/awl/posedit.h b/muse2/awl/posedit.h
index 65bc48de..b834be3c 100644
--- a/muse2/awl/posedit.h
+++ b/muse2/awl/posedit.h
@@ -44,7 +44,10 @@ class PosEdit : public QAbstractSpinBox
bool _smpte;
MusECore::Pos _pos;
bool initialized;
-
+ bool _returnMode;
+ int cur_minute, cur_sec, cur_frame, cur_subframe;
+ int cur_bar, cur_beat, cur_tick;
+
QIntValidator* validator;
virtual void paintEvent(QPaintEvent* event);
@@ -52,10 +55,9 @@ class PosEdit : public QAbstractSpinBox
virtual StepEnabled stepEnabled() const;
virtual void fixup(QString& input) const;
virtual QValidator::State validate(QString&, int&) const;
- void updateValue();
int curSegment() const;
virtual bool event(QEvent*);
- void finishEdit();
+ bool finishEdit();
signals:
void valueChanged(const MusECore::Pos&);
@@ -74,13 +76,14 @@ class PosEdit : public QAbstractSpinBox
public:
PosEdit(QWidget* parent = 0);
- ~PosEdit();
QSize sizeHint() const;
MusECore::Pos pos() const { return _pos; }
void setSmpte(bool);
bool smpte() const { return _smpte; }
- // void* operator new(size_t); // What was this for? Tim.
+ void setReturnMode(bool v) { _returnMode = v; }
+ bool returnMode() const { return _returnMode; }
+ void updateValue();
};
}