Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
KmPlot
Commits
cf2ef9b6
Commit
cf2ef9b6
authored
May 20, 2004
by
Fredrik Edemar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polar plots can be loaded again
CCMAIL:kdmoeller@foni.net svn path=/trunk/kdeedu/kmplot/; revision=312924
parent
aa59f257
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
kmplot/keditpolar.cpp
kmplot/keditpolar.cpp
+2
-0
kmplot/kmplotio.cpp
kmplot/kmplotio.cpp
+2
-2
No files found.
kmplot/keditpolar.cpp
View file @
cf2ef9b6
...
...
@@ -110,6 +110,8 @@ void KEditPolar::accept()
m_parser
->
fktext
[
index
].
linewidth
=
kIntNumInputLineWidth
->
value
();
m_parser
->
fktext
[
index
].
color
=
kColorButtonColor
->
color
().
rgb
();
m_parser
->
fktext
[
index
].
anti_mode
=
0
;
m_parser
->
fktext
[
index
].
anti_use_precision
=
false
;
// call inherited method
QEditPolar
::
accept
();
...
...
kmplot/kmplotio.cpp
View file @
cf2ef9b6
...
...
@@ -112,7 +112,7 @@ void KmPlotIO::save( XParser *parser, const QString filename )
tag
.
setAttribute
(
"visible-2nd-deriv"
,
parser
->
fktext
[
ix
].
f2_mode
);
tag
.
setAttribute
(
"deriv2nd-color"
,
QColor
(
parser
->
fktext
[
ix
].
f2_color
).
name
()
);
tag
.
setAttribute
(
"deriv2nd-width"
,
parser
->
fktext
[
ix
].
f2_linewidth
);
tag
.
setAttribute
(
"
anti
-deriv"
,
parser
->
fktext
[
ix
].
anti_mode
);
tag
.
setAttribute
(
"
visible
-deriv"
,
parser
->
fktext
[
ix
].
anti_mode
);
tag
.
setAttribute
(
"anti-color"
,
QColor
(
parser
->
fktext
[
ix
].
anti_color
).
name
()
);
tag
.
setAttribute
(
"anti-width"
,
parser
->
fktext
[
ix
].
anti_linewidth
);
tag
.
setAttribute
(
"anti-use-precision"
,
parser
->
fktext
[
ix
].
anti_use_precision
);
...
...
@@ -242,7 +242,7 @@ void KmPlotIO::parseFunction( XParser *parser, const QDomElement & n )
parser
->
fktext
[
ix
].
f2_mode
=
n
.
attribute
(
"visible-2nd-deriv"
).
toInt
();
parser
->
fktext
[
ix
].
f1_color
=
QColor
(
n
.
attribute
(
"deriv-color"
)).
rgb
();
parser
->
fktext
[
ix
].
anti_color
=
QColor
(
n
.
attribute
(
"anti-color"
)).
rgb
();
parser
->
fktext
[
ix
].
anti_mode
=
n
.
attribute
(
"
anti
-deriv"
).
toInt
();
parser
->
fktext
[
ix
].
anti_mode
=
n
.
attribute
(
"
visible
-deriv"
).
toInt
();
parser
->
fktext
[
ix
].
f1_linewidth
=
n
.
attribute
(
"deriv-width"
).
toInt
();
parser
->
fktext
[
ix
].
f1_mode
=
n
.
attribute
(
"visible-deriv"
).
toInt
();
parser
->
fktext
[
ix
].
color
=
QColor
(
n
.
attribute
(
"color"
)
).
rgb
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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