C# Class AGS.Editor.GUIController

Inheritance: IGUIController
Afficher le fichier Open project: adventuregamestudio/ags Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddMenu() public méthode

public AddMenu ( IEditorComponent plugin, string id, string title ) : void
plugin IEditorComponent
id string
title string
Résultat void

AddMenu() public méthode

public AddMenu ( IEditorComponent plugin, string id, string title, string insertAfterMenu ) : void
plugin IEditorComponent
id string
title string
insertAfterMenu string
Résultat void

AddMenuItems() public méthode

public AddMenuItems ( IEditorComponent plugin, MenuCommands commands ) : void
plugin IEditorComponent
commands MenuCommands
Résultat void

AddOrShowPane() public méthode

public AddOrShowPane ( AGS.Types.ContentDocument pane ) : void
pane AGS.Types.ContentDocument
Résultat void

AdjustSizeFrom96DpiToSystemDpi() public méthode

public AdjustSizeFrom96DpiToSystemDpi ( int sizeAt96Dpi ) : int
sizeAt96Dpi int
Résultat int

CanFindComponentFromMenuItemID() public méthode

public CanFindComponentFromMenuItemID ( string menuItemID ) : bool
menuItemID string
Résultat bool

ClearOutputPanel() public méthode

public ClearOutputPanel ( ) : void
Résultat void

CreateMenuCommand() public méthode

public CreateMenuCommand ( IEditorComponent component, string commandID, string commandName ) : AGS.Types.MenuCommand
component IEditorComponent
commandID string
commandName string
Résultat AGS.Types.MenuCommand

CreateScriptEditor() public méthode

public CreateScriptEditor ( Point position, Size size ) : IScriptEditorControl
position Point
size System.Drawing.Size
Résultat IScriptEditorControl

CustomPropertiesEditor() public méthode

public CustomPropertiesEditor ( AGS.Types.CustomProperties properties, CustomPropertyAppliesTo showPropertiesOfType ) : void
properties AGS.Types.CustomProperties
showPropertiesOfType CustomPropertyAppliesTo
Résultat void

DocumentTitlesChanged() public méthode

public DocumentTitlesChanged ( ) : void
Résultat void

ExitApplication() public méthode

public ExitApplication ( ) : void
Résultat void

GameNameUpdated() public méthode

public GameNameUpdated ( ) : void
Résultat void

GetPropertyGridObject() public méthode

public GetPropertyGridObject ( ) : object
Résultat object

GetScriptEditorControl() public méthode

public GetScriptEditorControl ( string scriptFileName, bool showEditor ) : IScriptEditorControl
scriptFileName string
showEditor bool
Résultat IScriptEditorControl

GetSystemDPI() public méthode

public GetSystemDPI ( ) : int
Résultat int

HideCallStack() public méthode

public HideCallStack ( ) : void
Résultat void

HideFindSymbolResults() public méthode

public HideFindSymbolResults ( ) : void
Résultat void

HideOutputPanel() public méthode

public HideOutputPanel ( ) : void
Résultat void

IGUIController() public méthode

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
Résultat void

IGUIController() public méthode

public IGUIController ( string text ) : void
text string
Résultat void

IGUIController() public méthode

public IGUIController ( string fileName, int lineNumber ) : void
fileName string
lineNumber int
Résultat void

Initialize() public méthode

public Initialize ( AGSEditor agsEditor ) : void
agsEditor AGSEditor
Résultat void

Invoke() public méthode

public Invoke ( Delegate method ) : void
method System.Delegate
Résultat void

LaunchHelpForKeyword() public méthode

public LaunchHelpForKeyword ( string keyword ) : void
keyword string
Résultat void

MoveMouseCursorToPropertyGrid() public méthode

public MoveMouseCursorToPropertyGrid ( ) : void
Résultat void

QueryWhetherToSaveGameBeforeContinuing() public méthode

public QueryWhetherToSaveGameBeforeContinuing ( string message ) : bool
message string
Résultat bool

RePopulateTreeView() public méthode

