wex  v21.04.0
Public Member Functions | List of all members
wex::file_dialog Class Reference

Adds a file and / or a hexmode checkbox to wxFileDialog. More...

#include <wex/file-dialog.h>

Inherits wxFileDialog.

Public Member Functions

 file_dialog (const data::window &data=data::window().style(wxFD_DEFAULT_STYLE))
 Default constructor. More...
 
 file_dialog (file *file, const data::window &data=data::window().style(wxFD_DEFAULT_STYLE))
 Constructor for file. More...
 
int ShowModal () override
 Virtual interface.
 
bool is_hexmode () const
 Other methods. More...
 
int show_modal_if_changed (bool show_modal=false)
 Shows the dialog depending on the changes on the file. More...
 

Detailed Description

Adds a file and / or a hexmode checkbox to wxFileDialog.

The hexmode option can be set by setting wxFD_HEX_MODE in the window::data.

Constructor & Destructor Documentation

◆ file_dialog() [1/2]

wex::file_dialog::file_dialog ( const data::window data = data::window().style(wxFD_DEFAULT_STYLE))

Default constructor.

Parameters
datawindow data

◆ file_dialog() [2/2]

wex::file_dialog::file_dialog ( file file,
const data::window data = data::window().style(wxFD_DEFAULT_STYLE) 
)

Constructor for file.

Parameters
filespecify file
datawindow data

Member Function Documentation

◆ is_hexmode()

bool wex::file_dialog::is_hexmode ( ) const
inline

Other methods.

Returns true if hexmode checkbox is (was) checked.

◆ show_modal_if_changed()

int wex::file_dialog::show_modal_if_changed ( bool  show_modal = false)

Shows the dialog depending on the changes on the file.

If you specify show_modal then dialog is always shown.