From 5f209bd1d566adc21b061633781cbe54eb72648a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 27 Feb 2022 16:19:26 +0100 Subject: [PATCH] Create live engine dialog --- src/game_tab/editor/LiveEngineDialogFB.cpp | 45 ++++ src/game_tab/editor/LiveEngineDialogFB.h | 44 ++++ tools/wxframebuilder/LiveEngineDialog.fbp | 263 +++++++++++++++++++++ 3 files changed, 352 insertions(+) create mode 100644 src/game_tab/editor/LiveEngineDialogFB.cpp create mode 100644 src/game_tab/editor/LiveEngineDialogFB.h create mode 100644 tools/wxframebuilder/LiveEngineDialog.fbp diff --git a/src/game_tab/editor/LiveEngineDialogFB.cpp b/src/game_tab/editor/LiveEngineDialogFB.cpp new file mode 100644 index 0000000..03f9435 --- /dev/null +++ b/src/game_tab/editor/LiveEngineDialogFB.cpp @@ -0,0 +1,45 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#include "LiveEngineDialogFB.h" + +/////////////////////////////////////////////////////////////////////////// + +LiveEngineDialogFB::LiveEngineDialogFB( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) +{ + this->SetSizeHints( wxDefaultSize, wxDefaultSize ); + + wxBoxSizer* main_sizer; + main_sizer = new wxBoxSizer( wxVERTICAL ); + + wxBoxSizer* current_engine_sizer; + current_engine_sizer = new wxBoxSizer( wxHORIZONTAL ); + + current_engine_label = new wxStaticText( this, wxID_ANY, wxT("Current engine:"), wxDefaultPosition, wxDefaultSize, 0 ); + current_engine_label->Wrap( -1 ); + current_engine_sizer->Add( current_engine_label, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + + current_engine = new wxStaticText( this, wxID_ANY, wxT("???"), wxDefaultPosition, wxDefaultSize, 0 ); + current_engine->Wrap( -1 ); + current_engine_sizer->Add( current_engine, 0, wxALL, 5 ); + + + main_sizer->Add( current_engine_sizer, 0, wxEXPAND, 5 ); + + lines_list = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); + main_sizer->Add( lines_list, 1, wxALL|wxEXPAND, 5 ); + + + this->SetSizer( main_sizer ); + this->Layout(); + + this->Centre( wxBOTH ); +} + +LiveEngineDialogFB::~LiveEngineDialogFB() +{ +} diff --git a/src/game_tab/editor/LiveEngineDialogFB.h b/src/game_tab/editor/LiveEngineDialogFB.h new file mode 100644 index 0000000..10448c6 --- /dev/null +++ b/src/game_tab/editor/LiveEngineDialogFB.h @@ -0,0 +1,44 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version 3.10.1-40-g8042f487) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////////// +/// Class LiveEngineDialogFB +/////////////////////////////////////////////////////////////////////////////// +class LiveEngineDialogFB : public wxDialog +{ + private: + + protected: + wxStaticText* current_engine_label; + wxStaticText* current_engine; + wxListBox* lines_list; + + public: + + LiveEngineDialogFB( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 464,468 ), long style = wxDEFAULT_DIALOG_STYLE ); + + ~LiveEngineDialogFB(); + +}; + diff --git a/tools/wxframebuilder/LiveEngineDialog.fbp b/tools/wxframebuilder/LiveEngineDialog.fbp new file mode 100644 index 0000000..817a82d --- /dev/null +++ b/tools/wxframebuilder/LiveEngineDialog.fbp @@ -0,0 +1,263 @@ + + + + + ; + C++ + 1 + source_name + 0 + 0 + res + UTF-8 + connect + LiveEngineDialogFB + 1000 + none + + + 0 + LiveEngineDialogFB + + ../../src/game_tab/editor + + 1 + 1 + 1 + 1 + UI + 0 + 0 + 0 + + 0 + wxAUI_MGR_DEFAULT + + wxBOTH + + 1 + 1 + impl_virtual + + + + 0 + wxID_ANY + + + LiveEngineDialogFB + + 464,468 + wxDEFAULT_DIALOG_STYLE + ; ; forward_declare + + + 0 + + + + + + main_sizer + wxVERTICAL + none + + 5 + wxEXPAND + 0 + + + current_engine_sizer + wxHORIZONTAL + none + + 5 + wxALIGN_CENTER_VERTICAL|wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Current engine: + 0 + + 0 + + + 0 + + 1 + current_engine_label + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + ??? + 0 + + 0 + + + 0 + + 1 + current_engine + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + + + -1 + + + + + + 5 + wxALL|wxEXPAND + 1 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + 0 + + 1 + lines_list + 1 + + + protected + 1 + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + +