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
0fefc27f
Commit
0fefc27f
authored
Dec 02, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New command 'set folder'
parent
a8df17f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
2 deletions
+52
-2
xtt/lib/xtt/src/xtt_ge.cpp
xtt/lib/xtt/src/xtt_ge.cpp
+4
-0
xtt/lib/xtt/src/xtt_ge.h
xtt/lib/xtt/src/xtt_ge.h
+1
-0
xtt/lib/xtt/src/xtt_xnav.cpp
xtt/lib/xtt/src/xtt_xnav.cpp
+10
-1
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+37
-1
No files found.
xtt/lib/xtt/src/xtt_ge.cpp
View file @
0fefc27f
...
...
@@ -353,6 +353,10 @@ int ge_set_object_focus( ge_tCtx gectx, char *name, int empty)
return
((
Graph
*
)
gectx
->
graph
)
->
set_object_focus
(
name
,
empty
);
}
int
ge_set_folder_index
(
ge_tCtx
gectx
,
char
*
name
,
int
idx
)
{
return
((
Graph
*
)
gectx
->
graph
)
->
set_folder_index
(
name
,
idx
);
}
extern
"C"
void
ge_delete
(
ge_tCtx
gectx
)
{
...
...
xtt/lib/xtt/src/xtt_ge.h
View file @
0fefc27f
...
...
@@ -58,6 +58,7 @@ typedef struct ge_sCtx {
void
ge_pop
(
ge_tCtx
gectx
);
int
ge_set_object_focus
(
ge_tCtx
gectx
,
char
*
name
,
int
empty
);
int
ge_set_folder_index
(
ge_tCtx
gectx
,
char
*
name
,
int
idx
);
void
ge_swap
(
ge_tCtx
gectx
,
int
mode
);
extern
"C"
ge_tCtx
ge_new
(
Widget
parent_wid
,
...
...
xtt/lib/xtt/src/xtt_xnav.cpp
View file @
0fefc27f
...
...
@@ -2423,9 +2423,18 @@ int XNav::display_object( pwr_sAttrRef *arp, int open)
sts
=
gdh_AttrrefToName
(
arp
,
name
,
sizeof
(
name
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
goto
display_error
;
pn
=
cdh_ParseName
(
&
sts
,
&
parsename
,
pwr_cNObjid
,
name
,
0
);
if
(
pn
->
nAttribute
==
0
)
{
brow_SetInverse
(
item
->
node
,
1
);
brow_SelectInsert
(
brow
->
ctx
,
item
->
node
);
brow_ResetNodraw
(
brow
->
ctx
);
brow_Redraw
(
brow
->
ctx
,
0
);
brow_CenterObject
(
brow
->
ctx
,
item
->
node
,
0.80
);
return
1
;
}
item
->
open_attributes
(
brow
,
0
,
0
);
pn
=
cdh_ParseName
(
&
sts
,
&
parsename
,
pwr_cNObjid
,
name
,
0
);
strcpy
(
name
,
pn
->
attribute
[
0
].
name
.
orig
);
for
(
i
=
0
;
i
<
(
int
)
pn
->
nAttribute
;
i
++
)
{
sts
=
find
(
arp
->
Objid
,
name
,
(
void
**
)
&
aitem
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
0fefc27f
...
...
@@ -246,7 +246,7 @@ dcli_tCmdTable xnav_command_table[] = {
"SET"
,
&
xnav_set_func
,
{
"dcli_arg1"
,
"dcli_arg2"
,
"/NAME"
,
"/VALUE"
,
"/BYPASS"
,
""
}
"/BYPASS"
,
"
/INDEX"
,
"
"
}
},
{
"SETUP"
,
...
...
@@ -589,6 +589,42 @@ static int xnav_set_func( void *client_data,
else
return
sts
;
}
else
if
(
strncmp
(
arg1_str
,
"FOLDER"
,
strlen
(
arg1_str
))
==
0
)
{
// Command is "SET FOLDER"
ge_tCtx
gectx
;
char
graph_str
[
80
];
char
object_str
[
80
];
char
idx_str
[
20
];
int
nr
;
int
idx
;
if
(
EVEN
(
dcli_get_qualifier
(
"dcli_arg2"
,
graph_str
)))
{
xnav
->
message
(
'E'
,
"Graph name is missing"
);
return
XNAV__HOLDCOMMAND
;
}
if
(
EVEN
(
dcli_get_qualifier
(
"/NAME"
,
object_str
)))
{
xnav
->
message
(
'E'
,
"Object name is missing"
);
return
XNAV__HOLDCOMMAND
;
}
if
(
EVEN
(
dcli_get_qualifier
(
"/INDEX"
,
idx_str
)))
{
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__HOLDCOMMAND
;
}
nr
=
sscanf
(
idx_str
,
"%d"
,
&
idx
);
if
(
nr
!=
1
)
{
xnav
->
message
(
'E'
,
"Syntax error"
);
return
XNAV__HOLDCOMMAND
;
}
if
(
!
xnav
->
appl
.
find
(
applist_eType_Graph
,
graph_str
,
0
,
(
void
**
)
&
gectx
))
{
xnav
->
message
(
'E'
,
"Graph is not open"
);
return
XNAV__HOLDCOMMAND
;
}
ge_set_folder_index
(
gectx
,
object_str
,
idx
);
}
else
xnav
->
message
(
'E'
,
"Syntax error"
);
return
1
;
...
...
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