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
f6549db6
Commit
f6549db6
authored
6 years ago
by
Yurov, Dmitry
Browse files
Options
Downloads
Patches
Plain Diff
Adding MaterialItemContainer to JobItem
Redmine: #2142
parent
9251c8ff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/coregui/Models/JobItem.cpp
+8
-0
8 additions, 0 deletions
GUI/coregui/Models/JobItem.cpp
GUI/coregui/Models/JobItem.h
+4
-0
4 additions, 0 deletions
GUI/coregui/Models/JobItem.h
with
12 additions
and
0 deletions
GUI/coregui/Models/JobItem.cpp
+
8
−
0
View file @
f6549db6
...
...
@@ -21,6 +21,7 @@
#include
"IntensityDataItem.h"
#include
"ItemFileNameUtils.h"
#include
"JobItemUtils.h"
#include
"MaterialItemContainer.h"
#include
"MaskUnitsConverter.h"
#include
"MultiLayerItem.h"
#include
"ParameterTreeItems.h"
...
...
@@ -41,6 +42,7 @@ const QString JobItem::P_COMMENTS = "Comments";
const
QString
JobItem
::
P_PROGRESS
=
"Progress"
;
const
QString
JobItem
::
P_PRESENTATION_TYPE
=
"Presentation Type"
;
const
QString
JobItem
::
T_SAMPLE
=
"Sample Tag"
;
const
QString
JobItem
::
T_MATERIAL_CONTAINER
=
"Material Container"
;
const
QString
JobItem
::
T_INSTRUMENT
=
"Instrument Tag"
;
const
QString
JobItem
::
T_OUTPUT
=
"Output Tag"
;
const
QString
JobItem
::
T_REALDATA
=
"Real Data Tag"
;
...
...
@@ -71,6 +73,7 @@ JobItem::JobItem() : SessionItem(Constants::JobItemType)
addProperty
(
P_PRESENTATION_TYPE
,
QVariant
::
Type
::
Invalid
)
->
setVisible
(
false
);
registerTag
(
T_SAMPLE
,
1
,
1
,
QStringList
()
<<
Constants
::
MultiLayerType
);
registerTag
(
T_MATERIAL_CONTAINER
,
1
,
1
,
QStringList
{
Constants
::
MaterialContainerType
});
registerTag
(
T_INSTRUMENT
,
1
,
1
,
QStringList
()
<<
Constants
::
GISASInstrumentType
<<
Constants
::
OffSpecInstrumentType
...
...
@@ -258,6 +261,11 @@ RealDataItem* JobItem::realDataItem()
return
dynamic_cast
<
RealDataItem
*>
(
getItem
(
JobItem
::
T_REALDATA
));
}
const
MaterialItemContainer
*
JobItem
::
materialContainerItem
()
const
{
return
static_cast
<
MaterialItemContainer
*>
(
getItem
(
JobItem
::
T_MATERIAL_CONTAINER
));
}
Data1DViewItem
*
JobItem
::
dataItemView
()
{
return
dynamic_cast
<
Data1DViewItem
*>
(
getItem
(
JobItem
::
T_DATAVIEW
));
...
...
This diff is collapsed.
Click to expand it.
GUI/coregui/Models/JobItem.h
+
4
−
0
View file @
f6549db6
...
...
@@ -23,6 +23,7 @@ class FitParameterContainerItem;
class
FitSuiteItem
;
class
InstrumentItem
;
class
IntensityDataItem
;
class
MaterialItemContainer
;
class
MultiLayerItem
;
class
ParameterContainerItem
;
class
RealDataItem
;
...
...
@@ -45,6 +46,7 @@ public:
static
const
QString
P_PROGRESS
;
static
const
QString
P_PRESENTATION_TYPE
;
static
const
QString
T_SAMPLE
;
static
const
QString
T_MATERIAL_CONTAINER
;
static
const
QString
T_INSTRUMENT
;
static
const
QString
T_OUTPUT
;
static
const
QString
T_REALDATA
;
...
...
@@ -101,6 +103,8 @@ public:
FitParameterContainerItem
*
fitParameterContainerItem
();
RealDataItem
*
realDataItem
();
const
MaterialItemContainer
*
materialContainerItem
()
const
;
Data1DViewItem
*
dataItemView
();
private:
...
...
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