From 669a99179bc614f23f4c38e39bb162732cd7388e Mon Sep 17 00:00:00 2001 From: taynpg Date: Sat, 5 Apr 2025 22:57:43 +0800 Subject: [PATCH] =?UTF-8?q?gui=EF=BC=9Aremove?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- gui/CMakeLists.txt | 19 ------------------- gui/MainFrame.cpp | 5 ----- gui/MainFrame.h | 12 ------------ gui/main.cxx | 21 --------------------- 5 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 gui/CMakeLists.txt delete mode 100644 gui/MainFrame.cpp delete mode 100644 gui/MainFrame.h delete mode 100644 gui/main.cxx diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e74741..ac76166 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,7 +82,7 @@ install(FILES ${MINGW32_DLLS} DESTINATION bin) endif() if (DEFINED USE_GUI) message(STATUS "USE GUI ${USE_GUI}") -add_subdirectory(gui) +#add_subdirectory(gui) endif() # ********************************************************** pack infomation diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt deleted file mode 100644 index fe350bd..0000000 --- a/gui/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -cmake_minimum_required(VERSION 3.16) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) -project(transm-gui LANGUAGES CXX) - -find_package(wxWidgets CONFIG REQUIRED) - -set(SOURCES -main.cxx -MainFrame.cpp -MainFrame.h -) - -add_executable(transm-gui ${SOURCES}) -target_link_libraries(transm-gui PRIVATE -wx::core wx::base -) -set_target_properties(transm-gui PROPERTIES WIN32_EXECUTABLE TRUE) \ No newline at end of file diff --git a/gui/MainFrame.cpp b/gui/MainFrame.cpp deleted file mode 100644 index 0a3fe4a..0000000 --- a/gui/MainFrame.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include "MainFrame.h" - -CMainFrame::CMainFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title) -{ -} \ No newline at end of file diff --git a/gui/MainFrame.h b/gui/MainFrame.h deleted file mode 100644 index c547949..0000000 --- a/gui/MainFrame.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef MAINFRAME_H -#define MAINFRAME_H - -#include - -class CMainFrame : public wxFrame -{ -public: - explicit CMainFrame(const wxString& title); -}; - -#endif \ No newline at end of file diff --git a/gui/main.cxx b/gui/main.cxx deleted file mode 100644 index 9a593da..0000000 --- a/gui/main.cxx +++ /dev/null @@ -1,21 +0,0 @@ -#include "MainFrame.h" -#include - -class CTransForm : public wxApp -{ -public: - virtual bool OnInit() - { - wxString title = wxString::Format(wxT("transm-gui")); - auto* f = new CMainFrame(title); - f->Show(true); - return true; - } - virtual int OnExit() - { - return wxApp::OnExit(); - } -}; - -IMPLEMENT_APP(CTransForm); -DECLARE_APP(CTransForm); \ No newline at end of file