]> git.cworth.org Git - apitrace/blobdiff - gui/argumentseditor.h
Start working on trace editing
[apitrace] / gui / argumentseditor.h
diff --git a/gui/argumentseditor.h b/gui/argumentseditor.h
new file mode 100644 (file)
index 0000000..bcaefcc
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef ARGUMENTSEDITOR_H
+#define ARGUMENTSEDITOR_H
+
+#include "ui_argumentseditor.h"
+#include <QStandardItemModel>
+#include <QWidget>
+
+class ApiTraceCall;
+
+class ArgumentsEditor : public QWidget
+{
+    Q_OBJECT
+public:
+    ArgumentsEditor(QWidget *parent=0);
+    ~ArgumentsEditor();
+
+
+    void setCall(ApiTraceCall *call);
+    ApiTraceCall *call() const;
+
+signals:
+    void argumentsEdited(ApiTraceCall *call);
+
+private:
+    void init();
+    void setupCall();
+    void setupShaderEditor(const QList<QVariant> &sources);
+private:
+    Ui_ArgumentsEditor m_ui;
+    QStandardItemModel *m_model;
+
+    ApiTraceCall *m_call;
+};
+
+#endif