blob: 41c25afc63f0a614002c4ccca49a685060165a87 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#ifndef _VALGRIND_DIALOG_H_
#define _VALGRIND_DIALOG_H_
#include <kdialogbase.h>
class KURLRequester;
class DialogWidget;
/**
*
* Harald Fernengel
**/
class ValgrindDialog : public KDialogBase
{
Q_OBJECT
public:
enum Type { Memcheck = 0, Calltree = 1 };
ValgrindDialog( Type type, QWidget* parent = 0 );
~ValgrindDialog();
// the app to check
QString executableName() const;
void setExecutable( const QString& url );
// command line parameters for the app
QString parameters() const;
void setParameters( const QString& params );
// name and/or path to the valgrind executable
QString valExecutable() const;
void setValExecutable( const QString& ve );
// command line parameters for valgrind
QString valParams() const;
void setValParams( const QString& params );
// name and/or path to the calltree executable
QString ctExecutable() const;
void setCtExecutable( const QString& ce );
// command line parameters for calltree
QString ctParams() const;
void setCtParams( const QString& params );
// name and/or path to the kcachegrind executable
QString kcExecutable() const;
void setKcExecutable( const QString& ke );
protected:
bool isNewValgrindVersion() const;
private:
DialogWidget *w;
Type m_type;
private slots:
void valgrindTextChanged();
};
#endif
|