]> git.lyx.org Git - lyx.git/commitdiff
Move hints from designer to code
authorPavel Sanda <sanda@lyx.org>
Tue, 25 May 2010 11:53:58 +0000 (11:53 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 25 May 2010 11:53:58 +0000 (11:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34501 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/ui/OutputUi.ui

index 6d97e6233d505ef4d24df43a8a27fec15cfaabb2..693bd57be43bc4be9f1a487a45afc867e0572afb 100644 (file)
@@ -653,10 +653,6 @@ GuiDocument::GuiDocument(GuiView & lv)
                this, SLOT(change_adaptor()));
        connect(outputModule->xetexCB, SIGNAL(toggled(bool)),
                this, SLOT(xetexChanged(bool)));
-       connect(outputModule->outputsyncCB, SIGNAL(clicked()),
-               this, SLOT(change_adaptor()));
-       connect(outputModule->synccustomCB, SIGNAL(editTextChanged(QString)),
-               this, SLOT(change_adaptor()));
        connect(outputModule->defaultFormatCO, SIGNAL(activated(int)),
                this, SLOT(change_adaptor()));
        connect(outputModule->mathimgSB, SIGNAL(valueChanged(double)),
@@ -666,6 +662,14 @@ GuiDocument::GuiDocument(GuiView & lv)
        connect(outputModule->mathoutCB, SIGNAL(currentIndexChanged(int)),
                this, SLOT(change_adaptor()));
 
+       connect(outputModule->outputsyncCB, SIGNAL(clicked()),
+               this, SLOT(change_adaptor()));
+       connect(outputModule->synccustomCB, SIGNAL(editTextChanged(QString)),
+               this, SLOT(change_adaptor()));
+       outputModule->synccustomCB->addItem("");
+       outputModule->synccustomCB->addItem("\\synctex=1");
+       outputModule->synccustomCB->addItem("\\synctex=-1");
+       outputModule->synccustomCB->addItem("\\usepackage[active]{srcltx}");
 
        // fonts
        fontModule = new UiWidget<Ui::FontUi>;
index 58bd0d2b6ca33d739301dc2ae513487cb7a18973..9b46c4fab2a0ebb07de3dfda9496122bf76a614f 100644 (file)
@@ -5,8 +5,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>335</width>
-    <height>310</height>
+    <width>388</width>
+    <height>334</height>
    </rect>
   </property>
   <property name="windowTitle" >
           <property name="editable" >
            <bool>true</bool>
           </property>
-          <item>
-           <property name="text" >
-            <string/>
-           </property>
-          </item>
-          <item>
-           <property name="text" >
-            <string>\synctex=1</string>
-           </property>
-          </item>
-          <item>
-           <property name="text" >
-            <string>\synctex=-1</string>
-           </property>
-          </item>
-          <item>
-           <property name="text" >
-            <string>\usepackage[active]{srcltx}</string>
-           </property>
-          </item>
          </widget>
         </item>
        </layout>