• 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
  • qcachegrind
configdialog.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2009 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  * QCachegrind configuration dialog
21  */
22 
23 #ifndef CONFIGDIALOG_H
24 #define CONFIGDIALOG_H
25 
26 #include <QString>
27 #include <QDialog>
28 #include <QMap>
29 #include <QTimer>
30 
31 #include "configpage.h"
32 
33 class QWidget;
34 class QLabel;
35 class QListWidget;
36 class QStackedWidget;
37 
38 class TraceData;
39 
40 class ConfigDialog: public QDialog
41 {
42  Q_OBJECT
43 
44 public:
45  // If s is not empty, navigate to a given setting on opening
46  ConfigDialog(TraceData* data, QWidget* parent, QString s = QString::null);
47 
48  void activate(QString);
49  QString currentPage();
50 
51 public slots:
52  void accept();
53  void listItemChanged(QString);
54  void clearError();
55 
56 private:
57  void addPage(ConfigPage*);
58 
59  QLabel* _titleLabel;
60  QLabel* _errorLabel;
61  QListWidget *_listWidget;
62  QStackedWidget *_widgetStack;
63  QMap<QString,ConfigPage*> _pages;
64  QString _activeSetting;
65  QTimer _clearTimer;
66 };
67 
68 #endif // CONFIGDIALOG
QWidget
ConfigDialog::currentPage
QString currentPage()
Definition: configdialog.cpp:142
QMap< QString, ConfigPage * >
QListWidget
QTimer
ConfigDialog::ConfigDialog
ConfigDialog(TraceData *data, QWidget *parent, QString s=QString::null)
Definition: configdialog.cpp:43
ConfigDialog
Definition: configdialog.h:40
QStackedWidget
QString
ConfigPage
Definition: configpage.h:30
ConfigDialog::activate
void activate(QString)
Definition: configdialog.cpp:117
QDialog
TraceData
This class holds profiling data of multiple tracefiles generated with cachegrind on one command...
Definition: tracedata.h:1363
ConfigDialog::accept
void accept()
Definition: configdialog.cpp:147
configpage.h
QLabel
QObject::parent
QObject * parent() const
ConfigDialog::listItemChanged
void listItemChanged(QString)
Definition: configdialog.cpp:99
ConfigDialog::clearError
void clearError()
Definition: configdialog.cpp:112
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