UltimateZoneBuilder/Source/Core/Windows/FindReplaceOptions.cs
MaxED 5dd45ffdca Updated, Script Editor: redesigned "Find and Replace" window. It can now search/replace in all opened tabs and all detected text resources.
Fixed, Script Editor: resources list control was incorrectly positioned when using DPI scaling.
2016-12-02 13:45:03 +00:00

51 lines
1.2 KiB
C#

#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
#endregion
namespace CodeImp.DoomBuilder.Windows
{
internal enum FindReplaceSearchMode //mxd
{
CURRENT_FILE,
OPENED_TABS_CURRENT_SCRIPT_TYPE,
OPENED_TABS_ALL_SCRIPT_TYPES,
CURRENT_PROJECT_CURRENT_SCRIPT_TYPE,
CURRENT_PROJECT_ALL_SCRIPT_TYPES,
}
internal struct FindReplaceOptions
{
public string FindText;
public bool CaseSensitive;
public bool WholeWord;
public string ReplaceWith;
public FindReplaceSearchMode SearchMode; //mxd
//mxd. Copy constructor
public FindReplaceOptions(FindReplaceOptions other)
{
FindText = other.FindText;
CaseSensitive = other.CaseSensitive;
WholeWord = other.WholeWord;
ReplaceWith = other.ReplaceWith;
SearchMode = other.SearchMode;
}
}
}