#include "PreferencesDialog.h"
+namespace loglan {
+namespace vlp {
+
PreferencesDialog::PreferencesDialog(QWidget * parent)
: QDialog(parent)
{
{
return genPath->setText(path);
}
+
+}
+}
#include "ui/dialogs/PreferencesDialog.h"
+namespace loglan {
+namespace vlp {
+
/**
* Program Unit Dialog class
* Displays dialog for generating code template for unit structure
void setGenPath(QString path);
};
+}
+}
+
#endif /* _VLP_EDITOR_PREFERENCESDIALOG_H */
#include "ProgramStructureDialog.h"
+namespace loglan {
+namespace vlp {
+
ProgramStructureDialog::ProgramStructureDialog(QWidget * parent)
: QDialog(parent)
code.sprintf("PROGRAM %s\n\nBEGIN\n\nEND", getProgramName().toStdString().c_str());
return code;
}
+
+}
+}
#include "ui/dialogs/ProgramStructureDialog.h"
+namespace loglan {
+namespace vlp {
+
/**
* Program Structure Dialog class
* Displays dialog for generating code template for program structure
QString getCode();
};
+}
+}
+
#endif /* _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H */
#include "UnitStructureDialog.h"
+namespace loglan {
+namespace vlp {
+
#define TYPENUM 5
const char *UnitTypes[TYPENUM] = {
);
return code;
}
+
+}
+}
#include "ui/dialogs/UnitStructureDialog.h"
+namespace loglan {
+namespace vlp {
+
/**
* Program Unit Dialog class
* Displays dialog for generating code template for unit structure
QString getCode();
};
+}
+}
+
#endif /* _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H */
#include "editor.h"
+namespace loglan {
+namespace vlp {
+
/**
* Editor constructor. Initializes and sets variables of Loglan Editor.
*
}
}
+}
+}
+
/**
* Program main function.
* argv[1] is mandatory and should be a path to the home directory of
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();
}
#include "ui/editor.h"
+namespace loglan {
+namespace vlp {
+
#define COMP_MODE 1
#define GEN_MODE 2
#define ALL_MODE 3
void on_editor_cursorPositionChanged();
};
+}
+}
+
#endif // QWERTY_H
#include "connect_dialog.h"
+namespace loglan {
+namespace vlp {
+
ConnectDialog::ConnectDialog(QWidget * parent)
: QDialog(parent, Qt::Dialog)
{
{
return address->text();
}
+
+}
+}
#include "ui/connect_dialog.h"
+namespace loglan {
+namespace vlp {
+
/**
* Kill Interpreter Dialog class
*/
QString getAddress();
};
+}
+}
+
#endif /* _VLP_KERNEL_CONNECTDIALOG_H */
#include "../../config.h"
+namespace loglan {
+namespace vlp {
+
char CharLine[25] = "________________________";
/**
wait_for_info = TRUE;
}
+}
+}
+
/**
* Program main function
* All program arguments but the first one (argv[0]: program name) are saved and
XInitThreads();
QApplication * app = new QApplication(argc, argv);
- QKernel kernel(argc, argv);
+ loglan::vlp::QKernel kernel(argc, argv);
kernel.show();
return app->exec();
-}
+}
\ No newline at end of file
#define NORM_COL 2
+namespace loglan {
+namespace vlp {
+
/**
* Interpreter slot
*/
void on_actionUnlock_console_triggered();
};
+}
+}
+
#endif /* VLP_KERNEL_H */
#include "kill_interpreter_dialog.h"
+namespace loglan {
+namespace vlp {
+
KillInterpreterDialog::KillInterpreterDialog(QWidget * parent)
: QDialog(parent, Qt::Dialog)
{
{
return interpreterId->text().toInt();
}
+
+}
+}
#include "ui/kill_dialog.h"
+namespace loglan {
+namespace vlp {
+
/**
* Kill Interpreter Dialog class
*/
int getInterpreterId();
};
+}
+}
+
#endif /* _VLP_KERNEL_KILLINTERPRETERDIALOG_H */
#include "lock.h"
+namespace loglan {
+namespace vlp {
+
LockDialog::LockDialog(QWidget * parent)
: QDialog(parent, Qt::Dialog)
{
label->setText("Retype");
lineEdit->setText("");
}
+
+}
+}
#include "ui/lock_dialog.h"
+namespace loglan {
+namespace vlp {
+
/**
* Lock Dialog class
*/
void retype();
};
+}
+}
+
#endif /* _VLP_KERNEL_LOCKDIALOG_H */
#include "vlp/config.h"
#include "options.h"
+namespace loglan {
+namespace vlp {
+
OptionsDialog::OptionsDialog(QString configFilePath, QWidget * parent)
: QDialog(parent)
{
}
config_destroy(&cfg);
}
+
+}
+}
#include "ui/optionsdialog.h"
+namespace loglan {
+namespace vlp {
+
/**
* Options Dialog class
*/
void on_delConnectionButton_clicked();
};
+}
+}
+
#endif /* _VLP_KERNEL_OPTIONS_H */