summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp/MainPage.xaml.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-05-31 08:54:44 -0700
committerRobin Watts <robin.watts@artifex.com>2013-06-03 15:23:28 +0100
commit5ab3dae36c45173236f552ef260c58ec41db6945 (patch)
tree9dd73f383e2534e35e99d6beace381b3154ff4f2 /winrt/mupdf_cpp/MainPage.xaml.h
parent16b8e2856cdfed478039dc29f6a2c6645c14fe69 (diff)
downloadmupdf-5ab3dae36c45173236f552ef260c58ec41db6945.tar.xz
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.
Diffstat (limited to 'winrt/mupdf_cpp/MainPage.xaml.h')
-rw-r--r--winrt/mupdf_cpp/MainPage.xaml.h6
1 files changed, 3 insertions, 3 deletions
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<DocumentPage^>^ m_docPages;
Vector<DocumentPage^>^ 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<int, double>^ operation, double status);
void PasswordOK(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
+ void App_Suspending(Object^ sender, SuspendingEventArgs^ e);
};
}