19 #ifndef OST_GUI_FILE_BROWSER_HH
20 #define OST_GUI_FILE_BROWSER_HH
27 #include <QModelIndex>
34 namespace ost {
namespace gui {
44 FileBrowser(
const QString& path, QWidget* parent=NULL);
47 virtual bool Save(
const QString& prefix);
48 virtual bool Restore(
const QString& prefix);
55 void Init(
const QString& path);
56 void DoubleClicked(
const QModelIndex& index);
57 void ChangeToParentDirectory(
int index);
59 void ShowContextMenu(
const QPoint& pos);
60 void LoadCurrentObject();
61 void LoadWithSystemEditor();
62 void LoadWithSourceViewer();
65 void LoadObject(
const QModelIndex& index);
66 void UpdateMenu(
const QString& path);
67 void AddItem(
const QDir& directory,
const QString& mypath=
"");
virtual ActionList GetActions()
get Widget specific actions
virtual void keyPressEvent(QKeyEvent *event)
virtual bool Restore(const QString &prefix)
QList< QAction * > ActionList
virtual bool Save(const QString &prefix)
a simplistic file browser
FileBrowser(QWidget *parent=NULL)