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.
72 lines
1.8 KiB
72 lines
1.8 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
|
*/
|
||
|
|
||
|
/*
|
||
|
* Source View
|
||
|
*/
|
||
|
|
||
|
#ifndef SOURCEVIEW_H
|
||
|
#define SOURCEVIEW_H
|
||
|
|
||
14 years ago
|
#include <tqlistview.h>
|
||
15 years ago
|
#include "traceitemview.h"
|
||
|
|
||
|
class SourceItem;
|
||
|
|
||
14 years ago
|
class SourceView : public TQListView, public TraceItemView
|
||
15 years ago
|
{
|
||
|
friend class SourceItem;
|
||
|
|
||
|
Q_OBJECT
|
||
13 years ago
|
TQ_OBJECT
|
||
15 years ago
|
|
||
|
public:
|
||
13 years ago
|
SourceView(TraceItemView* parentView,
|
||
13 years ago
|
TQWidget* parent = 0, const char* name = 0);
|
||
15 years ago
|
|
||
14 years ago
|
TQWidget* widget() { return this; }
|
||
|
TQString whatsThis() const;
|
||
15 years ago
|
|
||
|
protected:
|
||
|
int arrowLevels() { return _arrowLevels; }
|
||
14 years ago
|
void paintEmptyArea( TQPainter *, const TQRect & );
|
||
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();
|
||
|
void updateJumpArray(uint,SourceItem*,bool,bool);
|
||
|
void fillSourceFile(TraceFunctionSource*, int);
|
||
|
void updateSourceItems();
|
||
|
|
||
|
bool _inSelectionUpdate;
|
||
|
|
||
|
// arrows
|
||
|
int _arrowLevels;
|
||
|
// temporary needed on creation...
|
||
14 years ago
|
TQMemArray<TraceLineJump*> _jump;
|
||
15 years ago
|
TraceLineJumpList _lowList, _highList;
|
||
|
};
|
||
|
|
||
|
#endif
|