]> git.lyx.org Git - lyx.git/commitdiff
Rename QLineEdit widgets to have a LE suffix (consistent within GuiDocument).
authorJulien Rioux <jrioux@lyx.org>
Sat, 24 Sep 2011 16:39:20 +0000 (16:39 +0000)
committerJulien Rioux <jrioux@lyx.org>
Sat, 24 Sep 2011 16:39:20 +0000 (16:39 +0000)
  bibtexOptionsED   -> bibtexOptionsLE
  indexOptionsED    -> indexOptionsLE
  languagePackageED -> languagePackageLE

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39744 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiIndices.cpp
src/frontends/qt4/GuiIndices.h
src/frontends/qt4/ui/BiblioUi.ui
src/frontends/qt4/ui/IndicesUi.ui
src/frontends/qt4/ui/LanguageUi.ui

index d4c88b506b9c9641485e9d5efbb23907756a8d59..a21f02b4ebc35392e7270d26a51def1808558201 100644 (file)
@@ -1007,7 +1007,7 @@ GuiDocument::GuiDocument(GuiView & lv)
                this, SLOT(change_adaptor()));
        connect(langModule->languagePackageCO, SIGNAL(activated(int)),
                this, SLOT(change_adaptor()));
-       connect(langModule->languagePackageED, SIGNAL(textChanged(QString)),
+       connect(langModule->languagePackageLE, SIGNAL(textChanged(QString)),
                this, SLOT(change_adaptor()));
        connect(langModule->languagePackageCO, SIGNAL(currentIndexChanged(int)),
                this, SLOT(languagePackageChanged(int)));
@@ -1102,7 +1102,7 @@ GuiDocument::GuiDocument(GuiView & lv)
                this, SLOT(change_adaptor()));
        connect(biblioModule->bibtexCO, SIGNAL(activated(int)),
                this, SLOT(bibtexChanged(int)));
