• 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
stackselection.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  * StackSelection for KCachegrind
21  * For function selection of a most expected stack,
22  * to be put into a QDockWindow
23  */
24 
25 #ifndef STACKSELECTION_H
26 #define STACKSELECTION_H
27 
28 #include <QWidget>
29 #include "tracedata.h"
30 
31 class QTreeWidget;
32 class QTreeWidgetItem;
33 class TraceFunction;
34 class TraceData;
35 class StackBrowser;
36 
37 
38 class StackSelection : public QWidget
39 {
40  Q_OBJECT
41 
42 public:
43  StackSelection(QWidget* parent = 0);
44  ~StackSelection();
45 
46  TraceData* data() const { return _data; }
47  void setData(TraceData*);
48  StackBrowser* browser() const { return _browser; }
49  EventType* eventType() { return _eventType; }
50  EventType* eventType2() { return _eventType2; }
51  ProfileContext::Type groupType() { return _groupType; }
52 
53 signals:
54  void functionSelected(CostItem*);
55 
56 public slots:
57  void setFunction(TraceFunction*);
58  void setEventType(EventType*);
59  void setEventType2(EventType*);
60  void setGroupType(ProfileContext::Type);
61 
62  void stackSelected(QTreeWidgetItem*,QTreeWidgetItem*);
63  void browserBack();
64  void browserForward();
65  void browserUp();
66  void browserDown();
67  void refresh();
68  void rebuildStackList();
69 
70 private:
71  void selectFunction();
72 
73  TraceData* _data;
74  StackBrowser* _browser;
75  TraceFunction* _function;
76  EventType* _eventType;
77  EventType* _eventType2;
78  ProfileContext::Type _groupType;
79 
80  QTreeWidget* _stackList;
81 };
82 
83 #endif
StackSelection::functionSelected
void functionSelected(CostItem *)
StackSelection::browser
StackBrowser * browser() const
Definition: stackselection.h:48
StackSelection::setEventType2
void setEventType2(EventType *)
Definition: stackselection.cpp:246
StackSelection::eventType2
EventType * eventType2()
Definition: stackselection.h:50
StackSelection::rebuildStackList
void rebuildStackList()
Definition: stackselection.cpp:109
QTreeWidget
StackSelection::data
TraceData * data() const
Definition: stackselection.h:46
StackSelection::setFunction
void setFunction(TraceFunction *)
Definition: stackselection.cpp:92
StackBrowser
Definition: stackbrowser.h:85
QWidget
TraceFunction
A traced function.
Definition: tracedata.h:1122
CostItem
Base class for cost items.
Definition: costitem.h:37
StackSelection::browserUp
void browserUp()
Definition: stackselection.cpp:193
StackSelection::groupType
ProfileContext::Type groupType()
Definition: stackselection.h:51
EventType
A cost type, e.g.
Definition: eventtype.h:43
StackSelection::setData
void setData(TraceData *)
Definition: stackselection.cpp:79
StackSelection::browserBack
void browserBack()
Definition: stackselection.cpp:177
tracedata.h
StackSelection::refresh
void refresh()
Definition: stackselection.cpp:209
StackSelection
Definition: stackselection.h:38
StackSelection::browserForward
void browserForward()
Definition: stackselection.cpp:185
StackSelection::setEventType
void setEventType(EventType *)
Definition: stackselection.cpp:235
QTreeWidgetItem
StackSelection::StackSelection
StackSelection(QWidget *parent=0)
Definition: stackselection.cpp:36
StackSelection::~StackSelection
~StackSelection()
Definition: stackselection.cpp:74
StackSelection::browserDown
void browserDown()
Definition: stackselection.cpp:201
ProfileContext::Type
Type
Definition: context.h:36
TraceData
This class holds profiling data of multiple tracefiles generated with cachegrind on one command...
Definition: tracedata.h:1363
StackSelection::setGroupType
void setGroupType(ProfileContext::Type)
Definition: stackselection.cpp:257
StackSelection::stackSelected
void stackSelected(QTreeWidgetItem *, QTreeWidgetItem *)
Definition: stackselection.cpp:168
StackSelection::eventType
EventType * eventType()
Definition: stackselection.h:49
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