gbCodeLib - Drag & Drop
There are two versions of drag and drop supported by gbCodeLib. One for
moving snippets within the Tree and second for dragging the entire content
of text files into gbCodeLib.
File Drag and Drop
Files may be dragged and dropped onto the source code editor. By default the contents
of the file will be added to the source code editor at the point of the cursor.
However, if the Menu > General > Drop to Category option is selected,
the file content will be added as a new snippet within category of the currently
selected snippet.
Multiple files can be dragged and dropped in a single operation. Contents of all
dropped files are placed in the same snippet - either the currently selected snippet
(by default) or in a new snippet if the 'Drop to Category' option is selected.
By default files with extensions .txt, .htm, .bat, .bas, .frm, .pl, .h, .cpp, and
.java are recognized as text files which can be dragged and dropped into gbCodeLib.
The default file list is kept in the file 'gbcodelibext.txt', found in the gbCodeLib
installation folder. Files of other extensions will be ignored.
Tree Drag and Drop
A snippet may be moved to a new category by simply dragging and dropping it on top
of the target category. The target category can be within any language in the snippet
database.
The Tree does not support selection of multiple snippets so Drag and Drop is
limited to a single snippet at a time. Drag and drop of entire categories is
also not supported.
|