QCodeEdit 2.2
|
00001 /**************************************************************************** 00002 ** 00003 ** Copyright (C) 2006-2009 fullmetalcoder <fullmetalcoder@hotmail.fr> 00004 ** 00005 ** This file is part of the Edyuk project <http://edyuk.org> 00006 ** 00007 ** This file may be used under the terms of the GNU General Public License 00008 ** version 3 as published by the Free Software Foundation and appearing in the 00009 ** file GPL.txt included in the packaging of this file. 00010 ** 00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 ** 00014 ****************************************************************************/ 00015 00016 #ifndef _QSNIPPET_BINDING_H_ 00017 #define _QSNIPPET_BINDING_H_ 00018 00019 #include "qce-config.h" 00020 00026 #include "qeditorinputbinding.h" 00027 00028 class QSnippetManager; 00029 00030 class QCE_EXPORT QSnippetBinding : public QEditorInputBinding 00031 { 00032 public: 00033 QSnippetBinding(QSnippetManager *manager); 00034 00035 virtual QString id() const; 00036 virtual QString name() const; 00037 00038 virtual bool keyPressEvent(QKeyEvent *event, QEditor *editor); 00039 00040 private: 00041 QSnippetManager *m_manager; 00042 }; 00043 00044 #endif