You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytqt/sip/qt/qtabdialog.sip

168 lines
3.7 KiB

// This is the SIP interface definition for TQTabDialog.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
// This file is part of PyTQt.
//
// This copy of PyTQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
//
// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
%ExportedDoc
<Sect2><Title>TQTabDialog</Title>
<Para>
<Literal>TQTabDialog</Literal> is fully implemented.
</Para>
</Sect2>
%End
%If (TQt_TABDIALOG)
class TQTabDialog : TQDialog
{
%TypeHeaderCode
#include <qtabdialog.h>
%End
public:
TQTabDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
void show();
void setFont(const TQFont &);
%If (- TQt_2_00)
void addTab(TQWidget *,const char *);
%End
%If (TQt_2_00 -)
void addTab(TQWidget *,const TQString &);
void addTab(TQWidget *,const TQIconSet &,const TQString &);
%End
void addTab(TQWidget *,TQTab *);
%If (TQt_2_00 -)
void insertTab(TQWidget *,const TQString &,int = -1);
void insertTab(TQWidget *,const TQIconSet &,const TQString &,int = -1);
void insertTab(TQWidget *,TQTab *,int = -1);
void changeTab(TQWidget *,const TQString &);
void changeTab(TQWidget *,const TQIconSet &,const TQString &);
%End
%If (TQt_2_00 -)
bool isTabEnabled(TQWidget *) const;
void setTabEnabled(TQWidget *,bool);
%End
%If (- TQt_3_0_0)
bool isTabEnabled(const char *) const;
void setTabEnabled(const char *,bool);
%End
void showPage(TQWidget *);
%If (TQt_2_00 -)
void removePage(TQWidget *);
TQString tabLabel(TQWidget *);
%End
%If (- TQt_2_00)
const char *tabLabel(TQWidget *);
%End
%If (TQt_2_00 -)
TQWidget *currentPage() const;
%End
%If (- TQt_2_00)
void setDefaultButton(const char * = "Defaults");
%End
%If (TQt_2_00 -)
void setDefaultButton(const TQString &);
void setDefaultButton();
%End
bool hasDefaultButton() const;
%If (TQt_2_00 -)
void setHelpButton(const TQString &);
void setHelpButton();
bool hasHelpButton() const;
%End
%If (- TQt_2_00)
void setCancelButton(const char * = "Cancel");
%End
%If (TQt_2_00 -)
void setCancelButton(const TQString &);
void setCancelButton();
%End
bool hasCancelButton() const;
%If (- TQt_2_00)
void setApplyButton(const char * = "Apply");
%End
%If (TQt_2_00 -)
void setApplyButton(const TQString &);
void setApplyButton();
%End
bool hasApplyButton() const;
%If (- TQt_2_00)
void setOkButton(const char * = "OK");
%End
%If (TQt_2_00 -)
void setOkButton(const TQString &);
void setOkButton();
%End
bool hasOkButton() const;
protected:
void paintEvent(TQPaintEvent *);
void resizeEvent(TQResizeEvent *);
%If (- TQt_2_00)
void styleChange(GUIStyle);
%End
%If (TQt_2_00 -)
void styleChange(TQStyle &);
%End
void setTabBar(TQTabBar *);
TQTabBar *tabBar() const;
signals:
void aboutToShow();
void applyButtonPressed();
void cancelButtonPressed();
void defaultButtonPressed();
%If (TQt_2_00 -)
void helpButtonPressed();
%End
%If (TQt_2_2_0 -)
void currentChanged(TQWidget *);
%End
%If (- TQt_2_00)
void selected(const char *);
%End
%If (TQt_2_00 - TQt_3_0_0)
void selected(const TQString &);
%End
private:
%If (TQt_2_1_0 -)
TQTabDialog(const TQTabDialog &);
%End
};
%End