From 2d83f295ffd60ca876fdb52635650d9e92d866ef Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 12 Jan 2016 18:35:06 +0000 Subject: [PATCH] OmagCUT : - in nesting aggiunto allineamento automatico dopo collisione (se abilitato) sia in drag sia con pulsanti - step di rotazione da INI come step di traslazione - all'uscita della simulazione cancello eventuale messaggio relativo. --- ConstIni.vb | 1 + CurrentProjectPageUC.xaml.vb | 4 +- MainWindow.xaml.vb | 2 +- NestPageUC.xaml | 8 ++-- NestPageUC.xaml.vb | 36 +++++++++++++++++- OmagCUT.vbproj | 2 +- OmagCUTDictionary.xaml | 12 ++++++ RawPartPageUC.xaml.vb | 8 ++-- .../{AllignPieces.png => AlignPieces.png} | Bin SimulationPageUC.xaml.vb | 2 + 10 files changed, 62 insertions(+), 13 deletions(-) rename Resources/{AllignPieces.png => AlignPieces.png} (100%) diff --git a/ConstIni.vb b/ConstIni.vb index 7698941..144d34b 100644 --- a/ConstIni.vb +++ b/ConstIni.vb @@ -87,6 +87,7 @@ Module ConstIni Public Const S_NEST As String = "Nest" Public Const K_DIRECT As String = "Direct" Public Const K_STEP As String = "Step" + Public Const K_ANGSTEP As String = "AngStep" Public Const K_REDUCEDCUT As String = "ReducedCut" Public Const K_RESTRADIUS As String = "RestRadius" diff --git a/CurrentProjectPageUC.xaml.vb b/CurrentProjectPageUC.xaml.vb index 6ecfbc3..a199bd5 100644 --- a/CurrentProjectPageUC.xaml.vb +++ b/CurrentProjectPageUC.xaml.vb @@ -66,7 +66,7 @@ Public Class CurrentProjectPageUC End Sub Private Sub CurrentProjectPage_Loaded(sender As Object, e As RoutedEventArgs) - ClearErrorMessage() + ClearMessage() If m_bFirst Then ' imposto colore di default Dim DefColor As New Color3d(0, 0, 0) @@ -466,7 +466,7 @@ Public Class CurrentProjectPageUC EgtOutLog(sMessage) End Sub - Friend Sub ClearErrorMessage() + Friend Sub ClearMessage() OutMessageBrd.Background = Brushes.Transparent OutMessageBrd.Visibility = Windows.Visibility.Hidden End Sub diff --git a/MainWindow.xaml.vb b/MainWindow.xaml.vb index f18bd00..d0b4a05 100644 --- a/MainWindow.xaml.vb +++ b/MainWindow.xaml.vb @@ -717,7 +717,7 @@ Class MainWindow End If ' Se già visualizzato errore, lo nascondo If m_CurrentProjectPageUC.OutMessageBrd.IsMouseOver Then - m_CurrentProjectPageUC.ClearErrorMessage() + m_CurrentProjectPageUC.ClearMessage() End If ' Impedisce di clickare fuori dal NumericKeyboard finchè questo è aperto If Not m_NumericKeyboardWD Is Nothing Then diff --git a/NestPageUC.xaml b/NestPageUC.xaml index 645a5ac..1e867a8 100644 --- a/NestPageUC.xaml +++ b/NestPageUC.xaml @@ -79,11 +79,11 @@ - +