summaryrefslogtreecommitdiff
path: root/gui/profiledialog.h
blob: b6c3f163455381a9e9a5cd0d22cf2d772ace4cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "ui_profiledialog.h"
#include <QDialog>

namespace trace { struct Profile; }

class ProfileDialog : public QDialog, public Ui_ProfileDialog
{
    Q_OBJECT

public:
    ProfileDialog(QWidget *parent = 0);
    ~ProfileDialog();
    
    void setProfile(trace::Profile* profile);
    void showCall(int call);

public slots:
    void tableDoubleClicked(const QModelIndex& index);
    void graphSelectionChanged(SelectionState state);

signals:
    void jumpToCall(int call);

private:
    trace::Profile *m_profile;
};