forked from icsharpcode/SharpDevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
5,355 additions
and
5,352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.cs text diff=csharp | ||
*.sln text eol=crlf | ||
*.csproj text eol=crlf |
162 changes: 81 additions & 81 deletions
162
src/AddIns/Debugger/Debugger.AddIn/Pads/Commands/ParallelStacksViewCommands.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,82 @@ | ||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) | ||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) | ||
|
||
using System; | ||
using System.Windows.Controls; | ||
using ICSharpCode.Core; | ||
|
||
namespace ICSharpCode.SharpDevelop.Gui.Pads | ||
{ | ||
public sealed class ShowZoomControlCommand : AbstractCheckableMenuCommand | ||
{ | ||
ParallelStackPad pad; | ||
|
||
public override object Owner { | ||
get { return base.Owner; } | ||
set { | ||
if (!(value is ParallelStackPad)) | ||
throw new Exception("Owner has to be a ParallelStackPad"); | ||
pad = value as ParallelStackPad; | ||
base.Owner = value; | ||
} | ||
} | ||
|
||
public override bool IsChecked { | ||
get { return pad.IsZoomControlVisible; } | ||
set { pad.IsZoomControlVisible = value; } | ||
} | ||
} | ||
|
||
public sealed class ToggleMethodViewCommand : AbstractCheckableMenuCommand | ||
{ | ||
ParallelStackPad pad; | ||
|
||
public override object Owner { | ||
get { return base.Owner; } | ||
set { | ||
if (!(value is ParallelStackPad)) | ||
throw new Exception("Owner has to be a AbstractConsolePad"); | ||
pad = value as ParallelStackPad; | ||
base.Owner = value; | ||
} | ||
} | ||
|
||
public override bool IsChecked { | ||
get { return pad.IsMethodView; } | ||
set { pad.IsMethodView = value; } | ||
} | ||
} | ||
|
||
public sealed class ParallelStacksViewCommand : AbstractComboBoxCommand | ||
{ | ||
ParallelStackPad pad; | ||
ComboBox box; | ||
|
||
protected override void OnOwnerChanged(EventArgs e) | ||
{ | ||
this.pad = this.Owner as ParallelStackPad; | ||
if (this.pad == null) | ||
return; | ||
|
||
box = this.ComboBox as ComboBox; | ||
|
||
if (this.box == null) | ||
return; | ||
|
||
foreach (var name in Enum.GetNames(typeof(ParallelStacksView))) | ||
box.Items.Add(name); | ||
|
||
box.SelectedIndex = 0; | ||
|
||
base.OnOwnerChanged(e); | ||
} | ||
|
||
public override void Run() | ||
{ | ||
if (this.pad != null && this.box != null) { | ||
pad.ParallelStacksView = (ParallelStacksView)Enum.Parse(typeof(ParallelStacksView), box.SelectedValue.ToString()); | ||
} | ||
base.Run(); | ||
} | ||
} | ||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) | ||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) | ||
|
||
using System; | ||
using System.Windows.Controls; | ||
using ICSharpCode.Core; | ||
|
||
namespace ICSharpCode.SharpDevelop.Gui.Pads | ||
{ | ||
public sealed class ShowZoomControlCommand : AbstractCheckableMenuCommand | ||
{ | ||
ParallelStackPad pad; | ||
|
||
public override object Owner { | ||
get { return base.Owner; } | ||
set { | ||
if (!(value is ParallelStackPad)) | ||
throw new Exception("Owner has to be a ParallelStackPad"); | ||
pad = value as ParallelStackPad; | ||
base.Owner = value; | ||
} | ||
} | ||
|
||
public override bool IsChecked { | ||
get { return pad.IsZoomControlVisible; } | ||
set { pad.IsZoomControlVisible = value; } | ||
} | ||
} | ||
|
||
public sealed class ToggleMethodViewCommand : AbstractCheckableMenuCommand | ||
{ | ||
ParallelStackPad pad; | ||
|
||
public override object Owner { | ||
get { return base.Owner; } | ||
set { | ||
if (!(value is ParallelStackPad)) | ||
throw new Exception("Owner has to be a AbstractConsolePad"); | ||
pad = value as ParallelStackPad; | ||
base.Owner = value; | ||
} | ||
} | ||
|
||
public override bool IsChecked { | ||
get { return pad.IsMethodView; } | ||
set { pad.IsMethodView = value; } | ||
} | ||
} | ||
|
||
public sealed class ParallelStacksViewCommand : AbstractComboBoxCommand | ||
{ | ||
ParallelStackPad pad; | ||
ComboBox box; | ||
|
||
protected override void OnOwnerChanged(EventArgs e) | ||
{ | ||
this.pad = this.Owner as ParallelStackPad; | ||
if (this.pad == null) | ||
return; | ||
|
||
box = this.ComboBox as ComboBox; | ||
|
||
if (this.box == null) | ||
return; | ||
|
||
foreach (var name in Enum.GetNames(typeof(ParallelStacksView))) | ||
box.Items.Add(name); | ||
|
||
box.SelectedIndex = 0; | ||
|
||
base.OnOwnerChanged(e); | ||
} | ||
|
||
public override void Run() | ||
{ | ||
if (this.pad != null && this.box != null) { | ||
pad.ParallelStacksView = (ParallelStacksView)Enum.Parse(typeof(ParallelStacksView), box.SelectedValue.ToString()); | ||
} | ||
base.Run(); | ||
} | ||
} | ||
} |
94 changes: 47 additions & 47 deletions
94
src/AddIns/Debugger/Debugger.AddIn/Pads/Commands/SelectLanguageCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) | ||
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt) | ||
|
||
using System; | ||
using Debugger; | ||
using Debugger.AddIn; | ||
using ICSharpCode.Core; | ||
using ICSharpCode.NRefactory; | ||
using ICSharpCode.SharpDevelop.Debugging; | ||
using ICSharpCode.SharpDevelop.Services; | ||
using System.Windows.Controls; | ||
|
||
namespace ICSharpCode.SharpDevelop.Gui.Pads | ||
{ | ||
class SelectLanguageCommand : AbstractComboBoxCommand | ||
{ | ||
ConsolePad pad; | ||
ComboBox box; | ||
|
||
protected override void OnOwnerChanged(EventArgs e) | ||
{ | ||
this.pad = this.Owner as ConsolePad; | ||
if (this.pad == null) | ||
return; | ||
|
||
box = this.ComboBox as ComboBox; | ||
|
||
if (this.box == null) | ||
return; | ||
|
||
foreach (var name in Enum.GetNames(typeof(SupportedLanguage))) | ||
box.Items.Add(name); | ||
|
||
box.SelectedIndex = 0; | ||
|
||
base.OnOwnerChanged(e); | ||
} | ||
|
||
public override void Run() | ||
{ | ||
if (this.pad != null && this.box != null) { | ||
pad.SelectedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), box.SelectedValue.ToString()); | ||
} | ||
base.Run(); | ||
} | ||
} | ||
} | ||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) | ||
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt) | ||
|
||
using System; | ||
using Debugger; | ||
using Debugger.AddIn; | ||
using ICSharpCode.Core; | ||
using ICSharpCode.NRefactory; | ||
using ICSharpCode.SharpDevelop.Debugging; | ||
using ICSharpCode.SharpDevelop.Services; | ||
using System.Windows.Controls; | ||
|
||
namespace ICSharpCode.SharpDevelop.Gui.Pads | ||
{ | ||
class SelectLanguageCommand : AbstractComboBoxCommand | ||
{ | ||
ConsolePad pad; | ||
ComboBox box; | ||
|
||
protected override void OnOwnerChanged(EventArgs e) | ||
{ | ||
this.pad = this.Owner as ConsolePad; | ||
if (this.pad == null) | ||
return; | ||
|
||
box = this.ComboBox as ComboBox; | ||
|
||
if (this.box == null) | ||
return; | ||
|
||
foreach (var name in Enum.GetNames(typeof(SupportedLanguage))) | ||
box.Items.Add(name); | ||
|
||
box.SelectedIndex = 0; | ||
|
||
base.OnOwnerChanged(e); | ||
} | ||
|
||
public override void Run() | ||
{ | ||
if (this.pad != null && this.box != null) { | ||
pad.SelectedLanguage = (SupportedLanguage)Enum.Parse(typeof(SupportedLanguage), box.SelectedValue.ToString()); | ||
} | ||
base.Run(); | ||
} | ||
} | ||
} |
Oops, something went wrong.