2012-12-28 14:48:19 +00:00
|
|
|
// PUIFileDialog.hxx - file dialog implemented using PUI
|
|
|
|
|
|
|
|
#ifndef FG_PUI_FILE_DIALOG_HXX
|
|
|
|
#define FG_PUI_FILE_DIALOG_HXX 1
|
|
|
|
|
|
|
|
#include <simgear/props/props.hxx>
|
|
|
|
#include <GUI/FileDialog.hxx>
|
|
|
|
|
|
|
|
class PUIFileDialog : public FGFileDialog
|
|
|
|
{
|
|
|
|
public:
|
2013-01-19 16:23:05 +00:00
|
|
|
PUIFileDialog(FGFileDialog::Usage use);
|
2012-12-28 14:48:19 +00:00
|
|
|
|
|
|
|
virtual ~PUIFileDialog();
|
|
|
|
|
|
|
|
virtual void exec();
|
2013-01-19 16:23:05 +00:00
|
|
|
virtual void close();
|
2012-12-28 14:48:19 +00:00
|
|
|
private:
|
|
|
|
class PathListener;
|
|
|
|
friend class PathListener;
|
|
|
|
|
|
|
|
// called by the listener
|
|
|
|
void pathChanged(const SGPath& aPath);
|
|
|
|
|
|
|
|
|
|
|
|
SGPropertyNode_ptr _dialogRoot;
|
|
|
|
PathListener* _listener;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FG_PUI_FILE_DIALOG_HXX
|