Skip to content

Commit

Permalink
alpha 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasbats committed May 8, 2020
1 parent 4830d7b commit 9bac103
Show file tree
Hide file tree
Showing 22 changed files with 8,090 additions and 0 deletions.
46 changes: 46 additions & 0 deletions CMakeLists.txt
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()


873 changes: 873 additions & 0 deletions RTZassist.fbp

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dpiawarescaleing.manifest
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>
33 changes: 33 additions & 0 deletions src/RTZassistApp.cpp
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;
}
10 changes: 10 additions & 0 deletions src/RTZassistFrameMain.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "RTZassistFrameMain.h"

RTZassistFrameMain::RTZassistFrameMain( wxWindow* parent )
:
FrameMain( parent )
{

}


24 changes: 24 additions & 0 deletions src/RTZassistFrameMain.h
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__
Loading

0 comments on commit 9bac103

Please sign in to comment.