22 : QDialog( parent, fl )
27 setAttribute( Qt::WA_DeleteOnClose );
36 restoreGeometry( settings.value(
"/Windows/MessageViewer/geometry" ).toByteArray() );
42 settings.setValue(
"/Windows/MessageViewer/geometry", saveGeometry() );
47 txtMessage->setHtml( msg );
52 txtMessage->setPlainText( msg );
57 txtMessage->append( msg );
73 QApplication::setOverrideCursor( Qt::ArrowCursor );
75 QApplication::restoreOverrideCursor();
85 setWindowTitle( title );
90 checkBox->setText( text );
95 checkBox->setVisible( visible );
100 checkBox->setCheckState( state );
105 return checkBox->checkState();
120 if ( checkBox->checkState() == Qt::Checked )
QString mCheckBoxQSettingsLabel
virtual void setMessage(const QString &message, MessageType msgType)
set message, it won't be displayed until
MessageType
message can be in plain text or in html format
virtual void appendMessage(const QString &message)
message to be appended to the current text
Qt::CheckState checkBoxState()
void setMessageAsHtml(const QString &msg)
virtual void showMessage(bool blocking=true)
display the message to the user
void on_checkBox_toggled(bool)
void setCheckBoxState(Qt::CheckState state)
void setMessageAsPlainText(const QString &msg)
virtual void setTitle(const QString &title)
set title for the messages
void setCheckBoxText(const QString &text)
QgsMessageViewer(QWidget *parent=0, Qt::WindowFlags fl=QgisGui::ModalDialogFlags, bool deleteOnClose=true)
void setCheckBoxQSettingsLabel(QString label)
void setCheckBoxVisible(bool visible)