- ExtVideo *bar = new ExtVideo( p_intf, this );
- tab->addTab( bar, qtr( "Video effects" ) );
+ ExtVideo *videoEffect = new ExtVideo( p_intf, videoTab );
+ videoLayout->addWidget( videoTab );
+ videoTab->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum );
+
+ mainTabW->addTab( videoWidget, qtr( "Video Effects" ) );
+
+ if( module_Exists( p_intf, "v4l2" ) )
+ {
+ ExtV4l2 *v4l2 = new ExtV4l2( p_intf, mainTabW );
+ mainTabW->addTab( v4l2, qtr( "v4l2 controls" ) );
+ }
+
+ layout->addWidget( mainTabW, 0, 0, 1, 5 );
+
+ QPushButton *closeButton = new QPushButton( qtr( "Close" ) );
+ layout->addWidget( closeButton, 1, 4, 1, 1 );
+ CONNECT( closeButton, clicked(), this, close() );
+
+ readSettings( "EPanel", QSize( 400, 280 ), QPoint( 450, 0 ) );