]> git.cworth.org Git - vogl/blobdiff - src/vogleditor/vogleditor_qtrimdialog.h
UI: Add ability to trim files directly from vogleditor
[vogl] / src / vogleditor / vogleditor_qtrimdialog.h
diff --git a/src/vogleditor/vogleditor_qtrimdialog.h b/src/vogleditor/vogleditor_qtrimdialog.h
new file mode 100644 (file)
index 0000000..a9ec3de
--- /dev/null
@@ -0,0 +1,54 @@
+#ifndef VOGLEDITOR_QTRIMDIALOG_H
+#define VOGLEDITOR_QTRIMDIALOG_H
+
+#include <QDialog>
+#include <QString>
+
+namespace Ui {
+class vogleditor_QTrimDialog;
+}
+
+class vogleditor_QTrimDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit vogleditor_QTrimDialog(QString parentTraceFile, uint maxFrameIndex, uint maxTrimLength, QWidget *parent = 0);
+    ~vogleditor_QTrimDialog();
+
+    QString trim_frame()
+    {
+        return m_trim_frame;
+    }
+
+    QString trim_len()
+    {
+        return m_trim_len;
+    }
+
+    QString trim_file()
+    {
+        return m_trim_file;
+    }
+
+private slots:
+    void on_buttonBox_accepted();
+
+    void on_buttonBox_rejected();
+
+    void on_pickTrimFileButton_pressed();
+
+    void on_trimLenLineEdit_textChanged(const QString &arg1);
+
+    void on_trimFrameLineEdit_textChanged(const QString &arg1);
+
+private:
+    Ui::vogleditor_QTrimDialog *ui;
+    uint m_maxFrameIndex;
+    uint m_maxTrimLength;
+    QString m_trim_frame;
+    QString m_trim_len;
+    QString m_trim_file;
+};
+
+#endif // VOGLEDITOR_QTRIMDIALOG_H