blob: 22ef066f05a25377a0c6fd9e2b2e650048f5f174 [file] [log] [blame]
James Bentonfc4f55a2012-08-08 17:09:07 +01001#ifndef PROFILEDIALOG_H
2#define PROFILEDIALOG_H
3
4#include "ui_profiledialog.h"
5#include <QDialog>
6
James Benton66dc55d2012-08-10 15:55:51 +01007namespace trace { struct Profile; }
James Bentonfc4f55a2012-08-08 17:09:07 +01008
9class ProfileDialog : public QDialog, public Ui_ProfileDialog
10{
11 Q_OBJECT
12
13public:
14 ProfileDialog(QWidget *parent = 0);
15 ~ProfileDialog();
16
17 void setProfile(trace::Profile* profile);
18
19public slots:
20 void setVerticalScrollMax(int max);
21 void setHorizontalScrollMax(int max);
22
23 void tableDoubleClicked(const QModelIndex& index);
24
James Bentonb70a86a2012-08-28 18:41:43 +010025 void selectNone();
26 void selectProgram(unsigned program);
27 void selectTime(int64_t start, int64_t end);
James Bentonfc4f55a2012-08-08 17:09:07 +010028
29signals:
30 void jumpToCall(int call);
31
32private:
33 trace::Profile *m_profile;
34};
35
James Benton902626c2012-08-22 12:18:09 +010036QString getTimeString(int64_t time, int64_t unitTime = 0);
37
James Bentonfc4f55a2012-08-08 17:09:07 +010038#endif