Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
c862eaac
Commit
c862eaac
authored
Jul 22, 2013
by
Christian Schulte zu Berge
Browse files
merging gui-redux back into development
parents
89de53a9
1a057140
Changes
2
Hide whitespace changes
Inline
Side-by-side
application/gui/mainwindow.cpp
View file @
c862eaac
...
...
@@ -37,12 +37,14 @@
#include
"core/pipeline/abstractpipeline.h"
#include
"core/pipeline/abstractprocessor.h"
#include
<QMdiSubWindow>
namespace
campvis
{
MainWindow
::
MainWindow
(
CampVisApplication
*
application
)
:
QMainWindow
()
,
_application
(
application
)
,
_
centralWidget
(
0
)
,
_
mdiArea
(
0
)
,
_pipelineWidget
(
0
)
,
_propCollectionWidget
(
0
)
,
_dcInspectorWidget
(
0
)
...
...
@@ -73,6 +75,10 @@ namespace campvis {
setTabPosition
(
Qt
::
TopDockWidgetArea
,
QTabWidget
::
North
);
_mdiArea
=
new
QMdiArea
();
_mdiArea
->
tileSubWindows
();
setCentralWidget
(
_mdiArea
);
_pipelineWidget
=
new
PipelineTreeWidget
();
ui
.
pipelineTreeDock
->
setWidget
(
_pipelineWidget
);
...
...
@@ -89,7 +95,7 @@ namespace campvis {
_btnShowDataContainerInspector
=
new
QPushButton
(
"Inspect DataContainer of Selected Pipeline"
,
rightWidget
);
rightLayout
->
addWidget
(
_btnShowDataContainerInspector
);
_propCollectionWidget
=
new
PropertyCollectionWidget
(
_centralWidget
);
_propCollectionWidget
=
new
PropertyCollectionWidget
();
rightLayout
->
addWidget
(
_propCollectionWidget
);
_logViewer
=
new
LogViewerWidget
();
...
...
@@ -193,7 +199,8 @@ namespace campvis {
}
void
MainWindow
::
addVisualizationPipelineWidget
(
const
std
::
string
&
name
,
QWidget
*
widget
)
{
dockPrimaryWidget
(
name
,
widget
);
QMdiSubWindow
*
subWindow
=
_mdiArea
->
addSubWindow
(
widget
);
subWindow
->
setWindowTitle
(
QString
::
fromStdString
(
name
));
}
QDockWidget
*
MainWindow
::
dockPrimaryWidget
(
const
std
::
string
&
name
,
QWidget
*
widget
)
{
...
...
application/gui/mainwindow.h
View file @
c862eaac
...
...
@@ -42,6 +42,7 @@
#include
<QVBoxLayout>
#include
<QHBoxLayout>
#include
<QPushButton>
#include
<QMdiArea>
#include
<vector>
namespace
campvis
{
...
...
@@ -141,7 +142,7 @@ namespace campvis {
CampVisApplication
*
_application
;
///< Pointer to the application hosting the whole stuff
Q
Widget
*
_centralWidget
;
///<
Central widget of the MainWindow
Q
MdiArea
*
_mdiArea
;
///<
MDI area (the window's central widget)
PipelineTreeWidget
*
_pipelineWidget
;
///< Widget for browsing the active pipelines
PropertyCollectionWidget
*
_propCollectionWidget
;
///< Widget for brosing the PropertyCollection of the selected pipeline/processor
DataContainerInspectorWidget
*
_dcInspectorWidget
;
///< Widget for inspecting the DataContainer of the selected pipeline.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment