itom  4.1.0
breakPointDockWidget.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 BREAKPOINTDOCKWIDGET_H
24 #define BREAKPOINTDOCKWIDGET_H
25 
26 #include "abstractDockWidget.h"
27 
28 #include <qwidget.h>
29 #include <qaction.h>
30 #include <qtoolbar.h>
31 #include <qitemselectionmodel.h>
32 
33 #include "itomQWidgets.h"
34 
35 
36 namespace ito
37 {
39  {
40  Q_OBJECT
41 
42  public:
43  BreakPointDockWidget(const QString &title, const QString &objName, QWidget *parent = NULL, bool docked = true, bool isDockAvailable = true, tFloatingStyle floatingStyle = floatingNone, tMovingStyle movingStyle = movingEnabled);
45 
46  protected:
47 
48  void createActions();
49  void createMenus();
50  void createToolBars();
51  void createStatusBar(){}
52  void updateActions();
53  void updatePythonActions(){ updateActions(); }
54 
55  private:
58  QToolBar *m_pMainToolbar;
60  QMenu *m_pContextMenu;
64  ShortcutAction* m_pActDelBP;
65  ShortcutAction* m_pActDelAllBPs;
66  ShortcutAction* m_pActEditBP;
67  ShortcutAction* m_pActToggleBP;
68  ShortcutAction* m_pActToggleAllBPs;
69 
70 
71  signals:
72 
73  private slots:
74  void doubleClicked(const QModelIndex &index);
75  void mnuDeleteBP();
76  void mnuDeleteAllBPs();
77  void mnuEditBreakpoint();
78  void mnuEnOrDisAbleBrakpoint();
79  void mnuEnOrDisAbleAllBrakpoints();
80  void treeViewContextMenuRequested(const QPoint &pos);
81  void treeViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
82  void actualizeTree(const QModelIndex &parent, int start, int end);
83 
84  void dataChanged();
85 
86  };
87 
88 } //end namespace ito
89 
90 #endif
QMenu * m_pContextMenu
Definition: breakPointDockWidget.h:60
Definition: apiFunctionsGraph.cpp:39
bool m_enOrDisAbleAllBreakpoints
Definition: breakPointDockWidget.h:62
Definition: breakPointDockWidget.h:38
Definition: itomQWidgets.h:62
Definition: shortcutAction.h:40
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
QTreeViewItom * m_breakPointView
Definition: breakPointDockWidget.h:56
Definition: abstractDockWidget.h:99
QToolBar * m_pMainToolbar
Definition: breakPointDockWidget.h:58
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