27#include <ArmarXGui/libraries/ArmarXGuiBase/ui_TipDialog.h>
44 const QString& windowTitle,
45 const QString& stringIdentifier)
47 if (tipText.isEmpty())
52 if (
isBlackListed(stringIdentifier.isEmpty() ? tipText : stringIdentifier))
54 this->setWindowTitle(windowTitle);
55 ui->editTip->setPlainText(tipText);
57 lastId = stringIdentifier.isEmpty() ? tipText : stringIdentifier;
80 return !blackList.contains(stringId);
86 if (ui->cbDoNotShowAgain->isChecked())
90 if (!blackList.contains(lastId))
92 blackList.append(lastId);
void showMessage(const QString &tipText, const QString &windowTitle, const QString &stringIdentifier="")
Shows this dialog and shows the message, if it was not blacklisted.
bool isBlackListed(const QString &stringId) const
Checks whether a specific string is blacklisted.
QStringList getBlackListedStrings() const
Returns all currently blacklisted strings.
void hideEvent(QHideEvent *) override
TipDialog(QWidget *parent=0)
void setBlackListedStrings(const QStringList &strings)
Sets list of blacklisted strings.
#define ARMARX_DEBUG_S
The logging level for output that is only interesting while debugging.
This file offers overloads of toIce() and fromIce() functions for STL container types.