aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/logview/ExportOperation.cpp
Commit message (Expand)AuthorAgeFilesLines
* Port from QRegExp (unavailable on qt6) to KviRegExp, based on QRegularExpression•••Method str_kvs_fnc_split() had to be replaced with the original version, since the newer one relied on Qt5's QStringRef Gravatar Fabio Bas2023-10-181-0/+1
* Qt6 is stricter when casting numericals and chars. Add an explicit cast/conve...•••cast Gravatar Fabio Bas2023-10-181-2/+2
* Batch export logs (#2485)•••* Implement most basic functional batch export For the future: * The loop still needs to be made asynchronous so the process doesn't hang. * Ideally, there should be some sort of progress window. * There is redundant code that should be reduced. * Make batch export asynchronous Reminder: The comment about overwrite protection no longer applies Todo: Progress dialog * Avoid possible dangling pointer, improve type safety and const correctness in the process In reality, the log exporting code has no reason to be in the GUI class to begin with. `exportLog` makes sense as a Qt slot, but `createLog` should be a member function of the `LogFile` class and operate on `this` rather than a `LogFile` argument. A future commit should amend this, but for now I will avoid changing anything unnecessary until a working progress dialog is in place and I have tested the finished feature thoroughly. * Add progress dialog * Make LogViewWindow::createLog a member function of LogFile * Reduce memory usage by sharing `LogFile`s with the GUI thread * Correct progress dialog modality * Collect log files directly instead of reiterating through view items later Also adds a little documentation * Fix batch export for paths with reserved characters * avoid sigsegv * fix tags removal before nickname in html export * Fix directory selection and output path for icons in html export --------- Co-authored-by: ctrlaltca <ctrlaltca@gmail.com>Gravatar Chris MacLeod2023-08-051-0/+45