Skip to content

Commit

Permalink
fixes and additions
Browse files Browse the repository at this point in the history
Reinstated CPU type, speed and usage.
Enabled drag and drop for actions.
Fixed issue where saving actions with empty lines caused actions to be duplicated.
Fixed lines continued on next line not shown when transitioning.
Fixed program detection (for screen saver active, prog active, fullscreen active, etc.) was causing relatively high CPU usage.
General code cleanup and formatting.
  • Loading branch information
stokie-ant committed May 31, 2022
1 parent 9e50cf1 commit a89d1ac
Show file tree
Hide file tree
Showing 69 changed files with 9,813 additions and 1,397 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ release-dir/openssl/.rnd
release-dir/openssl/cert.pem
release-dir/openssl/key.pem
# ignore extracted components
components/WinampCtrl
components/WinampCtrl/*
# ignore lazarus backups
backup
*.bak
Expand Down
7 changes: 3 additions & 4 deletions BUILDING.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ Required Components
This project requires the following components to be installed and in
the projects path:
- WinampCtrl.
This can be found in the components sub-directory

This can be found in the components sub-directory

Indy 10
This can be installed via lazarus package manager
- Indy 10
This can be installed via lazarus package manager

Install all components before loading the LCD Smartie project.

Expand Down

This file was deleted.

40 changes: 30 additions & 10 deletions LCDSmartie.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
<ShowHintsForUnusedUnitsInMainSrc Value="True"/>
<ShowHintsForSenderNotUsed Value="True"/>
</Verbosity>
<CustomOptions Value="-CPPACKRECORD=8
-SIcom
-WR
-dBorland
-dVer150
-dDelphi7
-dCompiler6_Up
-dPUREPASCAL"/>
<OtherDefines Count="5">
<Define0 Value="Borland"/>
<Define1 Value="Ver150"/>
Expand All @@ -106,18 +114,25 @@
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="x64\fuo"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
<ObjectPath Value="components\CoolTrayIcon"/>
</SearchPaths>
<Parsing>
<Style Value="1"/>
<SyntaxOptions>
<SyntaxMode Value="Delphi"/>
<IncludeAssertionCode Value="True"/>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<SmartLinkUnit Value="True"/>
<Checks>
<IOChecks Value="True"/>
<RangeChecks Value="True"/>
<OverflowChecks Value="True"/>
<StackChecks Value="True"/>
</Checks>
<VerifyObjMethodCallValidity Value="True"/>
<TargetCPU Value="x86_64"/>
<TargetOS Value="win64"/>
</CodeGeneration>
Expand Down Expand Up @@ -148,13 +163,18 @@
<ShowHintsForSenderNotUsed Value="True"/>
</Verbosity>
<CustomOptions Value="-CPPACKRECORD=8
-SIcom
-WR
-dBorland
-dVer150
-dDelphi7
-dCompiler6_Up
-dPUREPASCAL"/>
<OtherDefines Count="5">
<Define0 Value="Borland"/>
<Define1 Value="Ver150"/>
<Define2 Value="Delphi7"/>
<Define3 Value="Compiler6_Up"/>
<Define4 Value="PUREPASCAL"/>
</OtherDefines>
</Other>
</CompilerOptions>
</Item3>
Expand All @@ -168,16 +188,16 @@
</RunParams>
<RequiredPackages Count="6">
<Item1>
<PackageName Value="RunTimeTypeInfoControls"/>
<PackageName Value="ExceptionLogger"/>
</Item1>
<Item2>
<PackageName Value="LazControls"/>
<PackageName Value="RunTimeTypeInfoControls"/>
</Item2>
<Item3>
<PackageName Value="WinampCtrl7"/>
<PackageName Value="LazControls"/>
</Item3>
<Item4>
<PackageName Value="ExceptionLogger"/>
<PackageName Value="WinampCtrl7"/>
</Item4>
<Item5>
<PackageName Value="indylaz"/>
Expand Down Expand Up @@ -346,7 +366,7 @@
<Debugging>
<Exceptions Count="4">
<Item1>
<Name Value="EIdOSSLCouldNotLoadSSLLibrary"/>
<Name Value="EConvertError"/>
</Item1>
<Item2>
<Name Value="EIdHTTPProtocolException"/>
Expand All @@ -355,7 +375,7 @@
<Name Value="EIdSocketError"/>
</Item3>
<Item4>
<Name Value="EConvertError"/>
<Name Value="Exception"/>
</Item4>
</Exceptions>
</Debugging>
Expand Down
2 changes: 1 addition & 1 deletion LCDSmartie.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
uses
{madExcept,
madLinkDisAsm,}
Forms, Interfaces,
Forms, Interfaces, SysUtils,
UMain {LCDSmartieDisplayForm};

{$R *.res}
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions SmartieConfigEditor.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="x64\release-dir\SmartieConfigEditor"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
Expand Down
25 changes: 0 additions & 25 deletions Smartiegroupbuild.lpg

This file was deleted.

7 changes: 7 additions & 0 deletions UConfig.pas
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,11 @@ function TConfig.loadINI: Boolean;
screen[ScreenCount].settings.theme := initFile.ReadInteger(sScreen, 'Theme', 1)-1;
screen[ScreenCount].settings.showTime := initFile.ReadInteger(sScreen, 'ShowTime', 10);
screen[ScreenCount].settings.bSticky := initFile.ReadBool(sScreen, 'Sticky', false);

screen[ScreenCount].settings.TransitionTime := initFile.ReadInteger(sScreen, 'TransitionTime', 20);
screen[ScreenCount].settings.TransitionTime := initFile.ReadInteger(sScreen, 'InteractionTime', 20); // compatibilty to be removed in later version
screen[ScreenCount].settings.TransitionStyle := TTransitionStyle(initFile.ReadInteger(sScreen, 'TransitionStyle',1));
screen[ScreenCount].settings.TransitionStyle := TTransitionStyle(initFile.ReadInteger(sScreen, 'Interaction',1)); // compatibilty to be removed in later version

for LineCount := 1 to MaxLines do
begin
Expand Down Expand Up @@ -547,7 +550,11 @@ procedure TConfig.saveINI;
initFile.WriteInteger(sScreen, 'Theme', screen[ScreenCount].settings.theme + 1);
initFile.WriteInteger(sScreen, 'ShowTime', screen[ScreenCount].settings.showTime);
initfile.WriteBool(sScreen, 'Sticky', screen[ScreenCount].settings.bSticky);

initFile.WriteInteger(sScreen, 'InteractionTime', screen[ScreenCount].settings.TransitionTime); // compatibilty to be removed in later version
initFile.WriteInteger(sScreen, 'TransitionTime', screen[ScreenCount].settings.TransitionTime);

initFile.WriteInteger(sScreen, 'Interaction', ord(screen[ScreenCount].settings.TransitionStyle)); // compatibilty to be removed in later version
initFile.WriteInteger(sScreen, 'TransitionStyle', ord(screen[ScreenCount].settings.TransitionStyle));

for LineCount := 1 to MaxLines do
Expand Down
Loading

0 comments on commit a89d1ac

Please sign in to comment.