C# Класс GoodAI.BrainSimulator.Forms.MainForm

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_views List
showHideObserversMenuItem ToolStripMenuItem

Private Properties

Свойство Тип Описание
AddTimerMenuItem void
ApplyProjectOptions void
CloseAllGraphLayouts void
CloseAllObservers void
CloseAllTextEditors void
CloseCurrentProjectWindows void
CloseGraphLayout void
CloseTextEditor void
CopyDirectory void
CreateNetworkView void
CreateNewProject void
DebugUndoManager void
GetCurrentFileName string
GetIntUnchecked int
GetSerializedProject string
GraphLayoutForm_FormClosed void
High16 int
ImportProject void
IsProjectSaved bool
LoadSerializedContent void
LoadState void
Low16 int
MainForm_FormClosed void
MainForm_FormClosing void
MainForm_Load void
OpenFloatingOrActivate void
OpenProject void
OpenProjectAndAddToRecentMenu void
PauseSimulationForAction void
PerformMenuClick bool
RecentFiles_Click void
Redo void
RefreshPropertyViews void
RefreshUndoRedoButtons void
ReloadGraphLayout void
ResetViewsLayout void
RestoreDashboardForm void
RestoreObserverForms void
SaveCurrentState void
SaveProject void
SaveProjectAs void
SaveProjectOrSaveAs void
SaveState void
SetupDebugViews void
ShowHideAllObservers void
SimulationHandler_ProgressChanged void
SimulationHandler_SimulationStopped void
SimulationHandler_StateChanged void
StartSimulation void
StartSimulationStep void
StoreViewsLayout void
TryOpenStartupProject bool
TryRestoreViewsLayout bool
Undo void
UpgradeUserSettings void
aboutToolStripMenuItem_Click void
autosaveButton_CheckedChanged void
autosaveTextBox_Validating void
clearDataButton_Click void
clearGlobalDataFolderToolStripMenuItem_Click void
copySelectionToolStripMenuItem_Click void
exportStateButton_Click void
guideToolStripMenuItem_Click void
importProjectToolStripMenuItem_Click void
loadOnStartMenuItem_Click void
loadUserNodesToolStripMenuItem_Click void
newProjectToolStripMenuItem_Click void
nodeSettingsMenuItem_Click void
observerTimerItem_Click void
openProjectToolStripMenuItem_Click void
pasteSelectionToolStripMenuItem_Click void
profileToolButton_CheckedChanged void
quitToolStripMenuItem_Click void
redoButton_MouseUp void
redoToolStripMenuItem_Click void
reloadButton_Click void
resetViewsMenuItem_Click void
saveOnStopMenuItem_CheckChanged void
saveProjectAsToolStripMenuItem_Click void
saveProjectToolStripMenuItem_Click void
setGlobalDataFolderToolStripMenuItem_Click void
showHideObserversMenuItem_Click void
stepIntoToolStripMenuItem_Click void
stepOutToolStripMenuItem_Click void
textEditor_FormClosed void
timerItem_Click void
undoButton_MouseUp void
undoToolStripMenuItem_Click void
updateMemoryBlocksToolStripMenuItem_Click void
viewToolStripMenuItem_Click void
worldList_SelectedIndexChanged void

Открытые методы

Метод Описание
CheckDashboardContains ( object target, string propertyName ) : bool
CloseObservers ( MyNode node ) : void
CopySelectedNodesToClipboard ( ) : void
CreateAndShowObserverView ( MyAbstractMemoryBlock memoryBlock, MyNode declaredOwner, Type mbObserverType ) : void
CreateAndShowObserverView ( MyWorkingNode node, Type observerType ) : void
DashboardPropertyToggle ( object target, string propertyName, bool active ) : void
InvalidateGraphLayouts ( ) : void
MainForm ( ) : GoodAI.BrainSimulator.NodeView
OpenGraphLayout ( MyNodeGroup target ) : GoodAI.BrainSimulator.Forms.GraphLayoutForm
OpenNodeHelpView ( ) : void
OpenTextEditor ( IScriptableNode target ) : GoodAI.BrainSimulator.Forms.TextEditForm
PasteNodesFromClipboard ( ) : void
PerformMainMenuClick ( Keys shortCut ) : bool
PopulateWorldList ( ) : void
ProjectStateChanged ( string action ) : void
RefreshConnections ( GoodAI.BrainSimulator.Forms.GraphLayoutForm form ) : void
RemoveFromDashboard ( MyNode node ) : void
RemoveObserverView ( ObserverForm view ) : void
ResetObservers ( ) : void
SelectWorldInWorldList ( Type worldType ) : void
ShowObserverView ( MyAbstractObserver observer ) : void
UpdateObserverView ( MyAbstractObserver observer ) : void
UpdateObservers ( ) : void
debugToolButton_Click ( object sender, EventArgs e ) : void
pauseToolButton_Click ( object sender, EventArgs e ) : void
runToolButton_Click ( object sender, EventArgs e ) : void
stepOverToolButton_Click ( object sender, EventArgs e ) : void
stopToolButton_Click ( object sender, EventArgs e ) : void

Защищенные методы

Метод Описание
OnActivated ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Form.Activated event. Handle WinForms bug for first click during activation

WndProc ( Message &m ) : void

If the form is being focused (activated), set the handleFirstClickOnActivated flag indicating that so that it can be later used in OnActivated.

Приватные методы

Метод Описание
AddTimerMenuItem ( ToolStripSplitButton splitButton, EventHandler clickHandler, int ms ) : void
ApplyProjectOptions ( ) : void
CloseAllGraphLayouts ( ) : void
CloseAllObservers ( ) : void
CloseAllTextEditors ( ) : void
CloseCurrentProjectWindows ( ) : void
CloseGraphLayout ( MyNodeGroup target ) : void
CloseTextEditor ( IScriptableNode target ) : void
CopyDirectory ( string sourcePath, string destinationPath ) : void
CreateNetworkView ( ) : void
CreateNewProject ( ) : void
DebugUndoManager ( ) : void
GetCurrentFileName ( ) : string
GetIntUnchecked ( IntPtr value ) : int
GetSerializedProject ( ) : string
GraphLayoutForm_FormClosed ( object sender, FormClosedEventArgs e ) : void
High16 ( IntPtr value ) : int
ImportProject ( string fileName, bool showObservers = false ) : void
IsProjectSaved ( ) : bool
LoadSerializedContent ( string content, string projectPath, string currentProjectPath ) : void
LoadState ( ProjectState targetState ) : void
Low16 ( IntPtr value ) : int
MainForm_FormClosed ( object sender, FormClosedEventArgs e ) : void
MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
MainForm_Load ( object sender, EventArgs e ) : void
OpenFloatingOrActivate ( DockContent view ) : void
OpenProject ( string fileName ) : void
OpenProjectAndAddToRecentMenu ( string fileName ) : void
PauseSimulationForAction ( Func actionToExecute ) : void

This method is mainly for extensive UI action (e.g. modal dialogs) to be executed during simulation

PerformMenuClick ( ToolStripItem menuItem, Keys shortCut ) : bool
RecentFiles_Click ( int number, string fileName ) : void
Redo ( ) : void
RefreshPropertyViews ( object s, PropertyValueChangedEventArgs e ) : void
RefreshUndoRedoButtons ( ) : void
ReloadGraphLayout ( MyNodeGroup target ) : void
ResetViewsLayout ( ) : void
RestoreDashboardForm ( ) : void
RestoreObserverForms ( MyProject project = null ) : void
SaveCurrentState ( string action ) : void
SaveProject ( ) : void
SaveProjectAs ( ) : void
SaveProjectOrSaveAs ( ) : void
SaveState ( string content, string filePath, string action ) : void
SetupDebugViews ( ) : void
ShowHideAllObservers ( bool forceShow = false ) : void
SimulationHandler_ProgressChanged ( object sender, System e ) : void
SimulationHandler_SimulationStopped ( object sender, MySimulationHandler args ) : void
SimulationHandler_StateChanged ( object sender, MySimulationHandler e ) : void
StartSimulation ( uint stepCount ) : void

Starts simulation.

StartSimulationStep ( ) : void

Shorthand for StartSimulation(stepCount: 1)

StoreViewsLayout ( string layoutFileName ) : void
TryOpenStartupProject ( ) : bool
TryRestoreViewsLayout ( string layoutFileName ) : bool
Undo ( ) : void
UpgradeUserSettings ( ) : void
aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void
autosaveButton_CheckedChanged ( object sender, EventArgs e ) : void
autosaveTextBox_Validating ( object sender, CancelEventArgs e ) : void
clearDataButton_Click ( object sender, EventArgs e ) : void
clearGlobalDataFolderToolStripMenuItem_Click ( object sender, EventArgs e ) : void
copySelectionToolStripMenuItem_Click ( object sender, EventArgs e ) : void
exportStateButton_Click ( object sender, EventArgs e ) : void
guideToolStripMenuItem_Click ( object sender, EventArgs e ) : void
importProjectToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadOnStartMenuItem_Click ( object sender, EventArgs e ) : void
loadUserNodesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
newProjectToolStripMenuItem_Click ( object sender, EventArgs e ) : void
nodeSettingsMenuItem_Click ( object sender, EventArgs e ) : void
observerTimerItem_Click ( object sender, EventArgs e ) : void
openProjectToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pasteSelectionToolStripMenuItem_Click ( object sender, EventArgs e ) : void
profileToolButton_CheckedChanged ( object sender, EventArgs e ) : void
quitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
redoButton_MouseUp ( object sender, MouseEventArgs e ) : void
redoToolStripMenuItem_Click ( object sender, EventArgs e ) : void
reloadButton_Click ( object sender, EventArgs e ) : void
resetViewsMenuItem_Click ( object sender, EventArgs e ) : void
saveOnStopMenuItem_CheckChanged ( object sender, EventArgs e ) : void
saveProjectAsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveProjectToolStripMenuItem_Click ( object sender, EventArgs e ) : void
setGlobalDataFolderToolStripMenuItem_Click ( object sender, EventArgs e ) : void
showHideObserversMenuItem_Click ( object sender, EventArgs e ) : void
stepIntoToolStripMenuItem_Click ( object sender, EventArgs e ) : void
stepOutToolStripMenuItem_Click ( object sender, EventArgs e ) : void
textEditor_FormClosed ( object sender, FormClosedEventArgs e ) : void
timerItem_Click ( object sender, EventArgs e ) : void
undoButton_MouseUp ( object sender, MouseEventArgs e ) : void
undoToolStripMenuItem_Click ( object sender, EventArgs e ) : void
updateMemoryBlocksToolStripMenuItem_Click ( object sender, EventArgs e ) : void
viewToolStripMenuItem_Click ( object sender, EventArgs e ) : void
worldList_SelectedIndexChanged ( object sender, EventArgs e ) : void

Описание методов

CheckDashboardContains() публичный Метод

public CheckDashboardContains ( object target, string propertyName ) : bool
target object
propertyName string
Результат bool

CloseObservers() публичный Метод

public CloseObservers ( MyNode node ) : void
node MyNode
Результат void

CopySelectedNodesToClipboard() публичный Метод

public CopySelectedNodesToClipboard ( ) : void
Результат void

CreateAndShowObserverView() публичный Метод

public CreateAndShowObserverView ( MyAbstractMemoryBlock memoryBlock, MyNode declaredOwner, Type mbObserverType ) : void
memoryBlock MyAbstractMemoryBlock
declaredOwner MyNode
mbObserverType Type
Результат void

