]> git.cworth.org Git - vogl/blob - src/vogleditor/vogleditor_qtrimdialog.h
UI: Add ability to trim files directly from vogleditor
[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 namespace Ui {
8 class vogleditor_QTrimDialog;
9 }
10
11 class vogleditor_QTrimDialog : public QDialog
12 {
13     Q_OBJECT
14
15 public:
16     explicit vogleditor_QTrimDialog(QString parentTraceFile, uint maxFrameIndex, uint maxTrimLength, QWidget *parent = 0);
17     ~vogleditor_QTrimDialog();
18
19     QString trim_frame()
20     {
21         return m_trim_frame;
22     }
23
24     QString trim_len()
25     {
26         return m_trim_len;
27     }
28
29     QString trim_file()
30     {
31         return m_trim_file;
32     }
33
34 private slots:
35     void on_buttonBox_accepted();
36
37     void on_buttonBox_rejected();
38
39     void on_pickTrimFileButton_pressed();
40
41     void on_trimLenLineEdit_textChanged(const QString &arg1);
42
43     void on_trimFrameLineEdit_textChanged(const QString &arg1);
44
45 private:
46     Ui::vogleditor_QTrimDialog *ui;
47     uint m_maxFrameIndex;
48     uint m_maxTrimLength;
49     QString m_trim_frame;
50     QString m_trim_len;
51     QString m_trim_file;
52 };
53
54 #endif // VOGLEDITOR_QTRIMDIALOG_H