The documentation of `void QProcess::closeWriteChannel()` stated:
> Schedules the write channel of QProcess to be closed. The channel will close once all data has been written to the process. After calling this function, any attempts to write to the process will fail.
>
> Closing the write channel is necessary for programs that read input data until the channel has been closed. For example, the program "more" is used to display text data in a console on both Unix and Windows. But it will not display the text data until QProcess's write channel has been closed
This was interpreted as that the buffer would have been flushed but as we use:
```
QTextStream t(m_runProcess);
m_expert->writeConfig(t,false,false);
```
the `QTextStream` does some buffering of its own and this is not detected by the `closeWriteChannel()` hence we need to `flush` the QTextStream by hand as well.
- Adding the support for the Qt6 version (The first Qt6 version was released December 8, 2020)
- Dropping support for the Qt4 version (The last Qt4 version (4.8.7) was released on May 26, 2015)
Doxygen will always write out the doxygen settings file with `\n` line endings.
The doxywizard was writing (on Windows) the doxygen settings file with `\r\n`m, by default a stream is, apparently opened in Text mode so:
```
When reading, the end-of-line terminators are translated to '\n'. When writing, the end-of-line terminators are translated to the local encoding, for example '\r\n' for Win32.
```
For consistency between doxygen and doxywizard we also write out the settings file with just `\n` line endings in the doxywizard now.
- making the parsing of the configuration consistent with the reading of the configuration file a doxygen run
- adding a number of warnings in case of problems in the configuration file
- making the configuration warnings better visible (popping up the "Output log Window").
Only half of the items in the list of recently loaded configuration files were removed,
(One notices this e.g. after clearing the list, leave the wizard, start wizard and look in the recent loaded files list)
When debugging problems in respect to the doxywizard it always good to know with which version the doxywizard has been build a which runtime version is being used(especially when not linking statically)
Only enable menu item "Reset to factory defaults" in case the current settings are different from the default settings.
Only enable "Clear recent list" and "Open recent" in case there are recent files.
When one hasn't saved ones changes to the settings file and when selection `Quit` in the file menu one gets a message that unsaved changes will be lost and one has 3 possibilities: "Save", "Discard" and "Cancel". The "Save" and "Discard" work as expected but when selecting "Cancel" the application is also terminated (though one would expect to return to the "GUI"). When using (on Windows) the "X-button" one gets the same question with possibilities but here one returns to the "GUI" when selecting "Cancel".
This patch sees to it that when selecting "Cancel" in this case one returns again to the "GUI"
During some tests on the documentation of LLVM the (CMake generated) doxygen configuration file contained the line:
```
DOT_PATH=D:\Program Files (x86)\Graphviz2.38\bin\dot.exe
```
and this was interpreted by doxygen as
```
DOT_PATH = D:\ProgramFiles(x86)\Graphviz2.38\bin\dot.exe
```
without any message other than that later on the `dot` executable could not be found.
It is clear that here the double quotes were missing.
This problem has been solved by giving a warning and setting the value to the default value.
- configimpl.l
- config_doxyw.l
during the checking some debug facilities for the doxywizard were required and this has been implemented:
- config_doxyw.l
- doxywizard.h
- doxywizard.cpp
it was also discovered that in case of none existing int or bool values were specified the wrong "defaults" were taken (it was set to `0` / `false`), now the correct defaults are taken
- inputbool.cpp
- inputint.cpp
Some changes in respect to the layout of the doxywizard
- Vertical lineup of the "Step 1" "step 2" and "Step 3"
- "Condensed show configuration" by means of a checkbox an "Show configuration", checkbox including tooltip
- moving "Show HTML output" above the output.
For Qt5 `QT::SkipEmptyParts` is shown to be used , for QT4 this `QT::SkipEmptyParts` does not exist, but `QString::SkipEmptyParts`.
In Qt5 also `QString::SkipEmptyParts` still exists.
Doxygen has the possibility to show "condensed" (i.e. only show differences from the doxygen default)settings by means of `doxygen -x`.
Creating in the doxygen wizard a button that also can show the "condensed" settings, it is already possible to show all settings.
- add doxygen version to rtf, comment, output
- remove duplicate code (getFullVersion)
- more clear name to get doxygen version (getVersion becomes getrDoxygenVersion). Also to overcomecofusion with the version information for files.
With newer versions of qt5 (e.g. 5.14.0), we get warnings like:
```
...\doxygen\addon\doxywizard\doxywizard.cpp(346): warning C4996: 'QString::sprintf': Use asprintf(), arg() or QTextStream instead
D:\Qt\qt-everywhere-src-5.14.0\install_nmake_2017_32\include\QtCore/qstring.h(382): note: see declaration of 'QString::sprintf'
...\doxygen\addon\doxywizard\wizard.cpp(372): warning C4996: 'QPalette::foreground': Use QPalette::windowText() instead
D:\Qt\qt-everywhere-src-5.14.0\install_nmake_2017_32\include\QtGui/qpalette.h(147): note: see declaration of 'QPalette::foreground'
```
this has been corrected (ran compilation with qt4 as well).
The original version has as features:
- getting the git version number for usage in doxygen
- making the doxygen version number inclusion dependent on the VERSION file
The disadvantage of the chosen methodology was that an extra correction step was necessary, by defining getter methods to retrieve the values this correction can be hidden.
The information is coming from different sources:
- the VERSION file
- the git "repository and build system (when present)
Furthermore there are a couple of places where the version information is used (a.o. doxygen and doxywizard executable, though the doxygenwizard was only done "half hearted")
The handling of the VERSION file has been made in such a way that it is comparable with the generation of the git version changes.
For a better abstraction the version handling is all done in a separate directory.
See to it that the output from 'doxygen' and 'doxywizard' give the same result, difference was only in whitespace.
- space after '#' was already implemented
- implemented now that line endings are conform text layout (Qt 3 name: IO_Translate, Qt 4 name: QIODevice::Text)
- implement no space after '=' in case of an empty string or empty string list.
Looks like the update of the GUI in respect to the "recent list" interfered with the reading of the values in the external list (which was updated during GUI update).
Order of items was also reversed.
On case, on windows, more than 1 argument is given doxywizard stops without showing a message even though a printf is present.
In this patch the message is show (for all platforms) by means of a message box, furthermore in case the argument --help is given the usage message is given in a message box.
Current directory was not changed at the right time so the include files could not be found in the "current" directory (i.e. the directory where the Doxyfile resides too, as this directory is shown as the current directory in the doxywizard). This is also important when the doxywizard is started from a shortcut.