Changeset 216
- Timestamp:
- 06/10/06 18:42:54 (2 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 modified
-
src/IPrintView.h (modified) (1 diff)
-
src/PrintPter.cxx (modified) (1 diff)
-
tests/DumbMainView.cxx (modified) (2 diffs)
-
tests/DumbMainView.h (modified) (1 diff)
-
tests/DumbPrintView.cxx (added)
-
tests/DumbPrintView.h (added)
-
tests/Makefile.am (modified) (1 diff)
-
tests/PrintPterTest.cxx (added)
-
tests/PrintPterTest.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/IPrintView.h
r213 r216 61 61 } 62 62 63 /// 64 /// @brief Changes the sensitivity of the "Collate" option. 65 /// 66 /// The view must change the sensitivity (it's called enabled or 67 /// disabled on some toolkits) of the "Collate" option. 68 /// 69 /// @param sensitive Set to TRUE to make sensitive (enable) the 70 /// option or FALSE to insensitive (disable) it. 71 /// 72 virtual void sensitiveCollate (gboolean sensitive) = 0; 73 74 /// 75 /// @brief Changes the sensitivity of the "Page Range" entry. 76 /// 77 /// The view must change the sensitivity (it's called enabled or 78 /// disabled on some toolkits) of the "Page Range" entry. 79 /// 80 /// @param sensitive Set to TRUE if need to make sensitive (enable) 81 /// the entry or FALSE to insensitive (disable) it. 82 /// 83 virtual void sensitivePageRange (gboolean sensitive) = 0; 84 63 85 protected: 64 86 /// The presenter that controls the view. -
trunk/src/PrintPter.cxx
r213 r216 43 43 { 44 44 m_View = view; 45 46 // Set the page range and collate options insensitive. 47 view->sensitiveCollate (FALSE); 48 view->sensitivePageRange (FALSE); 49 45 50 getView ().setPresenter (this); 46 51 } -
trunk/tests/DumbMainView.cxx
r212 r216 20 20 #include "DumbFindView.h" 21 21 #include "DumbPageView.h" 22 #include "DumbPreferencesView.h" 23 #include "DumbPrintView.h" 22 24 #include "DumbMainView.h" 23 25 … … 110 112 DumbMainView::getPreferencesView () 111 113 { 112 return (IPreferencesView *)0; 113 } 114 return new DumbPreferencesView (); 115 } 116 117 #if defined (HAVE_CUPS) 118 IPrintView * 119 DumbMainView::getPrintView () 120 { 121 return new DumbPrintView (); 122 } 123 #endif // HAVE_CUPS 124 114 125 115 126 gchar * -
trunk/tests/DumbMainView.h
r212 r216 36 36 IFindView *getFindView (void); 37 37 IPageView *getPageView (void); 38 #if defined (HAVE_CUPS) 39 IPrintView *getPrintView (void); 40 #endif // HAVE_CUPS 38 41 IPreferencesView *getPreferencesView (void); 39 42 const gchar *getZoomText (void); -
trunk/tests/Makefile.am
r198 r216 50 50 $(CPPUNIT_LIBS) \ 51 51 $(top_builddir)/src/libepdfview.a 52 53 if cups_printing 54 test_epdfview_SOURCES += \ 55 DumbPrintView.cxx \ 56 DumbPrintView.h \ 57 PrintPterTest.cxx \ 58 PrintPterText.h 59 60 test_epdfview_CXXFLAGS += \ 61 $(CUPS_CFLAGS) 62 63 test_epdfview_LDADD += \ 64 $(CUPS_LIBS) 65 endif
