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 @@ + - + + + + - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TopPanel/TopPanelButton1V.xaml.vb b/TopPanel/TopPanelButton1V.xaml.vb new file mode 100644 index 0000000..3cb98ab --- /dev/null +++ b/TopPanel/TopPanelButton1V.xaml.vb @@ -0,0 +1,24 @@ +Public Class TopPanelButton1V + +#Region "FIELDS & PROPERTIES" + + Private m_SceneButtonVM As SceneButtonVM + +#End Region ' Fields & Properties + +#Region "CONSTRUCTOR" + + Sub New() + + ' La chiamata è richiesta dalla finestra di progettazione. + InitializeComponent() + + ' Aggiungere le eventuali istruzioni di inizializzazione dopo la chiamata a InitializeComponent(). + m_SceneButtonVM = Map.refSceneButtonVM + Me.DataContext = m_SceneButtonVM.TopPanelListGroupBtn(SceneButtonVM.m_nIndexList_2) + SceneButtonVM.m_nIndexList_2 += 1 + End Sub + +#End Region ' Constructor + +End Class diff --git a/TopPanel/TopPanelButtonV.xaml b/TopPanel/TopPanelButtonV.xaml index fa417af..4181550 100644 --- a/TopPanel/TopPanelButtonV.xaml +++ b/TopPanel/TopPanelButtonV.xaml @@ -2,8 +2,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:EgtStone3D="clr-namespace:EgtStone3D" - Margin="15,-10,0,0" - x:Name="TopPanelButtonGrid"> + x:Name="TopPanelButtonGrid" + Style="{StaticResource TopPanelButton_Grid}"> @@ -14,11 +14,11 @@ + Style="{DynamicResource TopPanelButton_ItemsControl}"> - + @@ -27,7 +27,6 @@ IsEnabled="{Binding IsEnabled}" Command="{Binding CmdBtn}" Style="{DynamicResource SceneButton}"> - @@ -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 @@ - + - +