ktabzoomframe.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_TABZOOMFRAME_H__ 00013 #define __K_TABZOOMFRAME_H__ 00014 00015 #include <qframe.h> 00016 00017 #include "ktabzoomposition.h" 00018 00019 00020 class KTabZoomFramePrivate; 00021 00022 class KTabZoomFrame : public QWidget 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 00028 KTabZoomFrame(QWidget *parent=0, KTabZoomPosition::Position pos=KTabZoomPosition::Left, const char *name=0); 00029 ~KTabZoomFrame(); 00030 00031 int addTab(QWidget *widget, const QString &title); 00032 void removeTab(int index); 00033 00034 void setDockMode(bool docked); 00035 00036 00037 public slots: 00038 00039 void selected(int index); 00040 00041 00042 signals: 00043 00044 void closeClicked(); 00045 void dockToggled(bool docked); 00046 void sizeChanged(); 00047 00048 00049 protected: 00050 00051 void mousePressEvent(QMouseEvent *ev); 00052 void mouseReleaseEvent(QMouseEvent *ev); 00053 void mouseMoveEvent(QMouseEvent *ev); 00054 00055 00056 private slots: 00057 00058 void slotDockButtonToggled(bool toggle); 00059 00060 00061 private: 00062 00063 KTabZoomFramePrivate *d; 00064 00065 }; 00066 00067 00068 #endif