Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSTabBar_p.h 00003 ------------------- 00004 begin : 06/02/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQSTABBAR_P_H_ 00020 #define AQSTABBAR_P_H_ 00021 00022 #include "AQSWidget_p.h" 00023 #include "AQSTab_p.h" 00024 #include <qtabbar.h> 00025 00026 class AQSTabBar : public AQSWidget 00027 { 00028 Q_OBJECT 00029 00030 AQ_DECLARE_AQS_OBJECT(TabBar, Widget); 00031 00032 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00033 public slots: 00034 int addTab(QTab *); 00035 int addTab(AQSTab *); 00036 int insertTab(QTab *, int = -1); 00037 int insertTab(AQSTab *, int = -1); 00038 void removeTab(QTab *); 00039 void removeTab(AQSTab *); 00040 void setTabEnabled(int, bool); 00041 bool isTabEnabled(int) const; 00042 QTab *tab(int) const; 00043 QTab *tabAt(int) const; 00044 int indexOf(int) const; 00045 void layoutTabs(); 00046 QTab *selectTab(const QPoint &) const; 00047 void removeToolTip(int); 00048 void setToolTip(int, const QString &); 00049 QString toolTip(int) const; 00050 00051 protected: 00052 static void *construct(const QSArgumentList &args) { 00053 QMap<int, QStringList> candidates; 00054 candidates[0].append(QString::null); 00055 candidates[1].append(QString::fromLatin1("QWidget*")); 00056 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00057 QString sgt(castArgsSignature(args, candidates)); 00058 if (sgt.isEmpty()) 00059 return new QTabBar; 00060 if (sgt == QString::fromLatin1("QWidget*")) 00061 return new QTabBar(argValue<QWidget *>(args[0])); 00062 if (sgt == QString::fromLatin1("QWidget*,QString")) 00063 return new QTabBar(argValue<QWidget *>(args[0]), 00064 *(argValue<QString *>(args[1]))); 00065 return 0; 00066 } 00067 00068 public: 00069 static QMap<int, QStringList> candidateConstructors() { 00070 QMap<int, QStringList> candidates; 00071 candidates[0].append(QString::null); 00072 candidates[1].append(QString::fromLatin1("QWidget*")); 00073 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00074 return candidates; 00075 } 00076 //@AQ_END_DEF_PUB_SLOTS@ 00077 }; 00078 00079 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00080 inline int AQSTabBar::addTab(QTab *arg0) 00081 { 00082 AQ_CALL_RET_V(addTab(arg0), int); 00083 } 00084 inline int AQSTabBar::addTab(AQSTab *arg0) 00085 { 00086 AQ_CALL_RET_V(addTab(*arg0), int); 00087 } 00088 inline int AQSTabBar::insertTab(QTab *arg0, int arg1) 00089 { 00090 AQ_CALL_RET_V(insertTab(arg0, arg1), int); 00091 } 00092 inline int AQSTabBar::insertTab(AQSTab *arg0, int arg1) 00093 { 00094 AQ_CALL_RET_V(insertTab(*arg0, arg1), int); 00095 } 00096 inline void AQSTabBar::removeTab(QTab *arg0) 00097 { 00098 AQ_CALL_VOID(removeTab(arg0)); 00099 } 00100 inline void AQSTabBar::removeTab(AQSTab *arg0) 00101 { 00102 AQ_CALL_VOID(removeTab(*arg0)); 00103 } 00104 inline void AQSTabBar::setTabEnabled(int arg0, bool arg1) 00105 { 00106 AQ_CALL_VOID(setTabEnabled(arg0, arg1)); 00107 } 00108 inline bool AQSTabBar::isTabEnabled(int arg0) const 00109 { 00110 AQ_CALL_RET_V(isTabEnabled(arg0), bool); 00111 } 00112 inline QTab *AQSTabBar::tab(int arg0) const 00113 { 00114 AQ_CALL_RET(tab(arg0)); 00115 } 00116 inline QTab *AQSTabBar::tabAt(int arg0) const 00117 { 00118 AQ_CALL_RET(tabAt(arg0)); 00119 } 00120 inline int AQSTabBar::indexOf(int arg0) const 00121 { 00122 AQ_CALL_RET_V(indexOf(arg0), int); 00123 } 00124 inline void AQSTabBar::layoutTabs() 00125 { 00126 AQ_CALL_VOID(layoutTabs()); 00127 } 00128 inline QTab *AQSTabBar::selectTab(const QPoint &arg0) const 00129 { 00130 AQ_CALL_RET(selectTab(arg0)); 00131 } 00132 inline void AQSTabBar::removeToolTip(int arg0) 00133 { 00134 AQ_CALL_VOID(removeToolTip(arg0)); 00135 } 00136 inline void AQSTabBar::setToolTip(int arg0, const QString &arg1) 00137 { 00138 AQ_CALL_VOID(setToolTip(arg0, arg1)); 00139 } 00140 inline QString AQSTabBar::toolTip(int arg0) const 00141 { 00142 AQ_CALL_RET_V(toolTip(arg0), QString); 00143 } 00144 //@AQ_END_IMP_PUB_SLOTS@ 00145 00146 #endif /* AQSTABBAR_P_H_ */ 00147 // @AQSWIDGET@