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
ef10411d
Commit
ef10411d
authored
Sep 23, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt command 'open navigator' added, and /object added to command 'set subwindow'
parent
34b4523d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
16 deletions
+43
-16
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+2
-2
xtt/lib/ge/src/ge_graph.h
xtt/lib/ge/src/ge_graph.h
+2
-1
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+2
-2
xtt/lib/glow/src/glow_growapi.h
xtt/lib/glow/src/glow_growapi.h
+1
-1
xtt/lib/glow/src/glow_growwindow.cpp
xtt/lib/glow/src/glow_growwindow.cpp
+3
-1
xtt/lib/glow/src/glow_growwindow.h
xtt/lib/glow/src/glow_growwindow.h
+1
-1
xtt/lib/xtt/src/xtt_ge.cpp
xtt/lib/xtt/src/xtt_ge.cpp
+2
-2
xtt/lib/xtt/src/xtt_ge.h
xtt/lib/xtt/src/xtt_ge.h
+1
-1
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+29
-5
No files found.
xtt/lib/ge/src/ge_graph.cpp
View file @
ef10411d
...
...
@@ -3956,7 +3956,7 @@ int Graph::set_folder_index( const char *name, int idx)
return
grow_SetFolderIndex
(
object
,
idx
);
}
int
Graph
::
set_subwindow_source
(
const
char
*
name
,
char
*
source
)
int
Graph
::
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
owner
)
{
int
sts
;
grow_tObject
object
;
...
...
@@ -3971,7 +3971,7 @@ int Graph::set_subwindow_source( const char *name, char *source)
if
(
grow_GetObjectType
(
object
)
!=
glow_eObjectType_GrowWindow
)
return
0
;
sts
=
grow_SetWindowSource
(
object
,
source
);
sts
=
grow_SetWindowSource
(
object
,
source
,
owner
);
if
(
ctx
!=
grow
->
ctx
)
grow
->
pop
(
ctx
);
...
...
xtt/lib/ge/src/ge_graph.h
View file @
ef10411d
...
...
@@ -1288,8 +1288,9 @@ class Graph {
/*!
\param name Object name of window object.
\param source Name of source graph.
\param owner Name of instance object. NULL if not used.
*/
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
);
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
owner
);
//! Play a sound.
/*!
...
...
xtt/lib/glow/src/glow_growapi.cpp
View file @
ef10411d
...
...
@@ -4769,9 +4769,9 @@ int grow_SetFolderIndex( grow_tObject folder, int idx)
return
((
GrowFolder
*
)
folder
)
->
set_folder
(
idx
);
}
int
grow_SetWindowSource
(
grow_tObject
window
,
char
*
source
)
int
grow_SetWindowSource
(
grow_tObject
window
,
char
*
source
,
char
*
owner
)
{
return
((
GrowWindow
*
)
window
)
->
set_source
(
source
);
return
((
GrowWindow
*
)
window
)
->
set_source
(
source
,
owner
);
}
void
grow_GetWindowSize
(
grow_tCtx
ctx
,
int
*
width
,
int
*
height
)
...
...
xtt/lib/glow/src/glow_growapi.h
View file @
ef10411d
...
...
@@ -2993,7 +2993,7 @@ extern "C" {
void
grow_GetSubmenuPosition
(
grow_tObject
menu
,
int
item
,
double
*
x
,
double
*
y
);
int
grow_GetMenuParent
(
grow_tObject
menu
,
grow_tObject
*
parent
);
int
grow_SetFolderIndex
(
grow_tObject
folder
,
int
idx
);
int
grow_SetWindowSource
(
grow_tObject
window
,
char
*
source
);
int
grow_SetWindowSource
(
grow_tObject
window
,
char
*
source
,
char
*
owner
);
void
grow_GetWindowSize
(
grow_tCtx
ctx
,
int
*
width
,
int
*
height
);
int
grow_IsJava
(
char
*
name
,
int
*
is_frame
,
int
*
is_applet
,
char
*
java_name
);
void
grow_GetOwner
(
grow_tCtx
ctx
,
char
*
owner
);
...
...
xtt/lib/glow/src/glow_growwindow.cpp
View file @
ef10411d
...
...
@@ -981,7 +981,7 @@ int GrowWindow::get_background_object_limits(GlowTransform *t,
return
0
;
}
int
GrowWindow
::
set_source
(
char
*
source
)
int
GrowWindow
::
set_source
(
char
*
source
,
char
*
new_owner
)
{
int
clip_removed
=
0
;
...
...
@@ -992,6 +992,8 @@ int GrowWindow::set_source( char *source)
}
strcpy
(
input_file_name
,
source
);
if
(
new_owner
)
strncpy
(
owner
,
new_owner
,
sizeof
(
owner
));
update_attributes
();
draw
();
...
...
xtt/lib/glow/src/glow_growwindow.h
View file @
ef10411d
...
...
@@ -282,7 +282,7 @@ class GrowWindow : public GrowRect {
double
x
,
double
y
,
GlowArrayElem
**
background
,
double
*
min
,
double
*
max
,
glow_eDirection
*
direction
);
void
set_input_focus
(
int
focus
,
glow_eEvent
event
);
int
set_source
(
char
*
source
);
int
set_source
(
char
*
source
,
char
*
new_owner
);
static
void
v_value_changed_cb
(
void
*
o
,
double
value
);
static
void
h_value_changed_cb
(
void
*
o
,
double
value
);
...
...
xtt/lib/xtt/src/xtt_ge.cpp
View file @
ef10411d
...
...
@@ -193,9 +193,9 @@ int XttGe::set_folder_index( const char *name, int idx)
return
graph
->
set_folder_index
(
name
,
idx
);
}
int
XttGe
::
set_subwindow_source
(
const
char
*
name
,
char
*
source
)
int
XttGe
::
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
object
)
{
return
graph
->
set_subwindow_source
(
name
,
source
);
return
graph
->
set_subwindow_source
(
name
,
source
,
object
);
}
XttGe
::~
XttGe
()
...
...
xtt/lib/xtt/src/xtt_ge.h
View file @
ef10411d
...
...
@@ -89,7 +89,7 @@ class XttGe {
void
print
();
int
set_object_focus
(
const
char
*
name
,
int
empty
);
int
set_folder_index
(
const
char
*
name
,
int
idx
);
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
);
int
set_subwindow_source
(
const
char
*
name
,
char
*
source
,
char
*
object
);
void
swap
(
int
mode
);
void
event_exec
(
int
type
,
void
*
event
,
unsigned
int
size
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
ef10411d
...
...
@@ -340,7 +340,7 @@ dcli_tCmdTable xnav_command_table[] = {
"SET"
,
&
xnav_set_func
,
{
"dcli_arg1"
,
"dcli_arg2"
,
"/NAME"
,
"/VALUE"
,
"/BYPASS"
,
"/INDEX"
,
"/SOURCE"
,
""
}
"/BYPASS"
,
"/INDEX"
,
"/SOURCE"
,
"
/OBJECT"
,
"
"
}
},
{
"SETUP"
,
...
...
@@ -686,7 +686,7 @@ static int xnav_logout_func( void *client_data,
}
static
int
xnav_set_func
(
void
*
client_data
,
void
*
client_flag
)
void
*
client_flag
)
{
XNav
*
xnav
=
(
XNav
*
)
client_data
;
char
arg1_str
[
80
];
...
...
@@ -815,7 +815,9 @@ static int xnav_set_func( void *client_data,
// Command is "SET SUBWINDOW"
XttGe
*
gectx
;
char
graph_str
[
80
];
char
object_str
[
80
];
char
name_str
[
80
];
pwr_tOName
object_str
;
char
*
object_p
;
char
source_str
[
80
];
if
(
EVEN
(
dcli_get_qualifier
(
"dcli_arg2"
,
graph_str
,
sizeof
(
graph_str
))))
{
...
...
@@ -823,7 +825,7 @@ static int xnav_set_func( void *client_data,
return
XNAV__HOLDCOMMAND
;
}
if
(
EVEN
(
dcli_get_qualifier
(
"/NAME"
,
object_str
,
sizeof
(
object
_str
))))
{
if
(
EVEN
(
dcli_get_qualifier
(
"/NAME"
,
name_str
,
sizeof
(
name
_str
))))
{
xnav
->
message
(
'E'
,
"Object name is missing"
);
return
XNAV__HOLDCOMMAND
;
}
...
...
@@ -833,12 +835,17 @@ static int xnav_set_func( void *client_data,
return
XNAV__HOLDCOMMAND
;
}
if
(
ODD
(
dcli_get_qualifier
(
"/OBJECT"
,
object_str
,
sizeof
(
object_str
))))
object_p
=
object_str
;
else
object_p
=
0
;
if
(
!
xnav
->
appl
.
find
(
applist_eType_Graph
,
graph_str
,
0
,
(
void
**
)
&
gectx
))
{
xnav
->
message
(
'E'
,
"Graph is not open"
);
return
XNAV__HOLDCOMMAND
;
}
return
gectx
->
set_subwindow_source
(
object_str
,
source_str
);
return
gectx
->
set_subwindow_source
(
name_str
,
source_str
,
object_p
);
}
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"LANGUAGE"
,
strlen
(
arg1_str
))
==
0
)
{
...
...
@@ -3683,6 +3690,23 @@ static int xnav_open_func( void *client_data,
fileview
=
xnav
->
fileview_new
(
aref
.
Objid
,
title_str
,
dir_str
,
file_str
,
type
,
target_str
,
trigger_str
,
filetype_p
);
}
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"NAVIGATOR"
,
strlen
(
arg1_str
))
==
0
)
{
pwr_tAName
object_str
;
pwr_tAttrRef
aref
;
pwr_tStatus
sts
;
if
(
ODD
(
dcli_get_qualifier
(
"/OBJECT"
,
object_str
,
sizeof
(
object_str
))))
{
sts
=
gdh_NameToAttrref
(
pwr_cNObjid
,
object_str
,
&
aref
);
if
(
EVEN
(
sts
))
{
xnav
->
message
(
'E'
,
"Uable to find object"
);
return
XNAV__HOLDCOMMAND
;
}
xnav
->
display_object
(
&
aref
,
0
);
}
xnav
->
pop
();
}
else
xnav
->
message
(
'E'
,
"Syntax error"
);
...
...
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