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

Unigine::WidgetDialogFile Class

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

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

Unigine::WidgetDialogFile Class

Members


static Ptr< WidgetDialogFile > create (const WidgetDialogPtr & dialog)

WidgetDialogFile constructor.

Arguments

  • const WidgetDialogPtr & dialog - Dialog smart pointer.

static Ptr< WidgetDialogFile > create (const Ptr< Gui > & gui, const char * str)

WidgetDialogFile constructor.

Arguments

  • const Ptr< Gui > & gui - Gui pointer.
  • const char * str - Dialog window title. This is an optional argument.

virtual void setPath (const char * str) const =0

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

Arguments

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

virtual const char * getPath () const =0

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

Return value

Current path to the folder.

virtual void setFile (const char * str) const =0

Selects a given file in the file picker.

Arguments

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

virtual const char * getFile () const =0

Returns the currently selected file.

Return value

Path to the file.

virtual void setTabs (const char * str) const =0

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 * str - List of paths separated with semicolons. Each path corresponds to a tab.

virtual const char * getTabs () const =0

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.

virtual void setFilter (const char * str) const =0

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

Arguments

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

virtual const char * getFilter () const =0

Returns the currently used file name filter.

Return value

List of file extensions with leading dots and without additional separators, for example: .mesh.smesh.
Last update: 03.07.2017
Build: ()