-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b217e38
commit 37e8548
Showing
7 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...ugins/kcl.cemrgapp.mainapp/src/internal/perspectives/QmitkCemrgFourChamberPerspective.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*========================================================================= | ||
Program: Medical Imaging & Interaction Toolkit | ||
Language: C++ | ||
Date: $Date$ | ||
Version: $Revision$ | ||
Copyright (c) German Cancer Research Center, Division of Medical and | ||
Biological Informatics. All rights reserved. | ||
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. | ||
This software is distributed WITHOUT ANY WARRANTY; without even | ||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | ||
PURPOSE. See the above copyright notices for more information. | ||
=========================================================================*/ | ||
/*========================================================================= | ||
* | ||
* CemrgApp Main App | ||
* | ||
* Cardiac Electromechanics Research Group | ||
* http://www.cemrgapp.com | ||
* [email protected] | ||
* | ||
* This software is distributed WITHOUT ANY WARRANTY or SUPPORT! | ||
* | ||
=========================================================================*/ | ||
|
||
#include "QmitkCemrgFourChamberPerspective.h" | ||
#include "berryIViewLayout.h" | ||
|
||
QmitkCemrgFourChamberPerspective::QmitkCemrgFourChamberPerspective() { | ||
} | ||
|
||
QmitkCemrgFourChamberPerspective::QmitkCemrgFourChamberPerspective(const QmitkCemrgFourChamberPerspective& other) : QObject() { | ||
|
||
Q_UNUSED(other) | ||
throw std::runtime_error("Copy constructor not implemented"); | ||
} | ||
|
||
void QmitkCemrgFourChamberPerspective::CreateInitialLayout(berry::IPageLayout::Pointer layout) { | ||
|
||
QString editorArea = layout->GetEditorArea(); | ||
layout->AddView("org.mitk.views.fourchamberheart", berry::IPageLayout::LEFT, 0.17f, editorArea); | ||
berry::IFolderLayout::Pointer folder = layout->CreateFolder( | ||
"folder", berry::IPageLayout::BOTTOM, 0.6f, "org.mitk.views.fourchamberheart"); | ||
folder->AddView("org.mitk.views.datamanager"); | ||
berry::IViewLayout::Pointer lo = layout->GetViewLayout("org.mitk.views.fourchamberheart"); | ||
lo->SetCloseable(false); | ||
} |
48 changes: 48 additions & 0 deletions
48
...Plugins/kcl.cemrgapp.mainapp/src/internal/perspectives/QmitkCemrgFourChamberPerspective.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/*========================================================================= | ||
Program: Medical Imaging & Interaction Toolkit | ||
Language: C++ | ||
Date: $Date$ | ||
Version: $Revision$ | ||
Copyright (c) German Cancer Research Center, Division of Medical and | ||
Biological Informatics. All rights reserved. | ||
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. | ||
This software is distributed WITHOUT ANY WARRANTY; without even | ||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | ||
PURPOSE. See the above copyright notices for more information. | ||
=========================================================================*/ | ||
/*========================================================================= | ||
* | ||
* CemrgApp Main App | ||
* | ||
* Cardiac Electromechanics Research Group | ||
* http://www.cemrgapp.com | ||
* [email protected] | ||
* | ||
* This software is distributed WITHOUT ANY WARRANTY or SUPPORT! | ||
* | ||
=========================================================================*/ | ||
|
||
#ifndef QMITKCEMRGFOURCHAMBERPERSPECTIVE_H_ | ||
#define QMITKCEMRGFOURCHAMBERPERSPECTIVE_H_ | ||
|
||
#include <berryIPerspectiveFactory.h> | ||
|
||
class QmitkCemrgFourChamberPerspective : public QObject, public berry::IPerspectiveFactory { | ||
|
||
Q_OBJECT | ||
Q_INTERFACES(berry::IPerspectiveFactory) | ||
|
||
public: | ||
|
||
QmitkCemrgFourChamberPerspective(); | ||
QmitkCemrgFourChamberPerspective(const QmitkCemrgFourChamberPerspective& other); | ||
|
||
void CreateInitialLayout(berry::IPageLayout::Pointer layout); | ||
|
||
}; | ||
|
||
#endif /* QMITKCEMRGFOURCHAMBERPERSPECTIVE_H_ */ |