From ef06837a041f994879f77442a7860a494082b732 Mon Sep 17 00:00:00 2001 From: codeimp Date: Tue, 3 Mar 2009 16:17:30 +0000 Subject: [PATCH] @ work in progress --- Source/Builder.csproj | 1 + Source/Controls/ScriptDocumentTab.cs | 10 ++++-- Source/Controls/ScriptEditorPanel.cs | 2 ++ Source/Windows/FindReplaceOptions.cs | 49 ++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 Source/Windows/FindReplaceOptions.cs diff --git a/Source/Builder.csproj b/Source/Builder.csproj index e33fe1b2..4d98646a 100644 --- a/Source/Builder.csproj +++ b/Source/Builder.csproj @@ -674,6 +674,7 @@ ErrorsForm.cs + Form diff --git a/Source/Controls/ScriptDocumentTab.cs b/Source/Controls/ScriptDocumentTab.cs index b72416cb..851535ec 100644 --- a/Source/Controls/ScriptDocumentTab.cs +++ b/Source/Controls/ScriptDocumentTab.cs @@ -58,9 +58,9 @@ namespace CodeImp.DoomBuilder.Controls protected ScriptEditorPanel panel; #endregion - + #region ================== Properties - + public virtual bool ExplicitSave { get { return true; } } public virtual bool IsSaveAsRequired { get { return true; } } public virtual bool IsClosable { get { return true; } } @@ -211,6 +211,12 @@ namespace CodeImp.DoomBuilder.Controls editor.Paste(); } + // Find next result + public bool FindNext(FindReplaceOptions options) + { + + } + #endregion #region ================== Events diff --git a/Source/Controls/ScriptEditorPanel.cs b/Source/Controls/ScriptEditorPanel.cs index 055a50cf..a1ab98b8 100644 --- a/Source/Controls/ScriptEditorPanel.cs +++ b/Source/Controls/ScriptEditorPanel.cs @@ -53,6 +53,8 @@ namespace CodeImp.DoomBuilder.Controls #region ================== Properties + public ScriptDocumentTab ActiveTab { get { return (tabs.SelectedTab as ScriptDocumentTab); } } + #endregion #region ================== Constructor diff --git a/Source/Windows/FindReplaceOptions.cs b/Source/Windows/FindReplaceOptions.cs new file mode 100644 index 00000000..c345a31c --- /dev/null +++ b/Source/Windows/FindReplaceOptions.cs @@ -0,0 +1,49 @@ + +#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 + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Text; +using System.Windows.Forms; +using System.IO; +using System.Reflection; +using System.Drawing; +using System.ComponentModel; +using CodeImp.DoomBuilder.Map; +using SlimDX.Direct3D9; +using SlimDX; +using CodeImp.DoomBuilder.Geometry; +using System.Drawing.Imaging; +using CodeImp.DoomBuilder.Data; +using CodeImp.DoomBuilder.Editing; + +#endregion + +namespace CodeImp.DoomBuilder.Windows +{ + internal struct FindReplaceOptions + { + public string FindText; + public bool CaseSensitive; + public bool WholeWord; + public string ReplaceWith; + } +} +