summaryrefslogtreecommitdiffstats
path: root/parts/valgrind/valgrind_dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'parts/valgrind/valgrind_dialog.h')
-rw-r--r--parts/valgrind/valgrind_dialog.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/parts/valgrind/valgrind_dialog.h b/parts/valgrind/valgrind_dialog.h
new file mode 100644
index 00000000..41c25afc
--- /dev/null
+++ b/parts/valgrind/valgrind_dialog.h
@@ -0,0 +1,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