diff options
Diffstat (limited to 'core/.pm.lua')
-rw-r--r-- | core/.pm.lua | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/core/.pm.lua b/core/.pm.lua index 3b1ffbd8..5371d286 100644 --- a/core/.pm.lua +++ b/core/.pm.lua @@ -61,12 +61,6 @@ module('textadept.pm') -- current GtkTreePath). pm = { entry_text = nil, width = nil, cursor = nil } ---- Focuses the project manager entry. -function focus() end - ---- Clears the project manager contents. -function clear() end - --- Requests the project manager to get its contents based on its entry text. function activate() end @@ -75,3 +69,35 @@ function activate() end -- manager entry combo box. -- @param prefix The text to add. function add_browser(prefix) end + +--- Clears the project manager contents. +function clear() end + +--- +-- Adds contents to the Project Manager view. +-- @param contents Table of tables to for display in the treeview (single +-- level). Each key in the return table is the treeview item's ID. The table +-- value has the following recognized fields: +-- * parent - boolean value indicating if this entry can contain children. +-- If true, an expanding arrow is displayed next to the entry. +-- * pixbuf - a string representing a GTK stock-id whose icon is displayed +-- next to an entry. +-- * text - the entry's Pango marked-up display text. +-- Note that only a SINGLE level of data needs to be returned. When parents +-- are expanded, this function is called again to get that level of data. +-- @param parent String representation of parent GtkTreePath to add the child +-- contents to. +function fill(contents, parent) + +--- Focuses the project manager entry. +function focus() end + +--- +-- Shows a context menu. +-- @param menu Table of menu items. It consists of an ordered list of strings +-- to be used to construct a context menu. The strings are handled as follows: +-- * 'gtk-*' - a stock menu item is created based on the GTK stock-id. +-- * 'separator' - a menu separator item is created. +-- * Otherwise a regular menu item with a mnemonic is created. +-- @param event The GDK event associated with the context menu request. +function show_context_menu(menu, event) end |