This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

WidgetDialogFile Class

Interface for widget dialog color handling. See also UnigineScript analog.

To use this class, include the UnigineWidgetDialogFile.h file.

WidgetDialogFile Class

Members


WidgetDialogFile (const Ptr<Gui> & gui, const char * str = 0)

Constructor. Creates a file picker dialog with given parameters.

Arguments

  • const Ptr<Gui> & gui - GUI, to which the dialog will belong.
  • const char * str - Dialog title. This is an optional parameter.

const char * 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.

void setTabs (const char * tabs)

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

Arguments

  • const char * tabs - List of paths separated with semicolons. Each path corresponds to a tab.

void setFile (const char * file)

Selects a given file in the file picker.

Arguments

  • const char * file - Absolute or relative (to the data folder) path.

const char * getFile ()

Returns the currently selected file.

Return value

Path to the file.

Ptr<WidgetDialogFile> create (const Ptr<WidgetDialog> & widgetdialog)

WidgetDialogFile constructor.

Arguments

  • const Ptr<WidgetDialog> & widgetdialog - Dialog smart pointer.

Return value

const char * getPath ()

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

Return value

Current path to the folder.

void setPath (const char * path)

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

Arguments

  • const char * path - Absolute or relative (to the data folder) path.

void setFilter (const char * filter)

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

Arguments

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

const char * getTabs ()

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

Return value

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