C# Class SphereStudio.MainWindow

Exibir arquivo Open project: Radnen/spherestudio Class Usage Examples

Private Properties

Property Type Description
AddDocument DocumentTab
ApplyRefresh void
CloseAllDocuments bool
CloseCurrentProject bool
CreateRootMenuItem void
GetDocument DocumentTab
GetFilesToOpen string[]
GetMenuItem ToolStripMenuItem
IDEForm_FormClosing void
IDEForm_Load void
IDEForm_Shown void
InitializeComponent void
InitializeDocking void
MainDock_ActiveDocumentChanged void
OpenProjectProps void
RefreshProject void
SaveAllDocuments void
SelectDockPane void
SetDefaultActive void
StartDebugger Task
UpdateControls void
UpdateEngineList void
UpdateMenuItems void
debugBreakNow_Click void
debugger_Detached void
debugger_Paused void
debugger_Resumed void
menuAbout_Click void
menuBuildPackage_Click void
menuClosePane_Click void
menuCloseProject_Click void
menuConfigEngine_Click void
menuConfigManager_Click void
menuCopy_Click void
menuCut_Click void
menuDebug_Click void
menuDocumentItem_Click void
menuEdit_DropDownOpening void
menuEditorSettings_Click void
menuExit_Click void
menuFile_DropDownOpening void
menuGameSettings_Click void
menuNewProject_Click void
menuNew_DropDownClosed void
menuNew_DropDownOpening void
menuOpenGameDir_Click void
menuOpenLastProject_Click void
menuOpenProject_Click void
menuOpen_Click void
menuPaste_Click void
menuRedo_Click void
menuRefreshProject_Click void
menuSaveAll_Click void
menuSaveAs_Click void
menuSave_Click void
menuSelectAll_Click void
menuStartPage_Click void
menuStepInto_Click void
menuStepOut_Click void
menuStepOver_Click void
menuStopDebug_Click void
menuTestGame_Click void
menuUndo_Click void
menuView_DropDownClosed void
menuView_DropDownOpening void
menuZoomIn_Click void
menuZoomOut_Click void
menu_DropDownClosed void
menu_DropDownOpening void
toolEngineCombo_SelectedIndexChanged void

Public Methods

Method Description
AddMenuItem ( ToolStripMenuItem item, string before = "" ) : void

Adds a new top-level menu to the IDE menu bar.

AddMenuItem ( string location, ToolStripItem newItem ) : void

Adds a subitem to an existing menu.

MainWindow ( ) : System
OpenEditorSettings ( ) : void
OpenFile ( string filePath ) : DocumentView
OpenFile ( string filePath, bool restoreView ) : DocumentView
OpenProject ( string fileName, bool usePluginWarning = true ) : void

Loads a Sphere Studio project into the IDE.

Refresh ( ) : void
RemoveMenuItem ( ToolStripItem item ) : void
RemoveMenuItem ( string name ) : void
UpdateStyle ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddDocument ( DocumentView view, string filepath = null, bool restoreView = false ) : DocumentTab
ApplyRefresh ( bool ignore_presets = false ) : void

Refreshes the GUI.

CloseAllDocuments ( bool forceClose = false ) : bool

Closes all opened documents; optionally saving them as well.

CloseCurrentProject ( bool forceClose = false ) : bool

Closes the current project and all open documents.

CreateRootMenuItem ( ToolStripMenuItem item ) : void
GetDocument ( string filepath ) : DocumentTab

Searches open document tabs for one with a specified filename.

GetFilesToOpen ( bool multiselect ) : string[]
GetMenuItem ( ToolStripItemCollection collection, string name ) : ToolStripMenuItem
IDEForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
IDEForm_Load ( object sender, EventArgs e ) : void
IDEForm_Shown ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InitializeDocking ( ) : void
MainDock_ActiveDocumentChanged ( object sender, EventArgs e ) : void
OpenProjectProps ( bool editBuild = false ) : void
RefreshProject ( ) : void
SaveAllDocuments ( ) : void
SelectDockPane ( string name ) : void

Selects a dock pane by tab name, this is not ideal for documents but useful for persistent panes like the project tree and plugins.

SetDefaultActive ( string name ) : void

Sets the default active document when the editor first starts up. Used internally when dragging a file onto the executable.

