• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kcachegrind

  • sources
  • kde-4.12
  • kdesdk
  • kcachegrind
  • libviews
instrview.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2003-2011 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
3 
4  KCachegrind is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation, version 2.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; see the file COPYING. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 /*
20  * Instruction View
21  */
22 
23 #ifndef INSTRVIEW_H
24 #define INSTRVIEW_H
25 
26 #include <QTreeWidget>
27 
28 #include "traceitemview.h"
29 
30 class InstrItem;
31 
32 class InstrView : public QTreeWidget, public TraceItemView
33 {
34  friend class InstrItem;
35 
36  Q_OBJECT
37 
38 public:
39  explicit InstrView(TraceItemView* parentView,
40  QWidget* parent = 0);
41 
42  virtual QWidget* widget() { return this; }
43  QString whatsThis() const;
44  int arrowLevels() { return _arrowLevels; }
45 
46  void restoreOptions(const QString& prefix, const QString& postfix);
47  void saveOptions(const QString& prefix, const QString& postfix);
48 
49 protected slots:
50  void context(const QPoint &);
51  void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
52  void activatedSlot(QTreeWidgetItem*,int);
53  void headerClicked(int);
54 
55 protected:
56  void keyPressEvent(QKeyEvent* event);
57 
58 private:
59  CostItem* canShow(CostItem*);
60  void doUpdate(int, bool);
61  void refresh();
62  void setColumnWidths();
63  bool searchFile(QString&, TraceObject*);
64  void fillInstr();
65  void updateJumpArray(Addr,InstrItem*,bool,bool);
66  bool fillInstrRange(TraceFunction*,
67  TraceInstrMap::Iterator,TraceInstrMap::Iterator);
68 
69  bool _inSelectionUpdate;
70 
71  // arrows
72  int _arrowLevels;
73  // temporary needed on creation...
74  QVector<TraceInstrJump*> _jump;
75  TraceInstrJumpList _lowList, _highList;
76  TraceInstrJumpList::iterator _lowListIter, _highListIter;
77 
78  // remember width of hex code column if hidden
79  int _lastHexCodeWidth;
80 
81  // widget options
82  bool _showHexCode;
83 };
84 
85 #endif
TraceInstrJumpList
QList< TraceInstrJump * > TraceInstrJumpList
Definition: tracedata.h:180
InstrView::activatedSlot
void activatedSlot(QTreeWidgetItem *, int)
Definition: instrview.cpp:305
InstrView::whatsThis
QString whatsThis() const
Definition: instrview.cpp:209
InstrView::InstrView
InstrView(TraceItemView *parentView, QWidget *parent=0)
Definition: instrview.cpp:157
InstrView::headerClicked
void headerClicked(int)
Definition: instrview.cpp:1111
InstrView::widget
virtual QWidget * widget()
Definition: instrview.h:42
QTreeWidget
QWidget
TraceFunction
A traced function.
Definition: tracedata.h:1122
InstrView::restoreOptions
void restoreOptions(const QString &prefix, const QString &postfix)
Definition: instrview.cpp:1122
CostItem
Base class for cost items.
Definition: costitem.h:37
traceitemview.h
Addr
Addresses are 64bit values like costs to be able to always load profile data produced on 64bit archit...
Definition: addr.h:31
TraceItemView
Abstract Base Class for KCachegrind Views.
Definition: traceitemview.h:70
TraceObject
A object containing a text segment (shared lib/executable) with defined functions.
Definition: tracedata.h:1331
InstrView::context
void context(const QPoint &)
Definition: instrview.cpp:226
InstrView::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition: instrview.cpp:327
InstrView::saveOptions
void saveOptions(const QString &prefix, const QString &postfix)
Definition: instrview.cpp:1130
InstrView::arrowLevels
int arrowLevels()
Definition: instrview.h:44
QTreeWidgetItem
InstrView
Definition: instrview.h:32
InstrItem
Definition: instritem.h:34
InstrView::selectedSlot
void selectedSlot(QTreeWidgetItem *, QTreeWidgetItem *)
Definition: instrview.cpp:277
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal