Changeset 16793a3e2c08dcc51ab63545b12631fccfe9ead6

Show
Ignore:
Timestamp:
27/02/07 23:30:36 (2 years ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1172615436 +0000
git-parent:

[072cd3c8fdf2cfa667dd05da05e6add861035599]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1172615436 +0000
Message:

* Qt4 - Simple Preferences: Start to bind the keys to the preferences. Lots of them still don't work. Why ?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/components/simple_preferences.cpp

    rb248dab r16793a3  
    77 * Authors: ClĂ©ment Stenac <zorglub@videolan.org> 
    88 *          Antoine Cellerier <dionoea@videolan.org> 
    9  * 
     9 *          Jean-Baptiste Kempf <jb@videolan.org> 
    1010 * This program is free software; you can redistribute it and/or modify 
    1111 * it under the terms of the GNU General Public License as published by 
     
    3939#include "pixmaps/input_and_codecs_50x50.xpm" 
    4040#include "pixmaps/interface_50x50.xpm" 
    41 //#include "pixmaps/playlist_50x50.xpm" 
    4241#include "pixmaps/subtitles_50x50.xpm" 
    4342#include "pixmaps/video_50x50.xpm" 
     
    4847#include "ui/sprefs_subtitles.h" 
    4948#include "ui/sprefs_hotkeys.h" 
    50 //#include "ui/sprefs_playlist.h" 
    5149#include "ui/sprefs_interface.h" 
    5250 
     
    134132            CONFIG_GENERIC( "video-on-top", Bool, NULL, alwaysOnTop ); 
    135133            CONFIG_GENERIC( "video-deco", Bool, NULL, windowDecorations ); 
    136  
     134            CONFIG_GENERIC( "skip-frames" , Bool, NULL, skipFrames); 
    137135            CONFIG_GENERIC( "vout", Module, NULL, outputModule ); 
    138136 
     137#ifdef WIN32 
     138            CONFIG_GENERIC( "directx-wallpaper" , Bool , NULL, wallpaperMode ); 
     139            CONFIG_GENERIC( "directx-device", String, NULL, dXdisplayDevice ); 
     140#endif 
     141 
    139142            CONFIG_GENERIC( "snapshot-path", String, NULL, 
    140             snapshotsDirectory ); /* FIXME -> use file instead of string */ 
     143                    snapshotsDirectory ); /* FIXME -> use file instead of string */ 
    141144            CONFIG_GENERIC( "snapshot-prefix", String, NULL, snapshotsPrefix ); 
    142145            CONFIG_GENERIC( "snapshot-sequential", Bool, NULL, 
     
    144147            CONFIG_GENERIC( "snapshot-format", StringList, NULL, 
    145148                            snapshotsFormat ); 
    146  
    147         END_SPREFS_CAT; 
     149         END_SPREFS_CAT; 
    148150 
    149151        START_SPREFS_CAT( Audio,  "General audio settings" ); 
    150          #ifndef WIN32 
    151             ui.DirectXLabel->setVisible( false ); 
    152             ui.DirectXDevice->setVisible( false ); 
    153          #endif 
    154          #ifdef WIN32 
     152#ifdef WIN32 
    155153            ui.OSSBrowse->hide(); 
    156154            ui.OSSDevice->hide(); 
     
    158156            ui.alsaDevice->hide(); 
    159157            ui.alsaLabel->hide(); 
    160          #endif 
    161             CONFIG_GENERIC( "audio", Bool, NULL, enableAudio ); 
     158#else 
     159            ui.DirectXLabel->setVisible( false ); 
     160            ui.DirectXDevice->setVisible( false ); 
     161#endif 
     162         CONFIG_GENERIC( "audio", Bool, NULL, enableAudio ); 
     163 
     164/*       CONFIG_GENERIC( "volume" ,  RangedInt, NULL, defaultVolume );*/ //FIXME Why ? 
     165/*         CONFIG_GENERIC( "audio-language" , String , NULL,  
     166                    preferredAudioLanguage ); */ //FIXME WHy ? 
     167         CONFIG_GENERIC( "spdif" , Bool , NULL, spdifBox ); 
     168/*         CONFIG_GENERIC( "force-dolby-surround" , Integer , NULL,  
     169                    detectionDolby );*/ 
     170 
     171         CONFIG_GENERIC( "aout" , Module , NULL, outputModule ); 
     172#ifndef WIN32 
     173/*       CONFIG_GENERIC( "alsadev" , String , NULL, alsaDevice );*/ 
     174         CONFIG_GENERIC( "dspdev" , String , NULL, OSSDevice );//FIXME File 
     175#else 
     176         CONFIG_GENERIC( "directx-audio-device" , Integer, NULL,  
     177                 DirectXDevice ); 
     178#endif 
     179         CONFIG_GENERIC( "audiofile-file" , String , NULL, FileName ); //Fixme File 
     180 
     181 
     182         CONFIG_GENERIC( "headphone-dolby" , Bool , NULL, headphoneEffect ); 
     183#if 0 // Not found for normalizer effect 
     184         CONFIG_GENERIC( "" , , NULL, ); 
     185#endif 
     186         CONFIG_GENERIC( "audio-visual" , Module , NULL, visualisation); 
    162187 
    163188        END_SPREFS_CAT; 
  • modules/gui/qt4/ui/sprefs_audio.ui

    r2814bee r16793a3  
    4343       <number>6</number> 
    4444      </property> 
    45       <item row="2" column="0" colspan="2"
     45      <item row="2" column="0"
    4646       <widget class="QLabel" name="label_8" > 
    4747        <property name="text" > 
     
    5050       </widget> 
    5151      </item> 
    52       <item row="2" column="2" > 
    53        <widget class="QComboBox" name="preferredAudioLanguage_2" > 
     52      <item row="2" column="1" > 
     53       <widget class="QComboBox" name="detectionDolby" > 
    5454        <property name="sizePolicy" > 
    5555         <sizepolicy> 
     
    7171       </widget> 
    7272      </item> 
    73       <item row="1" column="0" colspan="3" > 
    74        <widget class="QCheckBox" name="checkBox" > 
     73      <item row="1" column="0" colspan="2" > 
     74       <widget class="QCheckBox" name="spdifBox" > 
    7575        <property name="text" > 
    7676         <string>Use S/PDIF when available</string> 
     
    7878       </widget> 
    7979      </item> 
    80       <item row="3" column="2" > 
     80      <item row="3" column="1" > 
    8181       <widget class="QComboBox" name="preferredAudioLanguage" > 
    8282        <property name="sizePolicy" > 
     
    9696       </widget> 
    9797      </item> 
    98       <item row="3" column="0" colspan="2"
     98      <item row="3" column="0"
    9999       <widget class="QLabel" name="label" > 
    100100        <property name="text" > 
     
    103103       </widget> 
    104104      </item> 
    105       <item row="0" column="2" > 
     105      <item row="0" column="1" > 
    106106       <widget class="QSlider" name="defaultVolume" > 
    107107        <property name="sizePolicy" > 
     
    124124       </widget> 
    125125      </item> 
    126       <item row="0" column="0" colspan="2"
     126      <item row="0" column="0"
    127127       <widget class="QLabel" name="label_2" > 
    128128        <property name="text" > 
  • modules/gui/qt4/ui/sprefs_video.ui

    rb248dab r16793a3  
    119119      </property> 
    120120      <item row="1" column="1" colspan="2" > 
    121        <widget class="QComboBox" name="displayDevice" /> 
     121       <widget class="QComboBox" name="dXdisplayDevice" /> 
    122122      </item> 
    123123      <item row="1" column="0" >