aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/iface.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2010-06-11 18:51:16 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2010-06-11 18:51:16 -0400
commit8e66381a040f695f4203b28bc3f1d6818d0da7a2 (patch)
treee30e8115d27b423b579e60178f36a151dc795f50 /core/iface.lua
parent7a4800f05f26067a1cef77e5431256aab4c3d675 (diff)
Removed _G.textadept.
Created new _SCINTILLA core module. Renamed textadept.constants to _SCINTILLA.constants Renamed textadept.buffer_functions to _SCINTILLA.functions Renamed textadept.buffer_properties to _SCINTILLA.properties Created new gui core module. Renamed textadept._print() to gui._print(). Renamed textadept.check_focused_buffer() to gui.check_focused_buffer(). Renamed textadept.clipboard_text to gui.clipboard_text. Renamed textadept.context_menu to gui.context_menu Renamed textadept.command_entry to gui.command_entry. Renamed textadept.dialog to gui.dialog. Renamed textadept.docstatusbar_text to gui.docstatusbar_text. Renamed textadept.find to gui.find. Renamed textadept.focused_doc_pointer to gui.focused_doc_pointer. Renamed textadept.get_split_table() to gui.get_split_table(). Renamed textadept.gtkmenu() to gui.gtkmenu(). Renamed textadept.goto_view() to gui.goto_view(). Renamed textadept.menubar to gui.menubar. Renamed textadept.print() to gui.print(). Renamed textadept.size to gui.size. Renamed textadept.statusbar_text to gui.statusbar_text. Renamed textadept.switch_buffer() to gui.switch_buffer(). Renamed textadept.title to gui.title. Renamed textadept.buffers to _G._BUFFERS. Renamed textadept.new_buffer() to _G.new_buffer(). Renamed textadept.quit() to _G.quit(). Renamed textadept.reset() to _G.reset(). Renamed textadept.views to _G._VIEWS. Renamed textadept.user_dofile() to _G.user_dofile(). Renamed textadept.iconv to string.iconv. Renamed textadept.session_file to _SESSIONFILE. Renamed appropriate C functions.
Diffstat (limited to 'core/iface.lua')
-rw-r--r--core/iface.lua28
1 files changed, 22 insertions, 6 deletions
diff --git a/core/iface.lua b/core/iface.lua
index 046ceb14..954aca04 100644
--- a/core/iface.lua
+++ b/core/iface.lua
@@ -1,4 +1,15 @@
-local constants = {
+-- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+
+---
+-- Scintilla constants, functions, and properties.
+-- Do not modify anything in this module. Doing so will result in instability.
+module('_SCINTILLA', package.seeall)
+
+---
+-- Scintilla constants.
+-- @class table
+-- @name constants
+constants = {
ANNOTATION_BOXED = 2,
ANNOTATION_HIDDEN = 0,
ANNOTATION_STANDARD = 1,
@@ -562,9 +573,12 @@ local constants = {
SCN_INDICATORCLICK = 2023,
SCN_INDICATORRELEASE = 2024,
}
-rawset(textadept, 'constants', constants)
-local buffer_functions = {
+---
+-- Scintilla functions.
+-- @class table
+-- @name functions
+functions = {
add_ref_document = {2376, 0, 0, 1},
add_selection = {2573, 1, 1, 1},
add_styled_text = {2002, 0, 2, 9},
@@ -831,9 +845,12 @@ local buffer_functions = {
zoom_in = {2333, 0, 0, 0},
zoom_out = {2334, 0, 0, 0},
}
-rawset(textadept, 'buffer_functions', buffer_functions)
-local buffer_properties = {
+---
+-- Scintilla properties.
+-- @class table
+-- @name properties
+properties = {
additional_caret_fore = {2605, 2604, 4, 0},
additional_carets_blink = {2568, 2567, 5, 0},
additional_carets_visible = {2609, 2608, 5, 0},
@@ -1004,4 +1021,3 @@ local buffer_properties = {
x_offset = {2398, 2397, 1, 0},
zoom = {2374, 2373, 1, 0},
}
-rawset(textadept, 'buffer_properties', buffer_properties)