ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
navbaroptionsdialog.h
Go to the documentation of this file.
1 #ifndef NAVBAROPTIONSDLG_H
2 #define NAVBAROPTIONSDLG_H
3 
4 #include "navbarpage.h"
5 #include "ui_navbaroptionsdialog.h"
6 
7 class NavBarOptionsDialog : public QDialog, private Ui::NavBarOptionsDialog
8 {
9  Q_OBJECT
10 
11 public:
12  explicit NavBarOptionsDialog(QWidget *parent = 0);
13 
14  void setPageList(const QList<NavBarPage> &plist);
15  QList<NavBarPage> pageList();
16 
17  void setDefaultPageOrder(const QStringList &order);
18 
19 private slots:
20  void movePageUp();
21  void movePageDown();
22  void resetPages();
23  void onCurrentRowChanged(int row);
24 
25 private:
26  void fillListWidget();
27 
28  QList<NavBarPage> pages;
29  QStringList pageOrder;
30 };
31 
32 #endif // NAVBAROPTIONSDLG_H
Definition: navbaroptionsdialog.h:7
NavBarOptionsDialog(QWidget *parent=0)
Definition: navbaroptionsdialog.cpp:4
void setDefaultPageOrder(const QStringList &order)
Definition: navbaroptionsdialog.cpp:32
void setPageList(const QList< NavBarPage > &plist)
Definition: navbaroptionsdialog.cpp:18
QList< NavBarPage > pageList()
Definition: navbaroptionsdialog.cpp:24