22 #ifndef DEFAULTEDITOR_H
23 #define DEFAULTEDITOR_H
29 class TDEFontSizeAction;
30 class TDEToggleAction;
31 class TDEActionCollection;
34 class DefaultEditor : public Komposer::Editor
39 DefaultEditor( TQObject *parent, const char *name, const TQStringList &args );
42 virtual TQWidget *widget();
43 virtual TQString text() const;
45 virtual void setText( const TQString &txt );
46 virtual void changeSignature( const TQString &txt );
73 void setAlignLeft( bool yes );
78 void setAlignRight( bool yes );
83 void setAlignCenter( bool yes );
88 void setAlignJustify( bool yes );
94 void createActions( TDEActionCollection *ac );
100 void updateAligment();
103 TQTextEdit *m_textEdit;
105 TDEToggleAction *m_actionBold;
106 TDEToggleAction *m_actionItalic;
107 TDEToggleAction *m_actionUnderline;
109 TDEFontAction *m_actionFont;
110 TDEFontSizeAction *m_actionFontSize;
112 TDEToggleAction *m_actionAlignLeft;
113 TDEToggleAction *m_actionAlignRight;
114 TDEToggleAction *m_actionAlignCenter;
115 TDEToggleAction *m_actionAlignJustify;
|