Commit 5d4f7a8cf714a0fea1db6eac486c186b19e20faf
1 parent
c3f69733
started writing default OpenBR GUI interface
Showing
9 changed files
with
26 additions
and
4 deletions
app/CMakeLists.txt
app/OpenBR/CMakeLists.txt
0 → 100644
app/OpenBR/OpenBR.cpp
0 → 100644
| 1 | +#include <QApplication> | ||
| 2 | +#include <QMainWindow> | ||
| 3 | +#include <openbr/openbr_plugin.h> | ||
| 4 | + | ||
| 5 | +int main(int argc, char *argv[]) | ||
| 6 | +{ | ||
| 7 | + QApplication application(argc, argv); | ||
| 8 | + br::Context::initialize(argc, argv); | ||
| 9 | + | ||
| 10 | + QMainWindow mainWindow; | ||
| 11 | + mainWindow.setWindowIcon(QIcon(":/openbr.png")); | ||
| 12 | + mainWindow.setWindowTitle("OpenBR"); | ||
| 13 | + mainWindow.show(); | ||
| 14 | + | ||
| 15 | + const int result = application.exec(); | ||
| 16 | + br::Context::finalize(); | ||
| 17 | + return result; | ||
| 18 | +} |
openbr/CMakeLists.txt
| @@ -10,7 +10,7 @@ include(plugins/plugins.cmake) | @@ -10,7 +10,7 @@ include(plugins/plugins.cmake) | ||
| 10 | # Optional GUI module | 10 | # Optional GUI module |
| 11 | if(NOT ${BR_EMBEDDED}) | 11 | if(NOT ${BR_EMBEDDED}) |
| 12 | aux_source_directory(gui BR_GUI) | 12 | aux_source_directory(gui BR_GUI) |
| 13 | - qt5_add_resources(BR_ICONS icons/icons.qrc) | 13 | + qt5_add_resources(BR_ICONS ../share/openbr/icons.qrc) |
| 14 | file(GLOB HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/gui/*.h) | 14 | file(GLOB HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/gui/*.h) |
| 15 | install(FILES ${HEADERS} DESTINATION include/openbr/gui) | 15 | install(FILES ${HEADERS} DESTINATION include/openbr/gui) |
| 16 | endif() | 16 | endif() |
openbr/icons/glyphicons_190_circle_plus@2x.png deleted
1.53 KB
openbr/icons/openbr.icns deleted
No preview for this file type
openbr/icons/openbr.ico deleted
No preview for this file type
openbr/icons/openbr.png deleted
12.2 KB
openbr/icons/icons.qrc renamed to share/openbr/icons.qrc