itom  4.1.0
callStackDockWidget.h
1 /* ********************************************************************
2  itom software
3  URL: http://www.uni-stuttgart.de/ito
4  Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5  Universitaet 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 
34 namespace ito {
35 
36 
38 {
39  Q_OBJECT
40 
41 public:
42  CallStackDockWidget(const QString &title, const QString &objName, QWidget *parent = NULL, bool docked = true, bool isDockAvailable = true, tFloatingStyle floatingStyle = floatingNone, tMovingStyle movingStyle = movingEnabled);
44 
45 protected:
46  void createActions();
47  void createMenus();
48  void createToolBars();
49  void createStatusBar(){}
50  //void updateActions();
51  void updatePythonActions(){ updateActions(); }
52 
53 private:
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 
68 private slots:
69  void itemDoubleClicked(QTableWidgetItem *item);
70 
71 public slots:
72  void updateCallStack(QStringList filenames, IntList lines, QStringList methods);
73  void deleteCallStack();
74 
75 };
76 
77 } //end namespace ito
78 
79 #endif
~CallStackDockWidget()
constructor
Definition: callStackDockWidget.cpp:105
docking
Definition: callStackDockWidget.h:37
void createActions()
implementation for virtual method createActions in AbstractDockWidget.
Definition: callStackDockWidget.cpp:134
Definition: apiFunctionsGraph.cpp:39
void createToolBars()
implementation for virtual method createToolBars in AbstractDockWidget.
Definition: callStackDockWidget.cpp:143
abstract dock widget class which inherits QDockWidget. The content of QDockWidget consists of an inst...
Definition: abstractDockWidget.h:54
tFloatingStyle
The floating style of a widget, derived from AbstractDockWidget.
Definition: abstractDockWidget.h:88
Definition: abstractDockWidget.h:90
Definition: abstractDockWidget.h:99
bool docked() const
Definition: abstractDockWidget.h:128
tMovingStyle
The configuration if a docked AbstractDockWidget can be moved from one docking area to another one...
Definition: abstractDockWidget.h:96