]> git.cworth.org Git - apitrace/blob - gui/profiledialog.h
Combine timeline and histogram tabs.
[apitrace] / gui / profiledialog.h
1 #ifndef PROFILEDIALOG_H
2 #define PROFILEDIALOG_H
3
4 #include "ui_profiledialog.h"
5 #include <QDialog>
6
7 namespace trace { struct Profile; }
8
9 class ProfileDialog : public QDialog, public Ui_ProfileDialog
10 {
11     Q_OBJECT
12
13 public:
14     ProfileDialog(QWidget *parent = 0);
15     ~ProfileDialog();
16     
17     void setProfile(trace::Profile* profile);
18
19 public slots:
20     void setVerticalScrollMax(int max);
21     void setHorizontalScrollMax(int max);
22
23     void tableDoubleClicked(const QModelIndex& index);
24
25     void selectNone();
26     void selectProgram(unsigned program);
27     void selectTime(int64_t start, int64_t end);
28
29 signals:
30     void jumpToCall(int call);
31
32 private:
33     trace::Profile *m_profile;
34 };
35
36 QString getTimeString(int64_t time, int64_t unitTime = 0);
37
38 #endif