knode
KNHelper Class Reference
#include <utilities.h>
Detailed Description
Some static helper methods.
Definition at line 117 of file utilities.h.
Static Public Member Functions | |
| static const QString | decryptStr (const QString &aStr) |
| static void | displayExternalFileError (QWidget *w=0) |
| static void | displayInternalFileError (QWidget *w=0) |
| static void | displayRemoteFileError (QWidget *w=0) |
| static void | displayTempFileError (QWidget *w=0) |
| static const QString | encryptStr (const QString &aStr) |
| static int | findStringInFile (QFile *file, const char *str) |
| static void | restoreWindowSize (const QString &name, QWidget *d, const QSize &defaultSize) |
| static QString | rewrapStringList (const QStringList &text, int wrapAt, QChar quoteChar, bool stopAtSig, bool alwaysSpace) |
| static QString | rot13 (const QString &s) |
| static void | saveWindowSize (const QString &name, const QSize &s) |
| static int | selectDialog (QWidget *parent, const QString &caption, const QStringList &options, int initialValue) |
Member Function Documentation
Definition at line 244 of file utilities.cpp.
| void KNHelper::displayExternalFileError | ( | QWidget * | w = 0 |
) | [static] |
| void KNHelper::displayInternalFileError | ( | QWidget * | w = 0 |
) | [static] |
| void KNHelper::displayRemoteFileError | ( | QWidget * | w = 0 |
) | [static] |
| void KNHelper::displayTempFileError | ( | QWidget * | w = 0 |
) | [static] |
Definition at line 227 of file utilities.cpp.
| int KNHelper::findStringInFile | ( | QFile * | file, | |
| const char * | str | |||
| ) | [static] |
Searches for the string from the current file position.
Returns -1 if the string wasn't found.
Definition at line 368 of file utilities.cpp.
| void KNHelper::restoreWindowSize | ( | const QString & | name, | |
| QWidget * | d, | |||
| const QSize & | defaultSize | |||
| ) | [static] |
Definition at line 211 of file utilities.cpp.
| QString KNHelper::rewrapStringList | ( | const QStringList & | text, | |
| int | wrapAt, | |||
| QChar | quoteChar, | |||
| bool | stopAtSig, | |||
| bool | alwaysSpace | |||
| ) | [static] |
used for rewarping a text when replying to a message or inserting a file into a box
Definition at line 285 of file utilities.cpp.
Definition at line 204 of file utilities.cpp.
| int KNHelper::selectDialog | ( | QWidget * | parent, | |
| const QString & | caption, | |||
| const QStringList & | options, | |||
| int | initialValue | |||
| ) | [static] |
list selection dialog, used instead of a popup menu when a select action is called via the keyboard.
returns -1 when the user canceled the dialog.
Definition at line 163 of file utilities.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference