1 /***************************************************************************
2 ksayitviewimpl.h - description
4 begin : Son Aug 10 2003
5 copyright : (C) 2003 by Robert Vogl
6 email : voglrobe@saphir
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef KSAYITVIEWIMPL_H
19 #define KSAYITVIEWIMPL_H
22 #include <QtGui/QWidget>
27 #include <KSayItView.h>
33 class KSayItViewImpl
: public KSayItView
{
37 KSayItViewImpl(QWidget
*parent
=0, const char *name
=0);
41 void signalSetCaption(const QString
&caption
);
42 void signalShowStatus(const QString
&status
);
43 void signalEnableCopyCut(bool enable
);
45 /** Emitted when the text in the TextEditor view cahnges.
46 * \param empty True if the TextEditor view is empty.
48 void signalTextChanged(bool empty
);
51 /** True if text is selected or false if text is deselected.
53 void slotCopyAvailable(bool available
);
55 /** Copy selected text to the clipboard.
59 /** Copy selected text to the clipboard and delete it.
63 /** Paste text from the clipboard to the texteditor.
68 /** Called from the widget
70 void slotTextChanged();
73 /** Returns the text of the TextEdit-Widget
77 /** Set the content of the textEdit-Widget to text
79 void setText(const QString
&text
);
81 /** Enables/disables the Textedit
82 * \param enable true=enabled, false=disabled
84 void enableTextedit( bool enable
);
86 /** Deletes the entire text of the texteditor.