|
@@ -89,7 +89,9 @@ namespace Compdfkit_Tools.Measure
|
|
|
PdfViewControl.MouseLeftButtonUpHandler -= PDFToolManager_MouseLeftButtonUpHandler;
|
|
|
PdfViewControl.MouseMoveHandler -= PDFToolManager_MouseMoveHandler;
|
|
|
pdfViewControl.MouseRightButtonDownHandler -= PDFToolManager_MouseRightButtonDownHandler;
|
|
|
+ PdfViewControl.PDFViewTool.MeasureChanged -= MeasureSetting_MeasureChanged;
|
|
|
|
|
|
+ PdfViewControl.PDFViewTool.MeasureChanged += MeasureSetting_MeasureChanged;
|
|
|
PdfViewControl.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler;
|
|
|
PdfViewControl.MouseLeftButtonUpHandler += PDFToolManager_MouseLeftButtonUpHandler;
|
|
|
PdfViewControl.MouseMoveHandler += PDFToolManager_MouseMoveHandler;
|
|
@@ -99,6 +101,12 @@ namespace Compdfkit_Tools.Measure
|
|
|
SettingPanel.PdfViewControl= pdfViewControl;
|
|
|
}
|
|
|
|
|
|
+ private void MeasureSetting_MeasureChanged(object sender, MeasureEventArgs e)
|
|
|
+ {
|
|
|
+ InfoPanel.SetMeasureType(e.Type);
|
|
|
+ InfoPanel.SetMeasureInfo(e);
|
|
|
+ }
|
|
|
+
|
|
|
private void PDFToolManager_MouseRightButtonDownHandler(object sender, MouseEventObject e)
|
|
|
{
|
|
|
ContextMenu ContextMenu = PdfViewControl.GetRightMenu();
|
|
@@ -383,6 +391,7 @@ namespace Compdfkit_Tools.Measure
|
|
|
public void ClearAllToolState()
|
|
|
{
|
|
|
PDFMeasureTool.ClearAllToolState();
|
|
|
+ InfoPanel.ClearMeasureInfo();
|
|
|
}
|
|
|
public void ClearViewerControl()
|
|
|
{
|
|
@@ -531,6 +540,7 @@ namespace Compdfkit_Tools.Measure
|
|
|
{
|
|
|
SetInfoPanelVisble(SettingPanel.ReturnToInfoPanel, false);
|
|
|
SettingPanel.SaveMeasureSetting(currentAnnot);
|
|
|
+ InfoPanel.SetMeasureInfo(currentAnnot);
|
|
|
}
|
|
|
|
|
|
public void SetInfoPanelVisble(bool measureInfo, bool measureSetting)
|