navigationsidebar.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef NAVIGATIONSIDEBAR_H
00022 #define NAVIGATIONSIDEBAR_H
00023
00024 #include <QDockWidget>
00025 #include <QToolBar>
00026 #include "src/data/node/node.h"
00027 #include <QList>
00028 #include <QAction>
00029
00030
00038 class NavigationSidebar : public QDockWidget
00039 {
00040 Q_OBJECT
00041
00042 public:
00053 NavigationSidebar(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0);
00054
00059 ~NavigationSidebar();
00060
00061 private slots:
00062 void selectionChanged(Node* node);
00063 void previous();
00064 void next();
00065
00066 private:
00067 bool skip;
00068 QToolBar *toolbar;
00069 QAction *prevAction,
00070 *nextAction;
00071
00072 QList<Node*> prevList;
00073 QList<Node*> nextList;
00074
00075 void updateActions();
00076 };
00077
00078 #endif // NAVIGATIONSIDEBAR_H
00079