This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/bibletime@1232459 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
if(/*options.sourceLanguage == "en" ||*/std::find(locales.begin(),locales.end(),sourceLanguage) ==locales.end()){//sourceLanguage not available
if(/*options.sourceLanguage == "en" ||*/std::find(locales.begin(),locales.end(),sourceLanguage.ascii()) ==locales.end()){//sourceLanguage not available
sourceLanguage="en_US";
}
if(/*options.destinationLanguage == "en" ||*/std::find(locales.begin(),locales.end(),sourceLanguage) ==locales.end()){//destination not available
if(/*options.destinationLanguage == "en" ||*/std::find(locales.begin(),locales.end(),sourceLanguage.ascii()) ==locales.end()){//destination not available
constTQStringname= QInputDialog::getText(i18n("Session name:"),i18n("Please enter a name for the new session."),TQLineEdit::Normal,TQString::null,&ok,this);
constTQStringname=TQInputDialog::getText(i18n("Session name:"),i18n("Please enter a name for the new session."),TQLineEdit::Normal,TQString(),&ok,this);
if(o->inherits("CDisplayWindow")&&((w->windowState()& Qt::WindowMinimized)||w->isHidden())){//window was minimized, trigger a tile/cascade update if necessary
if(o->inherits("CDisplayWindow")&&((w->windowState()&TQt::WindowMinimized)||w->isHidden())){//window was minimized, trigger a tile/cascade update if necessary
.arg(i18n("He who believes in him is not judged. He who doesn't believe has been judged already, because he has not believed in the name of the one and only Son of God.")),
.tqarg(i18n("He who believes in him is not judged. He who doesn't believe has been judged already, because he has not believed in the name of the one and only Son of God.")),
.arg(i18n("This is the judgment, that the light has come into the world, and men loved the darkness rather than the light; for their works were evil.")),
.tqarg(i18n("This is the judgment, that the light has come into the world, and men loved the darkness rather than the light; for their works were evil.")),
m_actions.copy.referenceAndText=newKAction(i18n("Reference with text"),KShortcut(0),displayWidget()->connectionsProxy(),TQT_SLOT(copyAnchorWithText()),actionCollection(),"copyReferenceWithText");
m_actions.save.referenceAndText=newKAction(i18n("Reference with text"),KShortcut(0),displayWidget()->connectionsProxy(),TQT_SLOT(saveAnchorWithText()),actionCollection(),"saveReferenceWithText");
m_actions.save.chapterAsPlain=newKAction(i18n("Chapter as plain text"),KShortcut(0),this,TQT_SLOT(saveChapterPlain()),actionCollection(),"saveChapterAsPlainText");
m_actions.save.chapterAsPlain=newKAction(i18n("Chapter as plain text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(saveChapterPlain()),actionCollection(),"saveChapterAsPlainText");
m_actions.save.chapterAsHTML=newKAction(i18n("Chapter as HTML"),KShortcut(0),this,TQT_SLOT(saveChapterHTML()),actionCollection(),"saveChapterAsHTML");
m_actions.save.chapterAsHTML=newKAction(i18n("Chapter as HTML"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(saveChapterHTML()),actionCollection(),"saveChapterAsHTML");
m_actions.print.reference=newKAction(i18n("Reference with text"),KShortcut(0),this,TQT_SLOT(printAnchorWithText()),actionCollection(),"saveReferenceWithText");
m_actions.print.reference=newKAction(i18n("Reference with text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(printAnchorWithText()),actionCollection(),"saveReferenceWithText");
m_actions.save.entryAsPlain=newKAction(i18n("Entry as plain text"),KShortcut(0),this,TQT_SLOT(saveAsPlain()),actionCollection(),"saveEntryAsPlain");
m_actions.save.entryAsPlain=newKAction(i18n("Entry as plain text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(saveAsPlain()),actionCollection(),"saveEntryAsPlain");
m_actions.save.entryAsHTML=newKAction(i18n("Entry as HTML"),KShortcut(0),this,TQT_SLOT(saveAsHTML()),actionCollection(),"saveEntryAsHTML");
m_actions.save.entryAsHTML=newKAction(i18n("Entry as HTML"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(saveAsHTML()),actionCollection(),"saveEntryAsHTML");
m_actions.print.entry=newKAction(i18n("Entry with text"),KShortcut(0),this,TQT_SLOT(printAll()),actionCollection(),"printEntryWithText");
m_actions.print.entry=newKAction(i18n("Entry with text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(printAll()),actionCollection(),"printEntryWithText");
if(language()==TQString::fromLatin1("*")||(language()!=TQString::fromLatin1("*")&&TQString::fromLatin1((*it)->module()->Lang())==language()))//right type and language!
if(language()==TQString::tqfromLatin1("*")||(language()!=TQString::tqfromLatin1("*")&&TQString::tqfromLatin1((*it)->module()->Lang())==language()))//right type and language!
usedModules.append(*it);
}
}
//we have now all modules we want to have
if(language()==TQString::fromLatin1("*")){//create subfolders for each language
if(language()==TQString::tqfromLatin1("*")){//create subfolders for each language
TQStringListusedLangs;
// for (CSwordModuleInfo* m = usedModules.first(); m; m = usedModules.next()) {
m_actions.newFolder=newKAction(i18n("Create a new folder"),CResMgr::mainIndex::newFolder::icon,0,this,TQT_SLOT(createNewFolder()),this);
m_actions.changeFolder=newKAction(i18n("Change this folder"),CResMgr::mainIndex::changeFolder::icon,0,this,TQT_SLOT(changeFolder()),this);
m_actions.newFolder=newKAction(i18n("Create a new folder"),CResMgr::mainIndex::newFolder::icon,0,TQT_TQOBJECT(this),TQT_SLOT(createNewFolder()),TQT_TQOBJECT(this));
m_actions.changeFolder=newKAction(i18n("Change this folder"),CResMgr::mainIndex::changeFolder::icon,0,TQT_TQOBJECT(this),TQT_SLOT(changeFolder()),TQT_TQOBJECT(this));
m_actions.searchInModules=newKAction(i18n("Search in selected work(s)"),CResMgr::mainIndex::search::icon,0,this,TQT_SLOT(searchInModules()),this);
m_actions.unlockModule=newKAction(i18n("Unlock this work"),CResMgr::mainIndex::unlockModule::icon,0,this,TQT_SLOT(unlockModule()),this);
m_actions.aboutModule=newKAction(i18n("About this work"),CResMgr::mainIndex::aboutModule::icon,0,this,TQT_SLOT(aboutModule()),this);
m_actions.searchInModules=newKAction(i18n("Search in selected work(s)"),CResMgr::mainIndex::search::icon,0,TQT_TQOBJECT(this),TQT_SLOT(searchInModules()),TQT_TQOBJECT(this));
m_actions.unlockModule=newKAction(i18n("Unlock this work"),CResMgr::mainIndex::unlockModule::icon,0,TQT_TQOBJECT(this),TQT_SLOT(unlockModule()),TQT_TQOBJECT(this));
m_actions.aboutModule=newKAction(i18n("About this work"),CResMgr::mainIndex::aboutModule::icon,0,TQT_TQOBJECT(this),TQT_SLOT(aboutModule()),TQT_TQOBJECT(this));
m_actions.copy.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),this,TQT_SLOT(copyResultWithText()),this);
m_actions.copy.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(copyResultWithText()),TQT_TQOBJECT(this));
m_actions.save.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),this,TQT_SLOT(saveResultWithText()),this);
m_actions.save.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(saveResultWithText()),TQT_TQOBJECT(this));
CRangeChooserDialog::CRangeChooserDialog(TQWidget* parentDialog ):KDialogBase(Plain,i18n("Search range editor"),Default|Ok|Cancel,Ok, parentDialog,"CRangeChooserDialog",false,true){
CRangeChooserDialog::CRangeChooserDialog(TQWidget*tqparentDialog ):KDialogBase(Plain,i18n("Search range editor"),Default|Ok|Cancel,Ok,tqparentDialog,"CRangeChooserDialog",false,true){
m_actions.copy.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),this,TQT_SLOT(copyItemsWithText()),this);
m_actions.copy.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(copyItemsWithText()),TQT_TQOBJECT(this));
m_actions.save.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),this,TQT_SLOT(saveItemsWithText()),this);
m_actions.save.resultWithText=newKAction(i18n("Reference with text"),KShortcut(0),TQT_TQOBJECT(this),TQT_SLOT(saveItemsWithText()),TQT_TQOBJECT(this));
+((module->category()==CSwordModuleInfo::Cult)?TQString::fromLatin1("<small><b>%1</b></small><br>").arg(i18n("Take care, this work contains cult / questionable material!")):TQString::null);
text=TQString("<b>%1</b> ").tqarg(module->name())
+((module->category()==CSwordModuleInfo::Cult)?TQString::tqfromLatin1("<small><b>%1</b></small><br>").tqarg(i18n("Take care, this work contains cult / questionable material!")):TQString());