- Timestamp:
- 04/16/06 09:21:47 (3 years ago)
- Location:
- trunk
- Files:
-
- 9 modified
-
src/DocumentOutline.cxx (modified) (4 diffs)
-
src/IDocument.cxx (modified) (1 diff)
-
src/PDFDocument.cxx (modified) (1 diff)
-
src/gtk/MainView.cxx (modified) (1 diff)
-
src/main.cxx (modified) (3 diffs)
-
tests/DocumentOutlineTest.cxx (modified) (1 diff)
-
tests/DumbMainView.cxx (modified) (1 diff)
-
tests/MainPterTest.cxx (modified) (5 diffs)
-
tests/PDFDocumentTest.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DocumentOutline.cxx
r61 r73 21 21 using namespace ePDFView; 22 22 23 // /Forward declarations.23 // Forward declarations. 24 24 static void deleteChild (gpointer child, gpointer userData); 25 25 … … 116 116 /// @brief Gets the number of children for this outline. 117 117 /// 118 /// @return The number of children this utline has.118 /// @return The number of children this outline has. 119 119 /// 120 120 gint … … 173 173 /// 174 174 void 175 DocumentOutline::setTitle (const char *title)175 DocumentOutline::setTitle (const gchar *title) 176 176 { 177 177 g_assert (NULL != title && "Tried to set a NULL title."); … … 184 184 /// @brief Deletes an outline item's child. 185 185 /// 186 /// This function is called by the destructor to delete all child sin186 /// This function is called by the destructor to delete all children in 187 187 /// the m_Children list. 188 188 /// -
trunk/src/IDocument.cxx
r65 r73 687 687 688 688 /// 689 /// @brief Sets the current rotation degre ss.689 /// @brief Sets the current rotation degrees. 690 690 /// 691 691 /// @param rotation The rotation in positive degrees. -
trunk/src/PDFDocument.cxx
r67 r73 221 221 /// @param outline The outline to set the nodes to. The first 222 222 /// call must be set to the root DocumentOutline. 223 /// @param childrenList The list of children for to set to @ outline.223 /// @param childrenList The list of children for to set to @a outline. 224 224 /// The first line must be a call to the getItems() 225 225 /// function from the PDF's outline. -
trunk/src/gtk/MainView.cxx
r72 r73 585 585 } 586 586 587 // Set the previous and next pages tool items important, so they will587 // Set the previous and next pages tool items important, so they will 588 588 // be shown when the toolbar's style is GTK_TOOLBAR_BOTH_HORIZ. 589 589 GtkWidget *prevPage = gtk_ui_manager_get_widget (m_UIManager, -
trunk/src/main.cxx
r71 r73 35 35 /// The presenter to make open the file. 36 36 MainPter *presenter; 37 /// The file name to open.37 /// The file name to open. 38 38 gchar *fileName; 39 39 } OpenFileData; … … 50 50 bind_textdomain_codeset (PACKAGE, "UTF-8"); 51 51 textdomain (PACKAGE); 52 // Create the comman line options context.52 // Create the command line options context. 53 53 GOptionContext *optionContext = 54 54 g_option_context_new (_("[FILE] - view PDF documents")); … … 67 67 MainPter *mainPter = new MainPter (); 68 68 // Now check if we have additional parameters. Any additional parameter 69 // will be a file name to open.69 // will be a file name to open. 70 70 if ( argc > 1 ) 71 71 { -
trunk/tests/DocumentOutlineTest.cxx
r60 r73 98 98 DocumentOutline *outline = m_Document->getOutline (); 99 99 CPPUNIT_ASSERT ( NULL != outline ); 100 // The root outline must be the same emp y one, except it has children.100 // The root outline must be the same empty one, except it has children. 101 101 CPPUNIT_ASSERT_EQUAL (3, outline->getNumChildren ()); 102 102 CPPUNIT_ASSERT (0 == g_ascii_strcasecmp ("", outline->getTitle ())); -
trunk/tests/DumbMainView.cxx
r66 r73 28 28 { 29 29 m_CurrentPage = 0; 30 // This won't be deleted because it's presenter respons ability.30 // This won't be deleted because it's presenter responsibility. 31 31 m_DocumentPage = NULL; 32 32 m_GoToPageText = g_strdup (""); -
trunk/tests/MainPterTest.cxx
r67 r73 39 39 40 40 /// 41 /// @brief Cleans up a dter each test.41 /// @brief Cleans up after each test. 42 42 /// 43 43 void … … 53 53 /// @brief Tests the initial status of the main presenter. 54 54 /// 55 /// Initially the presenter hasn't lo eaded a document, yet, so55 /// Initially the presenter hasn't loaded a document, yet, so 56 56 /// the main window's title is 'PDF Viewer', the page selection 57 /// and zoom actions are unsensitivedand the documentView has57 /// and zoom actions are insensitive and the documentView has 58 58 /// no image yet. Also the side bar won't be displayed, yet. 59 59 /// … … 322 322 CPPUNIT_ASSERT (m_View->isSensitiveGoToPreviousPage ()); 323 323 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 324 // Going to the last will make some unsensitive.324 // Going to the last will make some insensitive. 325 325 m_MainPter->goToLastPageActivated (); 326 326 CPPUNIT_ASSERT_EQUAL (4, m_View->getCurrentPage ()); … … 376 376 /// 377 377 /// The application has a text entry that the user can use to to a 378 /// page just by writ ting the number. Any non number after the first number378 /// page just by writing the number. Any non number after the first number 379 379 /// character will be discarded. 380 380 /// … … 484 484 /// The DumbDocument has a fixed size of 100x250 pixels and the DumbMainView 485 485 /// has a fixed pageView of 75x50. We will make sure that getting to the max 486 /// ZoomIn unsensitives the ZoomIn button. The same for the ZoomOut.486 /// ZoomIn insensitives the ZoomIn button. The same for the ZoomOut. 487 487 /// 488 488 /// Then will test Zoom Fit and Zoom Width with two different rotations. -
trunk/tests/PDFDocumentTest.cxx
r65 r73 307 307 m_Document->goToFirstPage (); 308 308 CPPUNIT_ASSERT_EQUAL (1, m_Document->getCurrentPageNum ()); 309 // Now, let's go to an specific page. If the page is beyo und the309 // Now, let's go to an specific page. If the page is beyond the 310 310 // last page, then the current page will be the last. On the other 311 311 // hand, if the page is less than the first (< 1) then the current … … 349 349 m_Document->goToFirstPage (); 350 350 CPPUNIT_ASSERT_EQUAL (1, m_Document->getCurrentPageNum ()); 351 // Now, let's go to an specific page. If the page is beyo und the351 // Now, let's go to an specific page. If the page is beyond the 352 352 // last page, then the current page will be the last. On the other 353 353 // hand, if the page is less than the first (< 1) then the current
