|
Classified ads
|
text editor class. More...
#include <textedit.h>


Public Slots | |
| virtual void | linkReady (const QString &aLinkAddress, const QString &aLinkLabel) |
Public Member Functions | |
| TextEdit (QWidget *aParent, MController *aController, Profile &aSelectedProfile) | |
| ~TextEdit () | |
| void | initializeTextEditor (QTextEdit *aTextEdit, QLayout *aLayOutForMenu, QLayout *aWidgetForActionsUpper, QLayout *aWidgetForActionsLower) |
Protected Member Functions | |
| virtual void | closeEvent (QCloseEvent *e) |
Protected Member Functions inherited from DialogBase | |
| DialogBase (QWidget *aParent, MController *aController, Profile &aSelectedProfile) | |
| Hash | publishBinaryAttachment (const MetadataQueryDialog::MetadataResultSet &aFileMetadata, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL) |
Protected Attributes | |
| QTextEdit * | textEdit |
Protected Attributes inherited from DialogBase | |
| MController * | iController |
| Profile & | iSelectedProfile |
| QList< MetadataQueryDialog::MetadataResultSet > | iFilesAboutToBeAttached |
| QLabel * | iAttachmentListLabel |
Private Slots | |
| void | fileNew () |
| void | fileOpen () |
| bool | fileSave () |
| bool | fileSaveAs () |
| void | filePrint () |
| void | filePrintPreview () |
| void | filePrintPdf () |
| void | textBold () |
| void | textUnderline () |
| void | textItalic () |
| void | textFamily (const QString &f) |
| void | textSize (const QString &p) |
| void | textStyle (int styleIndex) |
| void | textColor () |
| void | textAlign (QAction *a) |
| void | currentCharFormatChanged (const QTextCharFormat &format) |
| void | cursorPositionChanged () |
| void | clipboardDataChanged () |
| void | printPreview (QPrinter *) |
| void | insertLinkSelected () |
| void | insertImageSelected () |
Private Member Functions | |
| void | setupFileActions () |
| void | setupEditActions () |
| void | setupTextActions () |
| bool | load (const QString &f) |
| bool | maybeSave () |
| void | setCurrentFileName (const QString &fileName) |
| void | mergeFormatOnWordOrSelection (const QTextCharFormat &format) |
| void | fontChanged (const QFont &f) |
| void | colorChanged (const QColor &c) |
| void | alignmentChanged (Qt::Alignment a) |
| void | addAction (QAction *aAction) |
| void | addAction (QWidget *aAction, bool aLower=true) |
| QMenuBar * | menuBar () |
Private Attributes | |
| QAction * | actionSave |
| QAction * | actionTextBold |
| QAction * | actionTextUnderline |
| QAction * | actionTextItalic |
| QAction * | actionTextColor |
| QAction * | actionAlignLeft |
| QAction * | actionAlignCenter |
| QAction * | actionAlignRight |
| QAction * | actionAlignJustify |
| QAction * | actionUndo |
| QAction * | actionRedo |
| QAction * | actionCut |
| QAction * | actionCopy |
| QAction * | actionPaste |
| QAction * | actionInsertLink |
| QAction * | actionInsertImage |
| QComboBox * | comboStyle |
| QFontComboBox * | comboFont |
| QComboBox * | comboSize |
| QToolBar * | tb |
| QString | fileName |
| QLayout * | iWidgetForActionsUpper |
| QLayout * | iWidgetForActionsLower |
| QMenuBar * | iDialogMenuBar |
Additional Inherited Members | |
Signals inherited from DialogBase | |
| void | error (MController::CAErrorSituation aError, const QString &aExplanation) |
Protected Slots inherited from DialogBase | |
| void | attachButtonClicked () |
text editor class.
This is inteneded for inheritance for dialogs that allow editing of content. Implements a very nice rich text editor.
| TextEdit::TextEdit | ( | QWidget * | aParent, |
| MController * | aController, | ||
| Profile & | aSelectedProfile | ||
| ) |
Constructor. Does very basic init only, method TextEdit::initializeTextEditor must be called before this class is functional
| TextEdit::~TextEdit | ( | ) |
destructor
|
private |
method for adding editing action to designated area
|
private |
|
private |
|
privateslot |
|
protectedvirtual |
|
private |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
| void TextEdit::initializeTextEditor | ( | QTextEdit * | aTextEdit, |
| QLayout * | aLayOutForMenu, | ||
| QLayout * | aWidgetForActionsUpper, | ||
| QLayout * | aWidgetForActionsLower | ||
| ) |
Actual initialization of the editor.
| aTextEdit | pointer to actual editing area, allocated by inheriting class that has UI-layout. Inheriting class remains responsible to delete the editor after use. |
|
privateslot |
user says he wants embed an image
|
privateslot |
user says he wants insert a link
|
virtualslot |
this slot is called when user has finished entering a link and it is ready to be included in the document
|
private |
|
private |
|
inlineprivate |
returns dialog menu bar
|
private |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
holds the text being edited
1.8.13