Rename obsolete tq methods to standard names

r14.0.x
Timothy Pearson 13 years ago
parent 4744cb9332
commit c2b5ed43b9

@ -40,7 +40,7 @@ public:
protected: protected:
/** Enable Unicode support. /** Enable Unicode support.
* Reimplementation to show tqunicode support. * Reimplementation to show unicode support.
*/ */
virtual bool supportsUnicode() const; virtual bool supportsUnicode() const;

@ -121,8 +121,8 @@ const TQString CSwordKey::renderedText( const CSwordKey::TextRenderType mode ) {
if (mode == HTMLEscaped) { if (mode == HTMLEscaped) {
//we have to encode all UTF-8 in HTML escapes //we have to encode all UTF-8 in HTML escapes
// go though every character and write down the escaped HTML tqunicode entity // go though every character and write down the escaped HTML unicode entity
// form is &#<decimal tqunicode value here>; // form is &#<decimal unicode value here>;
TQString ret; TQString ret;
TQChar c; TQChar c;
const unsigned int length = text.length(); const unsigned int length = text.length();
@ -133,9 +133,9 @@ const TQString CSwordKey::renderedText( const CSwordKey::TextRenderType mode ) {
if (c.latin1()) { //normal latin1 character if (c.latin1()) { //normal latin1 character
ret.append(c); ret.append(c);
} }
else {//tqunicode character, needs to be escaped else {//unicode character, needs to be escaped
ret.append("&#") ret.append("&#")
.append(c.tqunicode()) .append(c.unicode())
.append(";"); .append(";");
} }
} }

@ -57,7 +57,7 @@ TQStringList* const CSwordLexiconModuleInfo::entries() {
} }
sword::SWModule* my_module = module(); sword::SWModule* my_module = module();
bool is_tqunicode = isUnicode(); bool is_unicode = isUnicode();
if (!m_entryList) { if (!m_entryList) {
m_entryList = new TQStringList(); m_entryList = new TQStringList();
@ -103,7 +103,7 @@ TQStringList* const CSwordLexiconModuleInfo::entries() {
int i = 0; int i = 0;
do { do {
if ( is_tqunicode ) { if ( is_unicode ) {
m_entryList->append(TQString::fromUtf8(my_module->KeyText())); m_entryList->append(TQString::fromUtf8(my_module->KeyText()));
// qWarning("Entry: %s", my_module->KeyText() ); // qWarning("Entry: %s", my_module->KeyText() );
} }

@ -45,7 +45,7 @@ public:
*/ */
virtual CSwordTreeKey* copy() const; virtual CSwordTreeKey* copy() const;
/** /**
* Returns the last part of the current key as tqunicode decoded TQString. * Returns the last part of the current key as unicode decoded TQString.
* Use this instead of TreeKeyIdx::getLocalName() to avoid encoding problems. * Use this instead of TreeKeyIdx::getLocalName() to avoid encoding problems.
*/ */
virtual const TQString getLocalNameUnicode() const; virtual const TQString getLocalNameUnicode() const;

@ -324,7 +324,7 @@ void BibleTime::slotToggleToolbar() {
/** Shows or hides the groupmanager. /** Shows or hides the groupmanager.
*/ */
void BibleTime::slotToggleMainIndex() { void BibleTime::slotToggleMainIndex() {
//we use the parent widget because the main index is enclosed in a tqlayout which adds the label at the top //we use the parent widget because the main index is enclosed in a layout which adds the label at the top
if (m_viewMainIndex_action->isChecked()) { if (m_viewMainIndex_action->isChecked()) {
m_mainIndex->parentWidget()->show(); m_mainIndex->parentWidget()->show();
} }

@ -237,7 +237,7 @@ const bool CExportManager::copyKey(CSwordKey* key, const Format format, const bo
text = render->renderSingleKey(key->key(), modules); text = render->renderSingleKey(key->key(), modules);
} }
KApplication::tqclipboard()->setText(text); KApplication::clipboard()->setText(text);
return true; return true;
}; };
@ -272,7 +272,7 @@ const bool CExportManager::copyKeyList(sword::ListKey* list, CSwordModuleInfo* m
} }
const TQString text = render->renderKeyTree(tree); const TQString text = render->renderKeyTree(tree);
KApplication::tqclipboard()->setText(text); KApplication::clipboard()->setText(text);
return true; return true;
}; };
@ -306,7 +306,7 @@ const bool CExportManager::copyKeyList(TQPtrList<CSwordKey>& list, const Format
}; };
const TQString text = render->renderKeyTree(tree); const TQString text = render->renderKeyTree(tree);
KApplication::tqclipboard()->setText(text); KApplication::clipboard()->setText(text);
return true; return true;
}; };

@ -49,7 +49,7 @@ namespace InfoDisplay {
CInfoDisplay::CInfoDisplay(TQWidget *parent, const char *name) CInfoDisplay::CInfoDisplay(TQWidget *parent, const char *name)
: TQWidget(parent, name) { : TQWidget(parent, name) {
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* layout = new TQVBoxLayout(this);
TQLabel* headingLabel = new TQLabel(i18n("Mag (\"shift\" to lock)"),this); TQLabel* headingLabel = new TQLabel(i18n("Mag (\"shift\" to lock)"),this);
headingLabel->setMargin(5); headingLabel->setMargin(5);
@ -63,8 +63,8 @@ namespace InfoDisplay {
TQT_SLOT(lookup(const TQString&, const TQString&)) TQT_SLOT(lookup(const TQString&, const TQString&))
); );
tqlayout->addWidget(headingLabel); layout->addWidget(headingLabel);
tqlayout->addWidget(m_htmlPart->view()); layout->addWidget(m_htmlPart->view());
} }

