diff --git a/Icarus/Constants/ConstIni.vb b/Icarus/Constants/ConstIni.vb
index a6c69ad..2460a34 100644
--- a/Icarus/Constants/ConstIni.vb
+++ b/Icarus/Constants/ConstIni.vb
@@ -20,27 +20,15 @@ Public Module ConstIni
'Public Const K_LICENCE As String = "Licence"
'Public Const K_USERLEVEL As String = "UserLevel"
'Public Const K_MAXINST As String = "MaxInstances"
- Public Const K_MAXCAMINST As String = "MaxCamInstances"
- Public Const K_VIEWOPTIM_INSTANCES As String = "ViewOptimInstances"
- Public Const K_SUPERVISOR_INSTANCES As String = "SupervisorInstances"
+ 'Public Const K_INSTANCES As String = "Instances"
'Public Const K_COMMANDLOG As String = "CommandLog"
'Public Const K_MESSAGESDIR As String = "MessagesDir"
'Public Const K_MESSAGES As String = "Messages"
'Public Const K_WINPLACE As String = "WinPlace"
'Public Const K_LASTPROJ As String = "LastProj"
Public Const K_LASTNGEDIR As String = "LastNgeDir"
- 'Public Const K_AUTOLOADLASTPROJ As String = "AutoLoadLastProj"
Public Const K_LASTIMPDIR As String = "LastImpDir"
- Public Const K_LASTNGEXPDIR As String = "LastNgexpDir"
- Public Const K_LASTUPDATEDIR As String = "LastUpdateDir"
- Public Const K_PROJSINDEX As String = "ProjsIndex"
- Public Const K_PRODSINDEX As String = "ProdsIndex"
'Public Const K_SUPPORT As String = "Support"
- Public Const K_WAREHOUSE As String = "Warehouse"
- Public Const K_DBADDRESS As String = "DbAddress"
- Public Const K_DBMASTERKEY As String = "DbMasterKey"
- Public Const K_UPDATEBTL As String = "UpdateBtl"
- Public Const K_DATADIR As String = "DataDir"
'Public Const S_LANGUAGES As String = "Languages"
'Public Const K_LANGUAGE As String = "Language"
@@ -68,7 +56,6 @@ Public Module ConstIni
'Public Const K_MARK As String = "Mark"
'Public Const K_SELSURF As String = "SelSurf"
'Public Const K_SHOWMODE As String = "ShowMode"
- Public Const K_SHOWBUILDING As String = "ShowBuilding"
'Public Const K_CURVEDIR As String = "CurveDir"
'Public Const K_SHOWTRIAADV As String = "ShowTriaAdv"
Public Const K_LINEWIDTH As String = "LineWidth"
diff --git a/Icarus/DispositionPanel/DispositionPanelVM.vb b/Icarus/DispositionPanel/DispositionPanelVM.vb
index 9274e6f..07fe33c 100644
--- a/Icarus/DispositionPanel/DispositionPanelVM.vb
+++ b/Icarus/DispositionPanel/DispositionPanelVM.vb
@@ -183,7 +183,7 @@ Public Class DispositionPanelVM
EgtSelectObj(Map.refTopPanelVM.SelPart.nPartId)
End Sub
- Friend Sub UpdateUi()
+ Friend Sub UpdateUI()
RefreshPos()
If m_bRotating Then
m_bRotating = False
diff --git a/Icarus/Icarus.vbproj b/Icarus/Icarus.vbproj
index 90c8b6d..5cee053 100644
--- a/Icarus/Icarus.vbproj
+++ b/Icarus/Icarus.vbproj
@@ -45,6 +45,7 @@
pdbonlyx64true
+ trueResources\Icarus.ico
@@ -563,6 +564,9 @@
+
+
+ IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\Icarus\IcarusR64.exe
diff --git a/Icarus/MainWindow/MainWindowM.vb b/Icarus/MainWindow/MainWindowM.vb
index adf5a64..f06df06 100644
--- a/Icarus/MainWindow/MainWindowM.vb
+++ b/Icarus/MainWindow/MainWindowM.vb
@@ -273,12 +273,12 @@ Public Class MainWindowM
' Prima istanza
m_nInstance = 1
' Aggiorno stato istanze attive
- WriteMainPrivateProfileString(S_GENERAL, K_VIEWOPTIM_INSTANCES, m_nInstance.ToString())
+ WriteMainPrivateProfileString(S_GENERAL, K_INSTANCES, m_nInstance.ToString())
Else
' Leggo il massimo numero di istanze ammesse
Dim nMaxInst As Integer = GetMaxInstances()
' Cerco il primo indice di istanza libero
- Dim nTmp As Integer = GetMainPrivateProfileInt(S_GENERAL, K_VIEWOPTIM_INSTANCES, 0)
+ Dim nTmp As Integer = GetMainPrivateProfileInt(S_GENERAL, K_INSTANCES, 0)
m_nInstance = 1
Dim nMask As Integer = 1
While (nTmp And nMask) <> 0 And m_nInstance <= MAX_INST
@@ -314,7 +314,7 @@ Public Class MainWindowM
End If
' Aggiorno stato istanze attive
nTmp += (1 << (m_nInstance - 1))
- WriteMainPrivateProfileString(S_GENERAL, K_VIEWOPTIM_INSTANCES, nTmp.ToString())
+ WriteMainPrivateProfileString(S_GENERAL, K_INSTANCES, nTmp.ToString())
End If
End Sub
@@ -328,20 +328,14 @@ Public Class MainWindowM
Return 1 ' Max(1, Min(nMaxInst, MAX_INST))
End Function
- Friend Function GetMaxCamInstances() As Integer
- ' Leggo il massimo numero di istanze ammesse
- Dim nMaxInst As Integer = GetMainPrivateProfileInt(S_GENERAL, K_MAXCAMINST, 1)
- Return Max(1, Min(nMaxInst, MAX_INST))
- End Function
-
Friend Sub Close()
' Terminazione generale di EgtInterface
EgtExit()
' Aggiorno istanze usate
m_objMutex.WaitOne(1000)
- Dim nTmp As Integer = GetMainPrivateProfileInt(S_GENERAL, K_VIEWOPTIM_INSTANCES, 0)
+ Dim nTmp As Integer = GetMainPrivateProfileInt(S_GENERAL, K_INSTANCES, 0)
nTmp -= (1 << (m_nInstance - 1))
- WriteMainPrivateProfileString(S_GENERAL, K_VIEWOPTIM_INSTANCES, nTmp.ToString())
+ WriteMainPrivateProfileString(S_GENERAL, K_INSTANCES, nTmp.ToString())
m_objMutex.ReleaseMutex()
' Rilascio mutex
If Not IsNothing(m_objMutex) Then m_objMutex.Close()
diff --git a/Icarus/ProjManager/ProjManagerVM.vb b/Icarus/ProjManager/ProjManagerVM.vb
index db2acab..4a3871c 100644
--- a/Icarus/ProjManager/ProjManagerVM.vb
+++ b/Icarus/ProjManager/ProjManagerVM.vb
@@ -353,13 +353,13 @@ Public Class ProjManagerVM
' Recupero file del progetto corrente
Dim sCurrProject As String = String.Empty
EgtGetCurrFilePath(sCurrProject)
- ' se nome file vuoto, chiedo se si vuole salvare
- If String.IsNullOrWhiteSpace(sCurrProject) Then
+ ' se nome file vuoto o con estensione non valida, chiedo se si vuole salvare
+ If String.IsNullOrWhiteSpace(sCurrProject) Or EgtGetFileType(sCurrProject) <> FT.NGE Then
If MessageBox.Show(EgtMsg(MSG_TOPCOMMANDBAR + 11), "", MessageBoxButton.YesNo, MessageBoxImage.Question) = MessageBoxResult.Yes Then
Map.refSceneHostVM.SaveProject()
End If
EgtGetCurrFilePath(sCurrProject)
- ' se modificato, chiedo se si vuole salvare
+ ' se modificato, chiedo se si vuole salvare
Else
If EgtGetModified() Then
If MessageBox.Show(EgtMsg(MSG_TOPCOMMANDBAR + 11), "", MessageBoxButton.YesNo, MessageBoxImage.Question) = MessageBoxResult.Yes Then
diff --git a/Icarus/Resources/TopPanel/Edit.png b/Icarus/Resources/TopPanel/Edit.png
new file mode 100644
index 0000000..14f2b5e
Binary files /dev/null and b/Icarus/Resources/TopPanel/Edit.png differ
diff --git a/Icarus/RibPanel/RibPanelVM.vb b/Icarus/RibPanel/RibPanelVM.vb
index b8d2eb4..3a4b872 100644
--- a/Icarus/RibPanel/RibPanelVM.vb
+++ b/Icarus/RibPanel/RibPanelVM.vb
@@ -481,7 +481,7 @@ Public Class RibPanelVM
Return True
End Function
- Friend Sub UpdateUi()
+ Friend Sub UpdateUI()
' se attiva operazione in piu' passaggi, esco
If Map.refSceneHostVM.MainController.GetContinue() Then Return
End Sub
diff --git a/Icarus/SceneHost/MySceneHostVM.vb b/Icarus/SceneHost/MySceneHostVM.vb
index 158ca0e..2fc25a1 100644
--- a/Icarus/SceneHost/MySceneHostVM.vb
+++ b/Icarus/SceneHost/MySceneHostVM.vb
@@ -214,9 +214,6 @@ Public Class MySceneHostVM
EgtSetTextureMaxLinPixels(nTxrMaxLinPix)
' tipo snap point
MainScene.SetSnapPointType(SP.PT_SKETCH)
- ' visualizzazione assemblato
- Dim nShowBuilding As Boolean = GetMainPrivateProfileInt(S_SCENE, K_SHOWBUILDING, 0) <> 0
- 'Map.refShowBeamPanelVM.SetShowBuilding(nShowBuilding)
' nascondo input box
'Map.refFreeContourInputVM.ResetInputBox()
End Sub
@@ -745,7 +742,6 @@ Public Class MySceneHostVM
End Sub
Private Sub OnOpenProject(sender As Object, sFile As String, bOk As Boolean)
- EgtZoom(ZM.ALL)
WriteMainPrivateProfileString(S_GENERAL, K_LASTNGEDIR, Path.GetDirectoryName(sFile))
If bOk Then
Map.refProjManagerVM.MruFiles.Add(sFile)
@@ -783,12 +779,18 @@ Public Class MySceneHostVM
Map.refTopPanelVM.PartList.Add(NewPart)
nPartId = EgtGetNextPart(nPartId)
End While
-
' seleziono primo pezzo trovato
Map.refTopPanelVM.SelFirstPart()
+
+ ' Impongo visualizzazione tavola
+ Dim nTabLayerId As Integer = EgtGetFirstNameInGroup( GDB_ID.ROOT, TABLE)
+ EgtSetStatus( nTabLayerId, GDB_ST.ON_)
+
' imposto modalita' modifica
Map.refTopPanelVM.SelPage = Pages.MODIFY
+ EgtZoom(ZM.ALL)
+
MainScene.SetStatusNull()
End Sub
@@ -878,12 +880,12 @@ Public Class MySceneHostVM
Select Case Map.refTopPanelVM.SelModifyMode.ModifyMode
'Case ModifyModes.SELECT_
Case ModifyModes.DISPOSITION
- Map.refDispositionPanelVM.UpdateUi()
+ Map.refDispositionPanelVM.UpdateUI()
Case ModifyModes.REFERENCE
Case ModifyModes.STARTMACH
- Map.refStartMachPanelVM.UpdateUi()
+ Map.refStartMachPanelVM.UpdateUI()
Case ModifyModes.RIBS
- Map.refRibPanelVM.UpdateUi()
+ Map.refRibPanelVM.UpdateUI()
Case ModifyModes.SHELLNUMBER
Case ModifyModes.AUXSOLIDS
End Select
diff --git a/Icarus/SliceManager/SliceManagerVM.vb b/Icarus/SliceManager/SliceManagerVM.vb
index 51d8b63..c18693e 100644
--- a/Icarus/SliceManager/SliceManagerVM.vb
+++ b/Icarus/SliceManager/SliceManagerVM.vb
@@ -149,6 +149,8 @@ Public Class SliceManagerVM
MessageBox.Show("Error in code generation! See log file.", "Error", MessageBoxButton.OK, MessageBoxImage.Error)
End If
End If
+ ' Aggiorno intestazione programma
+ Map.refSceneHostVM.EmitTitle()
Return bok
End Function
diff --git a/Icarus/Special-3dPrinting/Printing3DPanelVM.vb b/Icarus/Special-3dPrinting/Printing3DPanelVM.vb
index d20828f..3d872b3 100644
--- a/Icarus/Special-3dPrinting/Printing3DPanelVM.vb
+++ b/Icarus/Special-3dPrinting/Printing3DPanelVM.vb
@@ -12,13 +12,6 @@ Public Class Printing3DPanelVM
End Property
Sub New()
- ' Inizializzo i bottoni leggendoli da file ini
- Dim BtnIndex As Integer = 1
- Dim CurrBtn As ButtonItem = Nothing
- While GetPrivateProfileButton(S_PRINTING3D, K_BUTTON & BtnIndex, Map.refMainWindowVM.MainWindowM.s3dPrintingDir, CurrBtn)
- m_ButtonList.Add(CurrBtn)
- BtnIndex += 1
- End While
End Sub
End Class
diff --git a/Icarus/StartMachPanel/StartMachPanelVM.vb b/Icarus/StartMachPanel/StartMachPanelVM.vb
index 3d39072..c3e0f3f 100644
--- a/Icarus/StartMachPanel/StartMachPanelVM.vb
+++ b/Icarus/StartMachPanel/StartMachPanelVM.vb
@@ -351,7 +351,7 @@ Public Class StartMachPanelVM
Return True
End Function
- Friend Sub UpdateUi()
+ Friend Sub UpdateUI()
' se attiva operazione in piu' passaggi, esco
If Map.refSceneHostVM.MainController.GetContinue() Then Return
Dim NewEntity As StartEntity = Nothing
diff --git a/Icarus/TopPanel/TopPanelV.xaml b/Icarus/TopPanel/TopPanelV.xaml
index 2da32d0..6bb0628 100644
--- a/Icarus/TopPanel/TopPanelV.xaml
+++ b/Icarus/TopPanel/TopPanelV.xaml
@@ -102,7 +102,7 @@
-
+