|
KiCad PCB EDA Suite
|
Add a sticky "Use relative path" checkbox to a file dialog. More...
#include <filedlg_hook_relative_path.h>
Public Member Functions | |
| FILEDLG_HOOK_RELATIVE_PATH (RELATIVE_PATH_CONTEXT aContext, wxFileDialogCustomizeHook *aChained=nullptr) | |
| virtual void | AddCustomControls (wxFileDialogCustomize &customizer) override |
| virtual void | UpdateCustomControls () override |
| virtual void | TransferDataFromCustomControls () override |
| bool | GetUseRelativePath () const |
Private Member Functions | |
| wxDECLARE_NO_COPY_CLASS (FILEDLG_HOOK_RELATIVE_PATH) | |
Static Private Member Functions | |
| static bool & | choiceRef (COMMON_SETTINGS *aCfg, RELATIVE_PATH_CONTEXT aContext) |
Private Attributes | |
| RELATIVE_PATH_CONTEXT | m_context |
| wxFileDialogCustomizeHook * | m_chained |
| bool | m_relative = false |
| wxFileDialogCheckBox * | m_cb = nullptr |
Add a sticky "Use relative path" checkbox to a file dialog.
wxFileDialog accepts a single customize hook, so another hook such as FILEDLG_HOOK_EMBED_FILE can be chained in to share the dialog.
Definition at line 42 of file filedlg_hook_relative_path.h.
|
inline |
Definition at line 45 of file filedlg_hook_relative_path.h.
References choiceRef(), m_chained, m_context, m_relative, and Pgm().
Referenced by wxDECLARE_NO_COPY_CLASS().
|
inlineoverridevirtual |
Definition at line 53 of file filedlg_hook_relative_path.h.
References _, m_cb, m_chained, and m_relative.
|
inlinestaticprivate |
Definition at line 90 of file filedlg_hook_relative_path.h.
References DRAWING_SHEET, COMMON_SETTINGS::RELATIVE_PATH_DEFAULTS::drawing_sheet, JOBSET_DESTINATION, COMMON_SETTINGS::RELATIVE_PATH_DEFAULTS::jobset_destination, and COMMON_SETTINGS::m_RelativePathDefaults.
Referenced by FILEDLG_HOOK_RELATIVE_PATH(), and TransferDataFromCustomControls().
|
inline |
Definition at line 87 of file filedlg_hook_relative_path.h.
References m_relative.
Referenced by DIALOG_DESTINATION::onOutputPathBrowseClicked(), and DIALOG_PAGES_SETTINGS::OnWksFileSelection().
|
inlineoverridevirtual |
Definition at line 76 of file filedlg_hook_relative_path.h.
References choiceRef(), m_cb, m_chained, m_context, m_relative, and Pgm().
|
inlineoverridevirtual |
Definition at line 70 of file filedlg_hook_relative_path.h.
References m_chained.
|
private |
References FILEDLG_HOOK_RELATIVE_PATH().
|
private |
Definition at line 106 of file filedlg_hook_relative_path.h.
Referenced by AddCustomControls(), and TransferDataFromCustomControls().
|
private |
Definition at line 102 of file filedlg_hook_relative_path.h.
Referenced by AddCustomControls(), FILEDLG_HOOK_RELATIVE_PATH(), TransferDataFromCustomControls(), and UpdateCustomControls().
|
private |
Definition at line 100 of file filedlg_hook_relative_path.h.
Referenced by FILEDLG_HOOK_RELATIVE_PATH(), and TransferDataFromCustomControls().
|
private |
Definition at line 104 of file filedlg_hook_relative_path.h.
Referenced by AddCustomControls(), FILEDLG_HOOK_RELATIVE_PATH(), GetUseRelativePath(), and TransferDataFromCustomControls().