- Added the LOAD command to TextSimulation, and the classic question made to user on replacing an unsaved simulation

- Changed the way syntactically incorrect python policies are handled, we no more exit abruptly

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@829 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-08-08 00:20:56 +00:00
parent d72ce96508
commit 0138387a7f
8 changed files with 189 additions and 14 deletions

View file

@ -74,6 +74,7 @@ namespace sgpem
virtual void update(const History& changed_history);
bool check_arguments_num(const Tokens& arguments, unsigned int num);
bool unsaved_ask_confirm() const;
template <typename Container>
void show(const Container& entities);
template <typename T>
@ -107,12 +108,15 @@ namespace sgpem
void on_remove_request(const Tokens& arguments);
void on_remove_subrequest(const Tokens& arguments);
void on_save(const Tokens& arguments);
void on_load(const Tokens& arguments);
// FIXME This is a temporary replacement for the
// to-be written I/O layer
static void p_stdout(const Glib::ustring& str);
static void p_stderr(const Glib::ustring& str);
static Glib::ustring readline();
bool _saved;
};
}