From 550057bf0665b012d8167d7d54aaa9e606369f56 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Wed, 6 Jul 2016 18:33:16 +0000 Subject: [PATCH] EgtCAM5 : - modifiche varie. --- Application.xaml.vb | 24 +- Base/BaseWindow/BaseWindowView.xaml.vb | 1 + Constants/ConstMsg.vb | 4 +- EgtCAM5.vbproj | 1 + EgtCAM5Resources.xaml | 81 +---- MachiningsDbPage/MachiningTreeView.vb | 8 +- MainWindow/MainWindow.xaml | 4 +- MainWindow/MainWindowViewModel.vb | 46 +-- .../DrawOptionPanelViewModel.vb | 110 +------ .../InputExpander/InputExpanderView.xaml | 20 +- .../InputExpander/InputExpanderViewModel.vb | 288 +++++++++++++++++- ProjectPage/ProjectViewModel.vb | 171 ++++++++--- StatusBar/StatusBarView.xaml | 6 +- StatusBar/StatusBarViewModel.vb | 161 +++++++++- StructureDataForMessenger.vb | 43 +++ ToolsDbPage/ToolTreeView.vb | 24 +- 16 files changed, 675 insertions(+), 317 deletions(-) create mode 100644 StructureDataForMessenger.vb diff --git a/Application.xaml.vb b/Application.xaml.vb index 469afc7..9da270f 100644 --- a/Application.xaml.vb +++ b/Application.xaml.vb @@ -26,12 +26,12 @@ Class Application Friend Const PROJECTPAGE_DESELECTED As String = "ProjectPage_Deselected" ' ProjectPage messages - Friend Const NOTIFYCURRPOSCHANGED As String = "ProjectPage_CurrPosChanged" + Friend Const NOTIFYCURRPOS As String = "NotifyCurrPos" Friend Const NOTIFYINPUTTEXT As String = "NotifyInputText" - Friend Const REGISTERINPUTTEXT As String = "Register_InputText_Text" Friend Const NOTIFYSTATUSOUTPUT As String = "NotifyStatusOutput" Friend Const NOTIFYSTATUSPROGRESS As String = "NotifyStatusProgress" - Friend Const NOTIFYSTATUSSTOP_ISENABLED As String = "NotifyStatusStop_IsEnabled" + Friend Const NOTIFYSTATUSSTOP As String = "NotifyStatusStop" + Friend Const UPDATESTATUSGRID As String = "UpdateStatusGrid" ' GridViewPanel messages Friend Const WIREFRAME As String = "Wireframe" @@ -65,6 +65,8 @@ Class Application Friend Const CPLANE3P As String = "CPlane3P" Friend Const CPLANEPERPOBJ As String = "CPlanePerpObj" Friend Const CPLANEOBJ As String = "CPlaneObj" + + ' DrawPanel messages Friend Const POINT As String = "Point" Friend Const LINE2P As String = "Line2P" Friend Const LINEPDL As String = "LinePDL" @@ -100,6 +102,22 @@ Class Application Friend Const SCALE As String = "Scale" Friend Const OFFSET As String = "Offset" + ' Controller messages + Friend Const SETLASTBOOLEAN As String = "SetLastBoolean" + Friend Const SETLASTINTEGER As String = "SetLastInteger" + Friend Const SHOW As String = "Show" + Friend Const DONE As String = "Done" + + ' DrawOptionPanel messages + Friend Const PREPAREINPUTBOX As String = "PrepareInputBox" + Friend Const SETINPUTBOXTEXT As String = "SetInputBoxText" + Friend Const SETINPUTBOXCHECK As String = "SetInputBoxCheck" + Friend Const ADDINPUTBOXCOMBO As String = "AddInputBoxCombo" + Friend Const RESETINPUTBOX As String = "ResetInputBox" + + ' StatusBar messages + Friend Const STATUSGRIDCOMMAND As String = "StatusGridCommand" + ' ToolsDbPage messages Friend Const REMOVETOOL As String = "RemoveTool" Friend Const ERRORONTOOL As String = "ErrorOnTool" diff --git a/Base/BaseWindow/BaseWindowView.xaml.vb b/Base/BaseWindow/BaseWindowView.xaml.vb index 517ea67..61ebd3b 100644 --- a/Base/BaseWindow/BaseWindowView.xaml.vb +++ b/Base/BaseWindow/BaseWindowView.xaml.vb @@ -11,6 +11,7 @@ Public Class BaseWindowView ' Set this as owned by MainWindow, when this one is rendered Application.Msn.Register(Application.MAINWINDOW_CONTENTRENDERED, Sub() Me.Owner = Application.Current.MainWindow + Me.Focus() End Sub) Application.Msn.Register(Application.MAINWINDOW_ACTIVATED, Sub() 'Me.Topmost = True diff --git a/Constants/ConstMsg.vb b/Constants/ConstMsg.vb index 9b7db7c..1949213 100644 --- a/Constants/ConstMsg.vb +++ b/Constants/ConstMsg.vb @@ -6,8 +6,10 @@ Public Const MSG_EGTCAM5 As Integer = 5000 Public Const MSG_MAINWINDOW As Integer = MSG_EGTCAM5 Public Const MSG_TOOLSDBPAGE As Integer = MSG_EGTCAM5 + 1000 + Public Const MSG_TOOLSERRORS As Integer = MSG_EGTCAM5 + 1085 Public Const MSG_MACHININGSDBPAGE As Integer = MSG_EGTCAM5 + 1100 - 'Public Const MSG_MANUALAXESMOVEPAGEUC As Integer = MSG_OMAGCUT + 220 + Public Const MSG_MACHININGSERRORS As Integer = MSG_EGTCAM5 + 1220 + 'Public Const MSG_MANUALAXESMOVEPAGEUC As Integer = MSG_OMAGCUT + 220 'Public Const MSG_CADCUTPAGEUC As Integer = MSG_OMAGCUT + 300 'Public Const MSG_NESTPAGEUC As Integer = MSG_OMAGCUT + 330 'Public Const MSG_SPLITPAGEUC As Integer = MSG_OMAGCUT + 340 diff --git a/EgtCAM5.vbproj b/EgtCAM5.vbproj index 339e4e0..723532f 100644 --- a/EgtCAM5.vbproj +++ b/EgtCAM5.vbproj @@ -158,6 +158,7 @@ + ToolsDbView.xaml diff --git a/EgtCAM5Resources.xaml b/EgtCAM5Resources.xaml index 5d26a7f..f9799d6 100644 --- a/EgtCAM5Resources.xaml +++ b/EgtCAM5Resources.xaml @@ -4,6 +4,8 @@ xmlns:local="clr-namespace:EgtCAM5" xmlns:ViewModel="clr-namespace:EgtCAM5.EgtCAM5"> + + - - - - - - + + - - - + + + -