this, SLOT(on_okPB_clicked()));
connect(textAfterED, SIGNAL(returnPressed()),
this, SLOT(on_okPB_clicked()));
+
connect(this, SIGNAL(rejected()), this, SLOT(cleanUp()));
selectionManager = new GuiSelectionManager(availableLV, selectedLV,
void GuiCitation::on_findLE_textChanged(const QString & text)
{
- searchPB->setDisabled(text.isEmpty());
- if (!text.isEmpty())
+ bool const searchAsWeGo = (asTypeCB->checkState() == Qt::Checked);
+ searchPB->setDisabled(text.isEmpty() || searchAsWeGo);
+ if (!text.isEmpty()) {
+ if (searchAsWeGo)
+ findText(findLE->text());
return;
+ }
findText(findLE->text());
findLE->setFocus();
}
void GuiCitation::on_searchPB_clicked()
{
- findText(findLE->text());
+ findText(findLE->text(), true);
}
}
+void GuiCitation::on_asTypeCB_stateChanged(int)
+{
+ bool const searchAsWeGo = (asTypeCB->checkState() == Qt::Checked);
+ searchPB->setDisabled(findLE->text().isEmpty() || searchAsWeGo);
+ if (searchAsWeGo)
+ findText(findLE->text(), true);
+}
+
+
void GuiCitation::changed()
{
setButtons();
<rect>
<x>0</x>
<y>0</y>
- <width>449</width>
- <height>617</height>
+ <width>467</width>
+ <height>692</height>
</rect>
</property>
<property name="sizePolicy" >
</property>
</widget>
</item>
+ <item row="3" column="0" colspan="3" >
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>271</width>
+ <height>25</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="3" column="3" colspan="2" >
+ <widget class="QCheckBox" name="asTypeCB" >
+ <property name="text" >
+ <string>Search As You Type</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>