Commit Graph

5995 Commits

Author SHA1 Message Date
silverqx 5651827368 tom added/updated comments 2024-09-22 20:14:01 +02:00
silverqx 4be391f673 tom formatting 2024-09-22 20:14:01 +02:00
silverqx 1da816dbae tom fixtypo 2024-09-22 20:14:00 +02:00
silverqx c1b1679be5 tom renamed method 2024-09-22 20:14:00 +02:00
silverqx 128774bfc8 tom added comments 2024-09-22 20:14:00 +02:00
silverqx dc2066c7d3 tom added comments 2024-09-22 20:13:59 +02:00
silverqx 445d734212 fixtypo 2024-09-22 20:13:59 +02:00
silverqx 662d734335 tom removed tabulate/table.hpp from headers 🙌
This commit can't be divided because everything is related.

The tabulate/table.hpp #include is too expensive to compile and it was
included everywhere and it also was exposed to the client code.

Whole code was refactored to move this header into the .cpp files.

The InteractsWithIO was also hidden in similar way, forward declared
in the TomApplication, used std::unique_ptr<>, and #include moved
to the .cpp file.

The InteractsWithIO is now private because it's fully initialized after
the TomApplication::run() method call and it would need more work.

The next change is in the InteractsWithIO::table() method, the values
passed to it aren't tabulate::Table::Row_t anymore (for header and body
rows), but are are own types. The reason for this was to get rid of
the Tabulate version number checks and based on these version checks
define the correct Tabulate row/cell types. Now, when this type will
change in the future it will not cause any problems.
These our new table row/cell values/types are internally converted
to the tabulate::Table::Row_t type.

The last change was to extract the formatting code for the Tabulate
table into the StatusCommand. These formatting code/rules were directly
defined in the InteractsWithIO::table() method and that was a bug.
I have added the FormatTableCallback that can be passed to this InteractsWithIO::table() method that allows to format Tabulate table.

 - updated all InteractsWithIO method calls through the io() getter
 - moved the Application::~Application() to the .cpp file (non-inline)
 - exposed the isAnsiW/Output() methods (made public)
 - removed the InteractsWithIO() constructor and
   initialize(const QCommandLineParser &) methods
 - moved the Tabulate table formatting logic to the StatusCommand
 - removed Tabulate version checks thx to our own types
2024-09-22 20:13:53 +02:00
silverqx 1d044bd8c6 tom added/updated comments and fixtypo 2024-09-16 17:55:41 +02:00
silverqx 9291e817f3 tom bugfix called IO directly 2024-09-16 17:55:41 +02:00
silverqx c72ad730fe used constexpr 2024-09-16 17:55:41 +02:00
silverqx d41ee24ae2 tom fixtypo 2024-09-16 17:55:40 +02:00
silverqx 40f0c488b9 tom enhanced table formatting in status command
- right aligned the Batch column
 - simplified formatting of the Ran? column
2024-09-16 12:06:25 +02:00
silverqx b559f22776 tools upgraded to Clang Tidy v19 2024-09-15 20:54:23 +02:00
silverqx 8256cceb55 updated NOTES.txt 2024-09-15 20:45:57 +02:00
silverqx 283f84a49b used std::move() 2024-09-15 20:42:20 +02:00
silverqx fd9ce104ed added reserve() 2024-09-15 20:42:20 +02:00
silverqx 619f62c3c2 tom fixtypo 2024-09-15 20:42:20 +02:00
silverqx 2845947721 tom removed useless alias 2024-09-15 20:42:20 +02:00
silverqx 2465865651 tom renamed method parameter 2024-09-15 20:42:20 +02:00
silverqx 5e5c404ed2 tom fixtypo 2024-09-15 20:42:19 +02:00
silverqx 091fb151c2 added explicit to default constructor 2024-09-15 20:42:19 +02:00
silverqx 22b11c3f52 models added comment 2024-09-15 20:42:19 +02:00
silverqx 9654cd4516 whitespaces/formatting 2024-09-15 20:42:19 +02:00
silverqx cae3c43c2b added comments about explicit 2024-09-15 20:42:19 +02:00
silverqx e7e6716110 removed useless explicit 2024-09-15 20:42:19 +02:00
silverqx 9ec9109c1f drivers common fixtypo 2024-09-15 20:42:18 +02:00
silverqx 0c750dd5ad drivers common removed Clazy suppression 2024-09-15 15:22:23 +02:00
silverqx 2470f930bf upgraded .clang-tidy to Clang v19 2024-09-15 15:10:02 +02:00
silverqx 476530f03d docs added admonitions to Hello world applications 2024-09-15 15:03:31 +02:00
silverqx 1ae397b972 docs updated tom example source code 2024-09-15 15:03:18 +02:00
silverqx 206ec4ccd0 docs fixtypo 2024-09-15 15:02:27 +02:00
silverqx 75d20e551f qmake removed all deployment rules
They don't work and I never tested them.
2024-09-15 11:58:08 +02:00
silverqx 0f86e9d984 drivers common fixypo 2024-09-15 11:52:57 +02:00
silverqx 85c322b02e changed to pure virtual destructor 2024-09-14 12:36:27 +02:00
silverqx c55bc810e2 renamed class 2024-09-14 12:34:05 +02:00
silverqx b7e1c9e766 renamed file 2024-09-14 12:32:30 +02:00
silverqx 5635706069 tom removed uesless inline 2024-09-14 12:30:53 +02:00
silverqx 077e02d796 enhanced #include 2024-09-14 12:30:40 +02:00
silverqx 9e90edd549 orm unified constructor comments 2024-09-14 12:17:27 +02:00
silverqx 2896a56c0d orm revisited all constructors
- made all constructors protected (that allows it)
 - suppressed bugprone-crtp-constructor-accessibility Clang Tidy
 - updated/unified constructor comments
2024-09-14 11:38:18 +02:00
silverqx a403cacc95 drivers mysql used ranges algorithm 2024-09-14 11:30:13 +02:00
silverqx cb406a74f2 tests added const 2024-09-13 14:08:04 +02:00
silverqx 3c02b13489 tests fixed Clazy warning 2024-09-13 14:07:50 +02:00
silverqx e728e86fbf schema formatting 2024-09-13 11:13:27 +02:00
silverqx fd2b4694e9 forced LEAN_HEADERS=ON everywhere
For tools, vcpkg port, and Gentoo ebuild-s.
2024-09-13 10:47:24 +02:00
silverqx ff7d7673ec orm made createdAt() and updatedAt() virtual
- added comment
2024-09-13 10:20:38 +02:00
silverqx 91f5697249 analyzers fixed Clang Tidy warnings
- readability-static-accessed-through-instance
 - made getCreatedAtColumnForLatestOldest() method static
2024-09-13 10:19:58 +02:00
silverqx a55b7efafb tests removed namespace qualifier 2024-09-13 09:19:06 +02:00
silverqx 0cce95ed14 tom added/updated comments 2024-09-13 09:18:36 +02:00