All Classes Namespaces Functions Variables Properties
Public Member Functions | List of all members
KanziStudio Interface Reference

The entry point for operating with the Kanzi Studio plugin API. More...

Public Member Functions

string GetFolderPathFromUser (string dialogTitle, string initialDirectory, string userPreferencesSetting)
 Asks a folder path from the user. More...
 
string GetPathFromUser (string dialogTitle, string initialDirectory, string userPreferencesSetting, string defaultExtension, string filter, PathDialogType pathDialogType, bool multiselect)
 Asks a file path from the user for either opening or saving a file. More...
 
void Log (string message)
 Writes a message to the Studio log window. More...
 

Detailed Description

The entry point for operating with the Kanzi Studio plugin API.

Member Function Documentation

string GetFolderPathFromUser ( string  dialogTitle,
string  initialDirectory,
string  userPreferencesSetting 
)

Asks a folder path from the user.

Parameters
dialogTitleThe title for the dialog.
initialDirectoryInitial directory where the folder dialog is opened.
userPreferencesSettingA key to be used for storing the last selected folder in the user preferences.
Returns
The select folder path or null if cancelled.
string GetPathFromUser ( string  dialogTitle,
string  initialDirectory,
string  userPreferencesSetting,
string  defaultExtension,
string  filter,
PathDialogType  pathDialogType,
bool  multiselect 
)

Asks a file path from the user for either opening or saving a file.

Parameters
dialogTitleThe title for the dialog.
initialDirectoryInitial directory where the file dialog is opened.
userPreferencesSettingA key to be used for storing the last selected folder in the user preferences.
defaultExtensionThe default file extension to use when saving files.
filterFilter definition for specifying which file extensions the dialog allows to select.
pathDialogTypeType of the dialog. Either PathDialogType.OPEN or PathDialogType.SAVE.
multiselectSpecifies if multiselection is allowed when opening files.
Returns
The selected file path or null if cancelled.
void Log ( string  message)

Writes a message to the Studio log window.

This can be used to inform the user about the plugin progress.

Parameters
messageThe text to write to the log window.