The TipDialog is a dialog to show tips/hints to the user, which are optionally only shown once.
More...
#include <ArmarXGui/libraries/ArmarXGuiBase/widgets/TipDialog.h>
|
| QStringList | getBlackListedStrings () const |
| | Returns all currently blacklisted strings.
|
| |
| bool | isBlackListed (const QString &stringId) const |
| | Checks whether a specific string is blacklisted.
|
| |
| void | setBlackListedStrings (const QStringList &strings) |
| | Sets list of blacklisted strings.
|
| |
| void | showMessage (const QString &tipText, const QString &windowTitle, const QString &stringIdentifier="") |
| | Shows this dialog and shows the message, if it was not blacklisted.
|
| |
| | TipDialog (QWidget *parent=0) |
| |
| | ~TipDialog () override |
| |
The TipDialog is a dialog to show tips/hints to the user, which are optionally only shown once.
This dialog contains a textfield in which the developer can show a tip to the user. It also contains a checkbox "Do not show again", which upon selection puts the shown string into a blacklist of messages, which are not shown again.
To show the dialog use the function showMessage(). The dialog should only be created once and passed around or the blacklist must be passed on each creation to the dialog via setBlackListedStrings().
- See also
- getTipDialog, armarx::ArmarXMainWindow
◆ TipDialog()
◆ ~TipDialog()
◆ getBlackListedStrings()
| QStringList getBlackListedStrings |
( |
| ) |
const |
Returns all currently blacklisted strings.
◆ hideEvent()
| void hideEvent |
( |
QHideEvent * | | ) |
|
|
overrideprotected |
◆ isBlackListed()
| bool isBlackListed |
( |
const QString & | stringId | ) |
const |
Checks whether a specific string is blacklisted.
- Parameters
-
- Returns
- True if blacklisted.
◆ setBlackListedStrings()
| void setBlackListedStrings |
( |
const QStringList & | strings | ) |
|
Sets list of blacklisted strings.
Pass empty list to clear. All previously set strings are forgotten.
◆ showMessage()
| void showMessage |
( |
const QString & | tipText, |
|
|
const QString & | windowTitle, |
|
|
const QString & | stringIdentifier = "" ) |
Shows this dialog and shows the message, if it was not blacklisted.
If the message was blacklisted, nothing happens.
- Parameters
-
| tipText | Text that should be shown in the dialog. If stringIdentifier is empty, this string is used for blacklisting the message. |
| windowTitle | WindowTitle of the Dialog |
| stringIdentifier | If not empty, this string is used for the blacklisting instead of the tiptext. |
The documentation for this class was generated from the following files: