Eneboo - Documentación para desarrolladores
src/qt/src/dialogs/qtabdialog.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qt/qtabdialog.h   3.3.8   edited Jan 11 14:37 $
00003 **
00004 ** Definition of QTabDialog class
00005 **
00006 ** Created : 960825
00007 **
00008 ** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
00009 **
00010 ** This file is part of the dialogs module of the Qt GUI Toolkit.
00011 **
00012 ** This file may be distributed under the terms of the Q Public License
00013 ** as defined by Trolltech ASA of Norway and appearing in the file
00014 ** LICENSE.QPL included in the packaging of this file.
00015 **
00016 ** This file may be distributed and/or modified under the terms of the
00017 ** GNU General Public License version 2 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.GPL included in the
00019 ** packaging of this file.
00020 **
00021 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00022 ** licenses may use this file in accordance with the Qt Commercial License
00023 ** Agreement provided with the Software.
00024 **
00025 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00026 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00027 **
00028 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00029 **   information about Qt Commercial License Agreements.
00030 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00032 **
00033 ** Contact info@trolltech.com if any conditions of this licensing are
00034 ** not clear to you.
00035 **
00036 **********************************************************************/
00037 
00038 #ifndef QTABDIALOG_H
00039 #define QTABDIALOG_H
00040 
00041 #ifndef QT_H
00042 #include "qdialog.h"
00043 #include "qiconset.h"
00044 #endif // QT_H
00045 
00046 #ifndef QT_NO_TABDIALOG
00047 
00048 class  QTabBar;
00049 class  QTab;
00050 class  QTabDialogPrivate;
00051 
00052 class Q_EXPORT QTabDialog : public QDialog
00053 {
00054     Q_OBJECT
00055 public:
00056     QTabDialog( QWidget* parent=0, const char* name=0, bool modal=FALSE,
00057                 WFlags f=0 );
00058     ~QTabDialog();
00059 
00060     void show();
00061     void setFont( const QFont & font );
00062 
00063     void addTab( QWidget *, const QString &);
00064     void addTab( QWidget *child, const QIconSet& iconset, const QString &label);
00065     void addTab( QWidget *, QTab* );
00066 
00067     void insertTab( QWidget *, const QString &, int index = -1);
00068     void insertTab( QWidget *child, const QIconSet& iconset, const QString &label, int index = -1);
00069     void insertTab( QWidget *, QTab*, int index = -1 );
00070 
00071     void changeTab( QWidget *, const QString &);
00072     void changeTab( QWidget *child, const QIconSet& iconset, const QString &label);
00073 
00074     bool isTabEnabled(  QWidget * ) const;
00075     void setTabEnabled( QWidget *, bool );
00076     bool isTabEnabled( const char* ) const; // compatibility
00077     void setTabEnabled( const char*, bool ); // compatibility
00078 
00079     void showPage( QWidget * );
00080     void removePage( QWidget * );
00081     QString tabLabel( QWidget * );
00082 
00083     QWidget * currentPage() const;
00084 
00085     void setDefaultButton( const QString &text );
00086     void setDefaultButton();
00087     bool hasDefaultButton() const;
00088 
00089     void setHelpButton( const QString &text );
00090     void setHelpButton();
00091     bool hasHelpButton() const;
00092 
00093     void setCancelButton( const QString &text );
00094     void setCancelButton();
00095     bool hasCancelButton() const;
00096 
00097     void setApplyButton( const QString &text );
00098     void setApplyButton();
00099     bool hasApplyButton() const;
00100 
00101 #ifndef Q_QDOC
00102     void setOKButton( const QString &text = QString::null );
00103 #endif
00104     void setOkButton( const QString &text );
00105     void setOkButton();
00106     bool hasOkButton() const;
00107 
00108 protected:
00109     void paintEvent( QPaintEvent * );
00110     void resizeEvent( QResizeEvent * );
00111     void styleChange( QStyle& );
00112     void setTabBar( QTabBar* );
00113     QTabBar* tabBar() const;
00114 
00115 signals:
00116     void aboutToShow();
00117 
00118     void applyButtonPressed();
00119     void cancelButtonPressed();
00120     void defaultButtonPressed();
00121     void helpButtonPressed();
00122 
00123     void currentChanged( QWidget * );
00124     void selected( const QString& ); // obsolete
00125 
00126 private slots:
00127     void showTab( int i );
00128 
00129 private:
00130     void setSizes();
00131     void setUpLayout();
00132 
00133     QTabDialogPrivate *d;
00134 private:        // Disabled copy constructor and operator=
00135 #if defined(Q_DISABLE_COPY)
00136     QTabDialog( const QTabDialog & );
00137     QTabDialog& operator=( const QTabDialog & );
00138 #endif
00139 };
00140 
00141 #endif // QT_NO_TABDIALOG
00142 
00143 #endif // QTABDIALOG_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'