# kmdi Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kmdidocumentviewtabwidget.h

    00001 //----------------------------------------------------------------------------
    00002 //
    00003 //    This program is free software; you can redistribute it and/or modify
    00004 //    it under the terms of the GNU Library General Public License as
    00005 //    published by the Free Software Foundation; either version 2 of the
    00006 //    License, or (at your option) any later version.
    00007 //
    00008 //----------------------------------------------------------------------------
    00009
    00010 #ifndef _KMDI_DOCUMENT_VIEW_TAB_WIDGET_H_
    00011 #define _KMDI_DOCUMENT_VIEW_TAB_WIDGET_H_
    00012
    00013 #include <ktabwidget.h>
    00014 #include <kmdidefines.h>
    00015
    00016 class KPopupMenu;
    00017
    00018 //KDE4: Add a d pointer
    00022 class KMDI_EXPORT KMdiDocumentViewTabWidget:
    00023             public KTabWidget
    00024 {
    00025     Q_OBJECT
    00026 public:
    00027     KMdiDocumentViewTabWidget( QWidget* parent, const char* name = 0 );
    00028     ~KMdiDocumentViewTabWidget();
    00029
    00035     virtual void addTab ( QWidget * child, const QString & label );
    00036
    00042     virtual void addTab ( QWidget * child, const QIconSet & iconset, const QString & label );
    00043
    00049     virtual void addTab ( QWidget * child, QTab * tab );
    00050
    00056     virtual void insertTab ( QWidget * child, const QString & label, int index = -1 );
    00057
    00063     virtual void insertTab ( QWidget * child, const QIconSet & iconset, const QString & label, int index = -1 );
    00064
    00070     virtual void insertTab ( QWidget * child, QTab * tab, int index = -1 );
    00071
    00077     virtual void removePage ( QWidget * w );
    00078
    00083     KMdi::TabWidgetVisibility tabWidgetVisibility();
    00084
    00086     void setTabWidgetVisibility( KMdi::TabWidgetVisibility );
    00087
    00088 private slots:
    00089
    00091     void closeTab( QWidget* w );
    00092
    00094     void moveTab( int from, int to );
    00095
    00096 public slots:
    00097
    00099     void updateIconInView( QWidget*, QPixmap );
    00100
    00102     void updateCaptionInView( QWidget*, const QString& );
    00103
    00104 private:
    00105
    00111     void maybeShow();
    00112
    00113     KMdi::TabWidgetVisibility m_visibility;
    00114
    00115 signals:
    00116     void initiateTabMove(int, int);
    00117 };
    00118
    00119
    00120
    00121 #endif
    00122 // kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
    00123

This file is part of the documentation for kmdi Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:32:06 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003