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
45fafefb
Commit
45fafefb
authored
Oct 09, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In command 'open graph /object' the qualifier /access can be used
parent
6b030534
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
9 deletions
+26
-9
xtt/lib/xtt/src/xtt_c_object.cpp
xtt/lib/xtt/src/xtt_c_object.cpp
+2
-2
xtt/lib/xtt/src/xtt_xnav.h
xtt/lib/xtt/src/xtt_xnav.h
+4
-3
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+20
-4
No files found.
xtt/lib/xtt/src/xtt_c_object.cpp
View file @
45fafefb
/*
* Proview $Id: xtt_c_object.cpp,v 1.2
0 2008-09-18 14:58:00
claes Exp $
* Proview $Id: xtt_c_object.cpp,v 1.2
1 2008-10-09 08:56:54
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1896,7 +1896,7 @@ static pwr_tStatus CrrOpenTraceFilter( xmenu_sMenuCall *ip)
// Open graph
static
pwr_tStatus
CrrOpenGraph
(
xmenu_sMenuCall
*
ip
)
{
((
XNav
*
)
ip
->
EditorContext
)
->
exec_xttgraph
(
ip
->
Pointed
.
Objid
,
0
,
0
,
0
);
((
XNav
*
)
ip
->
EditorContext
)
->
exec_xttgraph
(
ip
->
Pointed
.
Objid
,
0
,
0
,
0
,
0
,
0
);
return
XNAV__SUCCESS
;
}
...
...
xtt/lib/xtt/src/xtt_xnav.h
View file @
45fafefb
/*
* Proview $Id: xtt_xnav.h,v 1.2
6 2008-09-18 14:58:26
claes Exp $
* Proview $Id: xtt_xnav.h,v 1.2
7 2008-10-09 08:56:54
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -491,8 +491,9 @@ class XNav {
char
*
focus
,
int
inputempty
,
int
use_default_access
,
unsigned
int
access
);
void
close_graph
(
char
*
filename
,
char
*
object_name
);
int
exec_xttgraph
(
pwr_tObjid
xttgraph
,
char
*
instance
,
char
*
focus
,
int
inputemtpy
);
int
exec_xttgraph
(
pwr_tObjid
xttgraph
,
char
*
instance
,
char
*
focus
,
int
inputempty
,
int
use_default_access
,
unsigned
int
access
);
int
set_parameter
(
char
*
name_str
,
char
*
value_str
,
int
bypass
);
void
open_rttlog
(
char
*
name
,
char
*
filename
);
int
search
(
char
*
search_str
,
int
regexp
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
45fafefb
/*
* Proview $Id: xtt_xnav_command.cpp,v 1.
39 2008-09-18 14:58
:54 claes Exp $
* Proview $Id: xtt_xnav_command.cpp,v 1.
40 2008-10-09 08:56
:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2391,6 +2391,10 @@ static int xnav_open_func( void *client_data,
char
focus_str
[
80
];
char
*
focus_p
;
int
inputempty
;
char
tmp_str
[
80
];
int
use_default_access
;
unsigned
int
access
;
int
nr
;
IF_NOGDH_RETURN
;
if
(
strncmp
(
object_str
,
"*-"
,
2
)
==
0
||
...
...
@@ -2422,7 +2426,18 @@ static int xnav_open_func( void *client_data,
else
focus_p
=
0
;
xnav
->
exec_xttgraph
(
objid
,
instance_p
,
focus_p
,
inputempty
);
if
(
ODD
(
dcli_get_qualifier
(
"/ACCESS"
,
tmp_str
,
sizeof
(
tmp_str
))))
{
nr
=
sscanf
(
tmp_str
,
"%u"
,
&
access
);
if
(
nr
!=
1
)
{
xnav
->
message
(
'E'
,
"Syntax error in access"
);
return
XNAV__HOLDCOMMAND
;
}
use_default_access
=
1
;
}
else
use_default_access
=
0
;
xnav
->
exec_xttgraph
(
objid
,
instance_p
,
focus_p
,
inputempty
,
use_default_access
,
access
);
}
else
{
pwr_tFileName
file_str
;
...
...
@@ -6617,7 +6632,8 @@ void XNav::close_graph( char *filename, char *object_name)
}
int
XNav
::
exec_xttgraph
(
pwr_tObjid
xttgraph
,
char
*
instance
,
char
*
focus
,
int
inputempty
)
char
*
focus
,
int
inputempty
,
int
use_default_access
,
unsigned
int
access
)
{
pwr_sClass_XttGraph
xttgraph_o
;
char
action
[
80
];
...
...
@@ -6650,7 +6666,7 @@ int XNav::exec_xttgraph( pwr_tObjid xttgraph, char *instance,
open_graph
(
xttgraph_o
.
Title
,
action
,
xttgraph_o
.
Scrollbar
,
xttgraph_o
.
Menu
,
xttgraph_o
.
Navigator
,
xttgraph_o
.
Width
,
xttgraph_o
.
Height
,
xttgraph_o
.
X
,
xttgraph_o
.
Y
,
instance
,
focus
,
inputempty
,
0
,
0
);
focus
,
inputempty
,
use_default_access
,
access
);
}
else
if
(
(
strstr
(
action
,
".class"
)))
{
...
...
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