#include <FileDialog.h>
Public Member Functions | |
FileDialog () | |
void | hide () |
void | show () |
void | show (char *errorMsg) |
void | confirm () |
Public Attributes | |
char * | path |
Private Attributes | |
string | tempPath |
string | lastElement |
GLUI * | panel |
GLUI_Button * | okBtn |
GLUI_Button * | cancelBtn |
GLUI_Panel * | buttonPanel |
GLUI_StaticText * | msgText |
GLUI_EditText * | pathText |
|
The constructor of the FileDialog creates all graphical components. |
|
Confirm the dialog is invoked when the user pressed the ok button. Then *path variable is created. |
|
Hide the dialog. |
|
Show the dialog with a changed advice for the user |
|
Show the dialog. |
|
A graphical component that is used to arrage the buttons. |
|
The "Cancel Button" in the dialog window. If this button is pressed, the CANCELOPENFILEDLG_ID event is passed to the eventListener function. |
|
A second string that is used to create a valid path from the one that a user entered. This variable must not be accessed from anywhere! |
|
The text that advice the user what to do or if an error occoured. If a For example the given path was wrong, then this text is replaced by the error message. |
|
The "Ok Button" in the dialog window. If this button is pressed, the CONFIRMOPENFILEDLG_ID event is passed to the eventListener function. |
|
The GLUI window object that is used to create a content pane. Properties of this element determine the positions, ... of the dialog that appears when clicking the "Add Path" button. |
|
The path that had been extracted from the user input. This variable is initialized by the constructor. |
|
The graphical component that contains the text |
|
A string that is used to create a valid path from the one that a user entered. This variable must not be accessed from anywhere! |