lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Open file parameters. More...
#include <lecui.h>
Public Member Functions | |
std::string & | title () |
Get or set the title of the modal form. More... | |
const std::string & | get_title () const |
Get the title of the modal form. More... | |
open_file_params & | title (const std::string &title) |
Set the title of the modal form. More... | |
std::vector< file_type > & | file_types () |
Get or set the file types to open, as defined in file_type. More... | |
const std::vector< file_type > & | get_file_types () const |
Get the file types to open, as defined in file_type. More... | |
open_file_params & | file_types (const std::vector< file_type > &file_types) |
Set the file types to open. More... | |
std::string & | default_type () |
Get or set the file type to open by default, e.g. "PNG Image". More... | |
const std::string & | get_default_type () const |
Get the file type to open by default, e.g. "PNG Image". More... | |
open_file_params & | default_type (const std::string &default_type) |
Set the file type to open by default. More... | |
bool & | include_all_supported_types () |
Get or set whether to include an entry for "all supported file types". More... | |
const bool & | get_include_all_supported_types () const |
Get whether to include an entry for "all supported file types". More... | |
open_file_params & | include_all_supported_types (const bool &include_all_supported_types) |
Set whether to include an entry for "all supported file types". More... | |
bool & | allow_multi_select () |
Get or set whether to allow the selection of multiple files. More... | |
const bool & | get_allow_multi_select () const |
Get whether to allow the selection of multiple files. More... | |
open_file_params & | allow_multi_select (const bool &allow_multi_select) |
Set whether to allow the selection of multiple files. More... | |
Open file parameters.
bool & liblec::lecui::open_file_params::allow_multi_select | ( | ) |
Get or set whether to allow the selection of multiple files.
open_file_params & liblec::lecui::open_file_params::allow_multi_select | ( | const bool & | allow_multi_select | ) |
Set whether to allow the selection of multiple files.
allow_multi_select | Whether to allow the selection of multiple files. |
std::string & liblec::lecui::open_file_params::default_type | ( | ) |
Get or set the file type to open by default, e.g. "PNG Image".
The description of the file is used here not the extension, since various extensions can be grouped under one description, e.g. JPG Image can refer to BOTH .jpg and .jpeg.
open_file_params & liblec::lecui::open_file_params::default_type | ( | const std::string & | default_type | ) |
Set the file type to open by default.
default_type | The file type to open by default, e.g. "PNG Image". |
The description of the file is used here not the extension, since various extensions can be grouped under one description, e.g. JPG Image can refer to BOTH .jpg and .jpeg.
std::vector< file_type > & liblec::lecui::open_file_params::file_types | ( | ) |
Get or set the file types to open, as defined in file_type.
open_file_params & liblec::lecui::open_file_params::file_types | ( | const std::vector< file_type > & | file_types | ) |
Set the file types to open.
file_types | The list of file types to open, as defined in file_type. |
const bool & liblec::lecui::open_file_params::get_allow_multi_select | ( | ) | const |
Get whether to allow the selection of multiple files.
const std::string & liblec::lecui::open_file_params::get_default_type | ( | ) | const |
Get the file type to open by default, e.g. "PNG Image".
The description of the file is used here not the extension, since various extensions can be grouped under one description, e.g. JPG Image can refer to BOTH .jpg and .jpeg.
const std::vector< file_type > & liblec::lecui::open_file_params::get_file_types | ( | ) | const |
Get the file types to open, as defined in file_type.
const bool & liblec::lecui::open_file_params::get_include_all_supported_types | ( | ) | const |
Get whether to include an entry for "all supported file types".
const std::string & liblec::lecui::open_file_params::get_title | ( | ) | const |
Get the title of the modal form.
bool & liblec::lecui::open_file_params::include_all_supported_types | ( | ) |
Get or set whether to include an entry for "all supported file types".
open_file_params & liblec::lecui::open_file_params::include_all_supported_types | ( | const bool & | include_all_supported_types | ) |
Set whether to include an entry for "all supported file types".
include_all_supported_types | Whether to include the entry. |
std::string & liblec::lecui::open_file_params::title | ( | ) |
Get or set the title of the modal form.
open_file_params & liblec::lecui::open_file_params::title | ( | const std::string & | title | ) |
Set the title of the modal form.
title | The title of the modal form, e.g. "Open Image". |