Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

FileDialog Class Reference

#include <FileDialog.h>

List of all members.

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


Detailed Description

This file defines the dialog window to change the search path.

Version:
0.1


Constructor & Destructor Documentation

FileDialog::FileDialog  ) 
 

The constructor of the FileDialog creates all graphical components.


Member Function Documentation

void FileDialog::confirm  ) 
 

Confirm the dialog is invoked when the user pressed the ok button. Then *path variable is created.

void FileDialog::hide  ) 
 

Hide the dialog.

void FileDialog::show char *  errorMsg  ) 
 

Show the dialog with a changed advice for the user

void FileDialog::show  ) 
 

Show the dialog.


Member Data Documentation

GLUI_Panel* FileDialog::buttonPanel [private]
 

A graphical component that is used to arrage the buttons.

GLUI_Button* FileDialog::cancelBtn [private]
 

The "Cancel Button" in the dialog window. If this button is pressed, the CANCELOPENFILEDLG_ID event is passed to the eventListener function.

string FileDialog::lastElement [private]
 

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!

GLUI_StaticText* FileDialog::msgText [private]
 

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.

GLUI_Button* FileDialog::okBtn [private]
 

The "Ok Button" in the dialog window. If this button is pressed, the CONFIRMOPENFILEDLG_ID event is passed to the eventListener function.

GLUI* FileDialog::panel [private]
 

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.

char* FileDialog::path
 

The path that had been extracted from the user input. This variable is initialized by the constructor.

GLUI_EditText* FileDialog::pathText [private]
 

The graphical component that contains the text

string FileDialog::tempPath [private]
 

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!


The documentation for this class was generated from the following files:
Generated on Tue Jan 24 00:36:47 2006 for ZVis by  doxygen 1.4.1