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.
84 lines
2.2 KiB
84 lines
2.2 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
|
*/
|
||
|
|
||
|
/*
|
||
|
* Instruction View
|
||
|
*/
|
||
|
|
||
|
#ifndef INSTRVIEW_H
|
||
|
#define INSTRVIEW_H
|
||
|
|
||
14 years ago
|
#include <tqlistview.h>
|
||
15 years ago
|
#include "traceitemview.h"
|
||
|
|
||
|
class InstrItem;
|
||
|
|
||
14 years ago
|
class InstrView : public TQListView, public TraceItemView
|
||
15 years ago
|
{
|
||
|
friend class InstrItem;
|
||
|
|
||
|
Q_OBJECT
|
||
13 years ago
|
TQ_OBJECT
|
||
15 years ago
|
|
||
|
public:
|
||
13 years ago
|
InstrView(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
|
|
||
14 years ago
|
void readViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
|
||
|
void saveViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
|
||
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 setColumnWidths();
|
||
|
void fillInstr();
|
||
|
void updateJumpArray(Addr,InstrItem*,bool,bool);
|
||
|
bool fillInstrRange(TraceFunction*,
|
||
|
TraceInstrMap::Iterator,TraceInstrMap::Iterator);
|
||
|
void updateInstrItems();
|
||
|
|
||
|
bool _inSelectionUpdate;
|
||
|
|
||
|
// arrows
|
||
|
int _arrowLevels;
|
||
|
// temporary needed on creation...
|
||
14 years ago
|
TQMemArray<TraceInstrJump*> _jump;
|
||
15 years ago
|
TraceInstrJumpList _lowList, _highList;
|
||
|
|
||
|
// remember width of hex code column if hidden
|
||
|
int _lastHexCodeWidth;
|
||
|
|
||
|
// widget options
|
||
|
bool _showHexCode;
|
||
|
};
|
||
|
|
||
|
#endif
|