//---------------------------------------------------------------------------
//
// Name:        Dlga.cpp
// Author:      professeur
// Created:     30/04/2007 23:41:51
// Description: Dlga class implementation
//
//---------------------------------------------------------------------------

#include "Dlga.h"

//Do not add custom headers
//wxDev-C++ designer will remove them
////Header Include Start
////Header Include End

//----------------------------------------------------------------------------
// Dlga
//----------------------------------------------------------------------------
//Add Custom Events only in the appropriate block.
//Code added in other places will be removed by wxDev-C++
////Event Table Start
BEGIN_EVENT_TABLE(Dlga,wxDialog)
	////Manual Code Start
	////Manual Code End
	
	EVT_CLOSE(Dlga::OnClose)
END_EVENT_TABLE()
////Event Table End

Dlga::Dlga(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
	CreateGUIControls();
}

Dlga::~Dlga()
{
} 

void Dlga::CreateGUIControls()
{
	//Do not add custom code between
	//GUI Items Creation Start and GUI Items Creation End.
	//wxDev-C++ designer will remove them.
	//Add the custom code before or after the blocks
	////GUI Items Creation Start

	WxBoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
	this->SetSizer(WxBoxSizer1);
	this->SetAutoLayout(true);

	WxMemo1 = new wxTextCtrl(this, ID_WXMEMO1, wxT(""), wxPoint(5,5), wxSize(299,286), wxTE_READONLY | wxTE_MULTILINE, wxDefaultValidator, wxT("WxMemo1"));
	WxMemo1->SetMaxLength(0);
	WxMemo1->AppendText(wxT("- Plus de paramètres :\n"));
	WxMemo1->AppendText(wxT("Permet d'avoir pour certaines instructions un paramètre "));
	WxMemo1->AppendText(wxT("supplémentaire : durée, angle...\n\n"));
	WxMemo1->AppendText(wxT(""));
	WxMemo1->AppendText(wxT("- Texte durant le voyage :\n"));
	WxMemo1->AppendText(wxT("Permet d'avoir la possibilité de rajouter du texte.\n"));
	WxMemo1->AppendText(wxT("Avec l'option \"Plus de paramètres\" on peut affiner la durée "));
	WxMemo1->AppendText(wxT("des textes.\n\n"));
	WxMemo1->AppendText(wxT(""));
	WxMemo1->AppendText(wxT("- Noms en français :\n"));
	WxMemo1->AppendText(wxT("A cocher uniquement pour une version de Celestia avec les "));
	WxMemo1->AppendText(wxT("noms francisés avec \"nomplanete\"\n"));
	WxMemo1->AppendText(wxT("\n"));
	WxMemo1->AppendText(wxT("- Modifier le code :\n"));
	WxMemo1->AppendText(wxT("Permet de modifier le nom et le code d'une instruction ; \n"));
	WxMemo1->AppendText(wxT("on peut en créer une en faisant \"insérer\" puis en la "));
	WxMemo1->AppendText(wxT("modifiant."));
	WxMemo1->AppendText(wxT("\n\n"));
	WxMemo1->AppendText(wxT("- Enregistrer les configurations :\n"));
	WxMemo1->AppendText(wxT("Permet de garder en mémoire les options cochées ou non. "));
	WxMemo1->SetFocus();
	WxMemo1->SetInsertionPointEnd();
	WxMemo1->SetFont(wxFont(8, wxSWISS, wxNORMAL,wxNORMAL, false, wxT("Tahoma")));
	WxBoxSizer1->Add(WxMemo1,0,wxALIGN_CENTER | wxEXPAND | wxALL,5);

	SetTitle(wxT("Aide des options"));
	SetIcon(wxNullIcon);
	
	GetSizer()->Layout();
	GetSizer()->Fit(this);
	GetSizer()->SetSizeHints(this);
	Center();
	
	////GUI Items Creation End
}

void Dlga::OnClose(wxCloseEvent& /*event*/)
{
	Destroy();
}