1
/****************************************************************************
2
** Form implementation generated from reading ui file 'qgsmessageviewerbase.ui'
4
** Created: Fri Nov 4 14:21:28 2005
5
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $)
7
** WARNING! All changes made in this file will be lost!
8
****************************************************************************/
10
#include "qgsmessageviewerbase.h"
13
#include <qtextedit.h>
14
#include <qpushbutton.h>
17
#include <qwhatsthis.h>
20
* Constructs a QgsMessageViewerBase as a child of 'parent', with the
21
* name 'name' and widget flags set to 'f'.
23
* The dialog will by default be modeless, unless you set 'modal' to
24
* TRUE to construct a modal dialog.
26
QgsMessageViewerBase::QgsMessageViewerBase( QWidget* parent, const char* name, bool modal, WFlags fl )
27
: QDialog( parent, name, modal, fl )
30
setName( "QgsMessageViewerBase" );
31
setAcceptDrops( FALSE );
32
QgsMessageViewerBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "QgsMessageViewerBaseLayout");
34
txtMessage = new QTextEdit( this, "txtMessage" );
35
txtMessage->setReadOnly( TRUE );
37
QgsMessageViewerBaseLayout->addMultiCellWidget( txtMessage, 0, 0, 0, 2 );
39
btnClose = new QPushButton( this, "btnClose" );
41
QgsMessageViewerBaseLayout->addWidget( btnClose, 1, 1 );
42
spacer1 = new QSpacerItem( 191, 31, QSizePolicy::Expanding, QSizePolicy::Minimum );
43
QgsMessageViewerBaseLayout->addItem( spacer1, 1, 0 );
45
resize( QSize(499, 285).expandedTo(minimumSizeHint()) );
46
clearWState( WState_Polished );
48
// signals and slots connections
49
connect( btnClose, SIGNAL( clicked() ), this, SLOT( reject() ) );
53
* Destroys the object and frees any allocated resources
55
QgsMessageViewerBase::~QgsMessageViewerBase()
57
// no need to delete child widgets, Qt does it all for us
61
* Sets the strings of the subwidgets using the current
64
void QgsMessageViewerBase::languageChange()
66
setCaption( tr( "SPIT Message" ) );
67
btnClose->setText( tr( "Close" ) );
70
void QgsMessageViewerBase::setMessage(QString)
72
qWarning( "QgsMessageViewerBase::setMessage(QString): Not implemented yet" );