return myImageName->text();
}
+void HYDROGUI_TwoImagesDlg::setSelectedImages( const QString& theName1,
+ const QString& theName2 )
+{
+ myImage1->SetName( theName1 );
+ myImage2->SetName( theName2 );
+}
+
bool HYDROGUI_TwoImagesDlg::getSelectedImages( QString& theName1,
QString& theName2 ) const
{
theName2 = myImage2->GetName();
return !theName1.isEmpty() && !theName2.isEmpty();
}
+
+void HYDROGUI_TwoImagesDlg::setColor( const QColor& theColor )
+{
+ if( theColor.alpha() == 0 ) // transparent
+ myTransparent->setChecked( true );
+ else
+ myColor->setChecked( true );
+ myColorBox->setColor( theColor );
+}
+
+QColor HYDROGUI_TwoImagesDlg::getColor() const
+{
+ QColor aColor( 255, 255, 255, 0 ); // transparent
+ if( myColor->isChecked() )
+ aColor = myColorBox->color();
+ return aColor;
+}