diff --git a/Constants/ConstGen.vb b/Constants/ConstGen.vb
index a42f7ea..0c173b2 100644
--- a/Constants/ConstGen.vb
+++ b/Constants/ConstGen.vb
@@ -11,6 +11,7 @@
Public Const K_LOCKID As String = "LockId"
Public Const K_KEY As String = "Key"
Public Const K_NESTKEY As String = "NestKey"
+ Public Const K_LASTEXSTENSIONSAVE As String = "LastExstensionSave"
' File di log generale
Public Const GENLOG_FILE_NAME As String = "EgtStone3D#.txt"
diff --git a/Constants/ConstIni.vb b/Constants/ConstIni.vb
index cea1ee9..26d65ee 100644
--- a/Constants/ConstIni.vb
+++ b/Constants/ConstIni.vb
@@ -11,6 +11,7 @@
Public Const K_LASTNGEDIR As String = "LastNgeDir"
Public Const K_LASTIMPDIR As String = "LastImpDir"
Public Const K_CNCFLAG As String = "CncFlag"
+ Public Const K_TOPPANEL As String = "TopPanelThema"
Public Const S_PRINTING3D As String = "3dPrinting"
Public Const S_COLORS As String = "Colors"
diff --git a/EgtColorPicker/EgtColorPickerV.xaml b/EgtColorPicker/EgtColorPickerV.xaml
index 75f5f42..0594089 100644
--- a/EgtColorPicker/EgtColorPickerV.xaml
+++ b/EgtColorPicker/EgtColorPickerV.xaml
@@ -20,7 +20,7 @@
-
+
diff --git a/EgtManageFileDialog/EgtManageFileDialogV.xaml b/EgtManageFileDialog/EgtManageFileDialogV.xaml
index 5b6d413..c7f3e72 100644
--- a/EgtManageFileDialog/EgtManageFileDialogV.xaml
+++ b/EgtManageFileDialog/EgtManageFileDialogV.xaml
@@ -82,7 +82,8 @@
ItemsSource="{Binding SelTreeItem.FolderList, Mode=TwoWay}"
SelectedItem="{Binding ItemSelected, Mode=TwoWay}"
Margin="5,5,5,5"
- BorderBrush="{StaticResource EgalwareWhite}"
+ BorderThickness="0"
+ Background="{DynamicResource ListBox.Static.Background}"
IsSynchronizedWithCurrentItem="True">
+
+ TopPanel1V.xaml
+
+
+ TopPanelButton1V.xaml
+
TopPanelButtonV.xaml
+
+ TopPanelHome1V.xaml
+
TopPanelHomeV.xaml
@@ -260,10 +269,22 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
diff --git a/MainWindow/MainWindowM.vb b/MainWindow/MainWindowM.vb
index f4380da..e226aa9 100644
--- a/MainWindow/MainWindowM.vb
+++ b/MainWindow/MainWindowM.vb
@@ -284,6 +284,9 @@ Public Class MainWindowM
' Leggo tema corrente
Dim sThema As String = String.Empty
GetMainPrivateProfileString(S_GENERAL, K_THEMA, "", sThema)
+ ' Leggo tema toppanel corrente
+ Dim sThemaTopPanel As String = String.Empty
+ GetMainPrivateProfileString(S_GENERAL, K_TOPPANEL, "", sThemaTopPanel)
' Impostazione direttorio delle risorse
m_sResourcesDir = m_sDataRoot & "\" & RESOURCES_DIR
' Info su opzioni chiave
diff --git a/MainWindow/MainWindowVM.vb b/MainWindow/MainWindowVM.vb
index bc91366..87f70d9 100644
--- a/MainWindow/MainWindowVM.vb
+++ b/MainWindow/MainWindowVM.vb
@@ -41,10 +41,10 @@ Public Class MainWindowVM
Map.BeginInit(Me)
' Creo Model della MainWindow
m_MainWindowM = New MainWindowM
- ' Creo Option
- m_OptionWindowVM = New OptionWindowVM
' Creo SceneButton
m_SceneButtonVM = New SceneButtonVM
+ ' Creo Option
+ m_OptionWindowVM = New OptionWindowVM
End Sub
#End Region ' Constructor
diff --git a/OptionsWindow/OptionModule.vb b/OptionsWindow/OptionModule.vb
index a8573bf..bcc033b 100644
--- a/OptionsWindow/OptionModule.vb
+++ b/OptionsWindow/OptionModule.vb
@@ -38,6 +38,9 @@ Friend Module OptionModule
' selezione tema (default=0)
Friend m_SelectedThema As Integer = 0
+ ' selezione tema toppanel (default=0)
+ Friend m_SelectedThemaTopPanel As Integer = 0
+
#End Region ' Fields & Properties
#Region "METHODS"
@@ -54,7 +57,7 @@ Friend Module OptionModule
End While
If nIndex = 1 Then
EgtOutLog("Error missing languages section in Config.ini")
- MessageBox.Show("Error : missing languages informations", "EgtCAM5", MessageBoxButton.OK, MessageBoxImage.Error)
+ EgtStone3D.EgtMessageBoxV.Show(Application.Current.MainWindow, "Error : missing languages informations", "EgtCAM5", MessageBoxButton.OK, MessageBoxImage.Error)
End
End If
' Inizializzo la lingua corrente
@@ -103,6 +106,8 @@ Friend Module OptionModule
m_LineDistanceColor = DstLnColor
' imposto il tema
m_SelectedThema = GetMainPrivateProfileInt(S_GENERAL, K_THEMA, 0)
+ ' imposto il tema toppanel
+ m_SelectedThemaTopPanel = GetMainPrivateProfileInt(S_GENERAL, K_TOPPANEL, 0)
End Sub
#End Region ' Methods
diff --git a/OptionsWindow/OptionWindowV.xaml b/OptionsWindow/OptionWindowV.xaml
index cb60b0d..b1bfa7c 100644
--- a/OptionsWindow/OptionWindowV.xaml
+++ b/OptionsWindow/OptionWindowV.xaml
@@ -8,6 +8,9 @@
Style="{StaticResource OptionWindowV_Window}">
+
+
+
@@ -23,13 +26,17 @@
+
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -73,7 +100,7 @@
Command="{Binding BotSceneBackground_Command}"
Style="{StaticResource EgtWPFLib5_InputButton}"/>
-
@@ -83,7 +110,7 @@
Command="{Binding GridColor_Command}"
Style="{StaticResource EgtWPFLib5_InputButton}"/>
-
@@ -108,7 +135,7 @@
Style="{StaticResource ColorLine_ChBx}"/>
-
@@ -35,7 +34,6 @@
-
diff --git a/TopPanel/TopPanelHome1V.xaml b/TopPanel/TopPanelHome1V.xaml
new file mode 100644
index 0000000..bb058e6
--- /dev/null
+++ b/TopPanel/TopPanelHome1V.xaml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TopPanel/TopPanelHome1V.xaml.vb b/TopPanel/TopPanelHome1V.xaml.vb
new file mode 100644
index 0000000..a8becc7
--- /dev/null
+++ b/TopPanel/TopPanelHome1V.xaml.vb
@@ -0,0 +1,3 @@
+Public Class TopPanelHome1V
+
+End Class
diff --git a/TopPanel/TopPanelListV.xaml b/TopPanel/TopPanelListV.xaml
index 5c8ee43..63a7495 100644
--- a/TopPanel/TopPanelListV.xaml
+++ b/TopPanel/TopPanelListV.xaml
@@ -13,7 +13,7 @@
+ Style="{DynamicResource TopPanelList_Btn}">
@@ -21,11 +21,11 @@
Style="{StaticResource TopPanel_TxBl}"/>
-
+
+ Style="{DynamicResource TopPanelList_Btn}">
@@ -33,12 +33,12 @@
Style="{StaticResource TopPanel_TxBl}"/>
-
+
+ Style="{DynamicResource TopPanelList_Btn}">
diff --git a/TopPanel/TopPanelV.xaml b/TopPanel/TopPanelV.xaml
index 83c4671..73d2be9 100644
--- a/TopPanel/TopPanelV.xaml
+++ b/TopPanel/TopPanelV.xaml
@@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtStone3D="clr-namespace:EgtStone3D"
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
+ xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
SelectedIndex="{Binding SelTopOption}"
Style="{StaticResource TopPanel_TabControl}">
@@ -24,60 +25,55 @@
-
+
-
+
-
-
+
-
+
-
+
-
+
-
-
-
-
-
+
-
+
-
+
-
+
-
-
diff --git a/TopPanel/TopPanelVM.vb b/TopPanel/TopPanelVM.vb
index f728b0d..217c8f1 100644
--- a/TopPanel/TopPanelVM.vb
+++ b/TopPanel/TopPanelVM.vb
@@ -119,11 +119,16 @@ Public Class TopPanelVM
End Get
End Property
+ Private m_FileSourceSVG As String = String.Empty
Public ReadOnly Property FileSourceSVG As String
Get
- Return Map.refMainWindowVM.MainWindowM.sResourcesDir & "\test.svg"
+ Return m_FileSourceSVG
End Get
End Property
+ Friend Sub SetFileSourceSVG(sfileSourceSVG As String)
+ m_FileSourceSVG = sfileSourceSVG
+ NotifyPropertyChanged(NameOf(FileSourceSVG))
+ End Sub
Public ReadOnly Property TopPanelListGroupBtn As List(Of GroupSceneBtn)
Get
@@ -190,6 +195,7 @@ Public Class TopPanelVM
' Impostazioni MruLists
m_MruFiles.Init(S_MRUFILES, 8)
m_MruImportFiles.Init(S_MRUIMPORTFILES, 8)
+ SetFileSourceSVG(Map.refMainWindowVM.MainWindowM.sResourcesDir & "\test.svg")
End Sub
#End Region ' Constructor
@@ -259,22 +265,7 @@ Public Class TopPanelVM
End Property
Private Sub OpenFile()
- Dim OpenFileDialog As New EgtManageFileDialogV(Application.Current.MainWindow, New EgtManageFileDialogVM()) With {
- .Title = EgtMsg(110015),
- .Filter = "nge files (*.nge)|*.nge" &
- "|vme files (*.vme)|*.vme",
- .FileName = "New.vme",
- .FilterIndex = 2,
- .InitialDirectory = "C:\EgtData\EgtStone3D\Temp",
- .Mode = 1
- }
-
- If Not OpenFileDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then Return
- If String.IsNullOrEmpty(OpenFileDialog.FileName) Then Return
-
- Dim sFilePath As String = OpenFileDialog.FileName
- EgtOpenFile(sFilePath)
- 'OpenProject("")
+ OpenProject("")
SolidManagerM.CreatePartSolid()
EgtDraw()
End Sub
diff --git a/TopPanel/TopPanelViewV.xaml b/TopPanel/TopPanelViewV.xaml
index 5eba305..70a4628 100644
--- a/TopPanel/TopPanelViewV.xaml
+++ b/TopPanel/TopPanelViewV.xaml
@@ -1,11 +1,11 @@
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:EgtStone3D="clr-namespace:EgtStone3D">
+ Style="{StaticResource TopPanelList_Btn}">
diff --git a/Utility/EgtStone3DDarkDictionary.xaml b/Utility/EgtStone3DDarkDictionary.xaml
index 8e8ca6b..ec5678c 100644
--- a/Utility/EgtStone3DDarkDictionary.xaml
+++ b/Utility/EgtStone3DDarkDictionary.xaml
@@ -42,26 +42,27 @@
-
-
+
+
-
+
+
-
+
@@ -81,25 +82,29 @@
-
+
-
-
+
+
-
+
+
-
-
+
+
+
+
+
@@ -217,50 +222,83 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
+
+
+
+
-
-
+
+
-
-
+
-
-
+
+
-
-
-
+
+
+
+
-
-
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Utility/EgtStone3DDefaultStyle.xaml b/Utility/EgtStone3DDefaultStyle.xaml
index b5c785c..33c54dd 100644
--- a/Utility/EgtStone3DDefaultStyle.xaml
+++ b/Utility/EgtStone3DDefaultStyle.xaml
@@ -11,14 +11,11 @@
it in xaml file(ProjectView.xaml).
-->
-
-
-
@@ -58,6 +55,7 @@
+
Transparent
#4D84C4
@@ -92,6 +90,7 @@
#569DE5
#BFBFBF
#FFD700
+ #606060
@@ -210,39 +209,13 @@
-
@@ -319,17 +292,37 @@
+
+
+
+
+
+
-
-
-
+
+
@@ -834,7 +847,7 @@
@@ -995,15 +1008,18 @@
@@ -1055,7 +1071,8 @@
+
+
+
+
@@ -1889,16 +1916,21 @@
-
+
@@ -1907,9 +1939,9 @@
@@ -2186,8 +2220,9 @@
@@ -2223,7 +2258,7 @@
@@ -2246,7 +2281,7 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Utility/EgtStone3DDictionary.xaml b/Utility/EgtStone3DDictionary.xaml
index b53ea9a..6b7e2ce 100644
--- a/Utility/EgtStone3DDictionary.xaml
+++ b/Utility/EgtStone3DDictionary.xaml
@@ -56,6 +56,7 @@
+
@@ -89,17 +90,21 @@
-
-
+
+
-
+
+
-
-
+
+
+
+
+
@@ -219,6 +224,7 @@
+
@@ -261,5 +267,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+