]> git.sesse.net Git - vlc/commitdiff
Qt: new defaults for buttons.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 18 Jan 2009 23:17:29 +0000 (00:17 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 18 Jan 2009 23:25:19 +0000 (00:25 +0100)
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/dialogs/toolbar.cpp

index 389cbb22932652824a66298b3499063fa51f0f56..b46b7f786e2aeaabb08be480e60a3845bffb9c11 100644 (file)
@@ -704,23 +704,14 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
     QHBoxLayout *controlLayout1 = new QHBoxLayout;
     controlLayout1->setSpacing( 0 );
 
-    QString line1 = getSettings()->value( "MainWindow/MainToolbar1",
-            "64;36;37;38;65").toString();
+    QString line1 = getSettings()->value( "MainToolbar1",
+            "64;38;64;37-4;65;").toString();
     parseAndCreate( line1, controlLayout1 );
 
-   /* QString line2 = QString( "%1-2;%2;%3;%4;%5;%6;%6;%7;%8;%9;%6;%10;%11-4")
-        .arg( PLAY_BUTTON )         .arg( WIDGET_SPACER )
-        .arg( PREVIOUS_BUTTON )         .arg( STOP_BUTTON )
-        .arg( NEXT_BUTTON )        .arg( WIDGET_SPACER )
-        .arg( FULLSCREEN_BUTTON )        .arg( PLAYLIST_BUTTON )
-        .arg( EXTENDED_BUTTON )        .arg( WIDGET_SPACER_EXTEND )
-        .arg( VOLUME );
-    msg_Dbg( p_intf, "%s", qtu( line2 )); */
-
     QHBoxLayout *controlLayout2 = new QHBoxLayout;
     controlLayout2->setSpacing( 0 );
-    QString line2 = getSettings()->value( "MainWindow/MainToolbar2",
-            "0-2;64;3;1;4;64;7;10;9;65;35-4" ).toString();
+    QString line2 = getSettings()->value( "MainToolbar2",
+            "0-2;64;3;1;4;64;7;10;9;64-4;36-4;65;35-4;" ).toString();
     parseAndCreate( line2, controlLayout2 );
 
     if( !b_advancedVisible && advControls ) advControls->hide();
@@ -756,13 +747,8 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, QWidget *_parent ) :
     controlLayout->setMargin( 0 );
     controlLayout->setSpacing( 0 );
 
-    /* QString line = QString( "%1;%2;%3").arg( RECORD_BUTTON )
-        .arg( SNAPSHOT_BUTTON )
-        .arg( ATOB_BUTTON )
-        .arg( FRAME_BUTTON ); */
-
-    QString line = getSettings()->value( "MainWindow/AdvToolbar",
-            "12;11;13;14" ).toString();
+    QString line = getSettings()->value( "AdvToolbar", "12;11;13;14" )
+        .toString();
     parseAndCreate( line, controlLayout );
 }
 
@@ -773,11 +759,7 @@ InputControlsWidget::InputControlsWidget( intf_thread_t *_p_i, QWidget *_parent
     controlLayout->setMargin( 0 );
     controlLayout->setSpacing( 0 );
 
-    /*    QString line = QString( "%1-%2;%3;%4-%2")
-        .arg( SLOWER_BUTTON ).arg( WIDGET_FLAT )
-        .arg( INPUT_SLIDER )
-        .arg( FASTER_BUTTON ); */
-    QString line = getSettings()->value( "MainWindow/InputToolbar",
+    QString line = getSettings()->value( "InputToolbar",
                    "5-1;33;6-1" ).toString();
     parseAndCreate( line, controlLayout );
 }
@@ -816,23 +798,9 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
     InputControlsWidget *inputC = new InputControlsWidget( p_intf, this );
     controlLayout2->addWidget( inputC );
 
-    /* Second line */
-/*     QString line = QString( "%1-2;%2;%3;%4;%5;%2;%6;%2;%7;%2;%8;%9;%10-4")
-        .arg( PLAY_BUTTON )
-        .arg( WIDGET_SPACER )
-        .arg( PREVIOUS_BUTTON )
-        .arg( STOP_BUTTON )
-        .arg( NEXT_BUTTON )
-        .arg( MENU_BUTTONS )
-        .arg( TELETEXT_BUTTONS )
-        .arg( DEFULLSCREEN_BUTTON )
-        .arg( WIDGET_SPACER_EXTEND )
-        .arg( TIME_LABEL )
-        .arg( VOLUME ); */
-
     controlLayout = new QHBoxLayout;
-    QString line = getSettings()->value( "MainWindow/FSCtoolbar",
-            "0-2;64;3;1;4;64;36;64;37;64;8;65;34-4;35" ).toString();
+    QString line = getSettings()->value( "FSCtoolbar",
+            "0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;34;" ).toString();
     parseAndCreate( line, controlLayout );
     controlLayout2->addLayout( controlLayout );
 
index 1fec07a3b7440d8b5472644a670200834a3670e7..6d0477675e535645e7d6ddf30f16698255139845 100644 (file)
@@ -80,16 +80,14 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
     mainTboxLayout->addWidget( positionCombo, 0, 2, 1, 1 );
 
     QLabel *line1Label = new QLabel( "Line 1:" );
-    QString line1 = getSettings()->value( "MainWindow/MainToolbar1",
-                        "64;36;37;38;65").toString();
+    QString line1 = getSettings()->value( "MainWindow/MainToolbar1" ).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( "Line 2:" );
-    QString line2 = getSettings()->value( "MainWindow/MainToolbar2",
-                        "0-2;64;3;1;4;64;7;10;9;65;34-4;" ).toString();
+    QString line2 = getSettings()->value( "MainWindow/MainToolbar2" ).toString();
     controller2 = new DroppingController( p_intf, line2,
             this );
     mainTboxLayout->addWidget( line2Label, 2, 0, 1, 1 );
@@ -97,8 +95,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
 
     /* Advanced ToolBar */
     QLabel *advLabel = new QLabel( qtr( "Advanced Widget toolbar:" ) );
-    QString lineA = getSettings()->value( "MainWindow/AdvToolbar",
-                        "12;11;13;14").toString();
+    QString lineA = getSettings()->value( "MainWindow/AdvToolbar" )
+                        .toString();
     controllerA = new DroppingController( p_intf, lineA,
             this );
     mainTboxLayout->addWidget( advLabel, 3, 0, 1, 2 );
@@ -110,8 +108,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
     QGroupBox *timeToolbarBox = new QGroupBox( qtr( "Time Toolbar" ) , this );
     QGridLayout *timeTboxLayout = new QGridLayout( timeToolbarBox );
 
-    QString line = getSettings()->value( "MainWindow/InputToolbar",
-                        "5-1;34;6-1").toString();
+    QString line = getSettings()->value( "MainWindow/InputToolbar" ).toString();
     controller = new DroppingController( p_intf, line,
             this );
     timeTboxLayout->addWidget( controller, 0, 0, 1, -1 );
@@ -123,8 +120,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
                                               this );
     QGridLayout *FSCTboxLayout = new QGridLayout( FSCToolbarBox );
 
-    QString lineFSC = getSettings()->value( "MainWindow/FSCtoolbar",
-                       "0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;33" ).toString();
+    QString lineFSC = getSettings()->value( "MainWindow/FSCtoolbar" )
+                       .toString();
     controllerFSC = new DroppingController( p_intf,
             lineFSC, this );
     FSCTboxLayout->addWidget( controllerFSC, 0, 0, 1, -1 );