Commit Graph

641 Commits

Author SHA1 Message Date
Valentino Orlandi 909ce98c5b
Introduced FileHandler classes
Wrapper classes to handle resources following the RAII principle
2024-01-07 19:14:56 +01:00
Valentino Orlandi 2f8ec16043
Improvements 2023-12-01 22:58:54 +01:00
Valentino Orlandi a49a02195d
Tests improvements
Added test for CharOps functions.
Improved tests for some StringOps functions.
Improved tests for the Nginx and IIS format string parser.
2023-12-01 22:11:17 +01:00
Valentino Orlandi 2dcf0fc59a
Improvements and updates 2023-12-01 22:04:54 +01:00
Valentino Orlandi 1e21756f5c
Code and performance improvements 2023-12-01 22:03:56 +01:00
Valentino Orlandi 697b9fb387
Updated CMakeLists.txt 2023-12-01 21:58:14 +01:00
Valentino Orlandi 4d0d9caec1
Code improvements
Introduced CharOps namespace.
Moved some functions from StringOps to CharOps.
2023-12-01 21:57:40 +01:00
Valentino Orlandi 2c97b90ca3
Improvements
Removed predefined logs formats.
Moved logs format check inside Craplog.
2023-11-28 19:46:23 +01:00
Valentino Orlandi 52489d004d
Updated CMakeLists 2023-10-22 16:56:34 +02:00
Valentino Orlandi 21a40e91c0
Cod improvements 2023-10-22 11:27:18 +02:00
Valentino Orlandi 82fb24f98f
Fix
Fix for clang complaining about missing unordered_map headers
2023-10-10 20:22:36 +02:00
Valentino Orlandi f284930317
Fix 2023-10-08 19:15:38 +02:00
Valentino Orlandi 48b053eae5
Fixes
Fixed tables header height when using themes.
Fixed logs list items font.
2023-10-07 15:00:39 +02:00
Valentino Orlandi 103d46f206
Improvements and fixes
Code improvements.
Fixed compiler warnings.
2023-09-24 20:50:10 +02:00
Valentino Orlandi 15c945f854
Fixes
Fixed C++20 and Qt6 transition issues
2023-09-24 19:51:28 +02:00
Valentino Orlandi da00c1896e
Updated CMakeLists.txt
Updated compilers options and flags
2023-09-24 17:22:56 +02:00
Valentino Orlandi f0525b9e6d
Version upgrade
Upgrade to version 3.00
2023-09-24 17:21:38 +02:00
Valentino Orlandi d345e0c928
Upgrade to Qt6 2023-09-24 17:20:45 +02:00
Valentino Orlandi e9f1a20cac
Upgrade to C++20 2023-09-24 17:17:44 +02:00
Valentino Orlandi 8dd6dc0ff2
Improvements and fixes
Added missing format codes for apache2.
Fixed apache2 format string parser.
2023-09-17 20:21:36 +02:00
Valentino Orlandi 48b97bfe10
Tests improvements
Improved whitebox tests for the apache2 format string parser
2023-09-17 20:17:47 +02:00
Valentino Orlandi b476a2d074
Fixed compilers warnings 2023-09-16 20:28:27 +02:00
Valentino Orlandi 086651959f
Added comilers warning flags to CMakeLists 2023-09-16 19:41:03 +02:00
Valentino Orlandi de80ad20b8
Code improvements 2023-09-16 17:08:27 +02:00
Valentino Orlandi e37f15459c
Code improvements
Improved include guards
2023-09-16 14:09:21 +02:00
Valentino Orlandi 288981743a
Updated translation resources 2023-09-10 19:02:59 +02:00
Valentino Orlandi 294eb79248
Updated translation files 2023-09-10 19:02:24 +02:00
Valentino Orlandi 6a8877e3be
Added stylesheets to the dialogs 2023-09-10 18:54:19 +02:00
Valentino Orlandi 3f043adb52
Improvements
Moved icons set string to GlobalConfigs
2023-09-10 18:50:00 +02:00
Valentino Orlandi 086f24dcee
Fix
Fixed counts statistics pie chart's top slice label partially hidden by
the title
2023-09-10 17:12:36 +02:00
Valentino Orlandi 4267c60026
Fix
Fixed incorrect parsed/warnlisted/blacklisted log data visualization
2023-09-10 17:01:39 +02:00
Valentino Orlandi cae0d8bd1a
Renamed main dialogs 2023-09-10 16:44:30 +02:00
Valentino Orlandi c6aaf88b6f
Introduced GameDialog for games
Moved out from DialogMsg.
Removed Game variant from MsgType enum in DialogMsg.
2023-09-10 16:22:27 +02:00
Valentino Orlandi bdeea864e8
Fix
Fixed speed statistics mean values.
Replaced speed QGradient coordinate mode deprecated variant
ObjectBoundingMode with ObjectMode.
2023-09-10 15:23:02 +02:00
Valentino Orlandi eaa5bf0f86
Fix
Fixed statistics charts' y-axis tick count
2023-09-10 12:50:38 +02:00
Valentino Orlandi 008a6c1720
Fix
Fixed daytime stats showing no data when a mean value results to be less
than 1
2023-09-10 12:27:33 +02:00
Valentino Orlandi 65c0317a4c
Improvements
Updated statistics queries for string type fields to match exact filters
values and not entries which starts with
2023-09-10 12:16:57 +02:00
Valentino Orlandi 1baddb36a2
Updated conf file 2023-09-10 11:55:22 +02:00
Valentino Orlandi 84053cbc27
Introduced CraplogParserInterface
Base class for the Craplog's parsers
2023-09-10 11:27:32 +02:00
Valentino Orlandi 1d47c0a321
Added doc comments to GlobalConfigs 2023-09-09 22:35:48 +02:00
Valentino Orlandi 5fd03b8d32
Update
Removed unused charts' base themes
2023-09-09 22:26:58 +02:00
Valentino Orlandi fe9fd2faa9
Moved themes variables to GlobalConfigs namespace 2023-09-09 22:24:54 +02:00
Valentino Orlandi d18083c567
Fix
Fixed DialogMsg pixmap size when displaying logo
2023-09-09 19:53:34 +02:00
Valentino Orlandi 33b30a7ca1
Introduced use of custom dialogs in games
Added Game variant to MsgType
2023-09-09 19:44:14 +02:00
Valentino Orlandi edcd950204
Improvements
Morphed DialogMsg's type into enum
2023-09-09 19:40:12 +02:00
Valentino Orlandi 020d2d533f
Code improvements 2023-09-09 18:59:43 +02:00
Valentino Orlandi 94db3842f7
Improvements
Added tab key selection order
2023-08-27 21:08:22 +02:00
Valentino Orlandi 5bbd276776
Improvements
Improved charts theme preview.
Made charts theme appling automatically when changed in the configs.
2023-08-27 20:52:54 +02:00
Valentino Orlandi 501a49aa17
Updated charts themes
Updated light/dark themes.
Removed sand/cerulean themes.
2023-08-27 20:48:14 +02:00
Valentino Orlandi 4f98cb5db8
Improvements
Morphed Ui raw pointers into smart pointers.
Removed unnecessary destructors.
2023-08-27 18:49:34 +02:00
Valentino Orlandi d05ea9a15c
Improvements 2023-08-27 18:23:16 +02:00
Valentino Orlandi df2f24e4ee
Improvements
Moved the various getStyleSheet to separate files and placed in
dedicated namespaces inside StyleSec
2023-08-27 17:02:06 +02:00
Valentino Orlandi 34dff8dd21
Updated translation resources 2023-08-27 11:06:10 +02:00
Valentino Orlandi 5a6503c66f
Updated translation files 2023-08-27 11:05:45 +02:00
Valentino Orlandi b7eb8423d9
Update
Updated some comments
2023-08-27 11:01:37 +02:00
Valentino Orlandi 3062547c08
Fix
Fixed snake game crash when closing from menu screen
2023-08-27 10:59:27 +02:00
Valentino Orlandi 3857afe134
Fix
Fixed uneffective relational statistics when querying with a 1-day
period
2023-08-27 10:57:53 +02:00
Valentino Orlandi c560328b98
Code improvements
Refactored stylesheet maps with enums as keys to allow compile-time
checks
2023-08-27 10:54:07 +02:00
Valentino Orlandi 3a0b7bcc45
Update ui files 2023-08-26 17:40:35 +02:00
Valentino Orlandi e6ae3edc58
Restyled light/dark themes 2023-08-26 16:51:30 +02:00
Valentino Orlandi b9c209283f
Update
Added support for native themes icons.
Added support for configs tree icons.
2023-08-26 16:41:54 +02:00
Valentino Orlandi f26af042e9
Updated resources.qrc 2023-08-26 16:35:12 +02:00
Valentino Orlandi 73d57b28f6
Updated icons assets
Added icons for native themes.
Updated light/dark themes statistics icons to be greyscale.
Added warnlists/blacklists icons for light/dark themes.
Added combobox_arrow icons for light/dark themes.
Added configs tree icons.
2023-08-26 16:31:44 +02:00
Valentino Orlandi e26b54827f
Improvements
Improved enabled/disabled state for crapview statistics.
Added flat/unflat state for warnlists/blacklists buttons.
2023-08-25 22:31:58 +02:00
Valentino Orlandi 42de6a61e4
Update 2023-08-25 21:42:12 +02:00
Valentino Orlandi cfe586daa4
Redesigned configs section 2023-08-25 21:38:29 +02:00
Valentino Orlandi 581c096876
Renamed themes
None -> Native
Powder -> Light
Ash -> Dark
2023-08-04 19:58:11 +02:00
Valentino Orlandi c0526482df
Removed Herb and Candy themes 2023-08-04 19:51:37 +02:00
Valentino Orlandi 6e20d35592
Fix
Fixed sporadic crashes caused by dialogs executed from QThread
2023-07-29 18:10:15 +02:00
Valentino Orlandi c07d545f4f
Fix
Fixed logs section hanging when scanning non-existing logs directory
2023-07-29 16:17:55 +02:00
Valentino Orlandi 4cac5f1361
Fixed OSX compilation issues 2023-07-23 18:16:44 +02:00
Valentino Orlandi a59a4569c9
Version update
Version 2.05
2023-07-23 17:28:03 +02:00
Valentino Orlandi d8feeb9c7b
Code improvements 2023-07-23 16:47:14 +02:00
Valentino Orlandi 21d16f8267
Performance improvements
Morphed Snake game internal std::function(s) to pure lambdas
2023-07-23 14:59:49 +02:00
Valentino Orlandi 7656514195
Improvements
Added filter string check on-the-fly.
Filters background turns red when the string is invalid.
2023-07-23 12:54:35 +02:00
Valentino Orlandi 87f112deb4
Fix
Fixed out-of-range error in parsing numeric filters
2023-07-23 12:48:26 +02:00
Valentino Orlandi 53a8c39220
Updated CMakeLists.txt 2023-07-23 11:00:46 +02:00
Valentino Orlandi ae521d786b
Tests improvements
Added documentation comments.
Added tests for filtering functions.
2023-07-23 11:00:31 +02:00
Valentino Orlandi 43a92bcb41
Improvements and updates 2023-07-23 10:58:48 +02:00
Valentino Orlandi 8d25739a07
Code improvements
Improved filtering.
Added parseNull function.
Moved query filters to separate namespace: FilterOps.
Refactored filters to return std::optional in case of invalid filter
string.
2023-07-23 10:56:41 +02:00
Valentino Orlandi 18e66ed492
Fixed sha256 missin include 2023-07-23 10:34:42 +02:00
Valentino Orlandi cb690ab215
Updated CMakelists.txt
Added -pthread linker flag for UNIX
2023-06-11 23:32:26 +02:00
Valentino Orlandi b987c03062
Code improvements 2023-06-03 18:16:33 +02:00
Valentino Orlandi e43b2d84ec
Update 2023-06-03 18:16:28 +02:00
Valentino Orlandi fb2d97553c
Moved WebServers IDs to defines folder
Morphed from classes members to macros
2023-06-03 17:21:21 +02:00
Valentino Orlandi 43bddb55ef
Update 2023-06-03 16:43:16 +02:00
Valentino Orlandi 91b645cfee
Added CraplogParserAsync
Worker to parse log files asynchronously
2023-06-03 16:42:56 +02:00
Valentino Orlandi feb3e7a1c9
Improvements
Moved OS checks to compile time
2023-05-21 23:32:39 +02:00
Valentino Orlandi 5091414607
Update
Added BitBucket repo links to Crapinfo and Crapup
2023-05-21 23:31:51 +02:00
Valentino Orlandi b8fb3cf579
Fix
Fixed thread deletion
2023-05-21 16:16:24 +02:00
Valentino Orlandi 9ab24e669e
Fix
Fixed global statistics buttons flattening on failure
2023-05-21 16:02:39 +02:00
Valentino Orlandi f76bb37dc3
Added message dialog for database not found 2023-05-21 16:01:31 +02:00
Valentino Orlandi 5ca53a758e
Improvements and updates
Code improvements.
Database file check related updates.
2023-05-21 16:00:26 +02:00
Valentino Orlandi 5761c7ed5d
Improvements
Code improvements.
Added checkDatabaseFile function to check for file type and permissions
before opening.
2023-05-21 15:57:40 +02:00
Valentino Orlandi 04cf16a385
Improvements and updates
Code and performance improvements.
Renamed CustomTreeWidgetItem to LogFileTreeWidgetItem and moved to
customs folder.
2023-05-14 15:44:11 +02:00
Valentino Orlandi 272cb7a773
Improvements and updates
Code improvements.
Use of CustomTreeWidgetItem instead of QTreeWidgetItem.
2023-05-14 14:30:15 +02:00
Valentino Orlandi 0861450fd1
Added CustomTreeWidgetItem
Allows "correctly" sorting log files list by name/size
2023-05-14 14:27:12 +02:00
Valentino Orlandi ed03c03d46
Updated CMakeLists.txt 2023-05-14 14:23:18 +02:00
Valentino Orlandi 24b855aa9c
Updated MainWindow 2023-05-14 14:21:42 +02:00
Valentino Orlandi 5491902ba8
Updated Craplog 2023-05-14 14:18:00 +02:00
Valentino Orlandi 14086a1de0
Declared LogFile class as MetaType
Allows sending as signals parameter
2023-05-14 14:15:23 +02:00
Valentino Orlandi 2343b81d30
Added CraplogLister
Craplog worker to scan the logs directory and list files
2023-05-14 14:10:53 +02:00
Valentino Orlandi 1a42375c00
Renamed CraplogWorker to CraplogParser
Moved into workers sub-directory
2023-05-14 14:10:09 +02:00
Valentino Orlandi 4de8c777a0
Fix
Swapped OSX / BSD ifdefs in MemOps
2023-05-01 11:04:17 +02:00
Valentino Orlandi 28af913e72
Fix
Fixed MemOps::availableMemory for BSD
2023-05-01 01:08:26 +02:00
Valentino Orlandi a1efbd3a5d
Fix
Fixed mismatched type for OSX in MemOps::availableMemory
2023-04-30 23:54:32 +02:00
Valentino Orlandi 2985307d25
Updated translation resources 2023-04-30 21:46:52 +02:00
Valentino Orlandi 8cc62418f7
Updated translation files 2023-04-30 21:45:44 +02:00
Valentino Orlandi abb697d643
Code and docs improvements 2023-04-30 21:30:21 +02:00
Valentino Orlandi 76852f66d4
Fixed sending Qt signals with size_t parameters 2023-04-30 21:07:52 +02:00
Valentino Orlandi 9956647a2d
Added message dialog for insufficient memory 2023-04-30 20:43:18 +02:00
Valentino Orlandi 8b918c4dc4
Added available memory check before parsing
Introduced check on selected logs' size to not exceed available memory
2023-04-30 20:36:15 +02:00
Valentino Orlandi 2039d37c26
Added MemOps namespace
System memory utilities
2023-04-30 20:31:27 +02:00
Valentino Orlandi 584e2a0a90
Fix
Fixed log files selection not being cleared after job abortion
2023-04-30 17:50:11 +02:00
Valentino Orlandi adcb042107
Added message dialog for empty list of log files 2023-04-30 17:19:40 +02:00
Valentino Orlandi a02f2c9564
Fix
Fixed crash on empty logs list
2023-04-30 17:17:14 +02:00
Valentino Orlandi 684a693e56
Code improvements 2023-04-30 17:09:36 +02:00
Valentino Orlandi 8d915aa160
Updated translation resources 2023-04-29 22:45:58 +02:00
Valentino Orlandi f5b178ad5a
Updated translation files 2023-04-29 22:44:59 +02:00
Valentino Orlandi a2726fb680
Added warning dialog for duplicate files 2023-04-29 22:40:18 +02:00
Valentino Orlandi 0326bc1cc3
Fix
Fixed duplicated log files not catched before parsing
2023-04-29 22:35:02 +02:00
Valentino Orlandi 97e2837e2b
Performance improvements
Reverted StringOps::endsWith to previous version
2023-04-29 15:36:35 +02:00
Valentino Orlandi 1994891b13
Added compiler optimization flags 2023-04-29 15:10:08 +02:00
Valentino Orlandi db725720fe
Improvements
Replaced Result class with std::optional
2023-04-23 15:30:59 +02:00
Valentino Orlandi b045b57851
Fixed OSX compilation issues 2023-04-23 11:03:04 +02:00
Valentino Orlandi 114bf128fb
Code and performance improvements 2023-04-23 11:02:22 +02:00
Valentino Orlandi bf74ec4ea0
Updated translation files
Removed source references for the only 3 (out of 7) files having them
2023-04-15 20:40:27 +02:00
Valentino Orlandi a78632a024
Fixed time-zone handling for DateTimeOps tests 2023-04-15 20:34:56 +02:00
Valentino Orlandi 67fc419e46
Added tests suite
Added white-box tests.
Updated CMakeLists to allow using CTest.
2023-04-11 23:28:55 +02:00
Valentino Orlandi 479e312d4c
Updated translation files 2023-04-11 23:17:54 +02:00
Valentino Orlandi 19df5598fb
Code improvements 2023-04-11 23:14:24 +02:00
Valentino Orlandi 2ec213210b
Code and performance improvements
General code improvements.
Morphed classes into namespaces: DateTimeOps, LogOps, CheckSec,
ColorSec, GZutils, IOutils, PrintSec, StyleSec, StringOps and VecOps.
2023-04-11 23:12:06 +02:00
Valentino Orlandi bbfd8a7832
Performance improvements
Enhanced StringOps methods
2023-04-03 21:40:17 +02:00
Valentino Orlandi 7a78e29337
Code improvements and fixes
General improvements.
Made VecOps and Result header only.
Fixed setting LogFormat in Craplog when format string of the current
WebServer changes.
2023-03-18 15:53:47 +01:00
Valentino Orlandi 97bd7e8dd6
Version update
Version 2.04
2023-02-12 23:35:20 +01:00
Valentino Orlandi 0b4a9790f2
Updated UI 2023-02-12 23:10:28 +01:00
Valentino Orlandi 82e1066abf
Improvements and updates
Code improvements.
Charts' themes related updates.
2023-02-12 23:09:10 +01:00
Valentino Orlandi 84ae38023a
Introduced custom themes for the charts
Added new method: applyChartTheme
2023-02-12 23:04:36 +01:00
Valentino Orlandi 9c805dd1ff
Code improvements 2023-02-12 23:01:58 +01:00
Valentino Orlandi 49d59fe70c
Improvements and updates
Code improvements.
Craplog's lib relative updates.
Replaced raw pointers with smart pointers.
Replaced raw loops with STL algorithms.
Moved members variables initialization to initialization lists.
2023-02-11 20:41:43 +01:00
Valentino Orlandi 06bad1d2ca
Updated translation files 2023-02-11 20:24:29 +01:00
Valentino Orlandi c43a1ffed1
Created Craplog lib
Holds Craplog's modules shared stuff
2023-02-11 20:22:42 +01:00
Valentino Orlandi c2cd21d2b7
Updated translation resources 2023-01-27 15:35:44 +01:00
Valentino Orlandi 8366e8e5e4
Updated translation files 2023-01-27 15:34:56 +01:00
Valentino Orlandi f895c7475c
Version update
Version 2.03
2023-01-27 02:51:02 +01:00
Valentino Orlandi 06ea08b829
Updated CMakeLists.txt 2023-01-27 02:48:46 +01:00
Valentino Orlandi e8eafe7b4f
Updated UI 2023-01-27 02:46:52 +01:00
Valentino Orlandi df46ae69da
Improvements and updates
Code improvements.
Removed printable stuff.
Added help fallback to hard-coded default in case of missing resources.
Added signals and slots to synchronize with Craplog and get performance
data.
2023-01-27 02:45:51 +01:00
Valentino Orlandi bbb5065dc7
Update
Removed use of the default connection for the database as consequence of
the introduction of the worker updating it in a separate thread: avoid
query errors and crashes
2023-01-27 02:39:57 +01:00
Valentino Orlandi ca1bb8d91d
Removed Craplog's module StoreOps
Worker handles all this stuff
2023-01-27 02:37:05 +01:00