-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
8,090 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
cmake_minimum_required(VERSION 3.9.0) | ||
SET(PROJECT_NAME "RTZassist") | ||
project(${PROJECT_NAME}) | ||
set(default_build_type "Release") | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
if(NOT CMAKE_BUILD_TYPE) | ||
message(STATUS "Setting build type to '${default_build_type}' as none was specified.") | ||
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE | ||
STRING "Choose the type of build." FORCE) | ||
endif() | ||
|
||
if(MSVC) | ||
add_definitions(/MP) | ||
endif() | ||
|
||
if(MSVC AND NOT WXSOURCE) | ||
find_package(wxWidgets REQUIRED COMPONENTS net core base) | ||
include(${wxWidgets_USE_FILE}) | ||
endif() | ||
message(STATUS "CMAKE_BUILD_TYPE:${CMAKE_BUILD_TYPE}") | ||
file(GLOB RTZassist_SRC | ||
"${PROJECT_SOURCE_DIR}/src/*.h" | ||
"${PROJECT_SOURCE_DIR}/src/*.cpp" | ||
) | ||
|
||
set(wxWidgets_CONFIGURATION mswu) | ||
find_package(wxWidgets COMPONENTS core base REQUIRED) | ||
include(${wxWidgets_USE_FILE}) | ||
|
||
find_package(wxWidgets 3.0 REQUIRED) | ||
add_executable(${PROJECT_NAME} WIN32 ${RTZassist_SRC}) | ||
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES}) | ||
|
||
if(MSVC) | ||
add_custom_command( | ||
TARGET ${PROJECT_NAME} | ||
POST_BUILD | ||
COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\dpiawarescaleing.manifest\" -inputresource:\"$<TARGET_FILE:${PROJECT_NAME}>\"\;\#1 -outputresource:\"$<TARGET_FILE:${PROJECT_NAME}>\"\;\#1 | ||
COMMENT "Adding display aware manifest..." | ||
) | ||
endif() | ||
|
||
|
Large diffs are not rendered by default.
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | ||
<application xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<windowsSettings> | ||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware> | ||
</windowsSettings> | ||
</application> | ||
</assembly> |
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,33 @@ | ||
#include <wx/wx.h> | ||
#include <wx/image.h> | ||
|
||
#include "RTZassistFrameMain.h" | ||
#include "RTZassistPanelMain.h" | ||
|
||
//#include "../data/folder.xpm" | ||
//wxIcon icon(play); | ||
|
||
|
||
class wxRTZassistApp : public wxApp { | ||
|
||
public: | ||
wxRTZassistApp() = default; | ||
virtual ~wxRTZassistApp() = default; | ||
bool OnInit() override; | ||
int OnExit() override { return 0; } | ||
|
||
}; | ||
|
||
IMPLEMENT_APP(wxRTZassistApp); | ||
|
||
inline bool wxRTZassistApp::OnInit() { | ||
|
||
auto *mainFrame = new RTZassistFrameMain(nullptr); | ||
new RTZassistPanelMain(mainFrame); | ||
//mainFrame->SetIcon(icon); | ||
mainFrame->Show(true); | ||
mainFrame->Fit(); | ||
|
||
SetTopWindow(mainFrame); | ||
return true; | ||
} |
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,10 @@ | ||
#include "RTZassistFrameMain.h" | ||
|
||
RTZassistFrameMain::RTZassistFrameMain( wxWindow* parent ) | ||
: | ||
FrameMain( parent ) | ||
{ | ||
|
||
} | ||
|
||
|
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,24 @@ | ||
#ifndef __RTZassistFrameMain__ | ||
#define __RTZassistFrameMain__ | ||
|
||
/** | ||
@file | ||
Subclass of FrameMain, which is generated by wxFormBuilder. | ||
*/ | ||
|
||
#include "RTZassistUI.h" | ||
|
||
|
||
//// end generated include | ||
|
||
/** Implementing FrameMain */ | ||
class RTZassistFrameMain : public FrameMain | ||
{ | ||
public: | ||
/** Constructor */ | ||
RTZassistFrameMain( wxWindow* parent ); | ||
//// end generated class members | ||
|
||
}; | ||
|
||
#endif // __RTZassistFrameMain__ |
Oops, something went wrong.