26 #include <ktextedit.h>
32 class TDEActionCollection;
33 class TDEToggleAction;
35 class TDEFontSizeAction;
38 class KNoteEdit :
public KTextEdit
43 KNoteEdit( TDEActionCollection *actions, TQWidget *parent=0,
const char *name=0 );
45 void setNote( KNote *_note ) {
48 void setText(
const TQString& text );
49 void setTextFont(
const TQFont& font );
50 void setTextColor(
const TQColor& color );
51 void setTabStop(
int tabs );
52 void setAutoIndentMode(
bool newmode );
55 virtual void setTextFormat( TextFormat f );
57 void textStrikeOut(
bool );
62 void textAlignCenter();
63 void textAlignRight();
64 void textAlignBlock();
68 void textSuperScript();
73 void slotCutEnabled(
bool );
76 virtual void contentsDragEnterEvent( TQDragEnterEvent *e );
77 virtual void contentsDropEvent( TQDropEvent *e );
78 virtual TQPopupMenu *createPopupMenu(
const TQPoint &pos );
81 void slotReturnPressed();
83 void fontChanged(
const TQFont &f );
84 void colorChanged(
const TQColor &c );
85 void alignmentChanged(
int a );
86 void verticalAlignmentChanged( VerticalAlignment a );
89 void setEnabledRedo(
bool b );
90 void setEnabledUndo(
bool b );
95 virtual bool linksEnabled()
const {
return true; }
96 virtual void emitLinkClicked(
const TQString &s );
98 void enableRichTextActions();
99 void disableRichTextActions();
106 TDEToggleAction *m_textBold;
107 TDEToggleAction *m_textItalic;
108 TDEToggleAction *m_textUnderline;
109 TDEToggleAction *m_textStrikeOut;
111 TDEToggleAction *m_textAlignLeft;
112 TDEToggleAction *m_textAlignCenter;
113 TDEToggleAction *m_textAlignRight;
114 TDEToggleAction *m_textAlignBlock;
116 TDEToggleAction *m_textList;
117 TDEToggleAction *m_textSuper;
118 TDEToggleAction *m_textSub;
123 TDEAction *m_textColor;
124 TDEFontAction *m_textFont;
125 TDEFontSizeAction *m_textSize;
128 bool m_autoIndentMode;