g4dialog
Loading...
Searching...
No Matches
GBoard Class Reference

A widget that displays read-only log text along with a top bar for search, clear, and save actions. More...

#include <gboard.h>

Inheritance diagram for GBoard:
Inheritance graph
Collaboration diagram for GBoard:
Collaboration graph

Public Member Functions

 GBoard (const std::shared_ptr< GOptions > &gopt, QWidget *parent=nullptr)
 Constructs a new GBoard widget.
 
 GBoard (const GBoard &)=delete
 
GBoardoperator= (const GBoard &)=delete
 
 GBoard (GBoard &&)=delete
 
GBoardoperator= (GBoard &&)=delete
 
void appendLog (const QString &text)
 Appends a log message to the log tab.
 

Detailed Description

GBoard contains a QLineEdit for searching, a clear (trashcan) button to remove all log entries, and a save button to write the log to disk. The log messages are maintained in a QStringList to support filtering.

Definition at line 17 of file gboard.h.

Constructor & Destructor Documentation

◆ GBoard() [1/3]

GBoard::GBoard ( const std::shared_ptr< GOptions > & gopt,
QWidget * parent = nullptr )
explicit
Parameters
loggerShared pointer to a GLogger for debug messages.
parentThe parent widget (default is nullptr).

Definition at line 10 of file gboard.cc.

◆ GBoard() [2/3]

GBoard::GBoard ( const GBoard & )
delete

◆ GBoard() [3/3]

GBoard::GBoard ( GBoard && )
delete

Member Function Documentation

◆ appendLog()

void GBoard::appendLog ( const QString & text)
Parameters
textThe log message text.

Definition at line 64 of file gboard.cc.

◆ operator=() [1/2]

GBoard & GBoard::operator= ( const GBoard & )
delete

◆ operator=() [2/2]

GBoard & GBoard::operator= ( GBoard && )
delete

The documentation for this class was generated from the following files: