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
4edbdaf7
Commit
4edbdaf7
authored
May 03, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt command 'set graph /inconify' and 'set graph /below' added
parent
7e0cab03
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
1 deletion
+47
-1
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
+13
-0
xtt/lib/xtt/gtk/xtt_ge_gtk.h
xtt/lib/xtt/gtk/xtt_ge_gtk.h
+2
-0
xtt/lib/xtt/src/xtt_ge.h
xtt/lib/xtt/src/xtt_ge.h
+2
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+30
-1
No files found.
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
View file @
4edbdaf7
...
@@ -73,6 +73,19 @@ gboolean XttGeGtk::action_inputfocus( GtkWidget *w, GdkEvent *event, gpointer da
...
@@ -73,6 +73,19 @@ gboolean XttGeGtk::action_inputfocus( GtkWidget *w, GdkEvent *event, gpointer da
return
FALSE
;
return
FALSE
;
}
}
void
XttGeGtk
::
iconify
(
int
val
)
{
if
(
val
)
gtk_window_iconify
(
GTK_WINDOW
(
toplevel
));
else
gtk_window_deiconify
(
GTK_WINDOW
(
toplevel
));
}
void
XttGeGtk
::
set_below
(
int
val
)
{
gtk_window_set_keep_below
(
GTK_WINDOW
(
toplevel
),
val
);
}
void
XttGeGtk
::
set_size
(
int
width
,
int
height
)
void
XttGeGtk
::
set_size
(
int
width
,
int
height
)
{
{
int
default_width
;
int
default_width
;
...
...
xtt/lib/xtt/gtk/xtt_ge_gtk.h
View file @
4edbdaf7
...
@@ -80,6 +80,8 @@ class XttGeGtk : public XttGe {
...
@@ -80,6 +80,8 @@ class XttGeGtk : public XttGe {
void
confirm_reply
(
int
ok
);
void
confirm_reply
(
int
ok
);
void
*
get_widget
()
{
return
toplevel
;}
void
*
get_widget
()
{
return
toplevel
;}
GtkWidget
*
get_graph_widget
()
{
return
graph_form
;}
GtkWidget
*
get_graph_widget
()
{
return
graph_form
;}
void
iconify
(
int
val
);
void
set_below
(
int
val
);
static
void
ge_change_value_cb
(
void
*
ge_ctx
,
void
*
value_object
,
char
*
text
);
static
void
ge_change_value_cb
(
void
*
ge_ctx
,
void
*
value_object
,
char
*
text
);
static
void
confirm_cb
(
void
*
ge_ctx
,
void
*
confirm_object
,
char
*
text
);
static
void
confirm_cb
(
void
*
ge_ctx
,
void
*
confirm_object
,
char
*
text
);
...
...
xtt/lib/xtt/src/xtt_ge.h
View file @
4edbdaf7
...
@@ -90,6 +90,8 @@ class XttGe : XttUtility {
...
@@ -90,6 +90,8 @@ class XttGe : XttUtility {
virtual
void
set_size
(
int
width
,
int
height
)
{}
virtual
void
set_size
(
int
width
,
int
height
)
{}
virtual
void
confirm_reply
(
int
ok
)
{}
virtual
void
confirm_reply
(
int
ok
)
{}
virtual
void
*
get_widget
()
{
return
0
;}
virtual
void
*
get_widget
()
{
return
0
;}
virtual
void
iconify
(
int
val
)
{}
virtual
void
set_below
(
int
val
)
{}
xtt_eUtility
get_type
()
{
return
xtt_eUtility_Graph
;}
xtt_eUtility
get_type
()
{
return
xtt_eUtility_Graph
;}
void
message
(
char
severity
,
const
char
*
msg
);
void
message
(
char
severity
,
const
char
*
msg
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
4edbdaf7
...
@@ -374,6 +374,7 @@ dcli_tCmdTable xnav_command_table[] = {
...
@@ -374,6 +374,7 @@ dcli_tCmdTable xnav_command_table[] = {
{
"dcli_arg1"
,
"dcli_arg2"
,
"/NAME"
,
"/VALUE"
,
{
"dcli_arg1"
,
"dcli_arg2"
,
"/NAME"
,
"/VALUE"
,
"/BYPASS"
,
"/PUBLICWRITE"
,
"/INDEX"
,
"/SOURCE"
,
"/OBJECT"
,
"/CONTINUE"
,
"/BYPASS"
,
"/PUBLICWRITE"
,
"/INDEX"
,
"/SOURCE"
,
"/OBJECT"
,
"/CONTINUE"
,
"/X0"
,
"/Y0"
,
"/X1"
,
"/Y1"
,
"/INSTANCE"
,
"/ESCAPESTORE"
,
"/FOCUS"
,
"/INPUTEMPTY"
,
"/X0"
,
"/Y0"
,
"/X1"
,
"/Y1"
,
"/INSTANCE"
,
"/ESCAPESTORE"
,
"/FOCUS"
,
"/INPUTEMPTY"
,
"/ICONIFY"
,
"/BELOW"
,
""
}
""
}
},
},
{
{
...
@@ -1234,6 +1235,8 @@ static int xnav_set_func( void *client_data,
...
@@ -1234,6 +1235,8 @@ static int xnav_set_func( void *client_data,
pwr_tAName
instance_str
;
pwr_tAName
instance_str
;
char
*
instance_p
=
0
;
char
*
instance_p
=
0
;
char
name_str
[
200
];
char
name_str
[
200
];
char
iconify_str
[
20
];
char
below_str
[
20
];
XttGe
*
gectx
;
XttGe
*
gectx
;
if
(
ODD
(
dcli_get_qualifier
(
"/INSTANCE"
,
instance_str
,
sizeof
(
instance_str
))))
if
(
ODD
(
dcli_get_qualifier
(
"/INSTANCE"
,
instance_str
,
sizeof
(
instance_str
))))
...
@@ -1252,6 +1255,32 @@ static int xnav_set_func( void *client_data,
...
@@ -1252,6 +1255,32 @@ static int xnav_set_func( void *client_data,
if
(
ODD
(
dcli_get_qualifier
(
"/ESCAPESTORE"
,
0
,
0
)))
{
if
(
ODD
(
dcli_get_qualifier
(
"/ESCAPESTORE"
,
0
,
0
)))
{
gectx
->
set_object_focus
(
0
,
0
);
gectx
->
set_object_focus
(
0
,
0
);
}
}
else
if
(
ODD
(
dcli_get_qualifier
(
"/ICONIFY"
,
iconify_str
,
sizeof
(
iconify_str
))))
{
int
iconify
;
if
(
strcmp
(
iconify_str
,
"1"
)
==
0
)
iconify
=
1
;
else
if
(
strcmp
(
iconify_str
,
"0"
)
==
0
)
iconify
=
0
;
else
{
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__SUCCESS
;
}
gectx
->
iconify
(
iconify
);
}
else
if
(
ODD
(
dcli_get_qualifier
(
"/BELOW"
,
below_str
,
sizeof
(
below_str
))))
{
int
below
;
if
(
strcmp
(
below_str
,
"1"
)
==
0
)
below
=
1
;
else
if
(
strcmp
(
below_str
,
"0"
)
==
0
)
below
=
0
;
else
{
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__SUCCESS
;
}
gectx
->
set_below
(
below
);
}
else
{
else
{
xnav
->
message
(
'E'
,
"Syntax error"
);
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__SUCCESS
;
return
XNAV__SUCCESS
;
...
...
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