Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSFieldDB_p.h 00003 ------------------- 00004 begin : 18/04/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 AQSFIELDDB_P_H_ 00020 #define AQSFIELDDB_P_H_ 00021 00022 #include "AQSWidget_p.h" 00023 #include "AQObjects.h" 00024 00025 class AQSFieldDB : public AQSWidget 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_AQOBJECT(FieldDB, Widget); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 FLSqlCursor *cursor(); 00034 void setDisabled(const bool); 00035 QString actionName() const; 00036 void setActionName(const QString &); 00037 QString fieldName() const; 00038 void setFieldName(const QString &); 00039 QString tableName() const; 00040 void setTableName(const QString &); 00041 QString foreignField() const; 00042 void setForeignField(const QString &); 00043 QString fieldRelation() const; 00044 QString fieldAlias() const; 00045 QWidget *editor() const; 00046 void setFilter(const QString &); 00047 QString filter() const; 00048 void setFieldRelation(const QString &); 00049 void setFieldAlias(const QString &); 00050 void setValue(QVariant); 00051 void setPixmap(const QString &); 00052 void setFocus(); 00053 void selectAll(); 00054 QVariant value(); 00055 void close(); 00056 int insertAccel(const QString &); 00057 void removeAccel(int); 00058 void setTextFormat(const int &); 00059 int textFormat() const; 00060 bool showAlias() const; 00061 void setShowAlias(const bool); 00062 bool showEditor() const; 00063 void setShowEditor(const bool); 00064 void setPartDecimal(int); 00065 00066 protected: 00067 static void *construct(const QSArgumentList &args) { 00068 QMap<int, QStringList> candidates; 00069 candidates[0].append(QString::null); 00070 candidates[1].append(QString::fromLatin1("QWidget*")); 00071 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00072 QString sgt(castArgsSignature(args, candidates)); 00073 if (sgt.isEmpty()) 00074 return new AQFieldDB; 00075 if (sgt == QString::fromLatin1("QWidget*")) 00076 return new AQFieldDB(argValue<QWidget *>(args[0])); 00077 if (sgt == QString::fromLatin1("QWidget*,QString")) 00078 return new AQFieldDB(argValue<QWidget *>(args[0]), 00079 *(argValue<QString *>(args[1]))); 00080 return 0; 00081 } 00082 00083 public: 00084 static QMap<int, QStringList> candidateConstructors() { 00085 QMap<int, QStringList> candidates; 00086 candidates[0].append(QString::null); 00087 candidates[1].append(QString::fromLatin1("QWidget*")); 00088 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00089 return candidates; 00090 } 00091 //@AQ_END_DEF_PUB_SLOTS@ 00092 }; 00093 00094 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00095 inline FLSqlCursor *AQSFieldDB::cursor() 00096 { 00097 AQ_CALL_RET(cursor()); 00098 } 00099 inline void AQSFieldDB::setDisabled(const bool arg0) 00100 { 00101 AQ_CALL_VOID(setDisabled(arg0)); 00102 } 00103 inline QString AQSFieldDB::actionName() const 00104 { 00105 AQ_CALL_RET_V(actionName(), QString); 00106 } 00107 inline void AQSFieldDB::setActionName(const QString &arg0) 00108 { 00109 AQ_CALL_VOID(setActionName(arg0)); 00110 } 00111 inline QString AQSFieldDB::fieldName() const 00112 { 00113 AQ_CALL_RET_V(fieldName(), QString); 00114 } 00115 inline void AQSFieldDB::setFieldName(const QString &arg0) 00116 { 00117 AQ_CALL_VOID(setFieldName(arg0)); 00118 } 00119 inline QString AQSFieldDB::tableName() const 00120 { 00121 AQ_CALL_RET_V(tableName(), QString); 00122 } 00123 inline void AQSFieldDB::setTableName(const QString &arg0) 00124 { 00125 AQ_CALL_VOID(setTableName(arg0)); 00126 } 00127 inline QString AQSFieldDB::foreignField() const 00128 { 00129 AQ_CALL_RET_V(foreignField(), QString); 00130 } 00131 inline void AQSFieldDB::setForeignField(const QString &arg0) 00132 { 00133 AQ_CALL_VOID(setForeignField(arg0)); 00134 } 00135 inline QString AQSFieldDB::fieldRelation() const 00136 { 00137 AQ_CALL_RET_V(fieldRelation(), QString); 00138 } 00139 inline QString AQSFieldDB::fieldAlias() const 00140 { 00141 AQ_CALL_RET_V(fieldAlias(), QString); 00142 } 00143 inline QWidget *AQSFieldDB::editor() const 00144 { 00145 AQ_CALL_RET(editor()); 00146 } 00147 inline void AQSFieldDB::setFilter(const QString &arg0) 00148 { 00149 AQ_CALL_VOID(setFilter(arg0)); 00150 } 00151 inline QString AQSFieldDB::filter() const 00152 { 00153 AQ_CALL_RET_V(filter(), QString); 00154 } 00155 inline void AQSFieldDB::setFieldRelation(const QString &arg0) 00156 { 00157 AQ_CALL_VOID(setFieldRelation(arg0)); 00158 } 00159 inline void AQSFieldDB::setFieldAlias(const QString &arg0) 00160 { 00161 AQ_CALL_VOID(setFieldAlias(arg0)); 00162 } 00163 inline void AQSFieldDB::setValue(QVariant arg0) 00164 { 00165 AQ_CALL_VOID(setValue(arg0)); 00166 } 00167 inline void AQSFieldDB::setPixmap(const QString &arg0) 00168 { 00169 AQ_CALL_VOID(setPixmap(arg0)); 00170 } 00171 inline void AQSFieldDB::setFocus() 00172 { 00173 AQ_CALL_VOID(setFocus()); 00174 } 00175 inline void AQSFieldDB::selectAll() 00176 { 00177 AQ_CALL_VOID(selectAll()); 00178 } 00179 inline QVariant AQSFieldDB::value() 00180 { 00181 AQ_CALL_RET_V(value(), QVariant); 00182 } 00183 inline void AQSFieldDB::close() 00184 { 00185 AQ_CALL_VOID(close()); 00186 } 00187 inline int AQSFieldDB::insertAccel(const QString &arg0) 00188 { 00189 AQ_CALL_RET_V(insertAccel(arg0), int); 00190 } 00191 inline void AQSFieldDB::removeAccel(int arg0) 00192 { 00193 AQ_CALL_VOID(removeAccel(arg0)); 00194 } 00195 inline void AQSFieldDB::setTextFormat(const int &arg0) 00196 { 00197 AQ_CALL_VOID(setTextFormat(arg0)); 00198 } 00199 inline int AQSFieldDB::textFormat() const 00200 { 00201 AQ_CALL_RET_V(textFormat(), int); 00202 } 00203 inline bool AQSFieldDB::showAlias() const 00204 { 00205 AQ_CALL_RET_V(showAlias(), bool); 00206 } 00207 inline void AQSFieldDB::setShowAlias(const bool arg0) 00208 { 00209 AQ_CALL_VOID(setShowAlias(arg0)); 00210 } 00211 inline bool AQSFieldDB::showEditor() const 00212 { 00213 AQ_CALL_RET_V(showEditor(), bool); 00214 } 00215 inline void AQSFieldDB::setShowEditor(const bool arg0) 00216 { 00217 AQ_CALL_VOID(setShowEditor(arg0)); 00218 } 00219 inline void AQSFieldDB::setPartDecimal(int arg0) 00220 { 00221 AQ_CALL_VOID(setPartDecimal(arg0)); 00222 } 00223 //@AQ_END_IMP_PUB_SLOTS@ 00224 00225 #endif /* AQSFIELDDB_P_H_ */ 00226 // @AQWIDGET@