📄 displayinformation.cs
字号:
// DisplayInformation.cs
// Copyright (C) 2001 Mike Krueger
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// 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.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
using System;
using System.Collections;
using System.Reflection;
using System.Resources;
using System.Windows.Forms;
using SharpDevelop.Internal.Project;
using SharpDevelop.Gui;
using SharpDevelop.Gui.Window;
using SharpDevelop.Gui.Edit.Text;
using SharpDevelop.Gui.Edit.Reflection;
public class DisplayInformation : ISdDisplayModule
{
/// <summary>
/// Gets the content pane for the language (you can create own views),
/// this function can return null, in this case a sharptextarea will
/// be viewed.
/// </summary>
public WindowContentPane GetContentPane(MainWindow mainwindow, ContentWindow window)
{
WindowContentPane pane = new WindowContentPane();
Panel panel = new Panel();
panel.Dock = DockStyle.Fill;
TabControl tctrl = new TabControl();
tctrl.Dock = DockStyle.Fill;
tctrl.Alignment = TabAlignment.Bottom;
tctrl.Alignment = TabAlignment.Top;
tctrl.Dock = DockStyle.Left;
tctrl.Width = 350;
TabPage treeviewpage = new TabPage("Tree");
ReflectionTree reflectiontree = new ReflectionTree();
treeviewpage.Controls.Add(reflectiontree);
tctrl.TabPages.Add(treeviewpage);
TabPage indexviewpage = new TabPage("Index");
indexviewpage.Controls.Add(new ReflectionSearchPanel(reflectiontree));
tctrl.TabPages.Add(indexviewpage);
Splitter vsplitter = new Splitter();
vsplitter.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
// vsplitter.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
vsplitter.Location = new System.Drawing.Point(0, 200);
vsplitter.TabIndex = 5;
vsplitter.TabStop = false;
vsplitter.Size = new System.Drawing.Size(3, 273);
vsplitter.Dock = DockStyle.Left;
Splitter hsplitter = new Splitter();
hsplitter.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
// hsplitter.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
hsplitter.Location = new System.Drawing.Point(0, 200);
hsplitter.TabIndex = 5;
hsplitter.TabStop = false;
hsplitter.Size = new System.Drawing.Size(3, 273);
hsplitter.Dock = DockStyle.Top;
TabControl tctrl2 = new TabControl();
tctrl2.Dock = DockStyle.Fill;
tctrl2.Alignment = TabAlignment.Bottom;
TabPage ildasmviewpage = new TabPage("Dissassembler");
ildasmviewpage.Controls.Add(new ReflectionILDasmView(mainwindow, reflectiontree));
tctrl2.TabPages.Add(ildasmviewpage);
TabPage sourceviewpage = new TabPage("Source");
sourceviewpage.Controls.Add(new ReflectionSourceView(mainwindow, reflectiontree));
tctrl2.TabPages.Add(sourceviewpage);
panel.Controls.Add(hsplitter);
panel.Controls.Add(tctrl2);
panel.Controls.Add(new ReflectionInfoView(mainwindow, reflectiontree));
panel.Controls.Add(vsplitter);
panel.Controls.Add(tctrl);
pane.Pane = panel;
pane.ISdEditable = reflectiontree;
return pane;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -