C# Класс AGS.Editor.GUIController

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

Private Properties

Свойство Тип Описание
AutoComplete_BackgroundCacheUpdateStatusChanged void
AutoNumberSpeechLinesProcess object
CheckInOrAddFiles void
ConstructRoomTemplateFileList string[]
CreateNewGame bool
CreateVoiceActingScriptProcess object
EnsureLastImportDirectoryIsSet void
GUIController System
GetMenuCommandID string
IGUIController Sprite
ProcessCommandLineArgumentsAndReturnWhetherToShowWelcomeScreen bool
PropertyTabInteractions_UpdateEventName string
RegisterContextMenuCommands void
RegisterMenuCommand string
SaveEditorWindowSizeToRegistry void
ScriptFunctionUIEditor_CreateScriptFunction void
ScriptFunctionUIEditor_OpenScriptEditor void
SetEditorWindowSizeFromRegistry void
ShowCustomResolutionChooserFromPropertyGrid System.Drawing.Size
ShowNewGameWizard bool
ShowPropertiesEditorFromPropertyGrid void
ShowRoomMessageEditorFromPropertyGrid void
ShowSpriteChooserFromPropertyGrid int
ShowViewChooserFromPropertyGrid int
SystemEvents_DisplaySettingsChanging void
WriteLineIfItHasVoiceFile void
WriteLinesForCharacter void
_mainForm_OnActiveDocumentChanged void
_mainForm_OnEditorShutdown bool
_mainForm_OnMainWindowActivated void
timer_Tick void

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

Метод Описание
AddMenu ( IEditorComponent plugin, string id, string title ) : void
AddMenu ( IEditorComponent plugin, string id, string title, string insertAfterMenu ) : void
AddMenuItems ( IEditorComponent plugin, MenuCommands commands ) : void
AddOrShowPane ( AGS.Types.ContentDocument pane ) : void
AdjustSizeFrom96DpiToSystemDpi ( int sizeAt96Dpi ) : int
CanFindComponentFromMenuItemID ( string menuItemID ) : bool
ClearOutputPanel ( ) : void
CreateMenuCommand ( IEditorComponent component, string commandID, string commandName ) : AGS.Types.MenuCommand
CreateScriptEditor ( Point position, Size size ) : IScriptEditorControl
CustomPropertiesEditor ( AGS.Types.CustomProperties properties, CustomPropertyAppliesTo showPropertiesOfType ) : void
DocumentTitlesChanged ( ) : void
ExitApplication ( ) : void
GameNameUpdated ( ) : void
GetPropertyGridObject ( ) : object
GetScriptEditorControl ( string scriptFileName, bool showEditor ) : IScriptEditorControl
GetSystemDPI ( ) : int
HideCallStack ( ) : void
HideFindSymbolResults ( ) : void
HideOutputPanel ( ) : void
IGUIController ( Graphics g, int spriteNumber, int x, int y, int width, int height, bool centreHorizontally ) : void
IGUIController ( string text ) : void
IGUIController ( string fileName, int lineNumber ) : void
Initialize ( AGSEditor agsEditor ) : void
Invoke ( Delegate method ) : void
LaunchHelpForKeyword ( string keyword ) : void
MoveMouseCursorToPropertyGrid ( ) : void
QueryWhetherToSaveGameBeforeContinuing ( string message ) : bool
RePopulateTreeView ( IEditorComponent component ) : void
RePopulateTreeView ( IEditorComponent component, string selectedNode ) : void
RefreshPropertyGrid ( ) : void
RegisterIcon ( string key, Icon icon ) : void
RemoveMenuItems ( MenuCommands commands ) : void
RemovePaneIfExists ( AGS.Types.ContentDocument pane ) : void
SelectEventsTabInPropertyGrid ( ) : bool
SelectPropertyByName ( string propertyName ) : void
SetMenuItemEnabled ( IEditorComponent plugin, string id, bool enabled ) : void
SetPropertyGridObject ( object objectToSetPropertiesOn ) : void
SetPropertyGridObjectList ( object>.Dictionary propertyObjects ) : void
SetPropertyGridObjects ( object objectsToSetPropertiesOn ) : void
SetTitleBarPrefix ( string prefix ) : void
ShowAutoNumberSpeechWizard ( ) : void
ShowCallStack ( AGS.Editor.DebugCallStack callStack ) : void
ShowCheckOutDialog ( List fileNames ) : bool
ShowCheckOutDialog ( string fileName ) : bool
ShowCreateRoomTemplateWizard ( AGS.Types.UnloadedRoom room ) : void
ShowCreateTemplateWizard ( ) : void
ShowCreateVoiceActingScriptWizard ( ) : void
ShowCuppit ( string helpText, string helpTextID ) : void
ShowCuppit ( string helpText, string helpTextID, bool modal ) : void
ShowFindSymbolResults ( List results ) : void
ShowMessage ( string message, MessageBoxIcon icon ) : void
ShowMessage ( string message, MessageBoxIconType icon ) : void
ShowOpenFileDialog ( string title, string fileFilter ) : string
ShowOpenFileDialog ( string title, string fileFilter, bool useFileImportPath ) : string
ShowOpenFileDialogMultipleFiles ( string title, string fileFilter ) : string[]
ShowOutputPanel ( CompileMessages errors ) : void
ShowPendingCheckinsDialog ( ) : void
ShowPreferencesEditor ( ) : void
ShowQuestion ( string message ) : DialogResult
ShowQuestion ( string message, MessageBoxIcon icon ) : DialogResult
ShowSaveFileDialog ( string title, string fileFilter ) : string
ShowSelectFolderOrDefaultDialog ( string title, string defaultPath ) : string
ShowSelectFolderOrDefaultDialog ( string title, string defaultPath, bool allowNewFolder ) : string
ShowSelectFolderOrNoneDialog ( string title, string initialPath ) : string
ShowSelectFolderOrNoneDialog ( string title, string initialPath, bool allowNewFolder ) : string
ShowWelcomeScreen ( ) : bool
StartGUI ( string commandLineArguments ) : void
UpdateStatusBarText ( string text ) : void
VerifyTemplatesDirectoryExists ( ) : bool
ZoomToFile ( string fileName ) : void
ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomToPosition ) : void
ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomPosition, bool isDebugExecutionPoint ) : void
ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomPosition, bool isDebugExecutionPoint, bool selectWholeLine, string errorMessage, bool activateEditor ) : void
ZoomToFile ( string fileName, int lineNumber ) : void
ZoomToFile ( string fileName, int lineNumber, bool isDebugExecutionPoint, string errorMessage ) : void
ZoomToFile ( string fileName, string function ) : void
_mainForm_OnMenuClick ( string menuItemID ) : void
_mainForm_OnPropertyChanged ( string propertyName, object oldValue ) : void
_mainForm_OnPropertyObjectChanged ( object newPropertyObject ) : void

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

Метод Описание
AutoComplete_BackgroundCacheUpdateStatusChanged ( BackgroundAutoCompleteStatus status, Exception errorDetails ) : void
AutoNumberSpeechLinesProcess ( object parameter ) : object
CheckInOrAddFiles ( string selectedFiles, string checkinComments ) : void
ConstructRoomTemplateFileList ( AGS.Types.UnloadedRoom room ) : string[]
CreateNewGame ( string newGameDirectory, string newGameName, AGS.Types.GameTemplate createFromTemplate ) : bool
CreateVoiceActingScriptProcess ( object parameter ) : object
EnsureLastImportDirectoryIsSet ( bool useFileImportPath ) : void
GUIController ( ) : System
GetMenuCommandID ( string id, IEditorComponent component ) : string
IGUIController ( int initiallySelectedSprite ) : Sprite
ProcessCommandLineArgumentsAndReturnWhetherToShowWelcomeScreen ( ) : bool
PropertyTabInteractions_UpdateEventName ( string eventName ) : string
RegisterContextMenuCommands ( IList commands, IEditorComponent plugin ) : void
RegisterMenuCommand ( string id, IEditorComponent component ) : string
SaveEditorWindowSizeToRegistry ( ) : void
ScriptFunctionUIEditor_CreateScriptFunction ( bool isGlobalScript, string functionName, string parameters ) : void
ScriptFunctionUIEditor_OpenScriptEditor ( bool isGlobalScript, string functionName ) : void
SetEditorWindowSizeFromRegistry ( ) : void
ShowCustomResolutionChooserFromPropertyGrid ( Size currentSize ) : Size
ShowNewGameWizard ( ) : bool
ShowPropertiesEditorFromPropertyGrid ( AGS.Types.CustomProperties props, object objectThatHasProperties ) : void
ShowRoomMessageEditorFromPropertyGrid ( List messages ) : void
ShowSpriteChooserFromPropertyGrid ( int currentSprite ) : int
ShowViewChooserFromPropertyGrid ( int currentView ) : int
SystemEvents_DisplaySettingsChanging ( object sender, EventArgs e ) : void
WriteLineIfItHasVoiceFile ( string prefix, string line, StreamWriter sw ) : void
WriteLinesForCharacter ( int charID, StreamWriter sw, string>.Dictionary lines ) : void
_mainForm_OnActiveDocumentChanged ( ) : void
_mainForm_OnEditorShutdown ( ) : bool
_mainForm_OnMainWindowActivated ( object sender, EventArgs e ) : void
timer_Tick ( object sender, EventArgs e ) : void

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

AddMenu() публичный метод

public AddMenu ( IEditorComponent plugin, string id, string title ) : void
plugin IEditorComponent
id string
title string
Результат void

AddMenu() публичный метод

public AddMenu ( IEditorComponent plugin, string id, string title, string insertAfterMenu ) : void
plugin IEditorComponent
id string
title string
insertAfterMenu string
Результат void

AddMenuItems() публичный метод

public AddMenuItems ( IEditorComponent plugin, MenuCommands commands ) : void
plugin IEditorComponent
commands MenuCommands
Результат void

AddOrShowPane() публичный метод

public AddOrShowPane ( AGS.Types.ContentDocument pane ) : void
pane AGS.Types.ContentDocument
Результат void

AdjustSizeFrom96DpiToSystemDpi() публичный метод

public AdjustSizeFrom96DpiToSystemDpi ( int sizeAt96Dpi ) : int
sizeAt96Dpi int
Результат int

CanFindComponentFromMenuItemID() публичный метод

public CanFindComponentFromMenuItemID ( string menuItemID ) : bool
menuItemID string
Результат bool

ClearOutputPanel() публичный метод

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

CreateMenuCommand() публичный метод

public CreateMenuCommand ( IEditorComponent component, string commandID, string commandName ) : AGS.Types.MenuCommand
component IEditorComponent
commandID string
commandName string
Результат AGS.Types.MenuCommand

CreateScriptEditor() публичный метод

public CreateScriptEditor ( Point position, Size size ) : IScriptEditorControl
position Point
size System.Drawing.Size
Результат IScriptEditorControl

CustomPropertiesEditor() публичный метод

public CustomPropertiesEditor ( AGS.Types.CustomProperties properties, CustomPropertyAppliesTo showPropertiesOfType ) : void
properties AGS.Types.CustomProperties
showPropertiesOfType CustomPropertyAppliesTo
Результат void

DocumentTitlesChanged() публичный метод

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

ExitApplication() публичный метод

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

GameNameUpdated() публичный метод

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

GetPropertyGridObject() публичный метод

public GetPropertyGridObject ( ) : object
Результат object

GetScriptEditorControl() публичный метод

public GetScriptEditorControl ( string scriptFileName, bool showEditor ) : IScriptEditorControl
scriptFileName string
showEditor bool
Результат IScriptEditorControl

GetSystemDPI() публичный метод

public GetSystemDPI ( ) : int
Результат int

HideCallStack() публичный метод

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

HideFindSymbolResults() публичный метод

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

HideOutputPanel() публичный метод

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

IGUIController() публичный метод

public IGUIController ( Graphics g, int spriteNumber, int x, int y, int width, int height, bool centreHorizontally ) : void
g System.Drawing.Graphics
spriteNumber int
x int
y int
width int
height int
centreHorizontally bool
Результат void

IGUIController() публичный метод

public IGUIController ( string text ) : void
text string
Результат void

IGUIController() публичный метод

public IGUIController ( string fileName, int lineNumber ) : void
fileName string
lineNumber int
Результат void

Initialize() публичный метод

public Initialize ( AGSEditor agsEditor ) : void
agsEditor AGSEditor
Результат void

Invoke() публичный метод

public Invoke ( Delegate method ) : void
method System.Delegate
Результат void

LaunchHelpForKeyword() публичный метод

public LaunchHelpForKeyword ( string keyword ) : void
keyword string
Результат void

MoveMouseCursorToPropertyGrid() публичный метод

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

QueryWhetherToSaveGameBeforeContinuing() публичный метод

public QueryWhetherToSaveGameBeforeContinuing ( string message ) : bool
message string
Результат bool

RePopulateTreeView() публичный метод

public RePopulateTreeView ( IEditorComponent component ) : void
component IEditorComponent
Результат void

RePopulateTreeView() публичный метод

public RePopulateTreeView ( IEditorComponent component, string selectedNode ) : void
component IEditorComponent
selectedNode string
Результат void

RefreshPropertyGrid() публичный метод

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

RegisterIcon() публичный метод

public RegisterIcon ( string key, Icon icon ) : void
key string
icon System.Drawing.Icon
Результат void

RemoveMenuItems() публичный метод

public RemoveMenuItems ( MenuCommands commands ) : void
commands MenuCommands
Результат void

RemovePaneIfExists() публичный метод

public RemovePaneIfExists ( AGS.Types.ContentDocument pane ) : void
pane AGS.Types.ContentDocument
Результат void

SelectEventsTabInPropertyGrid() публичный метод

public SelectEventsTabInPropertyGrid ( ) : bool
Результат bool

SelectPropertyByName() публичный метод

public SelectPropertyByName ( string propertyName ) : void
propertyName string
Результат void

SetMenuItemEnabled() публичный метод

public SetMenuItemEnabled ( IEditorComponent plugin, string id, bool enabled ) : void
plugin IEditorComponent
id string
enabled bool
Результат void

SetPropertyGridObject() публичный метод

public SetPropertyGridObject ( object objectToSetPropertiesOn ) : void
objectToSetPropertiesOn object
Результат void

SetPropertyGridObjectList() публичный метод

public SetPropertyGridObjectList ( object>.Dictionary propertyObjects ) : void
propertyObjects object>.Dictionary
Результат void

SetPropertyGridObjects() публичный метод

public SetPropertyGridObjects ( object objectsToSetPropertiesOn ) : void
objectsToSetPropertiesOn object
Результат void

SetTitleBarPrefix() публичный метод

public SetTitleBarPrefix ( string prefix ) : void
prefix string
Результат void

ShowAutoNumberSpeechWizard() публичный метод

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

ShowCallStack() публичный метод

public ShowCallStack ( AGS.Editor.DebugCallStack callStack ) : void
callStack AGS.Editor.DebugCallStack
Результат void

ShowCheckOutDialog() публичный метод

public ShowCheckOutDialog ( List fileNames ) : bool
fileNames List
Результат bool

ShowCheckOutDialog() публичный метод

public ShowCheckOutDialog ( string fileName ) : bool
fileName string
Результат bool

ShowCreateRoomTemplateWizard() публичный метод

public ShowCreateRoomTemplateWizard ( AGS.Types.UnloadedRoom room ) : void
room AGS.Types.UnloadedRoom
Результат void

ShowCreateTemplateWizard() публичный метод

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

ShowCreateVoiceActingScriptWizard() публичный метод

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

ShowCuppit() публичный метод

public ShowCuppit ( string helpText, string helpTextID ) : void
helpText string
helpTextID string
Результат void

ShowCuppit() публичный метод

public ShowCuppit ( string helpText, string helpTextID, bool modal ) : void
helpText string
helpTextID string
modal bool
Результат void

ShowFindSymbolResults() публичный метод

public ShowFindSymbolResults ( List results ) : void
results List
Результат void

ShowMessage() публичный метод

public ShowMessage ( string message, MessageBoxIcon icon ) : void
message string
icon MessageBoxIcon
Результат void

ShowMessage() публичный метод

public ShowMessage ( string message, MessageBoxIconType icon ) : void
message string
icon MessageBoxIconType
Результат void

ShowOpenFileDialog() публичный метод

public ShowOpenFileDialog ( string title, string fileFilter ) : string
title string
fileFilter string
Результат string

ShowOpenFileDialog() публичный метод

public ShowOpenFileDialog ( string title, string fileFilter, bool useFileImportPath ) : string
title string
fileFilter string
useFileImportPath bool
Результат string

ShowOpenFileDialogMultipleFiles() публичный метод

public ShowOpenFileDialogMultipleFiles ( string title, string fileFilter ) : string[]
title string
fileFilter string
Результат string[]

ShowOutputPanel() публичный метод

public ShowOutputPanel ( CompileMessages errors ) : void
errors CompileMessages
Результат void

ShowPendingCheckinsDialog() публичный метод

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

ShowPreferencesEditor() публичный метод

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

ShowQuestion() публичный метод

public ShowQuestion ( string message ) : DialogResult
message string
Результат DialogResult

ShowQuestion() публичный метод

public ShowQuestion ( string message, MessageBoxIcon icon ) : DialogResult
message string
icon MessageBoxIcon
Результат DialogResult

ShowSaveFileDialog() публичный метод

public ShowSaveFileDialog ( string title, string fileFilter ) : string
title string
fileFilter string
Результат string

ShowSelectFolderOrDefaultDialog() публичный метод

public ShowSelectFolderOrDefaultDialog ( string title, string defaultPath ) : string
title string
defaultPath string
Результат string

ShowSelectFolderOrDefaultDialog() публичный метод

public ShowSelectFolderOrDefaultDialog ( string title, string defaultPath, bool allowNewFolder ) : string
title string
defaultPath string
allowNewFolder bool
Результат string

ShowSelectFolderOrNoneDialog() публичный метод

public ShowSelectFolderOrNoneDialog ( string title, string initialPath ) : string
title string
initialPath string
Результат string

ShowSelectFolderOrNoneDialog() публичный метод

public ShowSelectFolderOrNoneDialog ( string title, string initialPath, bool allowNewFolder ) : string
title string
initialPath string
allowNewFolder bool
Результат string

ShowWelcomeScreen() публичный метод

public ShowWelcomeScreen ( ) : bool
Результат bool

StartGUI() публичный метод

public StartGUI ( string commandLineArguments ) : void
commandLineArguments string
Результат void

UpdateStatusBarText() публичный метод

public UpdateStatusBarText ( string text ) : void
text string
Результат void

VerifyTemplatesDirectoryExists() публичный метод

public VerifyTemplatesDirectoryExists ( ) : bool
Результат bool

ZoomToFile() публичный метод

public ZoomToFile ( string fileName ) : void
fileName string
Результат void

ZoomToFile() публичный метод

public ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomToPosition ) : void
fileName string
zoomType ZoomToFileZoomType
zoomToPosition int
Результат void

ZoomToFile() публичный метод

public ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomPosition, bool isDebugExecutionPoint ) : void
fileName string
zoomType ZoomToFileZoomType
zoomPosition int
isDebugExecutionPoint bool
Результат void

ZoomToFile() публичный метод

public ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomPosition, bool isDebugExecutionPoint, bool selectWholeLine, string errorMessage, bool activateEditor ) : void
fileName string
zoomType ZoomToFileZoomType
zoomPosition int
isDebugExecutionPoint bool
selectWholeLine bool
errorMessage string
activateEditor bool
Результат void

ZoomToFile() публичный метод

public ZoomToFile ( string fileName, int lineNumber ) : void
fileName string
lineNumber int
Результат void

ZoomToFile() публичный метод

public ZoomToFile ( string fileName, int lineNumber, bool isDebugExecutionPoint, string errorMessage ) : void
fileName string
lineNumber int
isDebugExecutionPoint bool
errorMessage string
Результат void

ZoomToFile() публичный метод

public ZoomToFile ( string fileName, string function ) : void
fileName string
function string
Результат void

_mainForm_OnMenuClick() публичный метод

public _mainForm_OnMenuClick ( string menuItemID ) : void
menuItemID string
Результат void

_mainForm_OnPropertyChanged() публичный метод

public _mainForm_OnPropertyChanged ( string propertyName, object oldValue ) : void
propertyName string
oldValue object
Результат void

_mainForm_OnPropertyObjectChanged() публичный метод

public _mainForm_OnPropertyObjectChanged ( object newPropertyObject ) : void
newPropertyObject object
Результат void