Btk
Btk::FSelectBox Class Reference

A Dialog of file selecting. More...

#include <fselect.hpp>

Public Types

typedef Signal< void(std::string_view txt)> SignalAsync
 

Public Member Functions

 FSelectBox (std::string_view title=std::string_view())
 
 FSelectBox (const FSelectBox &)
 
bool show (bool focus_async=false)
 Focus to use async thread although it is not in main thread. More...
 
SignalAsyncsig_async ()
 Get the async signal, It will be emited after closeing the box. More...
 
void set_multi (bool val=true)
 Allow to select multi files. More...
 
void set_save (bool val=true)
 Save file dialog. More...
 

Detailed Description

A Dialog of file selecting.

Member Function Documentation

◆ set_multi()

void Btk::FSelectBox::set_multi ( bool  val = true)

Allow to select multi files.

Parameters
valTrue or false

◆ set_save()

void Btk::FSelectBox::set_save ( bool  val = true)

Save file dialog.

Parameters
valTrue to enable the attribute

◆ show()

bool Btk::FSelectBox::show ( bool  focus_async = false)

Focus to use async thread although it is not in main thread.

Parameters
focus_asyncThe flag decided should we use async thread
Returns
false on async,true on sync

◆ sig_async()

FSelectBox::SignalAsync & Btk::FSelectBox::sig_async ( )

Get the async signal, It will be emited after closeing the box.

Returns
SignalAsync&

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