-       connect(biblioModule->bibtexOptionsED, SIGNAL(textChanged(QString)),
+       connect(biblioModule->bibtexOptionsLE, SIGNAL(textChanged(QString)),
                this, SLOT(change_adaptor()));
 
        biblioModule->citeStyleCO->addItem(qt_("Author-year"));
@@ -1945,14 +1945,14 @@ void GuiDocument::classChanged()
 
 void GuiDocument::languagePackageChanged(int i)
 {
-        langModule->languagePackageED->setEnabled(
+        langModule->languagePackageLE->setEnabled(
                langModule->languagePackageCO->itemData(i).toString() == "custom");
 }
 
 
 void GuiDocument::bibtexChanged(int n)
 {
-       biblioModule->bibtexOptionsED->setEnabled(
+       biblioModule->bibtexOptionsLE->setEnabled(
                biblioModule->bibtexCO->itemData(n).toString() != "default");
        changed();
 }
@@ -2210,7 +2210,7 @@ void GuiDocument::applyView()
                fromqstr(biblioModule->bibtexCO->itemData(
                        biblioModule->bibtexCO->currentIndex()).toString());
        string const bibtex_options =
-               fromqstr(biblioModule->bibtexOptionsED->text());
+               fromqstr(biblioModule->bibtexOptionsLE->text());
        if (bibtex_command == "default" || bibtex_options.empty())
                bp_.bibtex_command = bibtex_command;
        else
@@ -2278,7 +2278,7 @@ void GuiDocument::applyView()
                langModule->languagePackageCO->currentIndex()).toString();
        if (pack == "custom")
                bp_.lang_package =
-                       fromqstr(langModule->languagePackageED->text());
+                       fromqstr(langModule->languagePackageLE->text());
        else
                bp_.lang_package = fromqstr(pack);
 
@@ -2638,15 +2638,15 @@ void GuiDocument::paramsToDialog()
        int const bpos = biblioModule->bibtexCO->findData(toqstr(command));
        if (bpos != -1) {
                biblioModule->bibtexCO->setCurrentIndex(bpos);
-               biblioModule->bibtexOptionsED->setText(toqstr(options).trimmed());
+               biblioModule->bibtexOptionsLE->setText(toqstr(options).trimmed());
        } else {
                // We reset to default if we do not know the specified compiler
                // This is for security reasons
                biblioModule->bibtexCO->setCurrentIndex(
                        biblioModule->bibtexCO->findData(toqstr("default")));
-               biblioModule->bibtexOptionsED->clear();
+               biblioModule->bibtexOptionsLE->clear();
        }
-       biblioModule->bibtexOptionsED->setEnabled(
+       biblioModule->bibtexOptionsLE->setEnabled(
                biblioModule->bibtexCO->currentIndex() != 0);
 
        // indices
@@ -2691,10 +2691,10 @@ void GuiDocument::paramsToDialog()
        if (p == -1) {
                langModule->languagePackageCO->setCurrentIndex(
                          langModule->languagePackageCO->findData("custom"));
-               langModule->languagePackageED->setText(toqstr(bp_.lang_package));
+               langModule->languagePackageLE->setText(toqstr(bp_.lang_package));
        } else {
                langModule->languagePackageCO->setCurrentIndex(p);
-               langModule->languagePackageED->clear();
+               langModule->languagePackageLE->clear();
        }
 
        //color
index 7c21e70acb49ae97fabb1b2b120cb5f4f3ffe7c6..02d021014b6c08efd0a5d10de41adbfd99a05b13 100644 (file)
@@ -82,14 +82,14 @@ void GuiIndices::update(BufferParams const & params)
        int const pos = indexCO->findData(toqstr(command));
        if (pos != -1) {
                indexCO->setCurrentIndex(pos);
-               indexOptionsED->setText(toqstr(options).trimmed());
+               indexOptionsLE->setText(toqstr(options).trimmed());
        } else {
                // We reset to default if we do not know the specified compiler
                // This is for security reasons
                indexCO->setCurrentIndex(indexCO->findData(toqstr("default")));
-               indexOptionsED->clear();
+               indexOptionsLE->clear();
        }
-       indexOptionsED->setEnabled(
+       indexOptionsLE->setEnabled(
                indexCO->currentIndex() != 0);
 
        updateView();
@@ -145,7 +145,7 @@ void GuiIndices::apply(BufferParams & params) const
        string const index_command =
                fromqstr(indexCO->itemData(
                        indexCO->currentIndex()).toString());
-       string const index_options = fromqstr(indexOptionsED->text());
+       string const index_options = fromqstr(indexOptionsLE->text());
        if (index_command == "default" || index_options.empty())
                params.index_command = index_command;
        else
@@ -155,13 +155,13 @@ void GuiIndices::apply(BufferParams & params) const
 
 void GuiIndices::on_indexCO_activated(int n)
 {
-       indexOptionsED->setEnabled(
+       indexOptionsLE->setEnabled(
                indexCO->itemData(n).toString() != "default");
        changed();
 }
 
 
-void GuiIndices::on_indexOptionsED_textChanged(QString)
+void GuiIndices::on_indexOptionsLE_textChanged(QString)
 {
        changed();
 }
index 7e833edb422406ca779f1bb02e30d84e1e387d75..a78d07e513053a732aac78b47c998656cab55cb8 100644 (file)
@@ -45,7 +45,7 @@ protected:
 
 protected Q_SLOTS:
        void on_indexCO_activated(int n);
-       void on_indexOptionsED_textChanged(QString);
+       void on_indexOptionsLE_textChanged(QString);
        void on_addIndexPB_pressed();
        void on_renamePB_clicked();
        void on_removePB_pressed();
index cc1122949140e389d333883de411512f81aa6182..6c6d5b8cb0641667a3e3beb2a279b38fd2d8f66e 100644 (file)
            <string>&amp;Options:</string>
           </property>
           <property name="buddy" >
-           <cstring>bibtexOptionsED</cstring>
+           <cstring>bibtexOptionsLE</cstring>
           </property>
          </widget>
         </item>
         <item>
-         <widget class="QLineEdit" name="bibtexOptionsED" >
+         <widget class="QLineEdit" name="bibtexOptionsLE" >
           <property name="toolTip" >
            <string>Define options such as --min-crossrefs (see the documentation of BibTeX)</string>
           </property>
index ce398b17db2e5c800c35db77420bcd10af3e5ec4..81d014538defc93fbed5431f0d6314c0ff062c49 100644 (file)
            <string>&amp;Options:</string>
           </property>
           <property name="buddy" >
-           <cstring>indexOptionsED</cstring>
+           <cstring>indexOptionsLE</cstring>
           </property>
          </widget>
         </item>
         <item>
-         <widget class="QLineEdit" name="indexOptionsED" >
+         <widget class="QLineEdit" name="indexOptionsLE" >
           <property name="toolTip" >
            <string>Define program options of the selected processor.</string>
           </property>
index 3f9b05124a76b68410640b489910c2143856e4e7..f42c1c609e9960ce307646ad4b37cb12a00853d7 100644 (file)
       </widget>
      </item>
      <item>
-      <widget class="QLineEdit" name="languagePackageED">
+      <widget class="QLineEdit" name="languagePackageLE">
        <property name="toolTip">
         <string>Enter the command to load the language package (default: \usepackage{babel})</string>
        </property>