Alexander Shaduri
fc0df14992
Refactored smartctl output parser for better API, support for different formats.
2022-02-15 15:56:42 +04:00
Alexander Shaduri
65e4c4f7ac
Revert "Fixed test link errors on Debian 10."
...
This reverts commit 5009fbfbe4 .
2022-02-15 14:01:51 +04:00
Alexander Shaduri
5009fbfbe4
Fixed test link errors on Debian 10.
2022-02-15 13:42:43 +04:00
Alexander Shaduri
88a36c6f57
Changed internal property names to match smartctl's json paths.
2022-02-14 13:21:23 +04:00
Alexander Shaduri
7e570cea45
Refactored parse_byte_size out of SmartctlAtaTextParser.
2022-02-11 18:04:54 +04:00
Alexander Shaduri
1d781d3d54
Code cleanups.
2022-02-11 16:01:10 +04:00
Alexander Shaduri
c1070e375f
Added initial work for selecting smartctl parser type.
...
Refactored smartctl version parsing, added tests.
2022-02-11 16:00:21 +04:00
Stephen Kitt
c53166f630
Set LC_ALL to control the locale
...
LANG specifies the default locale, LC_NUMERIC specifies the locale for
that particular category, but LC_ALL overrides all the locale
settings. Thus any user with LC_ALL set can still run into
locale-related problems.
Setting LC_ALL to C avoids any such issue.
See locale(7) for details.
Signed-off-by: Stephen Kitt <steve@sk2.org >
2022-02-10 08:26:34 +01:00
Alexander Shaduri
a154a813ad
Use Catch2 v2 instead of v3 due to build errors with latest compilers.
2022-02-04 14:24:01 +04:00
Alexander Shaduri
f4973cdb4b
Handle all tree view styling in per-table cell renderers; this fixes conflicts between renderer styles and markup.
2022-02-01 12:51:48 +04:00
Alexander Shaduri
044193c7ed
Command execution popup windows: Use "dialog" type of window instead of "notifications"; this should fix #17 (the popup is floating above all the other applications).
2022-01-31 15:29:14 +04:00
Alexander Shaduri
d9f0314655
Code cleanup - reduce std::wcslen usage.
2022-01-31 15:11:04 +04:00
Alexander Shaduri
5865134b29
Code cleanup - reduce std::strlen usage.
2022-01-29 22:27:12 +04:00
Alexander Shaduri
5f11e9a7ce
Fixed building under Windows.
2022-01-18 16:31:13 +04:00
Alexander Shaduri
88e9e8c2f7
Implemented most build settings as constexpr functions and ported most of macro-based conditional compilation to if constexpr(); this significantly improves code quality and the chance of build success on different platforms and build configurations.
...
More code modernization.
2022-01-18 15:30:55 +04:00
Alexander Shaduri
235fba8a04
Convert relative smartctl-nc path to absolute before running it.
2022-01-15 15:24:11 +04:00
Alexander Shaduri
0183626c73
Change current path to gsmartcontrol directory before running smartctl - this should fix not being able to find "smartctl-nc" when CWD differs from gsmartcontrol installation directory, as it may happen when running gsmartcontrol from cmd.
2022-01-15 15:07:10 +04:00
Alexander Shaduri
c72b746d0a
Escape all text wherever it may be interpreted as markup, even if not coming from external source.
2022-01-14 19:17:15 +04:00
Alexander Shaduri
534dcd129e
Code modernization and cleanups.
2022-01-14 15:06:07 +04:00
Alexander Shaduri
dd392845a6
Fixed cmake build for the last commit.
2022-01-10 21:09:03 +04:00
Alexander Shaduri
7f2fb32735
Refactored InstanceManager (now WindowInstanceManager) to manage all window instances, keep them alive and have the ability to destroy them; this avoids any manual "delete" calls, and fixes a (newly introduced) crash on exit.
2022-01-10 19:13:11 +04:00
Alexander Shaduri
f3247ec13b
Merge remote-tracking branch 'origin/main' into main
2022-01-10 17:02:12 +04:00
Alexander Shaduri
ad014517b9
Set LC_NUMERIC=C for smartctl process to avoid locale-dependent number formatting.
2022-01-10 17:01:56 +04:00
dpc
17f54a8848
Add time (%H%M) to default filename in save dialog
2021-10-08 20:24:02 +02:00
Alexander Shaduri
b78f8573b5
Implemented smartctl process environment changes without changing the main program's environment.
...
Removed ScopedEnv class - it's not thread-safe and very easy to misuse.
2021-04-21 16:48:46 +04:00
Alexander Shaduri
cdb9a4c603
Renamed SmartctlTextParser to SmartctlAtaTextParser.
2021-03-19 14:51:32 +04:00
Alexander Shaduri
b1150d8e86
Implemented app_pcre_get_options() tests.
2021-03-16 18:10:35 +04:00
Alexander Shaduri
9db25f3907
Add Catch2 testing framework and integrate it into the build system and CI; moved json to subdirectory.
2021-03-16 17:57:01 +04:00
Alexander Shaduri
812bd2191e
Fixed non-linux builds.
2021-03-16 16:27:06 +04:00
Alexander Shaduri
788a4760b8
Refactored storage property classes (better naming, documentation), removed app_gtkmm_features.h.
2021-03-16 16:06:28 +04:00
Alexander Shaduri
d74da816a1
Refactored command executors (better naming, documentation).
2021-03-16 15:24:08 +04:00
Alexander Shaduri
cfc11bef6e
Refactored app_pcrecpp.h structure.
2021-03-15 19:00:50 +04:00
Alexander Shaduri
bedd8f362b
Refactored gtkmm utils and app builder to simply the code and document it better.
2021-03-15 17:55:22 +04:00
Alexander Shaduri
cb1abab75f
Support Finnish decimal separator (backported from Debian package).
2021-03-10 13:05:47 +04:00
Alexander Shaduri
9c97f463c9
Fixed a few typos (backported from debian package).
2021-03-10 13:05:21 +04:00
Alexander Shaduri
1ddcbc224e
Fixed compilation under FreeBSD and QNX.
2021-03-09 13:08:27 +04:00
Alexander Shaduri
fce77dc7d7
Fixed building under macosx.
2021-03-08 16:51:12 +04:00
Alexander Shaduri
1d5e8822e6
Fixed compilation under MSYS2.
2021-03-04 14:35:05 +04:00
Alexander Shaduri
53a3f73156
Modernized Windows code, fixed compiler warnings under mingw.
2021-03-03 19:40:02 +04:00
Alexander Shaduri
28dacf4d74
Fixed all remaining clang-tidy warnings.
2021-03-03 18:15:23 +04:00
Alexander Shaduri
2859666708
Make all examples use main_tools.h exception wrapper.
2021-03-03 18:15:05 +04:00
Alexander Shaduri
4f6f0ce9f6
Minor cleanup.
2021-03-03 16:54:59 +04:00
Alexander Shaduri
ff3b07a086
Fixed a few clang-tidy warnings in applib.
2021-03-03 16:53:22 +04:00
Alexander Shaduri
e329946213
Ported some main() functions to new main_tools.
2021-03-03 16:43:04 +04:00
Alexander Shaduri
60ba6078c2
Fixed some problems reported by clang-tidy.
2021-03-02 19:12:18 +04:00
Alexander Shaduri
07b6a27dc0
Fixed libintl conflicts causing compilation errors in Windows.
2021-03-02 18:25:16 +04:00
Alexander Shaduri
d017f425d0
Use "example_" prefix instead of "_example" suffix for example sources and binaries.
2021-03-02 16:42:24 +04:00
Alexander Shaduri
dac585c01b
Fixed building examples.
2021-03-01 16:20:40 +04:00
Alexander Shaduri
698500fd3e
Refactored the build config header and macros; Added OS- and compiler-specific options and macros to cmake.
2021-03-01 14:04:35 +04:00
Alexander Shaduri
f0dfeaf8c0
Updated / added copyright headers.
2021-02-26 14:36:27 +04:00