1
/* ---------------------------------------------------------------------
2
* Implementation of CachegrindView cachegrind_view.cpp
3
* Cachegrind'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.
11
#include "cachegrind_view.h"
18
/* class CachegrindView ------------------------------------------------ */
19
CachegrindView::~CachegrindView()
23
CachegrindView::CachegrindView( QWidget* parent, const char* name )
24
: ToolView( parent, name )
28
QVBoxLayout* vLayout = new QVBoxLayout( central );
30
/* create the listview */
31
QLabel* lbl = new QLabel( "Cachegrind", central, "cachegrind label" );
32
lbl->setAlignment( AlignCenter );
33
vLayout->addWidget( lbl );
37
/* called by cachegrind: set state for buttons; set cursor state */
38
void CachegrindView::setState( bool run )
40
if ( run ) { /* startup */
41
setCursor( QCursor(Qt::WaitCursor) );
42
} else { /* finished */
48
/* slot: connected to MainWindow::toggleToolbarLabels().
49
called when user toggles 'show-butt-text' in Options page */
50
void CachegrindView::toggleToolbarLabels( bool /*state*/ )
54
void CachegrindView::mkToolBar( )