James Benton | fc4f55a | 2012-08-08 17:09:07 +0100 | [diff] [blame] | 1 | #ifndef PROFILEDIALOG_H |
| 2 | #define PROFILEDIALOG_H |
| 3 | |
| 4 | #include "ui_profiledialog.h" |
| 5 | #include <QDialog> |
| 6 | |
James Benton | 66dc55d | 2012-08-10 15:55:51 +0100 | [diff] [blame] | 7 | namespace trace { struct Profile; } |
James Benton | fc4f55a | 2012-08-08 17:09:07 +0100 | [diff] [blame] | 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 | |
James Benton | b70a86a | 2012-08-28 18:41:43 +0100 | [diff] [blame] | 25 | void selectNone(); |
| 26 | void selectProgram(unsigned program); |
| 27 | void selectTime(int64_t start, int64_t end); |
James Benton | fc4f55a | 2012-08-08 17:09:07 +0100 | [diff] [blame] | 28 | |
| 29 | signals: |
| 30 | void jumpToCall(int call); |
| 31 | |
| 32 | private: |
| 33 | trace::Profile *m_profile; |
| 34 | }; |
| 35 | |
James Benton | 902626c | 2012-08-22 12:18:09 +0100 | [diff] [blame] | 36 | QString getTimeString(int64_t time, int64_t unitTime = 0); |
| 37 | |
James Benton | fc4f55a | 2012-08-08 17:09:07 +0100 | [diff] [blame] | 38 | #endif |