Restructure code
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Thu, 28 Jan 2016 21:24:54 +0000 (22:24 +0100)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Thu, 28 Jan 2016 21:24:54 +0000 (22:24 +0100)
14 files changed:
Makefile.am
src/kernel/connect_dialog.cpp
src/kernel/connect_dialog.h
src/kernel/kernel.cpp
src/kernel/kill_interpreter_dialog.cpp
src/kernel/kill_interpreter_dialog.h
src/kernel/lock.cpp
src/kernel/lock.h
src/kernel/options.cpp
src/kernel/options.h
src/kernel/ui/dialogs/ConnectDialog.ui [moved from src/kernel/ui/connect_dialog.ui with 100% similarity]
src/kernel/ui/dialogs/KillDialog.ui [moved from src/kernel/ui/kill_dialog.ui with 100% similarity]
src/kernel/ui/dialogs/LockDialog.ui [moved from src/kernel/ui/lock_dialog.ui with 100% similarity]
src/kernel/ui/dialogs/OptionsDialog.ui [moved from src/kernel/ui/optionsdialog.ui with 100% similarity]

index f9367881f1da70f7932966299be4bab3afe5b6f3..c074aebfc87505ffeed1025c732ef1f2126e7985 100644 (file)
@@ -87,10 +87,10 @@ bin_logker_HEADERS = \
 src/kernel/kernel.moc.cpp: \
                src/kernel/kernel.h \
                src/kernel/ui/kernelwindow.h \
-               src/kernel/ui/lock_dialog.h \
-               src/kernel/ui/optionsdialog.h \
-               src/kernel/ui/kill_dialog.h \
-               src/kernel/ui/connect_dialog.h
+               src/kernel/ui/dialogs/LockDialog.h \
+               src/kernel/ui/dialogs/OptionsDialog.h \
+               src/kernel/ui/dialogs/KillDialog.h \
+               src/kernel/ui/dialogs/ConnectDialog.h
        moc-qt4 src/kernel/kernel.h -o src/kernel/kernel.moc.cpp
        moc-qt4 src/kernel/options.h -o src/kernel/options.moc.cpp
 #      $(MOC) -i src/kernel/kernel.cpp -o src/kernel/kernel.moc
@@ -98,27 +98,24 @@ src/kernel/kernel.moc.cpp: \
 src/kernel/ui/kernelwindow.h:
        uic src/kernel/ui/kernelwindow.ui -o src/kernel/ui/kernelwindow.h
 
-src/kernel/ui/lock_dialog.h:
-       uic src/kernel/ui/lock_dialog.ui -o src/kernel/ui/lock_dialog.h
+src/kernel/ui/dialogs/LockDialog.h:
+       uic src/kernel/ui/dialogs/LockDialog.ui -o src/kernel/ui/dialogs/LockDialog.h
 
-src/kernel/ui/optionsdialog.h:
-       uic src/kernel/ui/optionsdialog.ui -o src/kernel/ui/optionsdialog.h
+src/kernel/ui/dialogs/OptionsDialog.h:
+       uic src/kernel/ui/dialogs/OptionsDialog.ui -o src/kernel/ui/dialogs/OptionsDialog.h
 
-src/kernel/ui/kill_dialog.h:
-       uic src/kernel/ui/kill_dialog.ui -o src/kernel/ui/kill_dialog.h
+src/kernel/ui/dialogs/KillDialog.h:
+       uic src/kernel/ui/dialogs/KillDialog.ui -o src/kernel/ui/dialogs/KillDialog.h
 
