This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

WidgetDialogFile Class

This class creates dialog window where a file is selected. On the left side file-related information or an image preview is displayed.

WidgetDialogFile Class

This class inherits from WidgetDialog

Members


WidgetDialogFile (Gui gui, string title = 0)

Constructor. Creates a file picker dialog with given parameters.

Arguments

  • Gui gui - GUI, to which the dialog will belong.
  • string title - Dialog title. This is an optional parameter.

string getFile ()

Returns the currently selected file.

Return value

Path to the file.

string getFilter ()

Returns the currently used file name filter.

Return value

List of file extensions with leading dots and without additional separators, for example: .mesh.smesh.

string getPath ()

Returns the current path to the folder, contents of which is displayed in the file picker.

Return value

Current path.

string getTabs ()

Returns a list of tabs in the file picker dialog. The tabs allow the user to interact with several folders at once.

Return value

List of paths separated with semicolons. Each path corresponds to a tab.

void setFile (string file)

Selects a given file in the file picker.

Arguments

  • string file - Absolute or relative path to the file.

void setFilter (string filter)

Sets a file name filter, which is used to display files of required types only.

Arguments

  • string filter - List of file extensions with leading dots and without additional separators, for example: .mesh.smesh.

void setPath (string path)

Sets a path to the folder, contents of which should be displayed in the file picker.

Arguments

  • string path - Absolute or relative path.

void setTabs (string tabs)

Adds a set of tabs to the file picker dialog. The tabs allow the user to interact with several folders at once.

Arguments

  • string tabs - List of paths separated with semicolons. Each path corresponds to a tab.
Last update: 03.07.2017
Build: ()