Initial import.

git-svn-id: svn://localhost@383 8062f311-0dae-4547-b526-b8ab9ac864a5
This commit is contained in:
Florian
2011-02-02 22:18:21 +00:00
parent 385c30caa4
commit bbac808d2c
14 changed files with 10280 additions and 0 deletions
@@ -0,0 +1,88 @@
/**
Game Develop - TextEntry Object Extension
Copyright (c) 2011 Florian Rival (Florian.Rival@gmail.com)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
*/
#if defined(GD_IDE_ONLY)
#include "TextEntryObjectEditor.h"
//(*InternalHeaders(TextEntryObjectEditor)
#include <wx/intl.h>
#include <wx/string.h>
//*)
#include <wx/colordlg.h>
#include <wx/filedlg.h>
#include "GDL/Game.h"
#include "TextEntryObject.h"
#include "GDL/MainEditorCommand.h"
//(*IdInit(TextEntryObjectEditor)
const long TextEntryObjectEditor::ID_STATICLINE1 = wxNewId();
const long TextEntryObjectEditor::ID_BUTTON1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(TextEntryObjectEditor,wxDialog)
//(*EventTable(TextEntryObjectEditor)
//*)
END_EVENT_TABLE()
TextEntryObjectEditor::TextEntryObjectEditor( wxWindow* parent, Game & game_, TextEntryObject & object_, MainEditorCommand & mainEditorCommand_ ) :
game(game_),
mainEditorCommand(mainEditorCommand_),
object(object_)
{
//(*Initialize(TextEntryObjectEditor)
wxFlexGridSizer* FlexGridSizer2;
wxFlexGridSizer* FlexGridSizer1;
Create(parent, wxID_ANY, _("Editer l\'objet texte"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("wxID_ANY"));
FlexGridSizer1 = new wxFlexGridSizer(0, 1, 0, 0);
StaticLine1 = new wxStaticLine(this, ID_STATICLINE1, wxDefaultPosition, wxSize(10,-1), wxLI_HORIZONTAL, _T("ID_STATICLINE1"));
FlexGridSizer1->Add(StaticLine1, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);
FlexGridSizer2 = new wxFlexGridSizer(0, 3, 0, 0);
okBt = new wxButton(this, ID_BUTTON1, _("Ok"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
FlexGridSizer2->Add(okBt, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
FlexGridSizer1->Add(FlexGridSizer2, 1, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 0);
SetSizer(FlexGridSizer1);
FlexGridSizer1->Fit(this);
FlexGridSizer1->SetSizeHints(this);
Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&TextEntryObjectEditor::OnokBtClick);
//*)
}
TextEntryObjectEditor::~TextEntryObjectEditor()
{
//(*Destroy(TextEntryObjectEditor)
//*)
}
void TextEntryObjectEditor::OnokBtClick(wxCommandEvent& event)
{
EndModal(1);
}
#endif