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
5bdf3ce5
Commit
5bdf3ce5
authored
Feb 02, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge command 'disable log' added
parent
6a1cfc97
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
5 deletions
+40
-5
xtt/lib/ge/src/ge.cpp
xtt/lib/ge/src/ge.cpp
+8
-4
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+1
-1
xtt/lib/ge/src/ge_graph.h
xtt/lib/ge/src/ge_graph.h
+1
-0
xtt/lib/ge/src/ge_graph_command.cpp
xtt/lib/ge/src/ge_graph_command.cpp
+30
-0
No files found.
xtt/lib/ge/src/ge.cpp
View file @
5bdf3ce5
...
...
@@ -267,6 +267,7 @@ void Ge::save_graph( Ge *gectx, char *name)
}
unsigned
int
opt
=
(
gectx
->
options
&
ge_mOption_EnableComment
)
?
log_mOption_Comment
:
0
;
if
(
!
gectx
->
graph
->
disable_log
)
wb_log
::
log
(
wlog_eCategory_GeSave
,
graphname
,
0
,
opt
);
}
...
...
@@ -521,14 +522,17 @@ void Ge::export_gejava( Ge *gectx, char *name)
gectx
->
graph
->
get_name
(
gname
);
if
(
gectx
->
graph
->
is_javaapplication
()
&&
gectx
->
graph
->
is_javaapplet
())
{
gectx
->
message
(
'I'
,
"Java frame and applet exported"
);
if
(
!
gectx
->
graph
->
disable_log
)
wb_log
::
log
(
wlog_eCategory_GeExport
,
gname
,
0
);
}
else
if
(
gectx
->
graph
->
is_javaapplication
())
{
gectx
->
message
(
'I'
,
"Java frame exported"
);
if
(
!
gectx
->
graph
->
disable_log
)
wb_log
::
log
(
wlog_eCategory_GeExport
,
gname
,
0
);
}
else
if
(
gectx
->
graph
->
is_javaapplet
())
{
gectx
->
message
(
'I'
,
"Java applet exported"
);
if
(
!
gectx
->
graph
->
disable_log
)
wb_log
::
log
(
wlog_eCategory_GeExport
,
gname
,
0
);
}
else
...
...
xtt/lib/ge/src/ge_graph.cpp
View file @
5bdf3ce5
...
...
@@ -167,7 +167,7 @@ Graph::Graph(
graph_object_scan
(
0
),
graph_object_close
(
0
),
local_db
(
0
),
use_default_access
(
xn_use_default_access
),
default_access
(
xn_default_access
),
keep_mode
(
false
),
subgraph_dyn
(
0
),
was_subgraph
(
0
)
subgraph_dyn
(
0
),
was_subgraph
(
0
)
,
disable_log
(
0
)
{
cdh_StrncpyCutOff
(
name
,
xn_name
,
sizeof
(
name
),
1
);
strcpy
(
default_path
,
xn_default_path
);
...
...
xtt/lib/ge/src/ge_graph.h
View file @
5bdf3ce5
...
...
@@ -506,6 +506,7 @@ class Graph {
char
java_path
[
80
];
//!< Path for generated java code for baseclasses
char
java_package
[
80
];
//!< Package for generated java code for baseclasses
vector
<
GraphRef
>
reflist
;
//!< List with stored references
int
disable_log
;
//!< Disable wb log window
//! Print to postscript file.
/*! \param filename Name of postscript file. */
...
...
xtt/lib/ge/src/ge_graph_command.cpp
View file @
5bdf3ce5
...
...
@@ -91,6 +91,8 @@ static int graph_export_func( void *client_data,
void
*
client_flag
);
static
int
graph_replace_func
(
void
*
client_data
,
void
*
client_flag
);
static
int
graph_disable_func
(
void
*
client_data
,
void
*
client_flag
);
static
int
graph_convert_func
(
void
*
client_data
,
void
*
client_flag
);
...
...
@@ -200,6 +202,11 @@ dcli_tCmdTable graph_command_table[] = {
&
graph_export_func
,
{
"dcli_arg1"
,
""
}
},
{
"DISABLE"
,
&
graph_disable_func
,
{
"dcli_arg1"
,
""
}
},
{
""
,}};
static
void
graph_store_graph
(
Graph
*
graph
)
...
...
@@ -2336,6 +2343,29 @@ static int graph_convert_func( void *client_data,
return
GE__SUCCESS
;
}
static
int
graph_disable_func
(
void
*
client_data
,
void
*
client_flag
)
{
Graph
*
graph
=
(
Graph
*
)
client_data
;
char
arg1_str
[
80
];
int
arg1_sts
;
arg1_sts
=
dcli_get_qualifier
(
"dcli_arg1"
,
arg1_str
,
sizeof
(
arg1_str
));
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"LOG"
,
strlen
(
arg1_str
))
==
0
)
{
graph
->
disable_log
=
1
;
graph
->
message
(
'I'
,
"Log disabled"
);
}
else
{
graph
->
message
(
'E'
,
"Syntax error"
);
return
GE__SYNTAX
;
}
return
GE__SUCCESS
;
}
static
int
graph_replace_func
(
void
*
client_data
,
void
*
client_flag
)
{
...
...
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