Files
GDevelop/IDE/SearchEvents.h
T
Florian 694f1bc4ac Adapted to changes in GDL/GDCore.
SearchEvents dialog is now selecting the events when browsing results.

git-svn-id: svn://localhost@728 8062f311-0dae-4547-b526-b8ab9ac864a5
2012-05-24 16:02:56 +00:00

110 lines
2.7 KiB
C++

#ifndef SEARCHEVENTS_H
#define SEARCHEVENTS_H
//(*Headers(SearchEvents)
#include <wx/notebook.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/checkbox.h>
#include <wx/panel.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)
#include <string>
#include <vector>
#include "GDCore/Events/Event.h"
class Game;
class Scene;
class EventsEditor;
class EventsSearchResult;
/**
* Search/Replace dialogs for events.
* Intented to be only used by EventsEditor
*/
class SearchEvents: public wxDialog
{
public:
SearchEvents(EventsEditor * parent_, Game & game_, Scene & scene_, std::vector < gd::BaseEventSPtr > * events_);
virtual ~SearchEvents();
//(*Declarations(SearchEvents)
wxCheckBox* replaceCaseCheck;
wxButton* helpBt;
wxButton* previousBt;
wxCheckBox* actionsCheck;
wxNotebook* Notebook1;
wxCheckBox* replaceActionsCheck;
wxCheckBox* caseCheck;
wxStaticText* StaticText2;
wxPanel* Panel1;
wxStaticText* StaticText1;
wxStaticText* StaticText3;
wxCheckBox* replaceConditionsCheck;
wxTextCtrl* searchEdit;
wxTextCtrl* replaceEdit;
wxCheckBox* onlySelectedEventCheck;
wxCheckBox* conditionsCheck;
wxTextCtrl* searchToReplaceEdit;
wxStaticText* resultsCountTxt;
wxButton* replaceBt;
wxPanel* Panel2;
wxButton* nextBt;
wxButton* searchBt;
wxButton* help2Bt;
//*)
protected:
//(*Identifiers(SearchEvents)
static const long ID_STATICTEXT1;
static const long ID_TEXTCTRL1;
static const long ID_STATICTEXT4;
static const long ID_CHECKBOX6;
static const long ID_CHECKBOX1;
static const long ID_CHECKBOX2;
static const long ID_BUTTON1;
static const long ID_BUTTON2;
static const long ID_BUTTON3;
static const long ID_BUTTON5;
static const long ID_PANEL1;
static const long ID_STATICTEXT2;
static const long ID_TEXTCTRL2;
static const long ID_STATICTEXT3;
static const long ID_TEXTCTRL3;
static const long ID_CHECKBOX8;
static const long ID_CHECKBOX7;
static const long ID_CHECKBOX9;
static const long ID_CHECKBOX10;
static const long ID_BUTTON4;
static const long ID_BUTTON6;
static const long ID_PANEL2;
static const long ID_NOTEBOOK1;
//*)
private:
//(*Handlers(SearchEvents)
void OnreplaceBtClick(wxCommandEvent& event);
void OnsearchBtClick(wxCommandEvent& event);
void OnsearchEditText(wxCommandEvent& event);
void OnnextBtClick(wxCommandEvent& event);
void OnpreviousBtClick(wxCommandEvent& event);
void OnhelpBtClick(wxCommandEvent& event);
//*)
EventsEditor * parent;
Game & game;
Scene & scene;
std::vector < gd::BaseEventSPtr > * events;
std::vector < EventsSearchResult > searchResults;
size_t currentResult;
DECLARE_EVENT_TABLE()
};
#endif