Commit da09b4b0 authored by Florent D'Halluin's avatar Florent D'Halluin
Browse files

[yavgui] Change yavgui into gui in the code.

Meant to ease the transition to another name.
Keep "yavgui" in displayed strings.

(too many files to list).

* yavgui/src/yavgui.cc: Renamed into ->
* yavgui/src/gui.cc: .
* yavgui/src/yavgui.hh: Renamed into ->
* yavgui/src/gui.hh: .
* yavgui/src/yavgui.hxx: Renamed into ->
* yavgui/src/gui.hxx: .
parent 92abc50a
2009-08-04 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Change yavgui into gui in the code.
Meant to ease the transition to another name.
Keep "yavgui" in displayed strings.
(too many files to list).
* yavgui/src/yavgui.cc: Renamed into ->
* yavgui/src/gui.cc: .
* yavgui/src/yavgui.hh: Renamed into ->
* yavgui/src/gui.hh: .
* yavgui/src/yavgui.hxx: Renamed into ->
* yavgui/src/gui.hxx: .
2009-08-04 d-halluin <d-halluin@lrde.epita.fr>
 
[yavgui] Fix crash on closing last automaton.
......
......@@ -38,12 +38,12 @@ COMMON_SOURCES = main.cc \
g_painter.cc \
g_state.moc.cc \
g_transition.moc.cc \
yavgui.moc.cc \
gui.moc.cc \
vcsn_command.moc.cc \
command_list.cc \
vcsn_command.cc \
vcsn_automaton.cc \
yavgui.cc
gui.cc
## -------- ##
......
......@@ -24,7 +24,7 @@
#include "automaton_instance.hh"
namespace yavgui
namespace gui
{
AutomatonInstance::AutomatonInstance (QString filename)
: vcsn_automaton_ (),
......@@ -48,6 +48,6 @@ namespace yavgui
filename_ (),
state_ (NONE)
{
throw exceptions::YavguiException ("Can't copy an automaton instance");
throw exceptions::GuiException ("Can't copy an automaton instance");
}
}
......@@ -32,9 +32,9 @@
# include "vcsn_automaton.hh"
# include "g_view.hh"
using namespace yavgui::display;
using namespace gui::display;
namespace yavgui
namespace gui
{
class AutomatonInstance
{
......@@ -76,7 +76,7 @@ namespace yavgui
// FIXME use.
instance_state state_;
};
} // ! namespace yavgui
} // ! namespace gui
# include "automaton_instance.hxx"
......
......@@ -27,7 +27,7 @@
# include "common.hh"
namespace yavgui
namespace gui
{
AutomatonInstance::~AutomatonInstance ()
{
......@@ -102,6 +102,6 @@ namespace yavgui
state_ = MODIFIED;
}
} // ! namespace yavgui
} // ! namespace gui
#endif /* !AUTOMATON_INSTANCE_HXX_ */
......@@ -32,7 +32,7 @@
#include "commands_fmp.hh"
#include "commands_rw.hh"
namespace yavgui
namespace gui
{
// Add commands here.
......@@ -118,4 +118,4 @@ namespace yavgui
}
}
} // ! namespace yavgui
} // ! namespace gui
......@@ -33,9 +33,9 @@
# include "vcsn_automaton_variant.hh"
# include "vcsn_command.hh"
using namespace yavgui::vcsn_internal;
using namespace gui::vcsn_internal;
namespace yavgui
namespace gui
{
class AutomatonInstance;
......@@ -69,7 +69,7 @@ namespace yavgui
command_slot_vector commands_;
};
} // ! namespace yavgui
} // ! namespace gui
# include "command_list.hxx"
......
......@@ -25,7 +25,7 @@
#ifndef COMMAND_LIST_HXX_
# define COMMAND_LIST_HXX_
namespace yavgui
namespace gui
{
using namespace vcsn_internal;
......@@ -70,6 +70,6 @@ namespace yavgui
return result;
}
} // ! namespace yavgui
} // ! namespace gui
#endif /* !COMMAND_LIST_HXX_ */
......@@ -190,16 +190,16 @@ void operator() (Automaton&) \
// Sugar
# define GET_CURRENT_INSTANCE(Name) \
AutomatonInstance& Name = Yavgui::Instance ()->get_current_instance ()
AutomatonInstance& Name = Gui::Instance ()->get_current_instance ()
# define GET_NEW_INSTANCE(Name) \
AutomatonInstance& Name = Yavgui::Instance ()->get_new_instance ()
AutomatonInstance& Name = Gui::Instance ()->get_new_instance ()
# define AUTOMATON(Instance, Type) \
boost::get<Type>(Instance.vcsn_automaton ().automaton ())
# define MAKE_INSTANCE(Name, Automaton, AutomatonType) \
AutomatonInstance& Name = Yavgui::Instance ()->make_new_instance (); \
AutomatonInstance& Name = Gui::Instance ()->make_new_instance (); \
vcsn_internal::automaton_variant Name##_variant (Automaton); \
Name.vcsn_automaton ().take (Name##_variant, AutomatonType)
......
......@@ -34,7 +34,7 @@
# include <vaucanson/boolean_automaton.hh>
# include <vaucanson/standard_algorithms.hh>
# include "yavgui.hh"
# include "gui.hh"
# include "vcsn_command.hh"
# include "command_macros.hh"
......@@ -44,7 +44,7 @@
using namespace vcsn;
namespace yavgui
namespace gui
{
namespace commands
{
......@@ -65,6 +65,6 @@ namespace yavgui
} // ! namespace commands
} // ! namespace yavgui
} // ! namespace gui
#endif /* !COMMANDS_B_HH_ */
......@@ -37,7 +37,7 @@
# include <vaucanson/fmp_transducer.hh>
# include <vaucanson/standard_algorithms.hh>
# include "yavgui.hh"
# include "gui.hh"
# include "vcsn_command.hh"
# include "command_macros.hh"
......@@ -49,7 +49,7 @@
using namespace vcsn;
namespace yavgui
namespace gui
{
namespace commands
{
......@@ -119,6 +119,6 @@ namespace yavgui
} // ! namespace commands
} // ! namespace yavgui
} // ! namespace gui
#endif /* !COMMANDS_COMMON_HH_ */
......@@ -35,7 +35,7 @@
# include <vaucanson/boolean_transducer.hh>
# include <vaucanson/standard_algorithms.hh>
# include "yavgui.hh"
# include "gui.hh"
# include "vcsn_command.hh"
# include "command_macros.hh"
......@@ -45,7 +45,7 @@
using namespace vcsn;
namespace yavgui
namespace gui
{
namespace commands
{
......@@ -71,6 +71,6 @@ namespace yavgui
} // ! namespace commands
} // ! namespace yavgui
} // ! namespace gui
#endif /* !COMMANDS_FMP_HH_ */
......@@ -31,7 +31,7 @@
# include "common.hh"
# include "yavgui.hh"
# include "gui.hh"
# include "vcsn_command.hh"
# include "command_macros.hh"
......@@ -40,7 +40,7 @@
using namespace vcsn;
namespace yavgui
namespace gui
{
namespace commands
{
......@@ -72,6 +72,6 @@ namespace yavgui
} // ! namespace commands
} // ! namespace yavgui
} // ! namespace gui
#endif /* !COMMANDS_LAYOUT_HH_ */
......@@ -35,7 +35,7 @@
# include <vaucanson/boolean_transducer.hh>
# include <vaucanson/standard_algorithms.hh>
# include "yavgui.hh"
# include "gui.hh"
# include "vcsn_command.hh"
# include "command_macros.hh"
......@@ -45,7 +45,7 @@
using namespace vcsn;
namespace yavgui
namespace gui
{
namespace commands
{
......@@ -70,6 +70,6 @@ namespace yavgui
} // ! namespace commands
} // ! namespace yavgui
} // ! namespace gui
#endif /* !COMMANDS_RW_HH_ */
......@@ -33,7 +33,7 @@
# include "vcsn_common.hh"
# include <vaucanson/z_automaton.hh>
# include "yavgui.hh"
# include "gui.hh"
# include "vcsn_command.hh"
# include "command_macros.hh"
......@@ -43,7 +43,7 @@
using namespace vcsn;
namespace yavgui
namespace gui
{
namespace commands
{
......@@ -51,6 +51,6 @@ namespace yavgui
} // ! namespace commands
} // ! namespace yavgui
} // ! namespace gui
#endif /* !COMMANDS_Z_HH_ */
......@@ -36,7 +36,7 @@
else \
**variant = Automaton
namespace yavgui
namespace gui
{
namespace vcsn_internal
{
......@@ -82,6 +82,6 @@ namespace yavgui
};
} // ! vcsn_internal
} // ! yavgui
} // ! gui
#endif /* !CREATORS_HH_ */
......@@ -24,7 +24,7 @@
#include "dialog_eval.hh"
namespace yavgui
namespace gui
{
namespace dialogs
{
......@@ -56,4 +56,4 @@ namespace yavgui
}
} // ! namespace dialogs
} // ! namespace yavgui
} // ! namespace gui
......@@ -30,7 +30,7 @@
# include "common.hh"
# include "g_common.hh"
namespace yavgui
namespace gui
{
namespace dialogs
{
......@@ -50,6 +50,6 @@ namespace yavgui
};
} // ! namespace dialogs
} // ! namespace yavgui
} // ! namespace gui
#endif /* !DIALOG_EVAL_HH_ */
......@@ -24,9 +24,9 @@
#include "dialog_get_automaton_type.hh"
using namespace yavgui::vcsn_internal;
using namespace gui::vcsn_internal;
namespace yavgui
namespace gui
{
namespace dialogs
{
......@@ -89,4 +89,4 @@ namespace yavgui
}
} // ! namespace dialogs
} // ! namespace yavgui
} // ! namespace gui
......@@ -30,9 +30,9 @@
# include "common.hh"
# include "vcsn_automaton_variant.hh"
using namespace yavgui::vcsn_internal;
using namespace gui::vcsn_internal;
namespace yavgui
namespace gui
{
namespace dialogs
{
......@@ -51,6 +51,6 @@ namespace yavgui
};
} // ! namespace dialogs
} // ! namespace yavgui
} // ! namespace gui
#endif /* !DIALOG_GET_AUTOMATON_TYPE_HH_ */
Supports Markdown
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