Commit a564504b authored by Claes Sjofors's avatar Claes Sjofors

Ge editor, build button added

parent 1ae8ae08
This diff is collapsed.
...@@ -181,6 +181,7 @@ class GeGtk : public Ge { ...@@ -181,6 +181,7 @@ class GeGtk : public Ge {
static void activate_new( GtkWidget *w, gpointer gectx); static void activate_new( GtkWidget *w, gpointer gectx);
static void activate_save( GtkWidget *w, gpointer gectx); static void activate_save( GtkWidget *w, gpointer gectx);
static void activate_save_as( 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( GtkWidget *w, gpointer gectx);
static void activate_export_javabean_as( GtkWidget *w, gpointer gectx); static void activate_export_javabean_as( GtkWidget *w, gpointer gectx);
static void activate_export_gejava( GtkWidget *w, gpointer gectx); static void activate_export_gejava( GtkWidget *w, gpointer gectx);
......
...@@ -1135,6 +1135,23 @@ void Ge::activate_save_as() ...@@ -1135,6 +1135,23 @@ void Ge::activate_save_as()
Ge::save_graph); 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() void Ge::activate_export_javabean()
{ {
char name[80]; char name[80];
......
...@@ -203,6 +203,7 @@ class Ge { ...@@ -203,6 +203,7 @@ class Ge {
void activate_new(); void activate_new();
void activate_save(); void activate_save();
void activate_save_as(); void activate_save_as();
void activate_build();
void activate_export_javabean(); void activate_export_javabean();
void activate_export_javabean_as(); void activate_export_javabean_as();
void activate_export_gejava(); void activate_export_gejava();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment