SVN_SILENT made messages (.desktop file)
[kdeaccessibility.git] / ksayit / src / ksayitviewimpl.h
blob32aaf5747f86df76f0157d8f05f3744af2402f58
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 <qwidget.h>
23 #include <QString>
25 // KDE includes
27 // App includes
28 #include <KSayItView.h>
30 /**
31 *@author Robert Vogl
34 class KSayItViewImpl : public KSayItView {
35 Q_OBJECT
37 public:
38 KSayItViewImpl(QWidget *parent=0, const char *name=0);
39 ~KSayItViewImpl();
41 signals:
42 void signalSetCaption(const QString &caption);
43 void signalShowStatus(const QString &status);
44 void signalEnableCopyCut(bool enable);
46 /** Emitted when the text in the TextEditor view cahnges.
47 * \param empty True if the TextEditor view is empty.
49 void signalTextChanged(bool empty);
51 public slots:
52 /** True if text is selected or false if text is deselected.
54 void slotCopyAvailable(bool available);
56 /** Copy selected text to the clipboard.
58 void slotCopy();
60 /** Copy selected text to the clipboard and delete it.
62 void slotCut();
64 /** Paste text from the clipboard to the texteditor.
66 void slotPaste();
68 private slots:
69 /** Called from the widget
71 void slotTextChanged();
73 public: // Methods
74 /** Returns the text of the TextEdit-Widget
76 QString& getText();
78 /** Set the content of the textEdit-Widget to text
80 void setText(const QString &text);
82 /** Enables/disables the Textedit
83 * \param enable true=enabled, false=diabled
85 void enableTextedit( bool enable );
87 /** Deletes the entire text of the texteditor.
89 void textClear();
91 private:
92 QString t;
97 #endif