summaryrefslogtreecommitdiffstats
path: root/konq-plugins/domtreeviewer/domtreewindow.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /konq-plugins/domtreeviewer/domtreewindow.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/domtreeviewer/domtreewindow.cpp')
-rw-r--r--konq-plugins/domtreeviewer/domtreewindow.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/konq-plugins/domtreeviewer/domtreewindow.cpp b/konq-plugins/domtreeviewer/domtreewindow.cpp
index f8b9ed5..0dd6d7f 100644
--- a/konq-plugins/domtreeviewer/domtreewindow.cpp
+++ b/konq-plugins/domtreeviewer/domtreewindow.cpp
@@ -50,8 +50,8 @@
#include <kaction.h>
#include <kstdaction.h>
-#include <qdatetime.h>
-#include <qtimer.h>
+#include <tqdatetime.h>
+#include <tqtimer.h>
using domtreeviewer::ManipulationCommand;
@@ -84,16 +84,16 @@ DOMTreeWindow::DOMTreeWindow(PluginDomtreeviewer *plugin)
// allow the view to change the statusbar and caption
#if 0
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
#endif
- connect(view(), SIGNAL(htmlPartChanged(KHTMLPart *)),
- SLOT(slotHtmlPartChanged(KHTMLPart *)));
+ connect(view(), TQT_SIGNAL(htmlPartChanged(KHTMLPart *)),
+ TQT_SLOT(slotHtmlPartChanged(KHTMLPart *)));
- ManipulationCommand::connect(SIGNAL(error(int, const QString &)),
- this, SLOT(addMessage(int, const QString &)));
+ ManipulationCommand::connect(TQT_SIGNAL(error(int, const TQString &)),
+ this, TQT_SLOT(addMessage(int, const TQString &)));
infopanel_ctx = createInfoPanelAttrContextMenu();
domtree_ctx = createDOMTreeViewContextMenu();
@@ -119,74 +119,74 @@ void DOMTreeWindow::executeAndAddCommand(ManipulationCommand *cmd)
void DOMTreeWindow::setupActions()
{
- KStdAction::close(this, SLOT(close()), actionCollection());
+ KStdAction::close(this, TQT_SLOT(close()), actionCollection());
- KStdAction::cut(this, SLOT(slotCut()), actionCollection())->setEnabled(false);
- KStdAction::copy(this, SLOT(slotCopy()), actionCollection())->setEnabled(false);
- KStdAction::paste(this, SLOT(slotPaste()), actionCollection())->setEnabled(false);
+ KStdAction::cut(this, TQT_SLOT(slotCut()), actionCollection())->setEnabled(false);
+ KStdAction::copy(this, TQT_SLOT(slotCopy()), actionCollection())->setEnabled(false);
+ KStdAction::paste(this, TQT_SLOT(slotPaste()), actionCollection())->setEnabled(false);
m_commandHistory = new KCommandHistory(actionCollection());
- KStdAction::find(this, SLOT(slotFind()), actionCollection());
+ KStdAction::find(this, TQT_SLOT(slotFind()), actionCollection());
- KStdAction::redisplay(m_view, SLOT(refresh()), actionCollection());
+ KStdAction::redisplay(m_view, TQT_SLOT(refresh()), actionCollection());
// toggle manipulation dialog
KAction *showMsgDlg = new KAction(i18n("Show Message Log"),
CTRL+Key_E, actionCollection(), "show_msg_dlg");
- connect(showMsgDlg, SIGNAL(activated()), SLOT(showMessageLog()));
+ connect(showMsgDlg, TQT_SIGNAL(activated()), TQT_SLOT(showMessageLog()));
// KAction *custom = new KAction(i18n("Cus&tom Menuitem"), 0,
-// this, SLOT(optionsPreferences()),
+// this, TQT_SLOT(optionsPreferences()),
// actionCollection(), "custom_action");
// actions for the dom tree list view toolbar
- KStdAction::up(view(), SLOT(moveToParent()), actionCollection(), "tree_up");
+ KStdAction::up(view(), TQT_SLOT(moveToParent()), actionCollection(), "tree_up");
KAction *tree_inc_level = new KAction(i18n("Expand"),
"1rightarrow", CTRL+Key_Greater, view(),
- SLOT(increaseExpansionDepth()), actionCollection(),
+ TQT_SLOT(increaseExpansionDepth()), actionCollection(),
"tree_inc_level");
tree_inc_level->setToolTip(i18n("Increase expansion level"));
KAction *tree_dec_level = new KAction(i18n("Collapse"),
"1leftarrow", CTRL+Key_Less, view(),
- SLOT(decreaseExpansionDepth()), actionCollection(),
+ TQT_SLOT(decreaseExpansionDepth()), actionCollection(),
"tree_dec_level");
tree_dec_level->setToolTip(i18n("Decrease expansion level"));
// actions for the dom tree list view context menu
del_tree = new KAction(i18n("&Delete"), "editdelete",
- Key_Delete, view(), SLOT(deleteNodes()),
+ Key_Delete, view(), TQT_SLOT(deleteNodes()),
actionCollection(), "tree_delete");
del_tree->setToolTip(i18n("Delete nodes"));
/*KAction *new_elem = */new KAction(i18n("New &Element ..."),
"bookmark", KShortcut(), view(),
- SLOT(slotAddElementDlg()), actionCollection(),
+ TQT_SLOT(slotAddElementDlg()), actionCollection(),
"tree_add_element");
/*KAction *new_text = */new KAction(i18n("New &Text Node ..."),
- "text", KShortcut(), view(), SLOT(slotAddTextDlg()),
+ "text", KShortcut(), view(), TQT_SLOT(slotAddTextDlg()),
actionCollection(), "tree_add_text");
// actions for the info panel attribute list context menu
del_attr = new KAction(i18n("&Delete"), "editdelete",
- Key_Delete, view(), SLOT(deleteAttributes()),
+ Key_Delete, view(), TQT_SLOT(deleteAttributes()),
actionCollection(), "attr_delete");
del_attr->setToolTip(i18n("Delete attributes"));
}
-QPopupMenu *DOMTreeWindow::createInfoPanelAttrContextMenu()
+TQPopupMenu *DOMTreeWindow::createInfoPanelAttrContextMenu()
{
- QWidget *w = factory()->container("infopanelattr_context", this);
+ TQWidget *w = factory()->container("infopanelattr_context", this);
Q_ASSERT(w);
- return static_cast<QPopupMenu *>(w);
+ return static_cast<TQPopupMenu *>(w);
}
-QPopupMenu *DOMTreeWindow::createDOMTreeViewContextMenu()
+TQPopupMenu *DOMTreeWindow::createDOMTreeViewContextMenu()
{
- QWidget *w = factory()->container("domtree_context", this);
+ TQWidget *w = factory()->container("domtree_context", this);
Q_ASSERT(w);
- return static_cast<QPopupMenu *>(w);
+ return static_cast<TQPopupMenu *>(w);
}
void DOMTreeWindow::saveProperties(KConfig *config)
@@ -214,20 +214,20 @@ void DOMTreeWindow::readProperties(KConfig *config)
// in 'saveProperties'
#if 0
- QString url = config->readPathEntry("lastURL");
+ TQString url = config->readPathEntry("lastURL");
if (!url.isEmpty())
m_view->openURL(KURL::fromPathOrURL(url));
#endif
}
-void DOMTreeWindow::dragEnterEvent(QDragEnterEvent *event)
+void DOMTreeWindow::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void DOMTreeWindow::dropEvent(QDropEvent *event)
+void DOMTreeWindow::dropEvent(TQDropEvent *event)
{
// this is a very simplistic implementation of a drop event. we
// will only accept a dropped URL. the Qt dnd code can do *much*
@@ -246,14 +246,14 @@ void DOMTreeWindow::dropEvent(QDropEvent *event)
}
}
-void DOMTreeWindow::addMessage(int msg_id, const QString &msg)
+void DOMTreeWindow::addMessage(int msg_id, const TQString &msg)
{
- QDateTime t(QDateTime::currentDateTime());
- QString fullmsg = t.toString();
+ TQDateTime t(TQDateTime::currentDateTime());
+ TQString fullmsg = t.toString();
fullmsg += ":";
if (msg_id != 0)
- fullmsg += " (" + QString::number(msg_id) + ") ";
+ fullmsg += " (" + TQString::number(msg_id) + ") ";
fullmsg += msg;
if (msgdlg) msgdlg->addMessage(fullmsg);
@@ -292,7 +292,7 @@ void DOMTreeWindow::optionsConfigureToolbars()
// use the standard toolbar editor
saveMainWindowSettings( config(), autoSaveGroup() );
KEditToolbar dlg(actionCollection());
- connect(&dlg, SIGNAL(newToolbarConfig()), this, SLOT(newToolbarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(newToolbarConfig()));
dlg.exec();
}
@@ -316,13 +316,13 @@ void DOMTreeWindow::optionsPreferences()
#endif
}
-void DOMTreeWindow::changeStatusbar(const QString& text)
+void DOMTreeWindow::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text);
}
-void DOMTreeWindow::changeCaption(const QString& text)
+void DOMTreeWindow::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
@@ -339,13 +339,13 @@ void DOMTreeWindow::slotHtmlPartChanged(KHTMLPart *p)
part_manager = p->manager();
- connect(part_manager, SIGNAL(activePartChanged(KParts::Part *)),
- SLOT(slotActivePartChanged(KParts::Part *)));
- connect(part_manager, SIGNAL(partRemoved(KParts::Part *)),
- SLOT(slotPartRemoved(KParts::Part *)));
+ connect(part_manager, TQT_SIGNAL(activePartChanged(KParts::Part *)),
+ TQT_SLOT(slotActivePartChanged(KParts::Part *)));
+ connect(part_manager, TQT_SIGNAL(partRemoved(KParts::Part *)),
+ TQT_SLOT(slotPartRemoved(KParts::Part *)));
// set up browser extension connections
- connect(p, SIGNAL(docCreated()), SLOT(slotClosePart()));
+ connect(p, TQT_SIGNAL(docCreated()), TQT_SLOT(slotClosePart()));
}
}