Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52a7fa2c2f | |||
| dd385a1890 | |||
| 18ada2f088 | |||
| d453625cb6 | |||
| 55b8f80721 | |||
| 3d26a95209 | |||
| b8e64c83b7 | |||
| 6f5e7cd11a | |||
| 46e7846f3e | |||
| 14d3de85ff | |||
| 8e60c252fe | |||
| 19670ccbf7 | |||
| 972650891c |
@@ -5,7 +5,8 @@
|
||||
AllowsTransparency="True" Background="Transparent" ShowInTaskbar="False">
|
||||
|
||||
<!-- Definizione dell'AboutBox -->
|
||||
<Border Style="{StaticResource OmagCut_WindowBorder}">
|
||||
<Border Style="{StaticResource OmagCut_WindowBorder}"
|
||||
Background="{StaticResource OmagCut_VeryLightGray}">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
@@ -34,24 +35,24 @@
|
||||
<ColumnDefinition Width="3*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Name="LogoBrd" Grid.Column="1" Background="{DynamicResource Omag_LogoBackground}">
|
||||
<Image Source="{DynamicResource AboutBoxImg}" Stretch="Uniform"/>
|
||||
<Border Name="LogoBrd" Grid.Column="1">
|
||||
<Image Source="{DynamicResource LogoEgalwareImg}" Stretch="Uniform"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
<TextBlock Name="DescriptionLbl" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" FontSize="18" Foreground="{DynamicResource Omag_TextColor}"/>
|
||||
VerticalAlignment="Center" FontSize="18"/>
|
||||
<TextBlock Name="VersionLbl" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" FontSize="18" Foreground="{DynamicResource Omag_TextColor}"/>
|
||||
VerticalAlignment="Center" FontSize="18"/>
|
||||
<TextBlock Name="KeyLbl" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" FontSize="16" Foreground="{DynamicResource Omag_TextColor}"/>
|
||||
VerticalAlignment="Center" FontSize="16"/>
|
||||
<TextBlock Name="MachineLbl" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" FontSize="18" Foreground="{DynamicResource Omag_TextColor}"/>
|
||||
VerticalAlignment="Center" FontSize="18"/>
|
||||
<TextBlock Name="ProjIndexLbl" Grid.Column="1" Grid.Row="7" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" FontSize="18" Foreground="{DynamicResource Omag_TextColor}"/>
|
||||
VerticalAlignment="Center" FontSize="18"/>
|
||||
<TextBlock Name="ProjPathLbl" Grid.Column="1" Grid.Row="8" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" FontSize="18" Foreground="{DynamicResource Omag_TextColor}"/>
|
||||
VerticalAlignment="Center" FontSize="18"/>
|
||||
<TextBlock Name="CopyrightLbl" Grid.Column="1" Grid.Row="9" HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" FontSize="15" Foreground="{DynamicResource Omag_TextColor}"/>
|
||||
VerticalAlignment="Center" FontSize="15"/>
|
||||
<Button Name="ExitBtn" Grid.Column="1" Grid.Row="11" IsCancel="True"
|
||||
Style="{StaticResource OmagCut_WindowGrayTextButton}" Margin="1,0"/>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ Module ConstIni
|
||||
Public Const K_PROJDIR As String = "ProjDir"
|
||||
Public Const K_PREVNEXTPROJ As String = "PrevNextProj"
|
||||
Public Const K_THEME As String = "Theme"
|
||||
Public Const K_PRINTSLEEP As String = "PrintSleep"
|
||||
|
||||
Public Const S_LANGUAGES As String = "Languages"
|
||||
Public Const K_LANGUAGE As String = "Language"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Name="LogoBrd" Background="{DynamicResource Omag_LogoBackground}">
|
||||
<Image Source="{DynamicResource LogoOmagImg}" Stretch="Uniform" Margin="1"/>
|
||||
<Image Source="{DynamicResource LogoOmagImg}" Stretch="Uniform" Margin="2"/>
|
||||
</Border>
|
||||
|
||||
<!-- ** Definizione della Grid delle tab ** -->
|
||||
@@ -58,8 +58,8 @@
|
||||
</Button>
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid Name="SceneGrid" Grid.Row="1">
|
||||
|
||||
<Grid Name="SceneGrid" Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="3*"/>
|
||||
<ColumnDefinition Width="14*"/>
|
||||
|
||||
@@ -5,6 +5,7 @@ Imports EgtWPFLib
|
||||
Imports System.ComponentModel
|
||||
Imports System.Threading
|
||||
Imports System.Windows.Threading
|
||||
Imports System.Windows.Forms
|
||||
|
||||
Class MainWindow
|
||||
|
||||
@@ -194,8 +195,8 @@ Class MainWindow
|
||||
' leggo nome file exe (per stampante zebra)
|
||||
GetPrivateProfileString(S_PRINTER, K_ZEBRAUTILITIES, System.AppDomain.CurrentDomain.BaseDirectory & "ZebraPrinterUtilitiesR32.exe", m_ZebraUtilitiesExe, m_sIniFile)
|
||||
' Recupero opzioni della chiave
|
||||
Dim bKey As Boolean = EgtGetKeyLevel(9423, 2501, 1, m_nKeyLevel) And
|
||||
EgtGetKeyOptions(9423, 2501, 1, m_nKeyOptions)
|
||||
Dim bKey As Boolean = EgtGetKeyLevel(9423, 3101, 1, m_nKeyLevel) And
|
||||
EgtGetKeyOptions(9423, 3101, 1, m_nKeyOptions)
|
||||
EgtOutLog("KeyOptions : " & bKey.ToString() & " " & m_nKeyOptions.ToString())
|
||||
' Imposto dir di default per libreria Lua e lancio libreria di base
|
||||
Dim sLuaLibsDir As String = String.Empty
|
||||
@@ -338,11 +339,11 @@ Class MainWindow
|
||||
Dim sText As String = EgtMsg(MSG_MISSINGKEYWD + 2) & vbCrLf & EgtMsg(MSG_MISSINGKEYWD + 3)
|
||||
Dim sTitle As String = EgtMsg(MSG_MISSINGKEYWD + 1)
|
||||
MissingKeyWnd = New EgtMsgBox(Me, EgtMsg(MSG_MISSINGKEYWD + 1), EgtMsg(MSG_MISSINGKEYWD + 2) & " " & EgtMsg(MSG_MISSINGKEYWD + 3), EgtMsgBox.Buttons.OK, EgtMsgBox.Icons.NULL)
|
||||
' Altrimenti manca la licenza
|
||||
' Altrimenti manca la licenza
|
||||
Else
|
||||
EgtOutLog("Problems with Licence")
|
||||
' Box di avviso licenza con problemi : "Programma senza licenza. \n Caricala e riavvia il programma." "Errore"
|
||||
Dim sKeyInfo As String = "" : EgtGetKeyInfo( sKeyInfo)
|
||||
Dim sKeyInfo As String = "" : EgtGetKeyInfo(sKeyInfo)
|
||||
Dim sText As String = sKeyInfo & vbCrLf & EgtMsg(MSG_MISSINGKEYWD + 5) & vbCrLf & EgtMsg(MSG_MISSINGKEYWD + 6)
|
||||
Dim sTitle As String = EgtMsg(MSG_MISSINGKEYWD + 1)
|
||||
MissingKeyWnd = New EgtMsgBox(Me, sTitle, sText, EgtMsgBox.Buttons.OK, EgtMsgBox.Icons.NULL, 2, 2)
|
||||
@@ -358,9 +359,9 @@ Class MainWindow
|
||||
' Recupero il direttorio del file
|
||||
Dim sDir As String = System.IO.Path.GetDirectoryName(LicDlg.FileName)
|
||||
' Se il file non è già nel direttorio di configurazione lo copio
|
||||
If Not String.Equals(System.IO.Path.GetFullPath(sDir), System.IO.Path.GetFullPath( m_sConfigDir), StringComparison.OrdinalIgnoreCase) Then
|
||||
If Not String.Equals(System.IO.Path.GetFullPath(sDir), System.IO.Path.GetFullPath(m_sConfigDir), StringComparison.OrdinalIgnoreCase) Then
|
||||
Try
|
||||
System.IO.File.Copy(LicDlg.FileName, System.IO.Path.Combine( m_sConfigDir, LicDlg.SafeFileName), True)
|
||||
System.IO.File.Copy(LicDlg.FileName, System.IO.Path.Combine(m_sConfigDir, LicDlg.SafeFileName), True)
|
||||
Catch ex As Exception
|
||||
End Try
|
||||
End If
|
||||
@@ -422,7 +423,7 @@ Class MainWindow
|
||||
Private Sub MainWindow_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs) Handles Me.PreviewMouseDown
|
||||
End Sub
|
||||
|
||||
Private Sub MainWindow_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
|
||||
Private Sub OnKeyDownHandler(ByVal sender As Object, ByVal e As KeyEventArgs)
|
||||
'If (m_NumericKeyboardWD.IsVisible And e.Key = Key.Enter) Then
|
||||
' m_NumericKeyboardWD.Visibility = Windows.Visibility.Hidden
|
||||
'End If
|
||||
@@ -450,9 +451,11 @@ Class MainWindow
|
||||
' Se già selezionato deseleziono
|
||||
If nStat = GDB_ST.SEL Then
|
||||
EgtDeselectObj(nPartId)
|
||||
' Altrimenti seleziono
|
||||
' Altrimenti seleziono
|
||||
Else
|
||||
EgtDeselectAll()
|
||||
If Not (Keyboard.Modifiers And ModifierKeys.Control) > 0 Then
|
||||
EgtDeselectAll()
|
||||
End If
|
||||
EgtSelectObj(nPartId)
|
||||
End If
|
||||
EgtDraw()
|
||||
@@ -522,7 +525,11 @@ Class MainWindow
|
||||
|
||||
Private Sub PrintBtn_Click(sender As Object, e As RoutedEventArgs) Handles PrintBtn.Click
|
||||
|
||||
Dim printDlg As New PrintDialog
|
||||
Dim printDlg As New System.Windows.Controls.PrintDialog()
|
||||
Dim SM_Select As SM = SM.SHADING
|
||||
If (Keyboard.Modifiers And ModifierKeys.Control) > 0 Then
|
||||
SM_Select = SM.HIDDENLINE
|
||||
End If
|
||||
|
||||
If printDlg.ShowDialog() Then
|
||||
|
||||
@@ -541,7 +548,7 @@ Class MainWindow
|
||||
Dim nImgH As Integer = 2400
|
||||
Dim sPath As String = m_sTempDir & "\Image.png"
|
||||
EgtSetLineAttribs( 3)
|
||||
If Not EgtGetImage(SM.HIDDENLINE, colWhite, colWhite, nImgW, nImgH, sPath) Then
|
||||
If Not EgtGetImage(SM_Select, colWhite, colWhite, nImgW, nImgH, sPath) Then
|
||||
EgtOutLog("Errore creazione immagine di stampa")
|
||||
Return
|
||||
End If
|
||||
@@ -585,6 +592,7 @@ Class MainWindow
|
||||
|
||||
' Funzione per stampa delle etichette con ZebraPrinter
|
||||
Private Sub LabelBtn_Click(sender As Object, e As RoutedEventArgs) Handles LabelBtn.Click
|
||||
Dim dTimerSleep As Double = GetPrivateProfileDouble(S_GENERAL, K_PRINTSLEEP, 5000, m_sIniFile)
|
||||
Dim FileName As String = DateTime.Now.ToString()
|
||||
FileName = FileName.Replace("/"c, "_")
|
||||
FileName = FileName.Replace(":"c, "_")
|
||||
@@ -608,6 +616,7 @@ Class MainWindow
|
||||
Else
|
||||
Process.Start(m_ZebraUtilitiesExe, m_TemplateFilePrinter & " " & sFileDatIni)
|
||||
End If
|
||||
Thread.Sleep(dTimerSleep)
|
||||
' passo al pezzo successivo
|
||||
nParentId = EgtGetNextSelectedObj()
|
||||
End While
|
||||
|
||||
@@ -12,10 +12,10 @@ Imports System.Windows
|
||||
' Review the values of the assembly attributes
|
||||
|
||||
<Assembly: AssemblyTitle("OmagVIEW 32 bit")>
|
||||
<Assembly: AssemblyDescription("OmagVIEWR32.exe")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("OmagVIEW")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2016-2022 by Egalware s.r.l.")>
|
||||
<Assembly: AssemblyDescription("OmagVIEWR32.exe")>
|
||||
<Assembly: AssemblyCompany("Egalware s.r.l.")>
|
||||
<Assembly: AssemblyProduct("OmagVIEW")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2016-2026 by Egalware s.r.l.")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
<Assembly: ComVisible(false)>
|
||||
|
||||
@@ -55,6 +55,6 @@ Imports System.Windows
|
||||
' by using the '*' as shown below:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("2.5.1.1")>
|
||||
<Assembly: AssemblyFileVersion("2.5.1.1")>
|
||||
<Assembly: AssemblyVersion("3.1.1.1")>
|
||||
<Assembly: AssemblyFileVersion("3.1.1.1")>
|
||||
|
||||
|
||||
@@ -248,10 +248,10 @@
|
||||
<Resource Include="Resources\LogoOmag.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\AboutBoxImage.png" />
|
||||
<Resource Include="Resources\Folder.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\Folder.png" />
|
||||
<Resource Include="Resources\LogoEgalware.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<BitmapImage x:Key="DownArrowImg" UriSource="Resources/DarkTheme/DownArrow.png"></BitmapImage>
|
||||
<BitmapImage x:Key="GenericViewImg" UriSource="Resources/DarkTheme/GenericView.png"></BitmapImage>
|
||||
<BitmapImage x:Key="AboutBoxImg" UriSource="Resources/DarkTheme/AboutBoxImage.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LogoEgalwareImg" UriSource="Resources/LogoEgalware.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LogoOmagImg" UriSource="Resources/DarkTheme/LogoOmag.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LookFromTOPImg" UriSource="Resources/DarkTheme/LookFromTOP.png"></BitmapImage>
|
||||
<BitmapImage x:Key="OptionsImg" UriSource="Resources/DarkTheme/Options.png"></BitmapImage>
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
<SolidColorBrush x:Key="OmagCut_DarkGray" Color="#FF444444" />
|
||||
<SolidColorBrush x:Key="OmagCut_White" Color="#FFFFFFFF" />
|
||||
|
||||
<SolidColorBrush x:Key="Omag_LogoBackground" Color="WhiteSmoke" />
|
||||
<SolidColorBrush x:Key="Omag_TextColor" Color="Black" />
|
||||
<SolidColorBrush x:Key="Omag_LogoBackground" Color="#FF9E9E9E" />
|
||||
<SolidColorBrush x:Key="Omag_TextColor" Color="Black" />
|
||||
|
||||
|
||||
<FontFamily x:Key="OmagView_Font">./Resources/Fonts/#Century Gothic</FontFamily>
|
||||
@@ -89,23 +89,23 @@
|
||||
<CornerRadius x:Key="Page_CornerRadius">9.5</CornerRadius> <!--2.5mm-->
|
||||
<SolidColorBrush x:Key="OmagCut_MainBackground" Color="#FF9E9E9E" />
|
||||
|
||||
<BitmapImage x:Key="DownArrowImg" UriSource="Resources/DownArrow.png"></BitmapImage>
|
||||
<BitmapImage x:Key="GenericViewImg" UriSource="Resources/GenericView.png"></BitmapImage>
|
||||
<BitmapImage x:Key="AboutBoxImg" UriSource="Resources/AboutBoxImage.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LogoOmagImg" UriSource="Resources/LogoOmag.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LookFromTOPImg" UriSource="Resources/LookFromTOP.png"></BitmapImage>
|
||||
<BitmapImage x:Key="OptionsImg" UriSource="Resources/Options.png"></BitmapImage>
|
||||
<BitmapImage x:Key="PanImg" UriSource="Resources/Pan.png"></BitmapImage>
|
||||
<BitmapImage x:Key="UpArrowImg" UriSource="Resources/UpArrow.png"></BitmapImage>
|
||||
<BitmapImage x:Key="VImg" UriSource="Resources/V.png"></BitmapImage>
|
||||
<BitmapImage x:Key="XImg" UriSource="Resources/X.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomAllImg" UriSource="Resources/ZoomAll.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomInImg" UriSource="Resources/ZoomIn.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomOutImg" UriSource="Resources/ZoomOut.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomWinImg" UriSource="Resources/ZoomWIn.png"></BitmapImage>
|
||||
<BitmapImage x:Key="FolderImg" UriSource="Resources/Folder.png"></BitmapImage>
|
||||
<BitmapImage x:Key="DownArrowImg" UriSource="Resources/DownArrow.png"></BitmapImage>
|
||||
<BitmapImage x:Key="GenericViewImg" UriSource="Resources/GenericView.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LogoEgalwareImg" UriSource="Resources/LogoEgalware.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LogoOmagImg" UriSource="Resources/LogoOmag.png"></BitmapImage>
|
||||
<BitmapImage x:Key="LookFromTOPImg" UriSource="Resources/LookFromTOP.png"></BitmapImage>
|
||||
<BitmapImage x:Key="OptionsImg" UriSource="Resources/Options.png"></BitmapImage>
|
||||
<BitmapImage x:Key="PanImg" UriSource="Resources/Pan.png"></BitmapImage>
|
||||
<BitmapImage x:Key="UpArrowImg" UriSource="Resources/UpArrow.png"></BitmapImage>
|
||||
<BitmapImage x:Key="VImg" UriSource="Resources/V.png"></BitmapImage>
|
||||
<BitmapImage x:Key="XImg" UriSource="Resources/X.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomAllImg" UriSource="Resources/ZoomAll.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomInImg" UriSource="Resources/ZoomIn.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomOutImg" UriSource="Resources/ZoomOut.png"></BitmapImage>
|
||||
<BitmapImage x:Key="ZoomWinImg" UriSource="Resources/ZoomWIn.png"></BitmapImage>
|
||||
<BitmapImage x:Key="FolderImg" UriSource="Resources/Folder.png"></BitmapImage>
|
||||
|
||||
<!-- ______________________________________________________________________________________________________________________ -->
|
||||
<!-- ______________________________________________________________________________________________________________________ -->
|
||||
|
||||
<!--Empty Border-->
|
||||
<Style x:Key="OmagCut_EmptyBorder" TargetType="{x:Type Border}">
|
||||
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 64 KiB |