]> git.cworth.org Git - apitrace/blobdiff - gui/profiledialog.h
Add gui support for trace profiling.
[apitrace] / gui / profiledialog.h
diff --git a/gui/profiledialog.h b/gui/profiledialog.h
new file mode 100644 (file)
index 0000000..9946efe
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef PROFILEDIALOG_H
+#define PROFILEDIALOG_H
+
+#include "ui_profiledialog.h"
+#include <QDialog>
+
+namespace trace { class Profile; }
+
+class ProfileDialog : public QDialog, public Ui_ProfileDialog
+{
+    Q_OBJECT
+
+public:
+    ProfileDialog(QWidget *parent = 0);
+    ~ProfileDialog();
+    
+    void setProfile(trace::Profile* profile);
+
+public slots:
+    void setVerticalScrollMax(int max);
+    void setHorizontalScrollMax(int max);
+
+    void tableDoubleClicked(const QModelIndex& index);
+
+    void selectionChanged(int64_t start, int64_t end);
+
+signals:
+    void jumpToCall(int call);
+
+private:
+    trace::Profile *m_profile;
+};
+
+#endif