DDASToys for NSCLDAQ  6.2-000
Classes | Public Member Functions | Protected Member Functions | List of all members
QTraceView Class Reference

Main traceview GUI window. More...

#include <QTraceView.h>

Inheritance diagram for QTraceView:
Inheritance graph
[legend]
Collaboration diagram for QTraceView:
Collaboration graph
[legend]

Public Member Functions

 QTraceView (QCommandLineParser &parser, QWidget *parent=Q_NULLPTR)
 Constructor. More...
 
virtual ~QTraceView ()
 Destructor. More...
 

Protected Member Functions

virtual void changeEvent (QEvent *e)
 Event handler for state changes. More...
 

Detailed Description

Main traceview GUI window.

Todo:
(ASC 10/15/24): Probably a project-wide TODO... only the public and Qt signaling interfaces need to be exposed here. I suspect that any helper functions can be make static, which may greatly simplify the class and make compilation easier.
Todo:
(ASC 10/16/24): Probably another project-wide TODO... avoid constructor initializations which use the new keyword. Can use smart ptrs (preferred?) or simply initialize in the constructor body with the initialization list for all pointer membvers as nullptr. Hopefully improves safety e.g., an exception or other error in the constructor body will (hopefully!) ensure deletion of created objetcs which may not happen if new'd in init list.

Main window class for traceview responsible for management and high-level control over the application. Uses Qt's signal and slot framework to communicate between objects. See Qt documentation for details.

Constructor & Destructor Documentation

◆ QTraceView()

QTraceView::QTraceView ( QCommandLineParser &  parser,
QWidget *  parent = Q_NULLPTR 
)

Constructor.

Parameters
parserReferences the QCommandLineParser.
parentPointer to QWidget parent object (optional, default=Q_NULLPTR).

Constructs the widgets which define the main window layout. Initialization list order and the order of the funciton calls in the constructor matter as some member variables depend on others being initialized to configure children or actions.

◆ ~QTraceView()

QTraceView::~QTraceView ( )
virtual

Destructor.

Qt should manage deletion of child objects when each parent is destroyed upon application exit. But we still should clean up our own stuff.

Member Function Documentation

◆ changeEvent()

void QTraceView::changeEvent ( QEvent *  e)
protectedvirtual

Event handler for state changes.

Parameters
ePointer to the handled QEvent.

Primary purpose here is to propagate the state changes to ROOT.


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