#include <QListWidget>
#include <QPushButton>
#include <QDoubleSpinBox>
+#include <QTextEdit>
HYDROGUI_StreamDlg::HYDROGUI_StreamDlg( HYDROGUI_Module* theModule, const QString& theTitle )
: HYDROGUI_InputPanel( theModule, theTitle )
aParamGroup->setLayout( aParamLayout );
+ // Warnings
+ QGroupBox* aWarnGroup = new QGroupBox( tr( "STREAM_WARNINGS" ), mainFrame() );
+ myWarnText = new QTextEdit();
+ myWarnText->setReadOnly(true);
+ QBoxLayout* aWarnLayout = new QVBoxLayout();
+ aWarnLayout->addWidget( myWarnText );
+ aWarnGroup->setLayout( aWarnLayout );
+
// Common
addWidget( myObjectNameGroup );
addWidget( aParamGroup );
+ addWidget( aWarnGroup );
addStretch();
// Create selector
myProfiles->setBackgroundColor(theInd, theColor);
}
+void HYDROGUI_StreamDlg::setBackgroundColorForProfileList (QString name, QColor theColor)
+{
+ myProfiles->setBackgroundColor(name, theColor);
+}
+
QColor HYDROGUI_StreamDlg::getBackgroundColorForProfileList (int theInd) const
{
return myProfiles->getBackgroundColor(theInd);
myProfiles->clearAllBackgroundColors();
}
+void HYDROGUI_StreamDlg::addWarning( const QString& theWarnMess )
+{
+ myWarnText->append( theWarnMess );
+}
+
+void HYDROGUI_StreamDlg::clearWarnings()
+{
+ myWarnText->clear();
+}
+