Go to the documentation of this file.
30 #include <QProgressBar>
33 #include <QPushButton>
34 #include <QtGui/QCloseEvent>
36 #include <QtCore/QTimer>
37 #include <QtCore/QTime>
44 QDialog(parent, flags),
45 _delayedClosingTime(1),
48 _text =
new QLabel(
this);
49 _text->setWordWrap(
true);
65 connect(
_closeButton, SIGNAL(clicked()),
this, SLOT(close()));
68 QVBoxLayout * layout =
new QVBoxLayout(
this);
69 layout->addWidget(
_text);
72 QHBoxLayout * hLayout =
new QHBoxLayout();
73 layout->addLayout(hLayout);
75 hLayout->addStretch();
78 this->setLayout(layout);
90 if(delayedClosingTimeSec >= 0)
106 QString
html = tr(
"<html><font color=\"#999999\">%1 </font><font color=\"%2\">%3</font></html>").arg(QTime::currentTime().toString(
"HH:mm:ss")).arg(color.name()).arg(
text);
virtual ~ProgressDialog()
void appendText(const QString &text, const QColor &color=Qt::black)
ProgressDialog(QWidget *parent=0, Qt::WindowFlags flags=Qt::WindowFlags())
void setAutoClose(bool on, int delayedClosingTimeSec=-1)
QPushButton * _closeButton
void setCancelButtonVisible(bool visible)
QCheckBox * _closeWhenDoneCheckBox
QTextEdit * _detailedText
ULogger class and convenient macros.
QPushButton * _cancelButton
void incrementStep(int steps=1)
string html(const DiscreteValues &values, const KeyFormatter &keyFormatter=DefaultKeyFormatter, const DiscreteValues::Names &names={})
QProgressBar * _progressBar
void setMaximumSteps(int steps)
virtual void closeEvent(QCloseEvent *event)
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:14