wex v24.10.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/ui/file-dialog.h>

Inherits wxFileDialog.

Public Member Functions

 file_dialog (file *file, const data::window &data=data::window().style(wxFD_DEFAULT_STYLE))
 Constructor.
 
bool is_hexmode () const
 Returns true if hexmode checkbox is (was) checked.
 
int show_modal_if_changed (bool show_modal=false)
 Shows the dialog depending on the changes on the file.
 

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()

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

Constructor.

Parameters
filespecify file (might be nullptr)
datawindow data

Member Function Documentation

◆ 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.