diff --git a/authwindow.cpp b/authwindow.cpp new file mode 100644 index 0000000..f895a75 --- /dev/null +++ b/authwindow.cpp @@ -0,0 +1,14 @@ +#include "authwindow.h" +#include "ui_authwindow.h" + +AuthWindow::AuthWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::AuthWindow) +{ + ui->setupUi(this); +} + +AuthWindow::~AuthWindow() +{ + delete ui; +} diff --git a/authwindow.h b/authwindow.h new file mode 100644 index 0000000..5f5a356 --- /dev/null +++ b/authwindow.h @@ -0,0 +1,22 @@ +#ifndef AUTHWINDOW_H +#define AUTHWINDOW_H + +#include + +namespace Ui { +class AuthWindow; +} + +class AuthWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit AuthWindow(QWidget *parent = nullptr); + ~AuthWindow(); + +private: + Ui::AuthWindow *ui; +}; + +#endif // AUTHWINDOW_H diff --git a/authwindow.ui b/authwindow.ui new file mode 100644 index 0000000..0285814 --- /dev/null +++ b/authwindow.ui @@ -0,0 +1,120 @@ + + + AuthWindow + + + + 0 + 0 + 600 + 300 + + + + MainWindow + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 100 + 20 + + + + + + + + + + + + Password: + + + + + + + + + + Login: + + + + + + + QLineEdit::Password + + + + + + + Login + + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 100 + 20 + + + + + + + + + + diff --git a/cargoeditdialog.cpp b/cargoeditdialog.cpp new file mode 100644 index 0000000..b481bbf --- /dev/null +++ b/cargoeditdialog.cpp @@ -0,0 +1,14 @@ +#include "cargoeditdialog.h" +#include "ui_cargoeditdialog.h" + +CargoEditDialog::CargoEditDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::CargoEditDialog) +{ + ui->setupUi(this); +} + +CargoEditDialog::~CargoEditDialog() +{ + delete ui; +} diff --git a/cargoeditdialog.h b/cargoeditdialog.h new file mode 100644 index 0000000..2da4b33 --- /dev/null +++ b/cargoeditdialog.h @@ -0,0 +1,22 @@ +#ifndef CARGOEDITDIALOG_H +#define CARGOEDITDIALOG_H + +#include + +namespace Ui { +class CargoEditDialog; +} + +class CargoEditDialog : public QDialog +{ + Q_OBJECT + +public: + explicit CargoEditDialog(QWidget *parent = nullptr); + ~CargoEditDialog(); + +private: + Ui::CargoEditDialog *ui; +}; + +#endif // CARGOEDITDIALOG_H diff --git a/cargoeditdialog.ui b/cargoeditdialog.ui new file mode 100644 index 0000000..b84cc1b --- /dev/null +++ b/cargoeditdialog.ui @@ -0,0 +1,98 @@ + + + CargoEditDialog + + + + 0 + 0 + 318 + 279 + + + + Dialog + + + + + + + + Cargo ID: + + + + + + + + + + + + + + Quantity: + + + + + + + + + + + + + + Destination: + + + + + + + Choose... + + + + + + + + + Qt::Vertical + + + + 20 + 148 + + + + + + + + + + Discard + + + + + + + Save + + + + + + + + + + diff --git a/cargoentity.cpp b/cargoentity.cpp new file mode 100644 index 0000000..dbedcc0 --- /dev/null +++ b/cargoentity.cpp @@ -0,0 +1,6 @@ +#include "cargoentity.h" + +CargoEntity::CargoEntity() +{ + +} diff --git a/cargoentity.h b/cargoentity.h new file mode 100644 index 0000000..e5fbdf0 --- /dev/null +++ b/cargoentity.h @@ -0,0 +1,11 @@ +#ifndef CARGOENTITY_H +#define CARGOENTITY_H + + +class CargoEntity +{ +public: + CargoEntity(); +}; + +#endif // CARGOENTITY_H diff --git a/deliverypointeditdialog.cpp b/deliverypointeditdialog.cpp new file mode 100644 index 0000000..a010715 --- /dev/null +++ b/deliverypointeditdialog.cpp @@ -0,0 +1,14 @@ +#include "deliverypointeditdialog.h" +#include "ui_deliverypointeditdialog.h" + +DeliveryPointEditDialog::DeliveryPointEditDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::DeliveryPointEditDialog) +{ + ui->setupUi(this); +} + +DeliveryPointEditDialog::~DeliveryPointEditDialog() +{ + delete ui; +} diff --git a/deliverypointeditdialog.h b/deliverypointeditdialog.h new file mode 100644 index 0000000..6b044e2 --- /dev/null +++ b/deliverypointeditdialog.h @@ -0,0 +1,22 @@ +#ifndef DELIVERYPOINTEDITDIALOG_H +#define DELIVERYPOINTEDITDIALOG_H + +#include + +namespace Ui { +class DeliveryPointEditDialog; +} + +class DeliveryPointEditDialog : public QDialog +{ + Q_OBJECT + +public: + explicit DeliveryPointEditDialog(QWidget *parent = nullptr); + ~DeliveryPointEditDialog(); + +private: + Ui::DeliveryPointEditDialog *ui; +}; + +#endif // DELIVERYPOINTEDITDIALOG_H diff --git a/deliverypointeditdialog.ui b/deliverypointeditdialog.ui new file mode 100644 index 0000000..113ad8e --- /dev/null +++ b/deliverypointeditdialog.ui @@ -0,0 +1,105 @@ + + + DeliveryPointEditDialog + + + + 0 + 0 + 394 + 386 + + + + Dialog + + + + + + 24 + + + 4 + + + 4 + + + 4 + + + 4 + + + + + Delivery point title: + + + + + + + + + + + + + + + + + Add storage + + + + + + + false + + + Remove storage + + + + + + + + + Qt::Vertical + + + + 20 + 20 + + + + + + + + + + Discard + + + + + + + Save + + + + + + + + + + diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..d26e059 --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include "authwindow.h" + +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + AuthWindow w; + w.show(); + return a.exec(); +} diff --git a/sea_transport.pro b/sea_transport.pro new file mode 100644 index 0000000..fa7d61e --- /dev/null +++ b/sea_transport.pro @@ -0,0 +1,30 @@ +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +CONFIG += c++11 + +# You can make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + authwindow.cpp \ + main.cpp \ + mainwindow.cpp \ + vesseleditdialog.cpp + +HEADERS += \ + authwindow.h \ + mainwindow.h \ + vesseleditdialog.h + +FORMS += \ + authwindow.ui \ + mainwindow.ui \ + vesseleditdialog.ui + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/storageeditdialog.cpp b/storageeditdialog.cpp new file mode 100644 index 0000000..bfb4dc4 --- /dev/null +++ b/storageeditdialog.cpp @@ -0,0 +1,14 @@ +#include "storageeditdialog.h" +#include "ui_storageeditdialog.h" + +StorageEditDialog::StorageEditDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::StorageEditDialog) +{ + ui->setupUi(this); +} + +StorageEditDialog::~StorageEditDialog() +{ + delete ui; +} diff --git a/storageeditdialog.h b/storageeditdialog.h new file mode 100644 index 0000000..bf70a54 --- /dev/null +++ b/storageeditdialog.h @@ -0,0 +1,22 @@ +#ifndef STORAGEEDITDIALOG_H +#define STORAGEEDITDIALOG_H + +#include + +namespace Ui { +class StorageEditDialog; +} + +class StorageEditDialog : public QDialog +{ + Q_OBJECT + +public: + explicit StorageEditDialog(QWidget *parent = nullptr); + ~StorageEditDialog(); + +private: + Ui::StorageEditDialog *ui; +}; + +#endif // STORAGEEDITDIALOG_H diff --git a/storageeditdialog.ui b/storageeditdialog.ui new file mode 100644 index 0000000..2308be6 --- /dev/null +++ b/storageeditdialog.ui @@ -0,0 +1,76 @@ + + + StorageEditDialog + + + + 0 + 0 + 400 + 190 + + + + Dialog + + + + + + + + Storage num.: + + + + + + + + + + Capacity: + + + + + + + + + + + + Qt::Vertical + + + + 20 + 72 + + + + + + + + + + Save + + + + + + + Discard + + + + + + + + + + diff --git a/usereditdialog.cpp b/usereditdialog.cpp new file mode 100644 index 0000000..a052c47 --- /dev/null +++ b/usereditdialog.cpp @@ -0,0 +1,14 @@ +#include "usereditdialog.h" +#include "ui_usereditdialog.h" + +UserEditDialog::UserEditDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::UserEditDialog) +{ + ui->setupUi(this); +} + +UserEditDialog::~UserEditDialog() +{ + delete ui; +} diff --git a/usereditdialog.h b/usereditdialog.h new file mode 100644 index 0000000..26a93e7 --- /dev/null +++ b/usereditdialog.h @@ -0,0 +1,22 @@ +#ifndef USEREDITDIALOG_H +#define USEREDITDIALOG_H + +#include + +namespace Ui { +class UserEditDialog; +} + +class UserEditDialog : public QDialog +{ + Q_OBJECT + +public: + explicit UserEditDialog(QWidget *parent = nullptr); + ~UserEditDialog(); + +private: + Ui::UserEditDialog *ui; +}; + +#endif // USEREDITDIALOG_H diff --git a/usereditdialog.ui b/usereditdialog.ui new file mode 100644 index 0000000..466d163 --- /dev/null +++ b/usereditdialog.ui @@ -0,0 +1,113 @@ + + + UserEditDialog + + + + 0 + 0 + 304 + 270 + + + + Dialog + + + + + + + + Login: + + + + + + + + + + + + + + Password: + + + + + + + + + + QLineEdit::Password + + + + + + + Role: + + + + + + + + Administrator + + + + + Dispatcher + + + + + Captain + + + + + + + + + + Qt::Vertical + + + + 20 + 138 + + + + + + + + + + Discard + + + + + + + Save + + + + + + + + + + diff --git a/vesseleditdialog.cpp b/vesseleditdialog.cpp new file mode 100644 index 0000000..dcc2e3b --- /dev/null +++ b/vesseleditdialog.cpp @@ -0,0 +1,14 @@ +#include "vesseleditdialog.h" +#include "ui_vesseleditdialog.h" + +VesselEditDialog::VesselEditDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::VesselEditDialog) +{ + ui->setupUi(this); +} + +VesselEditDialog::~VesselEditDialog() +{ + delete ui; +} diff --git a/vesseleditdialog.h b/vesseleditdialog.h new file mode 100644 index 0000000..8aa08af --- /dev/null +++ b/vesseleditdialog.h @@ -0,0 +1,22 @@ +#ifndef VESSELEDITDIALOG_H +#define VESSELEDITDIALOG_H + +#include + +namespace Ui { +class VesselEditDialog; +} + +class VesselEditDialog : public QDialog +{ + Q_OBJECT + +public: + explicit VesselEditDialog(QWidget *parent = nullptr); + ~VesselEditDialog(); + +private: + Ui::VesselEditDialog *ui; +}; + +#endif // VESSELEDITDIALOG_H diff --git a/vesseleditdialog.ui b/vesseleditdialog.ui new file mode 100644 index 0000000..0c5eebf --- /dev/null +++ b/vesseleditdialog.ui @@ -0,0 +1,118 @@ + + + VesselEditDialog + + + + 0 + 0 + 361 + 425 + + + + Dialog + + + + + + QFormLayout::ExpandingFieldsGrow + + + 24 + + + 8 + + + 4 + + + 4 + + + 4 + + + 4 + + + + + Vessel num.: + + + + + + + + + + Home port: + + + + + + + + 0 + 0 + + + + Choose... + + + + + + + Max. capacity: + + + + + + + + + + + + + + + + + Add cargo + + + + + + + + + + + Discard + + + + + + + Save + + + + + + + + + +