Files
GDevelop/IDE/ChoiceFile.h
T
Florian 1c45dfc95d Updated copyright.
Adapted to changes made to MainEditorCommand in GDL.
Using InfoBar to display some messages in SceneCanvas.

git-svn-id: svn://localhost@620 8062f311-0dae-4547-b526-b8ab9ac864a5
2011-12-31 12:33:32 +00:00

77 lines
1.6 KiB
C++

/** \file
* Game Develop
* 2008-2012 Florian Rival (Florian.Rival@gmail.com)
*/
#ifndef CHOICEFILE_H
#define CHOICEFILE_H
//(*Headers(ChoiceFile)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/statline.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)
class Game;
class Scene;
#include "GDL/Scene.h"
#include <string>
#include <vector>
using namespace std;
/**
* \brief Dialog to let the user choose a file, for parameters of actions/conditions/expressions.
*/
class ChoiceFile: public wxDialog
{
public:
ChoiceFile(wxWindow* parent, string file_, Game & game_, Scene & scene_, bool canSelectGroup_);
virtual ~ChoiceFile();
//(*Declarations(ChoiceFile)
wxStaticText* StaticText2;
wxButton* advancedBt;
wxStaticText* StaticText1;
wxButton* cancelBt;
wxTextCtrl* fileEdit;
wxStaticLine* StaticLine1;
wxButton* okBt;
//*)
string file;
protected:
//(*Identifiers(ChoiceFile)
static const long ID_STATICTEXT1;
static const long ID_TEXTCTRL1;
static const long ID_STATICTEXT2;
static const long ID_STATICLINE1;
static const long ID_BUTTON4;
static const long ID_BUTTON3;
static const long ID_BUTTON2;
//*)
private:
//(*Handlers(ChoiceFile)
void OnadvancedBtClick(wxCommandEvent& event);
void OnokBtClick(wxCommandEvent& event);
void OncancelBtClick(wxCommandEvent& event);
void OnfileEditText(wxCommandEvent& event);
//*)
//Données pour éditer une expression textuelle
Game & game;
Scene & scene;
bool canSelectGroup;
DECLARE_EVENT_TABLE()
};
#endif