25 #include <QApplication>
29 #include <QKeySequence>
37 #define vApp ((Vidalia *)qApp)
39 #define vDebug(fmt) (vApp->log(Log::Debug, (fmt)))
40 #define vInfo(fmt) (vApp->log(Log::Info, (fmt)))
41 #define vNotice(fmt) (vApp->log(Log::Notice, (fmt)))
42 #define vWarn(fmt) (vApp->log(Log::Warn, (fmt)))
43 #define vError(fmt) (vApp->log(Log::Error, (fmt)))
52 Vidalia(QStringList args,
int &argc,
char **argv);
64 static bool setLanguage(QString languageCode = QString());
66 static bool setStyle(QString styleKey = QString());
99 static void createShortcut(
const QKeySequence &key, QWidget *sender,
100 QObject *receiver,
const char *slot);
105 QObject *receiver,
const char *slot);
121 #if defined(Q_OS_WIN)
123 bool winEventFilter(MSG *msg,
long *result);
150 static QMap<QString, QString>
_args;