goodbye, wxdlg
This commit is contained in:
parent
07a3cd6483
commit
b39a54ab57
File diff suppressed because it is too large
Load Diff
|
@ -1,575 +0,0 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wxcontrolsconfigdialog.cpp
|
||||
// Purpose:
|
||||
// Author:
|
||||
// Modified by:
|
||||
// Created: 09/07/2010 15:27:00
|
||||
// RCS-ID:
|
||||
// Copyright:
|
||||
// Licence:
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
////@begin includes
|
||||
////@end includes
|
||||
|
||||
#include "wxcontrolsconfigdialog.h"
|
||||
|
||||
////@begin XPM images
|
||||
////@end XPM images
|
||||
|
||||
|
||||
/*
|
||||
* wxControlsConfigDialog type definition
|
||||
*/
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS( wxControlsConfigDialog, wxDialog )
|
||||
|
||||
|
||||
/*
|
||||
* wxControlsConfigDialog event table definition
|
||||
*/
|
||||
|
||||
BEGIN_EVENT_TABLE( wxControlsConfigDialog, wxDialog )
|
||||
|
||||
////@begin wxControlsConfigDialog event table entries
|
||||
EVT_BUTTON( ID_K_L_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_R_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_X_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_Y_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_A_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_B_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_START_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_SELECT_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_UP_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_DOWN_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_LEFT_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_RIGHT_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_BUTTON( ID_K_LID_C, wxControlsConfigDialog::OnChangeKeyboardMapping )
|
||||
|
||||
EVT_CHOICE( ID_JOYSTICKIDX, wxControlsConfigDialog::OnJoystickidxSelected )
|
||||
|
||||
EVT_BUTTON( ID_J_L_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_R_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_X_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_Y_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_A_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_B_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_START_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_SELECT_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_BUTTON( ID_J_LID_C, wxControlsConfigDialog::OnChangeJoystickMapping )
|
||||
|
||||
EVT_RADIOBUTTON( ID_DPAD_OPT1, wxControlsConfigDialog::OnChangeDPadMode )
|
||||
|
||||
EVT_RADIOBUTTON( ID_DPAD_OPT2, wxControlsConfigDialog::OnChangeDPadMode )
|
||||
|
||||
EVT_RADIOBUTTON( ID_DPAD_OPT3, wxControlsConfigDialog::OnChangeDPadMode )
|
||||
|
||||
EVT_BUTTON( wxID_DEFAULT, wxControlsConfigDialog::OnDefaultClick )
|
||||
|
||||
EVT_BUTTON( wxID_OK, wxControlsConfigDialog::OnOkClick )
|
||||
|
||||
EVT_BUTTON( wxID_CANCEL, wxControlsConfigDialog::OnCancelClick )
|
||||
|
||||
EVT_BUTTON( wxID_APPLY, wxControlsConfigDialog::OnApplyClick )
|
||||
|
||||
////@end wxControlsConfigDialog event table entries
|
||||
|
||||
END_EVENT_TABLE()
|
||||
|
||||
|
||||
/*
|
||||
* wxControlsConfigDialog constructors
|
||||
*/
|
||||
|
||||
wxControlsConfigDialog::wxControlsConfigDialog()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
wxControlsConfigDialog::wxControlsConfigDialog( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
||||
{
|
||||
Init();
|
||||
Create(parent, id, caption, pos, size, style);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxControlsConfigDialog creator
|
||||
*/
|
||||
|
||||
bool wxControlsConfigDialog::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
||||
{
|
||||
////@begin wxControlsConfigDialog creation
|
||||
SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
|
||||
wxDialog::Create( parent, id, caption, pos, size, style );
|
||||
|
||||
CreateControls();
|
||||
if (GetSizer())
|
||||
{
|
||||
GetSizer()->SetSizeHints(this);
|
||||
}
|
||||
Centre();
|
||||
////@end wxControlsConfigDialog creation
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxControlsConfigDialog destructor
|
||||
*/
|
||||
|
||||
wxControlsConfigDialog::~wxControlsConfigDialog()
|
||||
{
|
||||
////@begin wxControlsConfigDialog destruction
|
||||
////@end wxControlsConfigDialog destruction
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Member initialisation
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::Init()
|
||||
{
|
||||
////@begin wxControlsConfigDialog member initialisation
|
||||
////@end wxControlsConfigDialog member initialisation
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Control creation for wxControlsConfigDialog
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::CreateControls()
|
||||
{
|
||||
////@begin wxControlsConfigDialog content construction
|
||||
wxControlsConfigDialog* itemDialog1 = this;
|
||||
|
||||
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
|
||||
itemDialog1->SetSizer(itemBoxSizer2);
|
||||
|
||||
wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
|
||||
itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
|
||||
|
||||
wxStaticBox* itemStaticBoxSizer4Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Keyboard"));
|
||||
wxStaticBoxSizer* itemStaticBoxSizer4 = new wxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
|
||||
itemBoxSizer3->Add(itemStaticBoxSizer4, 0, wxALIGN_TOP|wxALL, 5);
|
||||
|
||||
wxFlexGridSizer* itemFlexGridSizer5 = new wxFlexGridSizer(0, 3, 0, 0);
|
||||
itemStaticBoxSizer4->Add(itemFlexGridSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
||||
|
||||
wxStaticText* itemStaticText6 = new wxStaticText( itemDialog1, wxID_STATIC, _("L:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl7 = new wxTextCtrl( itemDialog1, ID_K_L_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl7, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton8 = new wxButton( itemDialog1, ID_K_L_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton8, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText9 = new wxStaticText( itemDialog1, wxID_STATIC, _("R:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText9, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl10 = new wxTextCtrl( itemDialog1, ID_K_R_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton11 = new wxButton( itemDialog1, ID_K_R_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton11, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText12 = new wxStaticText( itemDialog1, wxID_STATIC, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText12, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl13 = new wxTextCtrl( itemDialog1, ID_K_X_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl13, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton14 = new wxButton( itemDialog1, ID_K_X_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton14, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText15 = new wxStaticText( itemDialog1, wxID_STATIC, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText15, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl16 = new wxTextCtrl( itemDialog1, ID_K_Y_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl16, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton17 = new wxButton( itemDialog1, ID_K_Y_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton17, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText18 = new wxStaticText( itemDialog1, wxID_STATIC, _("A:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText18, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl19 = new wxTextCtrl( itemDialog1, ID_K_A_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl19, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton20 = new wxButton( itemDialog1, ID_K_A_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton20, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText21 = new wxStaticText( itemDialog1, wxID_STATIC, _("B:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText21, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl22 = new wxTextCtrl( itemDialog1, ID_K_B_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl22, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton23 = new wxButton( itemDialog1, ID_K_B_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton23, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText24 = new wxStaticText( itemDialog1, wxID_STATIC, _("Start:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText24, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl25 = new wxTextCtrl( itemDialog1, ID_K_START_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl25, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton26 = new wxButton( itemDialog1, ID_K_START_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton26, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText27 = new wxStaticText( itemDialog1, wxID_STATIC, _("Select:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText27, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl28 = new wxTextCtrl( itemDialog1, ID_K_SELECT_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl28, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton29 = new wxButton( itemDialog1, ID_K_SELECT_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton29, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText30 = new wxStaticText( itemDialog1, wxID_STATIC, _("Up:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText30, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl31 = new wxTextCtrl( itemDialog1, ID_K_UP_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl31, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton32 = new wxButton( itemDialog1, ID_K_UP_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton32, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText33 = new wxStaticText( itemDialog1, wxID_STATIC, _("Down:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText33, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl34 = new wxTextCtrl( itemDialog1, ID_K_DOWN_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl34, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton35 = new wxButton( itemDialog1, ID_K_DOWN_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton35, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText36 = new wxStaticText( itemDialog1, wxID_STATIC, _("Left:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText36, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl37 = new wxTextCtrl( itemDialog1, ID_K_LEFT_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl37, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton38 = new wxButton( itemDialog1, ID_K_LEFT_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton38, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText39 = new wxStaticText( itemDialog1, wxID_STATIC, _("Right:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText39, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl40 = new wxTextCtrl( itemDialog1, ID_K_RIGHT_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl40, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton41 = new wxButton( itemDialog1, ID_K_RIGHT_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton41, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText42 = new wxStaticText( itemDialog1, wxID_STATIC, _("Close/open lid:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemStaticText42, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl43 = new wxTextCtrl( itemDialog1, ID_K_LID_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer5->Add(itemTextCtrl43, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton44 = new wxButton( itemDialog1, ID_K_LID_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer5->Add(itemButton44, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticBox* itemStaticBoxSizer45Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Joystick"));
|
||||
wxStaticBoxSizer* itemStaticBoxSizer45 = new wxStaticBoxSizer(itemStaticBoxSizer45Static, wxVERTICAL);
|
||||
itemBoxSizer3->Add(itemStaticBoxSizer45, 0, wxALIGN_TOP|wxALL, 5);
|
||||
|
||||
wxArrayString itemChoice46Strings;
|
||||
wxChoice* itemChoice46 = new wxChoice( itemDialog1, ID_JOYSTICKIDX, wxDefaultPosition, wxSize(250, -1), itemChoice46Strings, 0 );
|
||||
itemStaticBoxSizer45->Add(itemChoice46, 0, wxALIGN_CENTER_HORIZONTAL|wxBOTTOM, 5);
|
||||
|
||||
wxFlexGridSizer* itemFlexGridSizer47 = new wxFlexGridSizer(0, 3, 0, 0);
|
||||
itemStaticBoxSizer45->Add(itemFlexGridSizer47, 0, wxALIGN_CENTER_HORIZONTAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
||||
|
||||
wxStaticText* itemStaticText48 = new wxStaticText( itemDialog1, wxID_STATIC, _("L:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText48, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl49 = new wxTextCtrl( itemDialog1, ID_J_L_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl49, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton50 = new wxButton( itemDialog1, ID_J_L_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton50, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText51 = new wxStaticText( itemDialog1, wxID_STATIC, _("R:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText51, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl52 = new wxTextCtrl( itemDialog1, ID_J_R_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl52, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton53 = new wxButton( itemDialog1, ID_J_R_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton53, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText54 = new wxStaticText( itemDialog1, wxID_STATIC, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText54, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl55 = new wxTextCtrl( itemDialog1, ID_J_X_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl55, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton56 = new wxButton( itemDialog1, ID_J_X_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton56, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText57 = new wxStaticText( itemDialog1, wxID_STATIC, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText57, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl58 = new wxTextCtrl( itemDialog1, ID_J_Y_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl58, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton59 = new wxButton( itemDialog1, ID_J_Y_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton59, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText60 = new wxStaticText( itemDialog1, wxID_STATIC, _("A:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText60, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl61 = new wxTextCtrl( itemDialog1, ID_J_A_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl61, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton62 = new wxButton( itemDialog1, ID_J_A_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton62, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText63 = new wxStaticText( itemDialog1, wxID_STATIC, _("B:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText63, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl64 = new wxTextCtrl( itemDialog1, ID_J_B_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl64, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton65 = new wxButton( itemDialog1, ID_J_B_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton65, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText66 = new wxStaticText( itemDialog1, wxID_STATIC, _("Start:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText66, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl67 = new wxTextCtrl( itemDialog1, ID_J_START_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl67, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton68 = new wxButton( itemDialog1, ID_J_START_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton68, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText69 = new wxStaticText( itemDialog1, wxID_STATIC, _("Select:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText69, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl70 = new wxTextCtrl( itemDialog1, ID_J_SELECT_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl70, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton71 = new wxButton( itemDialog1, ID_J_SELECT_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton71, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticText* itemStaticText72 = new wxStaticText( itemDialog1, wxID_STATIC, _("Close/open lid:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemStaticText72, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
|
||||
|
||||
wxTextCtrl* itemTextCtrl73 = new wxTextCtrl( itemDialog1, ID_J_LID_S, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||
itemFlexGridSizer47->Add(itemTextCtrl73, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxButton* itemButton74 = new wxButton( itemDialog1, ID_J_LID_C, _("Change"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer47->Add(itemButton74, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
|
||||
|
||||
wxStaticBox* itemStaticBoxSizer75Static = new wxStaticBox(itemDialog1, wxID_ANY, _("D-Pad"));
|
||||
wxStaticBoxSizer* itemStaticBoxSizer75 = new wxStaticBoxSizer(itemStaticBoxSizer75Static, wxHORIZONTAL);
|
||||
itemStaticBoxSizer45->Add(itemStaticBoxSizer75, 0, wxALIGN_LEFT|wxALL, 5);
|
||||
|
||||
wxRadioButton* itemRadioButton76 = new wxRadioButton( itemDialog1, ID_DPAD_OPT1, _("POV hat"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemRadioButton76->SetValue(false);
|
||||
itemStaticBoxSizer75->Add(itemRadioButton76, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
wxRadioButton* itemRadioButton77 = new wxRadioButton( itemDialog1, ID_DPAD_OPT2, _("X/Y axis"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemRadioButton77->SetValue(false);
|
||||
itemStaticBoxSizer75->Add(itemRadioButton77, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
wxRadioButton* itemRadioButton78 = new wxRadioButton( itemDialog1, ID_DPAD_OPT3, _("Both"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemRadioButton78->SetValue(false);
|
||||
itemStaticBoxSizer75->Add(itemRadioButton78, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
wxBoxSizer* itemBoxSizer79 = new wxBoxSizer(wxHORIZONTAL);
|
||||
itemBoxSizer2->Add(itemBoxSizer79, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
||||
|
||||
wxButton* itemButton80 = new wxButton( itemDialog1, wxID_DEFAULT, _("Default"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemBoxSizer79->Add(itemButton80, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5);
|
||||
|
||||
itemBoxSizer79->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
wxButton* itemButton82 = new wxButton( itemDialog1, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemButton82->SetDefault();
|
||||
itemBoxSizer79->Add(itemButton82, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);
|
||||
|
||||
wxButton* itemButton83 = new wxButton( itemDialog1, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemBoxSizer79->Add(itemButton83, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);
|
||||
|
||||
wxButton* itemButton84 = new wxButton( itemDialog1, wxID_APPLY, _("&Apply"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemButton84->Enable(false);
|
||||
itemBoxSizer79->Add(itemButton84, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5);
|
||||
|
||||
////@end wxControlsConfigDialog content construction
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Should we show tooltips?
|
||||
*/
|
||||
|
||||
bool wxControlsConfigDialog::ShowToolTips()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get bitmap resources
|
||||
*/
|
||||
|
||||
wxBitmap wxControlsConfigDialog::GetBitmapResource( const wxString& name )
|
||||
{
|
||||
// Bitmap retrieval
|
||||
////@begin wxControlsConfigDialog bitmap retrieval
|
||||
wxUnusedVar(name);
|
||||
return wxNullBitmap;
|
||||
////@end wxControlsConfigDialog bitmap retrieval
|
||||
}
|
||||
|
||||
/*
|
||||
* Get icon resources
|
||||
*/
|
||||
|
||||
wxIcon wxControlsConfigDialog::GetIconResource( const wxString& name )
|
||||
{
|
||||
// Icon retrieval
|
||||
////@begin wxControlsConfigDialog icon retrieval
|
||||
wxUnusedVar(name);
|
||||
return wxNullIcon;
|
||||
////@end wxControlsConfigDialog icon retrieval
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_K_L_C
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnChangeKeyboardMapping( wxCommandEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_K_L_C in wxControlsConfigDialog.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_K_L_C in wxControlsConfigDialog.
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOYSTICKIDX
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnJoystickidxSelected( wxCommandEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOYSTICKIDX in wxControlsConfigDialog.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOYSTICKIDX in wxControlsConfigDialog.
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_J_L_C
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnChangeJoystickMapping( wxCommandEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_J_L_C in wxControlsConfigDialog.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_J_L_C in wxControlsConfigDialog.
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_DPAD_OPT1
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnChangeDPadMode( wxCommandEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_DPAD_OPT1 in wxControlsConfigDialog.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_DPAD_OPT1 in wxControlsConfigDialog.
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_DEFAULT
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnDefaultClick( wxCommandEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_DEFAULT in wxControlsConfigDialog.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_DEFAULT in wxControlsConfigDialog.
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnOkClick( wxCommandEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK in wxControlsConfigDialog.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK in wxControlsConfigDialog.
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnCancelClick( wxCommandEvent& event )
|
||||
{
|
||||
Destroy();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
|
||||
*/
|
||||
|
||||
void wxControlsConfigDialog::OnApplyClick( wxCommandEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY in wxControlsConfigDialog.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY in wxControlsConfigDialog.
|
||||
}
|
||||
|
|
@ -1,163 +0,0 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wxcontrolsconfigdialog.h
|
||||
// Purpose:
|
||||
// Author:
|
||||
// Modified by:
|
||||
// Created: 09/07/2010 15:27:00
|
||||
// RCS-ID:
|
||||
// Copyright:
|
||||
// Licence:
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WXCONTROLSCONFIGDIALOG_H_
|
||||
#define _WXCONTROLSCONFIGDIALOG_H_
|
||||
|
||||
|
||||
/*!
|
||||
* Includes
|
||||
*/
|
||||
|
||||
////@begin includes
|
||||
////@end includes
|
||||
|
||||
/*!
|
||||
* Forward declarations
|
||||
*/
|
||||
|
||||
////@begin forward declarations
|
||||
////@end forward declarations
|
||||
|
||||
/*!
|
||||
* Control identifiers
|
||||
*/
|
||||
|
||||
////@begin control identifiers
|
||||
#define ID_WXCONTROLSCONFIGDIALOG 10010
|
||||
#define ID_K_L_S 10011
|
||||
#define ID_K_L_C 10012
|
||||
#define ID_K_R_S 10013
|
||||
#define ID_K_R_C 10014
|
||||
#define ID_K_X_S 10015
|
||||
#define ID_K_X_C 10016
|
||||
#define ID_K_Y_S 10017
|
||||
#define ID_K_Y_C 10018
|
||||
#define ID_K_A_S 10019
|
||||
#define ID_K_A_C 10020
|
||||
#define ID_K_B_S 10021
|
||||
#define ID_K_B_C 10022
|
||||
#define ID_K_START_S 10023
|
||||
#define ID_K_START_C 10024
|
||||
#define ID_K_SELECT_S 10025
|
||||
#define ID_K_SELECT_C 10026
|
||||
#define ID_K_UP_S 10027
|
||||
#define ID_K_UP_C 10028
|
||||
#define ID_K_DOWN_S 10029
|
||||
#define ID_K_DOWN_C 10030
|
||||
#define ID_K_LEFT_S 10031
|
||||
#define ID_K_LEFT_C 10032
|
||||
#define ID_K_RIGHT_S 10033
|
||||
#define ID_K_RIGHT_C 10034
|
||||
#define ID_K_LID_S 10035
|
||||
#define ID_K_LID_C 10036
|
||||
#define ID_JOYSTICKIDX 10058
|
||||
#define ID_J_L_S 10037
|
||||
#define ID_J_L_C 10038
|
||||
#define ID_J_R_S 10039
|
||||
#define ID_J_R_C 10040
|
||||
#define ID_J_X_S 10041
|
||||
#define ID_J_X_C 10042
|
||||
#define ID_J_Y_S 10043
|
||||
#define ID_J_Y_C 10044
|
||||
#define ID_J_A_S 10045
|
||||
#define ID_J_A_C 10046
|
||||
#define ID_J_B_S 10047
|
||||
#define ID_J_B_C 10048
|
||||
#define ID_J_START_S 10049
|
||||
#define ID_J_START_C 10050
|
||||
#define ID_J_SELECT_S 10051
|
||||
#define ID_J_SELECT_C 10052
|
||||
#define ID_J_LID_S 10053
|
||||
#define ID_J_LID_C 10054
|
||||
#define ID_DPAD_OPT1 10055
|
||||
#define ID_DPAD_OPT2 10056
|
||||
#define ID_DPAD_OPT3 10057
|
||||
#define SYMBOL_WXCONTROLSCONFIGDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
|
||||
#define SYMBOL_WXCONTROLSCONFIGDIALOG_TITLE _("Controls configuration")
|
||||
#define SYMBOL_WXCONTROLSCONFIGDIALOG_IDNAME ID_WXCONTROLSCONFIGDIALOG
|
||||
#define SYMBOL_WXCONTROLSCONFIGDIALOG_SIZE wxSize(400, 300)
|
||||
#define SYMBOL_WXCONTROLSCONFIGDIALOG_POSITION wxDefaultPosition
|
||||
////@end control identifiers
|
||||
|
||||
|
||||
/*!
|
||||
* wxControlsConfigDialog class declaration
|
||||
*/
|
||||
|
||||
class wxControlsConfigDialog: public wxDialog
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( wxControlsConfigDialog )
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
public:
|
||||
/// Constructors
|
||||
wxControlsConfigDialog();
|
||||
wxControlsConfigDialog( wxWindow* parent, wxWindowID id = SYMBOL_WXCONTROLSCONFIGDIALOG_IDNAME, const wxString& caption = SYMBOL_WXCONTROLSCONFIGDIALOG_TITLE, const wxPoint& pos = SYMBOL_WXCONTROLSCONFIGDIALOG_POSITION, const wxSize& size = SYMBOL_WXCONTROLSCONFIGDIALOG_SIZE, long style = SYMBOL_WXCONTROLSCONFIGDIALOG_STYLE );
|
||||
|
||||
/// Creation
|
||||
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXCONTROLSCONFIGDIALOG_IDNAME, const wxString& caption = SYMBOL_WXCONTROLSCONFIGDIALOG_TITLE, const wxPoint& pos = SYMBOL_WXCONTROLSCONFIGDIALOG_POSITION, const wxSize& size = SYMBOL_WXCONTROLSCONFIGDIALOG_SIZE, long style = SYMBOL_WXCONTROLSCONFIGDIALOG_STYLE );
|
||||
|
||||
/// Destructor
|
||||
~wxControlsConfigDialog();
|
||||
|
||||
/// Initialises member variables
|
||||
void Init();
|
||||
|
||||
/// Creates the controls and sizers
|
||||
void CreateControls();
|
||||
|
||||
////@begin wxControlsConfigDialog event handler declarations
|
||||
|
||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_K_L_C
|
||||
virtual void OnChangeKeyboardMapping( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOYSTICKIDX
|
||||
virtual void OnJoystickidxSelected( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_J_L_C
|
||||
virtual void OnChangeJoystickMapping( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_DPAD_OPT1
|
||||
virtual void OnChangeDPadMode( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_DEFAULT
|
||||
virtual void OnDefaultClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
||||
virtual void OnOkClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
||||
virtual void OnCancelClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
|
||||
virtual void OnApplyClick( wxCommandEvent& event );
|
||||
|
||||
////@end wxControlsConfigDialog event handler declarations
|
||||
|
||||
////@begin wxControlsConfigDialog member function declarations
|
||||
|
||||
/// Retrieves bitmap resources
|
||||
wxBitmap GetBitmapResource( const wxString& name );
|
||||
|
||||
/// Retrieves icon resources
|
||||
wxIcon GetIconResource( const wxString& name );
|
||||
////@end wxControlsConfigDialog member function declarations
|
||||
|
||||
/// Should we show tooltips?
|
||||
static bool ShowToolTips();
|
||||
|
||||
////@begin wxControlsConfigDialog member variables
|
||||
////@end wxControlsConfigDialog member variables
|
||||
};
|
||||
|
||||
#endif
|
||||
// _WXCONTROLSCONFIGDIALOG_H_
|
|
@ -1,422 +0,0 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wxdlg3dViewer.h.cpp
|
||||
// Purpose:
|
||||
// Author:
|
||||
// Modified by:
|
||||
// Created: 12/12/2009 15:45:31
|
||||
// RCS-ID:
|
||||
// Copyright:
|
||||
// Licence:
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef HAVE_WX
|
||||
|
||||
// Generated by DialogBlocks (unregistered), 12/12/2009 15:45:31
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
////@begin includes
|
||||
#include "wx/imaglist.h"
|
||||
////@end includes
|
||||
|
||||
#include "wxdlg3dViewer.h"
|
||||
|
||||
////@begin XPM images
|
||||
////@end XPM images
|
||||
|
||||
|
||||
/*
|
||||
* wxdlg3dViewer type definition
|
||||
*/
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS( wxdlg3dViewer, wxDialog )
|
||||
|
||||
|
||||
/*
|
||||
* wxdlg3dViewer event table definition
|
||||
*/
|
||||
|
||||
BEGIN_EVENT_TABLE( wxdlg3dViewer, wxDialog )
|
||||
|
||||
////@begin wxdlg3dViewer event table entries
|
||||
EVT_CLOSE( wxdlg3dViewer::OnCloseWindow )
|
||||
|
||||
EVT_CHECKBOX( ID_CheckMaterialInterpolate, wxdlg3dViewer::OnMaterialInterpolateClick )
|
||||
|
||||
EVT_LIST_ITEM_SELECTED( ID_ListPolys, wxdlg3dViewer::OnListPolysSelected )
|
||||
|
||||
////@end wxdlg3dViewer event table entries
|
||||
|
||||
END_EVENT_TABLE()
|
||||
|
||||
|
||||
/*
|
||||
* wxdlg3dViewer constructors
|
||||
*/
|
||||
|
||||
wxdlg3dViewer::wxdlg3dViewer()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
wxdlg3dViewer::wxdlg3dViewer( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
||||
{
|
||||
Init();
|
||||
Create(parent, id, caption, pos, size, style);
|
||||
listPolys->callbacks = this;
|
||||
listPolys->InsertColumn(0,wxT("polys"));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* x creator
|
||||
*/
|
||||
|
||||
bool wxdlg3dViewer::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
||||
{
|
||||
////@begin wxdlg3dViewer creation
|
||||
SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
|
||||
wxDialog::Create( parent, id, caption, pos, size, style );
|
||||
|
||||
CreateControls();
|
||||
if (GetSizer())
|
||||
{
|
||||
GetSizer()->SetSizeHints(this);
|
||||
}
|
||||
Centre();
|
||||
////@end wxdlg3dViewer creation
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxdlg3dViewer destructor
|
||||
*/
|
||||
|
||||
wxdlg3dViewer::~wxdlg3dViewer()
|
||||
{
|
||||
////@begin wxdlg3dViewer destruction
|
||||
////@end wxdlg3dViewer destruction
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Member initialisation
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::Init()
|
||||
{
|
||||
////@begin wxdlg3dViewer member initialisation
|
||||
checkMaterialInterpolate = NULL;
|
||||
panelTexture = NULL;
|
||||
panelViewport = NULL;
|
||||
labelFrameCounter = NULL;
|
||||
labelUserPolycount = NULL;
|
||||
labelFinalPolycount = NULL;
|
||||
listPolys = NULL;
|
||||
tree = NULL;
|
||||
////@end wxdlg3dViewer member initialisation
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Control creation for x
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::CreateControls()
|
||||
{
|
||||
////@begin wxdlg3dViewer content construction
|
||||
wxdlg3dViewer* itemDialog1 = this;
|
||||
|
||||
wxFlexGridSizer* itemFlexGridSizer2 = new wxFlexGridSizer(1, 0, 0, 0);
|
||||
itemFlexGridSizer2->AddGrowableCol(0);
|
||||
itemFlexGridSizer2->AddGrowableCol(1);
|
||||
itemFlexGridSizer2->AddGrowableCol(2);
|
||||
itemFlexGridSizer2->AddGrowableCol(3);
|
||||
itemFlexGridSizer2->AddGrowableCol(4);
|
||||
itemDialog1->SetSizer(itemFlexGridSizer2);
|
||||
|
||||
wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxVERTICAL);
|
||||
itemFlexGridSizer2->Add(itemBoxSizer3, 0, wxGROW|wxALIGN_TOP|wxALL, 5);
|
||||
|
||||
wxStaticBox* itemStaticBoxSizer4Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Display optionsss"));
|
||||
wxStaticBoxSizer* itemStaticBoxSizer4 = new wxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
|
||||
itemBoxSizer3->Add(itemStaticBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
checkMaterialInterpolate = new wxCheckBox( itemDialog1, ID_CheckMaterialInterpolate, _("Material clip interpolation"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
checkMaterialInterpolate->SetValue(false);
|
||||
itemStaticBoxSizer4->Add(checkMaterialInterpolate, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
wxCheckBox* itemCheckBox6 = new wxCheckBox( itemDialog1, ID_CHECKBOX1, _("Something else"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemCheckBox6->SetValue(false);
|
||||
itemStaticBoxSizer4->Add(itemCheckBox6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
itemBoxSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
wxFlexGridSizer* itemFlexGridSizer8 = new wxFlexGridSizer(0, 2, 0, 0);
|
||||
itemBoxSizer3->Add(itemFlexGridSizer8, 1, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
panelTexture = new wxWindow( itemDialog1, ID_PanelTexture, wxDefaultPosition, wxSize(64, 64), wxSIMPLE_BORDER );
|
||||
itemFlexGridSizer8->Add(panelTexture, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
wxStaticText* itemStaticText10 = new wxStaticText( itemDialog1, wxID_STATIC, _("3dviewer is unstable.\ndont use it."), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemFlexGridSizer8->Add(itemStaticText10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
panelViewport = new wxWindow( itemDialog1, ID_PanelViewport, wxDefaultPosition, wxSize(256, 192), wxSIMPLE_BORDER );
|
||||
itemFlexGridSizer2->Add(panelViewport, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
wxFlexGridSizer* itemFlexGridSizer12 = new wxFlexGridSizer(3, 1, 0, 0);
|
||||
itemFlexGridSizer12->AddGrowableRow(1);
|
||||
itemFlexGridSizer2->Add(itemFlexGridSizer12, 1, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL, 5);
|
||||
|
||||
wxStaticBox* itemStaticBoxSizer13Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Choose One"));
|
||||
wxStaticBoxSizer* itemStaticBoxSizer13 = new wxStaticBoxSizer(itemStaticBoxSizer13Static, wxVERTICAL);
|
||||
itemFlexGridSizer12->Add(itemStaticBoxSizer13, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM|wxALL, 5);
|
||||
|
||||
wxRadioButton* itemRadioButton14 = new wxRadioButton( itemDialog1, ID_RADIOBUTTON, _("Final Polylist"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemRadioButton14->SetValue(true);
|
||||
itemStaticBoxSizer13->Add(itemRadioButton14, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
wxRadioButton* itemRadioButton15 = new wxRadioButton( itemDialog1, ID_RADIOBUTTON1, _("User Polylist"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemRadioButton15->SetValue(false);
|
||||
itemRadioButton15->Enable(false);
|
||||
itemStaticBoxSizer13->Add(itemRadioButton15, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
wxRadioButton* itemRadioButton16 = new wxRadioButton( itemDialog1, ID_RADIOBUTTON2, _("Display List"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemRadioButton16->SetValue(false);
|
||||
itemRadioButton16->Enable(false);
|
||||
itemStaticBoxSizer13->Add(itemRadioButton16, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
|
||||
|
||||
itemFlexGridSizer12->Add(5, 5, 1, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
wxStaticBox* itemStaticBoxSizer18Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Statistics"));
|
||||
wxStaticBoxSizer* itemStaticBoxSizer18 = new wxStaticBoxSizer(itemStaticBoxSizer18Static, wxVERTICAL);
|
||||
itemFlexGridSizer12->Add(itemStaticBoxSizer18, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
labelFrameCounter = new wxStaticText( itemDialog1, wxID_STATIC, _("Frame: 9999999"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemStaticBoxSizer18->Add(labelFrameCounter, 0, wxALIGN_LEFT|wxALL, 1);
|
||||
|
||||
labelUserPolycount = new wxStaticText( itemDialog1, wxID_STATIC, _("User Polys: 999999"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemStaticBoxSizer18->Add(labelUserPolycount, 0, wxALIGN_LEFT|wxALL, 1);
|
||||
|
||||
labelFinalPolycount = new wxStaticText( itemDialog1, wxID_STATIC, _("Final Polys: "), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
itemStaticBoxSizer18->Add(labelFinalPolycount, 0, wxALIGN_LEFT|wxALL, 1);
|
||||
|
||||
wxStaticLine* itemStaticLine22 = new wxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||
itemFlexGridSizer2->Add(itemStaticLine22, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL, 5);
|
||||
|
||||
listPolys = new wxDesmumeListCtrl( itemDialog1, ID_ListPolys, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_VIRTUAL );
|
||||
itemFlexGridSizer2->Add(listPolys, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL, 5);
|
||||
|
||||
tree = new wxTreeCtrl( itemDialog1, ID_Tree, wxDefaultPosition, wxSize(99, 99), wxTR_HAS_BUTTONS |wxTR_HIDE_ROOT|wxTR_ROW_LINES|wxTR_SINGLE );
|
||||
itemFlexGridSizer2->Add(tree, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL, 5);
|
||||
|
||||
// Connect events and objects
|
||||
panelTexture->Connect(ID_PanelTexture, wxEVT_PAINT, wxPaintEventHandler(wxdlg3dViewer::OnPaintPanelTexture), NULL, this);
|
||||
panelTexture->Connect(ID_PanelTexture, wxEVT_ERASE_BACKGROUND, wxEraseEventHandler(wxdlg3dViewer::OnDoNotEraseBackground), NULL, this);
|
||||
panelViewport->Connect(ID_PanelViewport, wxEVT_PAINT, wxPaintEventHandler(wxdlg3dViewer::OnPanelPaint), NULL, this);
|
||||
panelViewport->Connect(ID_PanelViewport, wxEVT_ERASE_BACKGROUND, wxEraseEventHandler(wxdlg3dViewer::OnDoNotEraseBackground), NULL, this);
|
||||
////@end wxdlg3dViewer content construction
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Should we show tooltips?
|
||||
*/
|
||||
|
||||
bool wxdlg3dViewer::ShowToolTips()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Get bitmap resources
|
||||
*/
|
||||
|
||||
wxBitmap wxdlg3dViewer::GetBitmapResource( const wxString& name )
|
||||
{
|
||||
// Bitmap retrieval
|
||||
////@begin wxdlg3dViewer bitmap retrieval
|
||||
wxUnusedVar(name);
|
||||
return wxNullBitmap;
|
||||
////@end wxdlg3dViewer bitmap retrieval
|
||||
}
|
||||
|
||||
/*
|
||||
* Get icon resources
|
||||
*/
|
||||
|
||||
wxIcon wxdlg3dViewer::GetIconResource( const wxString& name )
|
||||
{
|
||||
// Icon retrieval
|
||||
////@begin wxdlg3dViewer icon retrieval
|
||||
wxUnusedVar(name);
|
||||
return wxNullIcon;
|
||||
////@end wxdlg3dViewer icon retrieval
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_CLOSE_WINDOW event handler for ID_X
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::OnCloseWindow( wxCloseEvent& event )
|
||||
{
|
||||
|
||||
event.Skip();
|
||||
Destroy();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_MATERIALINTERPOLATE
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::OnMaterialInterpolateClick( wxCommandEvent& event )
|
||||
{
|
||||
RepaintPanel();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_PAINT event handler for ID_PANEL
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::OnPanelPaint( wxPaintEvent& event )
|
||||
{
|
||||
_OnPaintPanel(event);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_ERASE_BACKGROUND event handler for ID_PANEL
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::OnDoNotEraseBackground( wxEraseEvent& event )
|
||||
{
|
||||
//blank to block background clearing
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* wxDesmumeListCtrl type definition
|
||||
*/
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS( wxDesmumeListCtrl, wxListCtrl )
|
||||
|
||||
|
||||
/*
|
||||
* wxDesmumeListCtrl event table definition
|
||||
*/
|
||||
|
||||
BEGIN_EVENT_TABLE( wxDesmumeListCtrl, wxListCtrl )
|
||||
|
||||
////@begin wxDesmumeListCtrl event table entries
|
||||
////@end wxDesmumeListCtrl event table entries
|
||||
|
||||
END_EVENT_TABLE()
|
||||
|
||||
|
||||
/*
|
||||
* wxDesmumeListCtrl constructors
|
||||
*/
|
||||
|
||||
wxDesmumeListCtrl::wxDesmumeListCtrl()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
wxDesmumeListCtrl::wxDesmumeListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator)
|
||||
{
|
||||
Init();
|
||||
Create(parent, id, pos, size, style, validator);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxDesmumeListCtrl creator
|
||||
*/
|
||||
|
||||
bool wxDesmumeListCtrl::Create(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator)
|
||||
{
|
||||
////@begin wxDesmumeListCtrl creation
|
||||
wxListCtrl::Create(parent, id, pos, size, style, validator);
|
||||
CreateControls();
|
||||
////@end wxDesmumeListCtrl creation
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxDesmumeListCtrl destructor
|
||||
*/
|
||||
|
||||
wxDesmumeListCtrl::~wxDesmumeListCtrl()
|
||||
{
|
||||
////@begin wxDesmumeListCtrl destruction
|
||||
////@end wxDesmumeListCtrl destruction
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Member initialisation
|
||||
*/
|
||||
|
||||
void wxDesmumeListCtrl::Init()
|
||||
{
|
||||
////@begin wxDesmumeListCtrl member initialisation
|
||||
////@end wxDesmumeListCtrl member initialisation
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Control creation for wxDesmumeListCtrl
|
||||
*/
|
||||
|
||||
void wxDesmumeListCtrl::CreateControls()
|
||||
{
|
||||
////@begin wxDesmumeListCtrl content construction
|
||||
////@end wxDesmumeListCtrl content construction
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_LISTPOLYS
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::OnListPolysSelected( wxListEvent& event )
|
||||
{
|
||||
////@begin wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_LISTPOLYS in wxdlg3dViewer.
|
||||
// Before editing this code, remove the block markers.
|
||||
event.Skip();
|
||||
////@end wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_LISTPOLYS in wxdlg3dViewer.
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* wxEVT_PAINT event handler for ID_PanelTexture
|
||||
*/
|
||||
|
||||
void wxdlg3dViewer::OnPaintPanelTexture( wxPaintEvent& event )
|
||||
{
|
||||
////@begin wxEVT_PAINT event handler for ID_PanelTexture in wxdlg3dViewer.
|
||||
// Before editing this code, remove the block markers.
|
||||
wxPaintDC dc(wxDynamicCast(event.GetEventObject(), wxWindow));
|
||||
////@end wxEVT_PAINT event handler for ID_PanelTexture in wxdlg3dViewer.
|
||||
}
|
||||
|
||||
#endif //HAVE_WX
|
|
@ -1,195 +0,0 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wxdlg3dviewer.h
|
||||
// Purpose:
|
||||
// Author:
|
||||
// Modified by:
|
||||
// Created: 12/12/2009 15:45:31
|
||||
// RCS-ID:
|
||||
// Copyright:
|
||||
// Licence:
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Generated by DialogBlocks (unregistered), 12/12/2009 15:45:31
|
||||
|
||||
#ifndef _WXDLG3DVIEWER_H_
|
||||
#define _WXDLG3DVIEWER_H_
|
||||
|
||||
|
||||
/*!
|
||||
* Includes
|
||||
*/
|
||||
|
||||
////@begin includes
|
||||
#include "wx/statline.h"
|
||||
#include "wx/listctrl.h"
|
||||
#include "wx/treectrl.h"
|
||||
////@end includes
|
||||
|
||||
class IListCtrlCallbacks
|
||||
{
|
||||
public:
|
||||
virtual wxString OnGetItemText(const wxListCtrl* list, long item, long column) const = 0;
|
||||
};
|
||||
|
||||
|
||||
/*!
|
||||
* Forward declarations
|
||||
*/
|
||||
|
||||
////@begin forward declarations
|
||||
class wxWindow;
|
||||
class wxDesmumeListCtrl;
|
||||
class wxTreeCtrl;
|
||||
////@end forward declarations
|
||||
|
||||
/*!
|
||||
* Control identifiers
|
||||
*/
|
||||
|
||||
////@begin control identifiers
|
||||
#define ID_X 10000
|
||||
#define ID_CheckMaterialInterpolate 10004
|
||||
#define ID_CHECKBOX1 10008
|
||||
#define ID_PanelTexture 10001
|
||||
#define ID_PanelViewport 10002
|
||||
#define ID_RADIOBUTTON 10005
|
||||
#define ID_RADIOBUTTON1 10006
|
||||
#define ID_RADIOBUTTON2 10007
|
||||
#define ID_ListPolys 10009
|
||||
#define ID_Tree 10003
|
||||
#define SYMBOL_WXDLG3DVIEWER_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxDIALOG_NO_PARENT|wxCLOSE_BOX|wxTAB_TRAVERSAL
|
||||
#define SYMBOL_WXDLG3DVIEWER_TITLE _("3D Viewer")
|
||||
#define SYMBOL_WXDLG3DVIEWER_IDNAME ID_X
|
||||
#define SYMBOL_WXDLG3DVIEWER_SIZE wxSize(399, 300)
|
||||
#define SYMBOL_WXDLG3DVIEWER_POSITION wxDefaultPosition
|
||||
#define SYMBOL_WXDESMUMELISTCTRL_STYLE wxLC_REPORT|wxLC_VIRTUAL
|
||||
#define SYMBOL_WXDESMUMELISTCTRL_IDNAME ID_ListPolys
|
||||
#define SYMBOL_WXDESMUMELISTCTRL_SIZE wxDefaultSize
|
||||
#define SYMBOL_WXDESMUMELISTCTRL_POSITION wxDefaultPosition
|
||||
////@end control identifiers
|
||||
|
||||
|
||||
/*!
|
||||
* wxdlg3dViewer class declaration
|
||||
*/
|
||||
|
||||
class wxdlg3dViewer: public wxDialog, public IListCtrlCallbacks
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( wxdlg3dViewer )
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
public:
|
||||
/// Constructors
|
||||
wxdlg3dViewer();
|
||||
wxdlg3dViewer( wxWindow* parent, wxWindowID id = SYMBOL_WXDLG3DVIEWER_IDNAME, const wxString& caption = SYMBOL_WXDLG3DVIEWER_TITLE, const wxPoint& pos = SYMBOL_WXDLG3DVIEWER_POSITION, const wxSize& size = SYMBOL_WXDLG3DVIEWER_SIZE, long style = SYMBOL_WXDLG3DVIEWER_STYLE );
|
||||
|
||||
/// Creation
|
||||
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXDLG3DVIEWER_IDNAME, const wxString& caption = SYMBOL_WXDLG3DVIEWER_TITLE, const wxPoint& pos = SYMBOL_WXDLG3DVIEWER_POSITION, const wxSize& size = SYMBOL_WXDLG3DVIEWER_SIZE, long style = SYMBOL_WXDLG3DVIEWER_STYLE );
|
||||
|
||||
/// Destructor
|
||||
~wxdlg3dViewer();
|
||||
|
||||
/// Initialises member variables
|
||||
void Init();
|
||||
|
||||
/// Creates the controls and sizers
|
||||
void CreateControls();
|
||||
|
||||
virtual wxString OnGetItemText(const wxListCtrl* list, long item, long column) const {
|
||||
return wxT("");
|
||||
}
|
||||
virtual void RepaintPanel() {}
|
||||
virtual void _OnPaintPanel( wxPaintEvent& event ) {};
|
||||
|
||||
////@begin wxdlg3dViewer event handler declarations
|
||||
|
||||
/// wxEVT_CLOSE_WINDOW event handler for ID_X
|
||||
virtual void OnCloseWindow( wxCloseEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CheckMaterialInterpolate
|
||||
virtual void OnMaterialInterpolateClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_PAINT event handler for ID_PanelTexture
|
||||
virtual void OnPaintPanelTexture( wxPaintEvent& event );
|
||||
|
||||
/// wxEVT_ERASE_BACKGROUND event handler for ID_PanelTexture
|
||||
virtual void OnDoNotEraseBackground( wxEraseEvent& event );
|
||||
|
||||
/// wxEVT_PAINT event handler for ID_PanelViewport
|
||||
virtual void OnPanelPaint( wxPaintEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_ListPolys
|
||||
virtual void OnListPolysSelected( wxListEvent& event );
|
||||
|
||||
////@end wxdlg3dViewer event handler declarations
|
||||
|
||||
////@begin wxdlg3dViewer member function declarations
|
||||
|
||||
/// Retrieves bitmap resources
|
||||
wxBitmap GetBitmapResource( const wxString& name );
|
||||
|
||||
/// Retrieves icon resources
|
||||
wxIcon GetIconResource( const wxString& name );
|
||||
////@end wxdlg3dViewer member function declarations
|
||||
|
||||
/// Should we show tooltips?
|
||||
static bool ShowToolTips();
|
||||
|
||||
////@begin wxdlg3dViewer member variables
|
||||
wxCheckBox* checkMaterialInterpolate;
|
||||
wxWindow* panelTexture;
|
||||
wxWindow* panelViewport;
|
||||
wxStaticText* labelFrameCounter;
|
||||
wxStaticText* labelUserPolycount;
|
||||
wxStaticText* labelFinalPolycount;
|
||||
wxDesmumeListCtrl* listPolys;
|
||||
wxTreeCtrl* tree;
|
||||
////@end wxdlg3dViewer member variables
|
||||
};
|
||||
|
||||
/*!
|
||||
* wxDesmumeListCtrl class declaration
|
||||
*/
|
||||
|
||||
class wxDesmumeListCtrl: public wxListCtrl
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( wxDesmumeListCtrl )
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
public:
|
||||
IListCtrlCallbacks* callbacks;
|
||||
|
||||
virtual wxString OnGetItemText(long item, long column) const {
|
||||
return callbacks->OnGetItemText(this,item,column);
|
||||
}
|
||||
|
||||
/// Constructors
|
||||
wxDesmumeListCtrl();
|
||||
wxDesmumeListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator);
|
||||
|
||||
/// Creation
|
||||
bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator);
|
||||
|
||||
/// Destructor
|
||||
~wxDesmumeListCtrl();
|
||||
|
||||
/// Initialises member variables
|
||||
void Init();
|
||||
|
||||
/// Creates the controls and sizers
|
||||
void CreateControls();
|
||||
|
||||
////@begin wxDesmumeListCtrl event handler declarations
|
||||
|
||||
////@end wxDesmumeListCtrl event handler declarations
|
||||
|
||||
////@begin wxDesmumeListCtrl member function declarations
|
||||
|
||||
////@end wxDesmumeListCtrl member function declarations
|
||||
|
||||
////@begin wxDesmumeListCtrl member variables
|
||||
////@end wxDesmumeListCtrl member variables
|
||||
};
|
||||
|
||||
#endif
|
||||
// _X_H_
|
Loading…
Reference in New Issue