Molybden API
Loading...
Searching...
No Matches
molybden::OpenDialog Class Reference

Allow displaying the native open file/files/folder dialogs. More...

#include <dialogs.hpp>

Static Public Member Functions

static void show (const std::shared_ptr< App > &app, const OpenDialogOptions &options, const std::function< void(OpenDialogResult)> &callback)
 Shows an application open dialog with the given options.
 
static void show (const std::shared_ptr< Browser > &browser, const OpenDialogOptions &options, const std::function< void(OpenDialogResult)> &callback)
 Shows a browser modal open dialog with the given options.
 

Detailed Description

Allow displaying the native open file/files/folder dialogs.

Member Function Documentation

◆ show() [1/2]

static void molybden::OpenDialog::show ( const std::shared_ptr< App > &  app,
const OpenDialogOptions options,
const std::function< void(OpenDialogResult)> &  callback 
)
static

Shows an application open dialog with the given options.

Parameters
appthe application instance.
optionsthe options of the open dialog.
callbackthe callback to be invoked when the dialog is closed.

◆ show() [2/2]

static void molybden::OpenDialog::show ( const std::shared_ptr< Browser > &  browser,
const OpenDialogOptions options,
const std::function< void(OpenDialogResult)> &  callback 
)
static

Shows a browser modal open dialog with the given options.

Parameters
browserthe browser instance.
optionsthe options of the open dialog.
callbackthe callback to be invoked when the dialog is closed.

The documentation for this class was generated from the following file: