gbCodeLib - Tree
The gbCodeLib snippet database is displayed in a hierarchical Tree format - consisting
of Languages, Categories, and Snippets.
Any number of languages, categories or snippets may be displayed. When gbCodeLib starts
it reads the database and creates the Tree structure. Languages and categories do not
have to be pre-defined. gbCodeLib will create the structure as it finds it in the database.
gbCodeLib is case-insensitive with respect to language and category titles.
Tree elements may be added or deleted using toolbar, menu, or context menu options.
Editing of Tree element titles can be done in place within the Tree or in the edit box
to the right of the Tree.
Selecting a Tree element (Language, Category, or Snippet) results in a display (to the right of the
Tree) of information about the element. If a Language or Category is selected, summary information
is presented. If a code snippet is selected, its title and source code are displayed.
Right-clicking on the Tree will call up a context menu. The options displayed depend on
the type of currently selected element (Language, Category, or Snippet):
Language Context Menu
- Expand
Expands the selected Tree node and all of its children
- Collapse
Collapses the selected Tree node and all of its children
- Edit Language Title
Allows user to edit the Language title within the Tree
- New Language
Adds a new Language node to the Tree. Also added is a single default category and snippet.
- Hide All Other Languages
Hides (does not deletes) all Languages from the Tree except the selected Language.
Category Context Menu
- Expand
Expands the selected Tree node and all of its children
- Collapse
Collapses the selected Tree node and all of its children
- Edit Category Title
Allows user to edit the Category title within the Tree
- New Category
Adds a new Category node to the Tree. Also adds a default snippet under the category.
- Delete Category
Deletes the selected Tree node and all of its children.
Snippet Context Menu
- Edit Snippet Title
Allows user to edit the Snippet title within the Tree
- New Snippet
Adds a new snippet to the current category
- Delete Snippet
Deletes the selected snippet
- Duplicate Snippet
Adds a new snippet that is identical to the selected snippet
- Add Bookmark
Adds 'Bookmark' to the snippet keyword list and displays the snippet with a colored Tree icon
- Remove Bookmark
Removes the Bookmarked status from the snippet
- Show Repository
Opens the Repository window, showing all previously saved revisions to the currently selected snippet
|