|
|
|
@ -227,7 +227,7 @@ FetchDialog::FetchDialog(TQWidget* parent_, const char* name_)
|
|
|
|
|
|
|
|
|
|
resize(configDialogSize(TQString::fromLatin1("Fetch Dialog Options")));
|
|
|
|
|
|
|
|
|
|
TDEConfigGroup config(kapp->config(), "Fetch Dialog Options");
|
|
|
|
|
TDEConfigGroup config(tdeApp->config(), "Fetch Dialog Options");
|
|
|
|
|
TQValueList<int> splitList = config.readIntListEntry("Splitter Sizes");
|
|
|
|
|
if(!splitList.empty()) {
|
|
|
|
|
split->setSizes(splitList);
|
|
|
|
@ -287,7 +287,7 @@ FetchDialog::~FetchDialog() {
|
|
|
|
|
|
|
|
|
|
saveDialogSize(TQString::fromLatin1("Fetch Dialog Options"));
|
|
|
|
|
|
|
|
|
|
TDEConfigGroup config(kapp->config(), "Fetch Dialog Options");
|
|
|
|
|
TDEConfigGroup config(tdeApp->config(), "Fetch Dialog Options");
|
|
|
|
|
config.writeEntry("Splitter Sizes", static_cast<TQSplitter*>(m_listView->parentWidget())->sizes());
|
|
|
|
|
config.writeEntry("Search Key", m_keyCombo->currentData().toInt());
|
|
|
|
|
config.writeEntry("Search Source", m_sourceCombo->currentText());
|
|
|
|
@ -312,7 +312,7 @@ void FetchDialog::slotSearchClicked() {
|
|
|
|
|
SmallIconSet(TQString::fromLatin1("cancel"))));
|
|
|
|
|
startProgress();
|
|
|
|
|
setStatus(i18n("Searching..."));
|
|
|
|
|
kapp->processEvents();
|
|
|
|
|
tdeApp->processEvents();
|
|
|
|
|
Fetch::Manager::self()->startSearch(m_sourceCombo->currentText(),
|
|
|
|
|
static_cast<Fetch::FetchKey>(m_keyCombo->currentData().toInt()),
|
|
|
|
|
value);
|
|
|
|
@ -430,7 +430,7 @@ void FetchDialog::slotResultFound(Tellico::Fetch::SearchResult* result_) {
|
|
|
|
|
(void) new SearchResultItem(m_listView, result_);
|
|
|
|
|
++m_resultCount;
|
|
|
|
|
adjustColumnWidth();
|
|
|
|
|
kapp->processEvents();
|
|
|
|
|
tdeApp->processEvents();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FetchDialog::slotAddEntry() {
|
|
|
|
@ -472,7 +472,7 @@ void FetchDialog::slotMoreClicked() {
|
|
|
|
|
SmallIconSet(TQString::fromLatin1("cancel"))));
|
|
|
|
|
startProgress();
|
|
|
|
|
setStatus(i18n("Searching..."));
|
|
|
|
|
kapp->processEvents();
|
|
|
|
|
tdeApp->processEvents();
|
|
|
|
|
Fetch::Manager::self()->continueSearch();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -530,7 +530,7 @@ void FetchDialog::slotInit() {
|
|
|
|
|
Kernel::self()->sorry(i18n("No Internet sources are available for your current collection type."), this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TDEConfigGroup config(kapp->config(), "Fetch Dialog Options");
|
|
|
|
|
TDEConfigGroup config(tdeApp->config(), "Fetch Dialog Options");
|
|
|
|
|
int key = config.readNumEntry("Search Key", Fetch::FetchFirst);
|
|
|
|
|
// only change key if valid
|
|
|
|
|
if(key > Fetch::FetchFirst) {
|
|
|
|
|