00001
00002 #ifndef _FILEDLG_
00003 #define _FILEDLG_
00004
00005 #include <glui.h>
00006 #include <glut.h>
00007 #include <string>
00008
00009 using namespace std;
00010
00016 class FileDialog {
00017 private:
00022 string tempPath;
00023
00028 string lastElement;
00029
00035 GLUI *panel;
00036
00041 GLUI_Button *okBtn;
00042
00047 GLUI_Button *cancelBtn;
00048
00050 GLUI_Panel *buttonPanel;
00051
00057 GLUI_StaticText *msgText;
00058
00060 GLUI_EditText *pathText;
00061
00062 public:
00067 char *path;
00068
00070 FileDialog();
00071
00073 void hide();
00074
00076 void show();
00077
00079 void show(char *errorMsg);
00080
00085 void confirm();
00086 };
00087 #endif