Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSTableDB_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSTableDB_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  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSTABLEDB_P_H_
00020 #define AQSTABLEDB_P_H_
00021 
00022 #include "AQSWidget_p.h"
00023 #include "AQObjects.h"
00024 
00025 class AQSTableDB : public AQSWidget
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_AQOBJECT(TableDB, Widget);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   QString tableName() const;
00034   void setTableName(const QString &);
00035   QString foreignField() const;
00036   void setForeignField(const QString &);
00037   QString fieldRelation() const;
00038   void setFieldRelation(const QString &);
00039   void setReadOnly(const bool);
00040   void setEditOnly(const bool);
00041   void setInsertOnly(const bool);
00042   void refresh();
00043   void refresh(const bool, const bool);
00044   void insertRecord();
00045   void editRecord();
00046   void browseRecord();
00047   void deleteRecord();
00048   void copyRecord();
00049   void show();
00050   void setFocus();
00051   void setFilter(const QString &);
00052   QString filter();
00053   QString findFilter() const;
00054   void setInitSearch(const QString &);
00055   FLSqlCursor *cursor();
00056   FLDataTable *tableRecords();
00057   void close();
00058   void setDisabled(const bool);
00059   void putFirstCol(const QString &);
00060   void moveCol(const QString &, const QString &);
00061   void setOrderCols(QStringList &);
00062   QStringList orderCols();
00063   bool checkColumnEnabled() const;
00064   void setCheckColumnEnabled(bool);
00065   QString aliasCheckColumn() const;
00066   void setAliasCheckColumn(const QString &);
00067   bool findHidden() const;
00068   void setFindHidden(bool);
00069   bool filterHidden() const;
00070   void setFilterHidden(bool);
00071   void setColumnWidth(const QString &, int);
00072   int columnWidth(int);
00073   void setRowHeight(int, int);
00074   int rowHeight(int);
00075   bool showAllPixmaps() const;
00076   void setShowAllPixmaps(bool);
00077   QString functionGetColor() const;
00078   void setFunctionGetColor(const QString &);
00079   void exportToOds();
00080 
00081 protected:
00082   static void *construct(const QSArgumentList &args) {
00083     QMap<int, QStringList> candidates;
00084     candidates[0].append(QString::null);
00085     candidates[1].append(QString::fromLatin1("QWidget*"));
00086     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00087     QString sgt(castArgsSignature(args, candidates));
00088     if (sgt.isEmpty())
00089       return new AQTableDB;
00090     if (sgt == QString::fromLatin1("QWidget*"))
00091       return new AQTableDB(argValue<QWidget *>(args[0]));
00092     if (sgt == QString::fromLatin1("QWidget*,QString"))
00093       return new AQTableDB(argValue<QWidget *>(args[0]),
00094                            *(argValue<QString *>(args[1])));
00095     return 0;
00096   }
00097 
00098 public:
00099   static QMap<int, QStringList> candidateConstructors() {
00100     QMap<int, QStringList> candidates;
00101     candidates[0].append(QString::null);
00102     candidates[1].append(QString::fromLatin1("QWidget*"));
00103     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00104     return candidates;
00105   }
00106   //@AQ_END_DEF_PUB_SLOTS@
00107 };
00108 
00109 //@AQ_BEGIN_IMP_PUB_SLOTS@
00110 inline QString AQSTableDB::tableName() const
00111 {
00112   AQ_CALL_RET_V(tableName(), QString);
00113 }
00114 inline void AQSTableDB::setTableName(const QString &arg0)
00115 {
00116   AQ_CALL_VOID(setTableName(arg0));
00117 }
00118 inline QString AQSTableDB::foreignField() const
00119 {
00120   AQ_CALL_RET_V(foreignField(), QString);
00121 }
00122 inline void AQSTableDB::setForeignField(const QString &arg0)
00123 {
00124   AQ_CALL_VOID(setForeignField(arg0));
00125 }
00126 inline QString AQSTableDB::fieldRelation() const
00127 {
00128   AQ_CALL_RET_V(fieldRelation(), QString);
00129 }
00130 inline void AQSTableDB::setFieldRelation(const QString &arg0)
00131 {
00132   AQ_CALL_VOID(setFieldRelation(arg0));
00133 }
00134 inline void AQSTableDB::setReadOnly(const bool arg0)
00135 {
00136   AQ_CALL_VOID(setReadOnly(arg0));
00137 }
00138 inline void AQSTableDB::setEditOnly(const bool arg0)
00139 {
00140   AQ_CALL_VOID(setEditOnly(arg0));
00141 }
00142 inline void AQSTableDB::setInsertOnly(const bool arg0)
00143 {
00144   AQ_CALL_VOID(setInsertOnly(arg0));
00145 }
00146 inline void AQSTableDB::refresh()
00147 {
00148   AQ_CALL_VOID(refresh());
00149 }
00150 inline void AQSTableDB::refresh(const bool arg0,  const bool arg1)
00151 {
00152   AQ_CALL_VOID(refresh(arg0, arg1));
00153 }
00154 inline void AQSTableDB::insertRecord()
00155 {
00156   AQ_CALL_VOID(insertRecord());
00157 }
00158 inline void AQSTableDB::editRecord()
00159 {
00160   AQ_CALL_VOID(editRecord());
00161 }
00162 inline void AQSTableDB::browseRecord()
00163 {
00164   AQ_CALL_VOID(browseRecord());
00165 }
00166 inline void AQSTableDB::deleteRecord()
00167 {
00168   AQ_CALL_VOID(deleteRecord());
00169 }
00170 inline void AQSTableDB::copyRecord()
00171 {
00172   AQ_CALL_VOID(copyRecord());
00173 }
00174 inline void AQSTableDB::show()
00175 {
00176   AQ_CALL_VOID(show());
00177 }
00178 inline void AQSTableDB::setFocus()
00179 {
00180   AQ_CALL_VOID(setFocus());
00181 }
00182 inline void AQSTableDB::setFilter(const QString &arg0)
00183 {
00184   AQ_CALL_VOID(setFilter(arg0));
00185 }
00186 inline QString AQSTableDB::filter()
00187 {
00188   AQ_CALL_RET_V(filter(), QString);
00189 }
00190 inline QString AQSTableDB::findFilter() const
00191 {
00192   AQ_CALL_RET_V(findFilter(), QString);
00193 }
00194 inline void AQSTableDB::setInitSearch(const QString &arg0)
00195 {
00196   AQ_CALL_VOID(setInitSearch(arg0));
00197 }
00198 inline FLSqlCursor *AQSTableDB::cursor()
00199 {
00200   AQ_CALL_RET(cursor());
00201 }
00202 inline FLDataTable *AQSTableDB::tableRecords()
00203 {
00204   AQ_CALL_RET(tableRecords());
00205 }
00206 inline void AQSTableDB::close()
00207 {
00208   AQ_CALL_VOID(close());
00209 }
00210 inline void AQSTableDB::setDisabled(const bool arg0)
00211 {
00212   AQ_CALL_VOID(setDisabled(arg0));
00213 }
00214 inline void AQSTableDB::putFirstCol(const QString &arg0)
00215 {
00216   AQ_CALL_VOID(putFirstCol(arg0));
00217 }
00218 inline void AQSTableDB::moveCol(const QString &arg0,  const QString &arg1)
00219 {
00220   AQ_CALL_VOID(moveCol(arg0, arg1));
00221 }
00222 inline void AQSTableDB::setOrderCols(QStringList &arg0)
00223 {
00224   AQ_CALL_VOID(setOrderCols(arg0));
00225 }
00226 inline QStringList AQSTableDB::orderCols()
00227 {
00228   AQ_CALL_RET_V(orderCols(), QStringList);
00229 }
00230 inline bool AQSTableDB::checkColumnEnabled() const
00231 {
00232   AQ_CALL_RET_V(checkColumnEnabled(), bool);
00233 }
00234 inline void AQSTableDB::setCheckColumnEnabled(bool arg0)
00235 {
00236   AQ_CALL_VOID(setCheckColumnEnabled(arg0));
00237 }
00238 inline QString AQSTableDB::aliasCheckColumn() const
00239 {
00240   AQ_CALL_RET_V(aliasCheckColumn(), QString);
00241 }
00242 inline void AQSTableDB::setAliasCheckColumn(const QString &arg0)
00243 {
00244   AQ_CALL_VOID(setAliasCheckColumn(arg0));
00245 }
00246 inline bool AQSTableDB::findHidden() const
00247 {
00248   AQ_CALL_RET_V(findHidden(), bool);
00249 }
00250 inline void AQSTableDB::setFindHidden(bool arg0)
00251 {
00252   AQ_CALL_VOID(setFindHidden(arg0));
00253 }
00254 inline bool AQSTableDB::filterHidden() const
00255 {
00256   AQ_CALL_RET_V(filterHidden(), bool);
00257 }
00258 inline void AQSTableDB::setFilterHidden(bool arg0)
00259 {
00260   AQ_CALL_VOID(setFilterHidden(arg0));
00261 }
00262 inline void AQSTableDB::setColumnWidth(const QString &arg0,  int arg1)
00263 {
00264   AQ_CALL_VOID(setColumnWidth(arg0, arg1));
00265 }
00266 inline int AQSTableDB::columnWidth(int arg0)
00267 {
00268   AQ_CALL_RET_V(columnWidth(arg0), int);
00269 }
00270 inline void AQSTableDB::setRowHeight(int arg0,  int arg1)
00271 {
00272   AQ_CALL_VOID(setRowHeight(arg0, arg1));
00273 }
00274 inline int AQSTableDB::rowHeight(int arg0)
00275 {
00276   AQ_CALL_RET_V(rowHeight(arg0), int);
00277 }
00278 inline bool AQSTableDB::showAllPixmaps() const
00279 {
00280   AQ_CALL_RET_V(showAllPixmaps(), bool);
00281 }
00282 inline void AQSTableDB::setShowAllPixmaps(bool arg0)
00283 {
00284   AQ_CALL_VOID(setShowAllPixmaps(arg0));
00285 }
00286 inline QString AQSTableDB::functionGetColor() const
00287 {
00288   AQ_CALL_RET_V(functionGetColor(), QString);
00289 }
00290 inline void AQSTableDB::setFunctionGetColor(const QString &arg0)
00291 {
00292   AQ_CALL_VOID(setFunctionGetColor(arg0));
00293 }
00294 inline void AQSTableDB::exportToOds()
00295 {
00296   AQ_CALL_VOID(exportToOds());
00297 }
00298 //@AQ_END_IMP_PUB_SLOTS@
00299 
00300 #endif /* AQSTABLEDB_P_H_ */
00301 // @AQWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'