Eneboo - Documentación para desarrolladores
|
#include <stdlib.h>
#include <qsplashscreen.h>
#include "FLConnectDBDialog.h"
#include "FLDiskCache.h"
#include "FLSqlDatabase.h"
#include "FLSqlConnections.h"
#include "FLSettings.h"
#include "AQApplication.h"
#include "AQConfig.h"
Funciones | |
AQ_DECL_MAIN QPalette | p (QColor(229, 229, 229), QColor(229, 229, 229)) |
p | setColor (QPalette::Active, QColorGroup::Dark, QColor(246, 242, 246)) |
p | setColor (QPalette::Inactive, QColorGroup::Dark, QColor(246, 242, 246)) |
p | setColor (QPalette::Disabled, QColorGroup::Dark, QColor(246, 242, 246)) |
p | setColor (QPalette::Active, QColorGroup::Base, QColor(255, 255, 248)) |
p | setColor (QPalette::Inactive, QColorGroup::Base, QColor(255, 255, 248)) |
p | setColor (QPalette::Disabled, QColorGroup::Base, QColor(255, 255, 248)) |
p | setColor (QPalette::Active, QColorGroup::Highlight, QColor(95, 150, 205)) |
p | setColor (QPalette::Active, QColorGroup::HighlightedText, Qt::white) |
p | setColor (QPalette::Inactive, QColorGroup::HighlightedText, Qt::white) |
p | setColor (QPalette::Disabled, QColorGroup::HighlightedText, Qt::white) |
p | setColor (QPalette::Inactive, QColorGroup::Text, Qt::black) |
p | setColor (QPalette::Disabled, QColorGroup::Text, QColor(100, 100, 100)) |
p | setColor (QPalette::Active, QColorGroup::Foreground, QColor(30, 30, 30)) |
p | setColor (QPalette::Inactive, QColorGroup::Foreground, QColor(30, 30, 30)) |
p | setColor (QPalette::Disabled, QColorGroup::Foreground, QColor(100, 100, 100)) |
p | setColor (QPalette::Active, QColorGroup::ButtonText, QColor(30, 30, 30)) |
p | setColor (QPalette::Inactive, QColorGroup::ButtonText, QColor(30, 30, 30)) |
p | setColor (QPalette::Disabled, QColorGroup::ButtonText, QColor(100, 100, 100)) |
for (int i=1;i< argc;i++) | |
QStringList | paths (AbanQ->libraryPaths()) |
if (!paths.contains(pathApp)) paths<< pathApp | |
if (!paths.contains(AQ_LIB)) paths<< AQ_LIB | |
AbanQ | setLibraryPaths (paths) |
appFont | setPointSize (FLSettings::readNumEntry("font/pointSize", pointSize)) |
appFont | setBold (FLSettings::readBoolEntry("font/bold", false)) |
appFont | setItalic (FLSettings::readBoolEntry("font/italic", false)) |
appFont | setUnderline (FLSettings::readBoolEntry("font/underline", false)) |
appFont | setStrikeOut (FLSettings::readBoolEntry("font/strikeOut", false)) |
AbanQ | setFont (appFont) |
AbanQ | setStyle (FLSettings::readEntry("style","QtCurve")) |
AbanQ | installTranslator (AbanQ->createSysTranslator(QString(QTextCodec::locale()).left(2), true)) |
AbanQ | installTranslator (AbanQ->createSysTranslator("multilang")) |
AbanQ | setPalette (p, true) |
if (silentConn.isEmpty()) | |
else | if (!silentConnect(silentConn)) |
AbanQ | setNotExit (FLSettings::readBoolEntry("application/notExit", false)) |
AbanQ | setPrintProgram (FLSettings::readEntry("printing/printProgram", QString::null)) |
AbanQ | flushX () |
AbanQ | syncX () |
AbanQ | processEvents () |
AbanQ | init (FLSettings::readEntry("application/formAlone", formAlone), FLSettings::readEntry("application/callFunction", callFunction), FLSettings::readEntry("application/arguments", arguments), FLSettings::readBoolEntry("application/quitAfterCall", quitAfterCall), FLSettings::readBoolEntry("application/noMax", noMax)) |
if (AbanQ->mainWidget()) | |
else if(splash) QTimer int | main (int argc, char **argv) |
Variables | |
QString | formAlone |
QString | callFunction |
QString | arguments |
QString | strConn |
QString | silentConn |
bool | quitAfterCall = false |
bool | autoLogin_ = false |
bool | noMax = false |
FLApplication * | AbanQ = aqApp |
QFont | appFont |
QString | pathApp (AQ_PREFIX+"/plugins") |
int | pointSize = 8 |
FLConnectDBDialog * | s = 0 |
QSplashScreen * | splash = 0 |
AbanQ flushX | ( | ) |
for | ( | ) |
if | ( | silentConn. | isEmpty() | ) |
else if | ( | ! | silentConnectsilentConn | ) |
if | ( | !paths. | containspathApp | ) |
if | ( | AbanQ-> | mainWidget() | ) |
if | ( | !paths. | containsAQ_LIB | ) |
AbanQ init | ( | FLSettings:: | readEntry"application/formAlone", formAlone, |
FLSettings:: | readEntry"application/callFunction", callFunction, | ||
FLSettings:: | readEntry"application/arguments", arguments, | ||
FLSettings:: | readBoolEntry"application/quitAfterCall", quitAfterCall, | ||
FLSettings:: | readBoolEntry"application/noMax", noMax | ||
) |
QStringList paths | ( | AbanQ-> | libraryPaths() | ) |
AbanQ processEvents | ( | ) |
appFont setBold | ( | FLSettings:: | readBoolEntry"font/bold", false | ) |
p setColor | ( | QPalette::Inactive | , |
QColorGroup::HighlightedText | , | ||
Qt::white | |||
) |
p setColor | ( | QPalette::Inactive | , |
QColorGroup::Foreground | , | ||
QColor(30, 30, 30) | |||
) |
p setColor | ( | QPalette::Disabled | , |
QColorGroup::Base | , | ||
QColor(255, 255, 248) | |||
) |
p setColor | ( | QPalette::Active | , |
QColorGroup::ButtonText | , | ||
QColor(30, 30, 30) | |||
) |
p setColor | ( | QPalette::Inactive | , |
QColorGroup::Text | , | ||
Qt::black | |||
) |
p setColor | ( | QPalette::Active | , |
QColorGroup::Highlight | , | ||
QColor(95, 150, 205) | |||
) |
p setColor | ( | QPalette::Inactive | , |
QColorGroup::ButtonText | , | ||
QColor(30, 30, 30) | |||
) |
p setColor | ( | QPalette::Disabled | , |
QColorGroup::Foreground | , | ||
QColor(100, 100, 100) | |||
) |
p setColor | ( | QPalette::Disabled | , |
QColorGroup::Dark | , | ||
QColor(246, 242, 246) | |||
) |
p setColor | ( | QPalette::Active | , |
QColorGroup::HighlightedText | , | ||
Qt::white | |||
) |
p setColor | ( | QPalette::Inactive | , |
QColorGroup::Dark | , | ||
QColor(246, 242, 246) | |||
) |
p setColor | ( | QPalette::Disabled | , |
QColorGroup::ButtonText | , | ||
QColor(100, 100, 100) | |||
) |
p setColor | ( | QPalette::Active | , |
QColorGroup::Base | , | ||
QColor(255, 255, 248) | |||
) |
p setColor | ( | QPalette::Disabled | , |
QColorGroup::HighlightedText | , | ||
Qt::white | |||
) |
p setColor | ( | QPalette::Active | , |
QColorGroup::Dark | , | ||
QColor(246, 242, 246) | |||
) |
p setColor | ( | QPalette::Inactive | , |
QColorGroup::Base | , | ||
QColor(255, 255, 248) | |||
) |
p setColor | ( | QPalette::Disabled | , |
QColorGroup::Text | , | ||
QColor(100, 100, 100) | |||
) |
p setColor | ( | QPalette::Active | , |
QColorGroup::Foreground | , | ||
QColor(30, 30, 30) | |||
) |
appFont setItalic | ( | FLSettings:: | readBoolEntry"font/italic", false | ) |
AbanQ setLibraryPaths | ( | paths | ) |
AbanQ setNotExit | ( | FLSettings:: | readBoolEntry"application/notExit", false | ) |
AbanQ setPalette | ( | p | , |
true | |||
) |
appFont setPointSize | ( | FLSettings:: | readNumEntry"font/pointSize", pointSize | ) |
AbanQ setPrintProgram | ( | FLSettings:: | readEntry"printing/printProgram", QString::null | ) |
appFont setStrikeOut | ( | FLSettings:: | readBoolEntry"font/strikeOut", false | ) |
AbanQ setStyle | ( | FLSettings:: | readEntry"style","QtCurve" | ) |
appFont setUnderline | ( | FLSettings:: | readBoolEntry"font/underline", false | ) |
AbanQ syncX | ( | ) |
bool autoLogin_ = false |
bool quitAfterCall = false |
FLConnectDBDialog* s = 0 |
QSplashScreen* splash = 0 |