knode
utilities.h
Go to the documentation of this file.
93 static int selectDialog(QWidget *parent, const QString &caption, const QStringList &options, int initialValue);
102 static QString rewrapStringList(const QStringList &text, int wrapAt, QChar quoteChar, bool stopAtSig, bool alwaysSpace);
KNSaveHelper(QString saveName, QWidget *parent)
Definition: utilities.cpp:38
QFile * getFile(const QString &dialogTitle)
returns a file open for writing
Definition: utilities.cpp:58
static int findStringInFile(QFile *file, const char *str)
Searches for the string from the current file position.
Definition: utilities.cpp:369
QFile * getFile() const
returns the file after getFile(QString) of setURL(url) was called
Definition: utilities.h:68
static void saveWindowSize(const QString &name, const QSize &s)
Definition: utilities.cpp:205
virtual QByteArray text(quint32 serialNumber) const =0
static void restoreWindowSize(const QString &name, QWidget *d, const QSize &defaultSize)
Definition: utilities.cpp:212
static void displayRemoteFileError(QWidget *w=0)
use this for remote files
Definition: utilities.cpp:356
File open helper (includes file open dialog and network download).
Definition: utilities.h:55
static const QString encryptStr(const QString &aStr)
Definition: utilities.cpp:228
static void displayTempFileError(QWidget *w=0)
use this for error on temporary files
Definition: utilities.cpp:362
static void displayExternalFileError(QWidget *w=0)
use this for all external files
Definition: utilities.cpp:350
static void displayInternalFileError(QWidget *w=0)
use this for all internal files
Definition: utilities.cpp:344
static const QString decryptStr(const QString &aStr)
Definition: utilities.cpp:245
static QString rewrapStringList(const QStringList &text, int wrapAt, QChar quoteChar, bool stopAtSig, bool alwaysSpace)
used for rewarping a text when replying to a message or inserting a file into a box ...
Definition: utilities.cpp:286
static int selectDialog(QWidget *parent, const QString &caption, const QStringList &options, int initialValue)
list selection dialog, used instead of a popup menu when a select action is called via the keyboard...
Definition: utilities.cpp:163
QFile * setURL(const KUrl &url)
tries to access the file specified by the url and returns a file open for reading ...
Definition: utilities.cpp:129
File save helper (includes file save dialog and network upload).
Definition: utilities.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.