diff --git a/akashi.pro b/akashi.pro index fa4e238..738d623 100644 --- a/akashi.pro +++ b/akashi.pro @@ -26,15 +26,7 @@ SOURCES += $$files($$PWD/src/*.cpp) HEADERS += $$files($$PWD/include/*.h) -FORMS += $$files($$PWD/resource/forms/*.ui) - -TRANSLATIONS += \ - resource/translation/akashi_es.ts - # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target - -RESOURCES += \ - resources.qrc diff --git a/resource/forms/akashimain.ui b/resource/forms/akashimain.ui deleted file mode 100644 index 1f4f34d..0000000 --- a/resource/forms/akashimain.ui +++ /dev/null @@ -1,615 +0,0 @@ - - - AkashiMain - - - true - - - - 0 - 0 - 640 - 483 - - - - - Ubuntu - - - - AkashiMain - - - Qt::LeftToRight - - - /*background-color: rgb(240, 240, 240);*/ -background-color: rgb(53, 53, 53); - - - QTabWidget::Rounded - - - - - true - - - - - 0 - - - - - false - - - color: rgb(243, 243, 243); - - - 0 - - - - - 0 - 0 - - - - Qt::LeftToRight - - - - - - Server - - - - 0 - - - 9 - - - 9 - - - 9 - - - 9 - - - - - true - - - - 0 - 0 - - - - - 22 - - - - Qt::LeftToRight - - - false - - - /*background-color: rgb(45, 57, 67);*/ -background-color: rgba(191, 64, 64, 0); -color: rgb(240, 240, 240); -padding: 16px 3px 16px 3px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(11, 24, 35, 255), stop:1 rgba(61, 73, 82, 255));*/ - - - Server name - - - Qt::AlignCenter - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 2 - 2 - - - - - - - - - 0 - 0 - - - - - 18 - - - - color: rgb(240, 240, 240); -background-color: rgb(246, 36, 81); -padding: 12px 18px 12px 18px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(202, 0, 43, 255), stop:1 rgba(255, 43, 89, 255));*/ - - - Offline - - - Qt::AlignCenter - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 0 - 24 - - - - - - - - 0 - - - QLayout::SetDefaultConstraint - - - 0 - - - 0 - - - 0 - - - 0 - - - - - true - - - - 0 - 0 - - - - - 20 - - - - Qt::LeftToRight - - - false - - - QPushButton { - border: none; - border-radius: 4px; - background-color: rgb(31, 215, 141); - /*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(0, 193, 115, 255), stop:1 rgba(33, 251, 163, 255));*/ - color: rgb(240, 240, 240); - padding: 20px 30px 20px 30px; -} - -QPushButton:pressed { - background-color: rgb(72, 240, 164); -} - -QPushButton:flat { - border: none; /* no border for a flat push button */ -} - - - Start - - - false - - - - - - - - - Qt::Vertical - - - QSizePolicy::MinimumExpanding - - - - 20 - 40 - - - - - - - - 2 - - - - - Qt::Horizontal - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 11 - - - - background-color: rgb(45, 57, 67); -background-color: rgb(45, 57, 67, 0); -color: rgb(240, 240, 240); -/*padding: 16px 3px 16px 3px;*/ -padding: 3px 8px 3px 8px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(11, 24, 35, 255), stop:1 rgba(61, 73, 82, 255));*/ - - - Master Server connection status: - - - - - - - - 0 - 0 - - - - - 12 - - - - color: rgb(240, 240, 240); -background-color: rgb(246, 36, 81); -border-radius: 4px; -padding: 3px 8px 3px 8px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(202, 0, 43, 255), stop:1 rgba(255, 43, 89, 255));*/ - - - Not connected - - - - - - - Qt::Horizontal - - - QSizePolicy::MinimumExpanding - - - - 0 - 0 - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 0 - 24 - - - - - - - - 6 - - - QLayout::SetDefaultConstraint - - - 0 - - - 0 - - - - - 2 - - - QLayout::SetDefaultConstraint - - - - - - 0 - 0 - - - - - 12 - - - - Qt::LeftToRight - - - color: rgb(240, 240, 240); -background-color: rgb(43, 135, 211); -padding: 3px 8px 3px 8px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(36, 128, 204, 255), stop:1 rgba(78, 175, 255, 255));*/ - - - QFrame::NoFrame - - - QFrame::Plain - - - Players - - - Qt::AlignCenter - - - false - - - - - - - true - - - - 0 - 0 - - - - - 14 - - - - color: rgb(240, 240, 240); -/*background-color: rgb(45, 57, 67);*/ -background-color: rgb(45, 57, 67, 0); -padding: 4px 8px 4px 8px; -border-top-right-radius: 2px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(11, 24, 35, 255), stop:1 rgba(61, 73, 82, 255));*/ - - - 0/100 - - - Qt::AlignCenter - - - - - - - - - 2 - - - - - - 0 - 0 - - - - - 12 - - - - color: rgb(240, 240, 240); -background-color: rgb(43, 135, 211); -padding: 3px 8px 3px 8px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(36, 128, 204, 255), stop:1 rgba(78, 175, 255, 255));*/ - - - Software - - - Qt::AlignCenter - - - - - - - - 14 - - - - color: rgb(240, 240, 240); -/*background-color: rgb(45, 57, 67);*/ -background-color: rgb(45, 57, 67, 0); -padding: 4px 8px 4px 8px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(11, 24, 35, 255), stop:1 rgba(61, 73, 82, 255));*/ - - - Akashi - - - Qt::AlignCenter - - - - - - - - - 2 - - - - - - 0 - 0 - - - - - 12 - - - - color: rgb(240, 240, 240); -background-color: rgb(43, 135, 211); -padding: 3px 8px 3px 8px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(36, 128, 204, 255), stop:1 rgba(78, 175, 255, 255));*/ - - - Version - - - Qt::AlignCenter - - - - - - - - 14 - - - - color: rgb(240, 240, 240); -/*background-color: rgb(45, 57, 67);*/ -background-color: rgb(45, 57, 67, 0); -padding: 4px 8px 4px 8px; -border-radius: 4px; -/*background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(11, 24, 35, 255), stop:1 rgba(61, 73, 82, 255));*/ - - - 0.0.1 - - - Qt::AlignCenter - - - - - - - - - - - - Options - - - - - - - - - - 0 - 0 - 640 - 22 - - - - - - - - diff --git a/resource/translation/akashi_es.qm b/resource/translation/akashi_es.qm deleted file mode 100644 index 2ccbd6b..0000000 Binary files a/resource/translation/akashi_es.qm and /dev/null differ diff --git a/resource/translation/akashi_es.ts b/resource/translation/akashi_es.ts deleted file mode 100644 index eaeeff6..0000000 --- a/resource/translation/akashi_es.ts +++ /dev/null @@ -1,25 +0,0 @@ - - - - - AkashiMain - - - AkashiMain - - - - - main - - - A server for Attorney Online 2 - Un servidor para Attorney Online 2 - - - - Run the server without a GUI - Empezar el servidor sin interfaz - - - diff --git a/src/main.cpp b/src/main.cpp index 352bdef..7937cf6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,7 +28,6 @@ #include #include #include -#include Advertiser* advertiser; Server* server; @@ -54,20 +53,6 @@ int main(int argc, char* argv[]) QCoreApplication::setApplicationName("akashi"); QCoreApplication::setApplicationVersion("0.0.1"); - QSettings config("config.ini", QSettings::IniFormat); - config.beginGroup("Options"); - QString language = - config.value("language", QLocale().bcp47Name()).toString(); - - QTranslator qt_translator; - qt_translator.load("qt_" + language, - QLibraryInfo::location(QLibraryInfo::TranslationsPath)); - app.installTranslator(&qt_translator); - - QTranslator translator; - translator.load("akashi_" + language, ":/resource/translation/"); - app.installTranslator(&translator); - QCommandLineParser parser; parser.setApplicationDescription( app.translate("main", "A server for Attorney Online 2"));