summaryrefslogtreecommitdiffstats
path: root/quanta/utility/tagactionset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/utility/tagactionset.cpp')
-rw-r--r--quanta/utility/tagactionset.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/quanta/utility/tagactionset.cpp b/quanta/utility/tagactionset.cpp
index a5397df8..31f246ec 100644
--- a/quanta/utility/tagactionset.cpp
+++ b/quanta/utility/tagactionset.cpp
@@ -84,7 +84,7 @@ bool TagActionSetAbstract::fillWithTagActions(TQWidget* /*widget*/, DOM::Node co
TagActionSet::TagActionSet(TQObject *parent, const char *name)
: TagActionSetAbstract(parent, name), m_separator(0)
{
- m_separator = new KActionSeparator();
+ m_separator = new TDEActionSeparator();
}
bool TagActionSet::isInTagContext() const
@@ -98,20 +98,20 @@ void TagActionSet::initActionMenus(TQWidget* /*widget*/)
void TagActionSet::initActions(TQWidget* /*parent*/)
{
- KActionCollection* ac(TagActionManager::self()->actionCollection());
+ TDEActionCollection* ac(TagActionManager::self()->actionCollection());
const char *actionName = "apply_source_indentation";
- new KAction(i18n("Apply Source Indentation"), 0, this,
+ new TDEAction(i18n("Apply Source Indentation"), 0, this,
TQT_SLOT(slotApplySourceIndentation()),
ac, actionName);
actionName = "copy_div_element";
- new KAction(i18n("Copy DIV Area"), 0, this,
+ new TDEAction(i18n("Copy DIV Area"), 0, this,
TQT_SLOT(slotCopyDivElement()),
ac, actionName);
actionName = "cut_div_element";
- new KAction(i18n("Cut DIV Area"), 0, this,
+ new TDEAction(i18n("Cut DIV Area"), 0, this,
TQT_SLOT(slotCutDivElement()),
ac, actionName);
}
@@ -128,11 +128,11 @@ bool TagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& node)
m_separator->unplugAll();
- KActionCollection* ac(TagActionManager::self()->actionCollection());
+ TDEActionCollection* ac(TagActionManager::self()->actionCollection());
- KAction* copyDivAction = ac->action("copy_div_element");
+ TDEAction* copyDivAction = ac->action("copy_div_element");
Q_ASSERT(copyDivAction);
- KAction* cutDivAction = ac->action("cut_div_element");
+ TDEAction* cutDivAction = ac->action("cut_div_element");
Q_ASSERT(cutDivAction);
if(/*!KafkaDocument::ref()->getKafkaWidget()->hasSelection() && */isInDivArea())
@@ -151,7 +151,7 @@ bool TagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& node)
cutDivAction->unplug(widget);
}
-// KAction* applySourceIndentationAction = ac->action("apply_source_indentation");
+// TDEAction* applySourceIndentationAction = ac->action("apply_source_indentation");
// Q_ASSERT(applySourceIndentationAction);
//
// applySourceIndentationAction->unplug(widget); // to keep things in order
@@ -164,19 +164,19 @@ bool TagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& node)
void TagActionSet::unplugAllActions(TQWidget* widget) const
{
- KActionCollection* ac(TagActionManager::self()->actionCollection());
+ TDEActionCollection* ac(TagActionManager::self()->actionCollection());
m_separator->unplugAll();
- KAction* applySourceIndentationAction = ac->action("apply_source_indentation");
+ TDEAction* applySourceIndentationAction = ac->action("apply_source_indentation");
Q_ASSERT(applySourceIndentationAction);
applySourceIndentationAction->unplug(widget);
- KAction* copyDivAction = ac->action("copy_div_element");
+ TDEAction* copyDivAction = ac->action("copy_div_element");
Q_ASSERT(copyDivAction);
copyDivAction->unplug(widget);
- KAction* cutDivAction = ac->action("cut_div_element");
+ TDEAction* cutDivAction = ac->action("cut_div_element");
Q_ASSERT(cutDivAction);
cutDivAction->unplug(widget);
}
@@ -269,7 +269,7 @@ void TagActionSet::slotCutDivElement()
TableTagActionSet::TableTagActionSet(TQObject *parent, const char *name)
: TagActionSetAbstract(parent, name), m_separator(0), m_tableActionMenu_0(0), m_insertActionMenu_1(0)
{
- m_separator = new KActionSeparator();
+ m_separator = new TDEActionSeparator();
}
bool TableTagActionSet::isInTagContext() const
@@ -281,9 +281,9 @@ void TableTagActionSet::initActionMenus(TQWidget* widget)
{
Q_ASSERT(!m_tableActionMenu_0);
- m_tableActionMenu_0 = new KActionMenu(i18n("Table..."), TQT_TQOBJECT(widget));
- m_insertActionMenu_1 = new KActionMenu(i18n("Insert..."), m_tableActionMenu_0);
- m_removeActionMenu_1 = new KActionMenu(i18n("Remove..."), m_tableActionMenu_0);
+ m_tableActionMenu_0 = new TDEActionMenu(i18n("Table..."), TQT_TQOBJECT(widget));
+ m_insertActionMenu_1 = new TDEActionMenu(i18n("Insert..."), m_tableActionMenu_0);
+ m_removeActionMenu_1 = new TDEActionMenu(i18n("Remove..."), m_tableActionMenu_0);
}
@@ -292,37 +292,37 @@ void TableTagActionSet::initActions(TQWidget* parent)
if(!m_tableActionMenu_0)
initActionMenus(parent);
- KActionCollection* ac(TagActionManager::self()->actionCollection());
+ TDEActionCollection* ac(TagActionManager::self()->actionCollection());
// Insert___________________________________________________________________________
const char *actionName = "insert_table";
//m_actionNames += actionName;
- new KAction(i18n("Table..."), 0, this,
+ new TDEAction(i18n("Table..."), 0, this,
TQT_SLOT(slotInsertTable()),
ac, actionName);
actionName = "insert_row_above";
//m_actionNames += actionName;
- new KAction(i18n("Row Above"), 0, this,
+ new TDEAction(i18n("Row Above"), 0, this,
TQT_SLOT(slotInsertRowAbove()),
ac, actionName);
actionName = "insert_row_below";
//m_actionNames += actionName;
- new KAction(i18n("Row Below"), 0, this,
+ new TDEAction(i18n("Row Below"), 0, this,
TQT_SLOT(slotInsertRowBelow()),
ac, actionName);
actionName = "insert_column_left";
//m_actionNames += actionName;
- new KAction(i18n("Column Left"), 0, this,
+ new TDEAction(i18n("Column Left"), 0, this,
TQT_SLOT(slotInsertColumnLeft()),
ac, actionName);
actionName = "insert_column_right";
//m_actionNames += actionName;
- new KAction(i18n("Column Right"), 0, this,
+ new TDEAction(i18n("Column Right"), 0, this,
TQT_SLOT(slotInsertColumnRight()),
ac, actionName);
@@ -330,31 +330,31 @@ void TableTagActionSet::initActions(TQWidget* parent)
actionName = "remove_table";
//m_actionNames += actionName;
- new KAction(i18n("Table"), 0, this,
+ new TDEAction(i18n("Table"), 0, this,
TQT_SLOT(slotRemoveTable()),
ac, actionName);
actionName = "remove_rows";
//m_actionNames += actionName;
- new KAction(i18n("Row(s)"), 0, this,
+ new TDEAction(i18n("Row(s)"), 0, this,
TQT_SLOT(slotRemoveRows()),
ac, actionName);
actionName = "remove_columns";
//m_actionNames += actionName;
- new KAction(i18n("Column(s)"), 0, this,
+ new TDEAction(i18n("Column(s)"), 0, this,
TQT_SLOT(slotRemoveColumns()),
ac, actionName);
actionName = "remove_cells";
//m_actionNames += actionName;
- new KAction(i18n("Cell(s)"), 0, this,
+ new TDEAction(i18n("Cell(s)"), 0, this,
TQT_SLOT(slotRemoveCells()),
ac, actionName);
actionName = "remove_cells_content";
//m_actionNames += actionName;
- new KAction(i18n("Cell(s) Content"), 0, this,
+ new TDEAction(i18n("Cell(s) Content"), 0, this,
TQT_SLOT(slotRemoveCellsContent()),
ac, actionName);
@@ -362,7 +362,7 @@ void TableTagActionSet::initActions(TQWidget* parent)
actionName = "merge_selected_cells";
//m_actionNames += actionName;
- new KAction(i18n("Merge Selected Cells"), 0, this,
+ new TDEAction(i18n("Merge Selected Cells"), 0, this,
TQT_SLOT(slotMergeSelectedCells()),
ac, actionName);
}
@@ -379,7 +379,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
m_separator->unplugAll();
- KActionCollection* ac(TagActionManager::self()->actionCollection());
+ TDEActionCollection* ac(TagActionManager::self()->actionCollection());
// Table
bool emptyTableActionMenu_0 = true;
@@ -390,7 +390,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
bool emptyInsertActionMenu_1 = true;
// Insert Table
- KAction* insertTableAction = ac->action("insert_table");
+ TDEAction* insertTableAction = ac->action("insert_table");
Q_ASSERT(insertTableAction);
m_insertActionMenu_1->remove(insertTableAction);
@@ -402,7 +402,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
m_insertActionMenu_1->insert(m_separator);
}
// Insert Row Above
- KAction* insertRowAboveAction = ac->action("insert_row_above");
+ TDEAction* insertRowAboveAction = ac->action("insert_row_above");
Q_ASSERT(insertRowAboveAction);
m_insertActionMenu_1->remove(insertRowAboveAction);
@@ -414,7 +414,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
//m_insertActionMenu_1->insert(m_separator);
}
// Insert Row Below
- KAction* insertRowBelowAction = ac->action("insert_row_below");
+ TDEAction* insertRowBelowAction = ac->action("insert_row_below");
Q_ASSERT(insertRowBelowAction);
m_insertActionMenu_1->remove(insertRowBelowAction);
@@ -426,7 +426,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
m_insertActionMenu_1->insert(m_separator);
}
// Insert Column Left
- KAction* insertColumnLeftAction = ac->action("insert_column_left");
+ TDEAction* insertColumnLeftAction = ac->action("insert_column_left");
Q_ASSERT(insertColumnLeftAction);
m_insertActionMenu_1->remove(insertColumnLeftAction);
@@ -438,7 +438,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
//m_insertActionMenu_1->insert(m_separator);
}
// Insert Column Right
- KAction* insertColumnRightAction = ac->action("insert_column_right");
+ TDEAction* insertColumnRightAction = ac->action("insert_column_right");
Q_ASSERT(insertColumnRightAction);
m_insertActionMenu_1->remove(insertColumnRightAction);
@@ -455,7 +455,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
bool emptyRemoveActionMenu_1 = true;
// Remove Table
- KAction* removeTableAction = ac->action("remove_table");
+ TDEAction* removeTableAction = ac->action("remove_table");
Q_ASSERT(removeTableAction);
m_removeActionMenu_1->remove(removeTableAction);
@@ -467,7 +467,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
m_removeActionMenu_1->insert(m_separator);
}
// Remove Row(s)
- KAction* removeRowsAction = ac->action("remove_rows");
+ TDEAction* removeRowsAction = ac->action("remove_rows");
Q_ASSERT(removeRowsAction);
m_removeActionMenu_1->remove(removeRowsAction);
@@ -479,7 +479,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
//m_removeActionMenu_1->insert(m_separator);
}
// Remove Column(s)
- KAction* removeColumnsAction = ac->action("remove_columns");
+ TDEAction* removeColumnsAction = ac->action("remove_columns");
Q_ASSERT(removeColumnsAction);
m_removeActionMenu_1->remove(removeColumnsAction);
@@ -491,7 +491,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
//m_removeActionMenu_1->insert(m_separator);
}
/* // Remove Cell(s)
- KAction* removeCellsAction = ac->action("remove_cells");
+ TDEAction* removeCellsAction = ac->action("remove_cells");
Q_ASSERT(removeCellsAction);
m_removeActionMenu_1->remove(removeCellsAction);
@@ -503,7 +503,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
//m_removeActionMenu_1->insert(m_separator);
}*/
// Remove Cell(s) Content
- KAction* removeCellsContentAction = ac->action("remove_cells_content");
+ TDEAction* removeCellsContentAction = ac->action("remove_cells_content");
Q_ASSERT(removeCellsContentAction);
m_removeActionMenu_1->remove(removeCellsContentAction);
@@ -538,7 +538,7 @@ bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& no
m_tableActionMenu_0->insert(m_separator);
}
// Merge selected cells
- KAction* mergeSelectedCellsAction = ac->action("merge_selected_cells");
+ TDEAction* mergeSelectedCellsAction = ac->action("merge_selected_cells");
Q_ASSERT(mergeSelectedCellsAction);
m_tableActionMenu_0->remove(mergeSelectedCellsAction);