1 
2 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
3 
4 /*
5     Rosegarden
6     A MIDI and audio sequencer and musical notation editor.
7     Copyright 2000-2021 the Rosegarden development team.
8 
9     Other copyrights also apply to some parts of this work.  Please
10     see the AUTHORS file and individual file headers for details.
11 
12     This program is free software; you can redistribute it and/or
13     modify it under the terms of the GNU General Public License as
14     published by the Free Software Foundation; either version 2 of the
15     License, or (at your option) any later version.  See the file
16     COPYING included with this distribution for more information.
17 */
18 
19 #ifndef RG_TRIGGERSEGMENTDIALOG_H
20 #define RG_TRIGGERSEGMENTDIALOG_H
21 
22 #include "base/TriggerSegment.h"
23 #include <string>
24 #include <QDialog>
25 
26 
27 class QWidget;
28 class QCheckBox;
29 class QComboBox;
30 
31 
32 namespace Rosegarden
33 {
34 
35 class Composition;
36 
37 
38 class TriggerSegmentDialog : public QDialog
39 {
40     Q_OBJECT
41 
42 public:
43     TriggerSegmentDialog(QWidget *parent, Composition *);
44 
45     TriggerSegmentId getId() const;
46     bool getRetune() const;
47     std::string getTimeAdjust() const;
48 
49 public slots:
50     void accept() override;
51 
52 protected:
53     void setupFromConfig();
54 
55     Composition  *m_composition;
56     QComboBox                *m_segment;
57     QCheckBox                *m_retune;
58     QComboBox                *m_adjustTime;
59 };
60 
61 
62 }
63 
64 #endif
65