Commit Graph
2 Commits
Author SHA1 Message Date
andrewandCursor 2487bb282d Fix Qt6.11 compatibility and complete GUI build
- Updated build.bat to detect Qt6.11.1 and Qt6.10.2 installations
- Added find-qt.bat helper script to locate Qt6 on system
- Fixed CMakeLists.txt to remove app.rc requirement
- Fixed QDateTime::currentTime() -> currentDateTime() for Qt6
- Added missing #include <QCloseEvent> in MainWindow.cpp
- Fixed QFileInfo includes in ServerProcess.cpp
- Replaced complex QOverload signal connections with SIGNAL/SLOT macros
- Fixed emit error() ambiguity by using this->error()
- Successfully builds CommonwealthOnlineHost.exe with Qt6.11.1

Build was blocked because:
1. CMake couldn't find Qt6 at standard locations
2. Qt6.11.1 uses different signal/slot APIs than documented
3. Missing header includes for Qt6 compatibility

Solutions applied:
- Auto-detection now checks C:\Qt\6.11.1 and 6.10.2
- Simplified connections to use SIGNAL/SLOT string-based syntax
- All missing headers now included
- Added find-qt.bat for manual Qt discovery

Executable now builds successfully!

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 21:18:08 +12:00
andrewandCursor 98266ec235 Add native C++ Qt6 GUI host application
Introduce production-grade desktop GUI for hosting Commonwealth Online servers.

Features:
- Native C++ Qt6 application with minimal dependencies
- Start/stop server buttons with live status indicator
- Real-time stats display (uptime, clients, packet counts)
- Live connected clients table
- Server log viewer with timestamps
- Fallout 4-inspired dark theme (amber/green accents)
- Subprocess management (server independent of GUI)
- Auto-detection of Python and server directory
- Professional error handling and graceful shutdown

Architecture:
- MainWindow: Qt UI components and layout
- ServerProcess: Manages Python relay subprocess
- Subprocess spawns consumer_server_cli.py
- Real-time log capture and parsing
- Qt signals/slots for UI updates

Build:
- CMake 3.20+ configuration
- Visual Studio 2022 MSVC compiler
- Qt6.4+ required
- Windows 10+ target
- build.bat script for easy compilation

Project structure:
- src/main.cpp - entry point
- src/MainWindow.h/cpp - main UI window
- src/ServerProcess.h/cpp - subprocess and IPC layer
- src/resources/ - Qt resources and icons
- CMakeLists.txt - Qt6 build config
- build.bat - Windows build script
- README.md - user guide
- DEVELOPMENT.md - developer guide

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 20:53:16 +12:00