gui:remove

This commit is contained in:
taynpg 2025-04-05 22:57:43 +08:00
parent f5e3113883
commit 669a99179b
5 changed files with 1 additions and 58 deletions

View File

@ -82,7 +82,7 @@ install(FILES ${MINGW32_DLLS} DESTINATION bin)
endif() endif()
if (DEFINED USE_GUI) if (DEFINED USE_GUI)
message(STATUS "USE GUI ${USE_GUI}") message(STATUS "USE GUI ${USE_GUI}")
add_subdirectory(gui) #add_subdirectory(gui)
endif() endif()
# ********************************************************** pack infomation # ********************************************************** pack infomation

View File

@ -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)

View File

@ -1,5 +0,0 @@
#include "MainFrame.h"
CMainFrame::CMainFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title)
{
}

View File

@ -1,12 +0,0 @@
#ifndef MAINFRAME_H
#define MAINFRAME_H
#include <wx/wx.h>
class CMainFrame : public wxFrame
{
public:
explicit CMainFrame(const wxString& title);
};
#endif

View File

@ -1,21 +0,0 @@
#include "MainFrame.h"
#include <wx/wx.h>
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);