fix some documentation warnings
This commit is contained in:
2026-02-14 14:32:37 +01:00
parent 01dfb0e21d
commit 683f262fa1
10 changed files with 66 additions and 7 deletions
+2
View File
@@ -36,3 +36,5 @@
build/ build/
CMakeLists.txt.user CMakeLists.txt.user
html/
+4 -3
View File
@@ -992,11 +992,12 @@ WARN_LOGFILE =
# Note: If this tag is empty the current directory is searched. # Note: If this tag is empty the current directory is searched.
INPUT = /home/sanderspeetjens/nmbs/git/unisim_cpp/server \ INPUT = /home/sanderspeetjens/nmbs/git/unisim_cpp/server \
/home/sanderspeetjens/nmbs/git/unisim_cpp/tests \
/home/sanderspeetjens/nmbs/git/unisim_cpp/UI \ /home/sanderspeetjens/nmbs/git/unisim_cpp/UI \
/home/sanderspeetjens/nmbs/git/unisim_cpp/create_client.md \ /home/sanderspeetjens/nmbs/git/unisim_cpp/create_client.md \
/home/sanderspeetjens/nmbs/git/unisim_cpp/create_server.md \ /home/sanderspeetjens/nmbs/git/unisim_cpp/create_server.md \
/home/sanderspeetjens/nmbs/git/unisim_cpp/README.md /home/sanderspeetjens/nmbs/git/unisim_cpp/README.md \
/home/sanderspeetjens/nmbs/git/unisim_cpp/UI \
client
# This tag can be used to specify the character encoding of the source files # This tag can be used to specify the character encoding of the source files
# that Doxygen parses. Internally Doxygen uses the UTF-8 encoding. Doxygen uses # that Doxygen parses. Internally Doxygen uses the UTF-8 encoding. Doxygen uses
@@ -2018,7 +2019,7 @@ EXTRA_SEARCH_MAPPINGS =
# If the GENERATE_LATEX tag is set to YES, Doxygen will generate LaTeX output. # If the GENERATE_LATEX tag is set to YES, Doxygen will generate LaTeX output.
# The default value is: YES. # The default value is: YES.
GENERATE_LATEX = YES GENERATE_LATEX = NO
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+4
View File
@@ -3,6 +3,10 @@
#define UI_HEX_SPINBOX_TYPE std::string("ui_hex_spinbox") #define UI_HEX_SPINBOX_TYPE std::string("ui_hex_spinbox")
/**
* @brief Class representing a UI hex spinbox
*
*/
class UI_hex_spinbox : public UI_item class UI_hex_spinbox : public UI_item
{ {
Q_OBJECT Q_OBJECT
+4
View File
@@ -2,6 +2,10 @@
#include <QRadioButton> #include <QRadioButton>
#include <QVBoxLayout> #include <QVBoxLayout>
/**
* @brief Class representing a better radiobutton group
*
*/
class Better_Radiobutton : public QWidget class Better_Radiobutton : public QWidget
{ {
Q_OBJECT Q_OBJECT
+4
View File
@@ -7,6 +7,10 @@ namespace Ui
class Can_Transceive; class Can_Transceive;
} }
/**
* @brief Class representing a CAN transceive UI component
*
*/
class Can_Transceive : public QWidget class Can_Transceive : public QWidget
{ {
Q_OBJECT Q_OBJECT
+25 -3
View File
@@ -3,9 +3,12 @@
#include <QRegularExpressionValidator> #include <QRegularExpressionValidator>
#include <QSpinBox> #include <QSpinBox>
// NOTE: Since QSpinBox uses int as the storage type, the effective editing range /**
// is +/- 0x7FFF FFFF, so it can't handle a full unsigned int. * @brief Class representing a hexadecimal spin box
// QDoubleSpinBox would be a more suitable base class if a wider range is needed. * @note Since QSpinBox uses int as the storage type, the effective editing range
* is +/- 0x7FFF FFFF, so it can't handle a full unsigned int.
* QDoubleSpinBox would be a more suitable base class if a wider range is needed.
*/
class HexSpinBox : public QSpinBox class HexSpinBox : public QSpinBox
{ {
Q_OBJECT Q_OBJECT
@@ -42,8 +45,27 @@ class HexSpinBox : public QSpinBox
void setFormat(const QString &text); void setFormat(const QString &text);
protected: protected:
/**
* @brief Validate the input text
*
* @param text The input text
* @param pos The position of the cursor
* @return QValidator::State The validation state
*/
QValidator::State validate(QString &text, int &pos) const override; QValidator::State validate(QString &text, int &pos) const override;
/**
* @brief Convert text to value
*
* @param text The input text
* @return int The corresponding value
*/
int valueFromText(const QString &text) const override; int valueFromText(const QString &text) const override;
/**
* @brief Convert value to text
*
* @param value The input value
* @return QString The corresponding text
*/
QString textFromValue(int value) const override; QString textFromValue(int value) const override;
private: private:
+4
View File
@@ -1,6 +1,10 @@
#pragma once #pragma once
#include "QPushButton" #include "QPushButton"
/**
* @brief Class representing an LED widget
*
*/
class Led : public QPushButton class Led : public QPushButton
{ {
Q_OBJECT Q_OBJECT
+4
View File
@@ -4,6 +4,10 @@
#include <qwt_plot_curve.h> #include <qwt_plot_curve.h>
#include <qwt_text.h> #include <qwt_text.h>
/**
* @brief Class wrapping a QwtPlot for plotting data
*
*/
class Plot_wrapper : public QwtPlot class Plot_wrapper : public QwtPlot
{ {
Q_OBJECT Q_OBJECT
+3
View File
@@ -18,6 +18,9 @@ using json = nlohmann::json;
return new client(api, parent); \ return new client(api, parent); \
} }
/**
* @brief Base class for UI components
*/
class UI_base : public QMainWindow class UI_base : public QMainWindow
{ {
Q_OBJECT Q_OBJECT
+11
View File
@@ -5,10 +5,17 @@ Q_FORWARD_DECLARE_OBJC_CLASS(QWebSocket);
Q_FORWARD_DECLARE_OBJC_CLASS(QTimer); Q_FORWARD_DECLARE_OBJC_CLASS(QTimer);
using json = nlohmann::json; using json = nlohmann::json;
/**
* @brief Class wrapping a WebSocket connection
*
*/
class Web_socket_wrapper : public QObject class Web_socket_wrapper : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
/**
* @brief Enumeration of commands
*/
enum class Command enum class Command
{ {
get_UI_element, get_UI_element,
@@ -20,6 +27,10 @@ class Web_socket_wrapper : public QObject
begin = 0 begin = 0
}; };
/**
* @brief Enumeration of events
*
*/
enum class Event enum class Event
{ {
clicked, clicked,