Alexander Shaduri
5435feb932
Windows: Make sure we consider non-fixed drives as well, when detecting "Drive letters" for a drive.
2022-05-20 13:04:26 +04:00
Alexander Shaduri
70967beebf
Implemented smartctl output format detection function, along with its test.
2022-02-16 17:33:05 +04:00
Alexander Shaduri
5b7c2f6dbb
Added helper for testing leaf-created errors.
2022-02-16 17:32:20 +04:00
Alexander Shaduri
dbdb0e4686
Fixed compilation.
2022-02-15 16:22:00 +04:00
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
Alexander Shaduri
582d4ad5cd
Converted hz string algorithms example into a test.
2022-02-11 14:08:57 +04:00
Alexander Shaduri
907c9ac423
Refactored example_string_num.cpp into a test.
...
Fixed underflow detection for unsigned types in hz::string_is_numeric().
2022-02-11 13:43:22 +04:00
Alexander Shaduri
f9c805648a
Converted hz unit formatting example into a test.
2022-02-10 17:17:06 +04:00
Alexander Shaduri
94e3e864bc
Merge remote-tracking branch 'origin/main' into main
2022-02-10 16:45:45 +04:00
Alexander Shaduri
53acbd9594
libdebug: Removed C-style debug_print*() functions, ported everything to debug_out_*().
2022-02-10 16:45:33 +04:00
Alexander Shaduri
085f066958
rconfig: A safer way to pass data to a C callback.
2022-02-10 16:44:08 +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
e6b83c7473
Updated links to online documentation.
2022-02-08 19:21:45 +04: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
3b5c7365a1
Windows: Embed exe manifest in the resource; don't handle the manifest in NSIS.
2022-02-04 12:02:44 +04:00
Alexander Shaduri
0f78b7e91c
Windows: Set GTK_CSD=0 only if no GTK_CSD is set.
2022-02-04 12:02:04 +04:00
Alexander Shaduri
025348bfe3
Remove trailing slash from homepage URL.
2022-02-02 23:14:15 +04:00
Alexander Shaduri
ef94137edc
Info Window: Make the text views with output texts use monospace font with the new GTK versions.
2022-02-01 13:46:43 +04:00
Alexander Shaduri
910f71ec9e
Info Window: Align and monospace table cells where applicable to improve readability.
2022-02-01 13:31:18 +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
01746ab16d
Ported some win32_tools.h code to std::filesystem.
2022-01-31 14:38:31 +04:00
Alexander Shaduri
5865134b29
Code cleanup - reduce std::strlen usage.
2022-01-29 22:27:12 +04:00
Alexander Shaduri
ebb864f234
Add nullptr check to on_cell_data_render(), just in case.
2022-01-29 11:56:54 +04:00
Alexander Shaduri
b27b04ebf0
Fixed building under Windows.
2022-01-25 16:54:42 +04:00
Alexander Shaduri
055438e740
Place less code in #ifdef _WIN32 to make platform-specific compilation less error-prone.
2022-01-25 16:42:10 +04:00
Alexander Shaduri
5f11e9a7ce
Fixed building under Windows.
2022-01-18 16:31:13 +04:00
Alexander Shaduri
f128de2b30
Fixed building non-debug builds.
2022-01-18 15:53:48 +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
bcc36f260d
Fixed finding data files in non-debug builds when running from build directory.
2022-01-15 15:01:39 +04:00
Alexander Shaduri
ad796dad9e
Automatically handle running from source/build directory and from package, using whereami library; this should fix not being able to run the application from non-standard build directories.
2022-01-15 14:35:06 +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
b4b6980a0c
Fixed a GTK warning related to markup in Info window's attributes tab.
2022-01-14 18:53:16 +04:00
Alexander Shaduri
534dcd129e
Code modernization and cleanups.
2022-01-14 15:06:07 +04:00
Alexander Shaduri
3e4cefb04f
Fixed a crash when trying to render main window icons which have incomplete data; fixes #13 in main branch.
2022-01-12 18:04:42 +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
Harald Judt
6adac797d3
Fix barely readable info cell texts
...
By simply resetting values, the rendered cell text colors are barely
readable. Setting Pango::WEIGHT_NORMAL instead of resetting seems to fix this
nicely without any negative consequences.
Signed-off-by: Harald Judt <h.judt@gmx.at >
2021-12-21 14:25:06 +01:00
dpc
17f54a8848
Add time (%H%M) to default filename in save dialog
2021-10-08 20:24:02 +02:00