summaryrefslogtreecommitdiffstats
path: root/kword
diff options
context:
space:
mode:
Diffstat (limited to 'kword')
-rw-r--r--kword/KWConfig.cpp6
-rw-r--r--kword/KWConfig.h4
-rw-r--r--kword/KWDocStruct.cpp34
-rw-r--r--kword/KWDocStruct.h6
-rw-r--r--kword/KWFrameView.cpp36
-rw-r--r--kword/KWFrameView.h8
-rw-r--r--kword/KWMailMergeDataBase.cpp6
-rw-r--r--kword/KWMailMergeLabelAction.cpp12
-rw-r--r--kword/KWMailMergeLabelAction.h2
-rw-r--r--kword/KWTextFrameSet.h2
-rw-r--r--kword/KWView.cpp426
-rw-r--r--kword/KWView.h356
-rw-r--r--kword/mailmerge/kabc/addresspicker.ui4
-rw-r--r--kword/mailmerge/sql/kwqtsqlpower.ui4
-rw-r--r--kword/tests/FrameTester.cpp2
15 files changed, 454 insertions, 454 deletions
diff --git a/kword/KWConfig.cpp b/kword/KWConfig.cpp
index 701dc900..1e11eb07 100644
--- a/kword/KWConfig.cpp
+++ b/kword/KWConfig.cpp
@@ -917,8 +917,8 @@ void ConfigureDefaultDocPage::slotDefault()
void ConfigureDefaultDocPage::selectNewDefaultFont() {
TQStringList list;
- KFontChooser::getFontList(list, KFontChooser::SmoothScalableFonts);
- KFontDialog dlg( (TQWidget *)this->parent(), "Font Selector", false, true, list, true );
+ TDEFontChooser::getFontList(list, TDEFontChooser::SmoothScalableFonts);
+ TDEFontDialog dlg( (TQWidget *)this->parent(), "Font Selector", false, true, list, true );
dlg.setFont(*font);
int result = dlg.exec();
if (KDialog::Accepted == result) {
@@ -949,7 +949,7 @@ ConfigurePathPage::ConfigurePathPage( KWView *view, TQVBox *box, char *name )
gbPathGroup->setMargin( KDialog::marginHint() );
gbPathGroup->setInsideSpacing( KDialog::spacingHint() );
- m_pPathView = new KListView( gbPathGroup );
+ m_pPathView = new TDEListView( gbPathGroup );
m_pPathView->setResizeMode(TQListView::NoColumn);
m_pPathView->addColumn( i18n( "Type" ) );
m_pPathView->addColumn( i18n( "Path" ), 400 ); // not too big by default
diff --git a/kword/KWConfig.h b/kword/KWConfig.h
index ab6d373f..bc864ff8 100644
--- a/kword/KWConfig.h
+++ b/kword/KWConfig.h
@@ -35,7 +35,7 @@ class TQComboBox;
class KIntNumInput;
class KCommand;
class KWDocument;
-class KListView;
+class TDEListView;
class TQVGroupBox;
class TQLabel;
@@ -154,7 +154,7 @@ private slots:
private:
KWView* m_pView;
TDEConfig* config;
- KListView* m_pPathView;
+ TDEListView* m_pPathView;
TQPushButton *m_modifyPath;
};
diff --git a/kword/KWDocStruct.cpp b/kword/KWDocStruct.cpp
index cf850d14..4a888d39 100644
--- a/kword/KWDocStruct.cpp
+++ b/kword/KWDocStruct.cpp
@@ -75,17 +75,17 @@ bool KWOrderedFrameSet::operator<( KWOrderedFrameSet ofs )
/******************************************************************/
KWDocListViewItem::KWDocListViewItem(TQListViewItem* parent, const TQString& text)
- : KListViewItem(parent, text)
+ : TDEListViewItem(parent, text)
{
}
KWDocListViewItem::KWDocListViewItem(TQListViewItem* parent, TQListViewItem* after, const TQString& text )
- :KListViewItem(parent, after, text)
+ :TDEListViewItem(parent, after, text)
{
}
KWDocListViewItem::KWDocListViewItem(TQListView* parent, const TQString& text)
- :KListViewItem(parent, text)
+ :TDEListViewItem(parent, text)
{
}
@@ -382,7 +382,7 @@ void KWDocStructTextFrameSetItem::setupTextFrames()
{
KWFrame* frame = framePtrs.at(j);
TQString name;
- if ( KListViewItem::parent()->firstChild() == this && dok->processingType() == KWDocument::WP )
+ if ( TDEListViewItem::parent()->firstChild() == this && dok->processingType() == KWDocument::WP )
{
if ( dok->numColumns() == 1 )
name=i18n( "Page %1" ).arg(TQString::number(j + 1));
@@ -823,7 +823,7 @@ void KWDocStructRootItem::setupArrangement()
}
if ( childCount() == 0 )
- ( void )new KListViewItem( this, i18n( "Empty" ) );
+ ( void )new TDEListViewItem( this, i18n( "Empty" ) );
}
@@ -881,7 +881,7 @@ void KWDocStructRootItem::setupTextFrameSets()
}
if ( childCount() == 0 )
- ( void )new KListViewItem( this, i18n( "Empty" ) );
+ ( void )new TDEListViewItem( this, i18n( "Empty" ) );
}
void KWDocStructRootItem::setupFormulaFrames()
@@ -905,7 +905,7 @@ void KWDocStructRootItem::setupFormulaFrames()
}
if ( childCount() == 0 )
- ( void )new KListViewItem( this, i18n( "Empty" ) );
+ ( void )new TDEListViewItem( this, i18n( "Empty" ) );
}
void KWDocStructRootItem::setupTables()
@@ -959,7 +959,7 @@ void KWDocStructRootItem::setupTables()
}
if ( childCount() == 0 )
- ( void )new KListViewItem( this, i18n( "Empty" ) );
+ ( void )new TDEListViewItem( this, i18n( "Empty" ) );
}
void KWDocStructRootItem::setupPictures()
@@ -983,7 +983,7 @@ void KWDocStructRootItem::setupPictures()
}
if ( childCount() == 0 )
- ( void )new KListViewItem( this, i18n( "Empty" ) );
+ ( void )new TDEListViewItem( this, i18n( "Empty" ) );
}
void KWDocStructRootItem::setupEmbedded()
@@ -1007,7 +1007,7 @@ void KWDocStructRootItem::setupEmbedded()
}
if ( childCount() == 0 )
- ( void )new KListViewItem( this, i18n( "Empty" ) );
+ ( void )new TDEListViewItem( this, i18n( "Empty" ) );
}
KWDocStructTextFrameSetItem* KWDocStructRootItem::findTextFrameSetItem(const KWFrameSet* frameset)
@@ -1047,7 +1047,7 @@ KWDocStructTableItem* KWDocStructRootItem::findTableItem(const KWFrameSet* frame
/******************************************************************/
KWDocStructTree::KWDocStructTree(TQWidget* parent, KWDocument* doc, KWGUI* gui)
- : KListView(parent), m_doc(doc), m_gui(gui)
+ : TDEListView(parent), m_doc(doc), m_gui(gui)
{
embedded = new KWDocStructRootItem( this, i18n( "Embedded Objects" ), Embedded);
formulafrms = new KWDocStructRootItem( this, i18n( "Formula Frames" ), FormulaFrames);
@@ -1065,8 +1065,8 @@ KWDocStructTree::KWDocStructTree(TQWidget* parent, KWDocument* doc, KWGUI* gui)
this, TQT_SLOT( slotReturnPressed(TQListViewItem* )) );
connect( this, TQT_SIGNAL(rightButtonClicked(TQListViewItem*, const TQPoint&,int)),
this, TQT_SLOT( slotRightButtonClicked(TQListViewItem *, const TQPoint&, int)));
- connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
+ connect( this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) );
}
KWDocStructTree::~KWDocStructTree()
@@ -1150,7 +1150,7 @@ void KWDocStructTree::speakItem()
tmp->speakItem();
}
-void KWDocStructTree::slotContextMenu(KListView* lv, TQListViewItem* i, const TQPoint& p)
+void KWDocStructTree::slotContextMenu(TDEListView* lv, TQListViewItem* i, const TQPoint& p)
{
if (lv != this)
return;
@@ -1193,14 +1193,14 @@ KWDocStruct::KWDocStruct(TQWidget* parent, KWDocument* doc, KWGUI* gui)
{
m_layout = new TQVBoxLayout( this );
- KToolBar* searchBar = new KToolBar( this );
+ TDEToolBar* searchBar = new TDEToolBar( this );
searchBar->setFlat( true );
searchBar->setMovingEnabled( false );
- KToolBarButton* eraseButton = new KToolBarButton( "locationbar_erase", 0, searchBar );
+ TDEToolBarButton* eraseButton = new TDEToolBarButton( "locationbar_erase", 0, searchBar );
m_tree = new KWDocStructTree( this, doc, gui );
m_tree->setAlternateBackground( TDEGlobalSettings::alternateBackgroundColor() );
- KListViewSearchLine* searchLine = new KListViewSearchLine( searchBar, m_tree );
+ TDEListViewSearchLine* searchLine = new TDEListViewSearchLine( searchBar, m_tree );
searchBar->setStretchableWidget( searchLine );
connect( eraseButton, TQT_SIGNAL( clicked() ), searchLine, TQT_SLOT( clear() ) );
diff --git a/kword/KWDocStruct.h b/kword/KWDocStruct.h
index 6a586f78..83acd9c1 100644
--- a/kword/KWDocStruct.h
+++ b/kword/KWDocStruct.h
@@ -51,7 +51,7 @@ private:
KWFrameSet* m_frameset;
};
-class KWDocListViewItem : public KListViewItem
+class KWDocListViewItem : public TDEListViewItem
{
public:
enum ItemType {
@@ -279,7 +279,7 @@ protected:
/* Class: KWDocStructTree */
/******************************************************************/
-class KWDocStructTree : public KListView
+class KWDocStructTree : public TDEListView
{
Q_OBJECT
@@ -303,7 +303,7 @@ public:
KWGUI* gui() { return m_gui; };
public slots:
- void slotContextMenu(KListView* l, TQListViewItem* i, const TQPoint& p);
+ void slotContextMenu(TDEListView* l, TQListViewItem* i, const TQPoint& p);
void slotRightButtonClicked(TQListViewItem*, const TQPoint&, int);
void slotDoubleClicked(TQListViewItem* item);
void slotReturnPressed(TQListViewItem* item);
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");
diff --git a/kword/KWFrameView.h b/kword/KWFrameView.h
index c7017bf7..8fb0b31c 100644
--- a/kword/KWFrameView.h
+++ b/kword/KWFrameView.h
@@ -26,8 +26,8 @@ class KWView;
class KWViewMode;
class KoZoomHandler;
class KoPoint;
-class KActionSeparator;
-class KAction;
+class TDEActionSeparator;
+class TDEAction;
class TQPopupMenu;
/**
@@ -66,10 +66,10 @@ protected:
* @param view the parent view widget
* @param actionList the list of actions where the floating action should be added to
*/
- void addFloatingAction(KWView *view, TQPtrList<KAction> &actionList);
+ void addFloatingAction(KWView *view, TQPtrList<TDEAction> &actionList);
KWFrameView *m_view;
- KActionSeparator *m_separator;
+ TDEActionSeparator *m_separator;
friend class KWFrameView; // so it can call mouseMeaningOnBorder which assumes some stuff
};
diff --git a/kword/KWMailMergeDataBase.cpp b/kword/KWMailMergeDataBase.cpp
index 08ec69d4..db95cf5e 100644
--- a/kword/KWMailMergeDataBase.cpp
+++ b/kword/KWMailMergeDataBase.cpp
@@ -482,15 +482,15 @@ void KWMailMergeConfigDialog::slotOpenClicked()
void KWMailMergeConfigDialog::slotPreviewClicked()
{
db_->action=KWSLMergePreview;
- KMainWindow *mw=dynamic_cast<KMainWindow*>(((TQWidget *)parent())->topLevelWidget());
+ TDEMainWindow *mw=dynamic_cast<TDEMainWindow*>(((TQWidget *)parent())->topLevelWidget());
if (mw)
{
- KAction *ac=mw->actionCollection()->action(KStdAction::stdName(KStdAction::PrintPreview));
+ TDEAction *ac=mw->actionCollection()->action(KStdAction::stdName(KStdAction::PrintPreview));
if (ac) ac->activate();
else kdWarning()<<"Toplevel doesn't provide a print preview action"<<endl;
}
else
- kdWarning()<<"Toplevel is no KMainWindow->no preview"<<endl;
+ kdWarning()<<"Toplevel is no TDEMainWindow->no preview"<<endl;
}
void KWMailMergeConfigDialog::slotDocumentClicked()
diff --git a/kword/KWMailMergeLabelAction.cpp b/kword/KWMailMergeLabelAction.cpp
index 1487da45..2ae12b61 100644
--- a/kword/KWMailMergeLabelAction.cpp
+++ b/kword/KWMailMergeLabelAction.cpp
@@ -104,7 +104,7 @@ private:
KWMailMergeLabelAction::KWMailMergeLabelAction( const TQString &text, int accel,
TQObject* receiver, const char* slot, TQObject *parent, const char *name )
- : KAction( text, accel, receiver, slot, parent, name ), m_label( 0L )
+ : TDEAction( text, accel, receiver, slot, parent, name ), m_label( 0L )
{
}
@@ -112,11 +112,11 @@ int KWMailMergeLabelAction::plug( TQWidget *widget, int index )
{
//do not call the previous implementation here
- if ( widget->inherits( "KToolBar" ) )
+ if ( widget->inherits( "TDEToolBar" ) )
{
- KToolBar *tb = (KToolBar *)widget;
+ TDEToolBar *tb = (TDEToolBar *)widget;
- int id = KAction::getToolButtonID();
+ int id = TDEAction::getToolButtonID();
m_label = new MailMergeDraggableLabel( static_cast<KoMainWindow*>(tb->mainWindow()), text(), widget );
tb->insertWidget( id, m_label->width(), m_label, index );
@@ -133,9 +133,9 @@ int KWMailMergeLabelAction::plug( TQWidget *widget, int index )
void KWMailMergeLabelAction::unplug( TQWidget *widget )
{
- if ( widget->inherits( "KToolBar" ) )
+ if ( widget->inherits( "TDEToolBar" ) )
{
- KToolBar *bar = (KToolBar *)widget;
+ TDEToolBar *bar = (TDEToolBar *)widget;
int idx = findContainer( bar );
diff --git a/kword/KWMailMergeLabelAction.h b/kword/KWMailMergeLabelAction.h
index 638533fe..558f69ad 100644
--- a/kword/KWMailMergeLabelAction.h
+++ b/kword/KWMailMergeLabelAction.h
@@ -27,7 +27,7 @@
#include <kaction.h>
#include <tqtoolbutton.h>
-class KWMailMergeLabelAction : public KAction
+class KWMailMergeLabelAction : public TDEAction
{
Q_OBJECT
diff --git a/kword/KWTextFrameSet.h b/kword/KWTextFrameSet.h
index a868aa74..f8adad31 100644
--- a/kword/KWTextFrameSet.h
+++ b/kword/KWTextFrameSet.h
@@ -45,7 +45,7 @@ class KoTextObject;
class KoDataToolInfo;
class KoVariable;
-class KAction;
+class TDEAction;
class KNamedCommand;
class KMacroCommand;
diff --git a/kword/KWView.cpp b/kword/KWView.cpp
index 68386e29..f32912e0 100644
--- a/kword/KWView.cpp
+++ b/kword/KWView.cpp
@@ -562,13 +562,13 @@ void KWView::setupActions()
// accelerator clashes.
// -------------- File menu
- m_actionExtraCreateTemplate = new KAction( i18n( "&Create Template From Document..." ), 0,
+ m_actionExtraCreateTemplate = new TDEAction( i18n( "&Create Template From Document..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( extraCreateTemplate() ),
actionCollection(), "extra_template" );
m_actionExtraCreateTemplate->setToolTip( i18n( "Save this document and use it later as a template" ) );
m_actionExtraCreateTemplate->setWhatsThis( i18n( "You can save this document as a template.<br><br>You can use this new template as a starting point for another document." ) );
- m_actionFileStatistics = new KAction( i18n( "Statistics" ), 0, TQT_TQOBJECT(this), TQT_SLOT( fileStatistics() ), actionCollection(), "file_statistics" );
+ m_actionFileStatistics = new TDEAction( i18n( "Statistics" ), 0, TQT_TQOBJECT(this), TQT_SLOT( fileStatistics() ), actionCollection(), "file_statistics" );
m_actionFileStatistics->setToolTip( i18n( "Sentence, word and letter counts for this document" ) );
m_actionFileStatistics->setWhatsThis( i18n( "Information on the number of letters, words, syllables and sentences for this document.<p>Evaluates readability using the Flesch reading score." ) );
// -------------- Edit actions
@@ -580,17 +580,17 @@ void KWView::setupActions()
m_actionEditFindPrevious = KStdAction::findPrev( TQT_TQOBJECT(this), TQT_SLOT( editFindPrevious() ), actionCollection(), "edit_findprevious" );
m_actionEditReplace = KStdAction::replace( TQT_TQOBJECT(this), TQT_SLOT( editReplace() ), actionCollection(), "edit_replace" );
m_actionEditSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( editSelectAll() ), actionCollection(), "edit_selectall" );
- new KAction( i18n( "Select All Frames" ), 0, TQT_TQOBJECT(this), TQT_SLOT( editSelectAllFrames() ), actionCollection(), "edit_selectallframes" );
- m_actionEditSelectCurrentFrame = new KAction( i18n( "Select Frame" ), 0,
+ new TDEAction( i18n( "Select All Frames" ), 0, TQT_TQOBJECT(this), TQT_SLOT( editSelectAllFrames() ), actionCollection(), "edit_selectallframes" );
+ m_actionEditSelectCurrentFrame = new TDEAction( i18n( "Select Frame" ), 0,
0, TQT_TQOBJECT(this), TQT_SLOT( editSelectCurrentFrame() ),
actionCollection(), "edit_selectcurrentframe" );
m_actionSpellCheck = KStdAction::spelling( TQT_TQOBJECT(this), TQT_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" );
- m_actionDeletePage = new KAction( i18n( "Delete Page" ), "delslide", 0,
+ m_actionDeletePage = new TDEAction( i18n( "Delete Page" ), "delslide", 0,
TQT_TQOBJECT(this), TQT_SLOT( deletePage() ),
actionCollection(), "delete_page" );
kdDebug() << m_doc->pageCount() << " " << (m_doc->processingType() == KWDocument::DTP) << endl;
- (void) new KAction( i18n( "Configure Mai&l Merge..." ), "configure",0,
+ (void) new TDEAction( i18n( "Configure Mai&l Merge..." ), "configure",0,
TQT_TQOBJECT(this), TQT_SLOT( editMailMergeDataBase() ),
actionCollection(), "edit_sldatabase" );
@@ -601,33 +601,33 @@ void KWView::setupActions()
// (void) new KWMailMergeComboAction::KWMailMergeComboAction(i18n("Insert Mailmerge Var"),0,TQT_TQOBJECT(this), TQT_SLOT(JWJWJW()),actionCollection(),"mailmerge_varchooser");
// -------------- Frame menu
- m_actionEditDelFrame = new KAction( i18n( "&Delete Frame" ), 0,
+ m_actionEditDelFrame = new TDEAction( i18n( "&Delete Frame" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( editDeleteFrame() ),
actionCollection(), "edit_delframe" );
m_actionEditDelFrame->setToolTip( i18n( "Delete the currently selected frame(s)." ) );
m_actionEditDelFrame->setWhatsThis( i18n( "Delete the currently selected frame(s)." ) );
- m_actionCreateLinkedFrame = new KAction( i18n( "Create Linked Copy" ), 0, TQT_TQOBJECT(this), TQT_SLOT( createLinkedFrame() ), actionCollection(), "create_linked_frame" );
+ m_actionCreateLinkedFrame = new TDEAction( i18n( "Create Linked Copy" ), 0, TQT_TQOBJECT(this), TQT_SLOT( createLinkedFrame() ), actionCollection(), "create_linked_frame" );
m_actionCreateLinkedFrame->setToolTip( i18n( "Create a copy of the current frame, always showing the same contents" ) );
m_actionCreateLinkedFrame->setWhatsThis( i18n("Create a copy of the current frame, that remains linked to it. This means they always show the same contents: modifying the contents in such a frame will update all its linked copies.") );
- m_actionRaiseFrame = new KAction( i18n( "Ra&ise Frame" ), "raise",
+ m_actionRaiseFrame = new TDEAction( i18n( "Ra&ise Frame" ), "raise",
TQt::CTRL +TQt::SHIFT+ TQt::Key_R, TQT_TQOBJECT(this), TQT_SLOT( raiseFrame() ),
actionCollection(), "raiseframe" );
m_actionRaiseFrame->setToolTip( i18n( "Raise the currently selected frame so that it appears above all the other frames" ) );
m_actionRaiseFrame->setWhatsThis( i18n( "Raise the currently selected frame so that it appears above all the other frames. This is only useful if frames overlap each other. If multiple frames are selected they are all raised in turn." ) );
- m_actionLowerFrame = new KAction( i18n( "&Lower Frame" ), "lower",
+ m_actionLowerFrame = new TDEAction( i18n( "&Lower Frame" ), "lower",
TQt::CTRL +TQt::SHIFT+ TQt::Key_L, TQT_TQOBJECT(this), TQT_SLOT( lowerFrame() ),
actionCollection(), "lowerframe" );
m_actionLowerFrame->setToolTip( i18n( "Lower the currently selected frame so that it disappears under any frame that overlaps it" ) );
m_actionLowerFrame->setWhatsThis( i18n( "Lower the currently selected frame so that it disappears under any frame that overlaps it. If multiple frames are selected they are all lowered in turn." ) );
- m_actionBringToFront= new KAction( i18n( "Bring to Front" ), "bring_forward",
+ m_actionBringToFront= new TDEAction( i18n( "Bring to Front" ), "bring_forward",
0, TQT_TQOBJECT(this), TQT_SLOT( bringToFront() ),
actionCollection(), "bring_tofront_frame" );
- m_actionSendBackward= new KAction( i18n( "Send to Back" ), "send_backward",
+ m_actionSendBackward= new TDEAction( i18n( "Send to Back" ), "send_backward",
0, TQT_TQOBJECT(this), TQT_SLOT( sendToBack() ),
actionCollection(), "send_toback_frame" );
@@ -636,14 +636,14 @@ void KWView::setupActions()
if ( !m_doc->isEmbedded() ) {
- m_actionViewTextMode = new KToggleAction( i18n( "Text Mode" ), 0,
+ m_actionViewTextMode = new TDEToggleAction( i18n( "Text Mode" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewTextMode() ),
actionCollection(), "view_textmode" );
m_actionViewTextMode->setToolTip( i18n( "Only show the text of the document." ) );
m_actionViewTextMode->setWhatsThis( i18n( "Do not show any pictures, formatting or layout. KWord will display only the text for editing." ) );
m_actionViewTextMode->setExclusiveGroup( "viewmodes" );
- m_actionViewPageMode = new KToggleAction( i18n( "&Page Mode" ), 0,
+ m_actionViewPageMode = new TDEToggleAction( i18n( "&Page Mode" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewPageMode() ),
actionCollection(), "view_pagemode" );
m_actionViewPageMode->setWhatsThis( i18n( "Switch to page mode.<br><br> Page mode is designed to make editing your text easy.<br><br>This function is most frequently used to return to text editing after switching to preview mode." ) );
@@ -651,7 +651,7 @@ void KWView::setupActions()
m_actionViewPageMode->setExclusiveGroup( "viewmodes" );
m_actionViewPageMode->setChecked( true );
- m_actionViewPreviewMode = new KToggleAction( i18n( "Pre&view Mode" ), 0,
+ m_actionViewPreviewMode = new TDEToggleAction( i18n( "Pre&view Mode" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewPreviewMode() ),
actionCollection(), "view_previewmode" );
m_actionViewPreviewMode->setWhatsThis( i18n( "Zoom out from your document to get a look at several pages of your document.<br><br>The number of pages per line can be customized." ) );
@@ -666,33 +666,33 @@ void KWView::setupActions()
m_actionViewPreviewMode = 0;
}
- m_actionViewFormattingChars = new KToggleAction( i18n( "&Formatting Characters" ), 0,
+ m_actionViewFormattingChars = new TDEToggleAction( i18n( "&Formatting Characters" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotViewFormattingChars() ),
actionCollection(), "view_formattingchars" );
m_actionViewFormattingChars->setToolTip( i18n( "Toggle the display of non-printing characters." ) );
m_actionViewFormattingChars->setWhatsThis( i18n( "Toggle the display of non-printing characters.<br><br>When this is enabled, KWord shows you tabs, spaces, carriage returns and other non-printing characters." ) );
- m_actionViewFrameBorders = new KToggleAction( i18n( "Frame &Borders" ), 0,
+ m_actionViewFrameBorders = new TDEToggleAction( i18n( "Frame &Borders" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotViewFrameBorders() ),
actionCollection(), "view_frameborders" );
m_actionViewFrameBorders->setToolTip( i18n( "Turns the border display on and off." ) );
m_actionViewFrameBorders->setWhatsThis( i18n( "Turns the border display on and off.<br><br>The borders are never printed. This option is useful to see how the document will appear on the printed page." ) );
- m_actionViewHeader = new KToggleAction( i18n( "Enable Document &Headers" ), 0,
+ m_actionViewHeader = new TDEToggleAction( i18n( "Enable Document &Headers" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewHeader() ),
actionCollection(), "format_header" );
m_actionViewHeader->setCheckedState(i18n("Disable Document &Headers"));
m_actionViewHeader->setToolTip( i18n( "Shows and hides header display." ) );
m_actionViewHeader->setWhatsThis( i18n( "Selecting this option toggles the display of headers in KWord.<br><br>Headers are special frames at the top of each page which can contain page numbers or other information." ) );
- m_actionViewFooter = new KToggleAction( i18n( "Enable Document Foo&ters" ), 0,
+ m_actionViewFooter = new TDEToggleAction( i18n( "Enable Document Foo&ters" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewFooter() ),
actionCollection(), "format_footer" );
m_actionViewFooter->setCheckedState(i18n("Disable Document Foo&ters"));
m_actionViewFooter->setToolTip( i18n( "Shows and hides footer display." ) );
m_actionViewFooter->setWhatsThis( i18n( "Selecting this option toggles the display of footers in KWord. <br><br>Footers are special frames at the bottom of each page which can contain page numbers or other information." ) );
- m_actionViewZoom = new KSelectAction( i18n( "Zoom" ), "viewmag", 0,
+ m_actionViewZoom = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0,
actionCollection(), "view_zoom" );
connect( m_actionViewZoom, TQT_SIGNAL( activated( const TQString & ) ),
@@ -701,14 +701,14 @@ void KWView::setupActions()
changeZoomMenu( );
// -------------- Insert menu
- m_actionInsertSpecialChar = new KAction( i18n( "Sp&ecial Character..." ), "char",
+ m_actionInsertSpecialChar = new TDEAction( i18n( "Sp&ecial Character..." ), "char",
TQt::ALT + TQt::SHIFT + TQt::Key_C,
TQT_TQOBJECT(this), TQT_SLOT( insertSpecialChar() ),
actionCollection(), "insert_specialchar" );
m_actionInsertSpecialChar->setToolTip( i18n( "Insert one or more symbols or letters not found on the keyboard." ) );
m_actionInsertSpecialChar->setWhatsThis( i18n( "Insert one or more symbols or letters not found on the keyboard." ) );
- m_actionInsertFrameBreak = new KAction( TQString(), TQt::CTRL + TQt::Key_Return,
+ m_actionInsertFrameBreak = new TDEAction( TQString(), TQt::CTRL + TQt::Key_Return,
TQT_TQOBJECT(this), TQT_SLOT( insertFrameBreak() ),
actionCollection(), "insert_framebreak" );
if ( m_doc->processingType() == KWDocument::WP ) {
@@ -721,52 +721,52 @@ void KWView::setupActions()
m_actionInsertFrameBreak->setWhatsThis( i18n( "This inserts a non-printing character at the current cursor position. All text after this point will be moved into the next frame in the frameset." ) );
}
- /*actionInsertPage =*/ new KAction( m_doc->processingType() == KWDocument::WP ? i18n( "Page" ) : i18n( "Page..." ), "page", 0,
+ /*actionInsertPage =*/ new TDEAction( m_doc->processingType() == KWDocument::WP ? i18n( "Page" ) : i18n( "Page..." ), "page", 0,
TQT_TQOBJECT(this), TQT_SLOT( insertPage() ),
actionCollection(), "insert_page" );
- m_actionInsertLink = new KAction( i18n( "Link..." ), 0,
+ m_actionInsertLink = new TDEAction( i18n( "Link..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertLink() ),
actionCollection(), "insert_link" );
m_actionInsertLink->setToolTip( i18n( "Insert a Web address, email address or hyperlink to a file." ) );
m_actionInsertLink->setWhatsThis( i18n( "Insert a Web address, email address or hyperlink to a file." ) );
- m_actionInsertComment = new KAction( i18n( "Comment..." ), 0,
+ m_actionInsertComment = new TDEAction( i18n( "Comment..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertComment() ),
actionCollection(), "insert_comment" );
m_actionInsertComment->setToolTip( i18n( "Insert a comment about the selected text." ) );
m_actionInsertComment->setWhatsThis( i18n( "Insert a comment about the selected text. These comments are not designed to appear on the final page." ) );
- m_actionEditComment = new KAction( i18n("Edit Comment..."), 0,
+ m_actionEditComment = new TDEAction( i18n("Edit Comment..."), 0,
TQT_TQOBJECT(this), TQT_SLOT(editComment()),
actionCollection(), "edit_comment");
m_actionEditComment->setToolTip( i18n( "Change the content of a comment." ) );
m_actionEditComment->setWhatsThis( i18n( "Change the content of a comment." ) );
- m_actionRemoveComment = new KAction( i18n("Remove Comment"), 0,
+ m_actionRemoveComment = new TDEAction( i18n("Remove Comment"), 0,
TQT_TQOBJECT(this), TQT_SLOT(removeComment()),
actionCollection(), "remove_comment");
m_actionRemoveComment->setToolTip( i18n( "Remove the selected document comment." ) );
m_actionRemoveComment->setWhatsThis( i18n( "Remove the selected document comment." ) );
- m_actionCopyTextOfComment = new KAction( i18n("Copy Text of Comment..."), 0,
+ m_actionCopyTextOfComment = new TDEAction( i18n("Copy Text of Comment..."), 0,
TQT_TQOBJECT(this), TQT_SLOT(copyTextOfComment()),
actionCollection(), "copy_text_comment");
- m_actionInsertFootEndNote = new KAction( i18n( "&Footnote/Endnote..." ), 0,
+ m_actionInsertFootEndNote = new TDEAction( i18n( "&Footnote/Endnote..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertFootNote() ),
actionCollection(), "insert_footendnote" );
m_actionInsertFootEndNote->setToolTip( i18n( "Insert a footnote referencing the selected text." ) );
m_actionInsertFootEndNote->setWhatsThis( i18n( "Insert a footnote referencing the selected text." ) );
- m_actionInsertContents = new KAction( i18n( "Table of &Contents" ), 0,
+ m_actionInsertContents = new TDEAction( i18n( "Table of &Contents" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertContents() ),
actionCollection(), "insert_contents" );
m_actionInsertContents->setToolTip( i18n( "Insert table of contents at the current cursor position." ) );
m_actionInsertContents->setWhatsThis( i18n( "Insert table of contents at the current cursor position." ) );
m_variableDefMap.clear();
- actionInsertVariable = new KActionMenu( i18n( "&Variable" ),
+ actionInsertVariable = new TDEActionMenu( i18n( "&Variable" ),
actionCollection(), "insert_variable" );
// The last argument is only needed if a submenu is to be created
@@ -776,7 +776,7 @@ void KWView::setupActions()
addVariableActions( VT_PGNUM, KoPageVariable::actionTexts(), actionInsertVariable, i18n("&Page") );
addVariableActions( VT_STATISTIC, KWStatisticVariable::actionTexts(), actionInsertVariable, i18n("&Statistic") );
- m_actionInsertCustom = new KActionMenu( i18n( "&Custom" ),
+ m_actionInsertCustom = new TDEActionMenu( i18n( "&Custom" ),
actionCollection(), "insert_custom" );
actionInsertVariable->insert(m_actionInsertCustom);
@@ -785,7 +785,7 @@ void KWView::setupActions()
addVariableActions( VT_MAILMERGE, KoMailMergeVariable::actionTexts(), actionInsertVariable, TQString() );
actionInsertVariable->popupMenu()->insertSeparator();
- m_actionRefreshAllVariable = new KAction( i18n( "&Refresh All Variables" ), 0,
+ m_actionRefreshAllVariable = new TDEAction( i18n( "&Refresh All Variables" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( refreshAllVariable() ),
actionCollection(), "refresh_all_variable" );
m_actionRefreshAllVariable->setToolTip( i18n( "Update all variables to current values." ) );
@@ -793,31 +793,31 @@ void KWView::setupActions()
actionInsertVariable->insert(m_actionRefreshAllVariable);
- m_actionInsertExpression = new KActionMenu( i18n( "&Expression" ),
+ m_actionInsertExpression = new TDEActionMenu( i18n( "&Expression" ),
actionCollection(), "insert_expression" );
loadexpressionActions( m_actionInsertExpression);
- m_actionToolsCreateText = new KToggleAction( i18n( "Te&xt Frame" ), "frame_text", TQt::Key_F10 /*same as kpr*/,
+ m_actionToolsCreateText = new TDEToggleAction( i18n( "Te&xt Frame" ), "frame_text", TQt::Key_F10 /*same as kpr*/,
TQT_TQOBJECT(this), TQT_SLOT( toolsCreateText() ),
actionCollection(), "tools_createtext" );
m_actionToolsCreateText->setToolTip( i18n( "Create a new text frame." ) );
m_actionToolsCreateText->setWhatsThis( i18n( "Create a new text frame." ) );
m_actionToolsCreateText->setExclusiveGroup( "tools" );
- m_actionInsertFormula = new KAction( i18n( "For&mula" ), "frame_formula", TQt::Key_F4,
+ m_actionInsertFormula = new TDEAction( i18n( "For&mula" ), "frame_formula", TQt::Key_F4,
TQT_TQOBJECT(this), TQT_SLOT( insertFormula() ),
actionCollection(), "tools_formula" );
m_actionInsertFormula->setToolTip( i18n( "Insert a formula into a new frame." ) );
m_actionInsertFormula->setWhatsThis( i18n( "Insert a formula into a new frame." ) );
- m_actionInsertTable = new KAction( i18n( "&Table..." ), "inline_table",
+ m_actionInsertTable = new TDEAction( i18n( "&Table..." ), "inline_table",
TQt::Key_F5,
TQT_TQOBJECT(this), TQT_SLOT( insertTable() ),
actionCollection(), "insert_table" );
m_actionInsertTable->setToolTip( i18n( "Create a table." ) );
m_actionInsertTable->setWhatsThis( i18n( "Create a table.<br><br>The table can either exist in a frame of its own or inline." ) );
- m_actionToolsCreatePix = new KToggleAction( i18n( "P&icture..." ), "frame_image", // or inline_image ?
+ m_actionToolsCreatePix = new TDEToggleAction( i18n( "P&icture..." ), "frame_image", // or inline_image ?
TQt::SHIFT + TQt::Key_F5 /*same as kpr*/,
TQT_TQOBJECT(this), TQT_SLOT( insertPicture() ),
actionCollection(), "insert_picture" );
@@ -831,72 +831,72 @@ void KWView::setupActions()
m_actionToolsCreatePart->setToolTip( i18n( "Insert an object into a new frame." ) );
m_actionToolsCreatePart->setWhatsThis( i18n( "Insert an object into a new frame." ) );
- m_actionInsertFile = new KAction( i18n( "Fi&le..." ), 0,
+ m_actionInsertFile = new TDEAction( i18n( "Fi&le..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertFile() ),
actionCollection(), "insert_file" );
// ------------------------- Format menu
- m_actionFormatFont = new KAction( i18n( "&Font..." ), TQt::ALT + TQt::CTRL + TQt::Key_F,
+ m_actionFormatFont = new TDEAction( i18n( "&Font..." ), TQt::ALT + TQt::CTRL + TQt::Key_F,
TQT_TQOBJECT(this), TQT_SLOT( formatFont() ),
actionCollection(), "format_font" );
m_actionFormatFont->setToolTip( i18n( "Change character size, font, boldface, italics etc." ) );
m_actionFormatFont->setWhatsThis( i18n( "Change the attributes of the currently selected characters." ) );
- m_actionFormatParag = new KAction( i18n( "&Paragraph..." ), TQt::ALT + TQt::CTRL + TQt::Key_P,
+ m_actionFormatParag = new TDEAction( i18n( "&Paragraph..." ), TQt::ALT + TQt::CTRL + TQt::Key_P,
TQT_TQOBJECT(this), TQT_SLOT( formatParagraph() ),
actionCollection(), "format_paragraph" );
m_actionFormatParag->setToolTip( i18n( "Change paragraph margins, text flow, borders, bullets, numbering etc." ) );
m_actionFormatParag->setWhatsThis( i18n( "Change paragraph margins, text flow, borders, bullets, numbering etc.<p>Select text in multiple paragraphs to change the formatting of all selected paragraphs.<p>If no text is selected, the paragraph where the cursor is located will be changed." ) );
- m_actionFormatFrameSet = new KAction( i18n( "F&rame/Frameset Properties" ), 0,
+ m_actionFormatFrameSet = new TDEAction( i18n( "F&rame/Frameset Properties" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( formatFrameSet() ),
actionCollection(), "format_frameset" );
m_actionFormatFrameSet->setToolTip( i18n( "Alter frameset properties." ) );
m_actionFormatFrameSet->setWhatsThis( i18n( "Alter frameset properties.<p>Currently you can change the frame background." ) );
- m_actionFormatPage = new KAction( i18n( "Page &Layout..." ), 0,
+ m_actionFormatPage = new TDEAction( i18n( "Page &Layout..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( formatPage() ),
actionCollection(), "format_page" );
m_actionFormatPage->setToolTip( i18n( "Change properties of entire page." ) );
m_actionFormatPage->setWhatsThis( i18n( "Change properties of the entire page.<p>Currently you can change paper size, paper orientation, header and footer sizes, and column settings." ) );
- m_actionFormatFrameStylist = new KAction( i18n( "&Frame Style Manager" ), 0 /*shortcut?*/,
+ m_actionFormatFrameStylist = new TDEAction( i18n( "&Frame Style Manager" ), 0 /*shortcut?*/,
TQT_TQOBJECT(this), TQT_SLOT( extraFrameStylist() ),
actionCollection(), "frame_stylist" );
m_actionFormatFrameStylist->setToolTip( i18n( "Change attributes of framestyles." ) );
m_actionFormatFrameStylist->setWhatsThis( i18n( "Change background and borders of framestyles.<p>Multiple framestyles can be changed using the dialog box." ) );
- m_actionFormatStylist = new KAction( i18n( "&Style Manager" ), TQt::ALT + TQt::CTRL + TQt::Key_S,
+ m_actionFormatStylist = new TDEAction( i18n( "&Style Manager" ), TQt::ALT + TQt::CTRL + TQt::Key_S,
TQT_TQOBJECT(this), TQT_SLOT( extraStylist() ),
actionCollection(), "format_stylist" );
m_actionFormatStylist->setToolTip( i18n( "Change attributes of styles." ) );
m_actionFormatStylist->setWhatsThis( i18n( "Change font and paragraph attributes of styles.<p>Multiple styles can be changed using the dialog box." ) );
- m_actionFormatFontSize = new KFontSizeAction( i18n( "Font Size" ), 0,
+ m_actionFormatFontSize = new TDEFontSizeAction( i18n( "Font Size" ), 0,
actionCollection(), "format_fontsize" );
connect( m_actionFormatFontSize, TQT_SIGNAL( fontSizeChanged( int ) ),
TQT_TQOBJECT(this), TQT_SLOT( textSizeSelected( int ) ) );
- m_actionFontSizeIncrease = new KAction( i18n("Increase Font Size"), "fontsizeup", TQt::CTRL + TQt::Key_Greater, TQT_TQOBJECT(this), TQT_SLOT( increaseFontSize() ), actionCollection(), "increase_fontsize" );
- m_actionFontSizeDecrease = new KAction( i18n("Decrease Font Size"), "fontsizedown", TQt::CTRL + TQt::Key_Less, TQT_TQOBJECT(this), TQT_SLOT( decreaseFontSize() ), actionCollection(), "decrease_fontsize" );
+ m_actionFontSizeIncrease = new TDEAction( i18n("Increase Font Size"), "fontsizeup", TQt::CTRL + TQt::Key_Greater, TQT_TQOBJECT(this), TQT_SLOT( increaseFontSize() ), actionCollection(), "increase_fontsize" );
+ m_actionFontSizeDecrease = new TDEAction( i18n("Decrease Font Size"), "fontsizedown", TQt::CTRL + TQt::Key_Less, TQT_TQOBJECT(this), TQT_SLOT( decreaseFontSize() ), actionCollection(), "decrease_fontsize" );
#ifdef KFONTACTION_HAS_CRITERIA_ARG
- m_actionFormatFontFamily = new KFontAction( KFontChooser::SmoothScalableFonts,
+ m_actionFormatFontFamily = new TDEFontAction( TDEFontChooser::SmoothScalableFonts,
i18n( "Font Family" ), 0,
actionCollection(), "format_fontfamily" );
#else
- m_actionFormatFontFamily = new KFontAction( i18n( "Font Family" ), 0,
+ m_actionFormatFontFamily = new TDEFontAction( i18n( "Font Family" ), 0,
actionCollection(), "format_fontfamily" );
#endif
connect( m_actionFormatFontFamily, TQT_SIGNAL( activated( const TQString & ) ),
TQT_TQOBJECT(this), TQT_SLOT( textFontSelected( const TQString & ) ) );
- m_actionFormatStyleMenu = new KActionMenu( i18n( "St&yle" ), 0,
+ m_actionFormatStyleMenu = new TDEActionMenu( i18n( "St&yle" ), 0,
actionCollection(), "format_stylemenu" );
- m_actionFormatStyle = new KSelectAction( i18n( "St&yle" ), 0,
+ m_actionFormatStyle = new TDESelectAction( i18n( "St&yle" ), 0,
actionCollection(), "format_style" );
// In fact, binding a key to this action will simply re-apply the current style. Why not.
//m_actionFormatStyle->setShortcutConfigurable( false );
@@ -904,7 +904,7 @@ void KWView::setupActions()
TQT_TQOBJECT(this), TQT_SLOT( textStyleSelected( int ) ) );
updateStyleList();
- m_actionFormatDefault=new KAction( i18n( "Default Format" ), 0,
+ m_actionFormatDefault=new TDEAction( i18n( "Default Format" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( textDefaultFormat() ),
actionCollection(), "text_default" );
m_actionFormatDefault->setToolTip( i18n( "Change font and paragraph attributes to their default values." ) );
@@ -912,84 +912,84 @@ void KWView::setupActions()
// ----------------------- More format actions, for the toolbar only
- m_actionFormatBold = new KToggleAction( i18n( "&Bold" ), "text_bold", TQt::CTRL + TQt::Key_B,
+ m_actionFormatBold = new TDEToggleAction( i18n( "&Bold" ), "text_bold", TQt::CTRL + TQt::Key_B,
TQT_TQOBJECT(this), TQT_SLOT( textBold() ),
actionCollection(), "format_bold" );
- m_actionFormatItalic = new KToggleAction( i18n( "&Italic" ), "text_italic", TQt::CTRL + TQt::Key_I,
+ m_actionFormatItalic = new TDEToggleAction( i18n( "&Italic" ), "text_italic", TQt::CTRL + TQt::Key_I,
TQT_TQOBJECT(this), TQT_SLOT( textItalic() ),
actionCollection(), "format_italic" );
- m_actionFormatUnderline = new KToggleAction( i18n( "&Underline" ), "text_under", TQt::CTRL + TQt::Key_U,
+ m_actionFormatUnderline = new TDEToggleAction( i18n( "&Underline" ), "text_under", TQt::CTRL + TQt::Key_U,
TQT_TQOBJECT(this), TQT_SLOT( textUnderline() ),
actionCollection(), "format_underline" );
- m_actionFormatStrikeOut = new KToggleAction( i18n( "&Strike Out" ), "text_strike", 0 ,
+ m_actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "text_strike", 0 ,
TQT_TQOBJECT(this), TQT_SLOT( textStrikeOut() ),
actionCollection(), "format_strike" );
- m_actionFormatAlignLeft = new KToggleAction( i18n( "Align &Left" ), "text_left", TQt::CTRL + TQt::Key_L,
+ m_actionFormatAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "text_left", TQt::CTRL + TQt::Key_L,
TQT_TQOBJECT(this), TQT_SLOT( textAlignLeft() ),
actionCollection(), "format_alignleft" );
m_actionFormatAlignLeft->setExclusiveGroup( "align" );
m_actionFormatAlignLeft->setChecked( TRUE );
- m_actionFormatAlignCenter = new KToggleAction( i18n( "Align &Center" ), "text_center", TQt::CTRL + TQt::ALT + TQt::Key_C,
+ m_actionFormatAlignCenter = new TDEToggleAction( i18n( "Align &Center" ), "text_center", TQt::CTRL + TQt::ALT + TQt::Key_C,
TQT_TQOBJECT(this), TQT_SLOT( textAlignCenter() ),
actionCollection(), "format_aligncenter" );
m_actionFormatAlignCenter->setExclusiveGroup( "align" );
- m_actionFormatAlignRight = new KToggleAction( i18n( "Align &Right" ), "text_right", TQt::CTRL + TQt::ALT + TQt::Key_R,
+ m_actionFormatAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "text_right", TQt::CTRL + TQt::ALT + TQt::Key_R,
TQT_TQOBJECT(this), TQT_SLOT( textAlignRight() ),
actionCollection(), "format_alignright" );
m_actionFormatAlignRight->setExclusiveGroup( "align" );
- m_actionFormatAlignBlock = new KToggleAction( i18n( "Align &Block" ), "text_block", TQt::CTRL + TQt::Key_J,
+ m_actionFormatAlignBlock = new TDEToggleAction( i18n( "Align &Block" ), "text_block", TQt::CTRL + TQt::Key_J,
TQT_TQOBJECT(this), TQT_SLOT( textAlignBlock() ),
actionCollection(), "format_alignblock" );
m_actionFormatAlignBlock->setExclusiveGroup( "align" );
- m_actionFormatSpacingSingle = new KToggleAction( i18n( "Line Spacing &1" ), "spacesimple", TQt::CTRL + TQt::Key_1,
+ m_actionFormatSpacingSingle = new TDEToggleAction( i18n( "Line Spacing &1" ), "spacesimple", TQt::CTRL + TQt::Key_1,
TQT_TQOBJECT(this), TQT_SLOT( textSpacingSingle() ),
actionCollection(), "format_spacingsingle" );
m_actionFormatSpacingSingle->setExclusiveGroup( "spacing" );
- m_actionFormatSpacingOneAndHalf = new KToggleAction( i18n( "Line Spacing 1.&5" ), "spacedouble", TQt::CTRL + TQt::Key_5,
+ m_actionFormatSpacingOneAndHalf = new TDEToggleAction( i18n( "Line Spacing 1.&5" ), "spacedouble", TQt::CTRL + TQt::Key_5,
TQT_TQOBJECT(this), TQT_SLOT( textSpacingOneAndHalf() ),
actionCollection(), "format_spacing15" );
m_actionFormatSpacingOneAndHalf->setExclusiveGroup( "spacing" );
- m_actionFormatSpacingDouble = new KToggleAction( i18n( "Line Spacing &2" ), "spacetriple", TQt::CTRL + TQt::Key_2,
+ m_actionFormatSpacingDouble = new TDEToggleAction( i18n( "Line Spacing &2" ), "spacetriple", TQt::CTRL + TQt::Key_2,
TQT_TQOBJECT(this), TQT_SLOT( textSpacingDouble() ),
actionCollection(), "format_spacingdouble" );
m_actionFormatSpacingDouble->setExclusiveGroup( "spacing" );
- m_actionFormatSuper = new KToggleAction( i18n( "Superscript" ), "super", 0,
+ m_actionFormatSuper = new TDEToggleAction( i18n( "Superscript" ), "super", 0,
TQT_TQOBJECT(this), TQT_SLOT( textSuperScript() ),
actionCollection(), "format_super" );
//m_actionFormatSuper->setExclusiveGroup( "valign" );
- m_actionFormatSub = new KToggleAction( i18n( "Subscript" ), "sub", 0,
+ m_actionFormatSub = new TDEToggleAction( i18n( "Subscript" ), "sub", 0,
TQT_TQOBJECT(this), TQT_SLOT( textSubScript() ),
actionCollection(), "format_sub" );
//m_actionFormatSub->setExclusiveGroup( "valign" );
- m_actionFormatIncreaseIndent= new KAction( i18n( "Increase Indent" ),
+ m_actionFormatIncreaseIndent= new TDEAction( i18n( "Increase Indent" ),
TQApplication::reverseLayout() ? "format_decreaseindent" : "format_increaseindent", 0,
TQT_TQOBJECT(this), TQT_SLOT( textIncreaseIndent() ),
actionCollection(), "format_increaseindent" );
- m_actionFormatDecreaseIndent= new KAction( i18n( "Decrease Indent" ),
+ m_actionFormatDecreaseIndent= new TDEAction( i18n( "Decrease Indent" ),
TQApplication::reverseLayout() ? "format_increaseindent" :"format_decreaseindent", 0,
TQT_TQOBJECT(this), TQT_SLOT( textDecreaseIndent() ),
actionCollection(), "format_decreaseindent" );
- m_actionFormatColor = new TKSelectColorAction( i18n( "Text Color..." ), TKSelectColorAction::TextColor,
+ m_actionFormatColor = new TTDESelectColorAction( i18n( "Text Color..." ), TTDESelectColorAction::TextColor,
TQT_TQOBJECT(this), TQT_SLOT( textColor() ),
actionCollection(), "format_color", true );
m_actionFormatColor->setDefaultColor(TQColor());
- //actionFormatList = new KToggleAction( i18n( "List" ), "enumList", 0,
+ //actionFormatList = new TDEToggleAction( i18n( "List" ), "enumList", 0,
// TQT_TQOBJECT(this), TQT_SLOT( textList() ),
// actionCollection(), "format_list" );
//actionFormatList->setExclusiveGroup( "style" );
- m_actionFormatNumber = new KActionMenu( i18n( "Number" ),
+ m_actionFormatNumber = new TDEActionMenu( i18n( "Number" ),
"enumList", actionCollection(), "format_number" );
m_actionFormatNumber->setDelayed( false );
- m_actionFormatBullet = new KActionMenu( i18n( "Bullet" ),
+ m_actionFormatBullet = new TDEActionMenu( i18n( "Bullet" ),
"unsortedList", actionCollection(), "format_bullet" );
m_actionFormatBullet->setDelayed( false );
TQPtrList<KoCounterStyleWidget::StyleRepresenter> stylesList;
@@ -998,7 +998,7 @@ void KWView::setupActions()
for ( ; styleIt.current() ; ++styleIt ) {
// Dynamically create toggle-actions for each list style.
// This approach allows to edit toolbars and extract separate actions from this menu
- KToggleAction* act = new KToggleAction( styleIt.current()->name(), /*TODO icon,*/
+ TDEToggleAction* act = new TDEToggleAction( styleIt.current()->name(), /*TODO icon,*/
0, TQT_TQOBJECT(this), TQT_SLOT( slotCounterStyleSelected() ),
actionCollection(), TQString("counterstyle_%1").arg( styleIt.current()->style() ).latin1() );
act->setExclusiveGroup( "counterstyle" );
@@ -1014,24 +1014,24 @@ void KWView::setupActions()
// ---------------------------- frame toolbar actions
- m_actionFrameStyleMenu = new KActionMenu( i18n( "Fra&mestyle" ), 0,
+ m_actionFrameStyleMenu = new TDEActionMenu( i18n( "Fra&mestyle" ), 0,
actionCollection(), "frame_stylemenu" );
- m_actionFrameStyle = new KSelectAction( i18n( "Framest&yle" ), 0,
+ m_actionFrameStyle = new TDESelectAction( i18n( "Framest&yle" ), 0,
actionCollection(), "frame_style" );
connect( m_actionFrameStyle, TQT_SIGNAL( activated( int ) ),
TQT_TQOBJECT(this), TQT_SLOT( frameStyleSelected( int ) ) );
updateFrameStyleList();
- m_actionBorderOutline = new KToggleAction( i18n( "Border Outline" ), "borderoutline",
+ m_actionBorderOutline = new TDEToggleAction( i18n( "Border Outline" ), "borderoutline",
0, TQT_TQOBJECT(this), TQT_SLOT( borderOutline() ), actionCollection(), "border_outline" );
- m_actionBorderLeft = new KToggleAction( i18n( "Border Left" ), "borderleft",
+ m_actionBorderLeft = new TDEToggleAction( i18n( "Border Left" ), "borderleft",
0, TQT_TQOBJECT(this), TQT_SLOT( borderLeft() ), actionCollection(), "border_left" );
- m_actionBorderRight = new KToggleAction( i18n( "Border Right" ), "borderright",
+ m_actionBorderRight = new TDEToggleAction( i18n( "Border Right" ), "borderright",
0, TQT_TQOBJECT(this), TQT_SLOT( borderRight() ), actionCollection(), "border_right" );
- m_actionBorderTop = new KToggleAction( i18n( "Border Top" ), "bordertop",
+ m_actionBorderTop = new TDEToggleAction( i18n( "Border Top" ), "bordertop",
0, TQT_TQOBJECT(this), TQT_SLOT( borderTop() ), actionCollection(), "border_top" );
- m_actionBorderBottom = new KToggleAction( i18n( "Border Bottom" ), "borderbottom",
+ m_actionBorderBottom = new TDEToggleAction( i18n( "Border Bottom" ), "borderbottom",
0, TQT_TQOBJECT(this), TQT_SLOT( borderBottom() ), actionCollection(), "border_bottom" );
- m_actionBorderStyle = new KSelectAction( i18n( "Border Style" ),
+ m_actionBorderStyle = new TDESelectAction( i18n( "Border Style" ),
0, actionCollection(), "border_style" );
TQStringList lst;
@@ -1042,7 +1042,7 @@ void KWView::setupActions()
lst << KoBorder::getStyle( KoBorder::DASH_DOT_DOT );
lst << KoBorder::getStyle( KoBorder::DOUBLE_LINE );
m_actionBorderStyle->setItems( lst );
- m_actionBorderWidth = new KSelectAction( i18n( "Border Width" ), 0,
+ m_actionBorderWidth = new TDESelectAction( i18n( "Border Width" ), 0,
actionCollection(), "border_width" );
lst.clear();
for ( unsigned int i = 1; i < 10; i++ )
@@ -1050,11 +1050,11 @@ void KWView::setupActions()
m_actionBorderWidth->setItems( lst );
m_actionBorderWidth->setCurrentItem( 0 );
- m_actionBorderColor = new TKSelectColorAction( i18n("Border Color"), TKSelectColorAction::LineColor, actionCollection(), "border_color", true );
+ m_actionBorderColor = new TTDESelectColorAction( i18n("Border Color"), TTDESelectColorAction::LineColor, actionCollection(), "border_color", true );
m_actionBorderColor->setDefaultColor(TQColor());
- m_actionBackgroundColor = new TKSelectColorAction( i18n( "Text Background Color..." ), TKSelectColorAction::FillColor, actionCollection(),"border_backgroundcolor", true);
+ m_actionBackgroundColor = new TTDESelectColorAction( i18n( "Text Background Color..." ), TTDESelectColorAction::FillColor, actionCollection(),"border_backgroundcolor", true);
m_actionBackgroundColor->setToolTip( i18n( "Change background color for currently selected text." ) );
m_actionBackgroundColor->setWhatsThis( i18n( "Change background color for currently selected text." ) );
@@ -1062,56 +1062,56 @@ void KWView::setupActions()
m_actionBackgroundColor->setDefaultColor(TQColor());
// ---------------------- Table menu
- m_actionTablePropertiesMenu = new KAction( i18n( "&Properties" ), 0,
+ m_actionTablePropertiesMenu = new TDEAction( i18n( "&Properties" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( tableProperties() ),
actionCollection(), "table_propertiesmenu" );
m_actionTablePropertiesMenu->setToolTip( i18n( "Adjust properties of the current table." ) );
m_actionTablePropertiesMenu->setWhatsThis( i18n( "Adjust properties of the current table." ) );
- m_actionTableInsertRow = new KAction( i18n( "&Insert Row..." ), "insert_table_row", 0,
+ m_actionTableInsertRow = new TDEAction( i18n( "&Insert Row..." ), "insert_table_row", 0,
TQT_TQOBJECT(this), TQT_SLOT( tableInsertRow() ),
actionCollection(), "table_insrow" );
m_actionTableInsertRow->setToolTip( i18n( "Insert one or more rows at cursor location." ) );
m_actionTableInsertRow->setWhatsThis( i18n( "Insert one or more rows at current cursor location." ) );
- m_actionTableInsertCol = new KAction( i18n( "I&nsert Column..." ), "insert_table_col", 0,
+ m_actionTableInsertCol = new TDEAction( i18n( "I&nsert Column..." ), "insert_table_col", 0,
TQT_TQOBJECT(this), TQT_SLOT( tableInsertCol() ),
actionCollection(), "table_inscol" );
m_actionTableInsertCol->setToolTip( i18n( "Insert one or more columns into the current table." ) );
m_actionTableInsertCol->setWhatsThis( i18n( "Insert one or more columns into the current table." ) );
- m_actionTableDelRow = new KAction( 0, "delete_table_row", 0,
+ m_actionTableDelRow = new TDEAction( 0, "delete_table_row", 0,
TQT_TQOBJECT(this), TQT_SLOT( tableDeleteRow() ),
actionCollection(), "table_delrow" );
m_actionTableDelRow->setToolTip( i18n( "Delete selected rows from the current table." ) );
m_actionTableDelRow->setWhatsThis( i18n( "Delete selected rows from the current table." ) );
- m_actionTableDelCol = new KAction( 0, "delete_table_col", 0,
+ m_actionTableDelCol = new TDEAction( 0, "delete_table_col", 0,
TQT_TQOBJECT(this), TQT_SLOT( tableDeleteCol() ),
actionCollection(), "table_delcol" );
m_actionTableDelCol->setToolTip( i18n( "Delete selected columns from the current table." ) );
m_actionTableDelCol->setWhatsThis( i18n( "Delete selected columns from the current table." ) );
- m_actionTableResizeCol = new KAction( i18n( "Resize Column..." ), 0,
+ m_actionTableResizeCol = new TDEAction( i18n( "Resize Column..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( tableResizeCol() ),
actionCollection(), "table_resizecol" );
m_actionTableResizeCol->setToolTip( i18n( "Change the width of the currently selected column." ) );
m_actionTableResizeCol->setWhatsThis( i18n( "Change the width of the currently selected column." ) );
- m_actionTableJoinCells = new KAction( i18n( "&Join Cells" ), 0,
+ m_actionTableJoinCells = new TDEAction( i18n( "&Join Cells" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( tableJoinCells() ),
actionCollection(), "table_joincells" );
m_actionTableJoinCells->setToolTip( i18n( "Join two or more cells into one large cell." ) );
m_actionTableJoinCells->setWhatsThis( i18n( "Join two or more cells into one large cell.<p>This is a good way to create titles and labels within a table." ) );
- m_actionTableSplitCells= new KAction( i18n( "&Split Cell..." ), 0,
+ m_actionTableSplitCells= new TDEAction( i18n( "&Split Cell..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( tableSplitCells() ),
actionCollection(), "table_splitcells" );
m_actionTableSplitCells->setToolTip( i18n( "Split one cell into two or more cells." ) );
m_actionTableSplitCells->setWhatsThis( i18n( "Split one cell into two or more cells.<p>Cells can be split horizontally, vertically or both directions at once." ) );
- m_actionTableProtectCells= new KToggleAction( i18n( "Protect Cells" ), 0, 0, 0,
+ m_actionTableProtectCells= new TDEToggleAction( i18n( "Protect Cells" ), 0, 0, 0,
actionCollection(), "table_protectcells" );
m_actionTableProtectCells->setToolTip( i18n( "Prevent changes to content of selected cells." ) );
connect (m_actionTableProtectCells, TQT_SIGNAL( toggled(bool) ), this,
@@ -1119,41 +1119,41 @@ void KWView::setupActions()
m_actionTableProtectCells->setWhatsThis( i18n( "Toggles cell protection on and off.<br><br>When cell protection is on, the user can not alter the content or formatting of the text within the cell." ) );
- m_actionTableUngroup = new KAction( i18n( "&Ungroup Table" ), 0,
+ m_actionTableUngroup = new TDEAction( i18n( "&Ungroup Table" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( tableUngroupTable() ),
actionCollection(), "table_ungroup" );
m_actionTableUngroup->setToolTip( i18n( "Break a table into individual frames." ) );
m_actionTableUngroup->setWhatsThis( i18n( "Break a table into individual frames<p>Each frame can be moved independently around the page." ) );
- m_actionTableDelete = new KAction( i18n( "Delete &Table" ), 0,
+ m_actionTableDelete = new TDEAction( i18n( "Delete &Table" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( tableDelete() ),
actionCollection(), "table_delete" );
m_actionTableDelete->setToolTip( i18n( "Delete the entire table." ) );
m_actionTableDelete->setWhatsThis( i18n( "Deletes all cells and the content within the cells of the currently selected table." ) );
- m_actionTableStylist = new KAction( i18n( "T&able Style Manager" ), 0,
+ m_actionTableStylist = new TDEAction( i18n( "T&able Style Manager" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( tableStylist() ),
actionCollection(), "table_stylist" );
m_actionTableStylist->setToolTip( i18n( "Change attributes of tablestyles." ) );
m_actionTableStylist->setWhatsThis( i18n( "Change textstyle and framestyle of the tablestyles.<p>Multiple tablestyles can be changed using the dialog box." ) );
- m_actionTableStyleMenu = new KActionMenu( i18n( "Table&style" ), 0,
+ m_actionTableStyleMenu = new TDEActionMenu( i18n( "Table&style" ), 0,
actionCollection(), "table_stylemenu" );
- m_actionTableStyle = new KSelectAction( i18n( "Table&style" ), 0,
+ m_actionTableStyle = new TDESelectAction( i18n( "Table&style" ), 0,
actionCollection(), "table_style" );
connect( m_actionTableStyle, TQT_SIGNAL( activated( int ) ),
TQT_TQOBJECT(this), TQT_SLOT( tableStyleSelected( int ) ) );
updateTableStyleList();
- m_actionConvertTableToText = new KAction( i18n( "Convert Table to Text" ), 0,
+ m_actionConvertTableToText = new TDEAction( i18n( "Convert Table to Text" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( convertTableToText() ),
actionCollection(), "convert_table_to_text" );
- m_actionSortText= new KAction( i18n( "Sort Text..." ), 0,
+ m_actionSortText= new TDEAction( i18n( "Sort Text..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( sortText() ),
actionCollection(), "sort_text" );
- m_actionAddPersonalExpression= new KAction( i18n( "Add Expression" ), 0,
+ m_actionAddPersonalExpression= new TDEAction( i18n( "Add Expression" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( addPersonalExpression() ),
actionCollection(), "add_personal_expression" );
@@ -1161,30 +1161,30 @@ void KWView::setupActions()
// ---------------------- Tools menu
- m_actionAllowAutoFormat = new KToggleAction( i18n( "Enable Autocorrection" ), 0,
+ m_actionAllowAutoFormat = new TDEToggleAction( i18n( "Enable Autocorrection" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotAllowAutoFormat() ),
actionCollection(), "enable_autocorrection" );
m_actionAllowAutoFormat->setCheckedState(i18n("Disable Autocorrection"));
m_actionAllowAutoFormat->setToolTip( i18n( "Toggle autocorrection on and off." ) );
m_actionAllowAutoFormat->setWhatsThis( i18n( "Toggle autocorrection on and off." ) );
- m_actionAutoFormat = new KAction( i18n( "Configure &Autocorrection..." ), 0,
+ m_actionAutoFormat = new TDEAction( i18n( "Configure &Autocorrection..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( extraAutoFormat() ),
actionCollection(), "configure_autocorrection" );
m_actionAutoFormat->setToolTip( i18n( "Change autocorrection options." ) );
m_actionAutoFormat->setWhatsThis( i18n( "Change autocorrection options including:<p> <UL><LI><P>exceptions to autocorrection</P> <LI><P>add/remove autocorrection replacement text</P> <LI><P>and basic autocorrection options</P>." ) );
- m_actionEditCustomVarsEdit = new KAction( i18n( "Custom &Variables..." ), 0,
+ m_actionEditCustomVarsEdit = new TDEAction( i18n( "Custom &Variables..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( editCustomVars() ), // TODO: new dialog w add etc.
actionCollection(), "custom_vars" );
- m_actionEditPersonnalExpr=new KAction( i18n( "Edit &Personal Expressions..." ), 0,
+ m_actionEditPersonnalExpr=new TDEAction( i18n( "Edit &Personal Expressions..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( editPersonalExpr() ),
actionCollection(), "personal_expr" );
m_actionEditPersonnalExpr->setToolTip( i18n( "Add or change one or more personal expressions." ) );
m_actionEditPersonnalExpr->setWhatsThis( i18n( "Add or change one or more personal expressions.<p>Personal expressions are a way to quickly insert commonly used phrases or text into your document." ) );
- m_actionChangeCase=new KAction( i18n( "Change Case..." ), 0,
+ m_actionChangeCase=new TDEAction( i18n( "Change Case..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( changeCaseOfText() ),
actionCollection(), "change_case" );
m_actionChangeCase->setToolTip( i18n( "Alter the capitalization of selected text." ) );
@@ -1194,56 +1194,56 @@ void KWView::setupActions()
m_actionConfigure = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()), actionCollection(), "configure" );
//------------------------ Menu frameSet
- KAction *actionChangePicture=new KAction( i18n( "Change Picture..." ),"frame_image",0,
+ TDEAction *actionChangePicture=new TDEAction( i18n( "Change Picture..." ),"frame_image",0,
TQT_TQOBJECT(this), TQT_SLOT( changePicture() ),
actionCollection(), "change_picture" );
actionChangePicture->setToolTip( i18n( "Change the picture in the currently selected frame." ) );
actionChangePicture->setWhatsThis( i18n( "You can specify a different picture in the current frame.<br><br>KWord automatically resizes the new picture to fit within the old frame." ) );
- m_actionConfigureHeaderFooter=new KAction( i18n( "Configure Header/Footer..." ), 0,
+ m_actionConfigureHeaderFooter=new TDEAction( i18n( "Configure Header/Footer..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( configureHeaderFooter() ),
actionCollection(), "configure_headerfooter" );
m_actionConfigureHeaderFooter->setToolTip( i18n( "Configure the currently selected header or footer." ) );
m_actionConfigureHeaderFooter->setWhatsThis( i18n( "Configure the currently selected header or footer." ) );
- m_actionInlineFrame = new KToggleAction( i18n( "Inline Frame" ), 0,
+ m_actionInlineFrame = new TDEToggleAction( i18n( "Inline Frame" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( inlineFrame() ),
actionCollection(), "inline_frame" );
m_actionInlineFrame->setToolTip( i18n( "Convert current frame to an inline frame." ) );
m_actionInlineFrame->setWhatsThis( i18n( "Convert the current frame to an inline frame.<br><br>Place the inline frame within the text at the point nearest to the frames current position." ) );
- m_actionOpenLink = new KAction( i18n( "Open Link" ), 0,
+ m_actionOpenLink = new TDEAction( i18n( "Open Link" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( openLink() ),
actionCollection(), "open_link" );
m_actionOpenLink->setToolTip( i18n( "Open the link with the appropriate application." ) );
m_actionOpenLink->setWhatsThis( i18n( "Open the link with the appropriate application.<br><br>Web addresses are opened in a browser.<br>Email addresses begin a new message addressed to the link.<br>File links are opened by the appropriate viewer or editor." ) );
- m_actionChangeLink=new KAction( i18n("Change Link..."), 0,
+ m_actionChangeLink=new TDEAction( i18n("Change Link..."), 0,
TQT_TQOBJECT(this), TQT_SLOT(changeLink()),
actionCollection(), "change_link");
m_actionChangeLink->setToolTip( i18n( "Change the content of the currently selected link." ) );
m_actionChangeLink->setWhatsThis( i18n( "Change the details of the currently selected link." ) );
- m_actionCopyLink = new KAction( i18n( "Copy Link" ), 0,
+ m_actionCopyLink = new TDEAction( i18n( "Copy Link" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( copyLink() ),
actionCollection(), "copy_link" );
- m_actionAddLinkToBookmak = new KAction( i18n( "Add to Bookmark" ), 0,
+ m_actionAddLinkToBookmak = new TDEAction( i18n( "Add to Bookmark" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( addToBookmark() ),
actionCollection(), "add_to_bookmark" );
- m_actionRemoveLink = new KAction( i18n( "Remove Link" ), 0,
+ m_actionRemoveLink = new TDEAction( i18n( "Remove Link" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( removeLink() ),
actionCollection(), "remove_link" );
- m_actionShowDocStruct = new KToggleAction( i18n( "Show Doc Structure" ), 0,
+ m_actionShowDocStruct = new TDEToggleAction( i18n( "Show Doc Structure" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( showDocStructure() ),
actionCollection(), "show_docstruct" );
m_actionShowDocStruct->setCheckedState(i18n("Hide Doc Structure"));
m_actionShowDocStruct->setToolTip( i18n( "Open document structure sidebar." ) );
m_actionShowDocStruct->setWhatsThis( i18n( "Open document structure sidebar.<p>This sidebar helps you organize your document and quickly find pictures, tables etc." ) );
- m_actionShowRuler = new KToggleAction( i18n( "Show Rulers" ), 0,
+ m_actionShowRuler = new TDEToggleAction( i18n( "Show Rulers" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( showRuler() ),
actionCollection(), "show_ruler" );
m_actionShowRuler->setCheckedState(i18n("Hide Rulers"));
@@ -1253,16 +1253,16 @@ void KWView::setupActions()
"be used to position tabulators among others.<p>Uncheck this to disable "
"the rulers from being displayed." ) );
- m_actionViewShowGrid = new KToggleAction( i18n( "Show Grid" ), 0,
+ m_actionViewShowGrid = new TDEToggleAction( i18n( "Show Grid" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( viewGrid() ),
actionCollection(), "view_grid" );
m_actionViewShowGrid->setCheckedState(i18n("Hide Grid"));
- m_actionViewSnapToGrid= new KToggleAction( i18n( "Snap to Grid" ), 0,
+ m_actionViewSnapToGrid= new TDEToggleAction( i18n( "Snap to Grid" ), 0,
TQT_TQOBJECT(this), TQT_SLOT(viewSnapToGrid() ),
actionCollection(), "view_snaptogrid" );
- m_actionConfigureCompletion = new KAction( i18n( "Configure C&ompletion..." ), 0,
+ m_actionConfigureCompletion = new TDEAction( i18n( "Configure C&ompletion..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( configureCompletion() ),
actionCollection(), "configure_completion" );
m_actionConfigureCompletion->setToolTip( i18n( "Change the words and options for autocompletion." ) );
@@ -1270,139 +1270,139 @@ void KWView::setupActions()
// ------------------- Actions with a key binding and no GUI item
- new KAction( i18n( "Insert Non-Breaking Space" ), TQt::CTRL+TQt::Key_Space,
+ new TDEAction( i18n( "Insert Non-Breaking Space" ), TQt::CTRL+TQt::Key_Space,
TQT_TQOBJECT(this), TQT_SLOT( slotNonbreakingSpace() ), actionCollection(), "nonbreaking_space" );
- new KAction( i18n( "Insert Non-Breaking Hyphen" ), TQt::CTRL+TQt::SHIFT+TQt::Key_Minus,
+ new TDEAction( i18n( "Insert Non-Breaking Hyphen" ), TQt::CTRL+TQt::SHIFT+TQt::Key_Minus,
TQT_TQOBJECT(this), TQT_SLOT( slotNonbreakingHyphen() ), actionCollection(), "nonbreaking_hyphen" );
- new KAction( i18n( "Insert Soft Hyphen" ), TQt::CTRL+TQt::Key_Minus,
+ new TDEAction( i18n( "Insert Soft Hyphen" ), TQt::CTRL+TQt::Key_Minus,
TQT_TQOBJECT(this), TQT_SLOT( slotSoftHyphen() ), actionCollection(), "soft_hyphen" );
- new KAction( i18n( "Line Break" ), TQt::SHIFT+TQt::Key_Return,
+ new TDEAction( i18n( "Line Break" ), TQt::SHIFT+TQt::Key_Return,
TQT_TQOBJECT(this), TQT_SLOT( slotLineBreak() ), actionCollection(), "line_break" );
- new KAction( i18n( "Completion" ), KStdAccel::shortcut(KStdAccel::TextCompletion), TQT_TQOBJECT(this), TQT_SLOT( slotCompletion() ), actionCollection(), "completion" );
+ new TDEAction( i18n( "Completion" ), TDEStdAccel::shortcut(TDEStdAccel::TextCompletion), TQT_TQOBJECT(this), TQT_SLOT( slotCompletion() ), actionCollection(), "completion" );
- new KAction( i18n( "Increase Numbering Level" ), TQt::ALT+TQt::Key_Right,
+ new TDEAction( i18n( "Increase Numbering Level" ), TQt::ALT+TQt::Key_Right,
TQT_TQOBJECT(this), TQT_SLOT( slotIncreaseNumberingLevel() ), actionCollection(), "increase_numbering_level" );
- new KAction( i18n( "Decrease Numbering Level" ), TQt::ALT+TQt::Key_Left,
+ new TDEAction( i18n( "Decrease Numbering Level" ), TQt::ALT+TQt::Key_Left,
TQT_TQOBJECT(this), TQT_SLOT( slotDecreaseNumberingLevel() ), actionCollection(), "decrease_numbering_level" );
// --------
- m_actionEditCustomVars = new KAction( i18n( "Edit Variable..." ), 0,
+ m_actionEditCustomVars = new TDEAction( i18n( "Edit Variable..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( editCustomVariable() ),
actionCollection(), "edit_customvars" );
- m_actionApplyAutoFormat= new KAction( i18n( "Apply Autocorrection" ), 0,
+ m_actionApplyAutoFormat= new TDEAction( i18n( "Apply Autocorrection" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( applyAutoFormat() ),
actionCollection(), "apply_autoformat" );
m_actionApplyAutoFormat->setToolTip( i18n( "Manually force KWord to scan the entire document and apply autocorrection." ) );
m_actionApplyAutoFormat->setWhatsThis( i18n( "Manually force KWord to scan the entire document and apply autocorrection." ) );
- m_actionCreateStyleFromSelection = new KAction( i18n( "Create Style From Selection..." ), 0,
+ m_actionCreateStyleFromSelection = new TDEAction( i18n( "Create Style From Selection..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( createStyleFromSelection()),
actionCollection(), "create_style" );
m_actionCreateStyleFromSelection->setToolTip( i18n( "Create a new style based on the currently selected text." ) );
m_actionCreateStyleFromSelection->setWhatsThis( i18n( "Create a new style based on the currently selected text." ) ); // ## "on the current paragraph, taking the formatting from where the cursor is. Selecting text isn't even needed."
- m_actionConfigureFootEndNote = new KAction( i18n( "&Footnote..." ), 0,
+ m_actionConfigureFootEndNote = new TDEAction( i18n( "&Footnote..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( configureFootEndNote()),
actionCollection(), "format_footendnote" );
m_actionConfigureFootEndNote->setToolTip( i18n( "Change the look of footnotes." ) );
m_actionConfigureFootEndNote->setWhatsThis( i18n( "Change the look of footnotes." ) );
- m_actionEditFootEndNote= new KAction( i18n("Edit Footnote"), 0,
+ m_actionEditFootEndNote= new TDEAction( i18n("Edit Footnote"), 0,
TQT_TQOBJECT(this), TQT_SLOT( editFootEndNote()),
actionCollection(), "edit_footendnote" );
m_actionEditFootEndNote->setToolTip( i18n( "Change the content of the currently selected footnote." ) );
m_actionEditFootEndNote->setWhatsThis( i18n( "Change the content of the currently selected footnote." ) );
- m_actionChangeFootNoteType = new KAction( i18n("Change Footnote/Endnote Parameter"), 0,
+ m_actionChangeFootNoteType = new TDEAction( i18n("Change Footnote/Endnote Parameter"), 0,
TQT_TQOBJECT(this), TQT_SLOT( changeFootNoteType() ),
actionCollection(), "change_footendtype");
- m_actionSavePicture= new KAction( i18n("Save Picture As..."), 0,
+ m_actionSavePicture= new TDEAction( i18n("Save Picture As..."), 0,
TQT_TQOBJECT(this), TQT_SLOT( savePicture() ),
actionCollection(), "save_picture");
m_actionSavePicture->setToolTip( i18n( "Save the picture in a separate file." ) );
m_actionSavePicture->setWhatsThis( i18n( "Save the picture in the currently selected frame in a separate file, outside the KWord document." ) );
- m_actionAllowBgSpellCheck = new KToggleAction( i18n( "Autospellcheck" ), 0,
+ m_actionAllowBgSpellCheck = new TDEToggleAction( i18n( "Autospellcheck" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( autoSpellCheck() ),
actionCollection(), "tool_auto_spellcheck" );
- m_actionGoToFootEndNote = new KAction( TQString() /*set dynamically*/, 0,
+ m_actionGoToFootEndNote = new TDEAction( TQString() /*set dynamically*/, 0,
TQT_TQOBJECT(this), TQT_SLOT( goToFootEndNote() ),
actionCollection(), "goto_footendnote" );
// Document Structure Area popup menu.
- m_actionDocStructEdit = new KAction( i18n( "Edit Text" ), 0,
+ m_actionDocStructEdit = new TDEAction( i18n( "Edit Text" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructEdit() ),
actionCollection(), "docstruct_edit" );
- m_actionDocStructSpeak = new KAction( i18n("Speak Text" ), 0,
+ m_actionDocStructSpeak = new TDEAction( i18n("Speak Text" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructSpeak() ),
actionCollection(), "docstruct_speak" );
- m_actionDocStructSelect = new KAction( i18n( "Show" ), 0,
+ m_actionDocStructSelect = new TDEAction( i18n( "Show" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructSelect() ),
actionCollection(), "docstruct_select" );
- m_actionDocStructDelete = new KAction( i18n( "Delete Frame" ), 0,
+ m_actionDocStructDelete = new TDEAction( i18n( "Delete Frame" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructDelete() ),
actionCollection(), "docstruct_delete" );
- m_actionDocStructProperties = new KAction( i18n( "Properties" ), 0,
+ m_actionDocStructProperties = new TDEAction( i18n( "Properties" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( docStructProperties() ),
actionCollection(), "docstruct_properties" );
- m_actionAddBookmark= new KAction( i18n( "&Bookmark..." ), 0,
+ m_actionAddBookmark= new TDEAction( i18n( "&Bookmark..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( addBookmark() ),
actionCollection(), "add_bookmark" );
- m_actionSelectBookmark= new KAction( i18n( "Select &Bookmark..." ), 0,
+ m_actionSelectBookmark= new TDEAction( i18n( "Select &Bookmark..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( selectBookmark() ),
actionCollection(), "select_bookmark" );
- m_actionImportStyle= new KAction( i18n( "Import Styles..." ), 0,
+ m_actionImportStyle= new TDEAction( i18n( "Import Styles..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( importStyle() ),
actionCollection(), "import_style" );
- m_actionCreateFrameStyle = new KAction( i18n( "&Create Framestyle From Frame..." ), 0,
+ m_actionCreateFrameStyle = new TDEAction( i18n( "&Create Framestyle From Frame..." ), 0,
TQT_TQOBJECT(this), TQT_SLOT( createFrameStyle()),
actionCollection(), "create_framestyle" );
m_actionCreateFrameStyle->setToolTip( i18n( "Create a new style based on the currently selected frame." ) );
m_actionCreateFrameStyle->setWhatsThis( i18n( "Create a new framestyle based on the currently selected frame." ) );
#if 0 // re-enable after fixing
- m_actionInsertDirectCursor = new KToggleAction( i18n( "Type Anywhere Cursor" ), 0,
+ m_actionInsertDirectCursor = new TDEToggleAction( i18n( "Type Anywhere Cursor" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( insertDirectCursor() ),
actionCollection(), "direct_cursor" );
#endif
- m_actionConvertToTextBox = new KAction( i18n( "Convert to Text Box" ), 0,
+ m_actionConvertToTextBox = new TDEAction( i18n( "Convert to Text Box" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( convertToTextBox() ),
actionCollection(), "convert_to_text_box" );
- m_actionSpellIgnoreAll = new KAction( i18n( "Ignore All" ), 0,
+ m_actionSpellIgnoreAll = new TDEAction( i18n( "Ignore All" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotAddIgnoreAllWord() ),
actionCollection(), "ignore_all" );
- m_actionAddWordToPersonalDictionary=new KAction( i18n( "Add Word to Dictionary" ),0,
+ m_actionAddWordToPersonalDictionary=new TDEAction( i18n( "Add Word to Dictionary" ),0,
TQT_TQOBJECT(this), TQT_SLOT( addWordToDictionary() ),
actionCollection(), "add_word_to_dictionary" );
- m_actionEmbeddedStoreInternal=new KToggleAction( i18n( "Store Document Internally" ),0,
+ m_actionEmbeddedStoreInternal=new TDEToggleAction( i18n( "Store Document Internally" ),0,
TQT_TQOBJECT(this), TQT_SLOT( embeddedStoreInternal() ),
actionCollection(), "embedded_store_internal" );
- m_actionGoToDocumentStructure=new KAction( i18n( "Go to Document Structure" ), KShortcut("Alt+1"),
+ m_actionGoToDocumentStructure=new TDEAction( i18n( "Go to Document Structure" ), TDEShortcut("Alt+1"),
TQT_TQOBJECT(this), TQT_SLOT( goToDocumentStructure() ),
actionCollection(), "goto_document_structure" );
- m_actionGoToDocument=new KAction( i18n( "Go to Document" ), KShortcut("Alt+2"),
+ m_actionGoToDocument=new TDEAction( i18n( "Go to Document" ), TDEShortcut("Alt+2"),
TQT_TQOBJECT(this), TQT_SLOT( goToDocument() ),
actionCollection(), "goto_document" );
// For RMB inside a cell, see KWFrameView::showPopup
// This isn't a dynamic list; it's only plugged/unplugged depending on the context.
// If you change the contents of that list, check ~KWView.
- m_tableActionList.append( new KActionSeparator(actionCollection()) );
+ m_tableActionList.append( new TDEActionSeparator(actionCollection()) );
m_tableActionList.append( m_actionTableInsertRow );
m_tableActionList.append( m_actionTableDelRow );
m_tableActionList.append( m_actionTableInsertCol );
@@ -1420,14 +1420,14 @@ void KWView::updateGridButton()
m_actionViewSnapToGrid->setChecked ( m_doc->snapToGrid() );
}
-void KWView::loadexpressionActions( KActionMenu * parentMenu)
+void KWView::loadexpressionActions( TDEActionMenu * parentMenu)
{
- KActionPtrList lst = actionCollection()->actions("expression-action");
- TQValueList<KAction *> actions = lst;
- TQValueList<KAction *>::ConstIterator it = lst.begin();
- TQValueList<KAction *>::ConstIterator end = lst.end();
+ TDEActionPtrList lst = actionCollection()->actions("expression-action");
+ TQValueList<TDEAction *> actions = lst;
+ TQValueList<TDEAction *>::ConstIterator it = lst.begin();
+ TQValueList<TDEAction *>::ConstIterator end = lst.end();
// Delete all actions but keep their shortcuts in mind
- TQMap<TQString, KShortcut> personalShortCuts;
+ TQMap<TQString, TDEShortcut> personalShortCuts;
for (; it != end; ++it )
{
personalShortCuts.insert( (*it)->text(), (*it)->shortcut() );
@@ -1455,7 +1455,7 @@ void KWView::loadexpressionActions( KActionMenu * parentMenu)
createExpressionActions( parentMenu,*it, i,(nbFile<(int)files.count()-1), personalShortCuts );
}
-void KWView::createExpressionActions( KActionMenu * parentMenu,const TQString& filename,int &i, bool insertSepar, const TQMap<TQString, KShortcut>& personalShortCut )
+void KWView::createExpressionActions( TDEActionMenu * parentMenu,const TQString& filename,int &i, bool insertSepar, const TQMap<TQString, TDEShortcut>& personalShortCut )
{
TQFile file( filename );
if ( !file.exists() || !file.open( IO_ReadOnly ) )
@@ -1476,7 +1476,7 @@ void KWView::createExpressionActions( KActionMenu * parentMenu,const TQString& f
{
expressionExist =true;
TQString group = i18n( e.namedItem( "TypeName" ).toElement().text().utf8() );
- KActionMenu * subMenu = new KActionMenu( group, actionCollection() );
+ TDEActionMenu * subMenu = new TDEActionMenu( group, actionCollection() );
parentMenu->insert( subMenu );
TQDomNode n2 = e.firstChild();
@@ -1489,7 +1489,7 @@ void KWView::createExpressionActions( KActionMenu * parentMenu,const TQString& f
if ( e2.tagName() == "Expression" )
{
TQString text = i18n( e2.namedItem( "Text" ).toElement().text().utf8() );
- KAction * act = new KAction( text, 0, TQT_TQOBJECT(this), TQT_SLOT( insertExpression() ),
+ TDEAction * act = new TDEAction( text, 0, TQT_TQOBJECT(this), TQT_SLOT( insertExpression() ),
actionCollection(),
TQString("expression-action_%1").arg(i).latin1() );
if ( personalShortCut.contains(text) )
@@ -1512,20 +1512,20 @@ void KWView::insertExpression()
KWTextFrameSetEdit * edit = currentTextEdit();
if ( edit )
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
edit->insertExpression(act->text());
}
}
void KWView::addVariableActions( int type, const TQStringList & texts,
- KActionMenu * parentMenu, const TQString & menuText )
+ TDEActionMenu * parentMenu, const TQString & menuText )
{
// Single items go directly into parentMenu.
// For multiple items we create a submenu.
if ( texts.count() > 1 && !menuText.isEmpty() )
{
- KActionMenu * subMenu = new KActionMenu( menuText, actionCollection() );
+ TDEActionMenu * subMenu = new TDEActionMenu( menuText, actionCollection() );
parentMenu->insert( subMenu );
parentMenu = subMenu;
}
@@ -1539,7 +1539,7 @@ void KWView::addVariableActions( int type, const TQStringList & texts,
v.subtype = i;
TQCString actionName;
actionName.sprintf( "var-action-%d-%d", type, i );
- KAction * act = new KAction( (*it), 0, TQT_TQOBJECT(this), TQT_SLOT( insertVariable() ),
+ TDEAction * act = new TDEAction( (*it), 0, TQT_TQOBJECT(this), TQT_SLOT( insertVariable() ),
actionCollection(), actionName );
// Mainly for KEditToolbar
act->setToolTip( i18n( "Insert variable \"%1\" into the text" ).arg( *it ) );
@@ -1551,11 +1551,11 @@ void KWView::addVariableActions( int type, const TQStringList & texts,
void KWView::refreshCustomMenu()
{
- KActionPtrList lst2 = actionCollection()->actions("custom-variable-action");
- TQValueList<KAction *> actions = lst2;
- TQValueList<KAction *>::ConstIterator it2 = lst2.begin();
- TQValueList<KAction *>::ConstIterator end = lst2.end();
- TQMap<TQString, KShortcut> shortCuts;
+ TDEActionPtrList lst2 = actionCollection()->actions("custom-variable-action");
+ TQValueList<TDEAction *> actions = lst2;
+ TQValueList<TDEAction *>::ConstIterator it2 = lst2.begin();
+ TQValueList<TDEAction *>::ConstIterator end = lst2.end();
+ TQMap<TQString, TDEShortcut> shortCuts;
for (; it2 != end; ++it2 )
{
@@ -1564,13 +1564,13 @@ void KWView::refreshCustomMenu()
}
delete m_actionInsertCustom;
- m_actionInsertCustom = new KActionMenu( i18n( "&Custom" ),
+ m_actionInsertCustom = new TDEActionMenu( i18n( "&Custom" ),
actionCollection(), "insert_custom" );
actionInsertVariable->insert(m_actionInsertCustom, 0);
m_actionInsertCustom->popupMenu()->clear();
TQPtrListIterator<KoVariable> it( m_doc->variableCollection()->getVariables() );
- KAction * act=0;
+ TDEAction * act=0;
TQStringList lst;
TQString varName;
int i = 0;
@@ -1584,7 +1584,7 @@ void KWView::refreshCustomMenu()
{
lst.append( varName );
TQCString name = TQString("custom-action_%1").arg(i).latin1();
- act = new KAction( varName, shortCuts[varName], TQT_TQOBJECT(this), TQT_SLOT( insertCustomVariable() ),actionCollection(), name );
+ act = new TDEAction( varName, shortCuts[varName], TQT_TQOBJECT(this), TQT_SLOT( insertCustomVariable() ),actionCollection(), name );
act->setGroup( "custom-variable-action" );
m_actionInsertCustom->insert( act );
i++;
@@ -1595,7 +1595,7 @@ void KWView::refreshCustomMenu()
if(state)
m_actionInsertCustom->popupMenu()->insertSeparator();
- act = new KAction( i18n("New..."), 0, TQT_TQOBJECT(this), TQT_SLOT( insertNewCustomVariable() ), actionCollection(),TQString("custom-action_%1").arg(i).latin1());
+ act = new TDEAction( i18n("New..."), 0, TQT_TQOBJECT(this), TQT_SLOT( insertNewCustomVariable() ), actionCollection(),TQString("custom-action_%1").arg(i).latin1());
act->setGroup( "custom-variable-action" );
@@ -1611,7 +1611,7 @@ void KWView::insertCustomVariable()
KWTextFrameSetEdit * edit = currentTextEdit();
if ( edit )
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
edit->insertCustomVariable(act->text());
}
}
@@ -2046,7 +2046,7 @@ void KWView::showCounter( KoParagCounter &c )
TQString styleStr("counterstyle_");
styleStr += TQString::number( c.style() );
//kdDebug() << "KWView::showCounter styleStr=" << styleStr << endl;
- KToggleAction* act = static_cast<KToggleAction *>( actionCollection()->action( styleStr.latin1() ) );
+ TDEToggleAction* act = static_cast<TDEToggleAction *>( actionCollection()->action( styleStr.latin1() ) );
Q_ASSERT( act );
if ( act )
act->setChecked( true );
@@ -2085,11 +2085,11 @@ void KWView::updateBorderButtons( const KoBorder& left, const KoBorder& right,
void KWView::updateReadWrite( bool readwrite )
{
// First disable or enable everything
- TQValueList<KAction*> actions = actionCollection()->actions();
+ TQValueList<TDEAction*> actions = actionCollection()->actions();
// Also grab actions from the document
actions += m_doc->actionCollection()->actions();
- TQValueList<KAction*>::ConstIterator aIt = actions.begin();
- TQValueList<KAction*>::ConstIterator aEnd = actions.end();
+ TQValueList<TDEAction*>::ConstIterator aIt = actions.begin();
+ TQValueList<TDEAction*>::ConstIterator aEnd = actions.end();
for (; aIt != aEnd; ++aIt )
(*aIt)->setEnabled( readwrite );
@@ -2117,7 +2117,7 @@ void KWView::updateReadWrite( bool readwrite )
m_actionFormatBullet->setEnabled(true);
m_actionFormatNumber->setEnabled( true);
m_actionSelectBookmark->setEnabled( true );
- KAction* act = actionCollection()->action("edit_sldatabase");
+ TDEAction* act = actionCollection()->action("edit_sldatabase");
if (act)
act->setEnabled( true );
@@ -2182,7 +2182,7 @@ void KWView::showStyle( const TQString & styleName )
// Select style in combo
m_actionFormatStyle->setCurrentItem( pos );
// Check the appropriate action among the m_actionFormatStyleMenu actions
- KToggleAction* act = dynamic_cast<KToggleAction *>(actionCollection()->action(style->name().utf8().data()));
+ TDEToggleAction* act = dynamic_cast<TDEToggleAction *>(actionCollection()->action(style->name().utf8().data()));
if ( act )
act->setChecked( true );
}
@@ -2199,22 +2199,22 @@ void KWView::updateStyleList()
// Generate list of styles
const TQStringList lst = m_doc->styleCollection()->displayNameList();
const int pos = lst.findIndex( currentStyle );
- // Fill the combo - using a KSelectAction
+ // Fill the combo - using a TDESelectAction
m_actionFormatStyle->setItems( lst );
if ( pos > -1 )
m_actionFormatStyle->setCurrentItem( pos );
- // Fill the menu - using a KActionMenu, so that it's possible to bind keys
+ // Fill the menu - using a TDEActionMenu, so that it's possible to bind keys
// to individual actions
TQStringList lstWithAccels;
// Generate unique accelerators for the menu items
- KAccelGen::generate( lst, lstWithAccels );
- TQMap<TQString, KShortcut> shortCuts;
+ TDEAccelGen::generate( lst, lstWithAccels );
+ TQMap<TQString, TDEShortcut> shortCuts;
- KActionPtrList lst2 = actionCollection()->actions("styleList");
- TQValueList<KAction *> actions = lst2;
- TQValueList<KAction *>::ConstIterator it = lst2.begin();
- const TQValueList<KAction *>::ConstIterator end = lst2.end();
+ TDEActionPtrList lst2 = actionCollection()->actions("styleList");
+ TQValueList<TDEAction *> actions = lst2;
+ TQValueList<TDEAction *>::ConstIterator it = lst2.begin();
+ const TQValueList<TDEAction *>::ConstIterator end = lst2.end();
for (; it != end; ++it )
{
shortCuts.insert( TQString::fromUtf8( (*it)->name() ), (*it)->shortcut() );
@@ -2229,7 +2229,7 @@ void KWView::updateStyleList()
if ( style )
{
TQString name = PARAGSTYLE_ACTION_PREFIX + style->name();
- KToggleAction* act = new KToggleAction( (*it),
+ TDEToggleAction* act = new TDEToggleAction( (*it),
shortCuts[name], TQT_TQOBJECT(this), TQT_SLOT( slotStyleSelected() ),
actionCollection(), name.utf8() );
act->setGroup( "styleList" );
@@ -2267,18 +2267,18 @@ void KWView::updateFrameStyleList()
if ( pos > -1 )
m_actionFrameStyle->setCurrentItem( pos );
- // Fill the menu - using a KActionMenu, so that it's possible to bind keys
+ // Fill the menu - using a TDEActionMenu, so that it's possible to bind keys
// to individual actions
TQStringList lstWithAccels;
// Generate unique accelerators for the menu items
- KAccelGen::generate( lst, lstWithAccels );
- TQMap<TQString, KShortcut> shortCuts; // style (internal) name -> shortcut
+ TDEAccelGen::generate( lst, lstWithAccels );
+ TQMap<TQString, TDEShortcut> shortCuts; // style (internal) name -> shortcut
- KActionPtrList lst2 = actionCollection()->actions("frameStyleList");
- TQValueList<KAction *> actions = lst2;
- TQValueList<KAction *>::ConstIterator it = lst2.begin();
- TQValueList<KAction *>::ConstIterator end = lst2.end();
+ TDEActionPtrList lst2 = actionCollection()->actions("frameStyleList");
+ TQValueList<TDEAction *> actions = lst2;
+ TQValueList<TDEAction *>::ConstIterator it = lst2.begin();
+ TQValueList<TDEAction *>::ConstIterator end = lst2.end();
for (; it != end; ++it )
{
shortCuts.insert( TQString::fromUtf8( (*it)->name() ), (*it)->shortcut() );
@@ -2294,7 +2294,7 @@ void KWView::updateFrameStyleList()
if ( style )
{
TQString name = FRAMESTYLE_ACTION_PREFIX + style->name();
- KToggleAction* act = new KToggleAction( (*it),
+ TDEToggleAction* act = new TDEToggleAction( (*it),
shortCuts[name], // KDE4: use value()
TQT_TQOBJECT(this), TQT_SLOT( slotFrameStyleSelected() ),
actionCollection(), name.utf8() /*KDE4: remove conversion*/ );
@@ -2320,16 +2320,16 @@ void KWView::updateTableStyleList()
if ( pos > -1 )
m_actionTableStyle->setCurrentItem( pos );
- // Fill the menu - using a KActionMenu, so that it's possible to bind keys
+ // Fill the menu - using a TDEActionMenu, so that it's possible to bind keys
// to individual actions
TQStringList lstWithAccels;
// Generate unique accelerators for the menu items
- KAccelGen::generate( lst, lstWithAccels );
- TQMap<TQString, KShortcut> shortCuts;
+ TDEAccelGen::generate( lst, lstWithAccels );
+ TQMap<TQString, TDEShortcut> shortCuts;
- TQValueList<KAction *> actions = actionCollection()->actions("tableStyleList");
- TQValueList<KAction *>::ConstIterator it = actions.begin();
- const TQValueList<KAction *>::ConstIterator end = actions.end();
+ TQValueList<TDEAction *> actions = actionCollection()->actions("tableStyleList");
+ TQValueList<TDEAction *>::ConstIterator it = actions.begin();
+ const TQValueList<TDEAction *>::ConstIterator end = actions.end();
for (; it != end; ++it )
{
shortCuts.insert( TQString::fromUtf8( (*it)->name() ), (*it)->shortcut() );
@@ -2345,7 +2345,7 @@ void KWView::updateTableStyleList()
if ( style )
{
TQString name = TABLESTYLE_ACTION_PREFIX + style->name();
- KToggleAction* act = new KToggleAction( (*it),
+ TDEToggleAction* act = new TDEToggleAction( (*it),
shortCuts[name], TQT_TQOBJECT(this), TQT_SLOT( slotTableStyleSelected() ),
actionCollection(), name.utf8() );
act->setExclusiveGroup( "tableStyleList" );
@@ -3580,7 +3580,7 @@ void KWView::insertVariable()
KWTextFrameSetEdit * edit = currentTextEdit();
if ( edit )
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
VariableDefMap::Iterator it = m_variableDefMap.find( act );
if ( it == m_variableDefMap.end() )
kdWarning() << "Action not found in m_variableDefMap." << endl;
@@ -3627,7 +3627,7 @@ void KWView::insertFootNote()
void KWView::updateTocActionText(bool hasToc)
{
- KActionCollection * coll = actionCollection();
+ TDEActionCollection * coll = actionCollection();
TQString name= hasToc ? i18n("Update Table of &Contents"):i18n("Table of &Contents");
coll->action("insert_contents")->setText(name);
}
@@ -4592,7 +4592,7 @@ void KWView::frameStyleSelected( KWFrameStyle *sty )
const int pos = m_doc->frameStyleCollection()->indexOf( sty );
Q_ASSERT( pos >= 0 );
m_actionFrameStyle->setCurrentItem( pos );
- KToggleAction* act = dynamic_cast<KToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
+ TDEToggleAction* act = dynamic_cast<TDEToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
if ( act )
act->setChecked( true );
}
@@ -4661,7 +4661,7 @@ void KWView::tableStyleSelected( KWTableStyle *sty )
// Adjust GUI
int pos = m_doc->tableStyleCollection()->indexOf( sty );
m_actionTableStyle->setCurrentItem( pos );
- KToggleAction* act = dynamic_cast<KToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
+ TDEToggleAction* act = dynamic_cast<TDEToggleAction *>(actionCollection()->action( sty->name().utf8().data() ));
if ( act )
act->setChecked( true );
}
@@ -7436,9 +7436,9 @@ void KWView::deleteFrameSet( KWFrameSet * frameset)
}
}
-TQPtrList<KAction> KWView::listOfResultOfCheckWord( const TQString &word )
+TQPtrList<TDEAction> KWView::listOfResultOfCheckWord( const TQString &word )
{
- TQPtrList<KAction> listAction;
+ TQPtrList<TDEAction> listAction;
DefaultDictionary *dict = m_broker->defaultDictionary();
const TQStringList lst = dict->suggest( word );
if ( !lst.contains( word ) )
@@ -7449,7 +7449,7 @@ TQPtrList<KAction> KWView::listOfResultOfCheckWord( const TQString &word )
{
if ( !(*it).isEmpty() ) // in case of removed subtypes or placeholders
{
- KAction * act = new KAction( *it );
+ TDEAction * act = new TDEAction( *it );
connect( act, TQT_SIGNAL(activated()), TQT_TQOBJECT(this), TQT_SLOT(slotCorrectWord()) );
listAction.append( act );
}
@@ -7460,7 +7460,7 @@ TQPtrList<KAction> KWView::listOfResultOfCheckWord( const TQString &word )
void KWView::slotCorrectWord()
{
- KAction * act = (KAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
KWTextFrameSetEdit* edit = currentTextEdit();
if ( edit )
{
diff --git a/kword/KWView.h b/kword/KWView.h
index 70d921aa..957ee5d4 100644
--- a/kword/KWView.h
+++ b/kword/KWView.h
@@ -61,7 +61,7 @@ class KoPicture;
class KoSearchContext;
class KoTextFormatInterface;
class KoRuler;
-class TKSelectColorAction;
+class TTDESelectColorAction;
class KoPartSelectAction;
class KoCharSelectDia;
class KoTextFormat;
@@ -73,12 +73,12 @@ class DCOPObject;
class KStatusBarLabel;
class KoSpell;
class KURL;
-class KAction;
-class KActionMenu;
-class KSelectAction;
-class KToggleAction;
-class KFontSizeAction;
-class KFontAction;
+class TDEAction;
+class TDEActionMenu;
+class TDESelectAction;
+class TDEToggleAction;
+class TDEFontSizeAction;
+class TDEFontAction;
class TQResizeEvent;
class TQSplitter;
@@ -187,9 +187,9 @@ public:
TQPopupMenu * popupMenu( const TQString& name );
- TQPtrList<KAction> &dataToolActionList() { return m_actionList; }
- TQPtrList<KAction> &variableActionList() { return m_variableActionList; }
- TQPtrList<KAction> &tableActions() { return m_tableActionList; }
+ TQPtrList<TDEAction> &dataToolActionList() { return m_actionList; }
+ TQPtrList<TDEAction> &variableActionList() { return m_variableActionList; }
+ TQPtrList<TDEAction> &tableActions() { return m_tableActionList; }
enum { // bitfield
ProvidesImage = 1,
@@ -221,7 +221,7 @@ public:
void deleteFrameSet( KWFrameSet *);
- TQPtrList<KAction> listOfResultOfCheckWord( const TQString &word );
+ TQPtrList<TDEAction> listOfResultOfCheckWord( const TQString &word );
int tableSelectCell(const TQString &tableName, uint row, uint col);
void tableInsertRow(uint row, KWTableFrameSet *table = 0);
@@ -497,11 +497,11 @@ protected slots:
protected:
void addVariableActions( int type, const TQStringList & texts,
- KActionMenu * parentMenu, const TQString & menuText );
+ TDEActionMenu * parentMenu, const TQString & menuText );
- void loadexpressionActions( KActionMenu * parentMenu);
+ void loadexpressionActions( TDEActionMenu * parentMenu);
- void createExpressionActions( KActionMenu * parentMenu,const TQString& filename,int &i , bool insertSepar, const TQMap<TQString, KShortcut>& personalShortCut );
+ void createExpressionActions( TDEActionMenu * parentMenu,const TQString& filename,int &i , bool insertSepar, const TQMap<TQString, TDEShortcut>& personalShortCut );
void showParagraphDialog( int initialPage = -1, double initialTabPos = 0.0 );
@@ -556,207 +556,207 @@ private: // methods
private: // variables
KWDocument *m_doc;
- KAction *m_actionFileStatistics;
- KAction *m_actionEditCut;
- KAction *m_actionEditCopy;
- KAction *m_actionEditPaste;
- KAction *m_actionEditSelectAll;
- KAction *m_actionEditSelectCurrentFrame;
- KAction *m_actionEditDelFrame;
- KAction *m_actionCreateLinkedFrame;
- KAction *m_actionRaiseFrame;
- KAction *m_actionLowerFrame;
- KAction *m_actionSendBackward;
- KAction *m_actionBringToFront;
-
- KAction *m_actionEditCustomVars;
- KAction *m_actionEditCustomVarsEdit;
- KAction *m_actionEditFind;
- KAction *m_actionEditFindNext;
- KAction *m_actionEditFindPrevious;
- KAction *m_actionEditReplace;
- KAction *m_actionApplyAutoFormat;
-
- KToggleAction *m_actionViewTextMode;
- KToggleAction *m_actionViewPageMode;
- KToggleAction *m_actionViewPreviewMode;
-
- KToggleAction *m_actionViewFormattingChars;
- KToggleAction *m_actionViewFrameBorders;
- KToggleAction *m_actionViewHeader;
- KToggleAction *m_actionViewFooter;
- KToggleAction *m_actionViewFootNotes;
- KToggleAction *m_actionViewEndNotes;
- KToggleAction *m_actionShowDocStruct;
- KToggleAction *m_actionShowRuler;
- KToggleAction *m_actionViewShowGrid;
- KToggleAction *m_actionViewSnapToGrid;
- KToggleAction *m_actionAllowAutoFormat;
-
- KToggleAction *m_actionAllowBgSpellCheck;
-
- KSelectAction *m_actionViewZoom;
-
- KAction *m_actionInsertFrameBreak;
- KAction *m_actionInsertFootEndNote;
- KAction *m_actionInsertContents;
- KAction *m_actionInsertLink;
- KAction *m_actionInsertComment;
- KAction *m_actionEditComment;
- KAction *m_actionRemoveComment;
- KAction *m_actionCopyTextOfComment;
- //KAction *actionInsertPage;
- KAction *m_actionDeletePage;
-
- KActionMenu *actionInsertVariable;
+ TDEAction *m_actionFileStatistics;
+ TDEAction *m_actionEditCut;
+ TDEAction *m_actionEditCopy;
+ TDEAction *m_actionEditPaste;
+ TDEAction *m_actionEditSelectAll;
+ TDEAction *m_actionEditSelectCurrentFrame;
+ TDEAction *m_actionEditDelFrame;
+ TDEAction *m_actionCreateLinkedFrame;
+ TDEAction *m_actionRaiseFrame;
+ TDEAction *m_actionLowerFrame;
+ TDEAction *m_actionSendBackward;
+ TDEAction *m_actionBringToFront;
+
+ TDEAction *m_actionEditCustomVars;
+ TDEAction *m_actionEditCustomVarsEdit;
+ TDEAction *m_actionEditFind;
+ TDEAction *m_actionEditFindNext;
+ TDEAction *m_actionEditFindPrevious;
+ TDEAction *m_actionEditReplace;
+ TDEAction *m_actionApplyAutoFormat;
+
+ TDEToggleAction *m_actionViewTextMode;
+ TDEToggleAction *m_actionViewPageMode;
+ TDEToggleAction *m_actionViewPreviewMode;
+
+ TDEToggleAction *m_actionViewFormattingChars;
+ TDEToggleAction *m_actionViewFrameBorders;
+ TDEToggleAction *m_actionViewHeader;
+ TDEToggleAction *m_actionViewFooter;
+ TDEToggleAction *m_actionViewFootNotes;
+ TDEToggleAction *m_actionViewEndNotes;
+ TDEToggleAction *m_actionShowDocStruct;
+ TDEToggleAction *m_actionShowRuler;
+ TDEToggleAction *m_actionViewShowGrid;
+ TDEToggleAction *m_actionViewSnapToGrid;
+ TDEToggleAction *m_actionAllowAutoFormat;
+
+ TDEToggleAction *m_actionAllowBgSpellCheck;
+
+ TDESelectAction *m_actionViewZoom;
+
+ TDEAction *m_actionInsertFrameBreak;
+ TDEAction *m_actionInsertFootEndNote;
+ TDEAction *m_actionInsertContents;
+ TDEAction *m_actionInsertLink;
+ TDEAction *m_actionInsertComment;
+ TDEAction *m_actionEditComment;
+ TDEAction *m_actionRemoveComment;
+ TDEAction *m_actionCopyTextOfComment;
+ //TDEAction *actionInsertPage;
+ TDEAction *m_actionDeletePage;
+
+ TDEActionMenu *actionInsertVariable;
struct VariableDef {
int type;
int subtype;
};
- typedef TQMap<KAction *, VariableDef> VariableDefMap;
- KActionMenu *m_actionInsertExpression;
+ typedef TQMap<TDEAction *, VariableDef> VariableDefMap;
+ TDEActionMenu *m_actionInsertExpression;
- KActionMenu *m_actionInsertCustom;
+ TDEActionMenu *m_actionInsertCustom;
VariableDefMap m_variableDefMap;
- KAction *m_actionInsertFormula;
- KAction *m_actionInsertTable;
- KAction *m_actionAutoFormat;
+ TDEAction *m_actionInsertFormula;
+ TDEAction *m_actionInsertTable;
+ TDEAction *m_actionAutoFormat;
- KToggleAction *m_actionToolsCreateText;
- KToggleAction *m_actionToolsCreatePix;
+ TDEToggleAction *m_actionToolsCreateText;
+ TDEToggleAction *m_actionToolsCreatePix;
KoPartSelectAction *m_actionToolsCreatePart;
- KAction *m_actionFormatFont;
- KAction *m_actionFormatDefault;
- KAction *m_actionFormatFrameStylist;
- KAction *m_actionFormatStylist;
- KAction *m_actionFormatPage;
-
- KAction *m_actionFontSizeIncrease;
- KAction *m_actionFontSizeDecrease;
-
- KFontSizeAction *m_actionFormatFontSize;
- KFontAction *m_actionFormatFontFamily;
- KSelectAction *m_actionFormatStyle;
- KActionMenu *m_actionFormatStyleMenu;
- KToggleAction *m_actionFormatBold;
- KToggleAction *m_actionFormatItalic;
- KToggleAction *m_actionFormatUnderline;
- KToggleAction *m_actionFormatStrikeOut;
- TKSelectColorAction *m_actionFormatColor;
- KToggleAction *m_actionFormatAlignLeft;
- KToggleAction *m_actionFormatAlignCenter;
- KToggleAction *m_actionFormatAlignRight;
- KToggleAction *m_actionFormatAlignBlock;
- KToggleAction *m_actionFormatSpacingSingle;
- KToggleAction *m_actionFormatSpacingOneAndHalf;
- KToggleAction *m_actionFormatSpacingDouble;
- KAction *m_actionFormatParag;
- KAction *m_actionFormatFrameSet;
- KAction *m_actionFormatIncreaseIndent;
- KAction *m_actionFormatDecreaseIndent;
- KActionMenu *m_actionFormatBullet;
- KActionMenu *m_actionFormatNumber;
- KToggleAction *m_actionFormatSuper;
- KToggleAction *m_actionFormatSub;
- KAction* m_actionInsertSpecialChar;
+ TDEAction *m_actionFormatFont;
+ TDEAction *m_actionFormatDefault;
+ TDEAction *m_actionFormatFrameStylist;
+ TDEAction *m_actionFormatStylist;
+ TDEAction *m_actionFormatPage;
+
+ TDEAction *m_actionFontSizeIncrease;
+ TDEAction *m_actionFontSizeDecrease;
+
+ TDEFontSizeAction *m_actionFormatFontSize;
+ TDEFontAction *m_actionFormatFontFamily;
+ TDESelectAction *m_actionFormatStyle;
+ TDEActionMenu *m_actionFormatStyleMenu;
+ TDEToggleAction *m_actionFormatBold;
+ TDEToggleAction *m_actionFormatItalic;
+ TDEToggleAction *m_actionFormatUnderline;
+ TDEToggleAction *m_actionFormatStrikeOut;
+ TTDESelectColorAction *m_actionFormatColor;
+ TDEToggleAction *m_actionFormatAlignLeft;
+ TDEToggleAction *m_actionFormatAlignCenter;
+ TDEToggleAction *m_actionFormatAlignRight;
+ TDEToggleAction *m_actionFormatAlignBlock;
+ TDEToggleAction *m_actionFormatSpacingSingle;
+ TDEToggleAction *m_actionFormatSpacingOneAndHalf;
+ TDEToggleAction *m_actionFormatSpacingDouble;
+ TDEAction *m_actionFormatParag;
+ TDEAction *m_actionFormatFrameSet;
+ TDEAction *m_actionFormatIncreaseIndent;
+ TDEAction *m_actionFormatDecreaseIndent;
+ TDEActionMenu *m_actionFormatBullet;
+ TDEActionMenu *m_actionFormatNumber;
+ TDEToggleAction *m_actionFormatSuper;
+ TDEToggleAction *m_actionFormatSub;
+ TDEAction* m_actionInsertSpecialChar;
// Text and Frame borders.
- KSelectAction *m_actionFrameStyle;
- KActionMenu *m_actionFrameStyleMenu;
- KSelectAction *m_actionTableStyle;
- KActionMenu *m_actionTableStyleMenu;
- KToggleAction *m_actionBorderLeft;
- KToggleAction *m_actionBorderRight;
- KToggleAction *m_actionBorderTop;
- KToggleAction *m_actionBorderBottom;
- KToggleAction *m_actionBorderOutline;
- TKSelectColorAction *m_actionBorderColor;
- KSelectAction *m_actionBorderWidth;
- KSelectAction *m_actionBorderStyle;
- TKSelectColorAction *m_actionBackgroundColor;
+ TDESelectAction *m_actionFrameStyle;
+ TDEActionMenu *m_actionFrameStyleMenu;
+ TDESelectAction *m_actionTableStyle;
+ TDEActionMenu *m_actionTableStyleMenu;
+ TDEToggleAction *m_actionBorderLeft;
+ TDEToggleAction *m_actionBorderRight;
+ TDEToggleAction *m_actionBorderTop;
+ TDEToggleAction *m_actionBorderBottom;
+ TDEToggleAction *m_actionBorderOutline;
+ TTDESelectColorAction *m_actionBorderColor;
+ TDESelectAction *m_actionBorderWidth;
+ TDESelectAction *m_actionBorderStyle;
+ TTDESelectColorAction *m_actionBackgroundColor;
- KAction *m_actionTableDelRow;
- KAction *m_actionTableDelCol;
- KAction *m_actionTableInsertRow;
- KAction *m_actionTableInsertCol;
- KAction *m_actionTableResizeCol;
- KAction *m_actionTableJoinCells;
- KAction *m_actionTableSplitCells;
- KAction *m_actionConvertTableToText;
- KAction *m_actionSortText;
- KAction *m_actionAddPersonalExpression;
- KToggleAction *m_actionTableProtectCells;
+ TDEAction *m_actionTableDelRow;
+ TDEAction *m_actionTableDelCol;
+ TDEAction *m_actionTableInsertRow;
+ TDEAction *m_actionTableInsertCol;
+ TDEAction *m_actionTableResizeCol;
+ TDEAction *m_actionTableJoinCells;
+ TDEAction *m_actionTableSplitCells;
+ TDEAction *m_actionConvertTableToText;
+ TDEAction *m_actionSortText;
+ TDEAction *m_actionAddPersonalExpression;
+ TDEToggleAction *m_actionTableProtectCells;
- KAction *m_actionTableUngroup;
- KAction *m_actionTableDelete;
+ TDEAction *m_actionTableUngroup;
+ TDEAction *m_actionTableDelete;
- KAction *m_actionTableStylist;
- KAction *m_actionTablePropertiesMenu;
- KAction *m_actionTableProperties;
+ TDEAction *m_actionTableStylist;
+ TDEAction *m_actionTablePropertiesMenu;
+ TDEAction *m_actionTableProperties;
- KAction *m_actionExtraCreateTemplate;
+ TDEAction *m_actionExtraCreateTemplate;
- KAction *m_actionChangeCase;
+ TDEAction *m_actionChangeCase;
- KAction *m_actionEditPersonnalExpr;
+ TDEAction *m_actionEditPersonnalExpr;
- KAction *m_actionConfigure;
+ TDEAction *m_actionConfigure;
- KAction *m_actionConfigureCompletion;
+ TDEAction *m_actionConfigureCompletion;
- KAction *m_actionSavePicture;
+ TDEAction *m_actionSavePicture;
- KAction *m_actionConfigureHeaderFooter;
- KToggleAction *m_actionInlineFrame;
+ TDEAction *m_actionConfigureHeaderFooter;
+ TDEToggleAction *m_actionInlineFrame;
- KAction *m_actionOpenLink;
- KAction *m_actionChangeLink;
- KAction *m_actionCopyLink;
- KAction *m_actionAddLinkToBookmak;
- KAction *m_actionRemoveLink;
+ TDEAction *m_actionOpenLink;
+ TDEAction *m_actionChangeLink;
+ TDEAction *m_actionCopyLink;
+ TDEAction *m_actionAddLinkToBookmak;
+ TDEAction *m_actionRemoveLink;
- KAction *m_actionRefreshAllVariable;
- KAction *m_actionCreateStyleFromSelection;
+ TDEAction *m_actionRefreshAllVariable;
+ TDEAction *m_actionCreateStyleFromSelection;
- KAction *m_actionConfigureFootEndNote;
+ TDEAction *m_actionConfigureFootEndNote;
- KAction *m_actionEditFootEndNote;
+ TDEAction *m_actionEditFootEndNote;
- KAction *m_actionChangeFootNoteType;
+ TDEAction *m_actionChangeFootNoteType;
- KAction *m_actionGoToFootEndNote;
+ TDEAction *m_actionGoToFootEndNote;
// Document Structure Area popup menu.
- KAction *m_actionDocStructEdit;
- KAction *m_actionDocStructSpeak;
- KAction *m_actionDocStructSelect;
- KAction *m_actionDocStructDelete;
- KAction *m_actionDocStructProperties;
+ TDEAction *m_actionDocStructEdit;
+ TDEAction *m_actionDocStructSpeak;
+ TDEAction *m_actionDocStructSelect;
+ TDEAction *m_actionDocStructDelete;
+ TDEAction *m_actionDocStructProperties;
- KAction *m_actionInsertFile;
+ TDEAction *m_actionInsertFile;
- KAction *m_actionAddBookmark;
- KAction *m_actionSelectBookmark;
+ TDEAction *m_actionAddBookmark;
+ TDEAction *m_actionSelectBookmark;
- KAction *m_actionImportStyle;
+ TDEAction *m_actionImportStyle;
- KAction *m_actionCreateFrameStyle;
+ TDEAction *m_actionCreateFrameStyle;
- KAction *m_actionConvertToTextBox;
+ TDEAction *m_actionConvertToTextBox;
- KAction *m_actionSpellIgnoreAll;
- KAction *m_actionSpellCheck;
+ TDEAction *m_actionSpellIgnoreAll;
+ TDEAction *m_actionSpellCheck;
- KToggleAction *m_actionEmbeddedStoreInternal;
+ TDEToggleAction *m_actionEmbeddedStoreInternal;
- KAction *m_actionAddWordToPersonalDictionary;
+ TDEAction *m_actionAddWordToPersonalDictionary;
- KToggleAction *m_actionInsertDirectCursor;
+ TDEToggleAction *m_actionInsertDirectCursor;
- KAction *m_actionGoToDocumentStructure;
- KAction *m_actionGoToDocument;
+ TDEAction *m_actionGoToDocumentStructure;
+ TDEAction *m_actionGoToDocument;
KoCharSelectDia *m_specialCharDlg;
@@ -770,9 +770,9 @@ private: // variables
KoSearchContext *m_searchEntry, *m_replaceEntry;
KWFindReplace *m_findReplace;
- TQPtrList<KAction> m_actionList; // for the kodatatools
- TQPtrList<KAction> m_variableActionList;
- TQPtrList<KAction> m_tableActionList;
+ TQPtrList<TDEAction> m_actionList; // for the kodatatools
+ TQPtrList<TDEAction> m_variableActionList;
+ TQPtrList<TDEAction> m_tableActionList;
KWPage *m_currentPage; ///< current page number
diff --git a/kword/mailmerge/kabc/addresspicker.ui b/kword/mailmerge/kabc/addresspicker.ui
index af8f5723..38430e4b 100644
--- a/kword/mailmerge/kabc/addresspicker.ui
+++ b/kword/mailmerge/kabc/addresspicker.ui
@@ -136,7 +136,7 @@
</widget>
</hbox>
</widget>
- <widget class="KListView" row="1" column="2">
+ <widget class="TDEListView" row="1" column="2">
<column>
<property name="text">
<string>Name</string>
@@ -243,7 +243,7 @@
<cstring>mSelectedView</cstring>
</property>
</widget>
- <widget class="KListView" row="1" column="0">
+ <widget class="TDEListView" row="1" column="0">
<column>
<property name="text">
<string>Name</string>
diff --git a/kword/mailmerge/sql/kwqtsqlpower.ui b/kword/mailmerge/sql/kwqtsqlpower.ui
index afff8c7f..198e8f2f 100644
--- a/kword/mailmerge/sql/kwqtsqlpower.ui
+++ b/kword/mailmerge/sql/kwqtsqlpower.ui
@@ -42,7 +42,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="KListBox" row="1" column="1">
+ <widget class="TDEListBox" row="1" column="1">
<property name="name">
<cstring>fields</cstring>
</property>
@@ -61,7 +61,7 @@
</size>
</property>
</widget>
- <widget class="KListBox" row="1" column="0">
+ <widget class="TDEListBox" row="1" column="0">
<property name="name">
<cstring>tables</cstring>
</property>
diff --git a/kword/tests/FrameTester.cpp b/kword/tests/FrameTester.cpp
index 80848716..a5ccd80a 100644
--- a/kword/tests/FrameTester.cpp
+++ b/kword/tests/FrameTester.cpp
@@ -31,7 +31,7 @@ KUNITTEST_MODULE_REGISTER_TESTER(KWFrameTester);
void KWFrameTester::allTests() {
int argc = 0;
char** argv = 0;
- TQApplication app( argc, argv ); // needed for KWDocument, due to KWCommandHistory -> KToolBarPopupAction -> TQPopupMenu -> TQWidget
+ TQApplication app( argc, argv ); // needed for KWDocument, due to KWCommandHistory -> TDEToolBarPopupAction -> TQPopupMenu -> TQWidget
testSimpleFrame();
testFrameList();