]> git.lyx.org Git - features.git/commitdiff
small silly
authorJohn Levon <levon@movementarian.org>
Sun, 26 Aug 2001 01:01:12 +0000 (01:01 +0000)
committerJohn Levon <levon@movementarian.org>
Sun, 26 Aug 2001 01:01:12 +0000 (01:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2587 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/Makefile.dialogs
src/frontends/qt2/QURL.C
src/frontends/qt2/Qt2BC.C
src/frontends/qt2/ui/QBibtexDialog.ui [new file with mode: 0644]

index db1ff7b015e1cf26a44f8ab1deaab18cdb1bb2ad..c512141e7a46e2d5123127b5383e8f895abededb 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-26  John Levon  <moz@compsoc.man.ac.uk>
+
+       * Qt2BC.C: whoops, reversed sense of setReadOnly()
 2001-08-26  John Levon  <moz@compsoc.man.ac.uk>
 
        * Dialogs.C: 
index 699c36cfcffde6d5c3d84cb42403971e18f6bd73..2ed9d11e0774beb1e81aefe1fde9eb862dc1c4d5 100644 (file)
@@ -2,6 +2,7 @@
 
 DIALOGS = \
        QAbout \
+       QBibtex \
        QCharacter \
        QCitation \
        QDocument \
@@ -18,6 +19,8 @@ DIALOGS = \
 DIALOGSOURCES = \
        QAbout.h QAboutDialog.h \
        QAbout.C QAboutDialog.C \
+       QBibtex.h QBibtexDialog.h \
+       QBibtex.C QBibtexDialog.C \
        QCharacter.h QCharacterDialog.h \
        QCharacter.C QCharacterDialog.C \
        QCitation.h QCitationDialog.h \
@@ -45,6 +48,7 @@ DIALOGSOURCES = \
  
 MOCDIALOGS = \
        QAboutDialog_moc.C \
+       QBibtexDialog_moc.C \
        QCharacterDialog_moc.C \
        QCitationDialog_moc.C \
        QDocumentDialog_moc.C \
@@ -61,6 +65,8 @@ MOCDIALOGS = \
 UIDIALOGS = \
        QAboutDialogBase.h \
        QAboutDialogBase.C \
+       QBibtexDialogBase.h \
+       QBibtexDialogBase.C \
        QCharacterDialogBase.h \
        QCharacterDialogBase.C \
        QCitationDialogBase.h \
@@ -86,6 +92,7 @@ UIDIALOGS = \
  
 UIMOCDIALOGS = \
        QAboutDialogBase_moc.C \
+       QBibtexDialogBase_moc.C \
        QCharacterDialogBase_moc.C \
        QCitationDialogBase_moc.C \
        QDocumentDialogBase_moc.C \
index d633baad36026072bafea75db8c278e29ca0476e..a8c8145316caa6cf4767ea5b99111ac97a9f56bc 100644 (file)
@@ -41,8 +41,6 @@ void QURL::build_dialog()
  
 void QURL::update_contents()
 {
-       lyxerr << "update_contents URL" << std::endl;
-       lyxerr << dialog_->okPB << std::endl;
        dialog_->urlED->setText(controller().params().getContents().c_str());
        dialog_->nameED->setText(controller().params().getOptions().c_str());
        dialog_->hyperlinkCB->setChecked(controller().params().getCmdName() != "url");
index 437be4830851791b5b3a10f357a5f605f4b1d30f..485afdb6c9f6d1d4665d529198acd82710a18b9d 100644 (file)
@@ -26,9 +26,6 @@ Qt2BC::Qt2BC(string const & cancel, string const & close)
 
 void Qt2BC::setButtonEnabled(QButton * obj, bool enabled)
 {
-       lyxerr << "Qt2BC: setting button " 
-               << obj << " to " << enabled << std::endl;
        obj->setEnabled(enabled);
 }
 
@@ -38,7 +35,7 @@ void Qt2BC::setWidgetEnabled(QWidget * obj, bool enabled)
        // yuck, rtti, but the user comes first
        if (obj->inherits("QLineEdit")) {
                QLineEdit * le(static_cast<QLineEdit*>(obj)); 
-               le->setReadOnly(enabled);
+               le->setReadOnly(!enabled);
        } else {
                obj->setEnabled(enabled);
        }
diff --git a/src/frontends/qt2/ui/QBibtexDialog.ui b/src/frontends/qt2/ui/QBibtexDialog.ui
new file mode 100644 (file)
index 0000000..fa2cf5d
--- /dev/null
@@ -0,0 +1,337 @@
+<!DOCTYPE UI><UI>
+<class>QBibtexDialogBase</class>
+<widget>
+    <class>QDialog</class>
+    <property stdset="1">
+        <name>name</name>
+        <cstring>QBibtexDialogBase</cstring>
+    </property>
+    <property stdset="1">
+        <name>geometry</name>
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>307</width>
+            <height>232</height>
+        </rect>
+    </property>
+    <property stdset="1">
+        <name>caption</name>
+        <string>Index</string>
+    </property>
+    <vbox>
+        <property stdset="1">
+            <name>margin</name>
+            <number>11</number>
+        </property>
+        <property stdset="1">
+            <name>spacing</name>
+            <number>6</number>
+        </property>
+        <widget>
+            <class>QLayoutWidget</class>
+            <property stdset="1">
+                <name>name</name>
+                <cstring>Layout7</cstring>
+            </property>
+            <hbox>
+                <property stdset="1">
+                    <name>margin</name>
+                    <number>0</number>
+                </property>
+                <property stdset="1">
+                    <name>spacing</name>
+                    <number>6</number>
+                </property>
+                <widget>
+                    <class>QLabel</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>databaseLA</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>&amp;Database</string>
+                    </property>
+                    <property>
+                        <name>buddy</name>
+                        <cstring>databaseED</cstring>
+                    </property>
+                    <property>
+                        <name>toolTip</name>
+                        <string>BibTeX database to use</string>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QLineEdit</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>databaseED</cstring>
+                    </property>
+                    <property>
+                        <name>toolTip</name>
+                        <string>BibTeX database to use</string>
+                    </property>
+                </widget>
+            </hbox>
+        </widget>
+        <widget>
+            <class>QLayoutWidget</class>
+            <property stdset="1">
+                <name>name</name>
+                <cstring>Layout12</cstring>
+            </property>
+            <hbox>
+                <property stdset="1">
+                    <name>margin</name>
+                    <number>0</number>
+                </property>
+                <property stdset="1">
+                    <name>spacing</name>
+                    <number>6</number>
+                </property>
+                <widget>
+                    <class>QLabel</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>styleLA</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>&amp;Style</string>
+                    </property>
+                    <property>
+                        <name>buddy</name>
+                        <cstring>styleCO</cstring>
+                    </property>
+                    <property>
+                        <name>toolTip</name>
+                        <string>The BibTeX style</string>
+                    </property>
+                </widget>
+                <spacer>
+                    <property>
+                        <name>name</name>
+                        <cstring>Spacer3</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>orientation</name>
+                        <enum>Horizontal</enum>
+                    </property>
+                    <property stdset="1">
+                        <name>sizeType</name>
+                        <enum>Expanding</enum>
+                    </property>
+                    <property>
+                        <name>sizeHint</name>
+                        <size>
+                            <width>20</width>
+                            <height>20</height>
+                        </size>
+                    </property>
+                </spacer>
+                <widget>
+                    <class>QComboBox</class>
+                    <item>
+                        <property>
+                            <name>text</name>
+                            <string>plain</string>
+                        </property>
+                    </item>
+                    <item>
+                        <property>
+                            <name>text</name>
+                            <string>unsrt</string>
+                        </property>
+                    </item>
+                    <item>
+                        <property>
+                            <name>text</name>
+                            <string>alpha</string>
+                        </property>
+                    </item>
+                    <item>
+                        <property>
+                            <name>text</name>
+                            <string>abbrv</string>
+                        </property>
+                    </item>
+                    <item>
+                        <property>
+                            <name>text</name>
+                            <string>Other ...</string>
+                        </property>
+                    </item>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>styleCO</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>sizePolicy</name>
+                        <sizepolicy>
+                            <hsizetype>7</hsizetype>
+                            <vsizetype>0</vsizetype>
+                        </sizepolicy>
+                    </property>
+                    <property>
+                        <name>toolTip</name>
+                        <string>The BibTeX style</string>
+                    </property>
+                    <property>
+                        <name>whatsThis</name>
+                        <string>FIXME !</string>
+                    </property>
+                </widget>
+            </hbox>
+        </widget>
+        <widget>
+            <class>QLayoutWidget</class>
+            <property stdset="1">
+                <name>name</name>
+                <cstring>Layout11</cstring>
+            </property>
+            <hbox>
+                <property stdset="1">
+                    <name>margin</name>
+                    <number>0</number>
+                </property>
+                <property stdset="1">
+                    <name>spacing</name>
+                    <number>6</number>
+                </property>
+                <spacer>
+                    <property>
+                        <name>name</name>
+                        <cstring>Spacer2</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>orientation</name>
+                        <enum>Horizontal</enum>
+                    </property>
+                    <property stdset="1">
+                        <name>sizeType</name>
+                        <enum>Expanding</enum>
+                    </property>
+                    <property>
+                        <name>sizeHint</name>
+                        <size>
+                            <width>20</width>
+                            <height>20</height>
+                        </size>
+                    </property>
+                </spacer>
+                <widget>
+                    <class>QLineEdit</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>styleED</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>sizePolicy</name>
+                        <sizepolicy>
+                            <hsizetype>7</hsizetype>
+                            <vsizetype>0</vsizetype>
+                        </sizepolicy>
+                    </property>
+                    <property>
+                        <name>toolTip</name>
+                        <string>The name of the style to use</string>
+                    </property>
+                </widget>
+            </hbox>
+        </widget>
+        <widget>
+            <class>QLayoutWidget</class>
+            <property stdset="1">
+                <name>name</name>
+                <cstring>Layout10</cstring>
+            </property>
+            <hbox>
+                <property stdset="1">
+                    <name>margin</name>
+                    <number>0</number>
+                </property>
+                <property stdset="1">
+                    <name>spacing</name>
+                    <number>6</number>
+                </property>
+                <spacer>
+                    <property>
+                        <name>name</name>
+                        <cstring>Spacer1</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>orientation</name>
+                        <enum>Horizontal</enum>
+                    </property>
+                    <property stdset="1">
+                        <name>sizeType</name>
+                        <enum>Expanding</enum>
+                    </property>
+                    <property>
+                        <name>sizeHint</name>
+                        <size>
+                            <width>20</width>
+                            <height>20</height>
+                        </size>
+                    </property>
+                </spacer>
+                <widget>
+                    <class>QPushButton</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>okPB</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>OK</string>
+                    </property>
+                    <property stdset="1">
+                        <name>default</name>
+                        <bool>true</bool>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QPushButton</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>closePB</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>Cancel</string>
+                    </property>
+                </widget>
+            </hbox>
+        </widget>
+    </vbox>
+</widget>
+<connections>
+    <connection>
+        <sender>styleCO</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>QBibtexDialogBase</receiver>
+        <slot>styleChanged(const QString &amp;)</slot>
+    </connection>
+    <connection>
+        <sender>styleCO</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>QBibtexDialogBase</receiver>
+        <slot>changed_adaptor()</slot>
+    </connection>
+    <connection>
+        <sender>styleED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>QBibtexDialogBase</receiver>
+        <slot>changed_adaptor()</slot>
+    </connection>
+    <connection>
+        <sender>databaseED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>QBibtexDialogBase</receiver>
+        <slot>changed_adaptor()</slot>
+    </connection>
+    <slot access="public">changed_adaptor()</slot>
+    <slot access="public">styleChanged(const QString &amp;)</slot>
+</connections>
+</UI>