mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
small silly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2587 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
20f2690c6d
commit
d459817dee
@ -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:
|
||||
|
@ -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 \
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
}
|
||||
|
337
src/frontends/qt2/ui/QBibtexDialog.ui
Normal file
337
src/frontends/qt2/ui/QBibtexDialog.ui
Normal file
@ -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>&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>&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&)</signal>
|
||||
<receiver>QBibtexDialogBase</receiver>
|
||||
<slot>styleChanged(const QString &)</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>styleCO</sender>
|
||||
<signal>textChanged(const QString&)</signal>
|
||||
<receiver>QBibtexDialogBase</receiver>
|
||||
<slot>changed_adaptor()</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>styleED</sender>
|
||||
<signal>textChanged(const QString&)</signal>
|
||||
<receiver>QBibtexDialogBase</receiver>
|
||||
<slot>changed_adaptor()</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>databaseED</sender>
|
||||
<signal>textChanged(const QString&)</signal>
|
||||
<receiver>QBibtexDialogBase</receiver>
|
||||
<slot>changed_adaptor()</slot>
|
||||
</connection>
|
||||
<slot access="public">changed_adaptor()</slot>
|
||||
<slot access="public">styleChanged(const QString &)</slot>
|
||||
</connections>
|
||||
</UI>
|
Loading…
Reference in New Issue
Block a user