diff options
Diffstat (limited to 'bibletime/frontend')
55 files changed, 427 insertions, 427 deletions
diff --git a/bibletime/frontend/cbtconfig.cpp b/bibletime/frontend/cbtconfig.cpp index 0d7260c..6c5e747 100644 --- a/bibletime/frontend/cbtconfig.cpp +++ b/bibletime/frontend/cbtconfig.cpp @@ -555,7 +555,7 @@ const CSwordBackend::FilterOptions CBTConfig::getFilterOptionDefaults() { return options; } -void CBTConfig::setupAccelSettings(const CBTConfig::keys type, KActionCollection* const actionCollection) { +void CBTConfig::setupAccelSettings(const CBTConfig::keys type, TDEActionCollection* const actionCollection) { TQString groupName; switch (type) { case allWindows : { @@ -596,7 +596,7 @@ void CBTConfig::setupAccelSettings(const CBTConfig::keys type, KActionCollection actionCollection->readShortcutSettings(groupName, CBTConfig::getConfig()); } -void CBTConfig::saveAccelSettings(const CBTConfig::keys type, KActionCollection* const actionCollection) { +void CBTConfig::saveAccelSettings(const CBTConfig::keys type, TDEActionCollection* const actionCollection) { TQString groupName; switch (type) { case allWindows : { diff --git a/bibletime/frontend/cbtconfig.h b/bibletime/frontend/cbtconfig.h index 3b1d3fa..9517dcd 100644 --- a/bibletime/frontend/cbtconfig.h +++ b/bibletime/frontend/cbtconfig.h @@ -22,8 +22,8 @@ #include <tqmap.h> //Forward declarations -class KAccel; -class KActionCollection; +class TDEAccel; +class TDEActionCollection; class TDEConfig; /** @@ -162,8 +162,8 @@ public: static const CSwordBackend::FilterOptions getFilterOptionDefaults(); static const CSwordBackend::DisplayOptions getDisplayOptionDefaults(); - static void setupAccelSettings(const CBTConfig::keys type, KActionCollection* const actionCollection); - static void saveAccelSettings(const CBTConfig::keys type, KActionCollection* const actionCollection); + static void setupAccelSettings(const CBTConfig::keys type, TDEActionCollection* const actionCollection); + static void saveAccelSettings(const CBTConfig::keys type, TDEActionCollection* const actionCollection); static const TQString getModuleEncryptionKey( const TQString& name ); static void setModuleEncryptionKey( const TQString& name, const TQString& key ); diff --git a/bibletime/frontend/cmdiarea.h b/bibletime/frontend/cmdiarea.h index 2acaf66..5df0a0c 100644 --- a/bibletime/frontend/cmdiarea.h +++ b/bibletime/frontend/cmdiarea.h @@ -22,7 +22,7 @@ #include <tqstrlist.h> #include <tqevent.h> -class KPopupMenu; +class TDEPopupMenu; class CSwordModuleInfo; class CSwordKey; diff --git a/bibletime/frontend/coptionsdialog.cpp b/bibletime/frontend/coptionsdialog.cpp index caa80c3..fc6d8b1 100644 --- a/bibletime/frontend/coptionsdialog.cpp +++ b/bibletime/frontend/coptionsdialog.cpp @@ -71,7 +71,7 @@ using std::string; using std::list; -COptionsDialog::COptionsDialog(TQWidget *parent, const char *name, KActionCollection* actionCollection ) +COptionsDialog::COptionsDialog(TQWidget *parent, const char *name, TDEActionCollection* actionCollection ) : KDialogBase(IconList, i18n("Configure BibleTime"), Ok | Cancel | Apply, Ok, parent, name, true, true, TQString(), TQString(), TQString()) { m_settings.keys.application.actionCollection = actionCollection; @@ -341,7 +341,7 @@ void COptionsDialog::initLanguages() { layout->addLayout(hLayout); //#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 TDEFontChooser(page, "fonts", false, TQStringList(), true, 5); m_settings.fonts.fontChooser->setSampleText(i18n("The quick brown fox jumps over the lazy dog.")); layout->addWidget(m_settings.fonts.fontChooser); @@ -407,7 +407,7 @@ void COptionsDialog::initAccelerators() { ); // ----- All display windows ------ // - m_settings.keys.general.actionCollection = new KActionCollection(this, "displayActions", 0); + m_settings.keys.general.actionCollection = new TDEActionCollection(this, "displayActions", 0); CDisplayWindow::insertKeyboardActions( m_settings.keys.general.actionCollection); CBTConfig::setupAccelSettings( CBTConfig::allWindows, @@ -419,7 +419,7 @@ void COptionsDialog::initAccelerators() { ); // ----- Bible windows ------ // - m_settings.keys.bible.actionCollection = new KActionCollection(this, "bibleActions", 0); + m_settings.keys.bible.actionCollection = new TDEActionCollection(this, "bibleActions", 0); CBibleReadWindow::insertKeyboardActions( m_settings.keys.bible.actionCollection); CBTConfig::setupAccelSettings( CBTConfig::bibleWindow, @@ -427,7 +427,7 @@ void COptionsDialog::initAccelerators() { ); // ----- Commentary windows ------ // - m_settings.keys.commentary.actionCollection= new KActionCollection(this, "commentaryActions", 0); + m_settings.keys.commentary.actionCollection= new TDEActionCollection(this, "commentaryActions", 0); CCommentaryReadWindow::insertKeyboardActions( m_settings.keys.commentary.actionCollection); CBTConfig::setupAccelSettings( CBTConfig::commentaryWindow, @@ -435,7 +435,7 @@ void COptionsDialog::initAccelerators() { ); // ----- Lexicon windows ------ // - m_settings.keys.lexicon.actionCollection = new KActionCollection(this, "lexiconActions", 0); + m_settings.keys.lexicon.actionCollection = new TDEActionCollection(this, "lexiconActions", 0); CLexiconReadWindow::insertKeyboardActions( m_settings.keys.lexicon.actionCollection ); CBTConfig::setupAccelSettings( CBTConfig::lexiconWindow, @@ -443,7 +443,7 @@ void COptionsDialog::initAccelerators() { ); // ----- Book windows ------ // - m_settings.keys.book.actionCollection= new KActionCollection(this, "bookActions", 0); + m_settings.keys.book.actionCollection= new TDEActionCollection(this, "bookActions", 0); CBookReadWindow::insertKeyboardActions( m_settings.keys.book.actionCollection); CBTConfig::setupAccelSettings( CBTConfig::bookWindow, diff --git a/bibletime/frontend/coptionsdialog.h b/bibletime/frontend/coptionsdialog.h index 5396177..1d67853 100644 --- a/bibletime/frontend/coptionsdialog.h +++ b/bibletime/frontend/coptionsdialog.h @@ -40,11 +40,11 @@ class TQComboBox; class TQRadioButton; class TQWidgetStack; -class KListBox; +class TDEListBox; class KKeyChooser; class KTabCtl; class TDEHTMLPart; -class KActionCollection; +class TDEActionCollection; /** * The optionsdialog of BibleTime @@ -55,7 +55,7 @@ class COptionsDialog : public KDialogBase, public CPointers { public: - COptionsDialog(TQWidget *parent, const char *name, KActionCollection* actionCollection); + COptionsDialog(TQWidget *parent, const char *name, TDEActionCollection* actionCollection); virtual ~COptionsDialog(); enum Parts { @@ -104,7 +104,7 @@ private: struct WindowType { TQGuardedPtr<KKeyChooser> keyChooser; - KActionCollection* actionCollection; + TDEActionCollection* actionCollection; TQString title; WindowType() { @@ -136,7 +136,7 @@ private: struct FontSettings { TQComboBox* swordLocaleCombo; - KFontChooser* fontChooser; + TDEFontChooser* fontChooser; TQComboBox* usage; TQCheckBox* useOwnFontBox; //the pair os to check whether the standard font (bool == false) or whether an own font should be used (true) diff --git a/bibletime/frontend/cswordsetupmodulelistview.cpp b/bibletime/frontend/cswordsetupmodulelistview.cpp index 9b80cb0..d77d765 100644 --- a/bibletime/frontend/cswordsetupmodulelistview.cpp +++ b/bibletime/frontend/cswordsetupmodulelistview.cpp @@ -66,7 +66,7 @@ namespace BookshelfManager { * @author Martin Gruner */ CSwordSetupModuleListView::CSwordSetupModuleListView(TQWidget *parent, bool is_remote, sword::InstallSource* installSource) - : KListView(parent), m_is_remote( is_remote ) { + : TDEListView(parent), m_is_remote( is_remote ) { Q_ASSERT(installSource); new BookshelfManager::ToolTip(this); m_backend = installSource ? BTInstallMgr::Tool::backend(installSource) : CPointers::backend(); diff --git a/bibletime/frontend/cswordsetupmodulelistview.h b/bibletime/frontend/cswordsetupmodulelistview.h index bbdfb65..ed8f32a 100644 --- a/bibletime/frontend/cswordsetupmodulelistview.h +++ b/bibletime/frontend/cswordsetupmodulelistview.h @@ -27,7 +27,7 @@ class CSwordBackend; namespace BookshelfManager { -class CSwordSetupModuleListView : public KListView { +class CSwordSetupModuleListView : public TDEListView { Q_OBJECT diff --git a/bibletime/frontend/display/chtmlwritedisplay.cpp b/bibletime/frontend/display/chtmlwritedisplay.cpp index 111eb19..7c93755 100644 --- a/bibletime/frontend/display/chtmlwritedisplay.cpp +++ b/bibletime/frontend/display/chtmlwritedisplay.cpp @@ -129,8 +129,8 @@ void CHTMLWriteDisplay::slotFontChanged( const TQFont& font ) { m_actions.underline->setChecked( font.underline() ); }; -void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions) { - m_actions.fontChooser = new KFontAction( i18n("Choose a font"), +void CHTMLWriteDisplay::setupToolbar(TDEToolBar * bar, TDEActionCollection * actions) { + m_actions.fontChooser = new TDEFontAction( i18n("Choose a font"), CResMgr::displaywindows::writeWindow::underlinedText::accel, actions, CResMgr::displaywindows::writeWindow::fontFamily::actionName @@ -141,7 +141,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions connect(m_actions.fontChooser, TQT_SIGNAL(activated(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(setFamily(const TQString&))); - m_actions.fontSizeChooser = new KFontSizeAction( i18n("Choose a font size"), + m_actions.fontSizeChooser = new TDEFontSizeAction( i18n("Choose a font size"), CResMgr::displaywindows::writeWindow::fontSize::accel, actions, CResMgr::displaywindows::writeWindow::fontSize::actionName @@ -159,9 +159,9 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions - (new KActionSeparator())->plug(bar); //seperate font options from formatting buttons + (new TDEActionSeparator())->plug(bar); //seperate font options from formatting buttons - m_actions.bold = new KToggleAction( i18n("Bold"), + m_actions.bold = new TDEToggleAction( i18n("Bold"), CResMgr::displaywindows::writeWindow::boldText::icon, CResMgr::displaywindows::writeWindow::boldText::accel, TQT_TQOBJECT(this), TQT_SLOT(toggleBold()), @@ -172,7 +172,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions m_actions.bold->plug(bar); - m_actions.italic = new KToggleAction( i18n("Italic"), + m_actions.italic = new TDEToggleAction( i18n("Italic"), CResMgr::displaywindows::writeWindow::italicText::icon, CResMgr::displaywindows::writeWindow::italicText::accel, TQT_TQOBJECT(this), TQT_SLOT(toggleItalic()), @@ -183,7 +183,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions m_actions.italic->plug(bar); - m_actions.underline = new KToggleAction( i18n("Underline"), + m_actions.underline = new TDEToggleAction( i18n("Underline"), CResMgr::displaywindows::writeWindow::underlinedText::icon, CResMgr::displaywindows::writeWindow::underlinedText::accel, TQT_TQOBJECT(this), TQT_SLOT(toggleUnderline()), @@ -195,9 +195,9 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions m_actions.underline->plug(bar); - (new KActionSeparator())->plug(bar); //seperate formatting from alignment buttons + (new TDEActionSeparator())->plug(bar); //seperate formatting from alignment buttons - m_actions.alignLeft = new KToggleAction( i18n("Left"), + m_actions.alignLeft = new TDEToggleAction( i18n("Left"), CResMgr::displaywindows::writeWindow::alignLeft::icon, CResMgr::displaywindows::writeWindow::alignLeft::accel, TQT_TQOBJECT(this), TQT_SLOT( alignLeft() ), @@ -208,7 +208,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions m_actions.alignLeft->plug(bar); - m_actions.alignCenter = new KToggleAction( i18n("Center"), + m_actions.alignCenter = new TDEToggleAction( i18n("Center"), CResMgr::displaywindows::writeWindow::alignCenter::icon, CResMgr::displaywindows::writeWindow::alignCenter::accel, TQT_TQOBJECT(this), TQT_SLOT(alignCenter()), @@ -219,7 +219,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions m_actions.alignCenter->plug(bar); - m_actions.alignRight = new KToggleAction( i18n("Right"), + m_actions.alignRight = new TDEToggleAction( i18n("Right"), CResMgr::displaywindows::writeWindow::alignRight::icon, CResMgr::displaywindows::writeWindow::alignRight::accel, TQT_TQOBJECT(this), TQT_SLOT(alignRight()), @@ -230,7 +230,7 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions m_actions.alignRight->plug(bar); - // m_actions.alignJustify = new KToggleAction( i18n("Justify"), + // m_actions.alignJustify = new TDEToggleAction( i18n("Justify"), // CResMgr::displaywindows::writeWindow::alignJustify::icon, // CResMgr::displaywindows::writeWindow::alignJustify::accel, // this, TQT_SLOT( alignJustify() ), @@ -255,10 +255,10 @@ void CHTMLWriteDisplay::setupToolbar(KToolBar * bar, KActionCollection * actions /** Reimplementation to show a popup menu if the right mouse butoon was clicked. */ TQPopupMenu* CHTMLWriteDisplay::createPopupMenu( const TQPoint& /*pos*/ ) { if (!m_actions.selectAll) { - m_actions.selectAll = new KAction(i18n("Select all"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(selectAll()), TQT_TQOBJECT(this)); + m_actions.selectAll = new TDEAction(i18n("Select all"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(selectAll()), TQT_TQOBJECT(this)); } - KPopupMenu* popup = new KPopupMenu(this); + TDEPopupMenu* popup = new TDEPopupMenu(this); popup->insertTitle(i18n("HTML editor window")); m_actions.selectAll->plug(popup); diff --git a/bibletime/frontend/display/chtmlwritedisplay.h b/bibletime/frontend/display/chtmlwritedisplay.h index 739eb94..0d81610 100644 --- a/bibletime/frontend/display/chtmlwritedisplay.h +++ b/bibletime/frontend/display/chtmlwritedisplay.h @@ -23,9 +23,9 @@ class CWriteWindow; class TQPopupMenu; -class KToggleAction; -class KFontAction; -class KFontSizeAction; +class TDEToggleAction; +class TDEFontAction; +class TDEFontSizeAction; class KColorButton; @@ -48,7 +48,7 @@ public: /** * Creates the necessary action objects and puts them on the toolbar. */ - virtual void setupToolbar(KToolBar * bar, KActionCollection * actionCollection); + virtual void setupToolbar(TDEToolBar * bar, TDEActionCollection * actionCollection); protected: friend class CDisplay; @@ -84,19 +84,19 @@ protected slots: private: struct { - KToggleAction* bold; - KToggleAction* italic; - KToggleAction* underline; + TDEToggleAction* bold; + TDEToggleAction* italic; + TDEToggleAction* underline; - KToggleAction* alignLeft; - KToggleAction* alignCenter; - KToggleAction* alignRight; + TDEToggleAction* alignLeft; + TDEToggleAction* alignCenter; + TDEToggleAction* alignRight; - KFontAction* fontChooser; - KFontSizeAction* fontSizeChooser; + TDEFontAction* fontChooser; + TDEFontSizeAction* fontSizeChooser; //popup menu - KAction* selectAll; + TDEAction* selectAll; } m_actions; KColorButton* m_colorButton; diff --git a/bibletime/frontend/display/cplainwritedisplay.cpp b/bibletime/frontend/display/cplainwritedisplay.cpp index 6db1d1d..2619974 100644 --- a/bibletime/frontend/display/cplainwritedisplay.cpp +++ b/bibletime/frontend/display/cplainwritedisplay.cpp @@ -96,7 +96,7 @@ TQPopupMenu* CPlainWriteDisplay::createPopupMenu( ) { } /** Creates the necessary action objects and puts them on the toolbar. */ -void CPlainWriteDisplay::setupToolbar(KToolBar* /*bar*/, KActionCollection* /*actionCollection*/) {} +void CPlainWriteDisplay::setupToolbar(TDEToolBar* /*bar*/, TDEActionCollection* /*actionCollection*/) {} /** Reimplementation to insert the text of a dragged reference into the edit view. */ void CPlainWriteDisplay::contentsDragEnterEvent( TQDragEnterEvent* e ) { diff --git a/bibletime/frontend/display/cplainwritedisplay.h b/bibletime/frontend/display/cplainwritedisplay.h index 897eb85..85cf17b 100644 --- a/bibletime/frontend/display/cplainwritedisplay.h +++ b/bibletime/frontend/display/cplainwritedisplay.h @@ -20,7 +20,7 @@ #include <tqtextedit.h> class CHTMLWriteDisplay; -class KAction; +class TDEAction; /** The write display implementation for plain source code editing. * @author The BibleTime team @@ -60,7 +60,7 @@ public: /** * Creates the necessary action objects and puts them on the toolbar. */ - virtual void setupToolbar(KToolBar * bar, KActionCollection * actionCollection); + virtual void setupToolbar(TDEToolBar * bar, TDEActionCollection * actionCollection); protected: friend class CDisplay; diff --git a/bibletime/frontend/display/cwritedisplay.h b/bibletime/frontend/display/cwritedisplay.h index f33b4d7..50df09a 100644 --- a/bibletime/frontend/display/cwritedisplay.h +++ b/bibletime/frontend/display/cwritedisplay.h @@ -14,8 +14,8 @@ #include "cdisplay.h" -class KActionCollection; -class KToolBar; +class TDEActionCollection; +class TDEToolBar; /**The base class for all read/write-display classes. *@author The BibleTime team @@ -44,7 +44,7 @@ public: // Public methods /** * Creates the necessary action objects and puts them on the toolbar. */ - virtual void setupToolbar( KToolBar* bar, KActionCollection* actionCollection ) = 0; + virtual void setupToolbar( TDEToolBar* bar, TDEActionCollection* actionCollection ) = 0; }; #endif diff --git a/bibletime/frontend/displaywindow/cbiblereadwindow.cpp b/bibletime/frontend/displaywindow/cbiblereadwindow.cpp index 4baa601..ae60dd8 100644 --- a/bibletime/frontend/displaywindow/cbiblereadwindow.cpp +++ b/bibletime/frontend/displaywindow/cbiblereadwindow.cpp @@ -77,50 +77,50 @@ void CBibleReadWindow::storeProfileSettings( CProfileWindow* const settings ) { /** Reimplementation. */ -void CBibleReadWindow::insertKeyboardActions( KActionCollection* const a ) { - new KAction( +void CBibleReadWindow::insertKeyboardActions( TDEActionCollection* const a ) { + new TDEAction( i18n("Next book"), CResMgr::displaywindows::bibleWindow::nextBook::accel, a, "nextBook" ); - new KAction( + new TDEAction( i18n("Previous book"), CResMgr::displaywindows::bibleWindow::previousBook::accel, a, "previousBook" ); - new KAction( + new TDEAction( i18n("Next chapter"), CResMgr::displaywindows::bibleWindow::nextChapter::accel, a, "nextChapter" ); - new KAction( + new TDEAction( i18n("Previous chapter"), CResMgr::displaywindows::bibleWindow::previousChapter::accel, a, "previousChapter" ); - new KAction( + new TDEAction( i18n("Next verse"), CResMgr::displaywindows::bibleWindow::nextVerse::accel, a, "nextVerse" ); - new KAction( + new TDEAction( i18n("Previous verse"), CResMgr::displaywindows::bibleWindow::previousVerse::accel, a, "previousVerse" ); //popup menu items - // new KAction(i18n("Select all"), KStdAccel::selectAll(), a, "selectAll"); + // new TDEAction(i18n("Select all"), TDEStdAccel::selectAll(), a, "selectAll"); //copy menu items - // new KAction(i18n("Copy reference only"), KShortcut(0), a, "copyReferenceOnly"); - // new KAction(i18n("Text of reference"), KShortcut(0), a, "copyTextOfReference"); - // new KAction(i18n("Reference with text"), KShortcut(0), a, "copyReferenceWithText"); - new KAction(i18n("Copy chapter"), KShortcut(0), a, "copyChapter"); - // new KAction(i18n("Copy selected text"), KStdAccel::copy(), a, "copySelectedText"); + // new TDEAction(i18n("Copy reference only"), TDEShortcut(0), a, "copyReferenceOnly"); + // new TDEAction(i18n("Text of reference"), TDEShortcut(0), a, "copyTextOfReference"); + // new TDEAction(i18n("Reference with text"), TDEShortcut(0), a, "copyReferenceWithText"); + new TDEAction(i18n("Copy chapter"), TDEShortcut(0), a, "copyChapter"); + // new TDEAction(i18n("Copy selected text"), TDEStdAccel::copy(), a, "copySelectedText"); //save menu - // new KAction(i18n("Reference with text"), KShortcut(0), a, "saveReferenceWithText"); - new KAction(i18n("Save chapter as plain text"), KShortcut(0), a, "saveChapterAsPlainText"); - new KAction(i18n("Save chapter as HTML"), KShortcut(0), a, "saveChapterAsHTML"); - // new KAction(i18n("Reference with text"), KShortcut(0), a, "saveReferenceWithText"); + // new TDEAction(i18n("Reference with text"), TDEShortcut(0), a, "saveReferenceWithText"); + new TDEAction(i18n("Save chapter as plain text"), TDEShortcut(0), a, "saveChapterAsPlainText"); + new TDEAction(i18n("Save chapter as HTML"), TDEShortcut(0), a, "saveChapterAsHTML"); + // new TDEAction(i18n("Reference with text"), TDEShortcut(0), a, "saveReferenceWithText"); //print - new KAction(i18n("Print chapter"), KStdAccel::print(), a, "printChapter"); + new TDEAction(i18n("Print chapter"), TDEStdAccel::print(), a, "printChapter"); } void CBibleReadWindow::initActions() { @@ -130,37 +130,37 @@ void CBibleReadWindow::initActions() { actionCollection()->action("nextEntry")->setEnabled(false); actionCollection()->action("previousEntry")->setEnabled(false); - new KAction( + new TDEAction( i18n("Next book"), CResMgr::displaywindows::bibleWindow::nextBook::accel, TQT_TQOBJECT(this), TQT_SLOT(nextBook()), actionCollection(), "nextBook" ); - new KAction( + new TDEAction( i18n("Previous book"), CResMgr::displaywindows::bibleWindow::previousBook::accel, TQT_TQOBJECT(this), TQT_SLOT(previousBook()), actionCollection(), "previousBook" ); - new KAction( + new TDEAction( i18n("Next chapter"), CResMgr::displaywindows::bibleWindow::nextChapter::accel, TQT_TQOBJECT(this), TQT_SLOT(nextChapter()), actionCollection(), "nextChapter" ); - new KAction( + new TDEAction( i18n("Previous chapter"), CResMgr::displaywindows::bibleWindow::previousChapter::accel, TQT_TQOBJECT(this), TQT_SLOT(previousChapter()), actionCollection(), "previousChapter" ); - new KAction( + new TDEAction( i18n("Next verse"), CResMgr::displaywindows::bibleWindow::nextVerse::accel, TQT_TQOBJECT(this), TQT_SLOT(nextVerse()), actionCollection(), "nextVerse" ); - new KAction( + new TDEAction( i18n("Previous verse"), CResMgr::displaywindows::bibleWindow::previousVerse::accel, TQT_TQOBJECT(this), TQT_SLOT(previousVerse()), @@ -173,7 +173,7 @@ void CBibleReadWindow::initActions() { m_actions.findText = actionCollection()->action("findText"); Q_ASSERT(m_actions.findText); - m_actions.findStrongs = new KAction( + m_actions.findStrongs = new TDEAction( i18n("Strong's Search"), CResMgr::displaywindows::general::findStrongs::icon, CResMgr::displaywindows::general::findStrongs::accel, @@ -182,26 +182,26 @@ void CBibleReadWindow::initActions() { CResMgr::displaywindows::general::findStrongs::actionName); - m_actions.copy.referenceOnly = new KAction(i18n("Reference only"), KShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorOnly()), actionCollection(), "copyReferenceOnly"); + m_actions.copy.referenceOnly = new TDEAction(i18n("Reference only"), TDEShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorOnly()), actionCollection(), "copyReferenceOnly"); - m_actions.copy.referenceTextOnly = new KAction(i18n("Text of reference"), KShortcut(0),displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorTextOnly()), actionCollection(), "copyTextOfReference"); + m_actions.copy.referenceTextOnly = new TDEAction(i18n("Text of reference"), TDEShortcut(0),displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorTextOnly()), actionCollection(), "copyTextOfReference"); - m_actions.copy.referenceAndText = new KAction(i18n("Reference with text"), KShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorWithText()), actionCollection(), "copyReferenceWithText"); + m_actions.copy.referenceAndText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorWithText()), actionCollection(), "copyReferenceWithText"); - m_actions.copy.chapter = new KAction(i18n("Chapter"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyDisplayedText()), actionCollection(), "copyChapter"); + m_actions.copy.chapter = new TDEAction(i18n("Chapter"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyDisplayedText()), actionCollection(), "copyChapter"); m_actions.copy.selectedText = actionCollection()->action("copySelectedText"); Q_ASSERT(m_actions.copy.selectedText); - m_actions.save.referenceAndText = new KAction(i18n("Reference with text"), KShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(saveAnchorWithText()), actionCollection(), "saveReferenceWithText"); + m_actions.save.referenceAndText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(saveAnchorWithText()), actionCollection(), "saveReferenceWithText"); - m_actions.save.chapterAsPlain = new KAction(i18n("Chapter as plain text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveChapterPlain()), actionCollection(), "saveChapterAsPlainText"); + m_actions.save.chapterAsPlain = new TDEAction(i18n("Chapter as plain text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveChapterPlain()), actionCollection(), "saveChapterAsPlainText"); - m_actions.save.chapterAsHTML = new KAction(i18n("Chapter as HTML"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveChapterHTML()), actionCollection(), "saveChapterAsHTML"); + m_actions.save.chapterAsHTML = new TDEAction(i18n("Chapter as HTML"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveChapterHTML()), actionCollection(), "saveChapterAsHTML"); - m_actions.print.reference = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAnchorWithText()), actionCollection(), "saveReferenceWithText"); + m_actions.print.reference = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAnchorWithText()), actionCollection(), "saveReferenceWithText"); - m_actions.print.chapter = new KAction(i18n("Chapter"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAll()), actionCollection(), "printChapter"); + m_actions.print.chapter = new TDEAction(i18n("Chapter"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAll()), actionCollection(), "printChapter"); CBTConfig::setupAccelSettings(CBTConfig::bibleWindow, actionCollection()); } @@ -232,26 +232,26 @@ void CBibleReadWindow::setupPopupMenu() { m_actions.findStrongs->plug(popup()); m_actions.selectAll->plug(popup()); - (new KActionSeparator(TQT_TQOBJECT(this)))->plug( popup() ); + (new TDEActionSeparator(TQT_TQOBJECT(this)))->plug( popup() ); - m_actions.copyMenu = new KActionMenu(i18n("Copy..."), CResMgr::displaywindows::bibleWindow::copyMenu::icon, TQT_TQOBJECT(popup())); + m_actions.copyMenu = new TDEActionMenu(i18n("Copy..."), CResMgr::displaywindows::bibleWindow::copyMenu::icon, TQT_TQOBJECT(popup())); m_actions.copyMenu->setDelayed( false ); m_actions.copyMenu->insert(m_actions.copy.referenceOnly); m_actions.copyMenu->insert(m_actions.copy.referenceTextOnly); m_actions.copyMenu->insert(m_actions.copy.referenceAndText); m_actions.copyMenu->insert(m_actions.copy.chapter); - m_actions.copyMenu->insert(new KActionSeparator(TQT_TQOBJECT(this))); + m_actions.copyMenu->insert(new TDEActionSeparator(TQT_TQOBJECT(this))); m_actions.copyMenu->insert(m_actions.copy.selectedText); m_actions.copyMenu->plug(popup()); - m_actions.saveMenu = new KActionMenu(i18n("Save..."),CResMgr::displaywindows::bibleWindow::saveMenu::icon,TQT_TQOBJECT(popup())); + m_actions.saveMenu = new TDEActionMenu(i18n("Save..."),CResMgr::displaywindows::bibleWindow::saveMenu::icon,TQT_TQOBJECT(popup())); m_actions.saveMenu->setDelayed( false ); m_actions.saveMenu->insert(m_actions.save.referenceAndText); m_actions.saveMenu->insert(m_actions.save.chapterAsPlain); m_actions.saveMenu->insert(m_actions.save.chapterAsHTML); m_actions.saveMenu->plug(popup()); - m_actions.printMenu = new KActionMenu(i18n("Print..."),CResMgr::displaywindows::bibleWindow::printMenu::icon, TQT_TQOBJECT(popup())); + m_actions.printMenu = new TDEActionMenu(i18n("Print..."),CResMgr::displaywindows::bibleWindow::printMenu::icon, TQT_TQOBJECT(popup())); m_actions.printMenu->setDelayed(false); m_actions.printMenu->insert(m_actions.print.reference); m_actions.printMenu->insert(m_actions.print.chapter); diff --git a/bibletime/frontend/displaywindow/cbiblereadwindow.h b/bibletime/frontend/displaywindow/cbiblereadwindow.h index 339b34b..7eb7fbe 100644 --- a/bibletime/frontend/displaywindow/cbiblereadwindow.h +++ b/bibletime/frontend/displaywindow/cbiblereadwindow.h @@ -48,7 +48,7 @@ public: /** * Reimplementation. */ - static void insertKeyboardActions( KActionCollection* const a ); + static void insertKeyboardActions( TDEActionCollection* const a ); protected: virtual void initActions(); @@ -69,32 +69,32 @@ protected: virtual bool eventFilter( TQObject* o, TQEvent* e); struct { - KAction* selectAll; - KAction* findText; - KAction* findStrongs; + TDEAction* selectAll; + TDEAction* findText; + TDEAction* findStrongs; - KActionMenu* copyMenu; + TDEActionMenu* copyMenu; struct { - KAction* referenceOnly; - KAction* referenceTextOnly; - KAction* referenceAndText; - KAction* chapter; - KAction* selectedText; + TDEAction* referenceOnly; + TDEAction* referenceTextOnly; + TDEAction* referenceAndText; + TDEAction* chapter; + TDEAction* selectedText; } copy; - KActionMenu* saveMenu; + TDEActionMenu* saveMenu; struct { - KAction* referenceAndText; - KAction* chapterAsPlain; - KAction* chapterAsHTML; + TDEAction* referenceAndText; + TDEAction* chapterAsPlain; + TDEAction* chapterAsHTML; } save; - KActionMenu* printMenu; + TDEActionMenu* printMenu; struct { - KAction* reference; - KAction* chapter; + TDEAction* reference; + TDEAction* chapter; } print; } diff --git a/bibletime/frontend/displaywindow/cbookreadwindow.cpp b/bibletime/frontend/displaywindow/cbookreadwindow.cpp index d7879fc..b62495f 100644 --- a/bibletime/frontend/displaywindow/cbookreadwindow.cpp +++ b/bibletime/frontend/displaywindow/cbookreadwindow.cpp @@ -61,7 +61,7 @@ void CBookReadWindow::initActions() { actionCollection()->action("nextEntry")->setEnabled(false); actionCollection()->action("previousEntry")->setEnabled(false); - m_treeAction = new KToggleAction( + m_treeAction = new TDEToggleAction( i18n("Toggle tree view"), CResMgr::displaywindows::bookWindow::toggleTree::icon, CResMgr::displaywindows::bookWindow::toggleTree::accel, @@ -71,20 +71,20 @@ void CBookReadWindow::initActions() { CBTConfig::setupAccelSettings(CBTConfig::bookWindow, actionCollection()); }; -void CBookReadWindow::insertKeyboardActions( KActionCollection* const a ) { - new KToggleAction( +void CBookReadWindow::insertKeyboardActions( TDEActionCollection* const a ) { + new TDEToggleAction( i18n("Toggle tree view"), CResMgr::displaywindows::bookWindow::toggleTree::icon, CResMgr::displaywindows::bookWindow::toggleTree::accel, a, "toggleTree"); - // new KAction(i18n("Copy reference only"), KShortcut(0), a, "copyReferenceOnly"); - new KAction(i18n("Copy entry with text"), KShortcut(0), a, "copyEntryWithText"); - // new KAction(i18n("Copy selected text"), KShortcut(0), a, "copySelectedText"); - new KAction(i18n("Save entry as plain text"), KShortcut(0), a, "saveEntryAsPlainText"); - new KAction(i18n("Save entry as HTML"), KShortcut(0), a, "saveEntryAsHTML"); - // new KAction(i18n("Print reference only"), KShortcut(0), a, "printReferenceOnly"); - new KAction(i18n("Print entry with text"), KShortcut(0), a, "printEntryWithText"); + // new TDEAction(i18n("Copy reference only"), TDEShortcut(0), a, "copyReferenceOnly"); + new TDEAction(i18n("Copy entry with text"), TDEShortcut(0), a, "copyEntryWithText"); + // new TDEAction(i18n("Copy selected text"), TDEShortcut(0), a, "copySelectedText"); + new TDEAction(i18n("Save entry as plain text"), TDEShortcut(0), a, "saveEntryAsPlainText"); + new TDEAction(i18n("Save entry as HTML"), TDEShortcut(0), a, "saveEntryAsHTML"); + // new TDEAction(i18n("Print reference only"), TDEShortcut(0), a, "printReferenceOnly"); + new TDEAction(i18n("Print entry with text"), TDEShortcut(0), a, "printEntryWithText"); } @@ -104,7 +104,7 @@ void CBookReadWindow::initConnections() { void CBookReadWindow::initView() { TQSplitter* splitter = new TQSplitter(this); - setMainToolBar( new KToolBar(this) ); + setMainToolBar( new TDEToolBar(this) ); addDockWindow(mainToolBar()); m_treeChooser = new CBookTreeChooser(modules(), key(), splitter); @@ -116,7 +116,7 @@ void CBookReadWindow::initView() { moduleChooserBar()->setButtonLimit(1); addDockWindow( moduleChooserBar() ); - setButtonsToolBar( new KToolBar(this) ); + setButtonsToolBar( new TDEToolBar(this) ); addDockWindow( buttonsToolBar() ); setDisplaySettingsButton( new CDisplaySettingsButton( &displayOptions(), &filterOptions(), modules(), buttonsToolBar()) ); @@ -141,7 +141,7 @@ void CBookReadWindow::initToolbars() { buttonsToolBar()->insertWidget(2,displaySettingsButton()->size().width(),displaySettingsButton()); - KAction* action = actionCollection()->action( + TDEAction* action = actionCollection()->action( CResMgr::displaywindows::general::search::actionName ); if (action) { action->plug(buttonsToolBar()); diff --git a/bibletime/frontend/displaywindow/cbookreadwindow.h b/bibletime/frontend/displaywindow/cbookreadwindow.h index 694bdce..844cb93 100644 --- a/bibletime/frontend/displaywindow/cbookreadwindow.h +++ b/bibletime/frontend/displaywindow/cbookreadwindow.h @@ -18,7 +18,7 @@ #include "backend/cswordtreekey.h" #include "backend/cswordversekey.h" -class KToggleAction; +class TDEToggleAction; class CBookTreeChooser; /** @@ -28,7 +28,7 @@ class CBookReadWindow : public CLexiconReadWindow { Q_OBJECT public: - static void insertKeyboardActions( KActionCollection* const a ); + static void insertKeyboardActions( TDEActionCollection* const a ); CBookReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0); @@ -57,7 +57,7 @@ protected: virtual void modulesChanged(); private: - KToggleAction* m_treeAction; + TDEToggleAction* m_treeAction; CBookTreeChooser* m_treeChooser; private slots: // Private slots diff --git a/bibletime/frontend/displaywindow/cbuttons.cpp b/bibletime/frontend/displaywindow/cbuttons.cpp index 99f0809..01bd359 100644 --- a/bibletime/frontend/displaywindow/cbuttons.cpp +++ b/bibletime/frontend/displaywindow/cbuttons.cpp @@ -26,11 +26,11 @@ // CTransliterationButton::CTransliterationButton(CSwordBackend::FilterOptions* filterOptions, TQWidget *parent, const char *name ) -// : KToolBarButton(CResMgr::displaywindows::transliteration::icon, 0,parent,name) { +// : TDEToolBarButton(CResMgr::displaywindows::transliteration::icon, 0,parent,name) { // m_filterOptions = filterOptions; // m_filterOptions->transliteration = 0; // -// m_popup = new KPopupMenu(this); +// m_popup = new TDEPopupMenu(this); // setPopup(m_popup); // setPopupDelay(0001); // @@ -87,13 +87,13 @@ ************************************************/ CDisplaySettingsButton::CDisplaySettingsButton(CSwordBackend::DisplayOptions *displaySettings, CSwordBackend::FilterOptions *moduleSettings, const ListCSwordModuleInfo& useModules,TQWidget *parent, const char *name ) -: KToolBarButton(CResMgr::displaywindows::displaySettings::icon, 0, parent, name) { +: TDEToolBarButton(CResMgr::displaywindows::displaySettings::icon, 0, parent, name) { // tqWarning("CDisplaySettingsButton::CDisplaySettingsButton"); m_displaySettings = displaySettings; m_moduleSettings = moduleSettings; m_modules = useModules; - m_popup = new KPopupMenu(this); + m_popup = new TDEPopupMenu(this); setPopup(m_popup); setPopupDelay(0001); //Fix, O only opens menu on mouse release or move diff --git a/bibletime/frontend/displaywindow/cbuttons.h b/bibletime/frontend/displaywindow/cbuttons.h index 98d748e..f94dd7a 100644 --- a/bibletime/frontend/displaywindow/cbuttons.h +++ b/bibletime/frontend/displaywindow/cbuttons.h @@ -22,12 +22,12 @@ //KDE includes #include <ktoolbarbutton.h> -class KPopupMenu; +class TDEPopupMenu; /** This class manages the transliteration of the selected modules. * @author The BibleTime team */ -// class CTransliterationButton : public KToolBarButton { +// class CTransliterationButton : public TDEToolBarButton { // Q_OBJECT // // public: @@ -46,7 +46,7 @@ class KPopupMenu; // void optionSelected(int); // // private: -// KPopupMenu* m_popup; +// TDEPopupMenu* m_popup; // CSwordBackend::FilterOptions* m_filterOptions; // // signals: @@ -56,7 +56,7 @@ class KPopupMenu; /** This class manages the display options of the selected modules. * @author The BibleTime team */ -class CDisplaySettingsButton : public KToolBarButton { +class CDisplaySettingsButton : public TDEToolBarButton { Q_OBJECT public: @@ -93,7 +93,7 @@ protected: TQDict<int> m_dict; - KPopupMenu* m_popup; + TDEPopupMenu* m_popup; int populateMenu(); bool isOptionAvailable( const CSwordModuleInfo::FilterTypes option); diff --git a/bibletime/frontend/displaywindow/ccommentaryreadwindow.cpp b/bibletime/frontend/displaywindow/ccommentaryreadwindow.cpp index 46c69f2..c3fb66a 100644 --- a/bibletime/frontend/displaywindow/ccommentaryreadwindow.cpp +++ b/bibletime/frontend/displaywindow/ccommentaryreadwindow.cpp @@ -33,28 +33,28 @@ using namespace Profile; CCommentaryReadWindow::CCommentaryReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name) : CLexiconReadWindow(modules, parent,name) {} -void CCommentaryReadWindow::insertKeyboardActions( KActionCollection* const a ) { - new KAction( +void CCommentaryReadWindow::insertKeyboardActions( TDEActionCollection* const a ) { + new TDEAction( i18n("Next book"), CResMgr::displaywindows::bibleWindow::nextBook::accel, a, "nextBook" ); - new KAction( + new TDEAction( i18n("Previous book"), CResMgr::displaywindows::bibleWindow::previousBook::accel, a, "previousBook" ); - new KAction( + new TDEAction( i18n("Next chapter"), CResMgr::displaywindows::bibleWindow::nextChapter::accel, a, "nextChapter" ); - new KAction( + new TDEAction( i18n("Previous chapter"), CResMgr::displaywindows::bibleWindow::previousChapter::accel, a, "previousChapter" ); - new KAction( + new TDEAction( i18n("Next verse"), CResMgr::displaywindows::bibleWindow::nextVerse::accel, a, "nextVerse" ); - new KAction( + new TDEAction( i18n("Previous verse"), CResMgr::displaywindows::bibleWindow::previousVerse::accel, a, "previousVerse" ); @@ -75,7 +75,7 @@ void CCommentaryReadWindow::storeProfileSettings( CProfileWindow* profileWindow void CCommentaryReadWindow::initToolbars() { CLexiconReadWindow::initToolbars(); - m_syncButton = new KToggleAction(i18n("Sync with active Bible"), + m_syncButton = new TDEToggleAction(i18n("Sync with active Bible"), CResMgr::displaywindows::commentaryWindow::syncWindow::icon, CResMgr::displaywindows::commentaryWindow::syncWindow::accel, actionCollection(), @@ -107,37 +107,37 @@ void CCommentaryReadWindow::initActions() { actionCollection()->action("nextEntry")->setEnabled(false); actionCollection()->action("previousEntry")->setEnabled(false); - new KAction( + new TDEAction( i18n("Next book"), CResMgr::displaywindows::bibleWindow::nextBook::accel, TQT_TQOBJECT(this), TQT_SLOT(nextBook()), actionCollection(), "nextBook" ); - new KAction( + new TDEAction( i18n("Previous book"), CResMgr::displaywindows::bibleWindow::previousBook::accel, TQT_TQOBJECT(this), TQT_SLOT(previousBook()), actionCollection(), "previousBook" ); - new KAction( + new TDEAction( i18n("Next chapter"), CResMgr::displaywindows::bibleWindow::nextChapter::accel, TQT_TQOBJECT(this), TQT_SLOT(nextChapter()), actionCollection(), "nextChapter" ); - new KAction( + new TDEAction( i18n("Previous chapter"), CResMgr::displaywindows::bibleWindow::previousChapter::accel, TQT_TQOBJECT(this), TQT_SLOT(previousChapter()), actionCollection(), "previousChapter" ); - new KAction( + new TDEAction( i18n("Next verse"), CResMgr::displaywindows::bibleWindow::nextVerse::accel, TQT_TQOBJECT(this), TQT_SLOT(nextVerse()), actionCollection(), "nextVerse" ); - new KAction( + new TDEAction( i18n("Previous verse"), CResMgr::displaywindows::bibleWindow::previousVerse::accel, TQT_TQOBJECT(this), TQT_SLOT(previousVerse()), diff --git a/bibletime/frontend/displaywindow/ccommentaryreadwindow.h b/bibletime/frontend/displaywindow/ccommentaryreadwindow.h index db7b966..46ce781 100644 --- a/bibletime/frontend/displaywindow/ccommentaryreadwindow.h +++ b/bibletime/frontend/displaywindow/ccommentaryreadwindow.h @@ -29,7 +29,7 @@ public: /** * Reimplementation. */ - static void insertKeyboardActions( KActionCollection* const a ); + static void insertKeyboardActions( TDEActionCollection* const a ); CCommentaryReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0); /** @@ -59,7 +59,7 @@ protected: virtual void initToolbars(); private: - KToggleAction* m_syncButton; + TDEToggleAction* m_syncButton; CSwordVerseKey* verseKey(); protected: virtual void setupPopupMenu(); diff --git a/bibletime/frontend/displaywindow/cdisplaywindow.cpp b/bibletime/frontend/displaywindow/cdisplaywindow.cpp index 6bbbf30..e1b114f 100644 --- a/bibletime/frontend/displaywindow/cdisplaywindow.cpp +++ b/bibletime/frontend/displaywindow/cdisplaywindow.cpp @@ -78,9 +78,9 @@ CWriteWindow* CDisplayWindow::createWriteInstance(ListCSwordModuleInfo modules, CDisplayWindow::CDisplayWindow(ListCSwordModuleInfo modules, CMDIArea *parent, const char *name ) #if TDE_VERSION >= 0x030200 -: KMainWindow(KMainWindow::NoDCOPObject, parent, name, WDestructiveClose), +: TDEMainWindow(TDEMainWindow::NoDCOPObject, parent, name, WDestructiveClose), #else -: KMainWindow(parent, name, WDestructiveClose), +: TDEMainWindow(parent, name, WDestructiveClose), #endif m_mdi(parent), m_filterOptions(), @@ -134,7 +134,7 @@ void CDisplayWindow::setCaption( const TQString& ) { m_mdi->emitWindowCaptionChanged(); } -void CDisplayWindow::insertKeyboardActions( KActionCollection* const a ) { +void CDisplayWindow::insertKeyboardActions( TDEActionCollection* const a ) { KStdAction::zoomIn(0, 0, a, "zoomIn"); //no slot KStdAction::zoomOut(0, 0, a, "zoomOut"); //no slot KStdAction::close(0, 0, a, "closeWindow"); //no slot @@ -142,14 +142,14 @@ void CDisplayWindow::insertKeyboardActions( KActionCollection* const a ) { KStdAction::copy(0, 0, a, "copySelectedText"); KStdAction::find(0, 0, a, "findText"); - new KToolBarPopupAction( + new TDEToolBarPopupAction( i18n("Back in history"), CResMgr::displaywindows::general::backInHistory::icon, CResMgr::displaywindows::general::backInHistory::accel, a, CResMgr::displaywindows::general::backInHistory::actionName ); - new KToolBarPopupAction( + new TDEToolBarPopupAction( i18n("Forward in history"), CResMgr::displaywindows::general::forwardInHistory::icon, CResMgr::displaywindows::general::forwardInHistory::accel, @@ -158,7 +158,7 @@ void CDisplayWindow::insertKeyboardActions( KActionCollection* const a ) { } void CDisplayWindow::initActions() { - new KAction(i18n("Search"), + new TDEAction(i18n("Search"), CResMgr::displaywindows::general::search::icon, CResMgr::displaywindows::general::search::accel, TQT_TQOBJECT(this), TQT_SLOT(slotSearchInModules()), @@ -193,13 +193,13 @@ void CDisplayWindow::initActions() { actionCollection(), "findText" ); - new KToolBarPopupAction( + new TDEToolBarPopupAction( i18n("Back in history"), CResMgr::displaywindows::general::backInHistory::icon, CResMgr::displaywindows::general::backInHistory::accel, TQT_TQOBJECT(keyChooser()), TQT_SLOT( backInHistory() ), actionCollection(), CResMgr::displaywindows::general::backInHistory::actionName ); - new KToolBarPopupAction( + new TDEToolBarPopupAction( i18n("Forward in history"), CResMgr::displaywindows::general::forwardInHistory::icon, CResMgr::displaywindows::general::forwardInHistory::accel, TQT_TQOBJECT(keyChooser()), TQT_SLOT( forwardInHistory() ), actionCollection(), CResMgr::displaywindows::general::forwardInHistory::actionName @@ -370,22 +370,22 @@ const bool CDisplayWindow::init() { } /** Returns the main toolbar. */ -KToolBar* const CDisplayWindow::mainToolBar() const { +TDEToolBar* const CDisplayWindow::mainToolBar() const { return m_mainToolBar; } /** Returns the main toolbar. */ -KToolBar* const CDisplayWindow::buttonsToolBar() const { +TDEToolBar* const CDisplayWindow::buttonsToolBar() const { return m_buttonsToolBar; } /** Sets the main toolbar. */ -void CDisplayWindow::setMainToolBar( KToolBar* bar ) { +void CDisplayWindow::setMainToolBar( TDEToolBar* bar ) { m_mainToolBar = bar; } /** Sets the main toolbar. */ -void CDisplayWindow::setButtonsToolBar( KToolBar* bar ) { +void CDisplayWindow::setButtonsToolBar( TDEToolBar* bar ) { m_buttonsToolBar = bar; } @@ -449,10 +449,10 @@ void CDisplayWindow::updatePopupMenu() {} ///** Returns the installed popup menu. */ -KPopupMenu* const CDisplayWindow::popup() { +TDEPopupMenu* const CDisplayWindow::popup() { // tqWarning("CReadWindow::popup()"); if (!m_popupMenu) { - m_popupMenu = new KPopupMenu(this); + m_popupMenu = new TDEPopupMenu(this); connect(m_popupMenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(updatePopupMenu())); if (displayWidget()) { displayWidget()->installPopup(m_popupMenu); diff --git a/bibletime/frontend/displaywindow/cdisplaywindow.h b/bibletime/frontend/displaywindow/cdisplaywindow.h index ae8c1c6..6152e09 100644 --- a/bibletime/frontend/displaywindow/cdisplaywindow.h +++ b/bibletime/frontend/displaywindow/cdisplaywindow.h @@ -41,15 +41,15 @@ class CDisplay; class CKeyChooser; class CModuleChooserBar; class CDisplaySettingsButton; -class KAccel; -class KToolBar; -class KPopupMenu; +class TDEAccel; +class TDEToolBar; +class TDEPopupMenu; /** The base class for all display windows of BibleTime. * @author The BibleTime team */ -class CDisplayWindow : public KMainWindow, public CPointers { +class CDisplayWindow : public TDEMainWindow, public CPointers { Q_OBJECT public: @@ -61,10 +61,10 @@ public: static CReadWindow* createReadInstance(ListCSwordModuleInfo modules, CMDIArea* parent, const char* name = 0); static CWriteWindow* createWriteInstance(ListCSwordModuleInfo modules, CMDIArea* parent, const WriteWindowType type = HTMLWindow, const char* name = 0); /** - * Insert the keyboard accelerators of this window into the given KAccel object. + * Insert the keyboard accelerators of this window into the given TDEAccel object. */ - // static void insertKeyboardActions( KAccel* const accel ); - static void insertKeyboardActions( KActionCollection* const a ); + // static void insertKeyboardActions( TDEAccel* const accel ); + static void insertKeyboardActions( TDEActionCollection* const a ); CMDIArea* const mdi() const; /** @@ -134,19 +134,19 @@ public: /** * Sets the main toolbar. */ - void setMainToolBar( KToolBar* bar ); + void setMainToolBar( TDEToolBar* bar ); /** * Sets the buttons toolbar. */ - void setButtonsToolBar( KToolBar* bar ); + void setButtonsToolBar( TDEToolBar* bar ); /** * Returns the main toolbar. */ - KToolBar* const mainToolBar() const; + TDEToolBar* const mainToolBar() const; /** * Returns the buttons toolbar. */ - KToolBar* const buttonsToolBar() const; + TDEToolBar* const buttonsToolBar() const; /** * Initialize the toolbars */ @@ -236,7 +236,7 @@ protected: /** * Returns the installed popup menu. */ - KPopupMenu* const popup(); + TDEPopupMenu* const popup(); virtual void closeEvent(TQCloseEvent* e); protected slots: @@ -267,9 +267,9 @@ private: CSwordKey* m_swordKey; bool m_isReady; CModuleChooserBar* m_moduleChooserBar; - KToolBar* m_mainToolBar; - KToolBar* m_buttonsToolBar; - KPopupMenu* m_popupMenu; + TDEToolBar* m_mainToolBar; + TDEToolBar* m_buttonsToolBar; + TDEPopupMenu* m_popupMenu; CDisplay* m_displayWidget; }; diff --git a/bibletime/frontend/displaywindow/chtmlwritewindow.cpp b/bibletime/frontend/displaywindow/chtmlwritewindow.cpp index bed8058..a3e8885 100644 --- a/bibletime/frontend/displaywindow/chtmlwritewindow.cpp +++ b/bibletime/frontend/displaywindow/chtmlwritewindow.cpp @@ -36,7 +36,7 @@ void CHTMLWriteWindow::initView() { setDisplayWidget( writeDisplay ); setCentralWidget( displayWidget()->view() ); - setMainToolBar( new KToolBar(this) ); + setMainToolBar( new TDEToolBar(this) ); mainToolBar()->setFullSize(true); addDockWindow(mainToolBar()); @@ -56,7 +56,7 @@ void CHTMLWriteWindow::initConnections() { void CHTMLWriteWindow::initToolbars() { //setup the toolbar - m_actions.syncWindow = new KToggleAction(i18n("Sync with active Bible"), + m_actions.syncWindow = new TDEToggleAction(i18n("Sync with active Bible"), CResMgr::displaywindows::commentaryWindow::syncWindow::icon, CResMgr::displaywindows::commentaryWindow::syncWindow::accel, actionCollection(), @@ -65,7 +65,7 @@ void CHTMLWriteWindow::initToolbars() { m_actions.syncWindow->setToolTip(CResMgr::displaywindows::commentaryWindow::syncWindow::tooltip); m_actions.syncWindow->plug(mainToolBar()); - m_actions.saveText = new KAction( i18n("Save text"), + m_actions.saveText = new TDEAction( i18n("Save text"), CResMgr::displaywindows::writeWindow::saveText::icon, CResMgr::displaywindows::writeWindow::saveText::accel, TQT_TQOBJECT(this), TQT_SLOT( saveCurrentText() ), @@ -75,7 +75,7 @@ void CHTMLWriteWindow::initToolbars() { m_actions.saveText->setToolTip( CResMgr::displaywindows::writeWindow::saveText::tooltip ); m_actions.saveText->plug(mainToolBar()); - m_actions.deleteEntry = new KAction(i18n("Delete current entry"), + m_actions.deleteEntry = new TDEAction(i18n("Delete current entry"), CResMgr::displaywindows::writeWindow::deleteEntry::icon, CResMgr::displaywindows::writeWindow::deleteEntry::accel, TQT_TQOBJECT(this), TQT_SLOT(deleteEntry()), @@ -85,7 +85,7 @@ void CHTMLWriteWindow::initToolbars() { m_actions.deleteEntry->setToolTip( CResMgr::displaywindows::writeWindow::deleteEntry::tooltip ); m_actions.deleteEntry->plug(mainToolBar()); - m_actions.restoreText = new KAction(i18n("Restore original text"), + m_actions.restoreText = new TDEAction(i18n("Restore original text"), CResMgr::displaywindows::writeWindow::restoreText::icon, CResMgr::displaywindows::writeWindow::restoreText::accel, TQT_TQOBJECT(this), TQT_SLOT(restoreText()), actionCollection(), @@ -95,7 +95,7 @@ void CHTMLWriteWindow::initToolbars() { m_actions.restoreText->plug(mainToolBar()); - KToolBar* bar = new KToolBar(this); + TDEToolBar* bar = new TDEToolBar(this); bar->setFullSize(true); addDockWindow(bar); diff --git a/bibletime/frontend/displaywindow/chtmlwritewindow.h b/bibletime/frontend/displaywindow/chtmlwritewindow.h index 15e817a..d8c5f70 100644 --- a/bibletime/frontend/displaywindow/chtmlwritewindow.h +++ b/bibletime/frontend/displaywindow/chtmlwritewindow.h @@ -18,7 +18,7 @@ //TQt includes #include <tqwidget.h> -class KAction; +class TDEAction; /** The WYSIWYG implementation of the editor. * @author The BibleTime team @@ -64,10 +64,10 @@ protected slots: private: struct { - KAction* saveText; - KAction* restoreText; - KAction* deleteEntry; - KToggleAction* syncWindow; + TDEAction* saveText; + TDEAction* restoreText; + TDEAction* deleteEntry; + TDEToggleAction* syncWindow; } m_actions; }; diff --git a/bibletime/frontend/displaywindow/clexiconreadwindow.cpp b/bibletime/frontend/displaywindow/clexiconreadwindow.cpp index 330436a..caab96b 100644 --- a/bibletime/frontend/displaywindow/clexiconreadwindow.cpp +++ b/bibletime/frontend/displaywindow/clexiconreadwindow.cpp @@ -42,36 +42,36 @@ CLexiconReadWindow::CLexiconReadWindow(ListCSwordModuleInfo moduleList, CMDIArea CLexiconReadWindow::~CLexiconReadWindow() {} -void CLexiconReadWindow::insertKeyboardActions( KActionCollection* const a ) { - new KAction( +void CLexiconReadWindow::insertKeyboardActions( TDEActionCollection* const a ) { + new TDEAction( i18n("Next entry"), CResMgr::displaywindows::lexiconWindow::nextEntry::accel, a, "nextEntry" ); - new KAction( + new TDEAction( i18n("Previous entry"), CResMgr::displaywindows::lexiconWindow::previousEntry::accel, a, "previousEntry" ); - // new KAction(i18n("Copy reference only"), KShortcut(0), a, "copyReferenceOnly"); - new KAction(i18n("Copy entry with text"), KShortcut(0), a, "copyEntryWithText"); - // new KAction(i18n("Copy selected text"), KShortcut(0), a, "copySelectedText"); - new KAction(i18n("Save entry as plain text"), KShortcut(0), a, "saveEntryAsPlainText"); - new KAction(i18n("Save entry as HTML"), KShortcut(0), a, "saveEntryAsHTML"); - // new KAction(i18n("Print reference only"), KShortcut(0), a, "printReferenceOnly"); - new KAction(i18n("Print entry with text"), KShortcut(0), a, "printEntryWithText"); + // new TDEAction(i18n("Copy reference only"), TDEShortcut(0), a, "copyReferenceOnly"); + new TDEAction(i18n("Copy entry with text"), TDEShortcut(0), a, "copyEntryWithText"); + // new TDEAction(i18n("Copy selected text"), TDEShortcut(0), a, "copySelectedText"); + new TDEAction(i18n("Save entry as plain text"), TDEShortcut(0), a, "saveEntryAsPlainText"); + new TDEAction(i18n("Save entry as HTML"), TDEShortcut(0), a, "saveEntryAsHTML"); + // new TDEAction(i18n("Print reference only"), TDEShortcut(0), a, "printReferenceOnly"); + new TDEAction(i18n("Print entry with text"), TDEShortcut(0), a, "printEntryWithText"); } void CLexiconReadWindow::initActions() { CReadWindow::initActions(); - m_actions.backInHistory = dynamic_cast<KToolBarPopupAction*>( + m_actions.backInHistory = dynamic_cast<TDEToolBarPopupAction*>( actionCollection()->action( CResMgr::displaywindows::general::backInHistory::actionName ) ); Q_ASSERT(m_actions.backInHistory); - m_actions.forwardInHistory = dynamic_cast<KToolBarPopupAction*>( + m_actions.forwardInHistory = dynamic_cast<TDEToolBarPopupAction*>( actionCollection()->action( CResMgr::displaywindows::general::forwardInHistory::actionName ) @@ -79,12 +79,12 @@ void CLexiconReadWindow::initActions() { Q_ASSERT(m_actions.forwardInHistory); - new KAction( + new TDEAction( i18n("Next entry"), CResMgr::displaywindows::lexiconWindow::nextEntry::accel, TQT_TQOBJECT(this), TQT_SLOT( nextEntry() ), actionCollection(), "nextEntry" ); - new KAction( + new TDEAction( i18n("Previous entry"), CResMgr::displaywindows::lexiconWindow::previousEntry::accel, TQT_TQOBJECT(this), TQT_SLOT( previousEntry() ), actionCollection(), "previousEntry" @@ -96,8 +96,8 @@ void CLexiconReadWindow::initActions() { m_actions.findText = actionCollection()->action("findText"); Q_ASSERT(m_actions.findText); - //m_actions.findStrongs = new KAction(i18n("Strong's Search"), KShortcut(0),this, TQT_SLOT(openSearchStrongsDialog()), actionCollection(), "findStrongs"); - m_actions.findStrongs = new KAction( + //m_actions.findStrongs = new TDEAction(i18n("Strong's Search"), TDEShortcut(0),this, TQT_SLOT(openSearchStrongsDialog()), actionCollection(), "findStrongs"); + m_actions.findStrongs = new TDEAction( i18n("Strong's Search"), CResMgr::displaywindows::general::findStrongs::icon, CResMgr::displaywindows::general::findStrongs::accel, @@ -105,20 +105,20 @@ void CLexiconReadWindow::initActions() { actionCollection(), CResMgr::displaywindows::general::findStrongs::actionName); - m_actions.copy.reference = new KAction(i18n("Reference only"), KShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorOnly()), actionCollection(), "copyReferenceOnly"); + m_actions.copy.reference = new TDEAction(i18n("Reference only"), TDEShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAnchorOnly()), actionCollection(), "copyReferenceOnly"); - m_actions.copy.entry = new KAction(i18n("Entry with text"), KShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAll()), actionCollection(), "copyEntryWithText"); + m_actions.copy.entry = new TDEAction(i18n("Entry with text"), TDEShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(copyAll()), actionCollection(), "copyEntryWithText"); m_actions.copy.selectedText = actionCollection()->action("copySelectedText"); Q_ASSERT(m_actions.copy.selectedText); - m_actions.save.entryAsPlain = new KAction(i18n("Entry as plain text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveAsPlain()),actionCollection(), "saveEntryAsPlain"); + m_actions.save.entryAsPlain = new TDEAction(i18n("Entry as plain text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveAsPlain()),actionCollection(), "saveEntryAsPlain"); - m_actions.save.entryAsHTML = new KAction(i18n("Entry as HTML"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveAsHTML()), actionCollection(), "saveEntryAsHTML"); + m_actions.save.entryAsHTML = new TDEAction(i18n("Entry as HTML"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveAsHTML()), actionCollection(), "saveEntryAsHTML"); - m_actions.print.reference = new KAction(i18n("Reference only"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAnchorWithText()), actionCollection(), "printReferenceOnly"); + m_actions.print.reference = new TDEAction(i18n("Reference only"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAnchorWithText()), actionCollection(), "printReferenceOnly"); - m_actions.print.entry = new KAction(i18n("Entry with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAll()), actionCollection(), "printEntryWithText"); + m_actions.print.entry = new TDEAction(i18n("Entry with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printAll()), actionCollection(), "printEntryWithText"); // init with the user defined settings CBTConfig::setupAccelSettings(CBTConfig::lexiconWindow, actionCollection()); @@ -157,7 +157,7 @@ void CLexiconReadWindow::initConnections() { void CLexiconReadWindow::initView() { setDisplayWidget( CDisplay::createReadInstance(this) ); - setMainToolBar( new KToolBar(this) ); + setMainToolBar( new TDEToolBar(this) ); addDockWindow(mainToolBar()); setKeyChooser( CKeyChooser::createInstance(modules(), key(), mainToolBar()) ); @@ -168,7 +168,7 @@ void CLexiconReadWindow::initView() { setModuleChooserBar( new CModuleChooserBar(modules(), modules().first()->type(), this) ); addDockWindow(moduleChooserBar()); - setButtonsToolBar( new KToolBar(this) ); + setButtonsToolBar( new TDEToolBar(this) ); addDockWindow(buttonsToolBar()); setIcon(CToolClass::getIconForModule(modules().first())); @@ -182,7 +182,7 @@ void CLexiconReadWindow::initToolbars() { m_actions.forwardInHistory->plug( mainToolBar(),1 ); //2nd button //buttons toolbar - KAction* action = actionCollection()->action( + TDEAction* action = actionCollection()->action( CResMgr::displaywindows::general::search::actionName); Q_ASSERT( action ); if (action) { @@ -199,31 +199,31 @@ void CLexiconReadWindow::initToolbars() { void CLexiconReadWindow::setupPopupMenu() { popup()->insertTitle(CToolClass::getIconForModule(modules().first()), i18n("Lexicon window")); - // m_actions.selectAll = new KAction(i18n("Select all"), KShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(selectAll()), actionCollection()); + // m_actions.selectAll = new TDEAction(i18n("Select all"), TDEShortcut(0), displayWidget()->connectionsProxy(), TQT_SLOT(selectAll()), actionCollection()); m_actions.findText->plug(popup()); m_actions.findStrongs->plug(popup()); m_actions.selectAll->plug(popup()); - (new KActionSeparator(TQT_TQOBJECT(this)))->plug( popup() ); + (new TDEActionSeparator(TQT_TQOBJECT(this)))->plug( popup() ); - m_actions.copyMenu = new KActionMenu(i18n("Copy..."), CResMgr::displaywindows::lexiconWindow::copyMenu::icon, actionCollection()); + m_actions.copyMenu = new TDEActionMenu(i18n("Copy..."), CResMgr::displaywindows::lexiconWindow::copyMenu::icon, actionCollection()); m_actions.copyMenu->setDelayed(false); m_actions.copyMenu->insert(m_actions.copy.reference); m_actions.copyMenu->insert(m_actions.copy.entry); - m_actions.copyMenu->insert(new KActionSeparator(TQT_TQOBJECT(this))); + m_actions.copyMenu->insert(new TDEActionSeparator(TQT_TQOBJECT(this))); m_actions.copyMenu->insert(m_actions.copy.selectedText); m_actions.copyMenu->plug(popup()); - m_actions.saveMenu = new KActionMenu(i18n("Save..."), CResMgr::displaywindows::lexiconWindow::saveMenu::icon, actionCollection()); + m_actions.saveMenu = new TDEActionMenu(i18n("Save..."), CResMgr::displaywindows::lexiconWindow::saveMenu::icon, actionCollection()); m_actions.saveMenu->setDelayed(false); m_actions.saveMenu->insert(m_actions.save.entryAsPlain); m_actions.saveMenu->insert(m_actions.save.entryAsHTML); m_actions.saveMenu->plug(popup()); - m_actions.printMenu = new KActionMenu(i18n("Print..."), CResMgr::displaywindows::lexiconWindow::printMenu::icon, actionCollection()); + m_actions.printMenu = new TDEActionMenu(i18n("Print..."), CResMgr::displaywindows::lexiconWindow::printMenu::icon, actionCollection()); m_actions.printMenu->setDelayed(false); m_actions.printMenu->insert(m_actions.print.reference); m_actions.printMenu->insert(m_actions.print.entry); diff --git a/bibletime/frontend/displaywindow/clexiconreadwindow.h b/bibletime/frontend/displaywindow/clexiconreadwindow.h index 01a82d3..f0e50f4 100644 --- a/bibletime/frontend/displaywindow/clexiconreadwindow.h +++ b/bibletime/frontend/displaywindow/clexiconreadwindow.h @@ -24,7 +24,7 @@ class CSwordKey; class CSwordLDKey; //KDE -class KToolBarPopupAction; +class TDEToolBarPopupAction; /** *@author The BibleTime team @@ -47,8 +47,8 @@ public: /** * Reimplementation. */ - // static void insertKeyboardActions( KAccel* a ); - static void insertKeyboardActions( KActionCollection* const a ); + // static void insertKeyboardActions( TDEAccel* a ); + static void insertKeyboardActions( TDEActionCollection* const a ); protected: virtual void initActions(); @@ -60,33 +60,33 @@ protected: struct ActionsStruct { - KToolBarPopupAction* backInHistory; - KToolBarPopupAction* forwardInHistory; + TDEToolBarPopupAction* backInHistory; + TDEToolBarPopupAction* forwardInHistory; - KAction* selectAll; - KAction* findText; - KAction* findStrongs; + TDEAction* selectAll; + TDEAction* findText; + TDEAction* findStrongs; - KActionMenu* copyMenu; + TDEActionMenu* copyMenu; struct { - KAction* reference; - KAction* entry; - KAction* selectedText; + TDEAction* reference; + TDEAction* entry; + TDEAction* selectedText; } copy; - KActionMenu* saveMenu; + TDEActionMenu* saveMenu; struct { - KAction* reference; - KAction* entryAsPlain; - KAction* entryAsHTML; + TDEAction* reference; + TDEAction* entryAsPlain; + TDEAction* entryAsHTML; } save; - KActionMenu* printMenu; + TDEActionMenu* printMenu; struct { - KAction* reference; - KAction* entry; + TDEAction* reference; + TDEAction* entry; } print; } diff --git a/bibletime/frontend/displaywindow/cmodulechooserbar.cpp b/bibletime/frontend/displaywindow/cmodulechooserbar.cpp index 7f0f1fc..e80348c 100644 --- a/bibletime/frontend/displaywindow/cmodulechooserbar.cpp +++ b/bibletime/frontend/displaywindow/cmodulechooserbar.cpp @@ -15,7 +15,7 @@ #include <tqtimer.h> CModuleChooserBar::CModuleChooserBar(ListCSwordModuleInfo useModules, CSwordModuleInfo::ModuleType type, TQWidget *parent, const char *name ) -: KToolBar(parent,name), +: TDEToolBar(parent,name), m_moduleType(type), m_idCounter(0), m_buttonLimit(-1) //-1 means no limit diff --git a/bibletime/frontend/displaywindow/cmodulechooserbar.h b/bibletime/frontend/displaywindow/cmodulechooserbar.h index 77dc520..33373d0 100644 --- a/bibletime/frontend/displaywindow/cmodulechooserbar.h +++ b/bibletime/frontend/displaywindow/cmodulechooserbar.h @@ -29,7 +29,7 @@ /** * @author The BibleTime team */ -class CModuleChooserBar : public KToolBar { +class CModuleChooserBar : public TDEToolBar { Q_OBJECT public: diff --git a/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp b/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp index 39e904b..9aac0af 100644 --- a/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp +++ b/bibletime/frontend/displaywindow/cmodulechooserbutton.cpp @@ -28,7 +28,7 @@ #include <kiconloader.h> CModuleChooserButton::CModuleChooserButton(CSwordModuleInfo* useModule,CSwordModuleInfo::ModuleType type, const int id, CModuleChooserBar *parent, const char *name ) -: KToolBarButton(iconName(), id, parent, name), +: TDEToolBarButton(iconName(), id, parent, name), m_id(id), m_popup(0), m_moduleChooserBar(parent) { m_moduleType = type; m_module = useModule; @@ -81,7 +81,7 @@ const TQString CModuleChooserButton::iconName() { } CSwordModuleInfo* CModuleChooserButton::module() { - for ( KPopupMenu* popup = m_submenus.first(); popup; popup = m_submenus.next() ) { + for ( TDEPopupMenu* popup = m_submenus.first(); popup; popup = m_submenus.next() ) { for (unsigned int i = 0; i < popup->count(); i++) { if ( m_popup->isItemChecked(popup->idAt(i)) ) { TQString mod = popup->text(popup->idAt(i)).remove('&'); @@ -100,7 +100,7 @@ int CModuleChooserButton::getId() const { /** Is called after a module was selected in the popup */ void CModuleChooserButton::moduleChosen( int ID ) { - for ( KPopupMenu* popup = m_submenus.first(); popup; popup = m_submenus.next() ) { + for ( TDEPopupMenu* popup = m_submenus.first(); popup; popup = m_submenus.next() ) { for (unsigned int i = 0; i < popup->count(); i++) { popup->setItemChecked(popup->idAt(i),false); } @@ -145,7 +145,7 @@ void CModuleChooserButton::populateMenu() { delete m_popup; //create a new, empty popup - m_popup = new KPopupMenu(this); + m_popup = new TDEPopupMenu(this); if (m_module) { m_titleId = m_popup->insertTitle( i18n("Select a work") ); @@ -166,7 +166,7 @@ void CModuleChooserButton::populateMenu() { setPopup(m_popup, true); TQStringList languages; - TQDict<KPopupMenu> langdict; + TQDict<TDEPopupMenu> langdict; //the modules list contains only the modules we can use, i.e. same type and same features ListCSwordModuleInfo modules; @@ -200,7 +200,7 @@ void CModuleChooserButton::populateMenu() { if (languages.find( lang ) == languages.end() ) { //this lang was not yet added languages += lang; - KPopupMenu* menu = new KPopupMenu; + TDEPopupMenu* menu = new TDEPopupMenu; langdict.insert(lang, menu ); m_submenus.append(menu); connect(menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(moduleChosen(int))); @@ -254,7 +254,7 @@ void CModuleChooserButton::updateMenuItems() { CSwordModuleInfo* module = 0; ListCSwordModuleInfo chosenModules = m_moduleChooserBar->getModuleList(); - for ( KPopupMenu* popup = m_submenus.first(); popup; popup = m_submenus.next() ) { + for ( TDEPopupMenu* popup = m_submenus.first(); popup; popup = m_submenus.next() ) { for (unsigned int i = 0; i < popup->count(); i++) { moduleName = popup->text(popup->idAt(i)).remove('&'); diff --git a/bibletime/frontend/displaywindow/cmodulechooserbutton.h b/bibletime/frontend/displaywindow/cmodulechooserbutton.h index 9f1111a..c38eb5e 100644 --- a/bibletime/frontend/displaywindow/cmodulechooserbutton.h +++ b/bibletime/frontend/displaywindow/cmodulechooserbutton.h @@ -24,14 +24,14 @@ #include <ktoolbarbutton.h> #include <kpopupmenu.h> -class KPopupMenu; +class TDEPopupMenu; class CModuleChooserBar; /** The CModuleChooserButton displays a list of submenus sorted by language which contain the possible modules * which can be displayed together with the first one. * @author The BibleTime team */ -class CModuleChooserButton : public KToolBarButton, public CPointers { +class CModuleChooserButton : public TDEToolBarButton, public CPointers { Q_OBJECT public: @@ -61,8 +61,8 @@ private: CSwordModuleInfo::ModuleType m_moduleType; CSwordModuleInfo* m_module; - KPopupMenu* m_popup; - TQPtrList<KPopupMenu> m_submenus; + TDEPopupMenu* m_popup; + TQPtrList<TDEPopupMenu> m_submenus; CModuleChooserBar* m_moduleChooserBar; diff --git a/bibletime/frontend/displaywindow/cplainwritewindow.cpp b/bibletime/frontend/displaywindow/cplainwritewindow.cpp index 06cb508..4c94885 100644 --- a/bibletime/frontend/displaywindow/cplainwritewindow.cpp +++ b/bibletime/frontend/displaywindow/cplainwritewindow.cpp @@ -41,7 +41,7 @@ void CPlainWriteWindow::initView() { setDisplayWidget( CDisplay::createWriteInstance(this) ); setCentralWidget( displayWidget()->view() ); - setMainToolBar( new KToolBar(this) ); + setMainToolBar( new TDEToolBar(this) ); mainToolBar()->setFullSize(true); addDockWindow(mainToolBar()); @@ -52,7 +52,7 @@ void CPlainWriteWindow::initView() { } void CPlainWriteWindow::initToolbars() { - m_actions.syncWindow = new KToggleAction(i18n("Sync with active Bible"), + m_actions.syncWindow = new TDEToggleAction(i18n("Sync with active Bible"), CResMgr::displaywindows::commentaryWindow::syncWindow::icon, CResMgr::displaywindows::commentaryWindow::syncWindow::accel, actionCollection(), @@ -62,7 +62,7 @@ void CPlainWriteWindow::initToolbars() { m_actions.syncWindow->plug(mainToolBar()); - m_actions.saveText = new KAction(i18n("Save text"), + m_actions.saveText = new TDEAction(i18n("Save text"), CResMgr::displaywindows::writeWindow::saveText::icon, CResMgr::displaywindows::writeWindow::saveText::accel, TQT_TQOBJECT(this), TQT_SLOT(saveCurrentText()), @@ -73,7 +73,7 @@ void CPlainWriteWindow::initToolbars() { m_actions.saveText->plug(mainToolBar()); - m_actions.deleteEntry = new KAction(i18n("Delete current entry"), + m_actions.deleteEntry = new TDEAction(i18n("Delete current entry"), CResMgr::displaywindows::writeWindow::deleteEntry::icon, CResMgr::displaywindows::writeWindow::deleteEntry::accel, TQT_TQOBJECT(this), TQT_SLOT(deleteEntry()), @@ -84,7 +84,7 @@ void CPlainWriteWindow::initToolbars() { m_actions.deleteEntry->plug(mainToolBar()); - m_actions.restoreText = new KAction(i18n("Restore original text"), + m_actions.restoreText = new TDEAction(i18n("Restore original text"), CResMgr::displaywindows::writeWindow::restoreText::icon, CResMgr::displaywindows::writeWindow::restoreText::accel, TQT_TQOBJECT(this), TQT_SLOT(restoreText()), @@ -172,5 +172,5 @@ const bool CPlainWriteWindow::syncAllowed() const { void CPlainWriteWindow::initActions() { } -void CPlainWriteWindow::insertKeyboardActions( KActionCollection* const ) { +void CPlainWriteWindow::insertKeyboardActions( TDEActionCollection* const ) { } diff --git a/bibletime/frontend/displaywindow/cplainwritewindow.h b/bibletime/frontend/displaywindow/cplainwritewindow.h index 541287f..f2ca897 100644 --- a/bibletime/frontend/displaywindow/cplainwritewindow.h +++ b/bibletime/frontend/displaywindow/cplainwritewindow.h @@ -19,8 +19,8 @@ #include <tqwidget.h> -class KAction; -class KToggleAction; +class TDEAction; +class TDEToggleAction; /** The write window class which offers a plain editor for source code editing. * @author The BibleTime team @@ -63,16 +63,16 @@ protected: // Protected methods */ virtual void initActions(); /** - * Insert the keyboard accelerators of this window into the given KAccel object. + * Insert the keyboard accelerators of this window into the given TDEAccel object. */ - static void insertKeyboardActions( KActionCollection* const a ); + static void insertKeyboardActions( TDEActionCollection* const a ); private: struct { - KAction* saveText; - KAction* deleteEntry; - KAction* restoreText; - KToggleAction* syncWindow; + TDEAction* saveText; + TDEAction* deleteEntry; + TDEAction* restoreText; + TDEToggleAction* syncWindow; } m_actions; diff --git a/bibletime/frontend/displaywindow/creadwindow.cpp b/bibletime/frontend/displaywindow/creadwindow.cpp index 0b3ab27..87183f0 100644 --- a/bibletime/frontend/displaywindow/creadwindow.cpp +++ b/bibletime/frontend/displaywindow/creadwindow.cpp @@ -165,7 +165,7 @@ void CReadWindow::applyProfileSettings(CProfileWindow * const settings) { setUpdatesEnabled(true); } -void CReadWindow::insertKeyboardActions( KActionCollection* const ) {} +void CReadWindow::insertKeyboardActions( TDEActionCollection* const ) {} /** No descriptions */ void CReadWindow::copyDisplayedText() { diff --git a/bibletime/frontend/displaywindow/creadwindow.h b/bibletime/frontend/displaywindow/creadwindow.h index e49bd8f..7a9f421 100644 --- a/bibletime/frontend/displaywindow/creadwindow.h +++ b/bibletime/frontend/displaywindow/creadwindow.h @@ -22,7 +22,7 @@ #include <tqwidget.h> #include <tqpopupmenu.h> -class KPopupMenu; +class TDEPopupMenu; /** The base class for all read-only display windows. * @author The BibleTime team @@ -32,8 +32,8 @@ class CReadWindow : public CDisplayWindow { Q_OBJECT public: - // static void insertKeyboardActions( KAccel* const a ); - static void insertKeyboardActions( KActionCollection* const a ); + // static void insertKeyboardActions( TDEAccel* const a ); + static void insertKeyboardActions( TDEActionCollection* const a ); CReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0); virtual ~CReadWindow(); diff --git a/bibletime/frontend/displaywindow/cwritewindow.cpp b/bibletime/frontend/displaywindow/cwritewindow.cpp index ef9cf71..aff121a 100644 --- a/bibletime/frontend/displaywindow/cwritewindow.cpp +++ b/bibletime/frontend/displaywindow/cwritewindow.cpp @@ -28,11 +28,11 @@ CWriteWindow::CWriteWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const CWriteWindow::~CWriteWindow() {} -// void CWriteWindow::insertKeyboardActions( KAccel* const /*a*/ ) { +// void CWriteWindow::insertKeyboardActions( TDEAccel* const /*a*/ ) { // // }; -void CWriteWindow::insertKeyboardActions( KActionCollection* const ) { - /* new KAction( +void CWriteWindow::insertKeyboardActions( TDEActionCollection* const ) { + /* new TDEAction( i18n("Next book"), CResMgr::displaywindows::bibleWindow::nextBook::accel, a, "nextBook" );*/ diff --git a/bibletime/frontend/displaywindow/cwritewindow.h b/bibletime/frontend/displaywindow/cwritewindow.h index 122fb2b..8bb7357 100644 --- a/bibletime/frontend/displaywindow/cwritewindow.h +++ b/bibletime/frontend/displaywindow/cwritewindow.h @@ -27,7 +27,7 @@ class CWriteWindow : public CDisplayWindow { Q_OBJECT public: - static void insertKeyboardActions( KActionCollection* const a ); + static void insertKeyboardActions( TDEActionCollection* const a ); CWriteWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0); virtual ~CWriteWindow(); diff --git a/bibletime/frontend/keychooser/cbooktreechooser.cpp b/bibletime/frontend/keychooser/cbooktreechooser.cpp index 871e9d5..8168eb6 100644 --- a/bibletime/frontend/keychooser/cbooktreechooser.cpp +++ b/bibletime/frontend/keychooser/cbooktreechooser.cpp @@ -26,7 +26,7 @@ //////////// CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* parent, TQListViewItem* after, CSwordTreeKey* key, const TQString keyName) -: KListViewItem(parent, after), +: TDEListViewItem(parent, after), m_key(key), m_keyName(keyName) { //tqDebug("first CBookTreeChooser::TreeItem ctor"); @@ -40,7 +40,7 @@ m_keyName(keyName) { }; CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* parent,CSwordTreeKey* key, const TQString keyName) -: KListViewItem(parent), +: TDEListViewItem(parent), m_key(key), m_keyName(keyName) { //tqDebug("second CBookTreeChooser::TreeItem ctor"); @@ -54,7 +54,7 @@ m_keyName(keyName) { }; CBookTreeChooser::TreeItem::TreeItem(TQListView* view, TQListViewItem* after,CSwordTreeKey* key, const TQString keyName) -: KListViewItem(view,after), +: TDEListViewItem(view,after), m_key(key), m_keyName(keyName) { //tqDebug("third CBookTreeChooser::TreeItem ctor"); @@ -80,7 +80,7 @@ void CBookTreeChooser::TreeItem::setup() { m_key->setOffset( offset ); - KListViewItem::setup(); + TDEListViewItem::setup(); } void CBookTreeChooser::TreeItem::createChilds() { @@ -119,7 +119,7 @@ void CBookTreeChooser::TreeItem::setOpen(bool o) { listView()->viewport()->unsetCursor(); } - KListViewItem::setOpen(o); + TDEListViewItem::setOpen(o); } ////////////////////////////////// @@ -137,7 +137,7 @@ m_key( dynamic_cast<CSwordTreeKey*>(key) ) { //now setup the keychooser widgets TQHBoxLayout* layout = new TQHBoxLayout(this); - m_treeView = new KListView(this); + m_treeView = new TDEListView(this); layout->addWidget(m_treeView); m_treeView->addColumn("Tree"); m_treeView->header()->hide(); diff --git a/bibletime/frontend/keychooser/cbooktreechooser.h b/bibletime/frontend/keychooser/cbooktreechooser.h index 10809f3..84a097c 100644 --- a/bibletime/frontend/keychooser/cbooktreechooser.h +++ b/bibletime/frontend/keychooser/cbooktreechooser.h @@ -86,7 +86,7 @@ protected slots: // Protected slots void itemActivated( TQListViewItem* item ); private: -class TreeItem : public KListViewItem { +class TreeItem : public TDEListViewItem { public: TreeItem(TQListViewItem* parent, TQListViewItem* after, CSwordTreeKey* key, const TQString keyName); TreeItem(TQListViewItem* parent, CSwordTreeKey* key, const TQString keyName); @@ -107,7 +107,7 @@ private: TQPtrList<CSwordBookModuleInfo> m_modules; CSwordTreeKey* m_key; - KListView* m_treeView; + TDEListView* m_treeView; }; #endif diff --git a/bibletime/frontend/mainindex/cindexitem.cpp b/bibletime/frontend/mainindex/cindexitem.cpp index 6194b07..4ab41c0 100644 --- a/bibletime/frontend/mainindex/cindexitem.cpp +++ b/bibletime/frontend/mainindex/cindexitem.cpp @@ -53,12 +53,12 @@ using namespace Printing; using std::string; CItemBase::CItemBase(CMainIndex* mainIndex, const Type type) -: KListViewItem(mainIndex), +: TDEListViewItem(mainIndex), m_type(type), m_sortingEnabled(true) {} CItemBase::CItemBase(CItemBase* parentItem, const Type type) -: KListViewItem(parentItem), +: TDEListViewItem(parentItem), m_type(type), m_sortingEnabled(true) {} @@ -122,7 +122,7 @@ void CItemBase::sortChildItems( int col, bool asc ) { return; } else { - KListViewItem::sortChildItems( col, asc ); + TDEListViewItem::sortChildItems( col, asc ); } } @@ -132,7 +132,7 @@ void CItemBase::sort() { return; } else { - KListViewItem::sort(); + TDEListViewItem::sort(); } } @@ -473,7 +473,7 @@ void CFolderBase::init() { /** No descriptions */ void CFolderBase::setOpen( bool open ) { - KListViewItem::setOpen(open); + TDEListViewItem::setOpen(open); update(); } diff --git a/bibletime/frontend/mainindex/cindexitem.h b/bibletime/frontend/mainindex/cindexitem.h index 1b70ecf..0447d31 100644 --- a/bibletime/frontend/mainindex/cindexitem.h +++ b/bibletime/frontend/mainindex/cindexitem.h @@ -28,7 +28,7 @@ class CFolderBase; class CTreeFolder; class CMainIndex; -class CItemBase : public KListViewItem/*, public CPointers */ { +class CItemBase : public TDEListViewItem/*, public CPointers */ { public: enum Type { Unknown = 0, diff --git a/bibletime/frontend/mainindex/cmainindex.cpp b/bibletime/frontend/mainindex/cmainindex.cpp index 369302e..8bf0f30 100644 --- a/bibletime/frontend/mainindex/cmainindex.cpp +++ b/bibletime/frontend/mainindex/cmainindex.cpp @@ -77,7 +77,7 @@ void CMainIndex::ToolTip::maybeTip(const TQPoint& p) { } } -CMainIndex::CMainIndex(TQWidget *parent) : KListView(parent), +CMainIndex::CMainIndex(TQWidget *parent) : TDEListView(parent), m_searchDialog(0), m_toolTip(0), m_itemsMovable(false), m_autoOpenFolder(0), m_autoOpenTimer(this) { initView(); initConnections(); @@ -143,40 +143,40 @@ void CMainIndex::initView() { setSelectionModeExt(Extended); //setup the popup menu - m_popup = new KPopupMenu(viewport()); + m_popup = new TDEPopupMenu(viewport()); m_popup->insertTitle(i18n("Bookshelf")); - m_actions.newFolder = new KAction(i18n("Create a new folder"), CResMgr::mainIndex::newFolder::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(createNewFolder()), TQT_TQOBJECT(this)); - m_actions.changeFolder = new KAction(i18n("Change this folder"),CResMgr::mainIndex::changeFolder::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(changeFolder()), TQT_TQOBJECT(this)); + m_actions.newFolder = new TDEAction(i18n("Create a new folder"), CResMgr::mainIndex::newFolder::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(createNewFolder()), TQT_TQOBJECT(this)); + m_actions.changeFolder = new TDEAction(i18n("Change this folder"),CResMgr::mainIndex::changeFolder::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(changeFolder()), TQT_TQOBJECT(this)); - m_actions.changeBookmark = new KAction(i18n("Change bookmark description"),CResMgr::mainIndex::changeBookmark::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(changeBookmark()), TQT_TQOBJECT(this)); - m_actions.importBookmarks = new KAction(i18n("Import bookmarks"),CResMgr::mainIndex::importBookmarks::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(importBookmarks()), TQT_TQOBJECT(this)); - m_actions.exportBookmarks = new KAction(i18n("Export bookmarks"),CResMgr::mainIndex::exportBookmarks::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(exportBookmarks()), TQT_TQOBJECT(this)); - m_actions.printBookmarks = new KAction(i18n("Print bookmarks"),CResMgr::mainIndex::printBookmarks::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(printBookmarks()), TQT_TQOBJECT(this)); + m_actions.changeBookmark = new TDEAction(i18n("Change bookmark description"),CResMgr::mainIndex::changeBookmark::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(changeBookmark()), TQT_TQOBJECT(this)); + m_actions.importBookmarks = new TDEAction(i18n("Import bookmarks"),CResMgr::mainIndex::importBookmarks::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(importBookmarks()), TQT_TQOBJECT(this)); + m_actions.exportBookmarks = new TDEAction(i18n("Export bookmarks"),CResMgr::mainIndex::exportBookmarks::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(exportBookmarks()), TQT_TQOBJECT(this)); + m_actions.printBookmarks = new TDEAction(i18n("Print bookmarks"),CResMgr::mainIndex::printBookmarks::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(printBookmarks()), TQT_TQOBJECT(this)); - m_actions.deleteEntries = new KAction(i18n("Remove selected item(s)"),CResMgr::mainIndex::deleteItems::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(deleteEntries()), TQT_TQOBJECT(this)); + m_actions.deleteEntries = new TDEAction(i18n("Remove selected item(s)"),CResMgr::mainIndex::deleteItems::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(deleteEntries()), TQT_TQOBJECT(this)); - m_actions.editModuleMenu = new KActionMenu(i18n("Edit this work"),CResMgr::mainIndex::editModuleMenu::icon, TQT_TQOBJECT(this)); + m_actions.editModuleMenu = new TDEActionMenu(i18n("Edit this work"),CResMgr::mainIndex::editModuleMenu::icon, TQT_TQOBJECT(this)); m_actions.editModuleMenu->setDelayed(false); - m_actions.editModulePlain = new KAction(i18n("Plain text"),CResMgr::mainIndex::editModulePlain::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(editModulePlain()), TQT_TQOBJECT(this)); - m_actions.editModuleHTML = new KAction(i18n("HTML"),CResMgr::mainIndex::editModuleHTML::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(editModuleHTML()), TQT_TQOBJECT(this)); + m_actions.editModulePlain = new TDEAction(i18n("Plain text"),CResMgr::mainIndex::editModulePlain::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(editModulePlain()), TQT_TQOBJECT(this)); + m_actions.editModuleHTML = new TDEAction(i18n("HTML"),CResMgr::mainIndex::editModuleHTML::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(editModuleHTML()), TQT_TQOBJECT(this)); - m_actions.searchInModules = new KAction(i18n("Search in selected work(s)"),CResMgr::mainIndex::search::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(searchInModules()), TQT_TQOBJECT(this)); - m_actions.unlockModule = new KAction(i18n("Unlock this work"),CResMgr::mainIndex::unlockModule::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(unlockModule()), TQT_TQOBJECT(this)); - m_actions.aboutModule = new KAction(i18n("About this work"),CResMgr::mainIndex::aboutModule::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(aboutModule()), TQT_TQOBJECT(this)); + m_actions.searchInModules = new TDEAction(i18n("Search in selected work(s)"),CResMgr::mainIndex::search::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(searchInModules()), TQT_TQOBJECT(this)); + m_actions.unlockModule = new TDEAction(i18n("Unlock this work"),CResMgr::mainIndex::unlockModule::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(unlockModule()), TQT_TQOBJECT(this)); + m_actions.aboutModule = new TDEAction(i18n("About this work"),CResMgr::mainIndex::aboutModule::icon, 0, TQT_TQOBJECT(this), TQT_SLOT(aboutModule()), TQT_TQOBJECT(this)); //fill the popup menu itself m_actions.newFolder->plug(m_popup); m_actions.changeFolder->plug(m_popup); - (new KActionSeparator(TQT_TQOBJECT(this)))->plug(m_popup); + (new TDEActionSeparator(TQT_TQOBJECT(this)))->plug(m_popup); m_actions.changeBookmark->plug(m_popup); m_actions.importBookmarks->plug(m_popup); m_actions.exportBookmarks->plug(m_popup); m_actions.printBookmarks->plug(m_popup); - (new KActionSeparator(TQT_TQOBJECT(this)))->plug(m_popup); + (new TDEActionSeparator(TQT_TQOBJECT(this)))->plug(m_popup); m_actions.deleteEntries->plug(m_popup); - (new KActionSeparator(TQT_TQOBJECT(this)))->plug(m_popup); + (new TDEActionSeparator(TQT_TQOBJECT(this)))->plug(m_popup); m_actions.editModuleMenu->plug(m_popup); //sub item of edit module menu m_actions.editModuleMenu->insert(m_actions.editModulePlain); @@ -194,8 +194,8 @@ void CMainIndex::initConnections() { TQT_SLOT(slotExecuted(TQListViewItem*))); connect(this, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)), TQT_SLOT(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*))); - connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), - TQT_SLOT(contextMenu(KListView*, TQListViewItem*, const TQPoint&))); + connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + TQT_SLOT(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&))); connect(&m_autoOpenTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(autoOpenTimeout())); } @@ -252,7 +252,7 @@ TQDragObject* CMainIndex::dragObject() { return CDragDropMgr::dragObject( dndItems, viewport() ); } -/** Reimplementation from KListView. Returns true if the drag is acceptable for the listview. */ +/** Reimplementation from TDEListView. Returns true if the drag is acceptable for the listview. */ bool CMainIndex::acceptDrag( TQDropEvent* event ) const { const TQPoint pos = contentsToViewport(event->pos()); @@ -365,8 +365,8 @@ void CMainIndex::emitModulesChosen( ListCSwordModuleInfo modules, TQString key ) emit createReadDisplayWindow(modules, key); } -/** Returns the correct KAction object for the given type of action. */ -KAction* const CMainIndex::action( const CItemBase::MenuAction type ) const { +/** Returns the correct TDEAction object for the given type of action. */ +TDEAction* const CMainIndex::action( const CItemBase::MenuAction type ) const { switch (type) { case CItemBase::NewFolder: return m_actions.newFolder; @@ -399,7 +399,7 @@ KAction* const CMainIndex::action( const CItemBase::MenuAction type ) const { } /** Shows the context menu at the given position. */ -void CMainIndex::contextMenu(KListView* /*list*/, TQListViewItem* i, const TQPoint& p) { +void CMainIndex::contextMenu(TDEListView* /*list*/, TQListViewItem* i, const TQPoint& p) { //setup menu entries depending on current selection TQPtrList<TQListViewItem> items = selectedItems(); @@ -413,7 +413,7 @@ void CMainIndex::contextMenu(KListView* /*list*/, TQListViewItem* i, const TQPoi CItemBase::MenuAction actionType; for (int index = CItemBase::ActionBegin; index <= CItemBase::ActionEnd; ++index) { actionType = static_cast<CItemBase::MenuAction>(index); - if (KAction* a = action(actionType)) + if (TDEAction* a = action(actionType)) a->setEnabled( item->enableAction(actionType) ); } } @@ -422,7 +422,7 @@ void CMainIndex::contextMenu(KListView* /*list*/, TQListViewItem* i, const TQPoi CItemBase::MenuAction actionType; for (int index = CItemBase::ActionBegin; index <= CItemBase::ActionEnd; ++index) { actionType = static_cast<CItemBase::MenuAction>(index); - if (KAction* a = action(actionType)) + if (TDEAction* a = action(actionType)) a->setEnabled(false); } @@ -435,7 +435,7 @@ void CMainIndex::contextMenu(KListView* /*list*/, TQListViewItem* i, const TQPoi enableAction = enableAction && i->enableAction(actionType); } if (enableAction) { - KAction* a = action(actionType) ; + TDEAction* a = action(actionType) ; if (i && a) a->setEnabled(enableAction); } @@ -603,7 +603,7 @@ void CMainIndex::startDrag() { } } - KListView::startDrag(); + TDEListView::startDrag(); } /** Reimplementation to support the items dragEnter and dragLeave functions. */ @@ -627,7 +627,7 @@ void CMainIndex::contentsDragMoveEvent( TQDragMoveEvent* event ) { m_autoOpenFolder = 0; } - KListView::contentsDragMoveEvent(event); + TDEListView::contentsDragMoveEvent(event); } TQRect CMainIndex::drawItemHighlighter(TQPainter* painter, TQListViewItem* item) { @@ -637,7 +637,7 @@ TQRect CMainIndex::drawItemHighlighter(TQPainter* painter, TQListViewItem* item) return TQRect(); } - return KListView::drawItemHighlighter(painter, item); + return TDEListView::drawItemHighlighter(painter, item); } @@ -651,7 +651,7 @@ void CMainIndex::autoOpenTimeout() { /** No descriptions */ void CMainIndex::contentsDragLeaveEvent( TQDragLeaveEvent* e ) { m_autoOpenTimer.stop(); - KListView::contentsDragLeaveEvent(e); + TDEListView::contentsDragLeaveEvent(e); } /** Returns true if more than one netry is supported by this action type. Returns false for actions which support only one entry, e.g. about module etc. */ @@ -863,7 +863,7 @@ void CMainIndex::saveSettings() { void CMainIndex::polish() { - KListView::polish(); + TDEListView::polish(); initTree(); readSettings(); } diff --git a/bibletime/frontend/mainindex/cmainindex.h b/bibletime/frontend/mainindex/cmainindex.h index 9f84dd9..2b396b3 100644 --- a/bibletime/frontend/mainindex/cmainindex.h +++ b/bibletime/frontend/mainindex/cmainindex.h @@ -34,7 +34,7 @@ class CSearchDialog; /** The class which manages all bookmarks and modules. The modules are put into own, fixed subfolders sorted by language. * @author The BibleTime team */ -class CMainIndex : public KListView { +class CMainIndex : public TDEListView { Q_OBJECT @@ -89,13 +89,13 @@ protected: // Protected methods */ virtual TQDragObject* dragObject(); /** - * Reimplementation from KListView. Returns true if the drag is acceptable for the listview. + * Reimplementation from TDEListView. Returns true if the drag is acceptable for the listview. */ virtual bool acceptDrag( TQDropEvent* event ) const; /** - * Returns the correct KAction object for the given type of action. + * Returns the correct TDEAction object for the given type of action. */ - KAction* const action( const CItemBase::MenuAction type ) const; + TDEAction* const action( const CItemBase::MenuAction type ) const; /** * Reimplementation. Takes care of movable items. */ @@ -128,7 +128,7 @@ protected slots: // Protected slots /** * Shows the context menu at the given position. */ - void contextMenu(KListView*, TQListViewItem*, const TQPoint&); + void contextMenu(TDEListView*, TQListViewItem*, const TQPoint&); /** * Adds a new subfolder to the current item. */ @@ -197,26 +197,26 @@ private: const bool isMultiAction( const CItemBase::MenuAction type ) const; struct Actions { - KAction* newFolder; - KAction* changeFolder; + TDEAction* newFolder; + TDEAction* changeFolder; - KAction* changeBookmark; - KAction* importBookmarks; - KAction* exportBookmarks; - KAction* printBookmarks; + TDEAction* changeBookmark; + TDEAction* importBookmarks; + TDEAction* exportBookmarks; + TDEAction* printBookmarks; - KAction* deleteEntries; + TDEAction* deleteEntries; - KActionMenu* editModuleMenu; - KAction* editModulePlain; - KAction* editModuleHTML; + TDEActionMenu* editModuleMenu; + TDEAction* editModulePlain; + TDEAction* editModuleHTML; - KAction* searchInModules; - KAction* unlockModule; - KAction* aboutModule; + TDEAction* searchInModules; + TDEAction* unlockModule; + TDEAction* aboutModule; } m_actions; - KPopupMenu* m_popup; + TDEPopupMenu* m_popup; signals: /** diff --git a/bibletime/frontend/manageindicesform.cpp b/bibletime/frontend/manageindicesform.cpp index b93bb80..db30c37 100644 --- a/bibletime/frontend/manageindicesform.cpp +++ b/bibletime/frontend/manageindicesform.cpp @@ -40,7 +40,7 @@ ManageIndicesForm::ManageIndicesForm( TQWidget* parent, const char* name, WFlags m_autoDeleteOrphanedIndicesBox = new TQCheckBox( this, "m_autoDeleteOrphanedIndicesBox" ); ManageIndicesFormLayout->addWidget( m_autoDeleteOrphanedIndicesBox ); - m_moduleList = new KListView( this, "m_moduleList" ); + m_moduleList = new TDEListView( this, "m_moduleList" ); ManageIndicesFormLayout->addWidget( m_moduleList ); layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); diff --git a/bibletime/frontend/manageindicesform.ui b/bibletime/frontend/manageindicesform.ui index 06a6409..0ec7fe8 100644 --- a/bibletime/frontend/manageindicesform.ui +++ b/bibletime/frontend/manageindicesform.ui @@ -55,7 +55,7 @@ <string>Alt+Y</string> </property> </widget> - <widget class="KListView"> + <widget class="TDEListView"> <property name="name"> <cstring>m_moduleList</cstring> </property> diff --git a/bibletime/frontend/searchdialog/cmodulechooser.cpp b/bibletime/frontend/searchdialog/cmodulechooser.cpp index bb91211..b3bf576 100644 --- a/bibletime/frontend/searchdialog/cmodulechooser.cpp +++ b/bibletime/frontend/searchdialog/cmodulechooser.cpp @@ -66,7 +66,7 @@ CSwordModuleInfo* const CModuleChooser::ModuleCheckBoxItem::module() const { /****************************/ /****************************/ -CModuleChooser::CModuleChooser(TQWidget* parent) : KListView(parent) { +CModuleChooser::CModuleChooser(TQWidget* parent) : TDEListView(parent) { initView(); initTree(); } @@ -74,7 +74,7 @@ CModuleChooser::CModuleChooser(TQWidget* parent) : KListView(parent) { CModuleChooser::~CModuleChooser() {} void CModuleChooser::show() { - KListView::show(); + TDEListView::show(); //open module items TQListViewItemIterator it( this ); diff --git a/bibletime/frontend/searchdialog/cmodulechooser.h b/bibletime/frontend/searchdialog/cmodulechooser.h index 8cb47bc..efe54b8 100644 --- a/bibletime/frontend/searchdialog/cmodulechooser.h +++ b/bibletime/frontend/searchdialog/cmodulechooser.h @@ -38,7 +38,7 @@ namespace Search { namespace Options { -class CModuleChooser : public KListView, public CPointers { +class CModuleChooser : public TDEListView, public CPointers { Q_OBJECT public: diff --git a/bibletime/frontend/searchdialog/cmoduleresultview.cpp b/bibletime/frontend/searchdialog/cmoduleresultview.cpp index a562291..e1bc09d 100644 --- a/bibletime/frontend/searchdialog/cmoduleresultview.cpp +++ b/bibletime/frontend/searchdialog/cmoduleresultview.cpp @@ -35,7 +35,7 @@ namespace Search { ********************************************/ CModuleResultView::CModuleResultView(TQWidget* parent, const char* name) : - KListView(parent, name) { + TDEListView(parent, name) { initView(); initConnections(); strongsResults = 0; @@ -57,28 +57,28 @@ void CModuleResultView::initView() { //setup the popup menu - m_popup = new KPopupMenu(this); + m_popup = new TDEPopupMenu(this); // m_popup->insertTitle(i18n("Bible window")); - m_actions.copyMenu = new KActionMenu(i18n("Copy..."), CResMgr::searchdialog::result::moduleList::copyMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.copyMenu = new TDEActionMenu(i18n("Copy..."), CResMgr::searchdialog::result::moduleList::copyMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.copyMenu->setDelayed(false); - m_actions.copy.result = new KAction(i18n("Reference only"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyResult()), TQT_TQOBJECT(this)); + m_actions.copy.result = new TDEAction(i18n("Reference only"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyResult()), TQT_TQOBJECT(this)); m_actions.copyMenu->insert(m_actions.copy.result); - m_actions.copy.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyResultWithText()), TQT_TQOBJECT(this)); + m_actions.copy.resultWithText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyResultWithText()), TQT_TQOBJECT(this)); m_actions.copyMenu->insert(m_actions.copy.resultWithText); m_actions.copyMenu->plug(m_popup); - m_actions.saveMenu = new KActionMenu(i18n("Save..."), CResMgr::searchdialog::result::moduleList::saveMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.saveMenu = new TDEActionMenu(i18n("Save..."), CResMgr::searchdialog::result::moduleList::saveMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.saveMenu->setDelayed( false ); - m_actions.save.result = new KAction(i18n("Reference only"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveResult()), TQT_TQOBJECT(this)); + m_actions.save.result = new TDEAction(i18n("Reference only"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveResult()), TQT_TQOBJECT(this)); m_actions.saveMenu->insert(m_actions.save.result); - m_actions.save.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveResultWithText()), TQT_TQOBJECT(this)); + m_actions.save.resultWithText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveResultWithText()), TQT_TQOBJECT(this)); m_actions.saveMenu->insert(m_actions.save.resultWithText); m_actions.saveMenu->plug(m_popup); - m_actions.printMenu = new KActionMenu(i18n("Print..."), CResMgr::searchdialog::result::moduleList::printMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.printMenu = new TDEActionMenu(i18n("Print..."), CResMgr::searchdialog::result::moduleList::printMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.printMenu->setDelayed(false); - m_actions.print.result = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printResult()), TQT_TQOBJECT(this)); + m_actions.print.result = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printResult()), TQT_TQOBJECT(this)); m_actions.printMenu->insert(m_actions.print.result); @@ -89,8 +89,8 @@ void CModuleResultView::initView() { void CModuleResultView::initConnections() { connect(this, TQT_SIGNAL(currentChanged(TQListViewItem*)), this, TQT_SLOT(executed(TQListViewItem*))); - connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), - this, TQT_SLOT(showPopup(KListView*, TQListViewItem*, const TQPoint&))); + connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQT_SLOT(showPopup(TDEListView*, TQListViewItem*, const TQPoint&))); } /** Setups the tree using the given list of modules. */ @@ -215,7 +215,7 @@ CSwordModuleInfo* const CModuleResultView::activeModule() { } /** No descriptions */ -void CModuleResultView::showPopup(KListView*, TQListViewItem*, const TQPoint& point) { +void CModuleResultView::showPopup(TDEListView*, TQListViewItem*, const TQPoint& point) { //make sure that all entries have the correct status m_popup->exec(point); } diff --git a/bibletime/frontend/searchdialog/cmoduleresultview.h b/bibletime/frontend/searchdialog/cmoduleresultview.h index 4f2c37f..7947012 100644 --- a/bibletime/frontend/searchdialog/cmoduleresultview.h +++ b/bibletime/frontend/searchdialog/cmoduleresultview.h @@ -28,18 +28,18 @@ class TQPushButton; class TQRadioButton; class KComboBox; -class KActionMenu; -class KAction; +class TDEActionMenu; +class TDEAction; class KHistoryCombo; class KProgress; -class KPopupMenu; +class TDEPopupMenu; class CReadDisplay; namespace Search { namespace Result { -class CModuleResultView : public KListView { +class CModuleResultView : public TDEListView { Q_OBJECT public: @@ -83,7 +83,7 @@ protected slots: // Protected slots /** * This slot opens the popup menu at the given position */ - void showPopup(KListView*, TQListViewItem*, const TQPoint&); + void showPopup(TDEListView*, TQListViewItem*, const TQPoint&); /** * Appends the whole search result to the printer queue. */ @@ -104,29 +104,29 @@ signals: private: struct { - KActionMenu* saveMenu; + TDEActionMenu* saveMenu; struct { - KAction* result; - KAction* resultWithText; + TDEAction* result; + TDEAction* resultWithText; } save; - KActionMenu* printMenu; + TDEActionMenu* printMenu; struct { - KAction* result; + TDEAction* result; } print; - KActionMenu* copyMenu; + TDEActionMenu* copyMenu; struct { - KAction* result; - KAction* resultWithText; + TDEAction* result; + TDEAction* resultWithText; } copy; } m_actions; - KPopupMenu* m_popup; + TDEPopupMenu* m_popup; StrongsResultClass* strongsResults; }; diff --git a/bibletime/frontend/searchdialog/crangechooser.cpp b/bibletime/frontend/searchdialog/crangechooser.cpp index 408e8e3..d141900 100644 --- a/bibletime/frontend/searchdialog/crangechooser.cpp +++ b/bibletime/frontend/searchdialog/crangechooser.cpp @@ -45,7 +45,7 @@ namespace Search { namespace Options { /****************************/ -CRangeChooserDialog::RangeItem::RangeItem(TQListView* view, TQListViewItem* afterThis, const TQString caption, const TQString range) : KListViewItem(view, afterThis) { +CRangeChooserDialog::RangeItem::RangeItem(TQListView* view, TQListViewItem* afterThis, const TQString caption, const TQString range) : TDEListViewItem(view, afterThis) { setCaption(caption); setRange(range); } @@ -98,7 +98,7 @@ void CRangeChooserDialog::initView() { TQGridLayout* grid = new TQGridLayout(plainPage(),6,5,0,3); - m_rangeList = new KListView(plainPage()); + m_rangeList = new TDEListView(plainPage()); m_rangeList->addColumn(i18n("Search range")); m_rangeList->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Expanding)); m_rangeList->setFullWidth(true); @@ -131,14 +131,14 @@ void CRangeChooserDialog::initView() { grid->addRowSpacing(3, 10); - m_resultList = new KListView(plainPage()); + m_resultList = new TDEListView(plainPage()); m_resultList->addColumn(i18n("Parsed search range:")); m_resultList->setFullWidth(true); m_resultList->setSorting(-1); m_resultList->setShowSortIndicator(false); m_resultList->header()->setClickEnabled(false); m_resultList->header()->setMovingEnabled(false); - m_resultList->setSelectionModeExt(KListView::NoSelection); + m_resultList->setSelectionModeExt(TDEListView::NoSelection); grid->addMultiCellWidget(m_resultList, 4,5,3,4); @@ -195,7 +195,7 @@ void CRangeChooserDialog::parseRange() { sword::VerseKey key; sword::ListKey verses = key.ParseVerseList((const char*)range.utf8(), "Genesis 1:1", true); for (int i = 0; i < verses.Count(); ++i) { - new KListViewItem(m_resultList, TQString::fromUtf8(verses.GetElement(i)->getRangeText())); + new TDEListViewItem(m_resultList, TQString::fromUtf8(verses.GetElement(i)->getRangeText())); // tqWarning("range=%s, text=%s",verses.GetElement(i)->getRangeText(), verses.GetElement(i)->getText() ); } diff --git a/bibletime/frontend/searchdialog/crangechooser.h b/bibletime/frontend/searchdialog/crangechooser.h index 6d4d2d9..2fbaa53 100644 --- a/bibletime/frontend/searchdialog/crangechooser.h +++ b/bibletime/frontend/searchdialog/crangechooser.h @@ -52,7 +52,7 @@ public: ~CRangeChooserDialog(); protected: // Protected methods -class RangeItem : public KListViewItem { +class RangeItem : public TDEListViewItem { public: RangeItem(TQListView*, TQListViewItem* afterThis = 0, const TQString caption = TQString(), const TQString range = TQString()); ~RangeItem(); @@ -93,8 +93,8 @@ protected slots: // Protected slots virtual void slotOk(); private: - KListView* m_rangeList; - KListView* m_resultList; + TDEListView* m_rangeList; + TDEListView* m_resultList; TQLineEdit* m_nameEdit; TQTextEdit* m_rangeEdit; TQPushButton* m_newRangeButton; diff --git a/bibletime/frontend/searchdialog/csearchdialogpages.h b/bibletime/frontend/searchdialog/csearchdialogpages.h index a3f6b38..85a8588 100644 --- a/bibletime/frontend/searchdialog/csearchdialogpages.h +++ b/bibletime/frontend/searchdialog/csearchdialogpages.h @@ -34,11 +34,11 @@ class TQPushButton; class TQRadioButton; class KComboBox; -class KActionMenu; -class KAction; +class TDEActionMenu; +class TDEAction; class KHistoryCombo; class KProgress; -class KPopupMenu; +class TDEPopupMenu; class CReadDisplay; diff --git a/bibletime/frontend/searchdialog/csearchresultview.cpp b/bibletime/frontend/searchdialog/csearchresultview.cpp index 1e9dd38..5f319ca 100644 --- a/bibletime/frontend/searchdialog/csearchresultview.cpp +++ b/bibletime/frontend/searchdialog/csearchresultview.cpp @@ -29,7 +29,7 @@ namespace Search { namespace Result { CSearchResultView::CSearchResultView(TQWidget* parent, const char* name) : - KListView(parent, name), m_module(0) { + TDEListView(parent, name), m_module(0) { initView(); initConnections(); } @@ -43,30 +43,30 @@ void CSearchResultView::initView() { setSorting(-1); setDragEnabled(true); - setSelectionModeExt(KListView::Extended); + setSelectionModeExt(TDEListView::Extended); //setup the popup menu - m_popup = new KPopupMenu(this); + m_popup = new TDEPopupMenu(this); - m_actions.copyMenu = new KActionMenu(i18n("Copy..."), CResMgr::searchdialog::result::foundItems::copyMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.copyMenu = new TDEActionMenu(i18n("Copy..."), CResMgr::searchdialog::result::foundItems::copyMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.copyMenu->setDelayed(false); - m_actions.copy.result = new KAction(i18n("Reference only"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItems()), TQT_TQOBJECT(this)); + m_actions.copy.result = new TDEAction(i18n("Reference only"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItems()), TQT_TQOBJECT(this)); m_actions.copyMenu->insert(m_actions.copy.result); - m_actions.copy.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItemsWithText()), TQT_TQOBJECT(this)); + m_actions.copy.resultWithText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItemsWithText()), TQT_TQOBJECT(this)); m_actions.copyMenu->insert(m_actions.copy.resultWithText); m_actions.copyMenu->plug(m_popup); - m_actions.saveMenu = new KActionMenu(i18n("Save..."),CResMgr::searchdialog::result::foundItems::saveMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.saveMenu = new TDEActionMenu(i18n("Save..."),CResMgr::searchdialog::result::foundItems::saveMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.saveMenu->setDelayed( false ); - m_actions.save.result = new KAction(i18n("Reference only"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItems()), TQT_TQOBJECT(this)); + m_actions.save.result = new TDEAction(i18n("Reference only"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItems()), TQT_TQOBJECT(this)); m_actions.saveMenu->insert(m_actions.save.result); - m_actions.save.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItemsWithText()), TQT_TQOBJECT(this)); + m_actions.save.resultWithText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItemsWithText()), TQT_TQOBJECT(this)); m_actions.saveMenu->insert(m_actions.save.resultWithText); m_actions.saveMenu->plug(m_popup); - m_actions.printMenu = new KActionMenu(i18n("Print..."),CResMgr::searchdialog::result::foundItems::printMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.printMenu = new TDEActionMenu(i18n("Print..."),CResMgr::searchdialog::result::foundItems::printMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.printMenu->setDelayed(false); - m_actions.print.result = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printItems()), TQT_TQOBJECT(this)); + m_actions.print.result = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printItems()), TQT_TQOBJECT(this)); m_actions.printMenu->insert(m_actions.print.result); m_actions.printMenu->plug(m_popup); } @@ -78,8 +78,8 @@ void CSearchResultView::initConnections() { connect(this, TQT_SIGNAL(currentChanged(TQListViewItem*)), this, TQT_SLOT(executed(TQListViewItem*))); - connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), - this, TQT_SLOT(showPopup(KListView*, TQListViewItem*, const TQPoint&))); + connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQT_SLOT(showPopup(TDEListView*, TQListViewItem*, const TQPoint&))); } /** Setups the list with the given module. */ @@ -101,9 +101,9 @@ void CSearchResultView::setupTree(CSwordModuleInfo* m) { setUpdatesEnabled(false); TQListViewItem* oldItem = 0; - KListViewItem* item = 0; + TDEListViewItem* item = 0; for (int index = 0; index < count; index++) { - item = new KListViewItem(this, oldItem); + item = new TDEListViewItem(this, oldItem); item->setText(0, TQString::fromUtf8(result.GetElement(index)->getText())); oldItem = item; @@ -129,11 +129,11 @@ void CSearchResultView::setupStrongsTree(CSwordModuleInfo* m, TQStringList* vLis setUpdatesEnabled(false); - KListViewItem* oldItem = 0; - KListViewItem* item = 0; + TDEListViewItem* oldItem = 0; + TDEListViewItem* item = 0; for ( TQStringList::Iterator it = vList->begin(); it != vList->end(); ++it ) { - item = new KListViewItem(this, oldItem); + item = new TDEListViewItem(this, oldItem); item->setText(0, (*it)); oldItem = item; @@ -153,7 +153,7 @@ void CSearchResultView::executed(TQListViewItem* item) { } /** Reimplementation to show the popup menu. */ -void CSearchResultView::showPopup(KListView*, TQListViewItem*, const TQPoint& point) { +void CSearchResultView::showPopup(TDEListView*, TQListViewItem*, const TQPoint& point) { m_popup->exec(point); } diff --git a/bibletime/frontend/searchdialog/csearchresultview.h b/bibletime/frontend/searchdialog/csearchresultview.h index 65b0cf5..67effa7 100644 --- a/bibletime/frontend/searchdialog/csearchresultview.h +++ b/bibletime/frontend/searchdialog/csearchresultview.h @@ -25,18 +25,18 @@ class TQPushButton; class TQRadioButton; class KComboBox; -class KActionMenu; -class KAction; +class TDEActionMenu; +class TDEAction; class KHistoryCombo; class KProgress; -class KPopupMenu; +class TDEPopupMenu; class CReadDisplay; namespace Search { namespace Result { -class CSearchResultView : public KListView { +class CSearchResultView : public TDEListView { Q_OBJECT public: @@ -66,7 +66,7 @@ public slots: // Public slots /** * Reimplementation to show the popup menu. */ - virtual void showPopup(KListView*, TQListViewItem* i, const TQPoint& point); + virtual void showPopup(TDEListView*, TQListViewItem* i, const TQPoint& point); protected slots: // Protected slots void printItems(); @@ -77,29 +77,29 @@ protected slots: // Protected slots private: struct { - KActionMenu* saveMenu; + TDEActionMenu* saveMenu; struct { - KAction* result; - KAction* resultWithText; + TDEAction* result; + TDEAction* resultWithText; } save; - KActionMenu* printMenu; + TDEActionMenu* printMenu; struct { - KAction* result; + TDEAction* result; } print; - KActionMenu* copyMenu; + TDEActionMenu* copyMenu; struct { - KAction* result; - KAction* resultWithText; + TDEAction* result; + TDEAction* resultWithText; } copy; } m_actions; - KPopupMenu* m_popup; + TDEPopupMenu* m_popup; CSwordModuleInfo* m_module; signals: // Signals diff --git a/bibletime/frontend/util/csortlistviewitem.cpp b/bibletime/frontend/util/csortlistviewitem.cpp index 7278011..a39c7f0 100644 --- a/bibletime/frontend/util/csortlistviewitem.cpp +++ b/bibletime/frontend/util/csortlistviewitem.cpp @@ -15,37 +15,37 @@ namespace util { -CSortListViewItem::CSortListViewItem(TQListViewItem* parent) : KListViewItem(parent) +CSortListViewItem::CSortListViewItem(TQListViewItem* parent) : TDEListViewItem(parent) { } CSortListViewItem::CSortListViewItem( TQListView * parent, TQListViewItem * after ) - : KListViewItem ( parent, after ) + : TDEListViewItem ( parent, after ) { } CSortListViewItem::CSortListViewItem( TQListViewItem * parent, TQListViewItem * after ) - : KListViewItem ( parent, after ) + : TDEListViewItem ( parent, after ) { } CSortListViewItem::CSortListViewItem( TQListView * parent, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) - : KListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) + : TDEListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) { } CSortListViewItem::CSortListViewItem( TQListViewItem * parent, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) - : KListViewItem ( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) + : TDEListViewItem ( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) { } CSortListViewItem::CSortListViewItem( TQListView * parent, TQListViewItem * after, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) - : KListViewItem ( parent, after, label1, label2, label3, label4, label5, label6, label7, label8 ) + : TDEListViewItem ( parent, after, label1, label2, label3, label4, label5, label6, label7, label8 ) { } CSortListViewItem::CSortListViewItem( TQListViewItem * parent, TQListViewItem * after, TQString label1, TQString label2, TQString label3, TQString label4, TQString label5, TQString label6, TQString label7, TQString label8 ) - : KListViewItem ( parent, after, label1, label2, label3, label4, label5, label6, label7, label8 ) + : TDEListViewItem ( parent, after, label1, label2, label3, label4, label5, label6, label7, label8 ) { } @@ -58,12 +58,12 @@ int CSortListViewItem::compare( TQListViewItem* i, int col, bool ascending ) con int ret = 0; if ( !columnSorting.contains(col) ) { - return KListViewItem::compare(i, col, ascending); + return TDEListViewItem::compare(i, col, ascending); } Type t = columnSorting[col]; if (t == String) { - ret = KListViewItem::compare(i, col, ascending); + ret = TDEListViewItem::compare(i, col, ascending); } else if (t == Number) { ret = (int) (text(col).toLong() - (i->text(col).toLong())); diff --git a/bibletime/frontend/util/csortlistviewitem.h b/bibletime/frontend/util/csortlistviewitem.h index 8b38d19..a150f8d 100644 --- a/bibletime/frontend/util/csortlistviewitem.h +++ b/bibletime/frontend/util/csortlistviewitem.h @@ -23,7 +23,7 @@ namespace util { * A implementation of a TQListViewItem to allow special sort orders for it's columns. * @author The BibleTime team <info@bibletime.info> */ -class CSortListViewItem : public KListViewItem { +class CSortListViewItem : public TDEListViewItem { public: enum Type { Number, String/*, BibleKey*/ |