~ubuntu-branches/ubuntu/oneiric/valkyrie/oneiric

« back to all changes in this revision

Viewing changes to valkyrie/tool_views/memcheck_view.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2011-09-02 22:08:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110902220834-kigsixteppj9epp5
Tags: 2.0.0-0ubuntu1
* New upstream release. (LP: #635129, LP: #832886, LP: #721298)
* Standards bumped to 3.9.2, no changes required.
* d/control, d/rules: cdbs removed, dh minimal rule instead.
* d/control: build system is qmake not autotools
* d/control: bump required qt to qt4
* d/valkyrie.install: installing html docs manually as make install
  no longer does so.
* d/patches/valkyrie-2.0.0-fix-doc.dir.patch: Fix doc path to match
  policy. Also corrects LP: #588074 since the documentation link now
  works.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ---------------------------------------------------------------------
2
 
 * Definition of MemcheckView                            memcheck_view.h
3
 
 * Memcheck's personal window
4
 
 * ---------------------------------------------------------------------
5
 
 * This file is part of Valkyrie, a front-end for Valgrind
6
 
 * Copyright (C) 2000-2008, OpenWorks LLP <info@open-works.co.uk>
7
 
 * This program is released under the terms of the GNU GPL v.2
8
 
 * See the file COPYING for the full license details.
9
 
 */
10
 
 
11
 
#ifndef __MEMCHECK_VIEW_H
12
 
#define __MEMCHECK_VIEW_H
13
 
 
14
 
 
15
 
#include "tool_view.h"
16
 
 
17
 
#include <qlistview.h>
18
 
#include <qtoolbutton.h>
19
 
#include <qtextedit.h>
20
 
 
21
 
#include "vglogview.h"
22
 
 
23
 
 
24
 
/* class MemcheckView -------------------------------------------------- */
25
 
class Memcheck;
26
 
class MemcheckView : public ToolView
27
 
{
28
 
   Q_OBJECT
29
 
public:
30
 
   MemcheckView( QWidget* parent, const char* name );
31
 
   ~MemcheckView();
32
 
 
33
 
   VgLog* vgLogPtr() { return logview; }
34
 
 
35
 
public slots:
36
 
   void toggleToolbarLabels( bool );
37
 
   /* called by memcheck: set state for buttons; set cursor state */
38
 
   void setState( bool run );
39
 
 
40
 
signals:
41
 
   void saveLogFile();    /* triggered by savelogButton */
42
 
 
43
 
private:
44
 
   void mkToolBar();
45
 
 
46
 
   private slots:
47
 
      void openLogFile();       /* load and parse one log file */
48
 
   void openMergeFile();     /* open and check a list of logfiles-to-merge */
49
 
 
50
 
   void showSuppEditor();
51
 
 
52
 
   void itemSelected();
53
 
   void openAllItems();
54
 
   void openOneItem();
55
 
   void showSrcPath();
56
 
   void launchEditor(  QListViewItem* );
57
 
 
58
 
private:
59
 
   QListView* lView;
60
 
   VgLogView* logview;
61
 
 
62
 
   QToolButton* savelogButton;
63
 
   QToolButton* loadlogButton;
64
 
   QToolButton* mrglogButton;
65
 
   QToolButton* suppedButton;
66
 
 
67
 
   QToolButton* openOneButton;
68
 
   QToolButton* openAllButton;
69
 
   QToolButton* srcPathButton;
70
 
 
71
 
   QToolBar* mcToolBar;
72
 
};
73
 
 
74
 
 
75
 
#endif