SVN_SILENT made messages (.desktop file)
[kdepim.git] / templateparser / templatestexteditor.h
blob6aa900a834d563d77b943ca6077ffe431c007ebc
1 /*
2 Copyright (c) 2013, 2014 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef TEMPLATESTEXTEDITOR_H
19 #define TEMPLATESTEXTEDITOR_H
20 #include "pimcommon/texteditor/richtexteditor/richtexteditor.h"
21 class QCompleter;
22 class QKeyEvent;
23 namespace TemplateParser {
24 class TemplatesTextEditor : public PimCommon::RichTextEditor
26 Q_OBJECT
27 public:
28 explicit TemplatesTextEditor(QWidget *parent=0);
29 ~TemplatesTextEditor();
31 protected Q_SLOTS:
32 void slotInsertCompletion( const QString & );
33 QString wordUnderCursor();
35 protected:
36 void initCompleter();
37 void keyPressEvent( QKeyEvent *e );
39 private:
40 QCompleter *m_completer;
43 #endif // TEMPLATESTEXTEDITOR_H