You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
15 years ago
|
/* This file is part of KCachegrind.
|
||
|
Copyright (C) 2003 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
|
||
|
|
||
|
KCachegrind is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU General Public
|
||
|
License as published by the Free Software Foundation, version 2.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this program; see the file COPYING. If not, write to
|
||
15 years ago
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
15 years ago
|
*/
|
||
|
|
||
|
/*
|
||
|
* Coverage Views
|
||
|
*/
|
||
|
|
||
|
#ifndef COVERAGEVIEW_H
|
||
|
#define COVERAGEVIEW_H
|
||
|
|
||
14 years ago
|
#include <tqlistview.h>
|
||
15 years ago
|
#include "tracedata.h"
|
||
|
#include "traceitemview.h"
|
||
|
#include "listutils.h"
|
||
|
|
||
14 years ago
|
class CoverageView: public TQListView, public TraceItemView
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
TQ_OBJECT
|
||
15 years ago
|
|
||
|
public:
|
||
13 years ago
|
CoverageView(bool showCallers, TraceItemView* parentView,
|
||
13 years ago
|
TQWidget* parent=0, const char* name=0);
|
||
15 years ago
|
|
||
14 years ago
|
virtual TQWidget* widget() { return this; }
|
||
|
TQString whatsThis() const;
|
||
15 years ago
|
|
||
|
private slots:
|
||
14 years ago
|
void context(TQListViewItem*,const TQPoint &, int);
|
||
|
void selectedSlot(TQListViewItem*);
|
||
|
void activatedSlot(TQListViewItem*);
|
||
15 years ago
|
|
||
|
private:
|
||
|
TraceItem* canShow(TraceItem*);
|
||
|
void doUpdate(int);
|
||
|
void refresh();
|
||
|
|
||
|
HighestCostList _hc;
|
||
|
bool _showCallers;
|
||
|
};
|
||
|
|
||
|
#endif
|