From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/utility/tagactionset.cpp | 74 ++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'quanta/utility/tagactionset.cpp') diff --git a/quanta/utility/tagactionset.cpp b/quanta/utility/tagactionset.cpp index 691ad182..a74df537 100644 --- a/quanta/utility/tagactionset.cpp +++ b/quanta/utility/tagactionset.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include "tagactionset.h" #include "tagactionmanager.h" @@ -40,14 +40,14 @@ #include "resource.h" -TagActionSetAbstract::TagActionSetAbstract(QObject *parent, const char *name) - : QObject(parent, name), m_currentNode(0) +TagActionSetAbstract::TagActionSetAbstract(TQObject *parent, const char *name) + : TQObject(parent, name), m_currentNode(0) {} TagActionSetAbstract::~TagActionSetAbstract() {} -Node* TagActionSetAbstract::parentTag(Node* node, QString const& tagName) +Node* TagActionSetAbstract::parentTag(Node* node, TQString const& tagName) { Q_ASSERT(node); @@ -58,7 +58,7 @@ Node* TagActionSetAbstract::parentTag(Node* node, QString const& tagName) return aux; } -Node* TagActionSetAbstract::firstChildTag(Node* startParentNode, QString const& tagName) +Node* TagActionSetAbstract::firstChildTag(Node* startParentNode, TQString const& tagName) { Node* aux = startParentNode; while(aux && aux->nodeName().lower() != tagName) @@ -71,7 +71,7 @@ Node* TagActionSetAbstract::firstChildTag(Node* startParentNode, QString const& return aux; } -bool TagActionSetAbstract::fillWithTagActions(QWidget* /*widget*/, DOM::Node const& node) +bool TagActionSetAbstract::fillWithTagActions(TQWidget* /*widget*/, DOM::Node const& node) { m_currentDomNode = node; m_currentNode = KafkaDocument::ref()->getNode(m_currentDomNode); @@ -81,7 +81,7 @@ bool TagActionSetAbstract::fillWithTagActions(QWidget* /*widget*/, DOM::Node con //_____________________________________________________________________________ -TagActionSet::TagActionSet(QObject *parent, const char *name) +TagActionSet::TagActionSet(TQObject *parent, const char *name) : TagActionSetAbstract(parent, name), m_separator(0) { m_separator = new KActionSeparator(); @@ -92,31 +92,31 @@ bool TagActionSet::isInTagContext() const return true; } -void TagActionSet::initActionMenus(QWidget* /*widget*/) +void TagActionSet::initActionMenus(TQWidget* /*widget*/) { } -void TagActionSet::initActions(QWidget* /*parent*/) +void TagActionSet::initActions(TQWidget* /*parent*/) { KActionCollection* ac(TagActionManager::self()->actionCollection()); - QString actionName = "apply_source_indentation"; + TQString actionName = "apply_source_indentation"; new KAction(i18n("Apply Source Indentation"), 0, this, - SLOT(slotApplySourceIndentation()), + TQT_SLOT(slotApplySourceIndentation()), ac, actionName); actionName = "copy_div_element"; new KAction(i18n("Copy DIV Area"), 0, this, - SLOT(slotCopyDivElement()), + TQT_SLOT(slotCopyDivElement()), ac, actionName); actionName = "cut_div_element"; new KAction(i18n("Cut DIV Area"), 0, this, - SLOT(slotCutDivElement()), + TQT_SLOT(slotCutDivElement()), ac, actionName); } -bool TagActionSet::fillWithTagActions(QWidget* widget, DOM::Node const& node) +bool TagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& node) { bool validNode = TagActionSetAbstract::fillWithTagActions(widget, node); @@ -162,7 +162,7 @@ bool TagActionSet::fillWithTagActions(QWidget* widget, DOM::Node const& node) return true; } -void TagActionSet::unplugAllActions(QWidget* widget) const +void TagActionSet::unplugAllActions(TQWidget* widget) const { KActionCollection* ac(TagActionManager::self()->actionCollection()); @@ -238,7 +238,7 @@ void TagActionSet::slotCopyDivElement() return; } - KafkaDocument::ref()->slotCopy(divNode, 0, divClosingNode, 0, QString()); + KafkaDocument::ref()->slotCopy(divNode, 0, divClosingNode, 0, TQString()); } void TagActionSet::slotCutDivElement() @@ -260,13 +260,13 @@ void TagActionSet::slotCutDivElement() int cursorOffset = selection_ind.cursorOffset(); - KafkaDocument::ref()->slotCut(divNode, 0, divClosingNode, 0, &m_currentNode, cursorOffset, QString()); + KafkaDocument::ref()->slotCut(divNode, 0, divClosingNode, 0, &m_currentNode, cursorOffset, TQString()); } //_____________________________________________________________________________ -TableTagActionSet::TableTagActionSet(QObject *parent, const char *name) +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(); @@ -277,7 +277,7 @@ bool TableTagActionSet::isInTagContext() const return parentTag(m_currentNode, "table"); } -void TableTagActionSet::initActionMenus(QWidget* widget) +void TableTagActionSet::initActionMenus(TQWidget* widget) { Q_ASSERT(!m_tableActionMenu_0); @@ -287,7 +287,7 @@ void TableTagActionSet::initActionMenus(QWidget* widget) } -void TableTagActionSet::initActions(QWidget* parent) +void TableTagActionSet::initActions(TQWidget* parent) { if(!m_tableActionMenu_0) initActionMenus(parent); @@ -296,34 +296,34 @@ void TableTagActionSet::initActions(QWidget* parent) // Insert___________________________________________________________________________ - QString actionName = "insert_table"; + TQString actionName = "insert_table"; //m_actionNames += actionName; new KAction(i18n("Table..."), 0, this, - SLOT(slotInsertTable()), + TQT_SLOT(slotInsertTable()), ac, actionName); actionName = "insert_row_above"; //m_actionNames += actionName; new KAction(i18n("Row Above"), 0, this, - SLOT(slotInsertRowAbove()), + TQT_SLOT(slotInsertRowAbove()), ac, actionName); actionName = "insert_row_below"; //m_actionNames += actionName; new KAction(i18n("Row Below"), 0, this, - SLOT(slotInsertRowBelow()), + TQT_SLOT(slotInsertRowBelow()), ac, actionName); actionName = "insert_column_left"; //m_actionNames += actionName; new KAction(i18n("Column Left"), 0, this, - SLOT(slotInsertColumnLeft()), + TQT_SLOT(slotInsertColumnLeft()), ac, actionName); actionName = "insert_column_right"; //m_actionNames += actionName; new KAction(i18n("Column Right"), 0, this, - SLOT(slotInsertColumnRight()), + TQT_SLOT(slotInsertColumnRight()), ac, actionName); // Remove___________________________________________________________________________ @@ -331,31 +331,31 @@ void TableTagActionSet::initActions(QWidget* parent) actionName = "remove_table"; //m_actionNames += actionName; new KAction(i18n("Table"), 0, this, - SLOT(slotRemoveTable()), + TQT_SLOT(slotRemoveTable()), ac, actionName); actionName = "remove_rows"; //m_actionNames += actionName; new KAction(i18n("Row(s)"), 0, this, - SLOT(slotRemoveRows()), + TQT_SLOT(slotRemoveRows()), ac, actionName); actionName = "remove_columns"; //m_actionNames += actionName; new KAction(i18n("Column(s)"), 0, this, - SLOT(slotRemoveColumns()), + TQT_SLOT(slotRemoveColumns()), ac, actionName); actionName = "remove_cells"; //m_actionNames += actionName; new KAction(i18n("Cell(s)"), 0, this, - SLOT(slotRemoveCells()), + TQT_SLOT(slotRemoveCells()), ac, actionName); actionName = "remove_cells_content"; //m_actionNames += actionName; new KAction(i18n("Cell(s) Content"), 0, this, - SLOT(slotRemoveCellsContent()), + TQT_SLOT(slotRemoveCellsContent()), ac, actionName); // Merge___________________________________________________________________________ @@ -363,11 +363,11 @@ void TableTagActionSet::initActions(QWidget* parent) actionName = "merge_selected_cells"; //m_actionNames += actionName; new KAction(i18n("Merge Selected Cells"), 0, this, - SLOT(slotMergeSelectedCells()), + TQT_SLOT(slotMergeSelectedCells()), ac, actionName); } -bool TableTagActionSet::fillWithTagActions(QWidget* widget, DOM::Node const& node) +bool TableTagActionSet::fillWithTagActions(TQWidget* widget, DOM::Node const& node) { bool validNode = TagActionSetAbstract::fillWithTagActions(widget, node); @@ -553,7 +553,7 @@ bool TableTagActionSet::fillWithTagActions(QWidget* widget, DOM::Node const& nod return true; } -void TableTagActionSet::unplugAllActions(QWidget* widget) const +void TableTagActionSet::unplugAllActions(TQWidget* widget) const { m_separator->unplugAll(); m_tableActionMenu_0->unplug(widget); @@ -912,8 +912,8 @@ bool TableTagActionSet::canMergeSelectedCells() const NodeSelectionInd selection; selection.fillWithVPLCursorSelection(); - QValueList start = selection.cursorNode(); - QValueList end = selection.cursorNodeEndSel(); + TQValueList start = selection.cursorNode(); + TQValueList end = selection.cursorNodeEndSel(); return start != end; } @@ -960,7 +960,7 @@ void TableTagActionSet::slotMergeSelectedCells() if(count == 1) return; - kafkaCommon::editNodeAttribute(startTd, "colspan", QString::number(count), modifs); + kafkaCommon::editNodeAttribute(startTd, "colspan", TQString::number(count), modifs); kafkaCommon::editNodeAttribute(startTd, "rowspan", "1", modifs); view->document()->docUndoRedo->addNewModifsSet(modifs, undoRedo::NodeTreeModif); -- cgit v1.2.1