blob: 862d068bcd888bcae36ec890df9ccda29f47f26e [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);
James Benton0b65a2b2012-09-07 18:38:15 +010018 void showCall(int call);
James Bentonfc4f55a2012-08-08 17:09:07 +010019
20public slots:
James Bentonfc4f55a2012-08-08 17:09:07 +010021 void tableDoubleClicked(const QModelIndex& index);
James Benton0b65a2b2012-09-07 18:38:15 +010022 void graphSelectionChanged(SelectionState state);
James Bentonfc4f55a2012-08-08 17:09:07 +010023
24signals:
25 void jumpToCall(int call);
26
27private:
28 trace::Profile *m_profile;
29};
30
James Bentonfc4f55a2012-08-08 17:09:07 +010031#endif