7 #ifndef CAFU_COMMAND_REPLACE_MAT_HPP_INCLUDED
8 #define CAFU_COMMAND_REPLACE_MAT_HPP_INCLUDED
10 #include "../../CommandPattern.hpp"
45 ReplaceActionT Action_,
bool MarkOnly_,
bool SearchSelection,
bool SearchBrushes,
bool SearchBPatches,
bool SearchHidden);
69 const wxString Replace;
73 wxString m_ResultString;
Find partial matches and replace the entire string.
Definition: ReplaceMat.hpp:28
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
CommandReplaceMatT(MapDocumentT &MapDoc_, const ArrayT< MapElementT * > &Selection_, const wxString &Find_, const wxString &Replace_, ReplaceActionT Action_, bool MarkOnly_, bool SearchSelection, bool SearchBrushes, bool SearchBPatches, bool SearchHidden)
Constructor to replace or just mark materials in the current selection of the map document or all map...
Definition: ReplaceMat.cpp:22
ReplaceActionT
Definition: ReplaceMat.hpp:25
Find and replace exact matches only.
Definition: ReplaceMat.hpp:27
void Undo()
This method un-does the command.
Definition: ReplaceMat.cpp:277
const wxString & GetResultString() const
Returns a string describing the result after the command has been run (that is, Do() has been called)...
Definition: ReplaceMat.cpp:83
Find partial matches and replace the matching portion.
Definition: ReplaceMat.hpp:29
bool Do()
This method executes the command.
Definition: ReplaceMat.cpp:89
Definition: Select.hpp:18
Definition: MapBrush.hpp:15
This class represents a bezier patch.
Definition: MapBezierPatch.hpp:44
Definition: EditorMaterial.hpp:21
Definition: ReplaceMat.hpp:21
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
wxString GetName() const
Returns the name (a description) of the command.
Definition: ReplaceMat.cpp:305
This is the base class for all elements ("objects") that can exist in a map.
Definition: MapElement.hpp:57