diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:02:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:02:43 -0600 |
commit | aea627236e4de24599c3e30617cf264c3c1b7d40 (patch) | |
tree | 467e13ca5a7eb0ab292259289ecc3572f53c5eae /kword/KWFrameView.cpp | |
parent | 786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff) | |
download | koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kword/KWFrameView.cpp')
-rw-r--r-- | kword/KWFrameView.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kword/KWFrameView.cpp b/kword/KWFrameView.cpp index 927b0f13..cdaa15b2 100644 --- a/kword/KWFrameView.cpp +++ b/kword/KWFrameView.cpp @@ -175,14 +175,14 @@ void KWFrameView::paintFrameAttributes(TQPainter *painter, const TQRect &crect, // *********** Policies ********* FramePolicy::FramePolicy(KWFrameView *view) { - m_separator = new KActionSeparator(); + m_separator = new TDEActionSeparator(); m_view = view; } -void FramePolicy::addFloatingAction(KWView *view, TQPtrList<KAction> &actionList) { +void FramePolicy::addFloatingAction(KWView *view, TQPtrList<TDEAction> &actionList) { if(m_view->frame()->frameSet()->isMainFrameset()) return; actionList.append(m_separator); - KToggleAction *action = dynamic_cast<KToggleAction*> (view->actionCollection()-> + TDEToggleAction *action = dynamic_cast<TDEToggleAction*> (view->actionCollection()-> action("inline_frame")); Q_ASSERT(action); KWFrameSet *parentFs = m_view->frame()->frameSet()->groupmanager() ? @@ -327,12 +327,12 @@ MouseMeaning PartFramePolicy::mouseMeaning( const KoPoint &point, int keyState ) TQPopupMenu* PartFramePolicy::createPopup( const KoPoint &point, KWView *view ) { Q_UNUSED(point); KWPartFrameSet *part = static_cast<KWPartFrameSet *>(m_view->frame()->frameSet()); - KActionSeparator *separator=new KActionSeparator(); - KActionCollection *actionCollection = view->actionCollection(); - TQPtrList<KAction> actionList; + TDEActionSeparator *separator=new TDEActionSeparator(); + TDEActionCollection *actionCollection = view->actionCollection(); + TQPtrList<TDEAction> actionList; actionList.append(separator); if( !part->protectContent() ) { - KToggleAction *action = dynamic_cast<KToggleAction*>(actionCollection->action("embedded_store_internal")); + TDEToggleAction *action = dynamic_cast<TDEToggleAction*>(actionCollection->action("embedded_store_internal")); Q_ASSERT(action); action->setChecked(part->getChild()->document()->storeInternal()); action->setEnabled(part->getChild()->document()->hasExternURL()); @@ -367,16 +367,16 @@ MouseMeaning TextFramePolicy::mouseMeaning( const KoPoint &point, int keyState ) TQPopupMenu* TextFramePolicy::createPopup( const KoPoint &point, KWView *view ) { if( m_view->isBorderHit(point) ) { KWFrameSet *fs = m_view->frame()->frameSet(); - KActionSeparator *separator=new KActionSeparator(); - KActionCollection *actionCollection = view->actionCollection(); - TQPtrList<KAction> actionList; + TDEActionSeparator *separator=new TDEActionSeparator(); + TDEActionCollection *actionCollection = view->actionCollection(); + TQPtrList<TDEAction> actionList; if(fs->isHeaderOrFooter()) { actionList.append(separator); actionList.append(actionCollection->action("configure_headerfooter")); } else if (fs->isFootEndNote()) { actionList.append(separator); - KAction *action = actionCollection->action("goto_footendnote"); + TDEAction *action = actionCollection->action("goto_footendnote"); action->setText( fs->isFootNote() ? i18n( "Go to Footnote" ) : i18n( "Go to Endnote" ) ); actionList.append(action); @@ -402,8 +402,8 @@ TQPopupMenu* TextFramePolicy::createPopup( const KoPoint &point, KWView *view ) view->unplugActionList( "datatools_link" ); // Those lists are stored in the KWView. Grab a ref to them. - TQPtrList<KAction> &actionList = view->dataToolActionList(); - TQPtrList<KAction> &variableList = view->variableActionList(); + TQPtrList<TDEAction> &actionList = view->dataToolActionList(); + TQPtrList<TDEAction> &variableList = view->variableActionList(); actionList.clear(); variableList.clear(); @@ -443,7 +443,7 @@ TQPopupMenu* TextFramePolicy::createPopup( const KoPoint &point, KWView *view ) return view->popupMenu("footnote_popup"); } if ( singleWord ) { - TQPtrList<KAction> actionCheckSpellList = view->listOfResultOfCheckWord( word ); + TQPtrList<TDEAction> actionCheckSpellList = view->listOfResultOfCheckWord( word ); if ( !actionCheckSpellList.isEmpty() ) { view->plugActionList( "spell_result_action", actionCheckSpellList ); return view->popupMenu("text_popup_spell_with_result"); @@ -464,11 +464,11 @@ MouseMeaning ImageFramePolicy::mouseMeaning( const KoPoint &point, int keyState } TQPopupMenu* ImageFramePolicy::createPopup( const KoPoint &point, KWView *view ) { Q_UNUSED(point); - KActionSeparator *separator=new KActionSeparator(); - KActionCollection *actionCollection = view->actionCollection(); - TQPtrList<KAction> actionList; + TDEActionSeparator *separator=new TDEActionSeparator(); + TDEActionCollection *actionCollection = view->actionCollection(); + TQPtrList<TDEAction> actionList; actionList.append(separator); - KAction *action = actionCollection->action("change_picture"); + TDEAction *action = actionCollection->action("change_picture"); Q_ASSERT(action); actionList.append(action); action = actionCollection->action("save_picture"); |