summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/SimpleEventEditDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/SimpleEventEditDialog.h')
-rw-r--r--src/gui/dialogs/SimpleEventEditDialog.h134
1 files changed, 134 insertions, 0 deletions
diff --git a/src/gui/dialogs/SimpleEventEditDialog.h b/src/gui/dialogs/SimpleEventEditDialog.h
new file mode 100644
index 0000000..60b8441
--- /dev/null
+++ b/src/gui/dialogs/SimpleEventEditDialog.h
@@ -0,0 +1,134 @@
+
+/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
+
+/*
+ Rosegarden
+ A MIDI and audio sequencer and musical notation editor.
+
+ This program is Copyright 2000-2008
+ Guillaume Laurent <[email protected]>,
+ Chris Cannam <[email protected]>,
+ Richard Bown <[email protected]>
+
+ The moral rights of Guillaume Laurent, Chris Cannam, and Richard
+ Bown to claim authorship of this work have been asserted.
+
+ Other copyrights also apply to some parts of this work. Please
+ see the AUTHORS file and individual file headers for details.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version. See the file
+ COPYING included with this distribution for more information.
+*/
+
+#ifndef _RG_SIMPLEEVENTEDITDIALOG_H_
+#define _RG_SIMPLEEVENTEDITDIALOG_H_
+
+#include "base/Event.h"
+#include <string>
+#include <kdialogbase.h>
+
+
+class QWidget;
+class QString;
+class QSpinBox;
+class QPushButton;
+class QLineEdit;
+class QLabel;
+class QGroupBox;
+class QCheckBox;
+class KComboBox;
+
+
+namespace Rosegarden
+{
+
+class RosegardenGUIDoc;
+
+
+class SimpleEventEditDialog : public KDialogBase
+{
+ Q_OBJECT
+public:
+ SimpleEventEditDialog(QWidget *parent,
+ RosegardenGUIDoc *doc,
+ const Event &event,
+ bool inserting = false); // inserting or editing
+
+ bool isModified() const { return m_modified; }
+ Event getEvent();
+
+ // Setup the dialog for a new event type
+ void setupForEvent();
+
+public slots:
+ void slotEventTypeChanged(int value);
+ void slotAbsoluteTimeChanged(int value);
+ void slotDurationChanged(int value);
+ void slotNotationAbsoluteTimeChanged(int value);
+ void slotNotationDurationChanged(int value);
+ void slotPitchChanged(int value);
+ void slotVelocityChanged(int value);
+ void slotMetaChanged(const QString &);
+ void slotEditAbsoluteTime();
+ void slotEditNotationAbsoluteTime();
+ void slotEditDuration();
+ void slotEditNotationDuration();
+ void slotLockNotationChanged();
+ void slotEditPitch();
+ void slotSysexLoad();
+ void slotSysexSave();
+
+protected:
+ Event m_event;
+ RosegardenGUIDoc *m_doc;
+
+ std::string m_type;
+ timeT m_absoluteTime;
+ timeT m_notationAbsoluteTime;
+ timeT m_duration;
+ timeT m_notationDuration;
+
+ KComboBox *m_typeCombo;
+ QLabel *m_typeLabel;
+
+ QLabel *m_timeLabel;
+ QLabel *m_durationLabel;
+ QLabel *m_pitchLabel;
+ QLabel *m_velocityLabel;
+ QLabel *m_metaLabel;
+ QLabel *m_controllerLabel;
+ QLabel *m_controllerLabelValue;
+
+ QSpinBox *m_timeSpinBox;
+ QSpinBox *m_durationSpinBox;
+ QSpinBox *m_pitchSpinBox;
+ QSpinBox *m_velocitySpinBox;
+
+ QPushButton *m_timeEditButton;
+ QPushButton *m_durationEditButton;
+ QPushButton *m_pitchEditButton;
+ QPushButton *m_sysexLoadButton;
+ QPushButton *m_sysexSaveButton;
+
+ QGroupBox *m_notationGroupBox;
+ QLabel *m_notationTimeLabel;
+ QLabel *m_notationDurationLabel;
+ QSpinBox *m_notationTimeSpinBox;
+ QSpinBox *m_notationDurationSpinBox;
+ QPushButton *m_notationTimeEditButton;
+ QPushButton *m_notationDurationEditButton;
+ QCheckBox *m_lockNotationValues;
+
+ QLineEdit *m_metaEdit;
+
+ bool m_modified;
+};
+
+
+
+}
+
+#endif