From 5ab3dae36c45173236f552ef260c58ec41db6945 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Fri, 31 May 2013 08:54:44 -0700 Subject: Added support for keyboard zooming (+/- key). Fixed issues when orientation changes. Also minor fixes for memory leaks in muctx.cpp, and clean up of some of the xaml code. --- winrt/mupdf_cpp/MainPage.xaml.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winrt/mupdf_cpp/MainPage.xaml.h') diff --git a/winrt/mupdf_cpp/MainPage.xaml.h b/winrt/mupdf_cpp/MainPage.xaml.h index 162e0985..bcc590d4 100644 --- a/winrt/mupdf_cpp/MainPage.xaml.h +++ b/winrt/mupdf_cpp/MainPage.xaml.h @@ -29,6 +29,7 @@ using namespace Platform::Collections; using namespace Windows::UI::ViewManagement; using namespace Windows::UI::Popups; using namespace Windows::UI::Xaml::Navigation; +using namespace Windows::ApplicationModel; using namespace mupdfwinrt; typedef enum @@ -64,7 +65,6 @@ namespace mupdf_cpp virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override; virtual void OnKeyDown(Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e) override; - /* added */ private: Vector^ m_docPages; Vector^ m_thumbnails; @@ -92,8 +92,7 @@ namespace mupdf_cpp FlipView^ m_curr_flipView; RenderingStatus_t m_ren_status; cancellation_token_source m_ThumbCancel; - bool m_zoom_mode; // remove - bool m_insearch; /* Used for UI display */ + bool m_insearch; /* Used for UI display */ bool m_search_active; /* Used to avoid multiple UI clicks */ bool m_sliderchange; bool m_update_flip; @@ -152,5 +151,6 @@ namespace mupdf_cpp void LinkTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e); void SearchProgress(IAsyncOperationWithProgress^ operation, double status); void PasswordOK(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e); + void App_Suspending(Object^ sender, SuspendingEventArgs^ e); }; } -- cgit v1.2.3