KDevelop API Documentation

lib/widgets/kdevtabwidget.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2001-2003 * 00003 * The KDevelop Team * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef __K_TABWIDGET_H__ 00013 #define __K_TABWIDGET_H__ 00014 00015 #include <qtabwidget.h> 00016 #include <qtabbar.h> 00017 #include <qevent.h> 00018 00019 class QPopupMenu; 00020 00021 class KTabBar : public QTabBar 00022 { 00023 Q_OBJECT 00024 00025 public: 00026 KTabBar(QWidget *parent=0, const char *name=0); 00027 signals: 00028 void closeWindow(const QWidget *); 00029 void closeOthers(QWidget *); 00030 protected slots: 00031 virtual void mousePressEvent(QMouseEvent *e); 00032 void closeWindowSlot(); 00033 void closeOthersSlot(); 00034 private: 00035 QPopupMenu *m_pPopupMenu; 00036 QWidget *m_pPage; 00037 }; 00038 00039 class KDevTabWidget : public QTabWidget 00040 { 00041 Q_OBJECT 00042 00043 public: 00044 KDevTabWidget(QWidget *parent=0, const char *name=0); 00045 signals: 00046 void closeWindow(const QWidget *); 00047 void closeOthers(QWidget *); 00048 private: 00049 KTabBar *m_pTabBar; 00050 }; 00051 00052 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:08 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003