48 setWidth(getApp()->reg().readIntEntry(
"GNEFileDialog",
"width", getWidth()));
49 setHeight(getApp()->reg().readIntEntry(
"GNEFileDialog",
"height", getHeight()));
62 getApp()->reg().writeIntEntry(
"GNEFileDialog",
"width", getWidth());
63 getApp()->reg().writeIntEntry(
"GNEFileDialog",
"height", getHeight());
81std::vector<std::string>
83 std::vector<std::string> filenames;
112 for (
const auto& extension : extensions) {
119 if (extensions.size() > 0) {
120 return (filename + extensions.front());
FXString gCurrentFolder
The folder used as last.
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
void updateIcon(GUIIcon newIcon)
update icon
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
FXButton * myAcceptButton
accept button
long closeDialogAccepting()
close dialog accepting the changes
OpenType
Open dialog type.
void updateTitle(const std::string &newTitle)
update title
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
std::vector< std::string > getFilenames() const
Return empty-string terminated list of selected file names, or NULL if none selected.
std::string getDirectory() const
Return directory.
std::string assureExtension(const std::string &filename) const
check extensions
GNEFileSelector * myFileSelector
the file selector widget
long onCmdAccept(FXObject *, FXSelector, void *)
called when accept or yes button is pressed (can be reimplemented in children)
~GNEFileDialog()
destructor
std::string getFilename() const
Return file name, if any.
GNEFileDialog(GNEApplicationWindow *applicationWindow, const std::string elementFile, const std::vector< std::string > &extensions, GNEFileDialog::OpenMode openMode, GNEFileDialog::ConfigType configType)
constructor
std::string getFilename() const
Return file name, if any.
void setFileBoxStyle(FXuint style)
Change file list style.
std::string getDirectory() const
Return directory.
const std::vector< std::string > & getFileExtension() const
get file extension
std::vector< std::string > getFilenames() const
get file names
void setDirectory(const FXString &path)
Change directory.
MFXTextFieldIcon * getFilenameTextField() const
get file name entry field
FXbool showHiddenFiles() const
Return TRUE if showing hidden files.
FXuint getFileBoxStyle() const
Return file list style.
dialog arguments, used for certain modal dialogs that can not be edited using tab
static bool endsWith(const std::string &str, const std::string suffix)
Checks whether a given string ends with the suffix.