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
a564504b
Commit
a564504b
authored
Aug 12, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge editor, build button added
parent
1ae8ae08
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
72 deletions
+115
-72
xtt/lib/ge/gtk/ge_gtk.cpp
xtt/lib/ge/gtk/ge_gtk.cpp
+96
-72
xtt/lib/ge/gtk/ge_gtk.h
xtt/lib/ge/gtk/ge_gtk.h
+1
-0
xtt/lib/ge/src/ge.cpp
xtt/lib/ge/src/ge.cpp
+17
-0
xtt/lib/ge/src/ge.h
xtt/lib/ge/src/ge.h
+1
-0
No files found.
xtt/lib/ge/gtk/ge_gtk.cpp
View file @
a564504b
This diff is collapsed.
Click to expand it.
xtt/lib/ge/gtk/ge_gtk.h
View file @
a564504b
...
...
@@ -181,6 +181,7 @@ class GeGtk : public Ge {
static
void
activate_new
(
GtkWidget
*
w
,
gpointer
gectx
);
static
void
activate_save
(
GtkWidget
*
w
,
gpointer
gectx
);
static
void
activate_save_as
(
GtkWidget
*
w
,
gpointer
gectx
);
static
void
activate_build
(
GtkWidget
*
w
,
gpointer
gectx
);
static
void
activate_export_javabean
(
GtkWidget
*
w
,
gpointer
gectx
);
static
void
activate_export_javabean_as
(
GtkWidget
*
w
,
gpointer
gectx
);
static
void
activate_export_gejava
(
GtkWidget
*
w
,
gpointer
gectx
);
...
...
xtt/lib/ge/src/ge.cpp
View file @
a564504b
...
...
@@ -1135,6 +1135,23 @@ void Ge::activate_save_as()
Ge
::
save_graph
);
}
void
Ge
::
activate_build
()
{
char
name
[
40
];
pwr_tCmd
cmd
;
graph
->
get_name
(
name
);
if
(
strcmp
(
name
,
""
)
==
0
||
graph
->
is_modified
())
{
wow
->
DisplayError
(
"Build error"
,
"Graph is not saved"
);
return
;
}
sprintf
(
cmd
,
"cp -a $pwrp_pop/%s.pwg $pwrp_exe/"
,
name
);
system
(
cmd
);
message
(
'I'
,
"Graph built"
);
}
void
Ge
::
activate_export_javabean
()
{
char
name
[
80
];
...
...
xtt/lib/ge/src/ge.h
View file @
a564504b
...
...
@@ -203,6 +203,7 @@ class Ge {
void
activate_new
();
void
activate_save
();
void
activate_save_as
();
void
activate_build
();
void
activate_export_javabean
();
void
activate_export_javabean_as
();
void
activate_export_gejava
();
...
...
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