• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

ktabbar.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2003 Stephan Binner <binner@kde.org>
00003     Copyright (C) 2003 Zack Rusin <zack@kde.org>
00004     Copyright (C) 2009 Urs Wolfer <uwolfer @ kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
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 //krazy:exclude=qclasses
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

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal