Skip to content

Commit

Permalink
v1.0.5 Release
Browse files Browse the repository at this point in the history
Broken RPIQ detection
Tray Icon with temperature monitor
  • Loading branch information
driver1998 committed Aug 31, 2020
1 parent c9b8d2e commit 1eef6e3
Show file tree
Hide file tree
Showing 17 changed files with 750 additions and 412 deletions.
6 changes: 6 additions & 0 deletions PiMon.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,24 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|ARM64 = Debug|ARM64
Debug|Win32 = Debug|Win32
Release|ARM = Release|ARM
Release|ARM64 = Release|ARM64
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4A8C24DD-C156-4607-9054-B8D43A541421}.Debug|ARM.ActiveCfg = Debug|ARM
{4A8C24DD-C156-4607-9054-B8D43A541421}.Debug|ARM.Build.0 = Debug|ARM
{4A8C24DD-C156-4607-9054-B8D43A541421}.Debug|ARM64.ActiveCfg = Debug|ARM64
{4A8C24DD-C156-4607-9054-B8D43A541421}.Debug|ARM64.Build.0 = Debug|ARM64
{4A8C24DD-C156-4607-9054-B8D43A541421}.Debug|Win32.ActiveCfg = Debug|Win32
{4A8C24DD-C156-4607-9054-B8D43A541421}.Debug|Win32.Build.0 = Debug|Win32
{4A8C24DD-C156-4607-9054-B8D43A541421}.Release|ARM.ActiveCfg = Release|ARM64
{4A8C24DD-C156-4607-9054-B8D43A541421}.Release|ARM.Build.0 = Release|ARM64
{4A8C24DD-C156-4607-9054-B8D43A541421}.Release|ARM64.ActiveCfg = Release|ARM64
{4A8C24DD-C156-4607-9054-B8D43A541421}.Release|ARM64.Build.0 = Release|ARM64
{4A8C24DD-C156-4607-9054-B8D43A541421}.Release|Win32.ActiveCfg = Release|Win32
{4A8C24DD-C156-4607-9054-B8D43A541421}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
25 changes: 19 additions & 6 deletions src/PiMon.rc
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@

#include <windows.h>
#include "resource.h"
#include "version.h"

10 ICON DISCARDABLE "icon.ico"
IDI_MAIN ICON "icon.ico"

IDM_TRAY MENU
BEGIN
POPUP "TRAY_POPUP"
BEGIN
MENUITEM "Always on &Top", IDM_ALWAYS_TOP
MENUITEM "&About..." , IDM_ABOUT
MENUITEM SEPARATOR
MENUITEM "&Exit" , IDM_EXIT
END
END

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEVERSION PIMON_FILE_VERSION
PRODUCTVERSION PIMON_FILE_VERSION
FILEOS VOS_NT
FILESUBTYPE VFT2_UNKNOWN
FILETYPE VFT_APP
Expand All @@ -16,12 +29,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "driver1998\0"
VALUE "FileDescription", "PiMon\0"
VALUE "FileVersion", "1.0\0"
VALUE "FileVersion", PIMON_VERSION "\0"
VALUE "InternalName", "PiMon\0"
VALUE "LegalCopyright", "Copyright (c) 2020 driver1998\0"
VALUE "LegalCopyright", "Copyright (c) driver1998\0"
VALUE "OriginalFilename", "PiMon.exe\0"
VALUE "ProductName", "PiMon\0"
VALUE "ProductVersion", "1.0\0"
VALUE "ProductVersion", PIMON_VERSION "\0"
END
END
BLOCK "VarFileInfo"
Expand Down
97 changes: 97 additions & 0 deletions src/PiMon.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<Configuration>Debug</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
Expand All @@ -17,6 +21,10 @@
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>
Expand All @@ -27,9 +35,15 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
<WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
<WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support>
</PropertyGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{4A8C24DD-C156-4607-9054-B8D43A541421}</ProjectGuid>
Expand All @@ -50,6 +64,12 @@
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
Expand All @@ -64,6 +84,13 @@
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand All @@ -75,12 +102,18 @@
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<LinkIncremental>true</LinkIncremental>
Expand All @@ -90,6 +123,10 @@
<LinkIncremental>true</LinkIncremental>
<EmbedManifest>true</EmbedManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<EmbedManifest>true</EmbedManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<LinkIncremental>false</LinkIncremental>
<EmbedManifest>true</EmbedManifest>
Expand All @@ -98,6 +135,10 @@
<LinkIncremental>false</LinkIncremental>
<EmbedManifest>true</EmbedManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<EmbedManifest>true</EmbedManifest>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
Expand Down Expand Up @@ -140,6 +181,27 @@
<AdditionalManifestFiles>PiMon.exe.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<Manifest>
<SuppressStartupBanner>false</SuppressStartupBanner>
<EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
<AdditionalManifestFiles>PiMon.exe.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
Expand Down Expand Up @@ -190,13 +252,48 @@
<AdditionalManifestFiles>PiMon.exe.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<Manifest>
<SuppressStartupBanner>false</SuppressStartupBanner>
<EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
<AdditionalManifestFiles>PiMon.exe.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="listview.h" />
<ClInclude Include="mailbox.h" />
<ClInclude Include="reg.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="rpiq.h" />
<ClInclude Include="tray.h" />
<ClInclude Include="utils.h" />
<ClInclude Include="version.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="listview.c" />
<ClCompile Include="mailbox.c" />
<ClCompile Include="main.c" />
<ClCompile Include="reg.c" />
<ClCompile Include="tray.c" />
<ClCompile Include="utils.c" />
</ItemGroup>
<ItemGroup>
<Manifest Include="PiMon.exe.manifest" />
Expand Down
30 changes: 30 additions & 0 deletions src/PiMon.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,44 @@
<ClInclude Include="mailbox.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="listview.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="reg.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="tray.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="utils.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="version.h">
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.c">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="tray.c">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="utils.c">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="reg.c">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="mailbox.c">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="listview.c">
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="PiMon.rc">
Expand Down
Loading

0 comments on commit 1eef6e3

Please sign in to comment.