Helper contains a bunch of (static) helper functions.
More...
#include <helper.h>
|
static QString | loadTextFile (const QString &fileName) |
|
static void | saveToTextFile (const QString &fileName, const QString &text) |
|
static QByteArray | loadFile (const QString &fileName) |
|
static void | saveToFile (const QString &fileName, const QByteArray &data) |
|
static void | msg (const QString &message, QWidget *parent=0) |
|
static bool | question (const QString &message, QWidget *parent=0) |
|
static QString | userValue (const QString &message, const QString defaultValue, QWidget *parent=0) |
| ask the user for a input value More...
|
|
static QString | fileDialog (const QString &title, const QString &start_directory="", const QString &filter="", QWidget *parent=0) |
| open a File Dialog and let the user choose a file. More...
|
|
static bool | quiet () |
|
static bool | debugEnabled () |
|
static void | setQuiet (bool quiet) |
|
static void | setDebugEnabled (bool enable) |
|
static void | openHelp (const QString &topic) |
|
static QString | stripHtml (const QString &source) |
|
static QString | currentRevision () |
| svn revision number More...
|
|
Helper contains a bunch of (static) helper functions.
including simplifed functions to read/write plain text files (loadTextFile(), saveToTextFile()), funcitons to show message dialogs (msg(), question()), and functions to control the amount of debug outputs (quiet(), debugEnabled()).
◆ Helper()
◆ currentRevision()
QString Helper::currentRevision |
( |
| ) |
|
|
static |
◆ debugEnabled()
static bool Helper::debugEnabled |
( |
| ) |
|
|
inlinestatic |
◆ fileDialog()
QString Helper::fileDialog |
( |
const QString & |
title, |
|
|
const QString & |
start_directory = "" , |
|
|
const QString & |
filter = "" , |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
static |
open a File Dialog and let the user choose a file.
- Returns
- the filename selected by the user, an empty string if user cancels.
◆ loadFile()
QByteArray Helper::loadFile |
( |
const QString & |
fileName | ) |
|
|
static |
◆ loadTextFile()
QString Helper::loadTextFile |
( |
const QString & |
fileName | ) |
|
|
static |
◆ msg()
void Helper::msg |
( |
const QString & |
message, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
static |
◆ openHelp()
void Helper::openHelp |
( |
const QString & |
topic | ) |
|
|
static |
◆ question()
bool Helper::question |
( |
const QString & |
message, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
static |
◆ quiet()
static bool Helper::quiet |
( |
| ) |
|
|
inlinestatic |
◆ saveToFile()
void Helper::saveToFile |
( |
const QString & |
fileName, |
|
|
const QByteArray & |
data |
|
) |
| |
|
static |
◆ saveToTextFile()
void Helper::saveToTextFile |
( |
const QString & |
fileName, |
|
|
const QString & |
text |
|
) |
| |
|
static |
◆ setDebugEnabled()
static void Helper::setDebugEnabled |
( |
bool |
enable | ) |
|
|
inlinestatic |
◆ setQuiet()
static void Helper::setQuiet |
( |
bool |
quiet | ) |
|
|
inlinestatic |
◆ stripHtml()
QString Helper::stripHtml |
( |
const QString & |
source | ) |
|
|
static |
◆ userValue()
QString Helper::userValue |
( |
const QString & |
message, |
|
|
const QString |
defaultValue, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
static |
ask the user for a input value
The documentation for this class was generated from the following files: