• 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
multiview.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  * MultiView, enclosing multiple (default: 2) TabView's with a user
21  * choosable active view (i.e. focus). This is a splitter itself.
22  * Selection of the active view is shown in the next to the right view
23  * (with wrap around).
24  */
25 
26 #ifndef MULTIVIEW_H
27 #define MULTIVIEW_H
28 
29 #include <QSplitter>
30 #include <QList>
31 
32 #include "traceitemview.h"
33 
34 class TabView;
35 
36 class MultiView : public QSplitter, public TraceItemView
37 {
38  Q_OBJECT
39 
40 public:
41  explicit MultiView(TopLevelBase* top, QWidget* parent = 0);
42 
43  QWidget* widget() { return this; }
44  TabView* activeTabView() const { return _active; }
45  void setData(TraceData*);
46 
47  void appendView();
48  void removeView();
49  void setChildCount(int);
50  int childCount() { return _views.count(); }
51 
52  void selected(TraceItemView*, CostItem*);
53  void activated(TraceItemView*, CostItem*);
54 
55  void saveLayout(const QString& prefix, const QString& postfix);
56  void restoreLayout(const QString& prefix, const QString& postfix);
57  void saveOptions(const QString& prefix, const QString& postfix);
58  void restoreOptions(const QString& prefix, const QString& postfix);
59 
60 public slots:
61  void tabActivated(TabView*);
62 
63  private:
64  void doUpdate(int, bool);
65 
66  TabView* _active;
67  QList<TabView*> _views;
68 };
69 
70 #endif
MultiView::selected
void selected(TraceItemView *, CostItem *)
Notification from child views.
Definition: multiview.cpp:125
QWidget
MultiView::saveLayout
void saveLayout(const QString &prefix, const QString &postfix)
Definition: multiview.cpp:202
CostItem
Base class for cost items.
Definition: costitem.h:37
traceitemview.h
MultiView::MultiView
MultiView(TopLevelBase *top, QWidget *parent=0)
Definition: multiview.cpp:38
TraceItemView
Abstract Base Class for KCachegrind Views.
Definition: traceitemview.h:70
QList::count
int count(const T &value) const
MultiView::restoreOptions
void restoreOptions(const QString &prefix, const QString &postfix)
Definition: multiview.cpp:224
MultiView
Definition: multiview.h:36
MultiView::setData
void setData(TraceData *)
Definition: multiview.cpp:49
TopLevelBase
Definition: toplevelbase.h:34
QString
QList< TabView * >
MultiView::appendView
void appendView()
Definition: multiview.cpp:63
QSplitter
MultiView::restoreLayout
void restoreLayout(const QString &prefix, const QString &postfix)
Definition: multiview.cpp:169
MultiView::removeView
void removeView()
Definition: multiview.cpp:85
MultiView::tabActivated
void tabActivated(TabView *)
Definition: multiview.cpp:106
MultiView::activated
void activated(TraceItemView *, CostItem *)
Definition: multiview.cpp:144
MultiView::setChildCount
void setChildCount(int)
Definition: multiview.cpp:57
TabView
Definition: tabview.h:115
TraceData
This class holds profiling data of multiple tracefiles generated with cachegrind on one command...
Definition: tracedata.h:1363
MultiView::childCount
int childCount()
Definition: multiview.h:50
QObject::parent
QObject * parent() const
MultiView::widget
QWidget * widget()
Definition: multiview.h:43
MultiView::saveOptions
void saveOptions(const QString &prefix, const QString &postfix)
Definition: multiview.cpp:231
MultiView::activeTabView
TabView * activeTabView() const
Definition: multiview.h:44
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