itom
Loading...
Searching...
No Matches
callStackDockWidget.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom.
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 itom is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17 General Public Licence for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22
23#ifndef CALLSTACKDOCKWIDGET_H
24#define CALLSTACKDOCKWIDGET_H
25
26#include "abstractDockWidget.h"
27
28#include <qwidget.h>
29#include <qaction.h>
30#include <qtoolbar.h>
31#include <qtablewidget.h>
32
33
34namespace ito {
35
36
38{
39 Q_OBJECT
40
41public:
42 CallStackDockWidget(const QString &title, const QString &objName, QWidget *parent = NULL, bool docked = true, bool isDockAvailable = true, tFloatingStyle floatingStyle = floatingNone, tMovingStyle movingStyle = movingEnabled);
44
45protected:
46 void createActions();
47 void createMenus();
48 void createToolBars();
49 void createStatusBar(){}
50 //void updateActions();
51 void updatePythonActions(){ updateActions(); }
52
53private:
54 QTableWidget *m_table;
55 QStringList m_headers;
56 int m_currentRow;
57 QIcon m_emptyIcon;
58 QIcon m_currentIcon;
59 QIcon m_selectedIcon;
60
61 enum CallStackColumns
62 {
63 ColFilename = 0,
64 ColMethod = 1,
65 ColLine = 2
66 };
67
68private slots:
69 void itemDoubleClicked(QTableWidgetItem *item);
70
71public slots:
72 void updateCallStack(QStringList filenames, IntList lines, QStringList methods);
73 void deleteCallStack();
74
75};
76
77} //end namespace ito
78
79#endif
abstract dock widget class which inherits QDockWidget. The content of QDockWidget consists of an inst...
Definition abstractDockWidget.h:55
tMovingStyle
The configuration if a docked AbstractDockWidget can be moved from one docking area to another one.
Definition abstractDockWidget.h:97
@ movingEnabled
Definition abstractDockWidget.h:99
tFloatingStyle
The floating style of a widget, derived from AbstractDockWidget.
Definition abstractDockWidget.h:89
@ floatingNone
Definition abstractDockWidget.h:90
docking
Definition callStackDockWidget.h:38
void createToolBars()
implementation for virtual method createToolBars in AbstractDockWidget.
Definition callStackDockWidget.cpp:143
void createActions()
implementation for virtual method createActions in AbstractDockWidget.
Definition callStackDockWidget.cpp:134
~CallStackDockWidget()
constructor
Definition callStackDockWidget.cpp:105
Definition apiFunctionsGraph.cpp:40