-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from BreeDurbin/ui-files-2
split ui file inti multiple ui files
- Loading branch information
Showing
65 changed files
with
607 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,5 @@ | ||
|
||
set(Boost_USE_STATIC_LIBS OFF) | ||
set(Boost_USE_MULTITHREADED ON) | ||
set(Boost_USE_STATIC_RUNTIME OFF) | ||
|
||
find_package(Boost 1.83.0 COMPONENTS filesystem) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
|
||
find_package(Qt6 COMPONENTS Core Widgets Gui REQUIRED) | ||
qt_standard_project_setup() | ||
|
||
set(HEADER_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/mainwindow.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/model/include/creaturemodel.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.ui | ||
) | ||
|
||
set(SOURCE_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/model/creaturemodel.cpp | ||
) | ||
|
||
set(RESOURCE_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/graphics.qrc | ||
${CMAKE_CURRENT_SOURCE_DIR}/resources.qrc | ||
) | ||
|
||
|
||
add_executable( | ||
${PROJECT_NAME} | ||
#headers | ||
${HEADER_FILES} | ||
#sources | ||
${SOURCE_FILES} | ||
#resources | ||
${RESOURCE_FILES} | ||
) | ||
|
||
target_include_directories( | ||
${PROJECT_NAME} | ||
PRIVATE | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/component/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/model/include | ||
) | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
PRIVATE | ||
styleLib | ||
Qt6::Core | ||
Qt6::Widgets | ||
Qt6::Gui | ||
${Boost_LIBRARIES} | ||
) | ||
|
||
set_target_properties( | ||
${PROJECT_NAME} | ||
PROPERTIES | ||
WIN32_EXECUTABLE ON | ||
MACOSX_BUNDLE ON | ||
) | ||
add_subdirectory(style) | ||
add_subdirectory(model) | ||
add_subdirectory(qt) | ||
add_subdirectory(cyrus) |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
set(Boost_USE_STATIC_LIBS OFF) | ||
set(Boost_USE_MULTITHREADED ON) | ||
set(Boost_USE_STATIC_RUNTIME OFF) | ||
|
||
find_package(Boost 1.83.0 COMPONENTS filesystem) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
|
||
find_package(Qt6 COMPONENTS Core Widgets Gui REQUIRED) | ||
qt_standard_project_setup() | ||
|
||
add_executable( | ||
${PROJECT_NAME} | ||
#sources | ||
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp | ||
) | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
PRIVATE | ||
styleLib | ||
qtLib | ||
modelLib | ||
) | ||
|
||
set_target_properties( | ||
${PROJECT_NAME} | ||
PROPERTIES | ||
WIN32_EXECUTABLE ON | ||
MACOSX_BUNDLE ON | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
|
||
find_package(Qt6 COMPONENTS Core Widgets Gui REQUIRED) | ||
qt_standard_project_setup() | ||
|
||
set(HEADER_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/CreatureModel/CreatureModel.h | ||
) | ||
|
||
set(SOURCE_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/CreatureModel/CreatureModel.cpp | ||
) | ||
|
||
add_library( | ||
modelLib | ||
#sources | ||
${SOURCE_FILES} | ||
) | ||
|
||
target_link_libraries( | ||
modelLib | ||
PRIVATE | ||
styleLib | ||
Qt6::Core | ||
Qt6::Widgets | ||
Qt6::Gui | ||
) | ||
|
||
target_include_directories( | ||
modelLib | ||
INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR}/CreatureModel | ||
) |
4 changes: 2 additions & 2 deletions
4
src/model/creaturemodel.cpp → src/model/CreatureModel/CreatureModel.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
|
||
find_package(Qt6 COMPONENTS Core Widgets Gui REQUIRED) | ||
qt_standard_project_setup() | ||
|
||
set(HEADER_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/CyrusDialog/CyrusDialog.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/CombatPage/CombatPage.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/CreaturePage/CreaturePage.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/WorldPage/WorldPage.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/CampaignPage/CampaignPage.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/SettingsPage/SettingsPage.h | ||
) | ||
|
||
set(SOURCE_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/CyrusDialog/CyrusDialog.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CombatPage/CombatPage.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CreaturePage/CreaturePage.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/WorldPage/WorldPage.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/CampaignPage/CampaignPage.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/SettingsPage/SettingsPage.cpp | ||
) | ||
|
||
set(UI_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/CyrusDialog/CyrusDialog.ui | ||
${CMAKE_CURRENT_SOURCE_DIR}/CombatPage/CombatPage.ui | ||
${CMAKE_CURRENT_SOURCE_DIR}/CreaturePage/CreaturePage.ui | ||
${CMAKE_CURRENT_SOURCE_DIR}/WorldPage/WorldPage.ui | ||
${CMAKE_CURRENT_SOURCE_DIR}/CampaignPage/CampaignPage.ui | ||
${CMAKE_CURRENT_SOURCE_DIR}/SettingsPage/SettingsPage.ui | ||
) | ||
|
||
set(RESOURCE_FILES | ||
${CMAKE_CURRENT_SOURCE_DIR}/asset/graphics.qrc | ||
${CMAKE_CURRENT_SOURCE_DIR}/asset/resources.qrc | ||
) | ||
|
||
add_library( | ||
qtLib | ||
STATIC | ||
#headers | ||
${HEADER_FILES} | ||
#ui | ||
${UI_FILES} | ||
#sources | ||
${SOURCE_FILES} | ||
#resources | ||
${RESOURCE_FILES} | ||
) | ||
|
||
target_link_libraries( | ||
qtLib | ||
PUBLIC | ||
styleLib | ||
modelLib | ||
Qt6::Core | ||
Qt6::Widgets | ||
Qt6::Gui | ||
) | ||
|
||
target_include_directories( | ||
qtLib | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/CyrusDialog | ||
INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR}/CampaignPage | ||
${CMAKE_CURRENT_SOURCE_DIR}/CombatPage | ||
${CMAKE_CURRENT_SOURCE_DIR}/CreaturePage | ||
${CMAKE_CURRENT_SOURCE_DIR}/SettingsPage | ||
${CMAKE_CURRENT_SOURCE_DIR}/WorldPage | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "CampaignPage.h" | ||
#include "ui_CampaignPage.h" | ||
|
||
CampaignPage::CampaignPage(QWidget *parent) : | ||
QWidget(parent), | ||
ui(new Ui::CampaignPage) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
CampaignPage::~CampaignPage() | ||
{ | ||
delete ui; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include <QWidget> | ||
|
||
QT_BEGIN_NAMESPACE | ||
namespace Ui{ class CampaignPage; } | ||
QT_END_NAMESPACE | ||
|
||
class CampaignPage : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit CampaignPage(QWidget *parent = nullptr); | ||
~CampaignPage(); | ||
|
||
private: | ||
Ui::CampaignPage *ui; | ||
}; |
Oops, something went wrong.