Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
DDqtMainWindow.h
Go to the documentation of this file.
1/* This file is part of MODEL, the Mechanics Of Defect Evolution Library.
2 *
3 * Copyright (C) 2011 by Giacomo Po <gpo@ucla.edu>.
4 *
5 * model is distributed without any warranty under the
6 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
7 */
8
9#ifndef model_DDqtMainWindow_H_
10#define model_DDqtMainWindow_H_
11
12#include <QtWidgets/QMainWindow>
13#include <QtWidgets/QWidget>
14#include <QGridLayout>
15#include <QPushButton>
16#include <QTabWidget>
17#include <QAction>
18
19
20#include <DDqtVTKwidget.h>
21
22namespace model
23{
24
25struct DDqtMainWindow : public QMainWindow
26{
27 // https://kitware.github.io/vtk-examples/site/Cxx/Qt/RenderWindowNoUiFile/
28 // https://kitware.github.io/vtk-examples/site/Cxx/Qt/SideBySideRenderWindowsQt/
29 //https://vtk.org/doc/nightly/html/classQVTKOpenGLNativeWidget.html
30
31 Q_OBJECT
32
33 private slots:
34
35 void newViewerTab();
36 void closeTab(int tabID);
37
38
39 private:
40
41 size_t viewerCount;
42 QTabWidget* tabWidget;
43 QAction* newViewerAction;
44
45 public:
46
48
49};
50
51} // namespace model
52#endif
53
54
55
56
57
58
59