本文整理汇总了C#中IPadWindow类的典型用法代码示例。如果您正苦于以下问题:C# IPadWindow类的具体用法?C# IPadWindow怎么用?C# IPadWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPadWindow类属于命名空间,在下文中一共展示了IPadWindow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public void Initialize (IPadWindow window)
{
CreateToolbar (window);
CreatePackageConsoleView ();
CreatePackageConsoleViewModel ();
BindingViewModelToView ();
}
示例2: Initialize
public override void Initialize (IPadWindow window)
{
base.Initialize (window);
IdeApp.Workbench.ActiveDocumentChanged += DocumentChangedHandler;
CurrentDoc = IdeApp.Workbench.ActiveDocument;
Update ();
}
示例3: Initialize
public override void Initialize (IPadWindow container)
{
base.Initialize (container);
toolbarProvider.Attach (container.GetToolbar (Gtk.PositionType.Top));
grid.SetToolbarProvider (toolbarProvider);
this.container = container;
}
示例4: Initialize
public void Initialize (IPadWindow container)
{
view = new DebuggerConsoleView ();
view.ConsoleInput += OnViewConsoleInput;
view.ShadowType = Gtk.ShadowType.None;
view.ShowAll ();
}
示例5: Initialize
public override void Initialize (IPadWindow container)
{
base.Initialize (container);
TreeView.Id = Id;
if (Initializer != null)
Initializer ();
}
示例6: Button
void IPadContent.Initialize (IPadWindow window)
{
this.window = window;
window.Icon = icon;
DockItemToolbar toolbar = window.GetToolbar (PositionType.Right);
buttonStop = new Button (new Gtk.Image ("gtk-stop", IconSize.Menu));
buttonStop.Clicked += new EventHandler (OnButtonStopClick);
buttonStop.TooltipText = GettextCatalog.GetString ("Stop");
toolbar.Add (buttonStop);
buttonClear = new Button (new Gtk.Image ("gtk-clear", IconSize.Menu));
buttonClear.Clicked += new EventHandler (OnButtonClearClick);
buttonClear.TooltipText = GettextCatalog.GetString ("Clear console");
toolbar.Add (buttonClear);
buttonPin = new ToggleButton ();
buttonPin.Image = new Gtk.Image ((IconId)"md-pin-up", IconSize.Menu);
buttonPin.Image.ShowAll ();
buttonPin.Clicked += new EventHandler (OnButtonPinClick);
buttonPin.TooltipText = GettextCatalog.GetString ("Pin output pad");
toolbar.Add (buttonPin);
toolbar.ShowAll ();
}
示例7: Initialize
public override void Initialize(IPadWindow window)
{
base.Initialize(window);
// Call ctors
inputEditor = new TextEditor() { Name = "input", Events = Gdk.EventMask.AllEventsMask, HeightRequest = 80 };
editor = new TextEditor() { Name = "output", Events = Gdk.EventMask.AllEventsMask };
vpaned = new Gtk.VPaned();
var scr1 = new Gtk.ScrolledWindow();
var scr2 = new Gtk.ScrolledWindow();
// Init layout
scr1.ShadowType = Gtk.ShadowType.In;
scr1.Child = inputEditor;
vpaned.Add1(scr1);
scr1.ShowAll();
inputEditor.ShowAll();
scr2.ShadowType = Gtk.ShadowType.In;
scr2.Child = editor;
vpaned.Add2(scr2);
scr2.ShowAll();
editor.ShowAll();
vpaned.ShowAll();
// Init editors
var o = editor.Options;
inputEditor.Options = o;
o.ShowLineNumberMargin = false;
o.ShowFoldMargin = false;
o.ShowIconMargin = false;
editor.Document.ReadOnly = true;
inputEditor.Text = PropertyService.Get(lastInputStringPropId, string.Empty);
editor.Text = string.Empty;
editor.Document.SyntaxMode = new Highlighting.DSyntaxMode();
inputEditor.Document.SyntaxMode = new Highlighting.DSyntaxMode();
editor.Document.MimeType = Formatting.DCodeFormatter.MimeType;
inputEditor.Document.MimeType = Formatting.DCodeFormatter.MimeType;
// Init toolbar
var tb = window.GetToolbar(Gtk.PositionType.Top);
executeButton = new Gtk.Button();
executeButton.Image = new Gtk.Image(Gtk.Stock.Execute, Gtk.IconSize.Menu);
executeButton.TooltipText = "Evaluates the expression typed in the upper input editor.";
executeButton.Clicked += Execute;
tb.Add(executeButton);
abortButton = new Gtk.Button();
abortButton.Sensitive = false;
abortButton.Image = new Gtk.Image(Gtk.Stock.Stop, Gtk.IconSize.Menu);
abortButton.TooltipText = "Stops the evaluation.";
abortButton.Clicked += (object sender, EventArgs e) => AbortExecution();
tb.Add(abortButton);
tb.ShowAll();
}
示例8: CreateToolbar
void CreateToolbar (IPadWindow window)
{
toolbarWidget = new PackageConsoleToolbarWidget ();
toolbarWidget.ClearButtonClicked += ClearButtonClicked;
DockItemToolbar toolbar = window.GetToolbar (Gtk.PositionType.Top);
toolbar.Add (toolbarWidget, false);
toolbar.ShowAll ();
}
示例9: Initialize
protected override void Initialize (IPadWindow container)
{
base.Initialize (container);
toolbarProvider.Attach (container.GetToolbar (DockPositionType.Top));
grid.SetToolbarProvider (toolbarProvider);
this.container = container;
DesignerSupport.Service.SetPad (this);
}
示例10: Initialize
public void Initialize (IPadWindow container)
{
view = new ConsoleView ();
view.ConsoleInput += OnViewConsoleInput;
Pango.FontDescription font = Pango.FontDescription.FromString (DesktopService.DefaultMonospaceFont);
view.SetFont (font);
view.ShadowType = Gtk.ShadowType.None;
view.ShowAll ();
}
示例11: Initialize
public void Initialize(IPadWindow window)
{
scw = new ScrolledWindow ();
bugList = new TreeView ();
bugStore = new TreeStore (typeof (BugInfo), typeof(string));
bugList.Model = bugStore;
Fill ();
}
示例12: Initialize
protected override void Initialize (IPadWindow window)
{
base.Initialize (window);
IdeApp.Workbench.ActiveDocumentChanged += DocumentChangedHandler;
CurrentDoc = IdeApp.Workbench.ActiveDocument;
toolbar = window.GetToolbar (DockPositionType.Top);
toolbar.Visible = false;
Update ();
}
示例13: Initialize
public virtual void Initialize (IPadWindow container)
{
if (title != null)
container.Title = title;
if (icon != IconId.Null)
container.Icon = icon;
window = container;
}
示例14: ClassBrowserPadWidget
public ClassBrowserPadWidget (ExtensibleTreeView treeView, IPadWindow window)
{
this.treeView = treeView;
PackStart (treeView, true, true, 0);
IdeApp.Workspace.WorkspaceItemOpened += OnOpenCombine;
IdeApp.Workspace.WorkspaceItemClosed += OnCloseCombine;
this.ShowAll ();
}
示例15: Initialize
public void Initialize (IPadWindow container)
{
view = new ConsoleView ();
view.ConsoleInput += OnViewConsoleInput;
view.SetFont (IdeApp.Preferences.CustomOutputPadFont);
view.ShadowType = Gtk.ShadowType.None;
view.ShowAll ();
IdeApp.Preferences.CustomOutputPadFontChanged += HandleCustomOutputPadFontChanged;
}