• 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
partselection.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  * PartSelection for KCachegrind
21  * For part file selection, to be put into a QDockWindow
22  */
23 
24 #ifndef PARTSELECTION_H
25 #define PARTSELECTION_H
26 
27 #include <QWidget>
28 #include <QPoint>
29 
30 #include "tracedata.h"
31 #include "traceitemview.h"
32 
33 class QLabel;
34 class TraceData;
35 class TreeMapItem;
36 class PartAreaWidget;
37 
38 class PartSelection: public QWidget, public TraceItemView
39 {
40  Q_OBJECT
41 
42 public:
43  explicit PartSelection(TopLevelBase*, QWidget* parent = 0);
44 
45  virtual QWidget* widget() { return this; }
46  QString whatsThis() const;
47  void setData(TraceData*);
48 
49  PartAreaWidget* graph() { return _partAreaWidget; }
50 
51  void saveOptions(const QString& prefix, const QString& postfix);
52  void restoreOptions(const QString& prefix, const QString& postfix);
53 
54 signals:
55  void partsHideSelected();
56  void partsUnhideAll();
57 
58 public slots:
59  void selectionChanged();
60  void doubleClicked(TreeMapItem*);
61  void itemSelected();
62  void contextMenuRequested(TreeMapItem*, const QPoint &);
63  void currentChangedSlot(TreeMapItem*, bool);
64 
65  void hiddenPartsChangedSlot(const TracePartList& list);
66  void showInfo(bool);
67 
68 private:
69  // reimplementations of TraceItemView
70  CostItem* canShow(CostItem*);
71  void doUpdate(int, bool);
72 
73  // helper for doUpdate
74  void selectParts(const TracePartList& list);
75  void fillInfo();
76 
77  bool _showInfo;
78  bool _diagramMode;
79  bool _drawFrames;
80  bool _inSelectionUpdate;
81 
82  PartAreaWidget* _partAreaWidget;
83  QLabel* _rangeLabel;
84 };
85 
86 #endif
PartSelection::doubleClicked
void doubleClicked(TreeMapItem *)
Definition: partselection.cpp:250
PartSelection::graph
PartAreaWidget * graph()
Definition: partselection.h:49
PartSelection
Definition: partselection.h:38
PartSelection::widget
virtual QWidget * widget()
Definition: partselection.h:45
PartSelection::partsHideSelected
void partsHideSelected()
QWidget
CostItem
Base class for cost items.
Definition: costitem.h:37
traceitemview.h
PartSelection::currentChangedSlot
void currentChangedSlot(TreeMapItem *, bool)
Definition: partselection.cpp:231
PartSelection::partsUnhideAll
void partsUnhideAll()
PartSelection::hiddenPartsChangedSlot
void hiddenPartsChangedSlot(const TracePartList &list)
Definition: partselection.cpp:478
TraceItemView
Abstract Base Class for KCachegrind Views.
Definition: traceitemview.h:70
PartSelection::restoreOptions
void restoreOptions(const QString &prefix, const QString &postfix)
Definition: partselection.cpp:483
PartSelection::itemSelected
void itemSelected()
Definition: partselection.cpp:321
PartSelection::showInfo
void showInfo(bool)
Definition: partselection.cpp:556
tracedata.h
PartSelection::PartSelection
PartSelection(TopLevelBase *, QWidget *parent=0)
Definition: partselection.cpp:52
TopLevelBase
Definition: toplevelbase.h:34
PartSelection::whatsThis
QString whatsThis() const
Definition: partselection.cpp:104
PartAreaWidget
Definition: partgraph.h:31
PartSelection::saveOptions
void saveOptions(const QString &prefix, const QString &postfix)
Definition: partselection.cpp:525
PartSelection::selectionChanged
void selectionChanged()
Definition: partselection.cpp:284
TracePartList
QList< TracePart * > TracePartList
Definition: tracedata.h:176
TraceData
This class holds profiling data of multiple tracefiles generated with cachegrind on one command...
Definition: tracedata.h:1363
TreeMapItem
Base class of items in TreeMap.
Definition: treemap.h:221
PartSelection::contextMenuRequested
void contextMenuRequested(TreeMapItem *, const QPoint &)
Definition: partselection.cpp:328
PartSelection::setData
void setData(TraceData *)
Definition: partselection.cpp:130
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