![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Dialog widget to display important notifications and events by the RTI Assistant. More...
Inheritance diagram for DtAssistantNotifyDialog:
Collaboration diagram for DtAssistantNotifyDialog:Public Slots | |
| virtual void | fadeDialog () |
| Fades the dialog another step. | |
| virtual void | hideDialog () |
| Clears and hides the dialog. | |
Signals | |
| virtual void | showHistorySelected () |
| Signal which is emitted if the user chooses to view the notification history. | |
| virtual void | faded () |
| Signal which is emitted if the dialog fades out without user acknowledgment. | |
| virtual void | dismissed () |
| Signal which is emitted if the dialog is actively dismissed by the user. | |
Public Member Functions | |
| DtAssistantNotifyDialog (QWidget *parent, const QSystemTrayIcon *trayIcon) | |
| Constructor. | |
| virtual | ~DtAssistantNotifyDialog () |
| Destructor. | |
| virtual void | showNotification (const QString ¬ification, QColor color) |
| Adds the notification text to the dialog and displays it if not currently visible. | |
Protected Member Functions | |
| virtual void | positionDialog () |
| Repositions the dialog relative to the tray icon. | |
Protected Attributes | |
| Ui::AssistantNotifyDialog | myUiImpl |
| The GUI implementation of the widget. | |
| QTimer * | myTimer |
| Timer used to timeout dialog and perform fading. | |
| const QSystemTrayIcon * | myTrayIcon |
| The RTI Assistant tray icon is needed in order to determine the position of the notify dialog. | |
| QSize | myOriginalSize |
| The original size of the dialog. | |
Dialog widget to display important notifications and events by the RTI Assistant.
DtAssistantNotifyDialog is used by the Assistant to display brief notifications which may be of interest to the user. These notifications will appear in a temporary dialog near the Assistant tray icon and will fade out after several seconds.
| DtAssistantNotifyDialog::DtAssistantNotifyDialog | ( | QWidget * | parent, |
| const QSystemTrayIcon * | trayIcon | ||
| ) |
Constructor.
References connect(), dismissed(), DtRtiLibPath(), fadeDialog(), hideDialog(), myOriginalSize, myTimer, myUiImpl, and showHistorySelected().
| DtAssistantNotifyDialog::~DtAssistantNotifyDialog | ( | ) | [virtual] |
Destructor.
| virtual void DtAssistantNotifyDialog::dismissed | ( | ) | [virtual, signal] |
Signal which is emitted if the dialog is actively dismissed by the user.
Referenced by DtAssistantNotifyDialog().
| virtual void DtAssistantNotifyDialog::faded | ( | ) | [virtual, signal] |
Signal which is emitted if the dialog fades out without user acknowledgment.
Referenced by fadeDialog().
| void DtAssistantNotifyDialog::fadeDialog | ( | ) | [virtual, slot] |
Fades the dialog another step.
Dialog is hidden and the text is cleared once it reaches full transparency.
References faded(), hideDialog(), and myTimer.
Referenced by DtAssistantNotifyDialog().
| void DtAssistantNotifyDialog::hideDialog | ( | ) | [virtual, slot] |
Clears and hides the dialog.
References myOriginalSize, myTimer, and myUiImpl.
Referenced by DtAssistantNotifyDialog(), and fadeDialog().
| void DtAssistantNotifyDialog::positionDialog | ( | ) | [protected, virtual] |
Repositions the dialog relative to the tray icon.
References myTrayIcon.
Referenced by showNotification().
| virtual void DtAssistantNotifyDialog::showHistorySelected | ( | ) | [virtual, signal] |
Signal which is emitted if the user chooses to view the notification history.
Referenced by DtAssistantNotifyDialog().
| void DtAssistantNotifyDialog::showNotification | ( | const QString & | notification, |
| QColor | color | ||
| ) | [virtual] |
Adds the notification text to the dialog and displays it if not currently visible.
References myTimer, myUiImpl, and positionDialog().
QSize DtAssistantNotifyDialog::myOriginalSize [protected] |
The original size of the dialog.
Referenced by DtAssistantNotifyDialog(), and hideDialog().
QTimer* DtAssistantNotifyDialog::myTimer [protected] |
Timer used to timeout dialog and perform fading.
Referenced by DtAssistantNotifyDialog(), fadeDialog(), hideDialog(), and showNotification().
const QSystemTrayIcon* DtAssistantNotifyDialog::myTrayIcon [protected] |
The RTI Assistant tray icon is needed in order to determine the position of the notify dialog.
Referenced by positionDialog().
Ui::AssistantNotifyDialog DtAssistantNotifyDialog::myUiImpl [protected] |
The GUI implementation of the widget.
Referenced by DtAssistantNotifyDialog(), hideDialog(), and showNotification().