13 #ifndef __SNIPPET_WIDGET_H__ 14 #define __SNIPPET_WIDGET_H__ 18 #include <tdelistview.h> 19 #include <tqtooltip.h> 22 #include <tdetexteditor/editinterface.h> 23 #include <tdetexteditor/view.h> 24 #include "snippetconfig.h" 37 class TDEActionCollection; 51 SnippetWidget(KMEdit* editor, TDEActionCollection* actionCollection, TQWidget* parent = 0); 53 TQPtrList<SnippetItem> * getList() { return (&_list); } 55 SnippetConfig * getSnippetConfig() { return (&_SnippetConfig); } 66 void insertIntoActiveView( const TQString &text ); 67 TQString parseText(TQString text, TQString del= "$"); 68 bool showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQString, TQString> * mapSave, 69 int & iWidth, int & iBasicHeight, int & iOneHeight); 70 TQString showSingleVarDialog(TQString var, TQMap<TQString, TQString> * mapSave, TQRect & dlgSize); 71 SnippetItem* makeItem( SnippetItem* parent, const TQString& name, const TQString& text, const TDEShortcut& shortcut ); 73 TQPtrList<SnippetItem> _list; 74 TQMap<TQString, TQString> _mapSaved; 78 TDEActionCollection* mActionCollection; 82 void slotEdit( TQListViewItem* item_ = 0 ); 89 void showPopupMenu( TQListViewItem * item, const TQPoint & p, int ); 90 void slotExecuted(TQListViewItem * item = 0); 91 void slotDropped(TQDropEvent *e, TQListViewItem *after); This class represents one CodeSnippet-Item in the listview.
This class stores the values that can be configured via the KDevelop settings dialog.
|