Engauge Digitizer 2
Loading...
Searching...
No Matches
MainWindowMsg Class Reference

Main window for momentary message dialog. More...

#include <MainWindowMsg.h>

Inheritance diagram for MainWindowMsg:
Inheritance graph
Collaboration diagram for MainWindowMsg:
Collaboration graph

Public Member Functions

 MainWindowMsg (const QString &msg)
 Single constructor.
 ~MainWindowMsg ()
virtual void showEvent (QShowEvent *)
 Processing performed after gui becomes available.

Detailed Description

Main window for momentary message dialog.

Comments:

  • Typically program will exit after showing this
  • No logging is done since this is started (and finishes) before logging

Definition at line 20 of file MainWindowMsg.h.

Constructor & Destructor Documentation

◆ MainWindowMsg()

MainWindowMsg::MainWindowMsg ( const QString & msg)

Single constructor.

Definition at line 11 of file MainWindowMsg.cpp.

11 :
12 QMainWindow(),
13 m_msg (msg)
14{
15}

◆ ~MainWindowMsg()

MainWindowMsg::~MainWindowMsg ( )

Definition at line 17 of file MainWindowMsg.cpp.

18{
19}

Member Function Documentation

◆ showEvent()

void MainWindowMsg::showEvent ( QShowEvent * )
virtual

Processing performed after gui becomes available.

Definition at line 21 of file MainWindowMsg.cpp.

22{
23 // Show message in gui instead of cout or cerr since console output is disabled in at least Microsoft Windows
24 QMessageBox msgBox (QMessageBox::Information,
25 QObject::tr ("Engauge Digitizer"),
26 m_msg);
27
28 // Connect so closing dialog also closes this class
29 connect (&msgBox, SIGNAL (buttonClicked (QAbstractButton *)), this, SLOT (slotClose (QAbstractButton *)));
30
31 msgBox.exec();
32}

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