equal
deleted
inserted
replaced
29 |
29 |
30 class QWebHistory; |
30 class QWebHistory; |
31 class WebPageController; |
31 class WebPageController; |
32 |
32 |
33 namespace WRT { |
33 namespace WRT { |
34 |
|
35 class WrtBrowserContainer; |
34 class WrtBrowserContainer; |
36 class WindowViewPrivate; |
35 class WindowViewPrivate; |
37 |
36 |
38 class BWF_EXPORT WindowView : public ControllableViewBase |
37 class BWF_EXPORT WindowView : public ControllableViewBase |
39 { |
38 { |
72 QAction * getActionOK(); |
71 QAction * getActionOK(); |
73 QAction * getActionCancel(); |
72 QAction * getActionCancel(); |
74 QAction * getActionAddWindow(); |
73 QAction * getActionAddWindow(); |
75 QAction * getActionDelWindow(); |
74 QAction * getActionDelWindow(); |
76 |
75 |
77 void setSize(QSize& size); |
76 void setSize(QSize size); |
78 |
77 |
79 void setMode(Mode mode); |
78 void setMode(Mode mode); |
80 |
79 |
81 public: // Pure Virtual from ControllableView |
80 public: // Pure Virtual from ControllableView |
82 QString title() const; |
81 QString title() const; |
83 bool isActive(); |
82 bool isActive(); |
84 QList<QAction*> getContext(); |
83 QList<QAction*> getContext(); |
85 void displayModeChanged(QString& newMode); |
84 void displayModeChanged(QString& newMode, QSize sz); |
86 QGraphicsWidget* widget() const; |
85 QGraphicsWidget* widget() const; |
87 |
86 |
88 int pageCount(); |
87 int pageCount(); |
89 int currentPageIndex(); |
88 int currentPageIndex(); |
90 |
89 |
127 void setCenterIndex(); |
126 void setCenterIndex(); |
128 void setCenterIndex(int i); |
127 void setCenterIndex(int i); |
129 void setCenterIndex(WrtBrowserContainer *); |
128 void setCenterIndex(WrtBrowserContainer *); |
130 void indexChangeInActiveState(int); |
129 void indexChangeInActiveState(int); |
131 void updateImages(); |
130 void updateImages(); |
132 |
131 #ifdef ENABLE_TESTS |
|
132 friend class WindowViewTest; |
|
133 #endif |
133 protected: |
134 protected: |
134 WindowViewPrivate * const d; |
135 WindowViewPrivate * const d; |
|
136 |
135 }; |
137 }; |
136 |
138 |
137 class BWF_EXPORT WindowViewJSObject : public ControllableViewJSObject { |
139 class BWF_EXPORT WindowViewJSObject : public ControllableViewJSObject { |
138 Q_OBJECT |
140 Q_OBJECT |
139 public: |
141 public: |
146 int pageCount(){ return windowView()->pageCount();} |
148 int pageCount(){ return windowView()->pageCount();} |
147 int currentPageIndex(){ return windowView()->currentPageIndex();} |
149 int currentPageIndex(){ return windowView()->currentPageIndex();} |
148 protected: |
150 protected: |
149 WindowView * windowView() { return static_cast<WindowView *>(m_contentView); } |
151 WindowView * windowView() { return static_cast<WindowView *>(m_contentView); } |
150 WindowView * windowViewConst() const { return static_cast<WindowView *>(m_contentView); } |
152 WindowView * windowViewConst() const { return static_cast<WindowView *>(m_contentView); } |
151 |
153 |
152 |
|
153 }; |
154 }; |
154 |
155 |
155 } |
156 } |
156 #endif // __WINDOWVIEW_H__ |
157 #endif // __WINDOWVIEW_H__ |