public RePopulateTreeView ( IEditorComponent component ) : void
component IEditorComponent
Résultat void

RePopulateTreeView() public méthode

public RePopulateTreeView ( IEditorComponent component, string selectedNode ) : void
component IEditorComponent
selectedNode string
Résultat void

RefreshPropertyGrid() public méthode

public RefreshPropertyGrid ( ) : void
Résultat void

RegisterIcon() public méthode

public RegisterIcon ( string key, Icon icon ) : void
key string
icon System.Drawing.Icon
Résultat void

RemoveMenuItems() public méthode

public RemoveMenuItems ( MenuCommands commands ) : void
commands MenuCommands
Résultat void

RemovePaneIfExists() public méthode

public RemovePaneIfExists ( AGS.Types.ContentDocument pane ) : void
pane AGS.Types.ContentDocument
Résultat void

SelectEventsTabInPropertyGrid() public méthode

public SelectEventsTabInPropertyGrid ( ) : bool
Résultat bool

SelectPropertyByName() public méthode

public SelectPropertyByName ( string propertyName ) : void
propertyName string
Résultat void

SetMenuItemEnabled() public méthode

public SetMenuItemEnabled ( IEditorComponent plugin, string id, bool enabled ) : void
plugin IEditorComponent
id string
enabled bool
Résultat void

SetPropertyGridObject() public méthode

public SetPropertyGridObject ( object objectToSetPropertiesOn ) : void
objectToSetPropertiesOn object
Résultat void

SetPropertyGridObjectList() public méthode

public SetPropertyGridObjectList ( object>.Dictionary propertyObjects ) : void
propertyObjects object>.Dictionary
Résultat void

SetPropertyGridObjects() public méthode

public SetPropertyGridObjects ( object objectsToSetPropertiesOn ) : void
objectsToSetPropertiesOn object
Résultat void

SetTitleBarPrefix() public méthode

public SetTitleBarPrefix ( string prefix ) : void
prefix string
Résultat void

ShowAutoNumberSpeechWizard() public méthode

public ShowAutoNumberSpeechWizard ( ) : void
Résultat void

ShowCallStack() public méthode

public ShowCallStack ( AGS.Editor.DebugCallStack callStack ) : void
callStack AGS.Editor.DebugCallStack
Résultat void

ShowCheckOutDialog() public méthode

public ShowCheckOutDialog ( List fileNames ) : bool
fileNames List
Résultat bool

ShowCheckOutDialog() public méthode

public ShowCheckOutDialog ( string fileName ) : bool
fileName string
Résultat bool

ShowCreateRoomTemplateWizard() public méthode

public ShowCreateRoomTemplateWizard ( AGS.Types.UnloadedRoom room ) : void
room AGS.Types.UnloadedRoom
Résultat void

ShowCreateTemplateWizard() public méthode

public ShowCreateTemplateWizard ( ) : void
Résultat void

ShowCreateVoiceActingScriptWizard() public méthode

public ShowCreateVoiceActingScriptWizard ( ) : void
Résultat void

ShowCuppit() public méthode

public ShowCuppit ( string helpText, string helpTextID ) : void
helpText string
helpTextID string
Résultat void

ShowCuppit() public méthode

public ShowCuppit ( string helpText, string helpTextID, bool modal ) : void
helpText string
helpTextID string
modal bool
Résultat void

ShowFindSymbolResults() public méthode

public ShowFindSymbolResults ( List results ) : void
results List
Résultat void

ShowMessage() public méthode

public ShowMessage ( string message, MessageBoxIcon icon ) : void
message string
icon MessageBoxIcon
Résultat void

ShowMessage() public méthode

public ShowMessage ( string message, MessageBoxIconType icon ) : void
message string
icon MessageBoxIconType
Résultat void

ShowOpenFileDialog() public méthode

public ShowOpenFileDialog ( string title, string fileFilter ) : string
title string
fileFilter string
Résultat string

ShowOpenFileDialog() public méthode

public ShowOpenFileDialog ( string title, string fileFilter, bool useFileImportPath ) : string
title string
fileFilter string
useFileImportPath bool
Résultat string

