Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
zzha zzha
OpenXG-RAN
Commits
f49489a6
Commit
f49489a6
authored
May 15, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add _silent functions for gui/timeline.c, the way view/time.c uses it
requires those optimizations
parent
0cf4738d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
common/utils/T/tracer/gui/gui.h
common/utils/T/tracer/gui/gui.h
+3
-0
common/utils/T/tracer/gui/timeline.c
common/utils/T/tracer/gui/timeline.c
+29
-5
No files found.
common/utils/T/tracer/gui/gui.h
View file @
f49489a6
...
...
@@ -55,8 +55,11 @@ void textlist_get_line(gui *gui, widget *this, int line,
void
textlist_set_color
(
gui
*
gui
,
widget
*
this
,
int
line
,
int
color
);
void
timeline_clear
(
gui
*
gui
,
widget
*
this
);
void
timeline_clear_silent
(
gui
*
gui
,
widget
*
this
);
void
timeline_add_points
(
gui
*
gui
,
widget
*
this
,
int
subline
,
int
color
,
int
*
x
,
int
len
);
void
timeline_add_points_silent
(
gui
*
gui
,
widget
*
this
,
int
subline
,
int
color
,
int
*
x
,
int
len
);
void
timeline_set_subline_background_color
(
gui
*
gui
,
widget
*
this
,
int
subline
,
int
color
);
void
timeline_get_width
(
gui
*
gui
,
widget
*
this
,
int
*
width
);
...
...
common/utils/T/tracer/gui/timeline.c
View file @
f49489a6
...
...
@@ -97,7 +97,7 @@ widget *new_timeline(gui *_gui, int width, int number_of_sublines,
/* public functions */
/*************************************************************************/
void
timeline_clear
(
gui
*
_gui
,
widget
*
_this
)
static
void
_timeline_clear
(
gui
*
_gui
,
widget
*
_this
,
int
silent
)
{
struct
gui
*
g
=
_gui
;
struct
timeline_widget
*
this
=
_this
;
...
...
@@ -110,13 +110,24 @@ void timeline_clear(gui *_gui, widget *_this)
for
(
j
=
0
;
j
<
this
->
s
[
i
].
width
;
j
++
)
this
->
s
[
i
].
color
[
j
]
=
-
1
;
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
if
(
silent
==
0
)
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
gunlock
(
g
);
}
void
timeline_add_points
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
)
void
timeline_clear
(
gui
*
_gui
,
widget
*
_this
)
{
_timeline_clear
(
_gui
,
_this
,
0
);
}
void
timeline_clear_silent
(
gui
*
_gui
,
widget
*
_this
)
{
_timeline_clear
(
_gui
,
_this
,
1
);
}
static
void
_timeline_add_points
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
,
int
silent
)
{
struct
gui
*
g
=
_gui
;
struct
timeline_widget
*
this
=
_this
;
...
...
@@ -129,11 +140,24 @@ void timeline_add_points(gui *_gui, widget *_this, int subline, int color,
this
->
s
[
subline
].
color
[
x
[
i
]]
=
color
;
}
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
if
(
silent
==
0
)
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
gunlock
(
g
);
}
void
timeline_add_points
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
)
{
_timeline_add_points
(
_gui
,
_this
,
subline
,
color
,
x
,
len
,
0
);
}
void
timeline_add_points_silent
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
)
{
_timeline_add_points
(
_gui
,
_this
,
subline
,
color
,
x
,
len
,
1
);
}
void
timeline_set_subline_background_color
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
)
{
...
...
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