@ -136,8 +136,8 @@ const bool COptionsDialog::showPart( COptionsDialog::Parts /*ID*/ ) {
/** Initializes the startup section of the OD. */ /** Initializes the startup section of the OD. */
void COptionsDialog::initDisplay() { void COptionsDialog::initDisplay() {
TQFrame* page = addPage(i18n("Display"), TQString(), DesktopIcon(CResMgr::settings::startup::icon,32)); TQFrame* page = addPage(i18n("Display"), TQString(), DesktopIcon(CResMgr::settings::startup::icon,32));
TQVBoxLayout* tqlayout = new TQVBoxLayout(page); TQVBoxLayout* layout = new TQVBoxLayout(page);
tqlayout->setSpacing( 5 ); layout->setSpacing( 5 );
{//daily tips {//daily tips
m_settings.startup.showTips = new TQCheckBox(page); m_settings.startup.showTips = new TQCheckBox(page);
@ -149,8 +149,8 @@ void COptionsDialog::initDisplay() {
m_settings.startup.showTips->setChecked( CBTConfig::get m_settings.startup.showTips->setChecked( CBTConfig::get
(CBTConfig::tips) ); (CBTConfig::tips) );
} }
tqlayout->addWidget(m_settings.startup.showTips); layout->addWidget(m_settings.startup.showTips);
tqlayout->addSpacing(5); layout->addSpacing(5);
{ //startup logo { //startup logo
m_settings.startup.showLogo = new TQCheckBox(page); m_settings.startup.showLogo = new TQCheckBox(page);
@ -161,39 +161,39 @@ void COptionsDialog::initDisplay() {
m_settings.startup.showLogo->setChecked(CBTConfig::get m_settings.startup.showLogo->setChecked(CBTConfig::get
(CBTConfig::logo)); (CBTConfig::logo));
tqlayout->addWidget(m_settings.startup.showLogo); layout->addWidget(m_settings.startup.showLogo);
tqlayout->addSpacing(20); layout->addSpacing(20);
} }
tqlayout->addWidget( layout->addWidget(
CToolClass::explanationLabel(page, i18n("Display templates"), CToolClass::explanationLabel(page, i18n("Display templates"),
i18n("Display templates define how text is displayed. Please choose a template you like.") i18n("Display templates define how text is displayed. Please choose a template you like.")
) )
); );
tqlayout->addSpacing( 5 ); layout->addSpacing( 5 );
TQHBoxLayout* hboxtqlayout = new TQHBoxLayout(); TQHBoxLayout* hboxlayout = new TQHBoxLayout();
m_settings.displayStyle.styleChooser = new TQComboBox( page ); //create first to enable buddy for label m_settings.displayStyle.styleChooser = new TQComboBox( page ); //create first to enable buddy for label
connect( m_settings.displayStyle.styleChooser, TQT_SIGNAL( activated( int ) ), connect( m_settings.displayStyle.styleChooser, TQT_SIGNAL( activated( int ) ),
this, TQT_SLOT( updateStylePreview() ) ); this, TQT_SLOT( updateStylePreview() ) );
hboxtqlayout->addWidget( hboxlayout->addWidget(
new TQLabel(m_settings.displayStyle.styleChooser, i18n("Available display styles:"), page) new TQLabel(m_settings.displayStyle.styleChooser, i18n("Available display styles:"), page)
); );
hboxtqlayout->addWidget( m_settings.displayStyle.styleChooser ); hboxlayout->addWidget( m_settings.displayStyle.styleChooser );
hboxtqlayout->addStretch(); hboxlayout->addStretch();
tqlayout->addLayout( hboxtqlayout ); layout->addLayout( hboxlayout );
m_settings.displayStyle.stylePreview = new KHTMLPart(page); m_settings.displayStyle.stylePreview = new KHTMLPart(page);
tqlayout->addWidget( layout->addWidget(
new TQLabel( new TQLabel(
m_settings.displayStyle.stylePreview->view(), m_settings.displayStyle.stylePreview->view(),
i18n("Style preview"), page i18n("Style preview"), page
) )
); );
tqlayout->addWidget(m_settings.displayStyle.stylePreview->view()); layout->addWidget(m_settings.displayStyle.stylePreview->view());
m_settings.displayStyle.styleChooser->insertStringList( m_settings.displayStyle.styleChooser->insertStringList(
CPointers::displayTemplateManager()->availableTemplates() CPointers::displayTemplateManager()->availableTemplates()
@ -212,11 +212,11 @@ void COptionsDialog::initDisplay() {
/** Init fonts section. */ /** Init fonts section. */
void COptionsDialog::initLanguages() { void COptionsDialog::initLanguages() {
TQFrame* page = addPage(i18n("Languages"), TQString(), DesktopIcon(CResMgr::settings::fonts::icon, 32)); TQFrame* page = addPage(i18n("Languages"), TQString(), DesktopIcon(CResMgr::settings::fonts::icon, 32));
TQVBoxLayout* tqlayout = new TQVBoxLayout(page,5); TQVBoxLayout* layout = new TQVBoxLayout(page,5);
tqlayout->setResizeMode( TQLayout::Minimum ); layout->setResizeMode( TQLayout::Minimum );
{ //Sword locales { //Sword locales
tqlayout->addWidget( layout->addWidget(
CToolClass::explanationLabel(page, i18n("Specify a language for names of Bible books"), CToolClass::explanationLabel(page, i18n("Specify a language for names of Bible books"),
i18n("Sword has a number of locales available which can be used to internationalize the \ i18n("Sword has a number of locales available which can be used to internationalize the \
names of books of the Bible. You can specify which locale to use. If you want to \ names of books of the Bible. You can specify which locale to use. If you want to \
@ -233,7 +233,7 @@ void COptionsDialog::initLanguages() {
hBoxLayout->addWidget(label); hBoxLayout->addWidget(label);
hBoxLayout->addWidget(m_settings.fonts.swordLocaleCombo); hBoxLayout->addWidget(m_settings.fonts.swordLocaleCombo);
hBoxLayout->addStretch(); hBoxLayout->addStretch();
tqlayout->addLayout(hBoxLayout); layout->addLayout(hBoxLayout);
TQStringList languageNames; TQStringList languageNames;
languageNames.append( languageMgr()->languageForAbbrev("en_US")->translatedName() ); languageNames.append( languageMgr()->languageForAbbrev("en_US")->translatedName() );
@ -294,10 +294,10 @@ void COptionsDialog::initLanguages() {
} }
} }
tqlayout->addSpacing( 20 ); layout->addSpacing( 20 );
} }
{ //Font settings { //Font settings
tqlayout->addWidget( layout->addWidget(
CToolClass::explanationLabel( CToolClass::explanationLabel(
page, page,
i18n("Select custom fonts per-language"), i18n("Select custom fonts per-language"),
@ -306,7 +306,7 @@ void COptionsDialog::initLanguages() {
to be displayed correctly.") to be displayed correctly.")
) )
); );
tqlayout->addSpacing(5); layout->addSpacing(5);
TQHBoxLayout* hLayout = new TQHBoxLayout(); TQHBoxLayout* hLayout = new TQHBoxLayout();
m_settings.fonts.usage = new TQComboBox(page); m_settings.fonts.usage = new TQComboBox(page);
@ -338,12 +338,12 @@ void COptionsDialog::initLanguages() {
connect(m_settings.fonts.useOwnFontBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(useOwnFontClicked(bool))); connect(m_settings.fonts.useOwnFontBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(useOwnFontClicked(bool)));
hLayout->addWidget(m_settings.fonts.useOwnFontBox); hLayout->addWidget(m_settings.fonts.useOwnFontBox);
tqlayout->addLayout(hLayout); layout->addLayout(hLayout);
//#warning TODO: remember the last selected font and jump there. //#warning TODO: remember the last selected font and jump there.
m_settings.fonts.fontChooser = new KFontChooser(page, "fonts", false, TQStringList(), true, 5); m_settings.fonts.fontChooser = new KFontChooser(page, "fonts", false, TQStringList(), true, 5);
m_settings.fonts.fontChooser->setSampleText(i18n("The quick brown fox jumps over the lazy dog.")); m_settings.fonts.fontChooser->setSampleText(i18n("The quick brown fox jumps over the lazy dog."));
tqlayout->addWidget(m_settings.fonts.fontChooser); layout->addWidget(m_settings.fonts.fontChooser);
connect(m_settings.fonts.fontChooser, TQT_SIGNAL(fontSelected(const TQFont&)), TQT_SLOT(newDisplayWindowFontSelected(const TQFont&))); connect(m_settings.fonts.fontChooser, TQT_SIGNAL(fontSelected(const TQFont&)), TQT_SLOT(newDisplayWindowFontSelected(const TQFont&)));
connect(m_settings.fonts.usage, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(newDisplayWindowFontAreaSelected(const TQString&))); connect(m_settings.fonts.usage, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(newDisplayWindowFontAreaSelected(const TQString&)));
@ -658,26 +658,26 @@ void COptionsDialog::initSword() {
{ // ---------- new tab: filters -------- // { // ---------- new tab: filters -------- //
TQFrame* currentTab = new TQFrame(tabCtl); TQFrame* currentTab = new TQFrame(tabCtl);
tabCtl->addTab(currentTab, i18n("Text filters")); tabCtl->addTab(currentTab, i18n("Text filters"));
TQVBoxLayout* tqlayout = new TQVBoxLayout(currentTab,5); TQVBoxLayout* layout = new TQVBoxLayout(currentTab,5);
tqlayout->addWidget( CToolClass::explanationLabel(currentTab, i18n("Text filters"), layout->addWidget( CToolClass::explanationLabel(currentTab, i18n("Text filters"),
i18n("Filters control the appearance of text. \ i18n("Filters control the appearance of text. \
Here you can specify default settings for all filters. \ Here you can specify default settings for all filters. \
You can change the filter settings in each display window, of course.")) ); You can change the filter settings in each display window, of course.")) );
tqlayout->addSpacing(5); layout->addSpacing(5);
m_settings.swords.lineBreaks = new TQCheckBox(currentTab); m_settings.swords.lineBreaks = new TQCheckBox(currentTab);
m_settings.swords.lineBreaks->setText(i18n("Insert line break after each verse")); m_settings.swords.lineBreaks->setText(i18n("Insert line break after each verse"));
m_settings.swords.lineBreaks->setChecked(CBTConfig::get m_settings.swords.lineBreaks->setChecked(CBTConfig::get
(CBTConfig::lineBreaks)); (CBTConfig::lineBreaks));
tqlayout->addWidget(m_settings.swords.lineBreaks); layout->addWidget(m_settings.swords.lineBreaks);
m_settings.swords.verseNumbers = new TQCheckBox(currentTab); m_settings.swords.verseNumbers = new TQCheckBox(currentTab);
m_settings.swords.verseNumbers->setText(i18n("Show verse numbers")); m_settings.swords.verseNumbers->setText(i18n("Show verse numbers"));
m_settings.swords.verseNumbers->setChecked(CBTConfig::get m_settings.swords.verseNumbers->setChecked(CBTConfig::get
(CBTConfig::verseNumbers)); (CBTConfig::verseNumbers));
tqlayout->addWidget(m_settings.swords.verseNumbers); layout->addWidget(m_settings.swords.verseNumbers);
m_settings.swords.headings = new TQCheckBox(currentTab); m_settings.swords.headings = new TQCheckBox(currentTab);
m_settings.swords.headings->setText(i18n("Show section headings")); m_settings.swords.headings->setText(i18n("Show section headings"));
@ -690,13 +690,13 @@ You can change the filter settings in each display window, of course.")) );
m_settings.swords.scriptureReferences->setText(i18n("Show scripture cross-references")); m_settings.swords.scriptureReferences->setText(i18n("Show scripture cross-references"));
m_settings.swords.scriptureReferences->setChecked(CBTConfig::get m_settings.swords.scriptureReferences->setChecked(CBTConfig::get
(CBTConfig::scriptureReferences)); (CBTConfig::scriptureReferences));
tqlayout->addWidget(m_settings.swords.scriptureReferences); layout->addWidget(m_settings.swords.scriptureReferences);
m_settings.swords.greekAccents = new TQCheckBox(currentTab); m_settings.swords.greekAccents = new TQCheckBox(currentTab);
m_settings.swords.greekAccents->setText(i18n("Show Greek accents")); m_settings.swords.greekAccents->setText(i18n("Show Greek accents"));
m_settings.swords.greekAccents->setChecked(CBTConfig::get m_settings.swords.greekAccents->setChecked(CBTConfig::get
(CBTConfig::greekAccents)); (CBTConfig::greekAccents));
tqlayout->addWidget(m_settings.swords.greekAccents); layout->addWidget(m_settings.swords.greekAccents);
m_settings.swords.hebrewPoints = new TQCheckBox(currentTab); m_settings.swords.hebrewPoints = new TQCheckBox(currentTab);
m_settings.swords.hebrewPoints->setText(i18n("Show Hebrew vowel points")); m_settings.swords.hebrewPoints->setText(i18n("Show Hebrew vowel points"));
@ -714,15 +714,15 @@ You can change the filter settings in each display window, of course.")) );
m_settings.swords.morphSegmentation->setText(i18n("Show morph segmentation")); m_settings.swords.morphSegmentation->setText(i18n("Show morph segmentation"));
m_settings.swords.morphSegmentation->setChecked(CBTConfig::get m_settings.swords.morphSegmentation->setChecked(CBTConfig::get
(CBTConfig::morphSegmentation)); (CBTConfig::morphSegmentation));
tqlayout->addWidget(m_settings.swords.morphSegmentation); layout->addWidget(m_settings.swords.morphSegmentation);
m_settings.swords.textualVariants = new TQCheckBox(currentTab); m_settings.swords.textualVariants = new TQCheckBox(currentTab);
m_settings.swords.textualVariants->setText(i18n("Use textual variants")); m_settings.swords.textualVariants->setText(i18n("Use textual variants"));
m_settings.swords.textualVariants->setChecked(CBTConfig::get m_settings.swords.textualVariants->setChecked(CBTConfig::get
(CBTConfig::textualVariants)); (CBTConfig::textualVariants));
tqlayout->addWidget(m_settings.swords.textualVariants); layout->addWidget(m_settings.swords.textualVariants);
tqlayout->addStretch(4); layout->addStretch(4);
} }
} }

@ -53,7 +53,7 @@ namespace Printing {
m_htmlPart->write(renderKeyTree(tree)); m_htmlPart->write(renderKeyTree(tree));
m_htmlPart->end(); m_htmlPart->end();
m_htmlPart->view()->tqlayout(); m_htmlPart->view()->layout();
m_htmlPart->view()->print(); m_htmlPart->view()->print();
} }

@ -75,44 +75,44 @@ namespace BookshelfManager {
TQFrame* page = m_swordConfigPage = addPage(i18n("Bookshelf path(s)"), TQString(), SmallIcon("bt_swordconfig",32)); TQFrame* page = m_swordConfigPage = addPage(i18n("Bookshelf path(s)"), TQString(), SmallIcon("bt_swordconfig",32));
page->setMinimumSize(500,400); page->setMinimumSize(500,400);
TQGridLayout* tqlayout = new TQGridLayout(page, 6, 4); TQGridLayout* layout = new TQGridLayout(page, 6, 4);
tqlayout->setMargin(5); layout->setMargin(5);
tqlayout->setSpacing(10); layout->setSpacing(10);
tqlayout->setColStretch(0,1); layout->setColStretch(0,1);
tqlayout->setRowStretch(5,1); layout->setRowStretch(5,1);
TQLabel* mainLabel = CToolClass::explanationLabel(page, TQLabel* mainLabel = CToolClass::explanationLabel(page,
i18n("Configure bookshelf path(s)"), i18n("Configure bookshelf path(s)"),
i18n("You can store your bookshelfs in one or more directories, which you can specify here.") i18n("You can store your bookshelfs in one or more directories, which you can specify here.")
); );
tqlayout->addMultiCellWidget(mainLabel, 0, 0, 0, 3); layout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
TQString swordConfPath = BTInstallMgr::Tool::LocalConfig::swordConfigFilename(); TQString swordConfPath = BTInstallMgr::Tool::LocalConfig::swordConfigFilename();
TQLabel* confPathLabel = new TQLabel(i18n("Your bookshelf configuration file is <b>%1</b>").arg(swordConfPath), page); TQLabel* confPathLabel = new TQLabel(i18n("Your bookshelf configuration file is <b>%1</b>").arg(swordConfPath), page);
tqlayout->addMultiCellWidget(confPathLabel, 1,1,0,3); layout->addMultiCellWidget(confPathLabel, 1,1,0,3);
m_swordPathListBox = new TQListView(page); m_swordPathListBox = new TQListView(page);
// m_swordPathListBox->setFullWidth(true); // m_swordPathListBox->setFullWidth(true);
m_swordPathListBox->addColumn(i18n("Path to bookshelf")); m_swordPathListBox->addColumn(i18n("Path to bookshelf"));
connect(m_swordPathListBox, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slot_swordPathSelected())); connect(m_swordPathListBox, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slot_swordPathSelected()));
tqlayout->addMultiCellWidget(m_swordPathListBox, 2,5,0,1); layout->addMultiCellWidget(m_swordPathListBox, 2,5,0,1);
m_swordEditPathButton = new TQPushButton(i18n("Edit Entry"), page); m_swordEditPathButton = new TQPushButton(i18n("Edit Entry"), page);
m_swordEditPathButton->setIconSet(SmallIcon("edit", 16)); m_swordEditPathButton->setIconSet(SmallIcon("edit", 16));
connect(m_swordEditPathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordEditClicked())); connect(m_swordEditPathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordEditClicked()));
tqlayout->addWidget(m_swordEditPathButton, 2, 3); layout->addWidget(m_swordEditPathButton, 2, 3);
m_swordAddPathButton = new TQPushButton(i18n("Add Entry"), page); m_swordAddPathButton = new TQPushButton(i18n("Add Entry"), page);
m_swordAddPathButton->setIconSet(SmallIcon("edit_add", 16)); m_swordAddPathButton->setIconSet(SmallIcon("edit_add", 16));
connect(m_swordAddPathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordAddClicked())); connect(m_swordAddPathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordAddClicked()));
tqlayout->addWidget(m_swordAddPathButton, 3,3); layout->addWidget(m_swordAddPathButton, 3,3);
m_swordRemovePathButton = new TQPushButton(i18n("Remove Entry"), page); m_swordRemovePathButton = new TQPushButton(i18n("Remove Entry"), page);
m_swordRemovePathButton->setIconSet(SmallIcon("editdelete", 16)); m_swordRemovePathButton->setIconSet(SmallIcon("editdelete", 16));
connect(m_swordRemovePathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordRemoveClicked())); connect(m_swordRemovePathButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slot_swordRemoveClicked()));
tqlayout->addWidget(m_swordRemovePathButton, 4,3); layout->addWidget(m_swordRemovePathButton, 4,3);
setupSwordPathListBox(); setupSwordPathListBox();
} }
@ -120,25 +120,25 @@ namespace BookshelfManager {
void CSwordSetupDialog::initInstall() { void CSwordSetupDialog::initInstall() {
m_installPage = addPage(i18n("Install/Update works"), TQString(), SmallIcon("bt_bible",32)); m_installPage = addPage(i18n("Install/Update works"), TQString(), SmallIcon("bt_bible",32));
TQVBoxLayout* vboxtqlayout = new TQVBoxLayout(m_installPage); TQVBoxLayout* vboxlayout = new TQVBoxLayout(m_installPage);
TQHBoxLayout* hboxtqlayout = new TQHBoxLayout(); TQHBoxLayout* hboxlayout = new TQHBoxLayout();
hboxtqlayout->setAutoAdd( true ); hboxlayout->setAutoAdd( true );
vboxtqlayout->addLayout(hboxtqlayout); vboxlayout->addLayout(hboxlayout);
m_installWidgetStack = new TQWidgetStack(m_installPage); m_installWidgetStack = new TQWidgetStack(m_installPage);
hboxtqlayout->addWidget(m_installWidgetStack); hboxlayout->addWidget(m_installWidgetStack);
m_installSourcePage = new TQWidget(0); m_installSourcePage = new TQWidget(0);
m_installWidgetStack->addWidget(m_installSourcePage); m_installWidgetStack->addWidget(m_installSourcePage);
// m_installSourcePage->setMinimumSize(500,400); // m_installSourcePage->setMinimumSize(500,400);
TQGridLayout* tqlayout = new TQGridLayout(m_installSourcePage, 7, 3); TQGridLayout* layout = new TQGridLayout(m_installSourcePage, 7, 3);
tqlayout->setMargin(5); layout->setMargin(5);
tqlayout->setSpacing(10); layout->setSpacing(10);
tqlayout->setRowStretch(6,5); layout->setRowStretch(6,5);
tqlayout->setColStretch(0,5); layout->setColStretch(0,5);
TQLabel* installLabel = CToolClass::explanationLabel(m_installSourcePage, TQLabel* installLabel = CToolClass::explanationLabel(m_installSourcePage,
i18n("Install/update works - Step 1"), i18n("Install/update works - Step 1"),
@ -147,39 +147,39 @@ After that step click on the connect button.<br/>\
<b>WARNING: If you live in a persecuted country and do not wish to risk detection you should NOT use \ <b>WARNING: If you live in a persecuted country and do not wish to risk detection you should NOT use \
the module remote installation feature!</b>") the module remote installation feature!</b>")
); );
tqlayout->addMultiCellWidget(installLabel, 0,0,0,2); layout->addMultiCellWidget(installLabel, 0,0,0,2);
TQLabel* sourceHeadingLabel = new TQLabel(TQString("<b>%1</b>").arg(i18n("Select library")), m_installSourcePage); TQLabel* sourceHeadingLabel = new TQLabel(TQString("<b>%1</b>").arg(i18n("Select library")), m_installSourcePage);
tqlayout->addMultiCellWidget(sourceHeadingLabel, 1,1,0,1); layout->addMultiCellWidget(sourceHeadingLabel, 1,1,0,1);
m_sourceCombo = new TQComboBox(m_installSourcePage); m_sourceCombo = new TQComboBox(m_installSourcePage);
tqlayout->addWidget(m_sourceCombo, 2, 0); layout->addWidget(m_sourceCombo, 2, 0);
TQPushButton* deleteSourceButton = new TQPushButton(i18n("Delete library"), m_installSourcePage); TQPushButton* deleteSourceButton = new TQPushButton(i18n("Delete library"), m_installSourcePage);
deleteSourceButton->setIconSet(SmallIcon("remove", 16)); deleteSourceButton->setIconSet(SmallIcon("remove", 16));
connect(deleteSourceButton, TQT_SIGNAL(clicked()), TQT_SLOT(slot_installDeleteSource())); connect(deleteSourceButton, TQT_SIGNAL(clicked()), TQT_SLOT(slot_installDeleteSource()));
tqlayout->addWidget(deleteSourceButton, 2, 1, TQt::AlignLeft); layout->addWidget(deleteSourceButton, 2, 1, TQt::AlignLeft);
TQPushButton* addSourceButton = new TQPushButton(i18n("Add library"), m_installSourcePage); TQPushButton* addSourceButton = new TQPushButton(i18n("Add library"), m_installSourcePage);
addSourceButton->setIconSet(SmallIcon("folder_new", 16)); addSourceButton->setIconSet(SmallIcon("folder_new", 16));
connect(addSourceButton, TQT_SIGNAL(clicked()), TQT_SLOT(slot_installAddSource())); connect(addSourceButton, TQT_SIGNAL(clicked()), TQT_SLOT(slot_installAddSource()));
tqlayout->addWidget(addSourceButton, 2, 2, TQt::AlignLeft); layout->addWidget(addSourceButton, 2, 2, TQt::AlignLeft);
m_sourceLabel = new TQLabel(m_installSourcePage); m_sourceLabel = new TQLabel(m_installSourcePage);
tqlayout->addMultiCellWidget(m_sourceLabel, 3,3,0,1); layout->addMultiCellWidget(m_sourceLabel, 3,3,0,1);
TQLabel* targetHeadingLabel = new TQLabel(TQString("<b>%1</b>").arg(i18n("Select bookshelf path")), m_installSourcePage); TQLabel* targetHeadingLabel = new TQLabel(TQString("<b>%1</b>").arg(i18n("Select bookshelf path")), m_installSourcePage);
tqlayout->addMultiCellWidget(targetHeadingLabel, 4,4,0,1); layout->addMultiCellWidget(targetHeadingLabel, 4,4,0,1);
m_targetCombo = new TQComboBox(m_installSourcePage); m_targetCombo = new TQComboBox(m_installSourcePage);
tqlayout->addWidget(m_targetCombo, 5, 0); layout->addWidget(m_targetCombo, 5, 0);
m_targetLabel = new TQLabel(m_installSourcePage); m_targetLabel = new TQLabel(m_installSourcePage);
tqlayout->addMultiCellWidget(m_targetLabel, 6,6,0,0,TQt::AlignTop); layout->addMultiCellWidget(m_targetLabel, 6,6,0,0,TQt::AlignTop);
//part beloew main tqlayout with the back/next buttons //part beloew main layout with the back/next buttons
TQHBoxLayout* myHBox = new TQHBoxLayout(); TQHBoxLayout* myHBox = new TQHBoxLayout();
vboxtqlayout->addLayout(myHBox); vboxlayout->addLayout(myHBox);
m_installBackButton = new TQPushButton(i18n("Back"), m_installPage); m_installBackButton = new TQPushButton(i18n("Back"), m_installPage);
m_installBackButton->setIconSet(SmallIcon("back",16)); m_installBackButton->setIconSet(SmallIcon("back",16));
@ -207,28 +207,28 @@ the module remote installation feature!</b>")
page->setMinimumSize(500,400); page->setMinimumSize(500,400);
TQGridLayout* tqlayout = new TQGridLayout(page, 4, 4); TQGridLayout* layout = new TQGridLayout(page, 4, 4);
tqlayout->setMargin(5); layout->setMargin(5);
tqlayout->setSpacing(10); layout->setSpacing(10);
tqlayout->setColStretch(1,1); layout->setColStretch(1,1);
tqlayout->setRowStretch(2,1); layout->setRowStretch(2,1);
TQLabel* mainLabel= CToolClass::explanationLabel(page, TQLabel* mainLabel= CToolClass::explanationLabel(page,
i18n("Remove installed work(s)"), i18n("Remove installed work(s)"),
i18n("This dialog lets you remove installed works from your system. Choose the modules and then click on the remove button.") i18n("This dialog lets you remove installed works from your system. Choose the modules and then click on the remove button.")
); );
tqlayout->addMultiCellWidget(mainLabel, 0, 0, 0, 3); layout->addMultiCellWidget(mainLabel, 0, 0, 0, 3);
TQLabel* headingLabel = new TQLabel(TQString("<b>%1</b>").arg(i18n("Select works to be uninstalled")), page); TQLabel* headingLabel = new TQLabel(TQString("<b>%1</b>").arg(i18n("Select works to be uninstalled")), page);
tqlayout->addMultiCellWidget(headingLabel, 1, 1, 0, 3); layout->addMultiCellWidget(headingLabel, 1, 1, 0, 3);
m_removeModuleListView = new CSwordSetupModuleListView(page, false); m_removeModuleListView = new CSwordSetupModuleListView(page, false);
tqlayout->addMultiCellWidget( m_removeModuleListView, 2,2,0,3); layout->addMultiCellWidget( m_removeModuleListView, 2,2,0,3);
m_removeRemoveButton = new TQPushButton(i18n("Remove selected work(s)"), page); m_removeRemoveButton = new TQPushButton(i18n("Remove selected work(s)"), page);
m_removeRemoveButton->setIconSet( SmallIcon("edittrash", 16) ); m_removeRemoveButton->setIconSet( SmallIcon("edittrash", 16) );
tqlayout->addWidget(m_removeRemoveButton, 3, 3, TQt::AlignRight); layout->addWidget(m_removeRemoveButton, 3, 3, TQt::AlignRight);
connect(m_removeRemoveButton, TQT_SIGNAL(clicked()), connect(m_removeRemoveButton, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slot_doRemoveModules())); this, TQT_SLOT(slot_doRemoveModules()));
@ -612,16 +612,16 @@ the module remote installation feature!</b>")
if (!m_installModuleListPage) { //the widgets are not yet created if (!m_installModuleListPage) { //the widgets are not yet created
m_installModuleListPage = new TQWidget(0); m_installModuleListPage = new TQWidget(0);
TQGridLayout* tqlayout = new TQGridLayout(m_installModuleListPage, 7, 2); TQGridLayout* layout = new TQGridLayout(m_installModuleListPage, 7, 2);
tqlayout->setMargin(5); layout->setMargin(5);
tqlayout->setSpacing(10); layout->setSpacing(10);
TQLabel* installLabel = CToolClass::explanationLabel(m_installModuleListPage, TQLabel* installLabel = CToolClass::explanationLabel(m_installModuleListPage,
i18n("Install/update works - Step 2"), i18n("Install/update works - Step 2"),
i18n("Please choose the works which should be installed and/or updated and click the install button.") i18n("Please choose the works which should be installed and/or updated and click the install button.")
); );
tqlayout->addMultiCellWidget(installLabel, 0,0,0,1); layout->addMultiCellWidget(installLabel, 0,0,0,1);
tqlayout->setRowStretch(0,0); layout->setRowStretch(0,0);
m_installWidgetStack->addWidget(m_installModuleListPage); m_installWidgetStack->addWidget(m_installModuleListPage);
m_installModuleListPage->setMinimumSize(500,400); m_installModuleListPage->setMinimumSize(500,400);
@ -631,9 +631,9 @@ the module remote installation feature!</b>")
sword::InstallSource is = BTInstallMgr::Tool::RemoteConfig::source(&iMgr, currentInstallSource()); sword::InstallSource is = BTInstallMgr::Tool::RemoteConfig::source(&iMgr, currentInstallSource());
m_installModuleListView = new CSwordSetupModuleListView(m_installModuleListPage, true, &is); m_installModuleListView = new CSwordSetupModuleListView(m_installModuleListPage, true, &is);
tqlayout->addMultiCellWidget( m_installModuleListView, 1,6,0,1); layout->addMultiCellWidget( m_installModuleListView, 1,6,0,1);
tqlayout->setColStretch(0,5); layout->setColStretch(0,5);
tqlayout->setRowStretch(1,5); layout->setRowStretch(1,5);
connect(m_installModuleListView, TQT_SIGNAL(selectedModulesChanged()), TQT_SLOT(slot_installModulesChanged())); connect(m_installModuleListView, TQT_SIGNAL(selectedModulesChanged()), TQT_SLOT(slot_installModulesChanged()));
} }

@ -49,29 +49,29 @@ namespace BookshelfManager {
mainLayout->addSpacing( 10 ); mainLayout->addSpacing( 10 );
TQGridLayout* tqlayout = new TQGridLayout( mainLayout, 3, 3 ); TQGridLayout* layout = new TQGridLayout( mainLayout, 3, 3 );
tqlayout->setSpacing( 5 ); layout->setSpacing( 5 );
label = new TQLabel(i18n("Type"), this); label = new TQLabel(i18n("Type"), this);
tqlayout->addWidget( label, 0, 0); layout->addWidget( label, 0, 0);
m_serverLabel = new TQLabel(i18n("Server"), this); m_serverLabel = new TQLabel(i18n("Server"), this);
tqlayout->addWidget( m_serverLabel, 0, 1); layout->addWidget( m_serverLabel, 0, 1);
label = new TQLabel(i18n("Path"), this); label = new TQLabel(i18n("Path"), this);
tqlayout->addWidget( label, 0, 2 ); layout->addWidget( label, 0, 2 );
m_protocolCombo = new TQComboBox( this ); m_protocolCombo = new TQComboBox( this );
tqlayout->addWidget(m_protocolCombo, 1, 0); layout->addWidget(m_protocolCombo, 1, 0);
m_protocolCombo->insertItem( PROTO_FTP ); m_protocolCombo->insertItem( PROTO_FTP );
m_protocolCombo->insertItem( PROTO_FILE ); m_protocolCombo->insertItem( PROTO_FILE );
m_serverEdit = new TQLineEdit( this ); m_serverEdit = new TQLineEdit( this );
tqlayout->addWidget( m_serverEdit, 1, 1 ); layout->addWidget( m_serverEdit, 1, 1 );
m_serverEdit->setText("ftp.crosswire.org"); m_serverEdit->setText("ftp.crosswire.org");
m_pathEdit = new TQLineEdit( this ); m_pathEdit = new TQLineEdit( this );
tqlayout->addWidget( m_pathEdit, 1, 2 ); layout->addWidget( m_pathEdit, 1, 2 );
m_pathEdit->setText("/pub/sword/raw"); m_pathEdit->setText("/pub/sword/raw");
mainLayout->addSpacing( 10 ); mainLayout->addSpacing( 10 );

@ -139,7 +139,7 @@ CDisplay::~CDisplay() {
const bool CDisplay::copy( const CDisplay::TextType format, const CDisplay::TextPart part ) { const bool CDisplay::copy( const CDisplay::TextType format, const CDisplay::TextPart part ) {
const TQString content = text(format, part); const TQString content = text(format, part);
TQClipboard* cb = KApplication::tqclipboard(); TQClipboard* cb = KApplication::clipboard();
cb->setText(content); cb->setText(content);
return true; return true;
} }

@ -38,11 +38,11 @@ m_key(dynamic_cast<CSwordVerseKey*>(key)) {
m_key = 0; m_key = 0;
return; return;
} }
TQHBoxLayout* tqlayout = new TQHBoxLayout(this); TQHBoxLayout* layout = new TQHBoxLayout(this);
tqlayout->setDirection( TQBoxLayout::LeftToRight ); layout->setDirection( TQBoxLayout::LeftToRight );
w_ref = new CKeyReferenceWidget(dynamic_cast<CSwordBibleModuleInfo*>(m_modules.first()), m_key, this); w_ref = new CKeyReferenceWidget(dynamic_cast<CSwordBibleModuleInfo*>(m_modules.first()), m_key, this);
tqlayout->addWidget(w_ref); layout->addWidget(w_ref);
connect(w_ref,TQT_SIGNAL(changed(CSwordVerseKey *)),TQT_SLOT(refChanged(CSwordVerseKey *))); connect(w_ref,TQT_SIGNAL(changed(CSwordVerseKey *)),TQT_SLOT(refChanged(CSwordVerseKey *)));

@ -135,10 +135,10 @@ m_key( dynamic_cast<CSwordTreeKey*>(key) ) {
} }
//now setup the keychooser widgets //now setup the keychooser widgets
TQHBoxLayout* tqlayout = new TQHBoxLayout(this); TQHBoxLayout* layout = new TQHBoxLayout(this);
m_treeView = new KListView(this); m_treeView = new KListView(this);
tqlayout->addWidget(m_treeView); layout->addWidget(m_treeView);
m_treeView->addColumn("Tree"); m_treeView->addColumn("Tree");
m_treeView->header()->hide(); m_treeView->header()->hide();
m_treeView->setSorting(-1); m_treeView->setSorting(-1);

@ -37,7 +37,7 @@ m_key(dynamic_cast<CSwordLDKey*>(key)) {
setModules(modules, false); setModules(modules, false);
//we use a tqlayout because the key chooser should be resized to full size //we use a layout because the key chooser should be resized to full size
m_layout = new TQHBoxLayout(this, TQBoxLayout::LeftToRight); m_layout = new TQHBoxLayout(this, TQBoxLayout::LeftToRight);
m_layout->setResizeMode(TQLayout::FreeResize); m_layout->setResizeMode(TQLayout::FreeResize);

@ -33,15 +33,15 @@
//{ //{
// m_page = new TQWidget( this ); // m_page = new TQWidget( this );
// m_placeholder = new TQWidget( m_page); // m_placeholder = new TQWidget( m_page);
// TQVBoxLayout* tqlayout = new TQVBoxLayout( m_page, 0, spacingHint()); // TQVBoxLayout* layout = new TQVBoxLayout( m_page, 0, spacingHint());
// m_lineedit = new TQLineEdit( TQString(), m_page, "select" ); // m_lineedit = new TQLineEdit( TQString(), m_page, "select" );
// m_lineedit->setMinimumWidth(fontMetrics().maxWidth()*8); // m_lineedit->setMinimumWidth(fontMetrics().maxWidth()*8);
// //
// TQHBoxLayout* htqlayout = new TQHBoxLayout(m_page, 0, spacingHint()); // TQHBoxLayout* hlayout = new TQHBoxLayout(m_page, 0, spacingHint());
// htqlayout->addWidget(new TQLabel(i18n("Verse key:"), m_page)); // hlayout->addWidget(new TQLabel(i18n("Verse key:"), m_page));
// htqlayout->addWidget(m_lineedit); // hlayout->addWidget(m_lineedit);
// tqlayout->addItem(htqlayout); // layout->addItem(hlayout);
// tqlayout->addWidget(m_placeholder); // layout->addWidget(m_placeholder);
// //
// m_chooser = NULL; // m_chooser = NULL;
// m_oldParent = NULL; // m_oldParent = NULL;

@ -43,16 +43,16 @@ ManageIndicesForm::ManageIndicesForm( TQWidget* parent, const char* name, WFlags
m_moduleList = new KListView( this, "m_moduleList" ); m_moduleList = new KListView( this, "m_moduleList" );
ManageIndicesFormLayout->addWidget( m_moduleList ); ManageIndicesFormLayout->addWidget( m_moduleList );
tqlayout1 = new TQHBoxLayout( 0, 0, 6, "tqlayout1"); layout1 = new TQHBoxLayout( 0, 0, 6, "layout1");
spacer1 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); spacer1 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
tqlayout1->addItem( spacer1 ); layout1->addItem( spacer1 );
m_createIndicesButton = new TQPushButton( this, "m_createIndicesButton" ); m_createIndicesButton = new TQPushButton( this, "m_createIndicesButton" );
tqlayout1->addWidget( m_createIndicesButton ); layout1->addWidget( m_createIndicesButton );
m_deleteIndicesButton = new TQPushButton( this, "m_deleteIndicesButton" ); m_deleteIndicesButton = new TQPushButton( this, "m_deleteIndicesButton" );
tqlayout1->addWidget( m_deleteIndicesButton ); layout1->addWidget( m_deleteIndicesButton );
ManageIndicesFormLayout->addLayout( tqlayout1 ); ManageIndicesFormLayout->addLayout( layout1 );
languageChange(); languageChange();
resize( TQSize(415, 404).expandedTo(minimumSizeHint()) ); resize( TQSize(415, 404).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );

@ -62,7 +62,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -283,10 +283,10 @@ void CModuleChooserDialog::initView() {
setButtonOKText(i18n("Use chosen work(s)")); setButtonOKText(i18n("Use chosen work(s)"));
TQFrame* page = plainPage(); TQFrame* page = plainPage();
TQHBoxLayout* tqlayout = new TQHBoxLayout(page); TQHBoxLayout* layout = new TQHBoxLayout(page);
m_moduleChooser = new CModuleChooser(page); m_moduleChooser = new CModuleChooser(page);
m_moduleChooser->setMinimumSize(320,400); m_moduleChooser->setMinimumSize(320,400);
tqlayout->addWidget(m_moduleChooser); layout->addWidget(m_moduleChooser);
} }
/** Initializes the connections of this dialog. */ /** Initializes the connections of this dialog. */

@ -80,19 +80,19 @@ CSearchAnalysisDialog::~CSearchAnalysisDialog() {}
/** Initializes this dialog. */ /** Initializes this dialog. */
void CSearchAnalysisDialog::initView() { void CSearchAnalysisDialog::initView() {
TQVBoxLayout* tqlayout = new TQVBoxLayout(plainPage(),0); TQVBoxLayout* layout = new TQVBoxLayout(plainPage(),0);
TQPushButton* button = new TQPushButton(plainPage(), "button"); TQPushButton* button = new TQPushButton(plainPage(), "button");
button->setIconSet(SmallIconSet("filesave")); button->setIconSet(SmallIconSet("filesave"));
button->setText(i18n("Save search analysis as HTML")); button->setText(i18n("Save search analysis as HTML"));
button->setFixedSize(button->sizeHint()); button->setFixedSize(button->sizeHint());
tqlayout->addWidget(button); layout->addWidget(button);
tqlayout->addSpacing(10); layout->addSpacing(10);
m_analysis = new CSearchAnalysis(TQT_TQOBJECT(plainPage())); m_analysis = new CSearchAnalysis(TQT_TQOBJECT(plainPage()));
m_analysisView = new CSearchAnalysisView(m_analysis, plainPage()); m_analysisView = new CSearchAnalysisView(m_analysis, plainPage());
m_analysisView->show(); m_analysisView->show();
tqlayout->addWidget(m_analysisView); layout->addWidget(m_analysisView);
connect(button, TQT_SIGNAL(clicked()), m_analysis, TQT_SLOT(saveAsHTML())); connect(button, TQT_SIGNAL(clicked()), m_analysis, TQT_SLOT(saveAsHTML()));
} }

@ -36,9 +36,9 @@ SearchOptionsForm::SearchOptionsForm( TQWidget* parent, const char* name, WFlags
searchGroupBox = new TQGroupBox( this, "searchGroupBox" ); searchGroupBox = new TQGroupBox( this, "searchGroupBox" );
searchGroupBox->setMargin( 0 ); searchGroupBox->setMargin( 0 );
searchGroupBox->setColumnLayout(0, Qt::Vertical ); searchGroupBox->setColumnLayout(0, Qt::Vertical );
searchGroupBox->tqlayout()->setSpacing( 3 ); searchGroupBox->layout()->setSpacing( 3 );
searchGroupBox->tqlayout()->setMargin( 6 ); searchGroupBox->layout()->setMargin( 6 );
searchGroupBoxLayout = new TQGridLayout( searchGroupBox->tqlayout() ); searchGroupBoxLayout = new TQGridLayout( searchGroupBox->layout() );
searchGroupBoxLayout->setAlignment( TQt::AlignTop ); searchGroupBoxLayout->setAlignment( TQt::AlignTop );
m_searchTextLabel = new TQLabel( searchGroupBox, "m_searchTextLabel" ); m_searchTextLabel = new TQLabel( searchGroupBox, "m_searchTextLabel" );

Loading…
Cancel
Save