Go to the documentation of this file.
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);
155 static QMap<QString, QString>
_args;
static bool readPasswordFromStdin()
static QMap< QString, QString > _args
static QList< QTranslator * > _translators
static bool setLanguage(QString languageCode=QString())
void loadDefaultCaCertificates() const
static QString dataDirectory()
void parseArguments(QStringList args)
static TorControl * torControl()
static void qt_msg_handler(QtMsgType type, const char *msg)
static Log::LogMessage log(Log::LogLevel level, QString msg)
bool validateArguments(QString &errmsg)
void onEventLoopStarted()
static void removeAllTranslators()
static void createShortcut(const QKeySequence &key, QWidget *sender, QObject *receiver, const char *slot)
static bool setStyle(QString styleKey=QString())
bool argNeedsValue(QString argName)
Vidalia(QStringList args, int &argc, char **argv)
static TorControl * _torControl
static QString language()
static QString defaultDataDirectory()
void copyDefaultSettingsFile() const
static void showUsageMessageBox()
static bool retranslateUi(const QString &languageCode)