|
Revision 146, 1.6 kB
(checked in by jordi, 2 years ago)
|
|
Now is the PagePter? how is doing the page scroll. This way I can add other actions when the mouse moves (i.e., hyperlinks) or when the mouse button is pressed (i.e., selecting instead of dragging.)
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | #if !defined (__PAGE_PTER_TEST_H__) |
|---|
| 19 | #define __PAGE_PTER_TEST_H__ |
|---|
| 20 | |
|---|
| 21 | #include <cppunit/extensions/HelperMacros.h> |
|---|
| 22 | |
|---|
| 23 | namespace ePDFView |
|---|
| 24 | { |
|---|
| 25 | class PagePterTest: public CppUnit::TestFixture |
|---|
| 26 | { |
|---|
| 27 | CPPUNIT_TEST_SUITE (PagePterTest); |
|---|
| 28 | CPPUNIT_TEST (pageZoomWidth); |
|---|
| 29 | CPPUNIT_TEST (pageZoomFit); |
|---|
| 30 | CPPUNIT_TEST (pageDrag); |
|---|
| 31 | CPPUNIT_TEST_SUITE_END (); |
|---|
| 32 | |
|---|
| 33 | public: |
|---|
| 34 | void setUp (void); |
|---|
| 35 | void tearDown (void); |
|---|
| 36 | |
|---|
| 37 | void pageZoomWidth (void); |
|---|
| 38 | void pageZoomFit (void); |
|---|
| 39 | void pageDrag (void); |
|---|
| 40 | |
|---|
| 41 | protected: |
|---|
| 42 | DumbDocument *m_Document; |
|---|
| 43 | MainPter *m_MainPter; |
|---|
| 44 | DumbMainView *m_MainView; |
|---|
| 45 | PagePter *m_PagePter; |
|---|
| 46 | DumbPageView *m_PageView; |
|---|
| 47 | }; |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | #endif // !__PAGE_PTER_TEST_H__ |
|---|