-src/kernel/ui/connect_dialog.h:
-       uic src/kernel/ui/connect_dialog.ui -o src/kernel/ui/connect_dialog.h
+src/kernel/ui/dialogs/ConnectDialog.h:
+       uic src/kernel/ui/dialogs/ConnectDialog.ui -o src/kernel/ui/dialogs/ConnectDialog.h
 
 
 clean-logker-extra:
        rm -f src/kernel/*.moc
        rm -f src/kernel/*.moc.cpp
-       rm -f src/kernel/ui/kernelwindow.h
-       rm -f src/kernel/ui/lock_dialog.h
-       rm -f src/kernel/ui/optionsdialog.h
-       rm -f src/kernel/ui/kill_dialog.h
-       rm -f src/kernel/ui/connect_dialog.h
+       rm -f src/kernel/ui/dialogs/*.h
+       rm -f src/kernel/ui/*.h
        rm -f bin/logker
        
 bin_logint_SOURCES = \
index 9484101bb6c3735569e38d4a2a010565071ef944..26b4a83d1bbf5b2825c531f8dd2da5675f1fc7b4 100644 (file)
@@ -4,6 +4,7 @@
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 ConnectDialog::ConnectDialog(QWidget * parent)
        : QDialog(parent, Qt::Dialog)
@@ -22,3 +23,4 @@ QString ConnectDialog::getAddress()
 
 }
 }
+}
index 4219d33a791ecf4656fcad9ec770da40cbfe6ba3..58cd99480a59f0d7ea8ff01119d8b08ba5712fbf 100644 (file)
@@ -4,10 +4,11 @@
 #include <QtGui/QDialog>
 #include <QtCore/QString>
 
-#include "ui/connect_dialog.h"
+#include "ui/dialogs/ConnectDialog.h"
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 /**
  * Kill Interpreter Dialog class
@@ -20,6 +21,7 @@ public:
        QString getAddress();
 };
 
+}
 }
 }
 
index a37c89433931be1787eefdd19dcc09a426b5bfd5..6e9beec81fa6aa43de734df0c83b51bbad0055fd 100644 (file)
@@ -411,7 +411,7 @@ void QKernel::on_actionConnect_triggered()
 {
        MESSAGE m;
 
-       ConnectDialog dialog(this);
+       dialog::ConnectDialog dialog(this);
        dialog.setWindowTitle("IP Address:");
 
        if (dialog.exec()) {
@@ -527,7 +527,7 @@ void QKernel::on_actionMessage_triggered()
  */
 void QKernel::on_actionKill_triggered()
 {
-       KillInterpreterDialog dialog(this);
+       dialog::KillInterpreterDialog dialog(this);
        dialog.setWindowTitle("Kill interpreter");
 
        if (dialog.exec()) {
@@ -783,7 +783,7 @@ void QKernel::on_actionInfo_messages_triggered()
  */
 void QKernel::on_actionOptions_triggered()
 {
-       OptionsDialog optionsDialog(getConfigFilePath(), this);
+       dialog::OptionsDialog optionsDialog(getConfigFilePath(), this);
        if (optionsDialog.exec()) {
                optionsDialog.saveConfig(getConfigFilePath());
 
@@ -798,7 +798,7 @@ void QKernel::on_actionOptions_triggered()
  */
 void QKernel::on_actionLock_console_triggered()
 {
-       LockDialog lockDialog(this);
+       dialog::LockDialog lockDialog(this);
 
        if (lockDialog.exec()) {
                QString password = lockDialog.getPassword();
@@ -832,7 +832,7 @@ void QKernel::on_actionLock_console_triggered()
  */
 void QKernel::on_actionUnlock_console_triggered()
 {
-       LockDialog lockDialog(this);
+       dialog::LockDialog lockDialog(this);
 
        if (lockDialog.exec()) {
                QString password = lockDialog.getPassword();
index 409e191cf227a15deb84f3016fec0d0404c200a2..9e2e823426d2a57024843d28f1def25bffa96111 100644 (file)
@@ -4,6 +4,7 @@
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 KillInterpreterDialog::KillInterpreterDialog(QWidget * parent)
        : QDialog(parent, Qt::Dialog)
@@ -22,3 +23,4 @@ int KillInterpreterDialog::getInterpreterId()
 
 }
 }
+}
index a7eabdffab8c2c94e9f906c819903ed4f912c6d5..2e0f931219be60ec42fe853c06de8d04ae62b35d 100644 (file)
@@ -3,10 +3,11 @@
 
 #include <QtGui/QDialog>
 
-#include "ui/kill_dialog.h"
+#include "ui/dialogs/KillDialog.h"
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 /**
  * Kill Interpreter Dialog class
@@ -19,6 +20,7 @@ public:
        int getInterpreterId();
 };
 
+}
 }
 }
 
index 8f71c0a9ba84956273514ffe7512357ec95d5d38..6a4fe08219ddb06e915e2037d1940a907f1ea6c3 100644 (file)
@@ -4,6 +4,7 @@
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 LockDialog::LockDialog(QWidget * parent)
        : QDialog(parent, Qt::Dialog)
@@ -28,3 +29,4 @@ void LockDialog::retype()
 
 }
 }
+}
index 2c29f0a779e2dc1eeb7d44a3ec1ecceaa69b9eb8..7ddd6acc5ef5db66f9cd7dc8a9bc148202203dc8 100644 (file)
@@ -3,10 +3,11 @@
 
 #include <QtGui/QDialog>
 
-#include "ui/lock_dialog.h"
+#include "ui/dialogs/LockDialog.h"
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 /**
  * Lock Dialog class
@@ -20,6 +21,7 @@ public:
        void retype();
 };
 
+}
 }
 }
 
index dc116520adf0b33506be1f87a55b1fa57eb98e65..e3d20b77595f1e0349927bae6ecc5bb0e562631a 100644 (file)
@@ -6,6 +6,7 @@
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 OptionsDialog::OptionsDialog(QString configFilePath, QWidget * parent)
        : QDialog(parent)
@@ -136,3 +137,4 @@ void OptionsDialog::saveConfig(const char * fname)
 
 }
 }
+}
index cc73b04b9214034e7a733b67c311e95b2ae1775b..6459295432c2828322c37e278340760c41f8e40f 100644 (file)
@@ -3,10 +3,11 @@
 
 #include <QtGui/QDialog>
 
-#include "ui/optionsdialog.h"
+#include "ui/dialogs/OptionsDialog.h"
 
 namespace loglan {
 namespace vlp {
+namespace dialog {
 
 /**
  * Options Dialog class
@@ -30,6 +31,7 @@ private slots:
        void on_delConnectionButton_clicked();
 };
 
+}
 }
 }