Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
1b3addf6
Commit
1b3addf6
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rename class and sources GUI/View/Data/RealDataStackPresenter -> GUI/View/Data/DatafilesStack
parent
372fa997
No related branches found
No related tags found
1 merge request
!2142
numerous renamings for clearer layering of GUI/View
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GUI/View/Data/DataView.cpp
+2
-2
2 additions, 2 deletions
GUI/View/Data/DataView.cpp
GUI/View/Data/DatafilesStack.cpp
+5
-5
5 additions, 5 deletions
GUI/View/Data/DatafilesStack.cpp
GUI/View/Data/DatafilesStack.h
+6
-6
6 additions, 6 deletions
GUI/View/Data/DatafilesStack.h
with
13 additions
and
13 deletions
GUI/View/Data/DataView.cpp
+
2
−
2
View file @
1b3addf6
...
...
@@ -16,7 +16,7 @@
#include
"GUI/Model/Device/DatafileItem.h"
#include
"GUI/Model/Project/ProjectDocument.h"
#include
"GUI/View/Data/DatafilesSelector.h"
#include
"GUI/View/Data/
RealDataStackPresenter
.h"
#include
"GUI/View/Data/
DatafilesStack
.h"
#include
"GUI/View/Tool/mainwindow_constants.h"
#include
<QAction>
#include
<QSplitter>
...
...
@@ -36,7 +36,7 @@ DataView::DataView(QWidget* parent, ProjectDocument* document)
splitter
->
addWidget
(
selector
);
selector
->
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Expanding
);
auto
*
stackedWidget
=
new
RealDataStackPresenter
;
auto
*
stackedWidget
=
new
DatafilesStack
;
splitter
->
addWidget
(
stackedWidget
);
stackedWidget
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
stackedWidget
->
setSizeHint
({
1024
,
1024
});
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Data/
RealDataStackPresenter
.cpp
→
GUI/View/Data/
DatafilesStack
.cpp
+
5
−
5
View file @
1b3addf6
...
...
@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/View/Data/
RealDataStackPresenter
.cpp
//! @brief Implements class
RealDataStackPresenter
.
//! @file GUI/View/Data/
DatafilesStack
.cpp
//! @brief Implements class
DatafilesStack
.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
...
...
@@ -12,10 +12,10 @@
//
// ************************************************************************************************
#include
"GUI/View/Data/
RealDataStackPresenter
.h"
#include
"GUI/View/Data/
DatafilesStack
.h"
#include
"GUI/View/Data/RealDataPresenter.h"
void
RealDataStackPresenter
::
setItem
(
QObject
*
item
,
QObject
*
model
)
void
DatafilesStack
::
setItem
(
QObject
*
item
,
QObject
*
model
)
{
if
(
!
item
)
{
hideWidgets
();
...
...
@@ -38,7 +38,7 @@ void RealDataStackPresenter::setItem(QObject* item, QObject* model)
widget
->
setJobOrDatafileItem
(
item
);
}
RealDataPresenter
*
RealDataStackPresenter
::
itemWidget
(
QObject
*
/*item*/
)
RealDataPresenter
*
DatafilesStack
::
itemWidget
(
QObject
*
/*item*/
)
{
if
(
!
m_itemToWidget
.
empty
())
return
m_itemToWidget
.
first
();
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Data/
RealDataStackPresenter
.h
→
GUI/View/Data/
DatafilesStack
.h
+
6
−
6
View file @
1b3addf6
...
...
@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/View/Data/
RealDataStackPresenter
.h
//! @brief Defines class
RealDataStackPresenter
.
//! @file GUI/View/Data/
DatafilesStack
.h
//! @brief Defines class
DatafilesStack
.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
...
...
@@ -12,15 +12,15 @@
//
// ************************************************************************************************
#ifndef BORNAGAIN_GUI_VIEW_DATA_
REALDATASTACKPRESENTER
_H
#define BORNAGAIN_GUI_VIEW_DATA_
REALDATASTACKPRESENTER
_H
#ifndef BORNAGAIN_GUI_VIEW_DATA_
DATAFILESSTACK
_H
#define BORNAGAIN_GUI_VIEW_DATA_
DATAFILESSTACK
_H
#include
"GUI/View/Item/ItemStackWidget.h"
#include
<QMap>
class
RealDataPresenter
;
class
RealDataStackPresenter
:
public
ItemStackWidget
{
class
DatafilesStack
:
public
ItemStackWidget
{
public:
//! Shows the widget for given item (and hides previous one).
//! If no widget yet exists, it will be created.
...
...
@@ -32,4 +32,4 @@ private:
QMap
<
QObject
*
,
RealDataPresenter
*>
m_itemToWidget
;
};
#endif // BORNAGAIN_GUI_VIEW_DATA_
REALDATASTACKPRESENTER
_H
#endif // BORNAGAIN_GUI_VIEW_DATA_
DATAFILESSTACK
_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment