X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fprofiledialog.h;fp=gui%2Fprofiledialog.h;h=9946efe6f643e92f4415c65917e5b91b9bc4df4e;hb=fc4f55a3193269f86c142219f5593dd8b8e9b3c8;hp=0000000000000000000000000000000000000000;hpb=b7634e4d276c25160a6df53dcedf422c2a01b037;p=apitrace diff --git a/gui/profiledialog.h b/gui/profiledialog.h new file mode 100644 index 0000000..9946efe --- /dev/null +++ b/gui/profiledialog.h @@ -0,0 +1,34 @@ +#ifndef PROFILEDIALOG_H +#define PROFILEDIALOG_H + +#include "ui_profiledialog.h" +#include + +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