Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
da4a77c9
Commit
da4a77c9
authored
Dec 08, 2013
by
Claes Sjöfors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt history export, in filename and default filename in proview.cnf curveExportfile
parent
c1b17057
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
xtt/lib/ge/src/ge_curve.cpp
xtt/lib/ge/src/ge_curve.cpp
+2
-8
xtt/lib/xtt/src/xtt_sevhist.cpp
xtt/lib/xtt/src/xtt_sevhist.cpp
+17
-1
No files found.
xtt/lib/ge/src/ge_curve.cpp
View file @
da4a77c9
...
@@ -115,14 +115,8 @@ void GeCurve::activate_export()
...
@@ -115,14 +115,8 @@ void GeCurve::activate_export()
pwr_tFileName
dir
;
pwr_tFileName
dir
;
// Get directory from proview.cnf
// Get directory from proview.cnf
if
(
cnf_get_value
(
"curveExportDirectory"
,
dir
,
sizeof
(
dir
)))
{
if
(
!
cnf_get_value
(
"curveExportFile"
,
filename
,
sizeof
(
filename
)))
strcpy
(
filename
,
dir
);
strcpy
(
filename
,
"~/history.txt"
);
if
(
filename
[
strlen
(
filename
)
-
1
]
!=
'/'
)
strcat
(
filename
,
"/"
);
}
else
strcpy
(
filename
,
"~/"
);
strcat
(
filename
,
"history.txt"
);
grow_MeasureWindow
(
growcurve_ctx
,
&
ll_x
,
&
ll_y
,
&
ur_x
,
&
ur_y
);
grow_MeasureWindow
(
growcurve_ctx
,
&
ll_x
,
&
ll_y
,
&
ur_x
,
&
ur_y
);
...
...
xtt/lib/xtt/src/xtt_sevhist.cpp
View file @
da4a77c9
...
@@ -895,7 +895,23 @@ int XttSevHist::sevhist_export_cb( void *ctx, pwr_tTime *from, pwr_tTime *to, in
...
@@ -895,7 +895,23 @@ int XttSevHist::sevhist_export_cb( void *ctx, pwr_tTime *from, pwr_tTime *to, in
FILE
*
fp
;
FILE
*
fp
;
pwr_tOName
oname
;
pwr_tOName
oname
;
dcli_translate_filename
(
fname
,
filename
);
// Replace $date with date
strncpy
(
fname
,
filename
,
sizeof
(
fname
));
char
*
s1
=
strstr
(
fname
,
"$date"
);
if
(
s1
)
{
char
timstr
[
40
];
pwr_tFileName
str
;
sts
=
time_AtoAscii
(
0
,
time_eFormat_FileDateAndTime
,
timstr
,
sizeof
(
timstr
));
strncpy
(
str
,
s1
+
strlen
(
"$date"
),
sizeof
(
str
));
*
s1
=
0
;
strncat
(
fname
,
timstr
,
sizeof
(
fname
));
strncat
(
fname
,
str
,
sizeof
(
fname
));
}
dcli_translate_filename
(
fname
,
fname
);
if
(
idx
==
-
1
)
{
if
(
idx
==
-
1
)
{
// Export all attributes
// Export all attributes
...
...
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