wex v24.10.0
|
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. | |
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.
wex::file_dialog::file_dialog | ( | file * | file, |
const data::window & | data = data::window().style(wxFD_DEFAULT_STYLE) ) |
Constructor.
file | specify file (might be nullptr) |
data | window data |
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.