Encapsulate some classes in namespaces
[vlp.git] / src / edit / editor.cpp
index b507a6fb6ee796149135d1c6dc044988657ce2fa..563a3e60cd18853ca6dfc0dc3e1e84bb394e6fd8 100644 (file)
@@ -20,6 +20,9 @@
 
 #include "editor.h"
 
+namespace loglan {
+namespace vlp {
+
 /**
  * Editor constructor. Initializes and sets variables of Loglan Editor.
  *
@@ -366,6 +369,9 @@ void Editor::on_actionUnit_structure_triggered()
        }
 }
 
+}
+}
+
 /**
  * Program main function.
  * argv[1] is mandatory and should be a path to the home directory of
@@ -377,7 +383,7 @@ void Editor::on_actionUnit_structure_triggered()
 int main(int argc, char **argv)
 {
        QApplication app(argc, argv);
-       Editor * editor = new Editor(argc, argv);
+       loglan::vlp::Editor * editor = new loglan::vlp::Editor(argc, argv);
        editor->show();
        return app.exec();
 }