* extended.cpp : Extended controls - Undocked
****************************************************************************
* Copyright (C) 2006 the VideoLAN team
- * $Id: streaminfo.cpp 16687 2006-09-17 12:15:42Z jb $
+ * $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
-
-#include <QTabWidget>
-#include <QBoxLayout>
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+#include "qt4.hpp"
#include "dialogs/extended.hpp"
#include "dialogs_provider.hpp"
#include "util/qvlcframe.hpp"
#include "components/extended_panels.hpp"
-#include "qt4.hpp"
+
+#include <QTabWidget>
+#include <QGridLayout>
ExtendedDialog *ExtendedDialog::instance = NULL;
ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
{
- setWindowTitle( _("Extended controls" ) );
- QHBoxLayout *layout = new QHBoxLayout( this );
+ setWindowFlags( Qt::Tool );
+ setWindowOpacity( config_GetFloat( p_intf, "qt-opacity" ) );
+ setWindowTitle( qtr( "Adjustments and Effects" ) );
+
+ QGridLayout *layout = new QGridLayout( this );
+ QTabWidget *tab = new QTabWidget( this );
Equalizer *foo = new Equalizer( p_intf, this );
- layout->addWidget( foo );
+ tab->addTab( foo, qtr( "Graphic Equalizer" ) );
+
+ ExtVideo *bar = new ExtVideo( p_intf, this );
+ tab->addTab( bar, qtr( "Video Adjustments and Effects" ) );
+
+ layout->addWidget( tab, 0, 0, 1, 5 );
- setLayout( layout );
+ QPushButton *closeButton = new QPushButton( qtr( "Close" ) );
+ layout->addWidget( closeButton, 1, 4, 1, 1);
+ CONNECT( closeButton, clicked(), this, close() );
}
ExtendedDialog::~ExtendedDialog()