]> git.cworth.org Git - vogl/blob - src/vogleditor/vogleditor_qtrimdialog.h
UI: Update trim dialog so that it does not accept invalid input.
[vogl] / src / vogleditor / vogleditor_qtrimdialog.h
1 #ifndef VOGLEDITOR_QTRIMDIALOG_H
2 #define VOGLEDITOR_QTRIMDIALOG_H
3
4 #include <QDialog>
5 #include <QString>
6
7 class QAbstractButton;
8
9 namespace Ui {
10 class vogleditor_QTrimDialog;
11 }
12
13 class vogleditor_QTrimDialog : public QDialog
14 {
15     Q_OBJECT
16
17 public:
18     explicit vogleditor_QTrimDialog(QString parentTraceFile, uint maxFrameIndex, uint maxTrimLength, QWidget *parent = 0);
19     ~vogleditor_QTrimDialog();
20
21     QString trim_frame()
22     {
23         return m_trim_frame;
24     }
25
26     QString trim_len()
27     {
28         return m_trim_len;
29     }
30
31     QString trim_file()
32     {
33         return m_trim_file;
34     }
35
36 private slots:
37     void on_buttonBox_clicked(QAbstractButton *button);
38
39     void on_buttonBox_rejected();
40
41     void on_pickTrimFileButton_pressed();
42
43     void on_trimLenLineEdit_textChanged(const QString &arg1);
44
45     void on_trimFrameLineEdit_textChanged(const QString &arg1);
46
47 private:
48     Ui::vogleditor_QTrimDialog *ui;
49     uint m_maxFrameIndex;
50     uint m_maxTrimLength;
51     QString m_trim_frame;
52     QString m_trim_len;
53     QString m_trim_file;
54 };
55
56 #endif // VOGLEDITOR_QTRIMDIALOG_H