summaryrefslogtreecommitdiffstats
path: root/lib/widgets/tdevtabwidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-05-25 15:37:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-05-25 15:37:31 +0900
commit6392f5a9dfce2bf83617d49bb7f332181ec6004e (patch)
treeab69e390f7962b7e7dda1a3a64f035c61c751cf4 /lib/widgets/tdevtabwidget.cpp
parentaba2788b428dc53243407902e9ccbb20b97a69fd (diff)
downloadtdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.tar.gz
tdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.zip
Revert "Finish renaming tdevelop components"
This reverts commit 722ce1efbac31c61b1d4b13f7e075c9f311e3e73.
Diffstat (limited to 'lib/widgets/tdevtabwidget.cpp')
-rw-r--r--lib/widgets/tdevtabwidget.cpp66
1 files changed, 0 insertions, 66 deletions
diff --git a/lib/widgets/tdevtabwidget.cpp b/lib/widgets/tdevtabwidget.cpp
deleted file mode 100644
index adfd4566..00000000
--- a/lib/widgets/tdevtabwidget.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2001-2003 *
- * The KDevelop Team *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#include <tqpopupmenu.h>
-
-#include <tdeglobal.h>
-#include <tdelocale.h>
-#include <kicontheme.h>
-#include <kiconloader.h>
-
-#include "tdevtabwidget.h"
-
-TDevTabWidget::TDevTabWidget(TQWidget *parent, const char *name) : TQTabWidget(parent,name)
-{
- m_pTabBar = new KTabBar(this, "tabbar");
- setTabBar(m_pTabBar);
- connect(m_pTabBar, TQT_SIGNAL(closeWindow(const TQWidget*)), this, TQT_SIGNAL(closeWindow(const TQWidget*)));
- connect(m_pTabBar, TQT_SIGNAL(closeOthers(TQWidget*)), this, TQT_SIGNAL(closeOthers(TQWidget*)));
-}
-
-KTabBar::KTabBar(TQWidget *parent, const char *name) : TQTabBar(parent,name)
-{
- m_pPopupMenu = new TQPopupMenu(this);
-
- TQPixmap closePixmap = TDEGlobal::instance()->iconLoader()->loadIcon( "tab_remove", TDEIcon::Small, 0, TDEIcon::DefaultState, 0, true );
- if (closePixmap.isNull())
- closePixmap = SmallIcon("fileclose");
-
- m_pPopupMenu->insertItem(closePixmap, i18n("&Close"), this, TQT_SLOT(closeWindowSlot()));
- m_pPopupMenu->insertItem(i18n("Close &Others"), this, TQT_SLOT(closeOthersSlot()));
-}
-
-void KTabBar::closeWindowSlot()
-{
- emit closeWindow(m_pPage);
-}
-
-void KTabBar::closeOthersSlot()
-{
- emit closeOthers(m_pPage);
-}
-
-void KTabBar::mousePressEvent(TQMouseEvent *e)
-{
- if(e->button() == Qt::RightButton) {
-
- TQTab *tab = selectTab(e->pos() );
- if( tab == 0L ) return;
-
- m_pPage = ((TDevTabWidget*)parent())->page(indexOf(tab->identifier() ) );
- if(m_pPage == 0L) return;
-
- m_pPopupMenu->exec(mapToGlobal(e->pos()));
- }
- TQTabBar::mousePressEvent(e);
-}
-
-#include "tdevtabwidget.moc"