ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
navbarpagelistwidget.h
Go to the documentation of this file.
1 #ifndef NAVBARPAGELIST_H
2 #define NAVBARPAGELIST_H
3 
4 #include <QWidget>
5 #include <QList>
6 #include <QToolButton>
7 
8 class NavBar;
9 
10 class NavBarButton: public QToolButton
11 {
12  Q_OBJECT
13 
14 public:
15  explicit NavBarButton(QWidget *parent);
16 };
17 
18 class NavBarPageListWidget : public QWidget
19 {
20  Q_OBJECT
21  Q_PROPERTY(int rowHeight READ rowHeight WRITE setRowHeight)
22 
23 public:
24  explicit NavBarPageListWidget(NavBar *parent);
26 
27  int rowHeight() const;
28  void setRowHeight(int newHeight);
29  void layoutButtons(int width);
30 
31 signals:
32  void buttonVisibilityChanged(int visCount);
33 
34 protected:
35  void resizeEvent(QResizeEvent *e);
36 
37 private:
38  NavBar *navBar;
39  int pageButtonHeight;
40 };
41 
42 #endif // NAVBARPAGELIST_H
Outlook-like navigation bar.
Definition: navbar.h:24
Definition: navbarpagelistwidget.h:18
~NavBarPageListWidget()
Definition: navbarpagelistwidget.cpp:13
Definition: navbarpagelistwidget.h:10
NavBarButton(QWidget *parent)
Definition: navbarpagelistwidget.cpp:49
void resizeEvent(QResizeEvent *e)
Definition: navbarpagelistwidget.cpp:37
void buttonVisibilityChanged(int visCount)
NavBarPageListWidget(NavBar *parent)
Definition: navbarpagelistwidget.cpp:6
void layoutButtons(int width)
Definition: navbarpagelistwidget.cpp:28
int rowHeight() const
void setRowHeight(int newHeight)
Definition: navbarpagelistwidget.cpp:22