You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.5 KiB
46 lines
1.5 KiB
/*************************************************************************** |
|
* snippet feature from kdevelop/plugins/snippet/ * |
|
* * |
|
* Copyright (C) 2007 by Robert Gruber * |
|
* rgruber@users.sourceforge.net * |
|
* * |
|
* This program is free software; you can redistribute it and/or modify * |
|
* it under the terms of the GNU General Public License as published by * |
|
* the Free Software Foundation; either version 2 of the License, or * |
|
* (at your option) any later version. * |
|
* * |
|
***************************************************************************/ |
|
|
|
#ifndef __SNIPPETWIDGET_H__ |
|
#define __SNIPPETWIDGET_H__ |
|
|
|
#include <QTreeView> |
|
|
|
namespace MailCommon |
|
{ |
|
class SnippetsManager; |
|
} |
|
|
|
class KActionCollection; |
|
class KMComposerEditorNg; |
|
|
|
class QContextMenuEvent; |
|
|
|
/** |
|
* @author Robert Gruber |
|
*/ |
|
class SnippetWidget : public QTreeView |
|
{ |
|
public: |
|
explicit SnippetWidget(KMComposerEditorNg *editor, KActionCollection *actionCollection, QWidget *parent = Q_NULLPTR); |
|
~SnippetWidget(); |
|
|
|
protected: |
|
void contextMenuEvent(QContextMenuEvent *) Q_DECL_OVERRIDE; |
|
void dropEvent(QDropEvent *) Q_DECL_OVERRIDE; |
|
|
|
private: |
|
MailCommon::SnippetsManager *mSnippetsManager; |
|
}; |
|
|
|
#endif
|
|
|