+2005-07-22 Angus Leeming <leeming@lyx.org>
+
+ * QRef.C (update_contents): disable the OK button when the dialog is
+ first shown. The user must first select a reference.
+
+ * QRefDialog.C (changed_adaptor): only enable the OK button when
+ the "Label:" field is not empty.
+ (refHighlighted): set the text in the "Label:" field only when
+ an item is currently selected in the "Available refs" browser. (When
+ th signal connected to this slot is triggered.)
+
+ * QBibtexDialogBase.ui:
+ * QCharacterDialogBase.ui:
+ * QERTDialogBase.ui:
+ * QNoteDialogBase.ui: remove the Alt-C shortcut from the Close button.
+
+ * QAskForTextDialog.ui:
+ * QBibtexDialogBase.ui:
+ * QBranchDialogBase.ui:
+ * QERTDialogBase.ui:
+ * QGraphicsDialogBase.ui:
+ * QIndexDialogBase.ui:
+ * QNoteDialogBase.ui:
+ * QSendtoDialogBase.ui: connect the Alt-O shortcut to the OK button.
+
+ * QBibtexDialogBase.ui: change the shortcut to the "Content" field.
+ * QERTDialogBase.ui: change the shortcut to the "Open" field.
+ * QGraphicsDialogBase.ui: change the shortcut to the "Origin" field.
+ * QNoteDialogBase.ui: change the shortcut to the "Comment" field.
+ * QParagraphDialogBase.ui: change the shortcut to the "Longest label"
+ field.
+ * QPrefConvertersModule.ui: change the shortcut to the "From" field.
+ * QPrefLanguageModule.ui: change the shortcut to the "Use babel" field.
+ * QPrefUIModule.ui: change the shortcut to the "Cursor follows
+ scrollbar" field.
+ * QRefDialogBase.ui: change the shortcut to the "Labels in:" field.
+
2005-07-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QDocument.C:
} // namespace anon
-void QPrefsDialog::switch_copierLB(int nr)
+void QPrefsDialog::switch_copierLB(int)
{
std::string const browser_text =
fromqstr(copiersModule->AllCopiersLB->currentText());
}
-void QPrefsDialog::switch_copierCO(int nr)
+void QPrefsDialog::switch_copierCO(int)
{
std::string const combo_text =
fromqstr(copiersModule->copierFormatCO->currentText());
#include "Qt2BC.h"
#include "qt_helpers.h"
+#include "controllers/ButtonController.h"
#include "controllers/ControlRef.h"
#include "insets/insetref.h"
dialog_->bufferCO->setCurrentItem(controller().getBufferNum());
updateRefs();
+ bc().valid(false);
}
void QRefDialog::changed_adaptor()
{
- form_->changed();
+ if (!referenceED->text().isEmpty())
+ form_->changed();
}
if (form_->readOnly())
return;
- referenceED->setText(sel);
+ int const cur_item = refsLB->currentItem();
+ bool const cur_item_selected = cur_item >= 0 ?
+ refsLB->isSelected(cur_item) : false;
+
+ if (cur_item_selected)
+ referenceED->setText(sel);
+
if (form_->at_ref_)
form_->gotoRef();
gotoPB->setEnabled(true);
<rect>
<x>0</x>
<y>0</y>
- <width>273</width>
+ <width>269</width>
<height>116</height>
</rect>
</property>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>default</name>
<rect>
<x>0</x>
<y>0</y>
- <width>298</width>
+ <width>352</width>
<height>313</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QBibtexDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>autoDefault</name>
</property>
<property stdset="1">
<name>text</name>
- <string>C&ontent:</string>
+ <string>&Content:</string>
</property>
<property>
<name>buddy</name>
<x>0</x>
<y>0</y>
<width>188</width>
- <height>99</height>
+ <height>129</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QBranchDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>default</name>
<rect>
<x>0</x>
<y>0</y>
- <width>360</width>
+ <width>356</width>
<height>305</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QCharacterDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>&Close</string>
+ <string>Close</string>
</property>
<property stdset="1">
<name>autoDefault</name>
<x>0</x>
<y>0</y>
<width>197</width>
- <height>158</height>
+ <height>194</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QERTDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>&Open</string>
+ <string>O&pen</string>
</property>
<property>
<name>toolTip</name>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>default</name>
</property>
<property stdset="1">
<name>text</name>
- <string>&Close</string>
+ <string>Close</string>
</property>
<property stdset="1">
<name>default</name>
<rect>
<x>0</x>
<y>0</y>
- <width>455</width>
+ <width>451</width>
<height>549</height>
</rect>
</property>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QGraphicsDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>autoDefault</name>
</property>
<property stdset="1">
<name>text</name>
- <string>&Origin:</string>
+ <string>Or&igin:</string>
</property>
<property>
<name>buddy</name>
<rect>
<x>0</x>
<y>0</y>
- <width>197</width>
+ <width>203</width>
<height>82</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QIndexDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>default</name>
<x>0</x>
<y>0</y>
<width>188</width>
- <height>146</height>
+ <height>192</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QNoteDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>default</name>
</property>
<property stdset="1">
<name>text</name>
- <string>&Close</string>
+ <string>Close</string>
</property>
<property stdset="1">
<name>default</name>
</property>
<property stdset="1">
<name>text</name>
- <string>C&omment</string>
+ <string>&Comment</string>
</property>
<property>
<name>toolTip</name>
<rect>
<x>0</x>
<y>0</y>
- <width>400</width>
- <height>214</height>
+ <width>396</width>
+ <height>254</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QParagraphDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>Lo&ngest label</string>
+ <string>&Longest label</string>
</property>
<property>
<name>buddy</name>
<rect>
<x>0</x>
<y>0</y>
- <width>458</width>
+ <width>472</width>
<height>265</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QPrefConvertersModule</string>
</property>
<grid>
<property stdset="1">
</property>
<property stdset="1">
<name>text</name>
- <string>F&rom:</string>
+ <string>&From:</string>
</property>
<property>
<name>buddy</name>
<rect>
<x>0</x>
<y>0</y>
- <width>333</width>
+ <width>360</width>
<height>323</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QPrefLanguageModule</string>
</property>
<grid>
<property stdset="1">
</property>
<property stdset="1">
<name>text</name>
- <string>Use &babel</string>
+ <string>Use b&abel</string>
</property>
</widget>
<spacer row="6" column="1" rowspan="2" colspan="1" >
<rect>
<x>0</x>
<y>0</y>
- <width>420</width>
+ <width>416</width>
<height>441</height>
</rect>
</property>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QPrefUIModule</string>
</property>
<vbox>
<property stdset="1">
</property>
<property stdset="1">
<name>text</name>
- <string>Cursor follo&ws scrollbar</string>
+ <string>Cursor follows &scrollbar</string>
</property>
</widget>
</vbox>
<rect>
<x>0</x>
<y>0</y>
- <width>355</width>
+ <width>351</width>
<height>423</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QRefDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>L&abels in:</string>
+ <string>La&bels in:</string>
</property>
<property>
<name>buddy</name>
<rect>
<x>0</x>
<y>0</y>
- <width>276</width>
+ <width>282</width>
<height>262</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
- <string></string>
+ <string>QSendtoDialogBase</string>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
</property>
<property stdset="1">
<name>text</name>
- <string>OK</string>
+ <string>&OK</string>
</property>
<property stdset="1">
<name>autoDefault</name>