-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (22 loc) · 924 Bytes
/
Copy pathmain.cpp
File metadata and controls
28 lines (22 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <QApplication>
#include "source/interface/mainwindow.hpp"
#include "source/interface/AppIconHelper.hpp"
#include "source/locale/tr_01_gerenciadorTraducao.hpp"
#include "source/logs/LogManager.hpp"
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
// Initialize Application Icon
app.setWindowIcon(source::interface::get_app_window_icon());
// Initialize Logger
auto *logger = source::logs::LogManager::get_instance();
logger->info(QStringLiteral("=== Iniciando SlidingWindowLZ77 Visualizer & 7z Extractor ==="));
// Initialize Translation Manager
source::language::GerenciadorTraducao tradutor;
tradutor.aplicar_traducao();
// Create and show Main Window
MainWindow window(&tradutor);
window.show();
int exitCode = app.exec();
logger->info(QStringLiteral("=== Encerrando aplicativo (código %1) ===").arg(exitCode));
return exitCode;
}