+ QLabel *label = new QLabel( qtr( "Toolbar position:" ) );
+ mainTboxLayout->addWidget(label, 0, 0, 1, 2);
+
+ positionCombo = new QComboBox;
+ positionCombo->addItem( qtr( "Under the Video" ), QVariant( 0 ) );
+ positionCombo->addItem( qtr( "Above the Video" ), QVariant( 1 ) );
+ positionCombo->setCurrentIndex( positionCombo->findData(
+ getSettings()->value( "MainWindow/ToolbarPos", 0 ).toInt() ) );
+ mainTboxLayout->addWidget( positionCombo, 0, 2, 1, 1 );
+
+ QLabel *line1Label = new QLabel( qtr("Line 1:") );
+ QString line1 = getSettings()->value( "MainWindow/MainToolbar1",
+ MAIN_TB1_DEFAULT ).toString();
+ controller1 = new DroppingController( p_intf, line1,
+ this );
+ mainTboxLayout->addWidget( line1Label, 1, 0, 1, 1 );
+ mainTboxLayout->addWidget( controller1, 1, 1, 1, 2 );
+
+ QLabel *line2Label = new QLabel( qtr("Line 2:") );
+ QString line2 = getSettings()->value( "MainWindow/MainToolbar2",
+ MAIN_TB2_DEFAULT ).toString();
+ controller2 = new DroppingController( p_intf, line2,
+ this );
+ mainTboxLayout->addWidget( line2Label, 2, 0, 1, 1 );
+ mainTboxLayout->addWidget( controller2, 2, 1, 1, 2);
+
+ /* Advanced ToolBar */
+ QLabel *advLabel = new QLabel( qtr( "Advanced Widget toolbar:" ) );
+ QString lineA = getSettings()->value( "MainWindow/AdvToolbar",
+ ADV_TB_DEFAULT ).toString();
+ controllerA = new DroppingController( p_intf, lineA,
+ this );
+ mainTboxLayout->addWidget( advLabel, 3, 0, 1, 2 );
+ mainTboxLayout->addWidget( controllerA, 3, 2, 1, 1 );
+
+ mainLayout->addWidget( mainToolbarBox, 0, 1, 1, -1 );
+
+ /* TimeToolBar */
+ QGroupBox *timeToolbarBox = new QGroupBox( qtr( "Time Toolbar" ) , this );
+ QGridLayout *timeTboxLayout = new QGridLayout( timeToolbarBox );
+
+ QString line = getSettings()->value( "MainWindow/InputToolbar",
+ INPT_TB_DEFAULT ).toString();
+ controller = new DroppingController( p_intf, line,
+ this );
+ timeTboxLayout->addWidget( controller, 0, 0, 1, -1 );
+
+ mainLayout->addWidget( timeToolbarBox, 1, 1, 1, -1 );
+
+ /* FSCToolBar */
+ QGroupBox *FSCToolbarBox = new QGroupBox( qtr( "Fullscreen Controller" ),
+ this );
+ QGridLayout *FSCTboxLayout = new QGridLayout( FSCToolbarBox );
+
+ QString lineFSC = getSettings()->value( "MainWindow/FSCtoolbar",
+ FSC_TB_DEFAULT ).toString();
+ controllerFSC = new DroppingController( p_intf,
+ lineFSC, this );
+ FSCTboxLayout->addWidget( controllerFSC, 0, 0, 1, -1 );
+
+ mainLayout->addWidget( FSCToolbarBox, 2, 1, 1, -1 );
+
+ /* Profile */
+ QGroupBox *profileBox = new QGroupBox( qtr( "Profile" ), this );
+ QGridLayout *profileBoxLayout = new QGridLayout( profileBox );
+
+ profileCombo = new QComboBox;
+ QLabel *profileLabel = new QLabel( qtr( "Select profile:" ), this );
+
+ QToolButton *newButton = new QToolButton;
+ newButton->setIcon( QIcon( ":/new" ) );
+ QToolButton *deleteButton = new QToolButton;
+ deleteButton->setIcon( QIcon( ":/toolbar/clear" ) );
+ deleteButton->setToolTip( qtr( "Delete the current profile" ) );
+
+ profileBoxLayout->addWidget( profileLabel, 0, 0 );
+ profileBoxLayout->addWidget( profileCombo, 0, 1 );
+ profileBoxLayout->addWidget( newButton, 0, 2 );
+ profileBoxLayout->addWidget( deleteButton, 0, 3 );
+
+ mainLayout->addWidget( profileBox, 3, 1, 1, -1 );
+
+ /* Fill combos */
+ int i_size = getSettings()->beginReadArray( "ToolbarProfiles" );
+ for( int i = 0; i < i_size; i++ )
+ {
+ getSettings()->setArrayIndex(i);
+ profileCombo->addItem( getSettings()->value( "ProfileName" ).toString(),
+ getSettings()->value( "Value" ).toString() );
+ }
+ getSettings()->endArray();