CreateAndShowObserverView() публичный Метод

public CreateAndShowObserverView ( MyWorkingNode node, Type observerType ) : void
node MyWorkingNode
observerType Type
Результат void

DashboardPropertyToggle() публичный Метод

public DashboardPropertyToggle ( object target, string propertyName, bool active ) : void
target object
propertyName string
active bool
Результат void

InvalidateGraphLayouts() публичный Метод

public InvalidateGraphLayouts ( ) : void
Результат void

MainForm() публичный Метод

public MainForm ( ) : GoodAI.BrainSimulator.NodeView
Результат GoodAI.BrainSimulator.NodeView

OnActivated() защищенный Метод

Raises the E:System.Windows.Forms.Form.Activated event. Handle WinForms bug for first click during activation
protected OnActivated ( EventArgs e ) : void
e EventArgs An that contains the event data.
Результат void

OpenGraphLayout() публичный Метод

public OpenGraphLayout ( MyNodeGroup target ) : GoodAI.BrainSimulator.Forms.GraphLayoutForm
target MyNodeGroup
Результат GoodAI.BrainSimulator.Forms.GraphLayoutForm

OpenNodeHelpView() публичный Метод

public OpenNodeHelpView ( ) : void
Результат void

OpenTextEditor() публичный Метод

public OpenTextEditor ( IScriptableNode target ) : GoodAI.BrainSimulator.Forms.TextEditForm
target IScriptableNode
Результат GoodAI.BrainSimulator.Forms.TextEditForm

PasteNodesFromClipboard() публичный Метод

public PasteNodesFromClipboard ( ) : void
Результат void

PerformMainMenuClick() публичный Метод

public PerformMainMenuClick ( Keys shortCut ) : bool
shortCut Keys
Результат bool

PopulateWorldList() публичный Метод

public PopulateWorldList ( ) : void
Результат void

ProjectStateChanged() публичный Метод

public ProjectStateChanged ( string action ) : void
action string
Результат void

RefreshConnections() публичный Метод

public RefreshConnections ( GoodAI.BrainSimulator.Forms.GraphLayoutForm form ) : void
form GoodAI.BrainSimulator.Forms.GraphLayoutForm
Результат void

RemoveFromDashboard() публичный Метод

public RemoveFromDashboard ( MyNode node ) : void
node MyNode
Результат void

RemoveObserverView() публичный Метод

public RemoveObserverView ( ObserverForm view ) : void
view ObserverForm
Результат void

ResetObservers() публичный Метод

public ResetObservers ( ) : void
Результат void

SelectWorldInWorldList() публичный Метод

public SelectWorldInWorldList ( Type worldType ) : void
worldType Type
Результат void

ShowObserverView() публичный Метод

public ShowObserverView ( MyAbstractObserver observer ) : void
observer MyAbstractObserver
Результат void

UpdateObserverView() публичный Метод

public UpdateObserverView ( MyAbstractObserver observer ) : void
observer MyAbstractObserver
Результат void

UpdateObservers() публичный Метод

public UpdateObservers ( ) : void
Результат void

WndProc() защищенный Метод

If the form is being focused (activated), set the handleFirstClickOnActivated flag indicating that so that it can be later used in OnActivated.
protected WndProc ( Message &m ) : void
m Message
Результат void

debugToolButton_Click() публичный Метод

public debugToolButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

pauseToolButton_Click() публичный Метод

public pauseToolButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

runToolButton_Click() публичный Метод

public runToolButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

stepOverToolButton_Click() публичный Метод

public stepOverToolButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

stopToolButton_Click() публичный Метод

public stopToolButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

Описание свойств

m_views защищенное свойство

protected List m_views
Результат List

showHideObserversMenuItem защищенное свойство

protected ToolStripMenuItem showHideObserversMenuItem
Результат ToolStripMenuItem