Changeset 99
- Timestamp:
- 04/20/06 13:09:22 (2 years ago)
- Files:
-
- trunk/src/IMainView.h (modified) (1 diff)
- trunk/src/MainPter.cxx (modified) (6 diffs)
- trunk/src/MainPter.h (modified) (1 diff)
- trunk/src/gtk/MainView.cxx (modified) (12 diffs)
- trunk/src/gtk/MainView.h (modified) (1 diff)
- trunk/tests/DumbMainView.cxx (modified) (3 diffs)
- trunk/tests/DumbMainView.h (modified) (3 diffs)
- trunk/tests/MainPterTest.cxx (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/IMainView.h
r97 r99 42 42 /// 43 43 virtual ~IMainView (void) {} 44 45 /// 46 /// @brief Actives or desactives the zoom to fit. 47 /// 48 /// The view must change the state of the zoom to fit option 49 /// to @a active. 50 /// 51 /// @param active TRUE if the option must be actived, FALSE 52 /// otherwise. 53 /// 54 virtual void activeZoomFit (gboolean active) = 0; 55 56 /// 57 /// @brief Actives or desactives the zoom to width. 58 /// 59 /// The view must change the state of the zoom to width option 60 /// to @a active. 61 /// 62 /// @param active TRUE if the option must be actived, FALSE 63 /// otherwise. 64 /// 65 virtual void activeZoomWidth (gboolean active) = 0; 44 66 45 67 /// trunk/src/MainPter.cxx
r97 r99 96 96 view.sensitiveZoomFit (TRUE); 97 97 view.sensitiveZoomWidth (TRUE); 98 view.activeZoomFit (Config::getConfig ().zoomToFit ()); 99 view.activeZoomWidth (Config::getConfig ().zoomToWidth ()); 98 100 view.setTotalPages (m_Document->getNumPages ()); 99 101 … … 289 291 290 292 /// 293 /// @brief The page view has been resized. 294 /// 295 /// @param width The new with of the page view. 296 /// @param height The new height of the page view. 297 /// 298 void 299 MainPter::pageViewResized (gint width, gint height) 300 { 301 static gint lastWidth = -1; 302 static gint lastHeight = -1; 303 304 if ( !m_Document->isLoaded() || 305 ( lastWidth == width && lastHeight == height) ) 306 { 307 return; 308 } 309 310 lastWidth = width; 311 lastHeight = height; 312 313 Config &config = Config::getConfig (); 314 315 if ( config.zoomToFit () ) 316 { 317 m_Document->zoomToFit (width, height); 318 showPage (); 319 } 320 else if ( config.zoomToWidth () ) 321 { 322 m_Document->zoomToWidth (width); 323 showPage (); 324 } 325 } 326 327 /// 291 328 /// @brief The "Reload" was activated. 292 329 /// … … 339 376 /// @brief The "Zoom Fit Best" was activated. 340 377 /// 341 void 342 MainPter::zoomFitActivated (void) 378 /// @param active TRUE if the Zoom fit best is active, FALSE otherwise. 379 /// 380 void 381 MainPter::zoomFitActivated (gboolean active) 343 382 { 344 383 g_assert ( NULL != m_Document && "Tried to zoom fit a NULL document."); 345 384 346 gint width; 347 gint height; 348 getView ().getPageViewSize (&width, &height); 349 m_Document->zoomToFit (width, height); 350 showPage (); 385 Config &config = Config::getConfig (); 386 config.setZoomToFit (active); 387 IMainView &view = getView (); 388 view.activeZoomFit (config.zoomToFit ()); 389 view.activeZoomWidth (config.zoomToWidth ()); 390 if ( active ) 391 { 392 gint width; 393 gint height; 394 view.getPageViewSize (&width, &height); 395 m_Document->zoomToFit (width, height); 396 showPage (); 397 } 351 398 } 352 399 … … 359 406 g_assert ( NULL != m_Document && "Tried to zoom in a NULL document."); 360 407 408 Config &config = Config::getConfig (); 409 config.setZoomToFit (FALSE); 410 config.setZoomToWidth (FALSE); 411 412 IMainView &view = getView (); 413 view.activeZoomFit (FALSE); 414 view.activeZoomWidth (FALSE); 415 361 416 m_Document->zoomIn (); 362 417 showPage (); … … 371 426 g_assert ( NULL != m_Document && "Tried to zoom out a NULL document."); 372 427 428 Config &config = Config::getConfig (); 429 config.setZoomToFit (FALSE); 430 config.setZoomToWidth (FALSE); 431 432 IMainView &view = getView (); 433 view.activeZoomFit (FALSE); 434 view.activeZoomWidth (FALSE); 435 373 436 m_Document->zoomOut (); 374 437 showPage (); … … 378 441 /// @brief The "Zoom Fit Width" was activated. 379 442 /// 380 void 381 MainPter::zoomWidthActivated (void) 443 /// @param active TRUE if the zoom to width option is actived, false otherwise. 444 /// 445 void 446 MainPter::zoomWidthActivated (gboolean active) 382 447 { 383 448 g_assert ( NULL != m_Document && "Tried to zoom width a NULL document."); 384 449 385 gint width; 386 gint height; 387 getView ().getPageViewSize (&width, &height); 388 m_Document->zoomToWidth (width); 389 showPage (); 450 Config &config = Config::getConfig (); 451 config.setZoomToWidth (active); 452 IMainView &view = getView (); 453 view.activeZoomFit (config.zoomToFit ()); 454 view.activeZoomWidth (config.zoomToWidth ()); 455 if ( active ) 456 { 457 gint width; 458 gint height; 459 view.getPageViewSize (&width, &height); 460 m_Document->zoomToWidth (width); 461 showPage (); 462 } 390 463 } 391 464 trunk/src/MainPter.h
r71 r99 54 54 void openFileActivated (void); 55 55 void outlineActivated (DocumentOutline *outline); 56 void pageViewResized (gint width, gint height); 56 57 void reloadActivated (void); 57 58 void rotateLeftActivated (void); 58 59 void rotateRightActivated (void); 59 void zoomFitActivated ( void);60 void zoomFitActivated (gboolean active); 60 61 void zoomInActivated (void); 61 62 void zoomOutActivated (void); 62 void zoomWidthActivated ( void);63 void zoomWidthActivated (gboolean active); 63 64 64 65 protected: trunk/src/gtk/MainView.cxx
r97 r99 46 46 static void main_window_open_file_cb (GtkWidget *, gpointer); 47 47 static void main_window_outline_cb (GtkTreeSelection *, gpointer); 48 static void main_window_page_view_resized_cb (GtkWidget *, GtkAllocation *, 49 gpointer); 48 50 static void main_window_quit_cb (GtkWidget *, gpointer); 49 51 static void main_window_show_sidebar_cb (GtkToggleAction *, gpointer); 50 52 static void main_window_show_statusbar_cb (GtkToggleAction *, gpointer); 51 53 static void main_window_show_toolbar_cb (GtkToggleAction *, gpointer); 52 static void main_window_zoom_fit_cb (Gtk Widget*, gpointer);54 static void main_window_zoom_fit_cb (GtkToggleAction *, gpointer); 53 55 static void main_window_zoom_in_cb (GtkWidget *, gpointer); 54 56 static void main_window_zoom_out_cb (GtkWidget *, gpointer); 55 static void main_window_zoom_width_cb (Gtk Widget*, gpointer);57 static void main_window_zoom_width_cb (GtkToggleAction *, gpointer); 56 58 57 59 // The actions for menus and toolbars. … … 83 85 G_CALLBACK (main_window_zoom_out_cb) }, 84 86 85 { "ZoomFit", GTK_STOCK_ZOOM_FIT, N_("Zoom to _Fit"), NULL,86 N_("Make the current document fill the window"),87 G_CALLBACK (main_window_zoom_fit_cb) },88 89 { "ZoomWidth", EPDFVIEW_STOCK_ZOOM_WIDTH, N_("Zoom to _Width"), NULL,90 N_("Make the current document fill the window width"),91 G_CALLBACK (main_window_zoom_width_cb) },92 93 87 { "RotateRight", EPDFVIEW_STOCK_ROTATE_RIGHT, N_("Rotate _Right"), NULL, 94 88 N_("Rotate the document 90 degrees clockwise"), … … 130 124 { "ShowSideBar", NULL, N_("Show O_utline"), NULL, 131 125 N_("Show or hide the document's outline"), 132 G_CALLBACK (main_window_show_sidebar_cb), FALSE } 126 G_CALLBACK (main_window_show_sidebar_cb), FALSE }, 127 128 { "ZoomFit", GTK_STOCK_ZOOM_FIT, N_("Zoom to _Fit"), NULL, 129 N_("Make the current document fill the window"), 130 G_CALLBACK (main_window_zoom_fit_cb), FALSE }, 131 132 { "ZoomWidth", EPDFVIEW_STOCK_ZOOM_WIDTH, N_("Zoom to _Width"), NULL, 133 N_("Make the current document fill the window width"), 134 G_CALLBACK (main_window_zoom_width_cb), FALSE } 135 133 136 }; 134 137 … … 190 193 } 191 194 195 void 196 MainView::activeZoomFit (gboolean active) 197 { 198 GtkAction *zoomFit = 199 gtk_ui_manager_get_action (m_UIManager, "/MenuBar/ViewMenu/ZoomFit"); 200 gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (zoomFit), active); 201 } 202 203 void 204 MainView::activeZoomWidth (gboolean active) 205 { 206 GtkAction *zoomWidth = 207 gtk_ui_manager_get_action (m_UIManager, "/MenuBar/ViewMenu/ZoomWidth"); 208 gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (zoomWidth), active); 209 } 192 210 193 211 gchar * … … 513 531 GTK_POLICY_AUTOMATIC, 514 532 GTK_POLICY_AUTOMATIC); 533 // When resizing. 534 g_signal_connect (G_OBJECT (m_PageViewScroll), "size-allocate", 535 G_CALLBACK (main_window_page_view_resized_cb), m_Pter); 536 // The actual image, 515 537 m_PageView = gtk_image_new (); 516 538 gtk_misc_set_padding (GTK_MISC (m_PageView), … … 586 608 gtk_action_group_add_toggle_actions (actionGroup, g_ToggleEntries, 587 609 G_N_ELEMENTS (g_ToggleEntries), 588 this);610 m_Pter); 589 611 m_UIManager = gtk_ui_manager_new (); 590 612 gtk_ui_manager_insert_action_group (m_UIManager, actionGroup, 0); … … 919 941 } 920 942 } 943 944 /// 945 /// @brief The page view has been resized. 946 static void 947 main_window_page_view_resized_cb (GtkWidget *widget, GtkAllocation *allocation, 948 gpointer data) 949 { 950 g_assert ( NULL != data && "The data parameter is NULL."); 951 952 gint scrollSize = SCROLLBARS_SIZE + PAGE_VIEW_PADDING * 2; 953 gint width = allocation->width - scrollSize; 954 gint height = allocation->height - scrollSize; 955 MainPter *pter = (MainPter *)data; 956 pter->pageViewResized (width, height); 957 } 958 921 959 /// 922 960 /// @brief Called when the window is closed or Quit is activated. … … 936 974 g_assert ( NULL != data && "The data parameter is NULL."); 937 975 938 MainView *view = (MainView *)data;939 view->showSidebar (gtk_toggle_action_get_active (action));976 // MainView *view = (MainView *)data; 977 // view->showSidebar (gtk_toggle_action_get_active (action)); 940 978 } 941 979 … … 948 986 g_assert ( NULL != data && "The data parameter is NULL."); 949 987 950 MainView *view = (MainView *)data;951 view->showStatusbar (gtk_toggle_action_get_active (action));988 // MainView *view = (MainView *)data; 989 // view->showStatusbar (gtk_toggle_action_get_active (action)); 952 990 } 953 991 … … 960 998 g_assert ( NULL != data && "The data parameter is NULL."); 961 999 962 MainView *view = (MainView *)data;963 view->showToolbar (gtk_toggle_action_get_active (action));1000 // MainView *view = (MainView *)data; 1001 // view->showToolbar (gtk_toggle_action_get_active (action)); 964 1002 } 965 1003 … … 968 1006 /// 969 1007 void 970 main_window_zoom_fit_cb (Gtk Widget *widget, gpointer data)971 { 972 g_assert ( NULL != data && "The data parameter is NULL."); 973 974 MainPter *pter = (MainPter *)data; 975 pter->zoomFitActivated ( );1008 main_window_zoom_fit_cb (GtkToggleAction *action, gpointer data) 1009 { 1010 g_assert ( NULL != data && "The data parameter is NULL."); 1011 1012 MainPter *pter = (MainPter *)data; 1013 pter->zoomFitActivated (gtk_toggle_action_get_active (action)); 976 1014 } 977 1015 … … 1004 1042 /// 1005 1043 void 1006 main_window_zoom_width_cb (Gtk Widget *widget, gpointer data)1007 { 1008 g_assert ( NULL != data && "The data parameter is NULL."); 1009 1010 MainPter *pter = (MainPter *)data; 1011 pter->zoomWidthActivated ( );1012 } 1044 main_window_zoom_width_cb (GtkToggleAction *action, gpointer data) 1045 { 1046 g_assert ( NULL != data && "The data parameter is NULL."); 1047 1048 MainPter *pter = (MainPter *)data; 1049 pter->zoomWidthActivated (gtk_toggle_action_get_active (action)); 1050 } trunk/src/gtk/MainView.h
r97 r99 31 31 MainView (MainPter *pter); 32 32 ~MainView (); 33 33 34 void activeZoomFit (gboolean active); 35 void activeZoomWidth (gboolean active); 34 36 gchar *openFileDialog (const gchar *lastFolder); 35 37 gchar *promptPasswordDialog (void); trunk/tests/DumbMainView.cxx
r97 r99 53 53 m_TimesShownPassword = 0; 54 54 m_TotalPages = 0; 55 m_ZoomToFit = FALSE; 56 m_ZoomToWidth = FALSE; 55 57 } 56 58 … … 64 66 } 65 67 68 void 69 DumbMainView::activeZoomFit (gboolean active) 70 { 71 m_ZoomToFit = active; 72 } 73 74 void 75 DumbMainView::activeZoomWidth (gboolean active) 76 { 77 m_ZoomToWidth = active; 78 } 79 66 80 gchar * 67 81 DumbMainView::openFileDialog (const gchar *lastFolder) … … 348 362 { 349 363 return m_ShownSidebar; 364 } 365 366 gboolean 367 DumbMainView::isZoomToFitActive () 368 { 369 return m_ZoomToFit; 370 } 371 372 gboolean 373 DumbMainView::isZoomToWidthActive () 374 { 375 return m_ZoomToWidth; 350 376 } 351 377 trunk/tests/DumbMainView.h
r97 r99 28 28 ~DumbMainView (); 29 29 30 void activeZoomFit (gboolean active); 31 void activeZoomWidth (gboolean active); 30 32 gchar *openFileDialog (const gchar *lastFolder); 31 33 gchar *promptPasswordDialog (void); … … 75 77 gboolean isSensitiveZoomWidth (void); 76 78 gboolean isShownSidebar (void); 79 gboolean isZoomToFitActive (void); 80 gboolean isZoomToWidthActive (void); 77 81 void setOpenFileName (const gchar *fileName); 78 82 void setPassword (const gchar *password); … … 105 109 gchar *m_Title; 106 110 gint m_TotalPages; 111 gboolean m_ZoomToFit; 112 gboolean m_ZoomToWidth; 107 113 }; 108 114 } trunk/tests/MainPterTest.cxx
r98 r99 559 559 m_MainPter->openFileActivated (); 560 560 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 561 CPPUNIT_ASSERT (!m_View->hasImagePageView ());562 561 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 563 562 564 563 // OK, now try to zoom width. Since rotation is 0 565 564 // the zoom level should be 75/100 = 0.75 566 m_MainPter->zoomWidthActivated ( );567 CPPUNIT_ASSERT (m_View-> hasImagePageView());568 CPPUNIT_ASSERT ( !m_View->hasImagePageView ());565 m_MainPter->zoomWidthActivated (TRUE); 566 CPPUNIT_ASSERT (m_View->isZoomToWidthActive ()); 567 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 569 568 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001); 569 570 // Now change the view size. We do this calling the main presenter's 571 // function instead of the view, because the view here don't have anything 572 // to do. 573 // The new zoom should be 50/100 = 0.5 574 m_MainPter->pageViewResized (50, 50); 575 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 576 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.5, m_Document->getZoom (), 0.0001); 577 578 m_MainPter->pageViewResized (75, 50); 579 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 580 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001); 581 582 // If we desactive the zoom to width, no resizing changes the 583 // zoom. 584 m_MainPter->zoomWidthActivated (FALSE); 585 CPPUNIT_ASSERT (!m_View->isZoomToWidthActive ()); 586 m_MainPter->pageViewResized (50, 50); 587 CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 588 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001); 589 m_MainPter->pageViewResized (100, 50); 590 CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 591 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.75, m_Document->getZoom (), 0.0001); 592 593 // Now rotate and try again. 594 m_MainPter->rotateRightActivated (); 595 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 596 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 597 // Since rotation is now 90 the zoom level should be 75/250 = 0.3 598 m_MainPter->zoomWidthActivated (TRUE); 599 CPPUNIT_ASSERT (m_View->isZoomToWidthActive ()); 600 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 601 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 602 // Resizing. 50/250 = 0.2 603 m_MainPter->pageViewResized (50, 50); 604 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 605 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001); 606 607 // Changing any of the zoom in or zoom out features should make the 608 // zoom to width not being active. 609 m_MainPter->zoomInActivated (); 610 CPPUNIT_ASSERT (!m_View->isZoomToWidthActive ()); 611 m_MainPter->zoomWidthActivated (TRUE); 612 m_MainPter->zoomOutActivated (); 613 CPPUNIT_ASSERT (!m_View->isZoomToWidthActive ()); 614 } 615 616 /// 617 /// @brief Tests page's zoom to fit 618 /// 619 void 620 MainPterTest::pageZoomFit () 621 { 622 m_View->setOpenFileName ("/tmp/test.pdf"); 623 m_MainPter->openFileActivated (); 624 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 625 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 626 627 // OK, now try to zoom to fit. Since rotation is 0 628 // the zoom level should be 50/250 = 0.2 629 m_MainPter->zoomFitActivated (TRUE); 630 CPPUNIT_ASSERT (m_View->isZoomToFitActive ()); 631 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 632 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001); 633 634 // Resizing the view size. 100/250 = 0.4 635 m_MainPter->pageViewResized (100, 100); 636 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 637 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.4, m_Document->getZoom (), 0.0001); 638 m_MainPter->pageViewResized (100, 50); 639 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 640 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001); 641 642 // Desactivating the zoom to fit. 643 m_MainPter->zoomFitActivated (FALSE); 644 CPPUNIT_ASSERT (!m_View->isZoomToFitActive ()); 645 m_MainPter->pageViewResized (100, 100); 646 CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 647 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001); 648 m_MainPter->pageViewResized (100, 50); 649 CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 650 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001); 570 651 571 652 // Now rotate and try again. … … 575 656 576 657 // Since rotation is now 90 the zoom level should be 75/250 = 0.3 577 m_MainPter->zoomWidthActivated (); 658 m_MainPter->zoomFitActivated (TRUE); 659 CPPUNIT_ASSERT (m_View->isZoomToFitActive ()); 578 660 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 579 661 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 580 } 581 582 /// 583 /// @brief Tests page's zoom to fit 584 /// 585 void 586 MainPterTest::pageZoomFit () 587 { 588 m_View->setOpenFileName ("/tmp/test.pdf"); 589 m_MainPter->openFileActivated (); 590 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 591 CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 592 CPPUNIT_ASSERT_DOUBLES_EQUAL (1.0, m_Document->getZoom (), 0.0001); 593 594 // OK, now try to zoom to fit. Since rotation is 0 595 // the zoom level should be 50/250 = 0.2 596 m_MainPter->zoomFitActivated (); 597 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 598 CPPUNIT_ASSERT (!m_View->hasImagePageView ()); 599 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.2, m_Document->getZoom (), 0.0001); 600 601 // Now rotate and try again. 602 m_MainPter->rotateRightActivated (); 603 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 604 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); 662 // 100/250 = 0.4 663 m_MainPter->pageViewResized (100, 100); 664 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.4, m_Document->getZoom (), 0.0001); 665 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 605 666 606 // Since rotation is now 90 the zoom level should be 75/250 = 0.3 607 m_MainPter->zoomFitActivated (); 608 CPPUNIT_ASSERT_DOUBLES_EQUAL (0.3, m_Document->getZoom (), 0.0001); 609 CPPUNIT_ASSERT (m_View->hasImagePageView ()); 667 // Changing any of the zoom in or zoom out features should make the 668 // zoom to fit not being active. 669 m_MainPter->zoomInActivated (); 670 CPPUNIT_ASSERT (!m_View->isZoomToFitActive ()); 671 m_MainPter->zoomFitActivated (TRUE); 672 m_MainPter->zoomOutActivated (); 673 CPPUNIT_ASSERT (!m_View->isZoomToFitActive ()); 610 674 } 611 675 … … 626 690 m_MainPter->goToNextPageActivated (); 627 691 m_MainPter->rotateRightActivated (); 628 m_MainPter->zoomWidthActivated ( );692 m_MainPter->zoomWidthActivated (TRUE); 629 693 CPPUNIT_ASSERT_EQUAL (2, m_View->getCurrentPage ()); 630 694 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); … … 662 726 m_MainPter->goToNextPageActivated (); 663 727 m_MainPter->rotateRightActivated (); 664 m_MainPter->zoomWidthActivated ( );728 m_MainPter->zoomWidthActivated (TRUE); 665 729 CPPUNIT_ASSERT_EQUAL (2, m_View->getCurrentPage ()); 666 730 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ()); … … 702 766 m_MainPter->goToNextPageActivated (); 703 767 m_MainPter->rotateRightActivated (); 704 m_MainPter->zoomWidthActivated ( );768 m_MainPter->zoomWidthActivated (TRUE); 705 769 CPPUNIT_ASSERT_EQUAL (2, m_View->getCurrentPage ()); 706 770 CPPUNIT_ASSERT_EQUAL (90, m_Document->getRotation ());
