00001 /*************************************************************************** 00002 cutescintilla.h - extension on qscintilla 00003 ------------------- 00004 begin : Sam Jul 19 23:53:49 CEST 2003 00005 copyright : (C) 2003 by Heiko Köhler 00006 email : heicom@users.sourceforge.net 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef __CUTESCINTILLA_H__ 00019 #define __CUTESCINTILLA_H__ 00020 00021 #include <qextscintilla.h> 00022 #include <qmap.h> 00023 #include <qaction.h> 00024 #include <qpopupmenu.h> 00025 00027 class CUTEScintilla : public QextScintilla 00028 { 00029 Q_OBJECT 00030 public: 00031 CUTEScintilla(QWidget *parent=0, const char *name=0); 00033 void setActions(QMap<int, QAction*>); 00034 protected: 00035 bool eventFilter(QObject *obj, QEvent *e); 00036 void contextMenu(QContextMenuEvent *e); 00037 private: 00038 QPopupMenu *menu; 00039 }; 00040 00041 #endif