libkdepim
DefaultEditor Class Reference
Inheritance diagram for DefaultEditor:

Detailed Description
Definition at line 34 of file defaulteditor.h.
Public Slots | |
virtual void | setText (const QString &txt) |
virtual void | changeSignature (const QString &txt) |
bool | open () |
bool | saveAs () |
bool | print () |
void | formatColor () |
void | checkSpelling () |
void | setAlignLeft (bool yes) |
void | setAlignRight (bool yes) |
void | setAlignCenter (bool yes) |
void | setAlignJustify (bool yes) |
Public Member Functions | |
DefaultEditor (QObject *parent, const char *name, const QStringList &args) | |
~DefaultEditor () | |
virtual QWidget * | widget () |
virtual QString | text () const |
Protected Slots | |
void | createActions (KActionCollection *ac) |
void | updateActions () |
void | updateFont () |
void | updateCharFmt () |
void | updateAligment () |
Member Function Documentation
QWidget * DefaultEditor::widget | ( | ) | [virtual] |
This is the magic function that all derivatives have to reimplement.
It returns the actual editor component.
Implements Komposer::Editor.
Definition at line 67 of file defaulteditor.cpp.
QString DefaultEditor::text | ( | ) | const [virtual] |
Returns the full text inside the editor.
Implements Komposer::Editor.
Definition at line 73 of file defaulteditor.cpp.
void DefaultEditor::setText | ( | const QString & | txt | ) | [virtual, slot] |
Sets the text of the opened editor.
Most commonly used on replaying. If any text is present if will be deleted.
Implements Komposer::Editor.
Definition at line 79 of file defaulteditor.cpp.
void DefaultEditor::changeSignature | ( | const QString & | txt | ) | [virtual, slot] |
Changes currently used signature.
If no signature is present a new one should be appened.
Implements Komposer::Editor.
Definition at line 85 of file defaulteditor.cpp.
bool DefaultEditor::open | ( | ) | [slot] |
Displays a file dialog and loads the selected file.
Definition at line 320 of file defaulteditor.cpp.
bool DefaultEditor::saveAs | ( | ) | [slot] |
Displays a file dialog and saves to the selected file.
Definition at line 332 of file defaulteditor.cpp.
bool DefaultEditor::print | ( | ) | [slot] |
void DefaultEditor::formatColor | ( | ) | [slot] |
Displays a color dialog and sets the text color to the selected value.
Definition at line 276 of file defaulteditor.cpp.
void DefaultEditor::createActions | ( | KActionCollection * | ac | ) | [protected, slot] |
Creates the part's actions in the part's action collection.
Definition at line 96 of file defaulteditor.cpp.
The documentation for this class was generated from the following files: