Changeset 198
- Timestamp:
- 05/28/06 13:58:35 (2 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 7 modified
-
src/FindPter.cxx (modified) (3 diffs)
-
src/IFindView.h (modified) (5 diffs)
-
src/IPreferencesView.h (added)
-
src/Makefile.am (modified) (2 diffs)
-
src/PreferencesPter.cxx (added)
-
src/PreferencesPter.h (added)
-
src/epdfview.h (modified) (1 diff)
-
tests/DumbFindView.h (modified) (2 diffs)
-
tests/DumbPreferencesView.cxx (added)
-
tests/DumbPreferencesView.h (added)
-
tests/FindPterTest.cxx (modified) (1 diff)
-
tests/Makefile.am (modified) (2 diffs)
-
tests/PreferencesPterTest.cxx (added)
-
tests/PreferencesPterTest.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/FindPter.cxx
r191 r198 44 44 /// 45 45 FindPter::~FindPter () 46 { 46 { 47 47 m_Document = NULL; 48 48 // This also deletes the find results. … … 92 92 m_Document->goToPage (m_FindPage); 93 93 } 94 else 94 else 95 95 { 96 96 G_LOCK (cancelJob); … … 247 247 { 248 248 g_assert ( NULL != view && "Tried to set a NULL view."); 249 249 250 250 m_View = view; 251 251 m_View->setPresenter (this); -
trunk/src/IFindView.h
r172 r198 38 38 /// @brief Destroys all allocated memory for IFindView. 39 39 /// 40 virtual ~IFindView (void) 41 { 40 virtual ~IFindView (void) 41 { 42 42 } 43 43 … … 47 47 /// @return The presenter that is controlling the view. 48 48 /// 49 FindPter *getPresenter (void) 50 { 51 return m_Pter; 49 FindPter *getPresenter (void) 50 { 51 return m_Pter; 52 52 } 53 53 54 /// 54 /// 55 55 /// @brief Sets the view's presenter. 56 56 /// … … 60 60 /// @param pter The presenter that will control the view. 61 61 /// 62 virtual void setPresenter (FindPter *pter) 63 { 64 m_Pter = pter; 62 virtual void setPresenter (FindPter *pter) 63 { 64 m_Pter = pter; 65 65 } 66 66 … … 91 91 /// 92 92 virtual void sensitiveFindNext (gboolean sensitive) = 0; 93 93 94 94 /// 95 95 /// @brief Sensitives the Find Next button. … … 118 118 /// @brief Constructs a new IFindView object. 119 119 /// 120 IFindView (void) 121 { 122 m_Pter = NULL; 120 IFindView (void) 121 { 122 m_Pter = NULL; 123 123 } 124 124 }; -
trunk/src/Makefile.am
r196 r198 31 31 IMainView.h \ 32 32 IPageView.h \ 33 IPreferencesView.h \ 33 34 JobFind.cxx \ 34 35 JobFind.h \ … … 42 43 PagePter.h \ 43 44 PDFDocument.cxx \ 44 PDFDocument.h 45 PDFDocument.h \ 46 PreferencesPter.cxx \ 47 PreferencesPter.h 45 48 46 49 libepdfview_a_CXXFLAGS = \ -
trunk/src/epdfview.h
r196 r198 42 42 #include <IFindView.h> 43 43 #include <IPageView.h> 44 #include <IPreferencesView.h> 44 45 #include <IMainView.h> 45 46 #include <FindPter.h> 46 47 #include <PagePter.h> 48 #include <PreferencesPter.h> 47 49 #include <MainPter.h> 48 50 -
trunk/tests/DumbFindView.h
r173 r198 26 26 DumbFindView (void); 27 27 ~DumbFindView (void); 28 28 29 29 const gchar *getTextToFind (void); 30 30 void hide (void); … … 32 32 void sensitiveFindPrevious (gboolean sensitive); 33 33 void setInformationText (const gchar *text); 34 34 35 35 // Methods for test only purposes. 36 36 const gchar *getInformationText (void); 37 37 gboolean isFindNextSensitive (void); 38 gboolean isFindPreviousSensitive (void); 38 gboolean isFindPreviousSensitive (void); 39 39 void setTextToFind (const gchar *text); 40 40 41 protected: 41 protected: 42 42 gboolean m_FindNextSensitive; 43 43 gboolean m_FindPreviousSensitive; -
trunk/tests/FindPterTest.cxx
r194 r198 44 44 m_View = new DumbFindView (); 45 45 m_FindPter->setView (m_View); 46 46 47 47 G_LOCK (JobRender); 48 48 JobRender::m_CanProcessJobs = TRUE; -
trunk/tests/Makefile.am
r182 r198 22 22 DumbPageView.cxx \ 23 23 DumbPageView.h \ 24 DumbPreferencesView.cxx \ 25 DumbPreferencesView.h \ 24 26 FindPterTest.cxx \ 25 27 FindPterTest.h \ … … 31 33 PDFDocumentTest.cxx \ 32 34 PDFDocumentTest.h \ 35 PreferencesPterTest.cxx \ 36 PreferencesPterTest.h \ 33 37 Utils.cxx \ 34 38 Utils.h 35 39 36 40 37 test_epdfview_CXXFLAGS = \38 -DTEST_DIR='"$(top_srcdir)/tests/"' \39 -I$(top_srcdir)/src \40 $(GLIB_CFLAGS) \41 test_epdfview_CXXFLAGS = \ 42 -DTEST_DIR='"$(top_srcdir)/tests/"' \ 43 -I$(top_srcdir)/src \ 44 $(GLIB_CFLAGS) \ 41 45 $(CPPUNIT_CFLAGS) 42 46
