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

kcachegrind

  • sources
  • kde-4.14
  • kdesdk
  • kcachegrind
  • libviews
sourceview.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2003 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  * Source View
21  */
22 
23 #ifndef SOURCEVIEW_H
24 #define SOURCEVIEW_H
25 
26 #include <QTreeWidget>
27 #include "traceitemview.h"
28 
29 class SourceItem;
30 
31 class SourceView : public QTreeWidget, public TraceItemView
32 {
33  friend class SourceItem;
34 
35  Q_OBJECT
36 
37 public:
38  explicit SourceView(TraceItemView* parentView,
39  QWidget* parent = 0);
40 
41  QWidget* widget() { return this; }
42  QString whatsThis() const;
43  int arrowLevels() { return _arrowLevels; }
44 
45 protected slots:
46  void context(const QPoint &);
47  void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
48  void activatedSlot(QTreeWidgetItem*,int);
49  void headerClicked(int);
50 
51 protected:
52  void keyPressEvent(QKeyEvent* event);
53 
54 private:
55  CostItem* canShow(CostItem*);
56  void doUpdate(int, bool);
57  void refresh();
58  void updateJumpArray(uint,SourceItem*,bool,bool);
59  bool searchFile(QString&, TraceFunctionSource*);
60  void fillSourceFile(TraceFunctionSource*, int);
61 
62  bool _inSelectionUpdate;
63 
64  // arrows
65  int _arrowLevels;
66  // temporary needed on creation...
67  QVector<TraceLineJump*> _jump;
68  TraceLineJumpList _lowList, _highList;
69  TraceLineJumpList::iterator _lowListIter, _highListIter;
70 };
71 
72 #endif
QWidget
SourceView::selectedSlot
void selectedSlot(QTreeWidgetItem *, QTreeWidgetItem *)
Definition: sourceview.cpp:145
SourceView::headerClicked
void headerClicked(int)
Definition: sourceview.cpp:936
CostItem
Base class for cost items.
Definition: costitem.h:37
traceitemview.h
QPoint
SourceView::activatedSlot
void activatedSlot(QTreeWidgetItem *, int)
Definition: sourceview.cpp:177
SourceView::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition: sourceview.cpp:198
TraceItemView
Abstract Base Class for KCachegrind Views.
Definition: traceitemview.h:70
QTreeWidget
SourceView::context
void context(const QPoint &)
Definition: sourceview.cpp:107
SourceView::widget
QWidget * widget()
Definition: sourceview.h:41
SourceView::arrowLevels
int arrowLevels()
Definition: sourceview.h:43
TraceFunctionSource
A container helper class for TraceFunction for source lines where a function is implemented in...
Definition: tracedata.h:1029
SourceView::whatsThis
QString whatsThis() const
Definition: sourceview.cpp:92
QString
QList< TraceLineJump * >
SourceItem::_jump
QVector< TraceLineJump * > _jump
Definition: sourceitem.h:68
SourceView::SourceView
SourceView(TraceItemView *parentView, QWidget *parent=0)
Definition: sourceview.cpp:45
SourceView
Definition: sourceview.h:31
QKeyEvent
QTreeWidget::event
virtual bool event(QEvent *e)
QVector< TraceLineJump * >
QTreeWidgetItem
QObject::parent
QObject * parent() const
SourceItem
Definition: sourceitem.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:50 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
  • 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