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
4034b942
Commit
4034b942
authored
10 months ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rename GUI/Model/Mini/MinimizerItem.cpp -> GUI/Model/Mini/MinimizerItems.cpp
parent
dc1050b5
No related branches found
No related tags found
1 merge request
!2556
disambiguate readAttribute fcts, and other corrections
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GUI/Model/Mini/MinimizerItems.cpp
+1
-1
1 addition, 1 deletion
GUI/Model/Mini/MinimizerItems.cpp
GUI/Model/Util/UtilXML.cpp
+10
-15
10 additions, 15 deletions
GUI/Model/Util/UtilXML.cpp
GUI/Model/Util/UtilXML.h
+5
-6
5 additions, 6 deletions
GUI/Model/Util/UtilXML.h
with
16 additions
and
22 deletions
GUI/Model/Mini/MinimizerItem.cpp
→
GUI/Model/Mini/MinimizerItem
s
.cpp
+
1
−
1
View file @
4034b942
...
...
@@ -2,7 +2,7 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/Model/Mini/MinimizerItem.cpp
//! @file GUI/Model/Mini/MinimizerItem
s
.cpp
//! @brief Implements class MinimizerItem and children.
//!
//! @homepage http://www.bornagainproject.org
...
...
This diff is collapsed.
Click to expand it.
GUI/Model/Util/UtilXML.cpp
+
10
−
15
View file @
4034b942
...
...
@@ -92,34 +92,29 @@ void XML::writeAttribute(QXmlStreamWriter* writer, const QString& attributeBaseN
// ------------ read atribute ------------
unsigned
XML
::
read
UInt
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
)
bool
XML
::
read
Bool
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
)
{
return
reader
->
attributes
().
value
(
attributeName
).
toUInt
();
return
reader
->
attributes
().
value
(
attributeName
).
toUInt
()
>
0
;
}
void
XML
::
read
Attribute
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
bool
*
b
)
void
XML
::
read
Int
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
)
{
*
b
=
reader
->
attributes
().
value
(
attributeName
).
to
U
Int
()
>
0
;
return
reader
->
attributes
().
value
(
attributeName
).
toInt
();
}
void
XML
::
readAttribute
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
int
*
i
)
{
*
i
=
reader
->
attributes
().
value
(
attributeName
).
toInt
();
}
void
XML
::
readAttribute
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
size_t
*
i
)
unsigned
XML
::
readUInt
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
)
{
*
i
=
reader
->
attributes
().
value
(
attributeName
).
toU
Long
();
return
reader
->
attributes
().
value
(
attributeName
).
toU
Int
();
}
void
XML
::
read
Attribut
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
unsigned
*
u
)
size_t
XML
::
read
Siz
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
)
{
*
u
=
readUInt
(
reader
,
attributeName
);
return
reader
->
attributes
().
value
(
attributeName
)
.
toULong
()
;
}
void
XML
::
read
Attribut
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
double
*
d
)
double
XML
::
read
Doubl
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
)
{
*
d
=
reader
->
attributes
().
value
(
attributeName
).
toDouble
();
return
reader
->
attributes
().
value
(
attributeName
).
toDouble
();
}
QString
XML
::
readString
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
)
...
...
This diff is collapsed.
Click to expand it.
GUI/Model/Util/UtilXML.h
+
5
−
6
View file @
4034b942
...
...
@@ -56,13 +56,12 @@ void writeAttribute(QXmlStreamWriter* writer, const QString& attributeName, T d)
writer
->
writeAttribute
(
attributeName
,
QString
::
number
(
d
));
};
unsigned
readUInt
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
void
read
Attribute
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
bool
*
b
);
void
read
Attribute
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
int
*
i
);
void
readAttribute
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
size_t
*
i
);
void
readAttribut
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
unsigned
*
u
);
void
readAttribut
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
,
double
*
d
);
bool
read
Bool
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
int
read
Int
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
unsigned
readUInt
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
size_t
readSiz
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
double
readDoubl
e
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
QString
readString
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
QColor
readColor
(
QXmlStreamReader
*
reader
,
const
QString
&
attributeName
);
...
...
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