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
36b5dc94
Commit
36b5dc94
authored
Jan 07, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt sev curve window, initial time period set
parent
d7725839
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
xtt/lib/xtt/gtk/xtt_sevhist_gtk.cpp
xtt/lib/xtt/gtk/xtt_sevhist_gtk.cpp
+2
-0
xtt/lib/xtt/src/xtt_sevhist.cpp
xtt/lib/xtt/src/xtt_sevhist.cpp
+5
-2
xtt/lib/xtt/src/xtt_sevhist.h
xtt/lib/xtt/src/xtt_sevhist.h
+1
-0
No files found.
xtt/lib/xtt/gtk/xtt_sevhist_gtk.cpp
View file @
36b5dc94
...
@@ -99,6 +99,8 @@ XttSevHistGtk::XttSevHistGtk( void *parent_ctx,
...
@@ -99,6 +99,8 @@ XttSevHistGtk::XttSevHistGtk( void *parent_ctx,
curve
->
remove_cb
=
sevhist_remove_cb
;
curve
->
remove_cb
=
sevhist_remove_cb
;
curve
->
export_cb
=
sevhist_export_cb
;
curve
->
export_cb
=
sevhist_export_cb
;
curve
->
enable
(
curve_mEnable_Timebox
|
curve_mEnable_Export
|
curve_mEnable_ExportTime
);
curve
->
enable
(
curve_mEnable_Timebox
|
curve_mEnable_Export
|
curve_mEnable_ExportTime
);
if
(
initial_period
!=
time_ePeriod_
)
curve
->
set_period
(
initial_period
,
1
);
if
(
w
)
if
(
w
)
*
w
=
(
GtkWidget
*
)
curve
->
get_widget
();
*
w
=
(
GtkWidget
*
)
curve
->
get_widget
();
...
...
xtt/lib/xtt/src/xtt_sevhist.cpp
View file @
36b5dc94
...
@@ -72,7 +72,7 @@ XttSevHist::XttSevHist( void *parent_ctx,
...
@@ -72,7 +72,7 @@ XttSevHist::XttSevHist( void *parent_ctx,
sevcli_tCtx
xn_scctx
,
sevcli_tCtx
xn_scctx
,
int
*
sts
)
:
int
*
sts
)
:
xnav
(
parent_ctx
),
gcd
(
0
),
curve
(
0
),
rows
(
0
),
vsize
(
0
),
timerid
(
0
),
close_cb
(
0
),
help_cb
(
0
),
xnav
(
parent_ctx
),
gcd
(
0
),
curve
(
0
),
rows
(
0
),
vsize
(
0
),
timerid
(
0
),
close_cb
(
0
),
help_cb
(
0
),
get_select_cb
(
0
),
first_scan
(
1
),
scctx
(
xn_scctx
),
time_low_old
(
0
),
time_high_old
(
0
)
get_select_cb
(
0
),
first_scan
(
1
),
scctx
(
xn_scctx
),
time_low_old
(
0
),
time_high_old
(
0
)
,
initial_period
(
time_ePeriod_
)
{
{
pwr_tTime
from
,
to
;
pwr_tTime
from
,
to
;
...
@@ -101,8 +101,11 @@ XttSevHist::XttSevHist( void *parent_ctx,
...
@@ -101,8 +101,11 @@ XttSevHist::XttSevHist( void *parent_ctx,
time_Period
(
time_ePeriod_OneMonth
,
&
from
,
&
to
,
0
,
0
);
time_Period
(
time_ePeriod_OneMonth
,
&
from
,
&
to
,
0
,
0
);
get_data
(
sts
,
from
,
to
);
get_data
(
sts
,
from
,
to
);
if
(
EVEN
(
*
sts
))
return
;
if
(
EVEN
(
*
sts
))
return
;
initial_period
=
time_ePeriod_OneMonth
;
}
}
else
if
(
EVEN
(
*
sts
))
return
;
else
if
(
EVEN
(
*
sts
))
return
;
else
initial_period
=
time_ePeriod_OneHour
;
}
}
else
{
else
{
get_multidata
(
sts
,
from
,
to
);
get_multidata
(
sts
,
from
,
to
);
...
@@ -122,7 +125,7 @@ XttSevHist::XttSevHist( void *parent_ctx,
...
@@ -122,7 +125,7 @@ XttSevHist::XttSevHist( void *parent_ctx,
char
*
filename
,
char
*
filename
,
int
*
sts
)
:
int
*
sts
)
:
xnav
(
parent_ctx
),
gcd
(
0
),
curve
(
0
),
rows
(
0
),
vsize
(
0
),
timerid
(
0
),
close_cb
(
0
),
help_cb
(
0
),
xnav
(
parent_ctx
),
gcd
(
0
),
curve
(
0
),
rows
(
0
),
vsize
(
0
),
timerid
(
0
),
close_cb
(
0
),
help_cb
(
0
),
get_select_cb
(
0
),
first_scan
(
1
),
scctx
(
0
),
time_low_old
(
0
),
time_high_old
(
0
)
get_select_cb
(
0
),
first_scan
(
1
),
scctx
(
0
),
time_low_old
(
0
),
time_high_old
(
0
)
,
initial_period
(
time_ePeriod_
)
{
{
strncpy
(
title
,
filename
,
sizeof
(
title
));
strncpy
(
title
,
filename
,
sizeof
(
title
));
...
...
xtt/lib/xtt/src/xtt_sevhist.h
View file @
36b5dc94
...
@@ -94,6 +94,7 @@ class XttSevHist {
...
@@ -94,6 +94,7 @@ class XttSevHist {
long
int
time_low_old
;
long
int
time_low_old
;
long
int
time_high_old
;
long
int
time_high_old
;
bool
sevhistobjectv
[
XTT_SEVHIST_MAX
];
//!< Indicates that it is a SevHistObject
bool
sevhistobjectv
[
XTT_SEVHIST_MAX
];
//!< Indicates that it is a SevHistObject
time_ePeriod
initial_period
;
//! Constructor
//! Constructor
XttSevHist
(
void
*
xn_parent_ctx
,
XttSevHist
(
void
*
xn_parent_ctx
,
...
...
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