Changeset 27576

Show
Ignore:
Timestamp:
11/16/08 20:22:06 (2 months ago)
Author:
poenitz
Message:

remove unneeded "default language" option

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lyx-devel/trunk/src/Thesaurus.h

    r27572 r27576  
    3434 */ 
    3535 
    36 class Thesaurus { 
     36class Thesaurus 
     37
    3738public: 
    3839        /// 
  • lyx-devel/trunk/src/frontends/qt4/GuiPrefs.cpp

    r27572 r27576  
    16601660        connect(endCommandED, SIGNAL(textChanged(QString)), 
    16611661                this, SIGNAL(changed())); 
    1662         connect(defaultLanguageCO, SIGNAL(activated(int)), 
    1663                 this, SIGNAL(changed())); 
    16641662        connect(uiLanguageCO, SIGNAL(activated(int)), 
    16651663                this, SIGNAL(changed())); 
    16661664 
    1667         defaultLanguageCO->clear(); 
    16681665        uiLanguageCO->clear(); 
    16691666 
     
    16711668        // FIXME: it would be nice if sorting was enabled/disabled via a checkbox. 
    16721669        language_model->sort(0); 
    1673         defaultLanguageCO->setModel(language_model); 
    16741670 
    16751671        // FIXME: This is wrong, we need filter this list based on the available 
     
    17071703        rc.language_command_begin = fromqstr(startCommandED->text()); 
    17081704        rc.language_command_end = fromqstr(endCommandED->text()); 
    1709         rc.default_language = fromqstr( 
    1710                 defaultLanguageCO->itemData(defaultLanguageCO->currentIndex()).toString()); 
    17111705        rc.gui_language = fromqstr( 
    17121706                uiLanguageCO->itemData(uiLanguageCO->currentIndex()).toString()); 
     
    17311725        endCommandED->setText(toqstr(rc.language_command_end)); 
    17321726 
    1733         int pos = defaultLanguageCO->findData(toqstr(rc.default_language)); 
    1734         defaultLanguageCO->setCurrentIndex(pos); 
    1735         pos = uiLanguageCO->findData(toqstr(rc.gui_language)); 
     1727        int pos = uiLanguageCO->findData(toqstr(rc.gui_language)); 
    17361728        uiLanguageCO->blockSignals(true); 
    17371729        uiLanguageCO->setCurrentIndex(pos); 
  • lyx-devel/trunk/src/frontends/qt4/ui/PrefLanguageUi.ui

    r25387 r27576  
    66    <x>0</x> 
    77    <y>0</y> 
    8     <width>410</width> 
    9     <height>424</height> 
     8    <width>326</width> 
     9    <height>411</height> 
    1010   </rect> 
    1111  </property> 
     
    1313   <string/> 
    1414  </property> 
    15   <layout class="QGridLayout" name="gridLayout" > 
     15  <layout class="QGridLayout" > 
     16   <property name="margin" > 
     17    <number>9</number> 
     18   </property> 
     19   <property name="spacing" > 
     20    <number>6</number> 
     21   </property> 
    1622   <item row="0" column="0" colspan="2" > 
    1723    <widget class="QLabel" name="uiLanguageLA" > 
     
    1925      <string>&amp;User Interface language:</string> 
    2026     </property> 
    21      <property name="buddy" > 
    22       <cstring>defaultLanguageCO</cstring> 
    23      </property> 
    2427    </widget> 
    2528   </item> 
     
    3538   </item> 
    3639   <item row="1" column="0" colspan="2" > 
    37     <widget class="QLabel" name="defaultLanguageLA" > 
    38      <property name="text" > 
    39       <string>&amp;Default language:</string> 
    40      </property> 
    41      <property name="buddy" > 
    42       <cstring>defaultLanguageCO</cstring> 
    43      </property> 
    44     </widget> 
    45    </item> 
    46    <item row="1" column="2" > 
    47     <widget class="QComboBox" name="defaultLanguageCO" > 
    48      <property name="toolTip" > 
    49       <string>Select the default language of your documents</string> 
    50      </property> 
    51      <property name="maxVisibleItems" > 
    52       <number>20</number> 
    53      </property> 
    54     </widget> 
    55    </item> 
    56    <item row="2" column="0" colspan="2" > 
    5740    <widget class="QLabel" name="languagePackageLA" > 
    5841     <property name="text" > 
     
    6447    </widget> 
    6548   </item> 
    66    <item row="2" column="2" > 
     49   <item row="1" column="2" > 
    6750    <widget class="QLineEdit" name="languagePackageED" > 
    6851     <property name="toolTip" > 
     
    7154    </widget> 
    7255   </item> 
    73    <item row="3" column="0" colspan="2" > 
     56   <item row="2" column="0" colspan="2" > 
    7457    <widget class="QLabel" name="startCommandLA" > 
    7558     <property name="text" > 
     
    8164    </widget> 
    8265   </item> 
    83    <item row="3" column="2" > 
     66   <item row="2" column="2" > 
    8467    <widget class="QLineEdit" name="startCommandED" > 
    8568     <property name="toolTip" > 
     
    8871    </widget> 
    8972   </item> 
    90    <item row="4" column="0" colspan="2" > 
     73   <item row="3" column="0" colspan="2" > 
    9174    <widget class="QLabel" name="endCommandLA" > 
    9275     <property name="text" > 
     
    9881    </widget> 
    9982   </item> 
    100    <item row="4" column="2" > 
     83   <item row="3" column="2" > 
    10184    <widget class="QLineEdit" name="endCommandED" > 
    10285     <property name="toolTip" > 
     
    10588    </widget> 
    10689   </item> 
     90   <item row="4" column="0" colspan="3" > 
     91    <widget class="QCheckBox" name="useBabelCB" > 
     92     <property name="toolTip" > 
     93      <string>Use the babel package for multilingual support</string> 
     94     </property> 
     95     <property name="text" > 
     96      <string>Use b&amp;abel</string> 
     97     </property> 
     98    </widget> 
     99   </item> 
    107100   <item row="5" column="0" colspan="3" > 
    108     <widget class="QCheckBox" name="useBabelCB" > 
    109      <property name="toolTip" > 
    110       <string>Use the babel package for multilingual support</string> 
    111      </property> 
    112      <property name="text" > 
    113       <string>Use b&amp;abel</string> 
     101    <widget class="QCheckBox" name="globalCB" > 
     102     <property name="toolTip" > 
     103      <string>Check to pass the language globally (to the document class), not locally (to the language package)</string> 
     104     </property> 
     105     <property name="text" > 
     106      <string>&amp;Global</string> 
    114107     </property> 
    115108    </widget> 
    116109   </item> 
    117110   <item row="6" column="0" colspan="3" > 
    118     <widget class="QCheckBox" name="globalCB" > 
    119      <property name="toolTip" > 
    120       <string>Check to pass the language globally (to the document class), not locally (to the language package)</string> 
    121      </property> 
    122      <property name="text" > 
    123       <string>&amp;Global</string> 
     111    <widget class="QCheckBox" name="autoBeginCB" > 
     112     <property name="toolTip" > 
     113      <string>If checked, the document language is not explicitely set by a language switch command</string> 
     114     </property> 
     115     <property name="text" > 
     116      <string>Auto &amp;begin</string> 
    124117     </property> 
    125118    </widget> 
    126119   </item> 
    127120   <item row="7" column="0" colspan="3" > 
    128     <widget class="QCheckBox" name="autoBeginCB" > 
    129      <property name="toolTip" > 
    130       <string>If checked, the document language is not explicitely set by a language switch command</string> 
    131      </property> 
    132      <property name="text" > 
    133       <string>Auto &amp;begin</string> 
     121    <widget class="QCheckBox" name="autoEndCB" > 
     122     <property name="toolTip" > 
     123      <string>If checked, the document language is not explicitely closed by a language switch command</string> 
     124     </property> 
     125     <property name="text" > 
     126      <string>Auto &amp;end</string> 
    134127     </property> 
    135128    </widget> 
    136129   </item> 
    137130   <item row="8" column="0" colspan="3" > 
    138     <widget class="QCheckBox" name="autoEndCB" > 
    139      <property name="toolTip" > 
    140       <string>If checked, the document language is not explicitely closed by a language switch command</string> 
    141      </property> 
    142      <property name="text" > 
    143       <string>Auto &amp;end</string> 
    144      </property> 
    145     </widget> 
    146    </item> 
    147    <item row="9" column="0" colspan="4" > 
    148131    <widget class="QCheckBox" name="markForeignCB" > 
    149132     <property name="toolTip" > 
     
    155138    </widget> 
    156139   </item> 
    157    <item row="10" column="0" > 
     140   <item row="9" column="0" > 
    158141    <spacer> 
    159142     <property name="orientation" > 
     
    163146      <enum>QSizePolicy::Fixed</enum> 
    164147     </property> 
    165      <property name="sizeHint" stdset="0"
     148     <property name="sizeHint"
    166149      <size> 
    167150       <width>20</width> 
     
    171154    </spacer> 
    172155   </item> 
    173    <item row="11" column="0" colspan="3" > 
     156   <item row="10" column="0" colspan="3" > 
    174157    <widget class="QGroupBox" name="rtlGB2" > 
    175158     <property name="toolTip" > 
     
    207190         <enum>Qt::Horizontal</enum> 
    208191        </property> 
    209         <property name="sizeHint" stdset="0"
     192        <property name="sizeHint"
    210193         <size> 
    211194          <width>101</width> 
     
    217200      <item row="1" column="0" > 
    218201       <layout class="QHBoxLayout" > 
     202        <property name="margin" > 
     203         <number>0</number> 
     204        </property> 
    219205        <property name="spacing" > 
    220206         <number>6</number> 
    221         </property> 
    222         <property name="margin" > 
    223          <number>0</number> 
    224207        </property> 
    225208        <item> 
     
    255238    </widget> 
    256239   </item> 
    257    <item row="12" column="1" > 
     240   <item row="11" column="1" > 
    258241    <spacer> 
    259242     <property name="orientation" > 
     
    263246      <enum>QSizePolicy::Expanding</enum> 
    264247     </property> 
    265      <property name="sizeHint" stdset="0"
     248     <property name="sizeHint"
    266249      <size> 
    267250       <width>20</width> 
     
    271254    </spacer> 
    272255   </item> 
    273    <item row="2" column="3" > 
    274     <spacer> 
    275      <property name="orientation" > 
    276       <enum>Qt::Horizontal</enum> 
    277      </property> 
    278      <property name="sizeHint" stdset="0" > 
    279       <size> 
    280        <width>40</width> 
    281        <height>20</height> 
    282       </size> 
    283      </property> 
    284     </spacer> 
    285    </item> 
    286256  </layout> 
    287257 </widget> 
    288258 <tabstops> 
    289   <tabstop>defaultLanguageCO</tabstop> 
    290259  <tabstop>languagePackageED</tabstop> 
    291260  <tabstop>startCommandED</tabstop>