ShowOpenFileDialogMultipleFiles() public méthode

public ShowOpenFileDialogMultipleFiles ( string title, string fileFilter ) : string[]
title string
fileFilter string
Résultat string[]

ShowOutputPanel() public méthode

public ShowOutputPanel ( CompileMessages errors ) : void
errors CompileMessages
Résultat void

ShowPendingCheckinsDialog() public méthode

public ShowPendingCheckinsDialog ( ) : void
Résultat void

ShowPreferencesEditor() public méthode

public ShowPreferencesEditor ( ) : void
Résultat void

ShowQuestion() public méthode

public ShowQuestion ( string message ) : DialogResult
message string
Résultat DialogResult

ShowQuestion() public méthode

public ShowQuestion ( string message, MessageBoxIcon icon ) : DialogResult
message string
icon MessageBoxIcon
Résultat DialogResult

ShowSaveFileDialog() public méthode

public ShowSaveFileDialog ( string title, string fileFilter ) : string
title string
fileFilter string
Résultat string

ShowSelectFolderOrDefaultDialog() public méthode

public ShowSelectFolderOrDefaultDialog ( string title, string defaultPath ) : string
title string
defaultPath string
Résultat string

ShowSelectFolderOrDefaultDialog() public méthode

public ShowSelectFolderOrDefaultDialog ( string title, string defaultPath, bool allowNewFolder ) : string
title string
defaultPath string
allowNewFolder bool
Résultat string

ShowSelectFolderOrNoneDialog() public méthode

public ShowSelectFolderOrNoneDialog ( string title, string initialPath ) : string
title string
initialPath string
Résultat string

ShowSelectFolderOrNoneDialog() public méthode

public ShowSelectFolderOrNoneDialog ( string title, string initialPath, bool allowNewFolder ) : string
title string
initialPath string
allowNewFolder bool
Résultat string

ShowWelcomeScreen() public méthode

public ShowWelcomeScreen ( ) : bool
Résultat bool

StartGUI() public méthode

public StartGUI ( string commandLineArguments ) : void
commandLineArguments string
Résultat void

UpdateStatusBarText() public méthode

public UpdateStatusBarText ( string text ) : void
text string
Résultat void

VerifyTemplatesDirectoryExists() public méthode

public VerifyTemplatesDirectoryExists ( ) : bool
Résultat bool

ZoomToFile() public méthode

public ZoomToFile ( string fileName ) : void
fileName string
Résultat void

ZoomToFile() public méthode

public ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomToPosition ) : void
fileName string
zoomType ZoomToFileZoomType
zoomToPosition int
Résultat void

ZoomToFile() public méthode

public ZoomToFile ( string fileName, ZoomToFileZoomType zoomType, int zoomPosition, bool isDebugExecutionPoint ) : void
fileName string
zoomType ZoomToFileZoomType
zoomPosition int
isDebugExecutionPoint bool
Résultat void

ZoomToFile() public méthode

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
Résultat void

ZoomToFile() public méthode

public ZoomToFile ( string fileName, int lineNumber ) : void
fileName string
lineNumber int
Résultat void

ZoomToFile() public méthode

public ZoomToFile ( string fileName, int lineNumber, bool isDebugExecutionPoint, string errorMessage ) : void
fileName string
lineNumber int
isDebugExecutionPoint bool
errorMessage string
Résultat void

ZoomToFile() public méthode

public ZoomToFile ( string fileName, string function ) : void
fileName string
function string
Résultat void

_mainForm_OnMenuClick() public méthode

public _mainForm_OnMenuClick ( string menuItemID ) : void
menuItemID string
Résultat void

_mainForm_OnPropertyChanged() public méthode

public _mainForm_OnPropertyChanged ( string propertyName, object oldValue ) : void
propertyName string
oldValue object
Résultat void

_mainForm_OnPropertyObjectChanged() public méthode

public _mainForm_OnPropertyObjectChanged ( object newPropertyObject ) : void
newPropertyObject object
Résultat void