StartDebugger ( ) : Task
UpdateControls ( ) : void
UpdateEngineList ( ) : void
UpdateMenuItems ( ) : void
debugBreakNow_Click ( object sender, EventArgs e ) : void
debugger_Detached ( object sender, EventArgs e ) : void
debugger_Paused ( object sender, PausedEventArgs e ) : void
debugger_Resumed ( object sender, EventArgs e ) : void
menuAbout_Click ( object sender, EventArgs e ) : void
menuBuildPackage_Click ( object sender, EventArgs e ) : void
menuClosePane_Click ( object sender, EventArgs e ) : void
menuCloseProject_Click ( object sender, EventArgs e ) : void
menuConfigEngine_Click ( object sender, EventArgs e ) : void
menuConfigManager_Click ( object sender, EventArgs e ) : void
menuCopy_Click ( object sender, EventArgs e ) : void
menuCut_Click ( object sender, EventArgs e ) : void
menuDebug_Click ( object sender, EventArgs e ) : void
menuDocumentItem_Click ( object sender, EventArgs e ) : void
menuEdit_DropDownOpening ( object sender, EventArgs e ) : void
menuEditorSettings_Click ( object sender, EventArgs e ) : void
menuExit_Click ( object sender, EventArgs e ) : void
menuFile_DropDownOpening ( object sender, EventArgs e ) : void
menuGameSettings_Click ( object sender, EventArgs e ) : void
menuNewProject_Click ( object sender, EventArgs e ) : void
menuNew_DropDownClosed ( object sender, EventArgs e ) : void
menuNew_DropDownOpening ( object sender, EventArgs e ) : void
menuOpenGameDir_Click ( object sender, EventArgs e ) : void
menuOpenLastProject_Click ( object sender, EventArgs e ) : void
menuOpenProject_Click ( object sender, EventArgs e ) : void
menuOpen_Click ( object sender, EventArgs e ) : void
menuPaste_Click ( object sender, EventArgs e ) : void
menuRedo_Click ( object sender, EventArgs e ) : void
menuRefreshProject_Click ( object sender, EventArgs e ) : void
menuSaveAll_Click ( object sender, EventArgs e ) : void
menuSaveAs_Click ( object sender, EventArgs e ) : void
menuSave_Click ( object sender, EventArgs e ) : void
menuSelectAll_Click ( object sender, EventArgs e ) : void
menuStartPage_Click ( object sender, EventArgs e ) : void
menuStepInto_Click ( object sender, EventArgs e ) : void
menuStepOut_Click ( object sender, EventArgs e ) : void
menuStepOver_Click ( object sender, EventArgs e ) : void
menuStopDebug_Click ( object sender, EventArgs e ) : void
menuTestGame_Click ( object sender, EventArgs e ) : void
menuUndo_Click ( object sender, EventArgs e ) : void
menuView_DropDownClosed ( object sender, EventArgs e ) : void
menuView_DropDownOpening ( object sender, EventArgs e ) : void
menuZoomIn_Click ( object sender, EventArgs e ) : void
menuZoomOut_Click ( object sender, EventArgs e ) : void
menu_DropDownClosed ( object sender, EventArgs e ) : void
menu_DropDownOpening ( object sender, EventArgs e ) : void
toolEngineCombo_SelectedIndexChanged ( object sender, EventArgs e ) : void

Method Details

AddMenuItem() public method

Adds a new top-level menu to the IDE menu bar.
public AddMenuItem ( ToolStripMenuItem item, string before = "" ) : void
item ToolStripMenuItem The menu item to add.
before string The name of the menu before which this one will be inserted.
return void

AddMenuItem() public method

Adds a subitem to an existing menu.
public AddMenuItem ( string location, ToolStripItem newItem ) : void
location string The menu to add the item to. Use dots to drill down, e.g. "File.New"
newItem ToolStripItem The ToolStripItem of the menu item to add.
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

MainWindow() public method

public MainWindow ( ) : System
return System

OpenEditorSettings() public method

public OpenEditorSettings ( ) : void
return void

OpenFile() public method

public OpenFile ( string filePath ) : DocumentView
filePath string
return DocumentView

OpenFile() public method

public OpenFile ( string filePath, bool restoreView ) : DocumentView
filePath string
restoreView bool
return DocumentView

OpenProject() public method

Loads a Sphere Studio project into the IDE.
public OpenProject ( string fileName, bool usePluginWarning = true ) : void
fileName string The filename of the project.
usePluginWarning bool Whether to show a warning if required plugins are missing.
return void

Refresh() public method

public Refresh ( ) : void
return void

RemoveMenuItem() public method

public RemoveMenuItem ( ToolStripItem item ) : void
item ToolStripItem
return void

RemoveMenuItem() public method

public RemoveMenuItem ( string name ) : void
name string
return void

UpdateStyle() public method

public UpdateStyle ( ) : void
return void