aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-11-30 23:33:00 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2007-11-30 23:33:00 -0500
commitbae13cb302821fb90009b1b3055768ec37b32621 (patch)
tree3d55032604063833c85299f2c150c41817e2e14f /core
parent48e03a9ed6d4081da6fe292d69bbc7908f74fda2 (diff)
downloadtextadept-bae13cb302821fb90009b1b3055768ec37b32621.tar.gz
textadept-bae13cb302821fb90009b1b3055768ec37b32621.zip
Added LuaDoc for pm browsers.
Diffstat (limited to 'core')
-rw-r--r--core/.browser.lua55
1 files changed, 55 insertions, 0 deletions
diff --git a/core/.browser.lua b/core/.browser.lua
new file mode 100644
index 00000000..4c4e798f
--- /dev/null
+++ b/core/.browser.lua
@@ -0,0 +1,55 @@
+-- Copyright 2007 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+-- This is a DUMMY FILE used for making LuaDoc for a textadept.pm browser.
+
+---
+-- A model browser for the Textadept project manager.
+-- It can be loaded by adding to the browsers table in core/ext/pm.lua.
+-- [Dummy file]
+module('textadept.pm.browser')
+
+---
+-- Determines whether or not to use this browser for the text in the project
+-- manager entry.
+-- All loaded browsers are called in sequence to match to the given entry text.
+-- When a match is found, that browser is used.
+-- @param entry_text The text in the entry.
+-- @return boolean indicating whether or not to use this browser.
+function matches(entry_text)
+
+---
+-- This function is called for contents to show in the browser.
+-- @param full_path An ordered list of parent IDs leading down to the selected
+-- child (if expanding); the entry text is at the first index.
+-- @param expanding Boolean indicating whether or not a parent is being
+-- expanded.
+-- @return table of contents to display. Each entry in the table is a key-value
+-- pair. The key must be a string ID and the value a table. Three key-value
+-- pairs are looked for in the table: parent, pixbuf, and text. parent is an
+-- optional boolean indicating whether or not the item should be identified as
+-- a parent (parents can be expanded so they have the arrow next to them).
+-- pixbuf is an optional string specifying a GTK stock icon to be associated
+-- with the item. text is a required string that is shown in the project
+-- manager; it can have Pango markup. All other items in the table are
+-- ignored.
+function get_contents_for(full_path, expanding)
+
+---
+-- This function is called when a user selects an item in the browser.
+-- @param selected_item An ordered list of parent IDs leading down to the
+-- selected child; the entry text is at the first index.
+function perform_action(selected_item)
+
+---
+-- Requests a context menu for the selected item in the browser.
+-- @param selected_item An ordered list of parent IDs leading down to the
+-- selected child; the entry text is at the first index.
+-- @return table used to construct a GTK menu.
+-- @see textadept.gtkmenu
+function get_context_menu(selected_item)
+
+---
+-- This function is called when a user selects a context menu item.
+-- @param menu_item The text of the menu item selected.
+-- @param selected_item An ordered list of parent IDs leading down to the
+-- selected child; the entry text is at the first index.
+function perform_menu_action(menu_item, selected_item)