19 #ifndef OST_GUI_FILE_BROWSER_HH
20 #define OST_GUI_FILE_BROWSER_HH
27 #include <QModelIndex>
34 namespace ost {
namespace gui {
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=
"");
a simplistic file browser
virtual bool Save(const QString &prefix)
virtual ActionList GetActions()
get Widget specific actions
FileBrowser(const QString &path, QWidget *parent=NULL)
FileBrowser(QWidget *parent=NULL)
virtual void keyPressEvent(QKeyEvent *event)
virtual bool Restore(const QString &prefix)
QList< QAction * > ActionList