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
a473d9de
Commit
a473d9de
authored
Jan 23, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modification of scantime implemented
parent
691e5a57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
119 additions
and
1 deletion
+119
-1
src/lib/rt/src/rt_trace.c
src/lib/rt/src/rt_trace.c
+32
-1
src/lib/rt/src/rt_trace.h
src/lib/rt/src/rt_trace.h
+1
-0
xtt/mmi/xtt/src/xtt_trace.uil
xtt/mmi/xtt/src/xtt_trace.uil
+86
-0
No files found.
src/lib/rt/src/rt_trace.c
View file @
a473d9de
...
...
@@ -151,7 +151,7 @@ static void trace_scan( tra_tCtx tractx)
flow_TraceScan
(
tractx
->
flow_ctx
);
tractx
->
trace_timerid
=
XtAppAddTimeOut
(
XtWidgetToApplicationContext
(
tractx
->
flow_widget
)
,
5
00
,
XtWidgetToApplicationContext
(
tractx
->
flow_widget
)
,
tractx
->
scan_time
*
10
00
,
(
XtTimerCallbackProc
)
trace_scan
,
tractx
);
}
}
...
...
@@ -398,6 +398,31 @@ static void tra_activate_zoomreset( Widget w, tra_tCtx tractx, XmAnyCallbackStru
flow_UnZoom
(
tractx
->
flow_ctx
);
}
static
void
tra_activate_scantime1
(
Widget
w
,
tra_tCtx
tractx
,
XmAnyCallbackStruct
*
data
)
{
tractx
->
scan_time
=
0
.
5
;
}
static
void
tra_activate_scantime2
(
Widget
w
,
tra_tCtx
tractx
,
XmAnyCallbackStruct
*
data
)
{
tractx
->
scan_time
=
0
.
2
;
}
static
void
tra_activate_scantime3
(
Widget
w
,
tra_tCtx
tractx
,
XmAnyCallbackStruct
*
data
)
{
tractx
->
scan_time
=
0
.
1
;
}
static
void
tra_activate_scantime4
(
Widget
w
,
tra_tCtx
tractx
,
XmAnyCallbackStruct
*
data
)
{
tractx
->
scan_time
=
0
.
05
;
}
static
void
tra_activate_scantime5
(
Widget
w
,
tra_tCtx
tractx
,
XmAnyCallbackStruct
*
data
)
{
tractx
->
scan_time
=
0
.
02
;
}
static
void
tra_activate_help
(
Widget
w
,
tra_tCtx
tractx
,
XmAnyCallbackStruct
*
data
)
{
if
(
tractx
->
help_cb
)
...
...
@@ -1153,6 +1178,11 @@ tra_tCtx trace_new( void *parent_ctx,
{
"tra_activate_zoomin"
,(
caddr_t
)
tra_activate_zoomin
},
{
"tra_activate_zoomout"
,(
caddr_t
)
tra_activate_zoomout
},
{
"tra_activate_zoomreset"
,(
caddr_t
)
tra_activate_zoomreset
},
{
"tra_activate_scantime1"
,(
caddr_t
)
tra_activate_scantime1
},
{
"tra_activate_scantime2"
,(
caddr_t
)
tra_activate_scantime2
},
{
"tra_activate_scantime3"
,(
caddr_t
)
tra_activate_scantime3
},
{
"tra_activate_scantime4"
,(
caddr_t
)
tra_activate_scantime4
},
{
"tra_activate_scantime5"
,(
caddr_t
)
tra_activate_scantime5
},
{
"tra_activate_help"
,(
caddr_t
)
tra_activate_help
},
{
"tra_activate_helpplc"
,(
caddr_t
)
tra_activate_helpplc
},
{
"tra_create_form"
,(
caddr_t
)
tra_create_form
},
...
...
@@ -1211,6 +1241,7 @@ tra_tCtx trace_new( void *parent_ctx,
tractx
->
display_object_cb
=
display_object_cb
;
tractx
->
collect_insert_cb
=
collect_insert_cb
;
tractx
->
is_authorized_cb
=
is_authorized_cb
;
tractx
->
scan_time
=
0
.
5
;
reglist
[
0
].
value
=
(
caddr_t
)
tractx
;
tractx
->
toplevel
=
XtCreatePopupShell
(
name
,
...
...
src/lib/rt/src/rt_trace.h
View file @
a473d9de
...
...
@@ -44,6 +44,7 @@ struct tra_sCtx{
flow_tCtx
flow_ctx
;
flow_tNode
trace_changenode
;
pwr_tObjid
objid
;
double
scan_time
;
void
(
*
close_cb
)
(
tra_tCtx
);
void
(
*
help_cb
)
(
tra_tCtx
,
char
*
);
void
(
*
subwindow_cb
)
(
void
*
parent_ctx
,
pwr_tObjid
objid
);
...
...
xtt/mmi/xtt/src/xtt_trace.uil
View file @
a473d9de
...
...
@@ -35,6 +35,11 @@ procedure
tra_activate_zoomin(integer);
tra_activate_zoomout(integer);
tra_activate_zoomreset(integer);
tra_activate_scantime1(integer);
tra_activate_scantime2(integer);
tra_activate_scantime3(integer);
tra_activate_scantime4(integer);
tra_activate_scantime5(integer);
tra_activate_help(integer);
tra_activate_helpplc(integer);
tra_create_form(integer);
...
...
@@ -328,6 +333,87 @@ object view_entry : XmCascadeButton
XmNactivateCallback = procedure tra_activate_zoomreset(tra_ctx);
};
};
XmCascadeButton
{
arguments
{
XmNlabelString = compound_string("ScanTime");
XmNfontList = menu_font;
};
callbacks
{
! MrmNcreateCallback = procedure ute_create_batchoptmenu( ute_ctx) ;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = compound_string("0.50");
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure tra_activate_scantime1(tra_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = compound_string("0.20");
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure tra_activate_scantime2(tra_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = compound_string("0.10");
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure tra_activate_scantime3(tra_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = compound_string("0.05");
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure tra_activate_scantime4(tra_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = compound_string("0.02");
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure tra_activate_scantime5(tra_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