From ce941c146aea7925bded6b9d2a0d0559d3156ad3 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 23 Feb 2022 18:11:55 +0100 Subject: Create repository --- src/preferences/BoardPrefsPanelBF.h | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/preferences/BoardPrefsPanelBF.h (limited to 'src/preferences/BoardPrefsPanelBF.h') diff --git a/src/preferences/BoardPrefsPanelBF.h b/src/preferences/BoardPrefsPanelBF.h new file mode 100644 index 0000000..0bcea9e --- /dev/null +++ b/src/preferences/BoardPrefsPanelBF.h @@ -0,0 +1,64 @@ +/////////////////////////////////////////////////////////////////////////// +// 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 +#include +#include +#include + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////////// +/// Class BoardPrefsPanelBF +/////////////////////////////////////////////////////////////////////////////// +class BoardPrefsPanelBF : public wxPanel +{ + private: + + protected: + wxSplitterWindow* splitter; + wxPanel* board_canvas; + wxPanel* options_panel; + wxStaticText* piece_theme_label; + wxListBox* piece_theme; + wxStaticText* square_theme_label; + wxListBox* square_theme; + wxCheckBox* show_side_badge; + wxCheckBox* show_captures; + wxCheckBox* black_by_default; + wxStaticText* border_radius_label; + wxSpinCtrl* corner_radius; + wxStaticText* board_size_label; + wxSpinCtrl* square_size; + + public: + + BoardPrefsPanelBF( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 756,751 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + + ~BoardPrefsPanelBF(); + + void splitterOnIdle( wxIdleEvent& ) + { + splitter->SetSashPosition( 350 ); + splitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( BoardPrefsPanelBF::splitterOnIdle ), NULL, this ); + } + +}; + -- cgit v1.2.3