KDEUI
ktabbar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KTABBAR_H
00023 #define KTABBAR_H
00024
00025 #include <kdeui_export.h>
00026
00027 #include <QtGui/QTabBar>
00028
00032 class KDEUI_EXPORT KTabBar: public QTabBar
00033 {
00034 Q_OBJECT
00035
00036 public:
00042 explicit KTabBar( QWidget* parent = 0 );
00043
00047 virtual ~KTabBar();
00048
00056 KDE_DEPRECATED void setTabReorderingEnabled( bool enable );
00057
00063 KDE_DEPRECATED bool isTabReorderingEnabled() const;
00064
00073 KDE_DEPRECATED void setHoverCloseButton( bool );
00074
00076 KDE_DEPRECATED bool hoverCloseButton() const;
00077
00085 KDE_DEPRECATED void setHoverCloseButtonDelayed( bool );
00086
00088 KDE_DEPRECATED bool hoverCloseButtonDelayed() const;
00089
00099 KDE_DEPRECATED void setCloseButtonEnabled( bool );
00100
00108 KDE_DEPRECATED bool isCloseButtonEnabled() const;
00109
00117 KDE_DEPRECATED void setTabCloseActivatePrevious( bool );
00118
00125 KDE_DEPRECATED bool tabCloseActivatePrevious() const;
00126
00133 int selectTab( const QPoint &position ) const;
00134
00135 Q_SIGNALS:
00137 void contextMenu( int, const QPoint& );
00139 void emptyAreaContextMenu( const QPoint& );
00141 QT_MOC_COMPAT void mouseDoubleClick( int );
00143 void tabDoubleClicked( int );
00145 void newTabRequest();
00147 void mouseMiddleClick( int );
00148 void initiateDrag( int );
00149 void testCanDecode( const QDragMoveEvent*, bool& );
00150 void receivedDropEvent( int, QDropEvent* );
00152 QT_MOC_COMPAT void moveTab( int, int );
00154 QT_MOC_COMPAT void closeRequest( int );
00155 #ifndef QT_NO_WHEELEVENT
00156 void wheelDelta( int );
00157 #endif
00158
00159 protected:
00160 virtual void mouseDoubleClickEvent( QMouseEvent *event );
00161 virtual void mousePressEvent( QMouseEvent *event );
00162 virtual void mouseMoveEvent( QMouseEvent *event );
00163 virtual void mouseReleaseEvent( QMouseEvent *event );
00164 #ifndef QT_NO_WHEELEVENT
00165 virtual void wheelEvent( QWheelEvent *event );
00166 #endif
00167
00168 virtual void dragEnterEvent( QDragEnterEvent *event );
00169 virtual void dragMoveEvent( QDragMoveEvent *event );
00170 virtual void dropEvent( QDropEvent *event );
00171
00172 virtual void paintEvent( QPaintEvent *event );
00173 virtual void leaveEvent( QEvent *event );
00174 virtual QSize tabSizeHint( int index ) const;
00175
00176 protected Q_SLOTS:
00178 QT_MOC_COMPAT void closeButtonClicked();
00180 QT_MOC_COMPAT void enableCloseButton();
00181 virtual void activateDragSwitchTab();
00182
00183 protected:
00184 virtual void tabLayoutChange();
00185
00186 private:
00187 QPoint closeButtonPos( int tabIndex ) const;
00188 QRect closeButtonRect( int tabIndex ) const;
00189
00190 private:
00191 class Private;
00192 Private* const d;
00193 };
00194
00195 #endif