2 #include <HYDROGUI_TwoImagesDlg.h>
3 #include <HYDROGUI_ObjSelector.h>
4 #include <HYDROGUI_ColorWidget.h>
6 #include <QRadioButton>
9 HYDROGUI_TwoImagesDlg::HYDROGUI_TwoImagesDlg( HYDROGUI_Module* theModule, const QString& theTitle )
10 : HYDROGUI_InputPanel( theModule, theTitle )
12 myName = new QLineEdit();
13 myImage1 = new HYDROGUI_ObjSelector( module(), 0 );
14 myImage2 = new HYDROGUI_ObjSelector( module(), 0 );
15 myTransparent = new QRadioButton( tr( "TRANSPARENT" ) );
16 myTransparent->setChecked( true );
17 myColor = new QRadioButton( tr( "COLOR" ) );
18 myColorBox = new HYDROGUI_ColorWidget( 0 );
20 addWidget( tr( "NAME" ), myName );
22 addWidget( tr( "IMAGE_1" ), myImage1 );
23 addWidget( tr( "IMAGE_2" ), myImage2 );
25 QFrame* aBackground = new QFrame();
26 QGridLayout* aLayout = new QGridLayout( aBackground );
27 aLayout->addWidget( myTransparent, 0, 0 );
28 aLayout->addWidget( myColor, 1, 0 );
29 aLayout->addWidget( myColorBox, 1, 1 );
31 addWidget( tr( "BACKGROUND" ), aBackground );
36 HYDROGUI_TwoImagesDlg::~HYDROGUI_TwoImagesDlg()
40 void HYDROGUI_TwoImagesDlg::GetSelectedImages( QString& theName1, QString& theName2 ) const
42 theName1 = myImage1->GetName();
43 theName2 = myImage2->GetName();