Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSGroupBox_p.h 00003 ------------------- 00004 begin : 30/01/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 AQSGROUPBOX_P_H_ 00020 #define AQSGROUPBOX_P_H_ 00021 00022 #include "AQSFrame_p.h" 00023 #include <qgroupbox.h> 00024 00025 class AQSGroupBox : public AQSFrame 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_OBJECT(GroupBox, Frame); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 int insideMargin() const; 00034 int insideSpacing() const; 00035 void setInsideMargin(int); 00036 void setInsideSpacing(int); 00037 void addSpace(int); 00038 bool isChecked() const; 00039 00040 protected: 00041 static void *construct(const QSArgumentList &args) { 00042 QMap<int, QStringList> candidates; 00043 candidates[0].append(QString::null); 00044 candidates[1].append(QString::fromLatin1("QWidget*")); 00045 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00046 candidates[1].append(QString::fromLatin1("QString")); 00047 candidates[2].append(QString::fromLatin1("QString,QWidget*")); 00048 candidates[3].append(QString::fromLatin1("QString,QWidget*,QString")); 00049 candidates[2].append(QString::fromLatin1("int,Qt::Orientation")); 00050 candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QWidget*")); 00051 candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QWidget*,QString")); 00052 candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QString")); 00053 candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*")); 00054 candidates[5].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*,QString")); 00055 QString sgt(castArgsSignature(args, candidates)); 00056 if (sgt.isEmpty()) 00057 return new QGroupBox; 00058 if (sgt == QString::fromLatin1("QWidget*")) 00059 return new QGroupBox(argValue<QWidget *>(args[0])); 00060 if (sgt == QString::fromLatin1("QWidget*,QString")) 00061 return new QGroupBox(argValue<QWidget *>(args[0]), 00062 *(argValue<QString *>(args[1]))); 00063 if (sgt == QString::fromLatin1("QString")) 00064 return new QGroupBox(*(argValue<QString *>(args[0]))); 00065 if (sgt == QString::fromLatin1("QString,QWidget*")) 00066 return new QGroupBox(*(argValue<QString *>(args[0])), 00067 argValue<QWidget *>(args[1])); 00068 if (sgt == QString::fromLatin1("QString,QWidget*,QString")) 00069 return new QGroupBox(*(argValue<QString *>(args[0])), 00070 argValue<QWidget *>(args[1]), 00071 *(argValue<QString *>(args[2]))); 00072 if (sgt == QString::fromLatin1("int,Qt::Orientation")) 00073 return new QGroupBox(args[0].variant().toInt(), 00074 static_cast<Qt::Orientation>(args[1].variant().toUInt())); 00075 if (sgt == QString::fromLatin1("int,Qt::Orientation,QWidget*")) 00076 return new QGroupBox(args[0].variant().toInt(), 00077 static_cast<Qt::Orientation>(args[1].variant().toUInt()), 00078 argValue<QWidget *>(args[2])); 00079 if (sgt == QString::fromLatin1("int,Qt::Orientation,QWidget*,QString")) 00080 return new QGroupBox(args[0].variant().toInt(), 00081 static_cast<Qt::Orientation>(args[1].variant().toUInt()), 00082 argValue<QWidget *>(args[2]), 00083 *(argValue<QString *>(args[3]))); 00084 if (sgt == QString::fromLatin1("int,Qt::Orientation,QString")) 00085 return new QGroupBox(args[0].variant().toInt(), 00086 static_cast<Qt::Orientation>(args[1].variant().toUInt()), 00087 *(argValue<QString *>(args[2]))); 00088 if (sgt == QString::fromLatin1("int,Qt::Orientation,QString,QWidget*")) 00089 return new QGroupBox(args[0].variant().toInt(), 00090 static_cast<Qt::Orientation>(args[1].variant().toUInt()), 00091 *(argValue<QString *>(args[2])), 00092 argValue<QWidget *>(args[3])); 00093 if (sgt == QString::fromLatin1("int,Qt::Orientation,QString,QWidget*,QString")) 00094 return new QGroupBox(args[0].variant().toInt(), 00095 static_cast<Qt::Orientation>(args[1].variant().toUInt()), 00096 *(argValue<QString *>(args[2])), 00097 argValue<QWidget *>(args[3]), 00098 *(argValue<QString *>(args[4]))); 00099 return 0; 00100 } 00101 00102 public: 00103 static QMap<int, QStringList> candidateConstructors() { 00104 QMap<int, QStringList> candidates; 00105 candidates[0].append(QString::null); 00106 candidates[1].append(QString::fromLatin1("QWidget*")); 00107 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00108 candidates[1].append(QString::fromLatin1("QString")); 00109 candidates[2].append(QString::fromLatin1("QString,QWidget*")); 00110 candidates[3].append(QString::fromLatin1("QString,QWidget*,QString")); 00111 candidates[2].append(QString::fromLatin1("int,Qt::Orientation")); 00112 candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QWidget*")); 00113 candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QWidget*,QString")); 00114 candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QString")); 00115 candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*")); 00116 candidates[5].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*,QString")); 00117 return candidates; 00118 } 00119 //@AQ_END_DEF_PUB_SLOTS@ 00120 }; 00121 00122 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00123 inline int AQSGroupBox::insideMargin() const 00124 { 00125 AQ_CALL_RET_V(insideMargin(), int); 00126 } 00127 inline int AQSGroupBox::insideSpacing() const 00128 { 00129 AQ_CALL_RET_V(insideSpacing(), int); 00130 } 00131 inline void AQSGroupBox::setInsideMargin(int arg0) 00132 { 00133 AQ_CALL_VOID(setInsideMargin(arg0)); 00134 } 00135 inline void AQSGroupBox::setInsideSpacing(int arg0) 00136 { 00137 AQ_CALL_VOID(setInsideSpacing(arg0)); 00138 } 00139 inline void AQSGroupBox::addSpace(int arg0) 00140 { 00141 AQ_CALL_VOID(addSpace(arg0)); 00142 } 00143 inline bool AQSGroupBox::isChecked() const 00144 { 00145 AQ_CALL_RET_V(isChecked(), bool); 00146 } 00147 //@AQ_END_IMP_PUB_SLOTS@ 00148 00149 #endif /* AQSGROUPBOX_P_H_ */ 00150 // @AQSWIDGET@