/****************************************************************************
** $Id: qtabdialog.h,v 2.20.2.1 1998/08/19 16:02:27 agulbra Exp $
**
** Definition of QTabDialog class
**
** Created : 960825
**
** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
**
** This file is part of Troll Tech's internal development tree for Qt.
**
** This header text will be replaced by an appropriate text by the
** mkdist script which generates external distributions.
**
** If you are using the Qt Professional Edition or the Qt Free Edition,
** please notify Troll Tech at <info@troll.no> if you see this text.
**
** To Troll Tech developers: This header was generated by the script
** fixcopyright-int. It has the same number of text lines as the free
** and professional editions to avoid line number inconsistency.
**
*****************************************************************************/
#ifndef QTABDIALOG_H
#define QTABDIALOG_H
#ifndef QT_H
#include "qdialog.h"
#endif // QT_H
class QTabBar;
struct QTabPrivate;
struct QTab;
class Q_EXPORT QTabDialog : public QDialog
{
Q_OBJECT
public:
QTabDialog( QWidget *parent=0, const char *name=0, bool modal=FALSE,
WFlags f=0 );
~QTabDialog();
void show();
void setFont( const QFont & font );
void addTab( QWidget *, const char * );
void addTab( QWidget *, QTab* );
bool isTabEnabled( const char * ) const;
void setTabEnabled( const char *, bool );
void showPage( QWidget * );
const char * tabLabel( QWidget * );
void setDefaultButton( const char *text = "Defaults" );
bool hasDefaultButton() const;
void setCancelButton( const char *text = "Cancel" );
bool hasCancelButton() const;
void setApplyButton( const char *text = "Apply" );
bool hasApplyButton() const;
#if 1 // OBSOLETE
void setOKButton( const char * text = "OK" );
#endif
void setOkButton( const char * text = "OK" );
bool hasOkButton() const;
protected:
void paintEvent( QPaintEvent * );
void resizeEvent( QResizeEvent * );
void styleChange( GUIStyle );
void setTabBar( QTabBar* );
QTabBar* tabBar() const;
signals:
void aboutToShow();
void applyButtonPressed();
void cancelButtonPressed();
void defaultButtonPressed();
void selected( const char * );
private slots:
void showTab( int i );
private:
void setSizes();
void setUpLayout();
QRect childRect() const;
QTabPrivate *d;
};
#endif // QTABDIALOG_H
| Copyright © 1998 Troll Tech | Trademarks | Qt version 1.41
|