Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2012-03-05 15:17:05 +0400
committerMike Krüger <mkrueger@xamarin.com>2012-03-05 15:17:05 +0400
commit5d9fc81eaa48b160b9ba748388dd7bfbe80e6706 (patch)
tree06a8d7fcbeca6eae3dbd8ccba136b08256d933ca /main/src
parent27ad45fa72d46600f3668a0aadcfd51910ba6f98 (diff)
[Ide] Moved the indent style to the text editor.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/core/MonoDevelop.Ide/Makefile.am1
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IndentStyle.cs49
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorProperties.cs5
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj9
4 files changed, 11 insertions, 53 deletions
diff --git a/main/src/core/MonoDevelop.Ide/Makefile.am b/main/src/core/MonoDevelop.Ide/Makefile.am
index 39666368f9..5226165fa1 100644
--- a/main/src/core/MonoDevelop.Ide/Makefile.am
+++ b/main/src/core/MonoDevelop.Ide/Makefile.am
@@ -434,7 +434,6 @@ FILES = \
MonoDevelop.Ide.Gui.Content/IFoldable.cs \
MonoDevelop.Ide.Gui.Content/ILocationList.cs \
MonoDevelop.Ide.Gui.Content/INavigable.cs \
- MonoDevelop.Ide.Gui.Content/IndentStyle.cs \
MonoDevelop.Ide.Gui.Content/IPathedDocument.cs \
MonoDevelop.Ide.Gui.Content/IPrintable.cs \
MonoDevelop.Ide.Gui.Content/ISmartIndenter.cs \
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IndentStyle.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IndentStyle.cs
deleted file mode 100644
index ea32e1e41e..0000000000
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IndentStyle.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// IndentStyle.cs
-//
-// Author:
-// Jeffrey Stedfast <fejj@novell.com>
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-namespace MonoDevelop.Ide.Gui.Content {
- /// <summary>
- /// Describes the indent style
- /// </summary>
- public enum IndentStyle {
- /// <summary>
- /// No indentation occurs
- /// </summary>
- None,
-
- /// <summary>
- /// The indentation from the line above will be
- /// taken to indent the current line
- /// </summary>
- Auto,
-
- /// <summary>
- /// Intelligent, context sensitive indentation will occur
- /// </summary>
- Smart
- }
-}
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorProperties.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorProperties.cs
index 6c623cc28e..eb9c356e3c 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorProperties.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorProperties.cs
@@ -4,6 +4,7 @@ using System.Text;
using Pango;
using MonoDevelop.Core;
+using Mono.TextEditor;
namespace MonoDevelop.Ide.Gui.Content {
public enum LineViewerStyle {
@@ -119,11 +120,11 @@ namespace MonoDevelop.Ide.Gui.Content {
public static IndentStyle IndentStyle {
get {
try {
- return PropertyService.Get ("IndentStyle", IndentStyle.Smart);
+ return PropertyService.Get ("IndentStyle", IndentStyle.Virtual);
} catch {
// invalid indent style -> setting to smart for default
// fixes: Bug 446871 - [Regression] Autoindent doesn't indent far enough
- PropertyService.Set ("IndentStyle", IndentStyle.Smart);
+ PropertyService.Set ("IndentStyle", IndentStyle.Virtual);
return IndentStyle.Smart;
}
}
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj
index df6ff41682..ee4505c336 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.csproj
@@ -44,18 +44,23 @@
<Reference Include="monodoc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
<SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
</Reference>
<Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
<SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
</Reference>
<Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
<SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
</Reference>
<Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
<SpecificVersion>False</SpecificVersion>
+ <Package>glib-sharp-2.0</Package>
</Reference>
<Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
<SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
</Reference>
<Reference Include="System.Core" />
<Reference Include="ICSharpCode.SharpZipLib" />
@@ -64,12 +69,15 @@
<Reference Include="System.Xml.Linq" />
<Reference Include="Mono.Addins.Gui, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
<SpecificVersion>False</SpecificVersion>
+ <Package>mono-addins-gui</Package>
</Reference>
<Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
<SpecificVersion>False</SpecificVersion>
+ <Package>mono-addins</Package>
</Reference>
<Reference Include="Mono.Addins.Setup, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
<SpecificVersion>False</SpecificVersion>
+ <Package>mono-addins-setup</Package>
</Reference>
</ItemGroup>
<ItemGroup>
@@ -918,7 +926,6 @@
<Compile Include="MonoDevelop.Ide.Templates\ISolutionItemFeature.cs" />
<Compile Include="MonoDevelop.Ide.StandardHeader\StandardHeaderService.cs" />
<Compile Include="MonoDevelop.Ide.Gui.Content\TextEditorProperties.cs" />
- <Compile Include="MonoDevelop.Ide.Gui.Content\IndentStyle.cs" />
<Compile Include="MonoDevelop.Ide.Gui.Pads\InternalLogPad.cs" />
<Compile Include="MonoDevelop.Ide.Gui\InternalLog.cs" />
<Compile Include="MonoDevelop.Ide.Gui.OptionPanels\KeyBindingsPanel.cs" />