Files
GDevelop/IDE/SigneTest.cpp
T
Florian 8672f179e9 Exchanged all french messages with their English counterparts.
Gui elements in SceneCanvas are now independant from the zoom factor.
Work in progress: NewProjectDialog.

git-svn-id: svn://localhost@837 8062f311-0dae-4547-b526-b8ab9ac864a5
2012-09-20 19:53:26 +00:00

58 lines
1.7 KiB
C++

#include "SigneTest.h"
//(*InternalHeaders(SigneTest)
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*IdInit(SigneTest)
const long SigneTest::ID_RADIOBOX1 = wxNewId();
const long SigneTest::ID_BUTTON1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(SigneTest,wxDialog)
//(*EventTable(SigneTest)
//*)
END_EVENT_TABLE()
SigneTest::SigneTest(wxWindow* parent)
{
//(*Initialize(SigneTest)
wxFlexGridSizer* FlexGridSizer1;
Create(parent, wxID_ANY, _("Choose the test's sign"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("wxID_ANY"));
FlexGridSizer1 = new wxFlexGridSizer(0, 1, 0, 0);
wxString __wxRadioBoxChoices_1[6] =
{
_("= ( equal to )"),
_("> ( greater than )"),
_("< ( lesser than )"),
_(">= ( greater than or equal to )"),
_("<= ( lesser than or equal to )"),
_("!= ( different of )")
};
SigneRadio = new wxRadioBox(this, ID_RADIOBOX1, _("Sign of the test"), wxDefaultPosition, wxDefaultSize, 6, __wxRadioBoxChoices_1, 1, 0, wxDefaultValidator, _T("ID_RADIOBOX1"));
FlexGridSizer1->Add(SigneRadio, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
OkBt = new wxButton(this, ID_BUTTON1, _("Ok"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
FlexGridSizer1->Add(OkBt, 1, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
SetSizer(FlexGridSizer1);
FlexGridSizer1->Fit(this);
FlexGridSizer1->SetSizeHints(this);
Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&SigneTest::OnOkBtClick);
//*)
}
SigneTest::~SigneTest()
{
//(*Destroy(SigneTest)
//*)
}
void SigneTest::OnOkBtClick(wxCommandEvent& event)
{
EndModal( 1+SigneRadio->GetSelection());
}