summaryrefslogtreecommitdiff
path: root/winrt/winapp/MainPage.xaml.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-05-04 22:59:31 -0700
committerRobin Watts <robin.watts@artifex.com>2013-05-16 19:25:44 +0100
commitced8337a902cfb9988d014c099b90b2b66212825 (patch)
treec91a41d504b4cbddec169a2e5e4a2a5031863ad4 /winrt/winapp/MainPage.xaml.h
parent4bbdac7510e0a02f86fd00629a8b344d85404528 (diff)
downloadmupdf-ced8337a902cfb9988d014c099b90b2b66212825.tar.xz
Major changes in the entire design.
Initial commit of this and it has several issues that have to be worked through. Lots of broken stuff but I needed to get it in place. Added 2 new classes. One is muctx which contains all the interfacing to mupdf and uses standard c++ types. The other is mudocument which interfaces between muctx and the WinRT world. It passes WinRT objects to and from applications which can be written in C++, C#, Visual Basic, Javascript etc. mudocument and muctx will reside in a winRT DLL. The Viewer application (c++ version) is now in mupdf_cpp project and now has a flip view structure that includes a scroll viewer which has data binding to a collection. This enables much easier zooming and updating, however I am still trying how to bind the canvas elements that contain the text search or link information.
Diffstat (limited to 'winrt/winapp/MainPage.xaml.h')
-rw-r--r--winrt/winapp/MainPage.xaml.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/winrt/winapp/MainPage.xaml.h b/winrt/winapp/MainPage.xaml.h
index 3b1b1530..47e1bfab 100644
--- a/winrt/winapp/MainPage.xaml.h
+++ b/winrt/winapp/MainPage.xaml.h
@@ -30,6 +30,15 @@ using namespace Windows::UI::Xaml::Shapes;
using namespace Windows::Foundation::Collections;
using namespace Platform::Collections;
using namespace ListViewContents;
+using namespace Windows::UI::ViewManagement;
+using namespace Windows::UI::Popups;
+using namespace Windows::UI::Xaml::Navigation;
+
+typedef enum
+{
+ StatusMessage,
+ ErrorMessage
+} NotifyType_t;
typedef enum {
REN_AVAILABLE = 0,
@@ -126,6 +135,7 @@ namespace winapp
cancellation_token_source m_ThumbCancel;
fz_link *m_links;
content_t m_content;
+ TextBlock^ m_StatusBlock;
bool m_zoom_mode;
bool m_from_doubleflip;
bool m_scaling_occured;
@@ -193,5 +203,11 @@ namespace winapp
void RichGridManipulationDelta(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs^ e);
void RichGridManipulationStarted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationStartedRoutedEventArgs^ e);
void RichGridManipulationCompleted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs^ e);
+ void topAppBar_Loaded(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
+ void UpdateAppBarButtonViewState();
+ bool EnsureUnsnapped();
+ void NotifyUser(String^ strMessage, NotifyType_t type);
+ void ExitInvokedHandler(Windows::UI::Popups::IUICommand^ command);
+ void OKInvokedHandler(Windows::UI::Popups::IUICommand^ command);
};
}