Ver código fonte

ComPDFKit(win) - 枚举值命名调整

zhuyi 9 meses atrás
pai
commit
eb77980552

+ 3 - 3
Demo/Examples/Annotations/MainWindow.xaml.cs

@@ -244,7 +244,7 @@ namespace AnnotationViewControl
         private void LoadCustomControl()
         {
             regularViewerControl.InitWithPDFViewer(pdfViewer);
-            regularViewerControl.PdfViewControl.PDFViewTool.SetViewerModel(MouseModes.kViewer);
+            regularViewerControl.PdfViewControl.PDFViewTool.SetViewerModel(MouseModes.Viewer);
             regularViewerControl.SetBOTAContainer(null);
             regularViewerControl.SetBOTAContainer(botaBarControl);
             regularViewerControl.SetDisplaySettingsControl(displaySettingsControl);
@@ -321,7 +321,7 @@ namespace AnnotationViewControl
                 if (regularViewerControl.PdfViewControl != null && regularViewerControl.PdfViewControl.PDFViewTool != null)
                 {
                     PDFGrid.Child = regularViewerControl;
-                    regularViewerControl.PdfViewControl.PDFViewTool.SetViewerModel(MouseModes.kViewer);
+                    regularViewerControl.PdfViewControl.PDFViewTool.SetViewerModel(MouseModes.Viewer);
                     regularViewerControl.InitWithPDFViewer(pdfViewer);
                     regularViewerControl.SetBOTAContainer(botaBarControl);
                     regularViewerControl.SetDisplaySettingsControl(displaySettingsControl);
@@ -332,7 +332,7 @@ namespace AnnotationViewControl
                 if (annotationControl.PDFViewControl != null && annotationControl.PDFViewControl.PDFViewTool != null)
                 {
                     PDFGrid.Child = annotationControl;
-                    annotationControl.PDFViewControl.PDFViewTool.SetViewerModel(MouseModes.kViewer);
+                    annotationControl.PDFViewControl.PDFViewTool.SetViewerModel(MouseModes.Viewer);
                     annotationControl.InitWithPDFViewer(pdfViewer);
                     annotationControl.SetBOTAContainer(botaBarControl);
                     annotationControl.SetDisplaySettingsControl(displaySettingsControl);

+ 3 - 3
Demo/Examples/Compdfkit_Tools/Annotation/AnnotationControl/AnnotationControl.xaml.cs

@@ -214,11 +214,11 @@ namespace Compdfkit_Tools.PDFControl
             }
             switch (e.hitTestType)
             {
-                case MouseHitTestType.kAnnot:
-                case MouseHitTestType.kSelectRect:
+                case MouseHitTestType.Annot:
+                case MouseHitTestType.SelectRect:
                     CreateAnnotContextMenu(sender, ref ContextMenu, e.annotType);
                     break;
-                case MouseHitTestType.kText:
+                case MouseHitTestType.Text:
                     CreateSelectTextContextMenu(sender, ref ContextMenu);
                     break;
                 default:

+ 1 - 1
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationControl/CPDFAnnotationControl.xaml.cs

@@ -1015,7 +1015,7 @@ namespace Compdfkit_Tools.PDFControl
             if (e)
             {
                 //pdfViewerControl.PDFToolManager.ClearSelect();
-                pdfViewerControl.PDFViewTool.SetViewerModel(MouseModes.kCustomizeTool);
+                pdfViewerControl.PDFViewTool.SetViewerModel(MouseModes.CustomizeTool);
             }
             else
             {

+ 3 - 3
Demo/Examples/Compdfkit_Tools/DigitalSignature/DigitalSignatureControl/DigitalSignatureControl.xaml.cs

@@ -490,10 +490,10 @@ namespace Compdfkit_Tools.PDFControl
             }
             switch (e.hitTestType)
             {
-                case MouseHitTestType.kAnnot:
-                case MouseHitTestType.kSelectRect:
+                case MouseHitTestType.Annot:
+                case MouseHitTestType.SelectRect:
                     break;
-                case MouseHitTestType.kText:
+                case MouseHitTestType.Text:
                     ContextMenu.Items.Add(new MenuItem() { Header = LanguageHelper.CommonManager.GetString("Menu_Copy"), Command = ApplicationCommands.Copy, CommandTarget = (UIElement)sender });
                     break;
                 default:

+ 3 - 3
Demo/Examples/Compdfkit_Tools/Edit/ContentEditCOntrol/ContentEditControl.xaml.cs

@@ -462,7 +462,7 @@ namespace Compdfkit_Tools.PDFControl
 
         public void PDFView_KeyDown(object sender, KeyEventArgs e)
         {
-            if (PdfViewControl.PDFViewTool.GetViewerModel() != MouseModes.kContentEdit)
+            if (PdfViewControl.PDFViewTool.GetViewerModel() != MouseModes.ContentEdit)
             {
                 return;
             }
@@ -660,8 +660,8 @@ namespace Compdfkit_Tools.PDFControl
             }
             switch (e.hitTestType)
             {
-                case MouseHitTestType.kTextEdit:
-                case MouseHitTestType.kImageEdit:
+                case MouseHitTestType.TextEdit:
+                case MouseHitTestType.ImageEdit:
                     CreateImageEditMenu(sender, ref ContextMenu);
                     break;
                 default:

+ 2 - 2
Demo/Examples/Compdfkit_Tools/Form/FormControl/FormControl.xaml.cs

@@ -345,8 +345,8 @@ namespace Compdfkit_Tools.PDFControl
             }
             switch (e.hitTestType)
             {
-                case MouseHitTestType.kAnnot:
-                case MouseHitTestType.kSelectRect:
+                case MouseHitTestType.Annot:
+                case MouseHitTestType.SelectRect:
                     CreateFormContextMenu(sender, ref ContextMenu, e.annotType);
                     break;
                 default:

+ 3 - 3
Demo/Examples/Compdfkit_Tools/PDFView/RegularViewerControl.xaml.cs

@@ -121,10 +121,10 @@ namespace Compdfkit_Tools.PDFView
             }
             switch (e.hitTestType)
             {
-                case MouseHitTestType.kAnnot:
-                case MouseHitTestType.kSelectRect:
+                case MouseHitTestType.Annot:
+                case MouseHitTestType.SelectRect:
                     break;
-                case MouseHitTestType.kText:
+                case MouseHitTestType.Text:
                     CreateSelectTextContextMenu(sender, ref ContextMenu);
                     break;
                 default:

+ 2 - 2
Demo/Examples/PDFViewer/MainPage.xaml.cs

@@ -343,7 +343,7 @@ namespace PDFViewer
             SignatureHelper.VerifySignatureList(viewControl.GetCPDFViewer().GetDocument());
             digitalSignatureControl.LoadUndoManagerEvent(viewControl.GetCPDFViewer());
             signatureStatusBarControl.SetStatus(SignatureHelper.SignatureList);
-            viewControl.PDFViewTool.SetViewerModel(MouseModes.kViewer);
+            viewControl.PDFViewTool.SetViewerModel(MouseModes.Viewer);
         }
 
         /// <summary>
@@ -598,7 +598,7 @@ namespace PDFViewer
                 {
                     RightPanelButton.Visibility = Visibility.Visible;
                     PDFGrid.Child = measureControl;
-                    viewControl.PDFViewTool.SetViewerModel(MouseModes.kPanTool);
+                    viewControl.PDFViewTool.SetViewerModel(MouseModes.PanTool);
                     measureControl.InitWithPDFViewer(viewControl);
                 }
             }