diff options
Diffstat (limited to 'muse2/muse/widgets/noteinfo.h')
-rw-r--r-- | muse2/muse/widgets/noteinfo.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/muse2/muse/widgets/noteinfo.h b/muse2/muse/widgets/noteinfo.h index 56079f34..143f9d9b 100644 --- a/muse2/muse/widgets/noteinfo.h +++ b/muse2/muse/widgets/noteinfo.h @@ -26,10 +26,8 @@ namespace Awl { class PosEdit; - //class PitchEdit; }; -///class PosEdit; namespace MusECore { class Pos; } @@ -38,6 +36,8 @@ namespace MusEGui { class PitchEdit; class SpinBox; +class PixmapButton; + //--------------------------------------------------------- // NoteInfo @@ -46,35 +46,44 @@ class SpinBox; class NoteInfo : public QToolBar { Q_OBJECT - ///PosEdit* selTime; Awl::PosEdit* selTime; SpinBox* selLen; PitchEdit* selPitch; SpinBox* selVelOn; SpinBox* selVelOff; + PixmapButton* deltaButton; + bool _returnMode; bool deltaMode; - + bool _enabled; + void set_mode(); + + public: enum ValType {VAL_TIME, VAL_LEN, VAL_VELON, VAL_VELOFF, VAL_PITCH }; - //NoteInfo(QMainWindow* parent); NoteInfo(QWidget* parent = 0); void setValues(unsigned, int, int, int, int); void setDeltaMode(bool); - + bool isEnabled() const { return _enabled; } + void setReturnMode(bool v); + bool returnMode() const { return _returnMode; } + private slots: void lenChanged(int); void velOnChanged(int); void velOffChanged(int); void pitchChanged(int); void timeChanged(const MusECore::Pos&); + void deltaModeClicked(bool); public slots: void setValue(ValType, int); + void setEnabled(bool); signals: void valueChanged(MusEGui::NoteInfo::ValType, int); void returnPressed(); void escapePressed(); + void deltaModeChanged(bool); }; } // namespace MusEGui |