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
9cd55aa9
Commit
9cd55aa9
authored
Apr 21, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FocusTimer added
parent
44d7113e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
xtt/lib/xtt/src/xtt_hist.cpp
xtt/lib/xtt/src/xtt_hist.cpp
+15
-2
xtt/lib/xtt/src/xtt_hist.h
xtt/lib/xtt/src/xtt_hist.h
+5
-0
No files found.
xtt/lib/xtt/src/xtt_hist.cpp
View file @
9cd55aa9
...
...
@@ -41,6 +41,7 @@ extern "C" {
extern
"C"
{
#include "flow_x.h"
#include "co_mrm_util.h"
}
#include "co_lng.h"
#include "xtt_hist.h"
...
...
@@ -418,12 +419,24 @@ static void hist_action_inputfocus( Widget w, XmAnyCallbackStruct *data)
XtSetArg
(
args
[
0
],
XmNuserData
,
&
hist
);
XtGetValues
(
w
,
args
,
1
);
if
(
mrm_IsIconicState
(
w
))
return
;
if
(
hist
->
hist
)
{
if
(
hist
->
focustimer
.
disabled
())
return
;
hist
->
hist
->
set_input_focus
();
hist
->
focustimer
.
disable
(
hist
->
toplevel_hist
,
4000
);
}
//printf("focus\n");
//histOP->hist->set_input_focus();
//?????????????????????
//if ( ev && ev->hist_displayed)
// ev->hist->set_input_focus();
hist
->
hist
->
set_input_focus
();
// ev->hist->set_input_focus();
//
hist->hist->set_input_focus();
}
...
...
xtt/lib/xtt/src/xtt_hist.h
View file @
9cd55aa9
...
...
@@ -20,6 +20,10 @@ extern "C" {
# include "pwr.h"
#endif
#ifndef xtt_focustimer_h
# include "xtt_focustimer.h"
#endif
#ifndef xtt_evlist
# include "xtt_evlist.h"
#endif
...
...
@@ -77,6 +81,7 @@ class Hist {
void
(
*
popup_menu_cb
)(
void
*
,
pwr_sAttrRef
,
unsigned
long
,
unsigned
long
,
char
*
,
Widget
*
);
EvList
*
hist
;
FocusTimer
focustimer
;
int
hist_size
;
char
*
minTime_str
;
...
...
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