fix i18nc typo in last commit
[kdeaccessibility.git] / ksayit / src / ksayitviewimpl.h
blobf711affd12c91764a78433c9dad867ab7f9ac522
1 /***************************************************************************
2 ksayitviewimpl.h - description
3 -------------------
4 begin : Son Aug 10 2003
5 copyright : (C) 2003 by Robert Vogl
6 email : voglrobe@saphir
7 ***************************************************************************/
9 /***************************************************************************
10 * *
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. *
15 * *
16 ***************************************************************************/
18 #ifndef KSAYITVIEWIMPL_H
19 #define KSAYITVIEWIMPL_H
21 // QT includes
22 #include <QtGui/QWidget>
24 // KDE includes
26 // App includes
27 #include <KSayItView.h>
29 /**
30 *@author Robert Vogl
33 class KSayItViewImpl : public KSayItView {
34 Q_OBJECT
36 public:
37 KSayItViewImpl(QWidget *parent=0, const char *name=0);
38 ~KSayItViewImpl();
40 signals:
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);
50 public slots:
51 /** True if text is selected or false if text is deselected.
53 void slotCopyAvailable(bool available);
55 /** Copy selected text to the clipboard.
57 void slotCopy();
59 /** Copy selected text to the clipboard and delete it.
61 void slotCut();
63 /** Paste text from the clipboard to the texteditor.
65 void slotPaste();
67 private slots:
68 /** Called from the widget
70 void slotTextChanged();
72 public: // Methods
73 /** Returns the text of the TextEdit-Widget
75 QString& getText();
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.
88 void textClear();
90 private:
91 QString t;
96 #endif