summaryrefslogtreecommitdiffstats
path: root/parts/valgrind/valgrind_dialog.h
blob: d3422b8058b36be8e1ed66b760c4bc7d0ca0f978 (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
63
 
#ifndef _VALGRIND_DIALOG_H_
#define _VALGRIND_DIALOG_H_

#include <kdialogbase.h>

class KURLRequester;
class DialogWidget;

/**
 * 
 * Harald Fernengel
 **/
class ValgrindDialog : public KDialogBase
{
    Q_OBJECT
  TQ_OBJECT
public:
  enum Type { Memcheck = 0, Calltree = 1 };
    
  ValgrindDialog( Type type, TQWidget* tqparent = 0 );
  ~ValgrindDialog();

  // the app to check
  TQString executableName() const;
  void setExecutable( const TQString& url );

  // command line parameters for the app
  TQString parameters() const;
  void setParameters( const TQString& params );

  // name and/or path to the valgrind executable
  TQString valExecutable() const;
  void setValExecutable( const TQString& ve );

  // command line parameters for valgrind
  TQString valParams() const;
  void setValParams( const TQString& params );
  
  // name and/or path to the calltree executable
  TQString ctExecutable() const;
  void setCtExecutable( const TQString& ce );
  
  // command line parameters for calltree
  TQString ctParams() const;
  void setCtParams( const TQString& params );

  // name and/or path to the kcachegrind executable
  TQString kcExecutable() const;
  void setKcExecutable( const TQString& ke );
        
protected:
  bool isNewValgrindVersion() const;
  
private:
  DialogWidget *w;
  Type m_type;
  private slots:
      void valgrindTextChanged();

};

#endif