PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
List of all members | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
QPlusStatusIcon Class Reference

#include <src/PlusWidgets/QPlusStatusIcon.h>

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

Public Slots

void AddMessage (QString aInputString)
 

Public Member Functions

 QPlusStatusIcon (QWidget *aParent=0, Qt::WindowFlags aFlags=0)
 
void SetMaxMessageCount (int count)
 
 ~QPlusStatusIcon ()
 

Protected Slots

void ApplyFilterTimerFired ()
 
void ClearFilterButtonClicked ()
 
void ClearMessageList ()
 
void CreateCustomContextMenu (const QPoint &aPoint)
 
void FilterLineEditEdited (const QString &)
 

Protected Member Functions

void ApplyFilter ()
 
PlusStatus ConstructMessageListWidget ()
 
bool eventFilter (QObject *obj, QEvent *ev)
 
void ParseMessage (QString &aInputString)
 
void ResetIconState ()
 
void resizeEvent (QResizeEvent *event)
 

Protected Attributes

QPushButton * m_ClearFilterButton
 
unsigned long m_DisplayMessageCallbackTag
 
unsigned long m_DisplayWideMessageCallbackTag
 
QLabel * m_DotLabel
 
QTimer m_FilterInputTimer
 
QLineEdit * m_FilterLineEdit
 
int m_Level
 
int m_MaxMessageCount
 
QFrame * m_MessageListFrame
 
std::vector< QString > m_MessageLog
 
QTextEdit * m_MessageTextEdit
 

Detailed Description

Widget that shows the current status of the application and displays all log messages occurred

Definition at line 61 of file QPlusStatusIcon.h.

Constructor & Destructor Documentation

◆ QPlusStatusIcon()

QPlusStatusIcon::QPlusStatusIcon ( QWidget *  aParent = 0,
Qt::WindowFlags  aFlags = 0 
)

Constructor

Parameters
aParentparent
aFlagswidget flag

Definition at line 31 of file QPlusStatusIcon.cxx.

◆ ~QPlusStatusIcon()

QPlusStatusIcon::~QPlusStatusIcon ( )

Destructor

Definition at line 79 of file QPlusStatusIcon.cxx.

Member Function Documentation

◆ AddMessage

void QPlusStatusIcon::AddMessage ( QString  aInputString)
slot

Callback function for logger to display messages in popup window

Returns
aInputString Log level and message in a string

Definition at line 86 of file QPlusStatusIcon.cxx.

◆ ApplyFilter()

void QPlusStatusIcon::ApplyFilter ( )
protected

Filter the text in the message box with the text in the line edit

Definition at line 369 of file QPlusStatusIcon.cxx.

◆ ApplyFilterTimerFired

void QPlusStatusIcon::ApplyFilterTimerFired ( )
protectedslot

Apply the filter if the timer expires

Definition at line 340 of file QPlusStatusIcon.cxx.

◆ ClearFilterButtonClicked

void QPlusStatusIcon::ClearFilterButtonClicked ( )
protectedslot

Apply filter button was clicked

Definition at line 346 of file QPlusStatusIcon.cxx.

◆ ClearMessageList

void QPlusStatusIcon::ClearMessageList ( )
protectedslot

Clear the message box

Definition at line 332 of file QPlusStatusIcon.cxx.

◆ ConstructMessageListWidget()

PlusStatus QPlusStatusIcon::ConstructMessageListWidget ( )
protected

Creates message frame and fills up message field with the massages

Returns
Success flag

Definition at line 194 of file QPlusStatusIcon.cxx.

◆ CreateCustomContextMenu

void QPlusStatusIcon::CreateCustomContextMenu ( const QPoint &  aPoint)
protectedslot

Create an extended context menu with the clear option

Definition at line 321 of file QPlusStatusIcon.cxx.

◆ eventFilter()

bool QPlusStatusIcon::eventFilter ( QObject *  obj,
QEvent *  ev 
)
protected

Filters events if this object has been installed as an event filter for the watched object

Parameters
objobject
evevent
Returns
if you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false

Definition at line 268 of file QPlusStatusIcon.cxx.

◆ FilterLineEditEdited

void QPlusStatusIcon::FilterLineEditEdited ( const QString &  )
protectedslot

Detect changes in the line edit text

Definition at line 355 of file QPlusStatusIcon.cxx.

◆ ParseMessage()

void QPlusStatusIcon::ParseMessage ( QString &  aInputString)
protected

Parse a message and add it to the text edit

Definition at line 105 of file QPlusStatusIcon.cxx.

◆ ResetIconState()

void QPlusStatusIcon::ResetIconState ( )
protected

Reset the icon to a nice green icon

Definition at line 386 of file QPlusStatusIcon.cxx.

◆ resizeEvent()

void QPlusStatusIcon::resizeEvent ( QResizeEvent *  event)
protected

Definition at line 312 of file QPlusStatusIcon.cxx.

◆ SetMaxMessageCount()

void QPlusStatusIcon::SetMaxMessageCount ( int  count)

Definition at line 393 of file QPlusStatusIcon.cxx.

Member Data Documentation

◆ m_ClearFilterButton

QPushButton* QPlusStatusIcon::m_ClearFilterButton
protected

Button to apply the filter to the message log

Definition at line 161 of file QPlusStatusIcon.h.

◆ m_DisplayMessageCallbackTag

unsigned long QPlusStatusIcon::m_DisplayMessageCallbackTag
protected

Tag number of the display message callback

Definition at line 166 of file QPlusStatusIcon.h.

◆ m_DisplayWideMessageCallbackTag

unsigned long QPlusStatusIcon::m_DisplayWideMessageCallbackTag
protected

Definition at line 167 of file QPlusStatusIcon.h.

◆ m_DotLabel

QLabel* QPlusStatusIcon::m_DotLabel
protected

Label representing the colored dot for of this widget

Definition at line 150 of file QPlusStatusIcon.h.

◆ m_FilterInputTimer

QTimer QPlusStatusIcon::m_FilterInputTimer
protected

Timer to prevent rapid re-filtering

Definition at line 163 of file QPlusStatusIcon.h.

◆ m_FilterLineEdit

QLineEdit* QPlusStatusIcon::m_FilterLineEdit
protected

Field for filter contents

Definition at line 159 of file QPlusStatusIcon.h.

◆ m_Level

int QPlusStatusIcon::m_Level
protected

State level of the widget ( no errors (>2): green , warning (2): orange , error (1): red )

Definition at line 147 of file QPlusStatusIcon.h.

◆ m_MaxMessageCount

int QPlusStatusIcon::m_MaxMessageCount
protected

Definition at line 173 of file QPlusStatusIcon.h.

◆ m_MessageListFrame

QFrame* QPlusStatusIcon::m_MessageListFrame
protected

Frame containing the field of messages

Definition at line 153 of file QPlusStatusIcon.h.

◆ m_MessageLog

std::vector<QString> QPlusStatusIcon::m_MessageLog
protected

Contents of the entire log

Definition at line 170 of file QPlusStatusIcon.h.

◆ m_MessageTextEdit

QTextEdit* QPlusStatusIcon::m_MessageTextEdit
protected

Field containing the messages

Definition at line 156 of file QPlusStatusIcon.h.


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