diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-27 16:19:26 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-27 16:19:26 +0100 |
| commit | 5f209bd1d566adc21b061633781cbe54eb72648a (patch) | |
| tree | 2f0b7af8f875b533d9ef59561f1b3abcf2d5d415 /src | |
| parent | 711fce41c7a9a0843bb59d23ead830ad89b8a903 (diff) | |
Create live engine dialog
Diffstat (limited to 'src')
| -rw-r--r-- | src/game_tab/editor/LiveEngineDialogFB.cpp | 45 | ||||
| -rw-r--r-- | src/game_tab/editor/LiveEngineDialogFB.h | 44 |
2 files changed, 89 insertions, 0 deletions
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 <wx/artprov.h> +#include <wx/xrc/xmlres.h> +#include <wx/string.h> +#include <wx/stattext.h> +#include <wx/gdicmn.h> +#include <wx/font.h> +#include <wx/colour.h> +#include <wx/settings.h> +#include <wx/sizer.h> +#include <wx/listbox.h> +#include <wx/dialog.h> + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////////// +/// 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(); + +}; + |
