Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSApplication_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSApplication_p.h
00003  -------------------
00004  begin                : 23/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  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSAPPLICATION_P_H_
00020 #define AQSAPPLICATION_P_H_
00021 
00022 #include "AQSObject_p.h"
00023 #include "AQSSqlDatabase_p.h"
00024 #include "AQApplication.h"
00025 
00026 class AQSApplication : public AQSObject
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_AQOBJECT(Application, Object);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   QWidget *mainWidget() const;
00035   virtual void polish(QWidget *);
00036   QWidget *focusWidget() const;
00037   QWidget *activeWindow() const;
00038   void processEvents();
00039   void processEvents(int);
00040   bool hasPendingEvents();
00041   virtual bool notify(QObject *, QEvent *);
00042   virtual bool notify(QObject *, AQSEvent *);
00043   QString translate(const char *, const char *, const char* = 0, uint = QApplication::DefaultCodec) const;
00044   QString applicationDirPath();
00045   QString applicationFilePath();
00046   bool isSessionRestored() const;
00047   QString sessionId() const;
00048   QString sessionKey() const;
00049   void setStyle(QStyle *);
00050   QStyle *setStyle(const QString &);
00051   int colorSpec();
00052   void setColorSpec(int);
00053   QCursor *overrideCursor();
00054   void setOverrideCursor(const QCursor &, bool = FALSE);
00055   void restoreOverrideCursor();
00056   bool hasGlobalMouseTracking();
00057   void setGlobalMouseTracking(bool);
00058   QPalette palette(const QWidget* = 0);
00059   void setPalette(const QPalette &, bool = FALSE, const char* = 0);
00060   QFont font(const QWidget* = 0);
00061   void setFont(const QFont &, bool = FALSE, const char* = 0);
00062   QFontMetrics *fontMetrics();
00063   QDesktopWidget *desktop();
00064   QWidget *activePopupWidget();
00065   QWidget *activeModalWidget();
00066   QClipboard *clipboard();
00067   QWidget *widgetAt(int, int, bool = FALSE);
00068   QWidget *widgetAt(const QPoint &, bool = FALSE);
00069   QEventLoop *eventLoop();
00070   bool sendEvent(QObject *, QEvent *);
00071   bool sendEvent(QObject *, AQSEvent *);
00072   void postEvent(QObject *, QEvent *);
00073   void postEvent(QObject *, AQSEvent *);
00074   void sendPostedEvents(QObject *, int);
00075   void sendPostedEvents();
00076   void removePostedEvents(QObject *);
00077   bool startingUp();
00078   bool closingDown();
00079   void setDesktopSettingsAware(bool);
00080   bool desktopSettingsAware();
00081   void setCursorFlashTime(int);
00082   int cursorFlashTime();
00083   void setDoubleClickInterval(int);
00084   int doubleClickInterval();
00085   void setWheelScrollLines(int);
00086   int wheelScrollLines();
00087   void setGlobalStrut(const QSize &);
00088   QSize globalStrut();
00089   void setLibraryPaths(const QStringList &);
00090   QStringList libraryPaths();
00091   void addLibraryPath(const QString &);
00092   void removeLibraryPath(const QString &);
00093   void setStartDragTime(int);
00094   int startDragTime();
00095   void setStartDragDistance(int);
00096   int startDragDistance();
00097   void setReverseLayout(bool);
00098   bool reverseLayout();
00099   int horizontalAlignment(int);
00100   void quit();
00101   void closeAllWindows();
00102   void aboutQt();
00103   void reinit();
00104   FLSqlDatabase *db();
00105   void setMainWidget(QWidget *);
00106   QSArgument call(const QString &, const QString &) const;
00107   void activateModule(const QString &);
00108   void execMainScript(const QString &);
00109   void aboutAbanQ();
00110   void chooseFont();
00111   void setDatabaseLockDetection(bool = true, int = 30000, int = -1, bool = true, const QString& = QString::null, const QString& = QString::null);
00112   QString commaSeparator() const;
00113 
00114 protected:
00115   static void *construct(const QSArgumentList &args) {
00116     return 0;
00117   }
00118   //@AQ_END_DEF_PUB_SLOTS@
00119 };
00120 
00121 //@AQ_BEGIN_IMP_PUB_SLOTS@
00122 inline QWidget *AQSApplication::mainWidget() const
00123 {
00124   AQ_CALL_RET(mainWidget());
00125 }
00126 inline void AQSApplication::polish(QWidget *arg0)
00127 {
00128   AQ_CALL_VOID(polish(arg0));
00129 }
00130 inline QWidget *AQSApplication::focusWidget() const
00131 {
00132   AQ_CALL_RET(focusWidget());
00133 }
00134 inline QWidget *AQSApplication::activeWindow() const
00135 {
00136   AQ_CALL_RET(activeWindow());
00137 }
00138 inline void AQSApplication::processEvents()
00139 {
00140   AQ_CALL_VOID(processEvents());
00141 }
00142 inline void AQSApplication::processEvents(int arg0)
00143 {
00144   AQ_CALL_VOID(processEvents(arg0));
00145 }
00146 inline bool AQSApplication::hasPendingEvents()
00147 {
00148   AQ_CALL_RET_V(hasPendingEvents(), bool);
00149 }
00150 inline bool AQSApplication::notify(QObject *arg0,  QEvent *arg1)
00151 {
00152   AQ_CALL_RET_V(notify(arg0, arg1), bool);
00153 }
00154 inline bool AQSApplication::notify(QObject *arg0, AQSEvent *arg1)
00155 {
00156   AQ_CALL_RET_V(notify(arg0, *arg1), bool);
00157 }
00158 inline QString AQSApplication::translate(const char *arg0,  const char *arg1,  const char *arg2,  uint arg3) const
00159 {
00160   AQ_CALL_RET_V(translate(arg0, arg1, arg2, static_cast<QApplication::Encoding>(arg3)), QString);
00161 }
00162 inline QString AQSApplication::applicationDirPath()
00163 {
00164   AQ_CALL_RET_V(applicationDirPath(), QString);
00165 }
00166 inline QString AQSApplication::applicationFilePath()
00167 {
00168   AQ_CALL_RET_V(applicationFilePath(), QString);
00169 }
00170 inline bool AQSApplication::isSessionRestored() const
00171 {
00172   AQ_CALL_RET_V(isSessionRestored(), bool);
00173 }
00174 inline QString AQSApplication::sessionId() const
00175 {
00176   AQ_CALL_RET_V(sessionId(), QString);
00177 }
00178 inline QString AQSApplication::sessionKey() const
00179 {
00180   AQ_CALL_RET_V(sessionKey(), QString);
00181 }
00182 inline void AQSApplication::setStyle(QStyle *arg0)
00183 {
00184   AQ_CALL_VOID(setStyle(arg0));
00185 }
00186 inline QStyle *AQSApplication::setStyle(const QString &arg0)
00187 {
00188   AQ_CALL_RET(setStyle(arg0));
00189 }
00190 inline int AQSApplication::colorSpec()
00191 {
00192   AQ_CALL_RET_V(colorSpec(), int);
00193 }
00194 inline void AQSApplication::setColorSpec(int arg0)
00195 {
00196   AQ_CALL_VOID(setColorSpec(arg0));
00197 }
00198 inline QCursor *AQSApplication::overrideCursor()
00199 {
00200   AQ_CALL_RET(overrideCursor());
00201 }
00202 inline void AQSApplication::setOverrideCursor(const QCursor &arg0,  bool arg1)
00203 {
00204   AQ_CALL_VOID(setOverrideCursor(arg0, arg1));
00205 }
00206 inline void AQSApplication::restoreOverrideCursor()
00207 {
00208   AQ_CALL_VOID(restoreOverrideCursor());
00209 }
00210 inline bool AQSApplication::hasGlobalMouseTracking()
00211 {
00212   AQ_CALL_RET_V(hasGlobalMouseTracking(), bool);
00213 }
00214 inline void AQSApplication::setGlobalMouseTracking(bool arg0)
00215 {
00216   AQ_CALL_VOID(setGlobalMouseTracking(arg0));
00217 }
00218 inline QPalette AQSApplication::palette(const QWidget *arg0)
00219 {
00220   AQ_CALL_RET_V(palette(arg0), QPalette);
00221 }
00222 inline void AQSApplication::setPalette(const QPalette &arg0,  bool arg1,  const char *arg2)
00223 {
00224   AQ_CALL_VOID(setPalette(arg0, arg1, arg2));
00225 }
00226 inline QFont AQSApplication::font(const QWidget *arg0)
00227 {
00228   AQ_CALL_RET_V(font(arg0), QFont);
00229 }
00230 inline void AQSApplication::setFont(const QFont &arg0,  bool arg1,  const char *arg2)
00231 {
00232   AQ_CALL_VOID(setFont(arg0, arg1, arg2));
00233 }
00234 inline QFontMetrics *AQSApplication::fontMetrics()
00235 {
00236   AQ_CALL_RET_PTR(fontMetrics(), QFontMetrics);
00237 }
00238 inline QDesktopWidget *AQSApplication::desktop()
00239 {
00240   AQ_CALL_RET(desktop());
00241 }
00242 inline QWidget *AQSApplication::activePopupWidget()
00243 {
00244   AQ_CALL_RET(activePopupWidget());
00245 }
00246 inline QWidget *AQSApplication::activeModalWidget()
00247 {
00248   AQ_CALL_RET(activeModalWidget());
00249 }
00250 inline QClipboard *AQSApplication::clipboard()
00251 {
00252   AQ_CALL_RET(clipboard());
00253 }
00254 inline QWidget *AQSApplication::widgetAt(int arg0,  int arg1,  bool arg2)
00255 {
00256   AQ_CALL_RET(widgetAt(arg0, arg1, arg2));
00257 }
00258 inline QWidget *AQSApplication::widgetAt(const QPoint &arg0,  bool arg1)
00259 {
00260   AQ_CALL_RET(widgetAt(arg0, arg1));
00261 }
00262 inline QEventLoop *AQSApplication::eventLoop()
00263 {
00264   AQ_CALL_RET(eventLoop());
00265 }
00266 inline bool AQSApplication::sendEvent(QObject *arg0,  QEvent *arg1)
00267 {
00268   AQ_CALL_RET_V(sendEvent(arg0, arg1), bool);
00269 }
00270 inline bool AQSApplication::sendEvent(QObject *arg0, AQSEvent *arg1)
00271 {
00272   AQ_CALL_RET_V(sendEvent(arg0, *arg1), bool);
00273 }
00274 inline void AQSApplication::postEvent(QObject *arg0,  QEvent *arg1)
00275 {
00276   AQ_CALL_VOID(postEvent(arg0, arg1));
00277 }
00278 inline void AQSApplication::postEvent(QObject *arg0, AQSEvent *arg1)
00279 {
00280   AQ_CALL_VOID(postEvent(arg0, *arg1));
00281 }
00282 inline void AQSApplication::sendPostedEvents(QObject *arg0,  int arg1)
00283 {
00284   AQ_CALL_VOID(sendPostedEvents(arg0, arg1));
00285 }
00286 inline void AQSApplication::sendPostedEvents()
00287 {
00288   AQ_CALL_VOID(sendPostedEvents());
00289 }
00290 inline void AQSApplication::removePostedEvents(QObject *arg0)
00291 {
00292   AQ_CALL_VOID(removePostedEvents(arg0));
00293 }
00294 inline bool AQSApplication::startingUp()
00295 {
00296   AQ_CALL_RET_V(startingUp(), bool);
00297 }
00298 inline bool AQSApplication::closingDown()
00299 {
00300   AQ_CALL_RET_V(closingDown(), bool);
00301 }
00302 inline void AQSApplication::setDesktopSettingsAware(bool arg0)
00303 {
00304   AQ_CALL_VOID(setDesktopSettingsAware(arg0));
00305 }
00306 inline bool AQSApplication::desktopSettingsAware()
00307 {
00308   AQ_CALL_RET_V(desktopSettingsAware(), bool);
00309 }
00310 inline void AQSApplication::setCursorFlashTime(int arg0)
00311 {
00312   AQ_CALL_VOID(setCursorFlashTime(arg0));
00313 }
00314 inline int AQSApplication::cursorFlashTime()
00315 {
00316   AQ_CALL_RET_V(cursorFlashTime(), int);
00317 }
00318 inline void AQSApplication::setDoubleClickInterval(int arg0)
00319 {
00320   AQ_CALL_VOID(setDoubleClickInterval(arg0));
00321 }
00322 inline int AQSApplication::doubleClickInterval()
00323 {
00324   AQ_CALL_RET_V(doubleClickInterval(), int);
00325 }
00326 inline void AQSApplication::setWheelScrollLines(int arg0)
00327 {
00328   AQ_CALL_VOID(setWheelScrollLines(arg0));
00329 }
00330 inline int AQSApplication::wheelScrollLines()
00331 {
00332   AQ_CALL_RET_V(wheelScrollLines(), int);
00333 }
00334 inline void AQSApplication::setGlobalStrut(const QSize &arg0)
00335 {
00336   AQ_CALL_VOID(setGlobalStrut(arg0));
00337 }
00338 inline QSize AQSApplication::globalStrut()
00339 {
00340   AQ_CALL_RET_V(globalStrut(), QSize);
00341 }
00342 inline void AQSApplication::setLibraryPaths(const QStringList &arg0)
00343 {
00344   AQ_CALL_VOID(setLibraryPaths(arg0));
00345 }
00346 inline QStringList AQSApplication::libraryPaths()
00347 {
00348   AQ_CALL_RET_V(libraryPaths(), QStringList);
00349 }
00350 inline void AQSApplication::addLibraryPath(const QString &arg0)
00351 {
00352   AQ_CALL_VOID(addLibraryPath(arg0));
00353 }
00354 inline void AQSApplication::removeLibraryPath(const QString &arg0)
00355 {
00356   AQ_CALL_VOID(removeLibraryPath(arg0));
00357 }
00358 inline void AQSApplication::setStartDragTime(int arg0)
00359 {
00360   AQ_CALL_VOID(setStartDragTime(arg0));
00361 }
00362 inline int AQSApplication::startDragTime()
00363 {
00364   AQ_CALL_RET_V(startDragTime(), int);
00365 }
00366 inline void AQSApplication::setStartDragDistance(int arg0)
00367 {
00368   AQ_CALL_VOID(setStartDragDistance(arg0));
00369 }
00370 inline int AQSApplication::startDragDistance()
00371 {
00372   AQ_CALL_RET_V(startDragDistance(), int);
00373 }
00374 inline void AQSApplication::setReverseLayout(bool arg0)
00375 {
00376   AQ_CALL_VOID(setReverseLayout(arg0));
00377 }
00378 inline bool AQSApplication::reverseLayout()
00379 {
00380   AQ_CALL_RET_V(reverseLayout(), bool);
00381 }
00382 inline int AQSApplication::horizontalAlignment(int arg0)
00383 {
00384   AQ_CALL_RET_V(horizontalAlignment(arg0), int);
00385 }
00386 inline void AQSApplication::quit()
00387 {
00388   AQ_CALL_VOID(quit());
00389 }
00390 inline void AQSApplication::closeAllWindows()
00391 {
00392   AQ_CALL_VOID(closeAllWindows());
00393 }
00394 inline void AQSApplication::aboutQt()
00395 {
00396   AQ_CALL_VOID(aboutQt());
00397 }
00398 inline void AQSApplication::reinit()
00399 {
00400   AQ_CALL_VOID(reinit());
00401 }
00402 inline FLSqlDatabase *AQSApplication::db()
00403 {
00404   AQ_CALL_RET(db());
00405 }
00406 inline void AQSApplication::setMainWidget(QWidget *arg0)
00407 {
00408   AQ_CALL_VOID(setMainWidget(arg0));
00409 }
00410 inline QSArgument AQSApplication::call(const QString &arg0,  const QString &arg1) const
00411 {
00412   AQ_CALL_RET_V(call(arg0, arg1), QSArgument);
00413 }
00414 inline void AQSApplication::activateModule(const QString &arg0)
00415 {
00416   AQ_CALL_VOID(activateModule(arg0));
00417 }
00418 inline void AQSApplication::execMainScript(const QString &arg0)
00419 {
00420   AQ_CALL_VOID(execMainScript(arg0));
00421 }
00422 inline void AQSApplication::aboutAbanQ()
00423 {
00424   AQ_CALL_VOID(aboutAbanQ());
00425 }
00426 inline void AQSApplication::chooseFont()
00427 {
00428   AQ_CALL_VOID(chooseFont());
00429 }
00430 inline void AQSApplication::setDatabaseLockDetection(bool arg0,  int arg1,  int arg2,  bool arg3,  const QString &arg4,  const QString &arg5)
00431 {
00432   AQ_CALL_VOID(setDatabaseLockDetection(arg0, arg1, arg2, arg3, arg4, arg5));
00433 }
00434 inline QString AQSApplication::commaSeparator() const
00435 {
00436   AQ_CALL_RET_V(commaSeparator(), QString);
00437 }
00438 //@AQ_END_IMP_PUB_SLOTS@
00439 
00440 #endif /* AQSAPPLICATION_P_H_ */
00441 // @AQOBJECT@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'