2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
{
|
2021-11-28 13:00:24 +00:00
|
|
|
public enum FindReplaceSearchMode //mxd
|
2016-12-02 13:45:03 +00:00
|
|
|
{
|
|
|
|
CURRENT_FILE,
|
2019-12-31 12:16:13 +00:00
|
|
|
OPENED_TABS_ALL_SCRIPT_TYPES
|
2016-12-02 13:45:03 +00:00
|
|
|
}
|
|
|
|
|
2021-11-28 13:00:24 +00:00
|
|
|
public struct FindReplaceOptions
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
public string FindText;
|
|
|
|
public bool CaseSensitive;
|
|
|
|
public bool WholeWord;
|
|
|
|
public string ReplaceWith;
|
2016-12-02 13:45:03 +00:00
|
|
|
public FindReplaceSearchMode SearchMode; //mxd
|
2021-09-11 10:30:08 +00:00
|
|
|
public bool WrapAroundDisabled;
|
2016-12-02 13:45:03 +00:00
|
|
|
|
|
|
|
//mxd. Copy constructor
|
|
|
|
public FindReplaceOptions(FindReplaceOptions other)
|
|
|
|
{
|
|
|
|
FindText = other.FindText;
|
|
|
|
CaseSensitive = other.CaseSensitive;
|
|
|
|
WholeWord = other.WholeWord;
|
|
|
|
ReplaceWith = other.ReplaceWith;
|
|
|
|
SearchMode = other.SearchMode;
|
2021-09-11 10:30:08 +00:00
|
|
|
WrapAroundDisabled = other.WrapAroundDisabled;
|
2016-12-02 13:45:03 +00:00
|
|
|
}
|
2009-04-19 18:07:22 +00:00
|
|
|
}
|
|
|
|
}
|