Compare commits

...

595 Commits
0.35 ... 0.40

Author SHA1 Message Date
Paul Kulchenko
a83f8bd5ac Updated CHANGELOG for 0.40. 2013-12-14 14:12:47 -08:00
Paul Kulchenko
92d08a0393 Updated Mobdebug (v0.55). 2013-12-14 14:10:54 -08:00
Paul Kulchenko
63eb7164b2 Added 'busted' interpreter. 2013-12-13 13:35:05 -08:00
Paul Kulchenko
23b37b397b Updated README. 2013-12-12 13:32:39 -08:00
Paul Kulchenko
e08bb4f41d Updated samples with missing indicator constants (closes #243). 2013-12-10 15:22:23 -08:00
Paul Kulchenko
9e558fba3a Updated CHANGELOG with recent changes. 2013-12-06 22:09:02 -08:00
Paul Kulchenko
22cf8f86d6 Updated MANIFEST files for LuaDist changes (closes #225). 2013-12-04 14:18:23 -08:00
Paul Kulchenko
d1c49f065b Merge branch 'luadist-package' 2013-12-03 22:27:16 -08:00
Paul Kulchenko
5268b5fb0d Updated OSX executables and added 'fake' proxy for lua-dist support (ref #225).
LuaDist relies on using liblua.dylib for all its modules with the same
name for both Lua 5.1 and Lua 5.2 interpreters. This presents an issue for
ZBS as it needs not only to refer to a proper liblua.dylib, but also to
avoid loading two interpreters as its own interperter loads its own
library.

To resolve this, liblua.dylib doesn't export any symbols (it's a dummy
library), but it needs to be present to satisfy dyld dependency (as some
of the libraries and LuaDist build process are outside of our control).

All the other Lua symbols are already available in memory, but to make
LuaDist libraries to use them, we enforce flat namespace.
2013-12-03 15:28:40 -08:00
Paul Kulchenko
df6ac05478 Fixed values 'captured' by redirected 'print' and not collected (fixes #240). 2013-12-02 18:20:48 -08:00
Paul Kulchenko
a71cd3494b Added live coding support for GSL-shell (closes #239). 2013-12-01 18:32:19 -08:00
Paul Kulchenko
28f443f665 Disabled compilation check for scratchpad when skipcompile is set (ref #239). 2013-12-01 18:30:49 -08:00
Paul Kulchenko
1df2f42938 Updated handling of case-insensitive names during debugging on OSX (Mobdebug v0.545). 2013-11-29 16:56:30 -08:00
Paul Kulchenko
25d118c87d Updated package onEditorPreSave to be called on SaveAs events (ref #166). 2013-11-29 16:30:10 -08:00
Paul Kulchenko
18498e0aae Added support for product-specific links in the Help menu. 2013-11-29 11:06:03 -08:00
Paul Kulchenko
8819e337b8 Added 'edge' style to the color schemes (ref #237). 2013-11-27 14:50:55 -08:00
Paul Kulchenko
ef52c9d328 Added ability to set 'edge' style properties individually (ref #237). 2013-11-27 13:10:49 -08:00
Paul Kulchenko
e9d71b05b9 Fixed typo in fold style definition (ref #237). 2013-11-27 13:09:58 -08:00
Mike Richards
17fdbb3eda Add edge to styles 2013-11-27 13:54:30 -05:00
Mike Richards
133ebe2435 Add fold margin checker color to styles 2013-11-27 13:53:15 -05:00
Mike Richards
bf8450afe3 Add edge line and fold margin checker color 2013-11-27 13:47:37 -05:00
Paul Kulchenko
ec2775bb5a Fixed console output being limited in addition to stack result limit. 2013-11-22 11:32:32 -08:00
Paul Kulchenko
fe8b0eb7e8 Updated icon bundle to eliminate large icons.
The bundle file was generating "DIB Header: Image width > 32767 pixels for
file" errors in some (!) cases on Windows, which doesn't seem to happen
with the bundle that doesn't include 128x128 and 256x256 icons.
2013-11-20 16:33:53 -08:00
Christoph Kubisch
7958ebc2eb tidy up estrela tools a bit (remove key strokes from cgc, remove luxinia res viewer, rename perforce files to get loaded again) 2013-11-20 15:40:31 +01:00
Paul Kulchenko
9235722a76 Fixed hang in auto-complete on expressions involving '...' (fixes #235). 2013-11-19 23:15:14 -08:00
Paul Kulchenko
caa8241ca9 Fixed auto-complete for string values (broken by 933aacc2). 2013-11-19 23:11:14 -08:00
Paul Kulchenko
aeb266c95b Fixed using load.* commands in config files and reverted 4cb9ab/a8cfd2. 2013-11-19 16:44:57 -08:00
Christoph Kubisch
4cb9ab4662 bugfix in estrela.lua 2013-11-19 16:17:02 +01:00
Christoph Kubisch
8c3fde6755 changed glslc option to reflect new version 2013-11-19 16:05:53 +01:00
Christoph Kubisch
a8cfd219ce bugfix to estrela loading behavior (disabled by last zbstudio merge), please update user.lua with content from estrela.lua 2013-11-19 15:58:02 +01:00
Christoph Kubisch
f208454003 glsl additions 2013-11-19 15:56:58 +01:00
Paul Kulchenko
792f745832 Updated application icon to a bit brighter one on OSX (closes #196). 2013-11-17 21:05:20 -08:00
Paul Kulchenko
1106d861ba Removed some of the snippets as they are available as plugins. 2013-11-15 16:11:17 -08:00
Paul Kulchenko
355f72099e Updated build script on OSX to not require 10.6 SDK (closes #231). 2013-11-14 15:41:31 -08:00
Paul Kulchenko
292f7b176b Added changing directory when launching on Linux (closes #157). 2013-11-09 23:47:45 -08:00
Paul Kulchenko
be03488583 Fixed crash when LUA_DEV environmental variable is not set (fixes #228). 2013-11-08 17:23:05 -08:00
Paul Kulchenko
83a663c369 Added setting PATH for LfW to allow loading of DLL dependencies. 2013-11-03 23:13:32 -08:00
Paul Kulchenko
5afa0fe4e8 Added logic to set architecture dynamically for luadist (ref #225). 2013-10-31 11:56:04 -07:00
Paul Kulchenko
838eae88f4 Fixed cmake cache filename (ref #225). 2013-10-31 11:56:03 -07:00
Paul Kulchenko
b253853241 Added luadist bootstrap dependencies for Linux (ref #225). 2013-10-31 11:56:01 -07:00
Paul Kulchenko
d0584dd62f Fixed a luadist error thrown when retrieve_pkg_info fails (ref #225). 2013-10-31 11:56:00 -07:00
Paul Kulchenko
74b39853b2 Added option to load luadist as a module (ref #225). 2013-10-31 11:55:58 -07:00
Paul Kulchenko
6b0d279f37 Added luadist bootstrap dependencies for OSX (ref #225). 2013-10-31 11:55:57 -07:00
Paul Kulchenko
2a0ff7b7f8 Added proxy dll for Lua 5.2 (ref #225). 2013-10-31 11:55:56 -07:00
Paul Kulchenko
1f2ce466f5 Added luadist bootstrap dependencies for Windows (ref #225). 2013-10-31 11:55:54 -07:00
Paul Kulchenko
30dfe9e99b Added package GetInterpreters method (ref #166, #225). 2013-10-31 11:55:52 -07:00
Paul Kulchenko
3acb334623 Added package AddConsoleAlias/RemoveConsoleAlias methods (ref #166, #225). 2013-10-31 11:55:51 -07:00
Paul Kulchenko
27c0fb9c55 Disabled output activation for messages redirected to Console (ref #225). 2013-10-31 11:55:50 -07:00
Paul Kulchenko
96005b74d9 Updated instructions for building Lua 5.2 proxy dll. 2013-10-30 11:55:08 -07:00
Paul Kulchenko
8489658f7d Fixed incorrect UTF-8 sequence in UTF-8 validity check. 2013-10-29 17:52:55 -07:00
Paul Kulchenko
9b0f9e52be Store os specific clibs path to make it available to plugins. 2013-10-25 18:01:15 -07:00
Paul Kulchenko
bdee0aea26 Added version property to the Lua interpreters. 2013-10-25 17:58:21 -07:00
Paul Kulchenko
7d2982fdbd Added instructions for building proxy dll for Lua 5.2. 2013-10-25 17:50:25 -07:00
Paul Kulchenko
f57d254136 Added new location for Marmalade Quick v7+ and s3e path logic (fixes #226). 2013-10-24 16:55:40 -07:00
Paul Kulchenko
fca8c25862 Fixed Un/Comment menu for Output/Console windows. 2013-10-24 15:29:54 -07:00
Paul Kulchenko
8a5e66cfae Added directory creation (if needed) to file saving. 2013-10-23 21:15:26 -07:00
Paul Kulchenko
1ff0955c52 Merge branch 'project-settings' 2013-10-23 11:21:21 -07:00
Paul Kulchenko
3f4b711efe Added support for symlinks in the filetree (with recursion protection). 2013-10-22 17:09:44 -07:00
Paul Kulchenko
e79016323d Added package AddConfig/RemoveConfig methods (ref #166). 2013-10-22 11:39:57 -07:00
Paul Kulchenko
50f4daf0d5 Added package GetProject method (ref #166). 2013-10-22 11:39:21 -07:00
Paul Kulchenko
2452f963b5 Added package onProjectPreLoad method (ref #166). 2013-10-22 11:38:06 -07:00
Paul Kulchenko
3c87a0a86a Moved restoring project before loading files (ref #107).
This is needed to take project configuration into account before files are
loaded.
2013-10-22 11:36:12 -07:00
Paul Kulchenko
d818952900 Reorganized loading configuration files (ref #107). 2013-10-22 11:27:37 -07:00
Paul Kulchenko
799ee9061c Fixed format of the file name reported after compilation errors. 2013-10-21 22:09:22 -07:00
Paul Kulchenko
ca32b04038 Fixed jumping to compilation error (if any) after Run/Debug. 2013-10-21 21:38:07 -07:00
Paul Kulchenko
948c841552 Added workaround for conflict with Scintilla shortcuts on Linux.
Details: http://wxwidgets.10942.n7.nabble.com/Menu-shortcuts-inconsistentcy-issue-td85065.html
2013-10-19 21:15:13 -07:00
Paul Kulchenko
f5ce0698de Disabled commenting for file types that don't specify line comments. 2013-10-19 21:14:01 -07:00
Paul Kulchenko
21f0fa18b4 Merge branch 'filetree-operations' 2013-10-19 15:59:25 -07:00
Paul Kulchenko
ac02eac58a Updated menu definitions for consistency. 2013-10-18 17:55:33 -07:00
Paul Kulchenko
8a11400718 Updated use of unpack for consistency and Lua 5.2 compatibility. 2013-10-17 19:55:47 -07:00
Paul Kulchenko
8d2ec214f0 Updated 'Open with Default Program' on Windows to work with spaces in names (#123). 2013-10-17 14:46:07 -07:00
Paul Kulchenko
68b5a625ec Updated cmake installation script to install to '/Applications' on OSX. 2013-10-17 11:42:36 -07:00
Paul Kulchenko
2f3de56dde Updated OSX build script to revert wxwidgets commit to fix auto-complete crash. 2013-10-17 11:21:26 -07:00
Paul Kulchenko
dec1e9a534 Fixed disabling 'Open with Default Program' on OSX (ref #123). 2013-10-16 22:59:21 -07:00
Paul Kulchenko
c462ebfbcf Fixed file tree update after changes on OSX (ref #123). 2013-10-16 22:15:04 -07:00
Paul Kulchenko
85f3e5fa9b Fixed copying full path on OSX (ref #123). 2013-10-16 22:07:10 -07:00
Paul Kulchenko
22d70d3e58 Fixed 'Open with Default Program' for paths with spaces on Windows (ref #123). 2013-10-16 22:05:44 -07:00
Paul Kulchenko
e1dc8b7085 Added 'Open with Default Program' to file tree operations (ref #123). 2013-10-16 19:40:45 -07:00
Paul Kulchenko
0387661c67 Added toggling directory on Enter (ref #123). 2013-10-16 17:34:51 -07:00
Paul Kulchenko
5269f769c4 Added 'Copy Full Path' to file tree operations (ref #123). 2013-10-16 17:34:50 -07:00
Paul Kulchenko
3e5fc7ddd0 Added deleting file/directory to file tree operations (ref #123). 2013-10-16 17:34:40 -07:00
Paul Kulchenko
e7415e30c6 Added processing of packages from $HOME/.zbstudio/packages folder (#166). 2013-10-16 16:27:33 -07:00
Paul Kulchenko
124b570ad4 Updated Start debugging hint to clarify. 2013-10-16 15:34:43 -07:00
Paul Kulchenko
eda840d02d Fixed folding issue (caused by math.mod not available in LuaJIT). 2013-10-16 15:05:07 -07:00
Paul Kulchenko
88612ba72e Added 'New File' and 'New Directory' to file operations (ref #123). 2013-10-16 13:35:15 -07:00
Paul Kulchenko
b9f82e6c38 Updated single-click toggle to allow rename/move directories (ref #123). 2013-10-16 10:30:26 -07:00
Paul Kulchenko
bf3320b100 Updated normalization flags as some path parts were changed to dots. 2013-10-16 10:24:10 -07:00
Paul Kulchenko
e95749e9f8 Added error reporting for failed rename operations (ref #123). 2013-10-15 11:31:54 -07:00
Paul Kulchenko
913244102a Added re-opening editor tabs affected by directory move/rename (ref #123). 2013-10-15 11:02:23 -07:00
Paul Kulchenko
edc06b2a84 Added package FindDocumentsByPartialPath method (ref #166). 2013-10-15 10:39:11 -07:00
Paul Kulchenko
a15dd00a33 Added existing file overwrite confirmation when renaming (ref #123). 2013-10-15 09:40:15 -07:00
Paul Kulchenko
cde478baaf Added existing file overwrite confirmation when saving. 2013-10-15 09:39:50 -07:00
Paul Kulchenko
37a117a7c0 Removed 'file no longer exists' message after moving opened files (ref #123). 2013-10-15 09:11:22 -07:00
Paul Kulchenko
04e10efdc8 Added creating intermediate directories during file rename (ref #123). 2013-10-14 21:31:19 -07:00
Paul Kulchenko
5c94f7b775 Added in-place editing of file and folder names (ref #123). 2013-10-14 21:04:49 -07:00
Paul Kulchenko
8e64765f42 Updated editor tab processing using FindDocument method. 2013-10-14 17:04:13 -07:00
Paul Kulchenko
abc5ee0ebe Added refreshing editor tab after drag-n-drop operation (ref #123). 2013-10-14 17:03:23 -07:00
Paul Kulchenko
5c564a2d6e Added drag-n-drop operation to move files in the project tree (ref #123). 2013-10-13 22:50:42 -07:00
Paul Kulchenko
f539047802 Updated shortcut for Replace All to avoid conflict on OSX (fixes #220). 2013-10-13 20:53:56 -07:00
Paul Kulchenko
58b6c80dcb Added package AddMarker/RemoveMarker methods (ref #166). 2013-10-13 16:02:51 -07:00
Paul Kulchenko
4bce9e9b92 Added package GetStatusBar method (ref #166). 2013-10-13 16:02:50 -07:00
Paul Kulchenko
f4a48f5add Fixed debugger marker calculations to avoid marker conflicts. 2013-10-13 16:02:35 -07:00
Paul Kulchenko
230efa465c Fixed color references in marker config examples. 2013-10-12 23:03:31 -07:00
Paul Kulchenko
a6cd382a0f Fixed Step Over/Out to stay in the same coroutine; Mobdebug 0.543 (closes #217). 2013-10-12 10:59:38 -07:00
Paul Kulchenko
783eaf4241 Fixed case sensitivity in matching of file name in error messages (fixes #216). 2013-10-11 17:30:37 -07:00
Paul Kulchenko
3096b4dfc0 Fixed tab text after SaveAs and loading files into the same tab. 2013-10-11 17:30:26 -07:00
Paul Kulchenko
a4dad82b02 Updated MANIFEST to include all packages. 2013-10-10 11:34:52 -07:00
Paul Kulchenko
7e2ebfe88c Updated SetDocumentModified to use current tab text. 2013-10-08 14:15:15 -07:00
Paul Kulchenko
1d72d7670a Added package GetDocuments and document methods (ref #166). 2013-10-08 14:15:14 -07:00
Paul Kulchenko
c33bd66fe7 Added EscapeMagic function to escape magic characters. 2013-10-08 14:15:12 -07:00
Paul Kulchenko
49d7711b9b Added SciTeLuaIDE color scheme (thanks to Jayanth Acharya). 2013-10-08 11:52:49 -07:00
Paul Kulchenko
eb6aa586af Updated CHANGELOG for 0.39. 2013-10-06 14:27:51 -07:00
Paul Kulchenko
04d2ef75dc Updated README with passing directory as a parameter. 2013-10-05 22:54:54 -07:00
Paul Kulchenko
46e4704b07 Updated LICENSE information. 2013-10-05 22:50:47 -07:00
Paul Kulchenko
eb614b5ea6 Updated Windows build file for wxwidgets 3.0. 2013-10-03 17:25:29 -07:00
Paul Kulchenko
87d3e4abcd Fixed Lua 5.2 crash on OSX (added -O1). 2013-10-02 18:21:25 -07:00
Paul Kulchenko
428572cf7c Merge branch 'stack-limit' 2013-10-02 18:17:26 -07:00
Paul Kulchenko
1b65580088 Fixed onInterpreterLoad to only be called when interpreter changes. 2013-10-02 18:14:12 -07:00
Paul Kulchenko
be16e47a36 Added setting project directory when passed as a parameter. 2013-10-02 16:56:43 -07:00
Paul Kulchenko
b76a58cb8c Fixed missing keys in 'mixed' tables. 2013-10-01 20:46:16 -07:00
kikito
19f4ebed6f fix the fixutf8 function 2013-10-01 12:51:27 +02:00
Paul Kulchenko
4ab661bb8b Fixed handling of source code fragments in the Stack view. 2013-09-30 21:46:58 -07:00
Paul Kulchenko
1729aa25b8 Optimized handling of large tables in stack results. 2013-09-30 21:21:01 -07:00
Paul Kulchenko
687ccb3256 Disabled refreshing Watch/Stack windows when they get focus (corrects 91ccdd96).
This happens too frequently, including when clicked on stack elements,
which refreshes the stack instead of expanding/collapsing elements.
2013-09-28 19:40:40 -07:00
Paul Kulchenko
baad9cf946 Fixed Watch/Stack windows to refresh when shown (corrects 4da37969). 2013-09-27 19:39:19 -07:00
Paul Kulchenko
e662970cc8 Updated CHANGELOG with recent changes. 2013-09-26 21:22:39 -07:00
Paul Kulchenko
ea927292f8 Updated luasocket to patch connection reset issue (ref diegonehab/luasocket#81). 2013-09-26 15:15:35 -07:00
Paul Kulchenko
e90d403bc6 Added activation of windows with SDL_app class name (Moai support). 2013-09-25 17:53:41 -07:00
Paul Kulchenko
01afd985df Merge branch 'dockable-stack-watch-tabs' 2013-09-25 17:40:25 -07:00
Paul Kulchenko
1ef2b3e0e9 Added workaround for combined windows after dragging a tab on top of active tab. 2013-09-25 17:08:32 -07:00
Paul Kulchenko
7f80f36486 Fixed dragging tabs out of split notebooks. 2013-09-25 14:42:40 -07:00
Paul Kulchenko
91ccdd9679 Updated Watch/Stack tabs to refresh when they get focus. 2013-09-25 12:49:19 -07:00
Paul Kulchenko
4da379693c Updated Watch/Stack tabs to refresh only when shown. 2013-09-25 12:47:36 -07:00
Paul Kulchenko
c1cbd949e7 Added dragging Watch/Stack tabs out of docked panes. 2013-09-24 20:00:42 -07:00
Paul Kulchenko
10b1e34504 Added support for joining/splitting Watch/Stack with Output/Console tabs. 2013-09-24 13:35:42 -07:00
Paul Kulchenko
df0824d274 Updated settings restore to activate Output pane and set focus on the editor. 2013-09-24 13:15:43 -07:00
Paul Kulchenko
33b1f79bb8 Added disabling View menu for non-existing panes. 2013-09-24 10:41:28 -07:00
Paul Kulchenko
7f2744c4f5 Added package GetSetting method (ref #166). 2013-09-23 21:08:26 -07:00
Paul Kulchenko
1c4de98f98 Added selected index to package onMenuEditorTab event (ref #166). 2013-09-21 21:16:01 -07:00
Paul Kulchenko
9f392382a7 Fixed incorrect editor tab acted upon in split notebook situations. 2013-09-21 21:10:54 -07:00
Paul Kulchenko
f704baa004 Updated support for MOAI coroutine debugging (Mobdebug 0.541). 2013-09-21 18:15:34 -07:00
Paul Kulchenko
762babaaba Reorganized auto-complete handling; should fix #164. 2013-09-21 13:57:53 -07:00
Paul Kulchenko
7ae515e6db Removed duplicate KILL_FOCUS handlers. 2013-09-21 13:41:33 -07:00
Paul Kulchenko
456347e371 Added activation of windows with FREEGLUT class name (Moai support). 2013-09-20 23:07:29 -07:00
Paul Kulchenko
b82b2782d7 Fixed auto-complete suggestions for indentifiers matching partial function names. 2013-09-20 16:10:41 -07:00
Paul Kulchenko
933aacc2c9 Updated type assignment logic to remove spurious types. 2013-09-20 16:10:32 -07:00
Paul Kulchenko
c94b5e9e2e Improved file/debugger activation on Windows (ref #199).
File activation has been inconsistent, because IsActive() returns `true`,
when it shouldn't, so I changed the logic to request attention first and
then to load file.

Also, this caused a symbol to appear in the loaded file and it turned out
that 307 code we used to enable bringing the window to foreground, was not
correct.
2013-09-19 15:31:31 -07:00
Paul Kulchenko
61976d2a25 Reduced CPU usage while idle (ref #204, #206). 2013-09-19 15:29:44 -07:00
Paul Kulchenko
996a706c97 Added hiding console window for Corona (2013.8.28+) applications (Windows). 2013-09-18 16:29:38 -07:00
Paul Kulchenko
371dd269b0 Fixed hiding launched windows when running/debugging (Windows). 2013-09-18 16:26:10 -07:00
Paul Kulchenko
c16f26a7d9 Added suggesting dynamic words as fields in auto-complete. 2013-09-18 16:20:40 -07:00
Paul Kulchenko
18757f393b Fixed showing known functions in auto-complete. 2013-09-18 13:52:29 -07:00
Paul Kulchenko
ca3b2de447 Upgraded copas and coxpcall libraries (closes #144). 2013-09-18 13:47:41 -07:00
Paul Kulchenko
929615a7b8 Enabled faster static analysis; partially reverted 89cafbec (ref #149, #168).
The slower setting was too slow and too verbose.
2013-09-18 13:39:40 -07:00
Paul Kulchenko
689cd8cf85 Added socket.connect for compatibility with socket.core <3.0 (fixes #208). 2013-09-17 17:17:45 -07:00
Paul Kulchenko
80eab46c3e Added recalculating line number margin width after zooming (fixes #207). 2013-09-17 15:35:09 -07:00
Paul Kulchenko
7a40fb8f7f Added margin constants and removed unused variables. 2013-09-17 15:34:03 -07:00
Paul Kulchenko
813844d052 Updated Windows build script to enable gdb debugging. 2013-09-16 15:20:20 -07:00
Paul Kulchenko
06620745f3 Updated OSX build script to not strip debug builds. 2013-09-16 15:19:27 -07:00
Paul Kulchenko
1f51d803db Added reporting of socket error for initial debugger calls (Mobdebug 0.5403). 2013-09-15 14:29:23 -07:00
Paul Kulchenko
b7d9c7d2b0 Improved file activation for abbreviated file names in error messages. 2013-09-15 14:16:40 -07:00
Paul Kulchenko
d3ce3fb93d Added error handling/reporting for debugger.outputfilter. 2013-09-14 23:24:13 -07:00
Paul Kulchenko
85418cce0f Enabled editing watches with doubleclick or Enter. 2013-09-14 10:22:40 -07:00
Paul Kulchenko
87594dc7e5 Updated Corona interpreter to handle failure to copy debugger to Resources/ folder. 2013-09-13 10:01:47 -07:00
Paul Kulchenko
c68d60a6e9 Fixed showing output with invalid UTF8 characters in Stack and Console windows. 2013-09-12 23:55:11 -07:00
Paul Kulchenko
4993b3c20e Added 'debug' option to OSX build script. 2013-09-11 13:33:22 -07:00
Paul Kulchenko
e7ddadedb1 Updated build scripts with proper INSTALL_PREFIX option. 2013-09-11 13:29:44 -07:00
Christoph Kubisch
b4987b74ab Merge remote-tracking branch 'zbstudio/master' 2013-09-11 09:48:02 +02:00
Christoph Kubisch
52c1133c42 dx11 and glslc updates 2013-09-11 09:47:18 +02:00
Paul Kulchenko
e9b345476b Fixed saving new files (broken by f28d4da053). 2013-09-10 18:24:16 -07:00
Paul Kulchenko
2594a679f3 Fixed debugging on/off handling in 'main' thread for LuaJIT (MobDebug 0.5402). 2013-09-10 16:22:12 -07:00
Paul Kulchenko
446dec6768 Merge branch 'lua52-jit-support' 2013-09-10 13:59:45 -07:00
Paul Kulchenko
cd926d617e Merge branch 'goto-definition-and-back' 2013-09-10 13:58:49 -07:00
Paul Kulchenko
d40427155f Updated build scripts with new wxlua source URL and revision number. 2013-09-09 17:00:52 -07:00
Paul Kulchenko
d52a6c155f Added ability to modify exe path in base interpreter (ref #197). 2013-09-08 17:55:31 -07:00
Paul Kulchenko
6c300cda97 Changed 'go to definition' to Ctrl/Cmd+Alt+Click (ref #203).
Ctrl/Cmd+Click conflicts with both selection using Ctrl+selection (when
doing multiple selection) and with Ctrl/Cmd+DblClick when selecting all
instances of a variable. As there is no (straightforward) way to separate
single from double clicks, 'go to definition' is moved to avoid the
conflict.
2013-09-08 16:10:22 -07:00
Paul Kulchenko
f28d4da053 Fixed having duplicate tabs after SaveAs with existing file name. 2013-09-08 14:38:59 -07:00
Michal Kottman
3b4f5c4c0a Enable Ctrl+Click and Alt+Left navigation on local variables 2013-09-08 13:32:58 +02:00
Paul Kulchenko
858742bf05 Fixed showing redirected 'print' messages after debugging is terminated. 2013-09-06 21:29:33 -07:00
Paul Kulchenko
d559afd9e2 Updated CFBundleIdentifier in plist files to allow references from OSX programs. 2013-09-06 15:07:43 -07:00
Paul Kulchenko
9acec71c7a Added package GetEditorNotebook method (ref #166). 2013-09-06 15:01:34 -07:00
Paul Kulchenko
8568f61ba4 Added 'molokai' color scheme (ref #200). 2013-09-05 22:23:28 -07:00
Paul Kulchenko
19133b5a03 Fixed a (regression) issue with running the default interpreter (ref #201). 2013-09-05 10:10:17 -07:00
Christoph Kubisch
9a2c161328 added hlsl spec and basic api (note: currently autocomplete doesn't work on object functions, need fix). also fixed cg syntax lexer settings 2013-09-05 17:45:13 +02:00
ardente
5c6f2ffae3 allow to define separate lua 5.1 and 5.2 paths in user config 2013-09-05 16:16:52 +04:00
Paul Kulchenko
6714f29302 Updated un/comment to toggle selection as a group rather than line by line. 2013-09-04 19:09:28 -07:00
Paul Kulchenko
f0b7cff06a Added file activation for abbreviated file names in error messages. 2013-09-04 15:26:54 -07:00
Paul Kulchenko
25589fc45a Reorganized path separator handling to minimize use of global variables. 2013-09-04 12:00:57 -07:00
Paul Kulchenko
6a7c8e78c0 Added abbreviation of project directories to keep unique parts visible. 2013-09-03 22:35:33 -07:00
Paul Kulchenko
443f936ac6 Added debugger.redirect configuration option. 2013-09-02 21:07:48 -07:00
Paul Kulchenko
12525ad189 Added editor.saveallonrun configuration option. 2013-09-02 10:43:03 -07:00
Paul Kulchenko
69fae9a36c Fixed using default interpreter when no interpreter is selected. 2013-09-02 10:32:47 -07:00
Paul Kulchenko
725a38b182 Improved IDE activation during debugging on Windows (closes #199); thanks to jpoag. 2013-09-01 22:28:04 -07:00
Paul Kulchenko
13c4ca1a2f Fixed stepping through blocks with undefined variables when 'strict' is in effect (upgraded Mobdebug to 0.5401). 2013-09-01 21:17:47 -07:00
Paul Kulchenko
3e68447415 Updated CHANGELOG with recent changes. 2013-08-29 19:19:42 -07:00
Paul Kulchenko
63e1e56c28 Updated OSX/Windows manifests with new binaries (closes #197). 2013-08-29 12:42:28 -07:00
Paul Kulchenko
3ace5133bf Updated Linux files with LuaJIT, Lua5.2 and lua socket libraries (ref #197). 2013-08-29 12:37:28 -07:00
Paul Kulchenko
f8491464bd Updated OSX files with LuaJIT, Lua5.2 and lua socket libraries (ref #197). 2013-08-29 09:25:13 -07:00
Paul Kulchenko
01b8eea47b Replaced Lua 5.1 with LuaJIT as the default interpreter on Windows (ref #197). 2013-08-28 22:23:13 -07:00
Paul Kulchenko
e9a42f724a Updated build script for Lua JIT (Win) to enable LUA52COMPAT option (ref #197). 2013-08-28 22:12:44 -07:00
Paul Kulchenko
63861614c7 Added Lua 5.2 (Win) library and luasocket (ref #197). 2013-08-27 19:26:41 -07:00
Paul Kulchenko
4bd5b5d329 Reorganized Lua interpreter to allow for different Lua versions (ref #197). 2013-08-27 19:24:55 -07:00
Paul Kulchenko
91455261c9 Updated luasocket to 3.0rc1 to use with Lua 5.1 and 5.2 (ref #197). 2013-08-27 17:55:08 -07:00
Paul Kulchenko
3a7df5f5af Added luasocket, lua5.2, and luaJIT build support (ref #197). 2013-08-27 17:49:26 -07:00
Paul Kulchenko
0419e6812b Added package GetOutput method (ref #166). 2013-08-27 14:15:36 -07:00
Paul Kulchenko
cd1b9d7cd2 Added package onAppLoad/onAppClose events (ref #166). 2013-08-27 14:14:36 -07:00
Paul Kulchenko
d63dda5e6a Cleaned up code. 2013-08-27 14:12:29 -07:00
Paul Kulchenko
32f4b8694b Updated NewFile to accept a file name. 2013-08-27 11:19:50 -07:00
Paul Kulchenko
2dbb6644cb Fixed loading of files with incorrect UTF-8 encoding and control characters (fixes #198). 2013-08-27 10:11:32 -07:00
Paul Kulchenko
649e3c620a Added package onIdleOnce event (ref #166). 2013-08-26 20:22:16 -07:00
Paul Kulchenko
0e7bb32024 Fixed package sample to take into account new documents. 2013-08-25 19:19:30 -07:00
Paul Kulchenko
96f0f876bf Renamed package onEditorPostSave event to onEditorSave for consistency (ref #166). 2013-08-24 17:02:06 -07:00
Paul Kulchenko
58a494931c Added manifest to the Windows executable and re-signed. 2013-08-23 16:04:08 -07:00
Paul Kulchenko
f04160fad1 Updated 'get hostname' logic to avoid using non-resolvable names (mostly on OSX). 2013-08-22 20:38:02 -07:00
Paul Kulchenko
671c62871a Added Notepad++ color scheme (thanks to Florian/SiENcE; closes #193). 2013-08-21 08:54:03 -07:00
Paul Kulchenko
6a6e7ec770 Fixed crash on OSX after opening 'application' in 'Open File' dialog. 2013-08-20 14:55:09 -07:00
Paul Kulchenko
eff4eb8b05 Disabled markup styling for specs without comment styles. 2013-08-20 12:09:02 -07:00
Paul Kulchenko
2781c0ea00 Removed comment from default spec as it forces undesired markup styling. 2013-08-20 12:08:27 -07:00
Paul Kulchenko
fa507450e4 Added clearing document styles after saving file with a different extension. 2013-08-20 12:04:11 -07:00
Paul Kulchenko
a4f069afc0 Fixed windows resource file to properly reference the manifest. 2013-08-17 22:24:50 -07:00
Paul Kulchenko
f3b84edc24 Fixed missing default api for files with unknown extensions. 2013-08-16 21:59:17 -07:00
Paul Kulchenko
ba1c1a678e Added workaround to avoid crash on OSX after Close All Pages (closes #190).
The issue is with wxwidgets (filed as ticket 15417); the only workaround I
have been able to find is to disable this functionality on OSX (as there
are other alternatives to closing tabs in groups). The issue only happens
when the last tab is closed from the drop down menu linked to editor tabs.
2013-08-15 15:54:43 -07:00
Paul Kulchenko
267deea3df Merge branch 'master' of git://git.code.sf.net/p/estrelaeditor/code into estrela-new 2013-08-15 15:36:18 -07:00
Paul Kulchenko
1089f2619e Added return type for string.* functions to assist in auto-complete (ref #189). 2013-08-14 12:43:55 -07:00
Paul Kulchenko
e8c5e7fd78 Added handling of string literals in type assignments (closes #189). 2013-08-14 12:37:49 -07:00
Christoph Kubisch
ff6deedf79 OpenGL 4.4 and ARB extensions added as well as NV_gpu_shader5 functions 2013-08-14 14:19:50 +02:00
Paul Kulchenko
52c7150e51 Switched to using POSIX compatible regexp with '()' used for captures. 2013-08-13 14:50:21 -07:00
Paul Kulchenko
24555a3b3d Fix spurious replacement after 'search, clear selection, replace' actions. 2013-08-13 14:47:01 -07:00
Paul Kulchenko
cc432b65b0 Added support for captures in regexp replacement (\1-\9). 2013-08-13 14:39:06 -07:00
Paul Kulchenko
8d1cca26a3 Fixed using auto-complete with multiple selections (fixes #188). 2013-08-11 15:04:42 -07:00
Paul Kulchenko
c077c94371 Fixed looping in auto-complete with array references (ref #143). 2013-08-11 15:00:32 -07:00
Paul Kulchenko
1ba300213d Added ability to cancel FindInFiles search by closing search dialog (ref #162). 2013-08-10 21:38:50 -07:00
Paul Kulchenko
3fbf0ef81b Added activating Output window before showing search results (ref #162). 2013-08-10 21:38:11 -07:00
Paul Kulchenko
aced5d1bc3 Changed un/comment to act from the beginning of the line for multi-line selection.
Fixed handling of EOL markers (un/commenting doesn't modify them anymore).
Added processing of rectangular selections.
2013-08-09 14:52:25 -07:00
Paul Kulchenko
bf072c1685 Added support for packages from different platforms to co-exist (ref #166). 2013-08-07 23:23:14 -07:00
Paul Kulchenko
4215054b87 Improved logic to jump to file/line indicated in error messages. 2013-08-06 09:20:15 -07:00
Paul Kulchenko
cd85d6f2e8 Added ability to save complex data in package settings (ref #166). 2013-08-05 19:12:05 -07:00
Paul Kulchenko
6fc448b87c Fixed incorrect change for line count calculation for dynamic words.
Fixed commit d6cda0d677.
2013-08-04 22:20:59 -07:00
Paul Kulchenko
d6cda0d677 Optimized line count calculation for dynamic words when text is deleted. 2013-08-04 22:12:13 -07:00
Paul Kulchenko
5355234b85 Fixed showing auto-complete after comma. 2013-08-04 21:37:26 -07:00
Paul Kulchenko
700dfe1765 Optimized dynamic word processing for large files. 2013-08-04 20:29:41 -07:00
Paul Kulchenko
1c068c221f Merge branch 'master' of git://git.code.sf.net/p/estrelaeditor/code into estrela-changes 2013-08-04 17:51:53 -07:00
Paul Kulchenko
5679d90bcd Added support for multiple inheritance in auto-complete (ref #101). 2013-08-03 15:38:24 -07:00
Paul Kulchenko
9b5f6fa67f Added ability to add/remove API descriptions from plugins (ref #166). 2013-08-02 11:05:00 -07:00
Christoph Kubisch
a8060b63cd updated glewgl api for OpenGL4.4 and removed non-core duplicate functions/enums 2013-08-02 10:23:52 +02:00
Paul Kulchenko
7324afb8e3 Reorganized API processing to allow loading API description from a plugin. 2013-08-01 11:03:23 -07:00
Paul Kulchenko
e209f3f440 Added package GetSettings/SetSettings methods (ref #166). 2013-07-28 22:24:44 -07:00
Paul Kulchenko
08ef16a42d Added methods to save/restore package settings (ref #166). 2013-07-27 22:23:41 -07:00
Paul Kulchenko
4fafcff592 Fixed 'cannot get official hostname' message on low privilege accounts (fixes #183). 2013-07-26 08:15:53 -07:00
Paul Kulchenko
6e0e3d07e3 Updated Estrela reference in README. 2013-07-25 14:49:03 -07:00
Paul Kulchenko
fb9c0ba0a6 Disabled showing tooltip when auto-complete suggestions are shown. 2013-07-25 14:48:27 -07:00
Paul Kulchenko
1b4f707232 Updated build script on Windows to enable debugging (ref #164). 2013-07-24 09:50:49 -07:00
Paul Kulchenko
1749c54f71 Updated build script with a (temporary) fix for wxlua issue (mingw32). 2013-07-24 09:48:51 -07:00
Paul Kulchenko
e4201b745c Fixed displaying variable instances when code has invalid blocks (fixes #182). 2013-07-23 14:50:29 -07:00
Paul Kulchenko
9c810b3520 Fixed tooltip to ignore string parameters (ref #101). 2013-07-23 10:07:29 -07:00
Paul Kulchenko
93d3b69335 Removed auto-complete suggestion when it is already typed (ref #101). 2013-07-22 18:45:44 -07:00
Paul Kulchenko
35617caa0e Updated tooltip to use the same type inference as auto-complete (ref #101). 2013-07-22 18:21:52 -07:00
Paul Kulchenko
e07ed0a817 Fixed tooltip display between empty brackets (ref #101). 2013-07-22 17:49:39 -07:00
Paul Kulchenko
aeb35ebf6f Added ability to add/remove specs from plugins (ref #166). 2013-07-22 16:11:18 -07:00
Paul Kulchenko
c84bd3222b Enabled support for xml/html folding. 2013-07-21 22:22:30 -07:00
Paul Kulchenko
e398a216a8 Added ability to add/remove interpreters from plugins (ref #166). 2013-07-20 23:21:44 -07:00
Paul Kulchenko
4137b9d88d Added wxlua patch for twoface compatibility. 2013-07-20 15:17:09 -07:00
Paul Kulchenko
a630dd95c7 Added setfenv for Lua 5.2 compatibility. 2013-07-19 12:51:53 -07:00
Paul Kulchenko
0b748d6389 Updated static analyzer to report only first instance of 'unknown field'. 2013-07-18 16:28:12 -07:00
Paul Kulchenko
790f9d5b45 Added links to project page and documentation (closes #180). 2013-07-18 15:26:00 -07:00
Paul Kulchenko
43513c9153 Updated filename/source code heuristic in the debugger (Mobdebug 0.5362).
If the "chunkname" has no newline, it's treated as a file name.
This helps with handling cases when the application engine reports
filenames without @ (for example, when they are loaded using
loadstring("chunk", "file") instead of loadstring("chunk", "@file"));
also helps with debugging cocos2dx apps that load Lua files.
2013-07-18 15:20:59 -07:00
Paul Kulchenko
f58f185850 Enabled path remapping for local debugging.
This helps in local debugging when project files are copied to a temporary
location, but need to be debugged from the project folder (for example,
with debugging of cocos2d-x apps in iOS simulator).
2013-07-18 14:10:54 -07:00
Paul Kulchenko
ebbeb107a7 Disabled error reporting after debugging has been terminated. 2013-07-17 16:54:12 -07:00
Paul Kulchenko
e0674f9c9a Limited activation of code fragments to the beginning of debugging session.
This can still be configured using `editor.autoactivate` option.
2013-07-16 16:52:31 -07:00
Paul Kulchenko
89cafbec45 Enabled slower and more thorough static analysis (ref #149; ref #168). 2013-07-15 22:02:30 -07:00
Paul Kulchenko
e0f543c262 Updated CHANGELOG with recent changes. 2013-07-14 20:27:24 -07:00
Paul Kulchenko
b73526586c Fixed indentation after lines with brackets in strings. 2013-07-13 09:14:12 -07:00
Paul Kulchenko
cc177264f6 Fixed indentation after lines with anonymous functions. 2013-07-12 22:49:55 -07:00
Paul Kulchenko
2f98bc30a6 Added German translation (thanks to Riidom; ref #70). 2013-07-11 16:38:32 -07:00
Paul Kulchenko
b9374894c9 Set search in subdirectories as default in Find in Files dialog (ref #162). 2013-07-10 16:32:26 -07:00
Paul Kulchenko
17a995a810 Fixed indicator showing at the end of not terminated long comment. 2013-07-09 22:54:23 -07:00
Paul Kulchenko
35d1bc0f03 Fixed an issue with LUA_DEV including files instead of directories. 2013-07-07 23:35:15 -07:00
Paul Kulchenko
6f044d8b2e Added default value to package config (ref #176). 2013-07-06 15:27:31 -07:00
Paul Kulchenko
735f8492e2 Fixed project switching to close all files when switching to a subdirectory.
Some of the files could have been left open if the name starts with
the name of a subdirectory the project is being switched to.
2013-07-05 16:52:22 -07:00
Paul Kulchenko
4eb57fcbda Fixed saving projects that do not have any open files. 2013-07-04 16:48:12 -07:00
Paul Kulchenko
c882b8d0e0 Added handling of ?51.dll and required DLLs for LuaForWindows interpreter. 2013-07-03 17:40:01 -07:00
Paul Kulchenko
ce8552f044 Added plugin::GetConfig method (ref #166). 2013-07-03 14:25:06 -07:00
ardente
6968364c58 windows: adopt native user home 2013-07-03 16:39:57 +04:00
Paul Kulchenko
9ab72209c2 Added erasing current line in Console (ref #173). 2013-07-01 18:46:31 -07:00
Paul Kulchenko
c872934157 Added search/completion in the local and remote console (closes #173). 2013-06-30 20:41:42 -07:00
Paul Kulchenko
ea2d7c289a Replaced package onEditorActivated event with onEditorFocus* events (ref #166). 2013-06-30 13:09:44 -07:00
Paul Kulchenko
19ab4df922 Updated SaveAll to allow saving (only) files with filenames (ref #172).
This is useful when `SaveAll` is called from a plugin and user interaction
(asking for a file name) is not desired.
2013-06-30 10:06:19 -07:00
Paul Kulchenko
7dda2c00fd Added package onAppFocus* events (ref #166; ref #172). 2013-06-30 09:27:16 -07:00
Paul Kulchenko
3d3ae5ca00 Fixed debugger to accept filenames without '@'; thanks to Tim Mensch (closes #174). 2013-06-28 21:55:27 -07:00
Paul Kulchenko
28c3b79b8b Added Chinese translation (thanks to Chow CheeWen; ref #70). 2013-06-28 21:37:05 -07:00
Paul Kulchenko
a91bba8bd0 Added editor.autoreload to enable reload of updated files (ref #172).
Thanks for Tim Mensch for suggestion and implementation.
2013-06-26 23:27:31 -07:00
Paul Kulchenko
ed874063ea Added creating (missing) folders when saving a file (fixes #171). 2013-06-25 17:10:57 -07:00
Paul Kulchenko
6259918648 Added an example of styling individual keywords. 2013-06-24 21:03:07 -07:00
Paul Kulchenko
0995c5a061 Added fold indication of a current block (ref #168). 2013-06-24 21:01:49 -07:00
Paul Kulchenko
f07e42c4b4 Fixed sorting when the sorted fragment ends with a newline. 2013-06-24 17:15:02 -07:00
Paul Kulchenko
7e62939df6 Moved 'Sort' menu to 'Edit'. 2013-06-24 17:12:26 -07:00
Paul Kulchenko
b57bf55ef0 Added reporting of process id for a conflicting process. 2013-06-23 21:58:40 -07:00
Paul Kulchenko
8ed91f76cc Disabled 'Fold' menu instead of removing when no folding is allowed (ref #169). 2013-06-22 22:14:20 -07:00
Mika Attila
9e6ec10be9 Make code folding optional
Some users might consider code folding a needless distraction.
Several editors offer the option to turn code folding off.

This commit adds the editor.fold option, which is a boolean.
true enables code folding (default)
false disables code folding
2013-06-22 12:02:31 +02:00
Paul Kulchenko
115924d567 Fixed missing markdown styling after text removal. 2013-06-21 15:39:53 -07:00
Paul Kulchenko
cc9f9bb49d Updated documentation for 0.38. 2013-06-21 13:58:16 -07:00
Paul Kulchenko
418aef7065 Fixed clearing masked indicators on updated lines. 2013-06-21 09:06:50 -07:00
Paul Kulchenko
0f2e74a098 Added sorting of file lists on Linux (used in the filetree and file search). 2013-06-20 20:15:16 -07:00
Paul Kulchenko
2bc125e616 Disabled following symlinks during directory scanning to avoid infinite loops. 2013-06-20 20:13:50 -07:00
Paul Kulchenko
6b349bbef0 Set default directory for Find in Files opened from a new file (#ref 162). 2013-06-20 20:06:12 -07:00
Paul Kulchenko
7fbcb0b6c7 Fixed looping in auto-complete when indexes are used (fixes #143). 2013-06-20 14:54:13 -07:00
Paul Kulchenko
adb49b8007 Added removing comments for more robust type assignment analysis. 2013-06-20 14:23:23 -07:00
Paul Kulchenko
fb381eaadb Updated LuaForWindows interpreter to set basedir to match current directory. 2013-06-20 14:21:45 -07:00
Paul Kulchenko
8ad9e83b92 Added support for changing the Corona simulator skin (closes #151). 2013-06-19 21:52:40 -07:00
Paul Kulchenko
b8d331b8a9 Updated configuration example for variable indicators. 2013-06-19 21:50:51 -07:00
Paul Kulchenko
76f6fdade6 Updated Gideros auto-complete API to add global objects. 2013-06-19 10:30:51 -07:00
Paul Kulchenko
2fd08a751a Fixed possible duplicate paths in the filetree. 2013-06-18 23:10:43 -07:00
Paul Kulchenko
d5d6247286 Added LuaForWindows interpreter (thanks to Tom Burgel). 2013-06-18 17:52:26 -07:00
Paul Kulchenko
1af5b5e10c Added resetting breakpoints when needed for source code debugging. 2013-06-18 16:52:52 -07:00
Paul Kulchenko
4eda473d9f Added package onEditorCharAdded/onEditorKeyDown events (ref #166). 2013-06-18 12:51:51 -07:00
Paul Kulchenko
58c416e148 Updated capitalization for editor menu items. 2013-06-18 09:27:17 -07:00
Paul Kulchenko
5787dae35c Updated CHANGELOG with recent changes. 2013-06-17 21:29:52 -07:00
Paul Kulchenko
ec1a87f219 Fixed an error when closing editor tab that is still being styled. 2013-06-17 15:57:28 -07:00
Paul Kulchenko
e9728b2a4a Updated Gideros API to separate 'functions' from 'methods'. 2013-06-16 19:29:24 -07:00
Paul Kulchenko
a9c7e247fe Removed duplicates from auto-complete suggestions. 2013-06-16 16:24:18 -07:00
Fringale
0b0d95b2bf Updated French translation with latest string changes (mostly for find/replace dialogs). 2013-06-16 18:55:03 +02:00
Paul Kulchenko
32c3723bcc Updated Marmalade Quick auto-complete API to use class inheritance. 2013-06-14 18:40:34 -07:00
Paul Kulchenko
9d11df3ebe Updated Gideros auto-complete API to use class inheritance. 2013-06-14 18:34:01 -07:00
Paul Kulchenko
14b6568eb5 Added inheritance support for auto-complete API. 2013-06-14 18:33:06 -07:00
Paul Kulchenko
4d8e5647a6 Fixed missing numerical keys in serialized tables (upgraded Mobdebug to 0.535). 2013-06-14 10:15:36 -07:00
Paul Kulchenko
6a3aafc6fa Add package onEditor* events (closes #166). 2013-06-13 22:31:57 -07:00
Paul Kulchenko
8ee608c761 Added package onInterpreterLoad/onInterpreterClose events (ref #166). 2013-06-13 22:31:56 -07:00
Paul Kulchenko
120bc5b48b Added package onProjectLoad/onProjectClose events (ref #166). 2013-06-13 22:31:47 -07:00
Paul Kulchenko
f23ca203ca Added package onMenu* events (ref #166). 2013-06-13 22:31:28 -07:00
Paul Kulchenko
a390825676 Added package onRegister/onUnRegister events (ref #166). 2013-06-13 22:31:16 -07:00
Paul Kulchenko
baa76790e5 Fixed (regression) issue with setting breakpoints before debugging is started. 2013-06-12 10:41:07 -07:00
Paul Kulchenko
344835bf28 Added 'Show Location' to the Project/Filetree menu. 2013-06-12 09:53:12 -07:00
Paul Kulchenko
b9ecfd9284 Added hidpi option to enable HiDPI/Retina display support (closes #160). 2013-06-11 15:37:09 -07:00
Paul Kulchenko
9175bdd3ed Ugraded Mobdebug to 0.534 for debugging of source code fragments. 2013-06-10 00:28:09 -07:00
Paul Kulchenko
e07ac2109a Added breakpoint support for unnamed code fragments. 2013-06-09 00:19:15 -07:00
Paul Kulchenko
77588aa757 Added support for debugging (stepping through) unnamed code fragments. 2013-06-08 00:16:12 -07:00
Paul Kulchenko
065a6f933c Added LuaSec to win32 build script. 2013-06-07 23:10:39 -07:00
Paul Kulchenko
dee316094f Added package/plugin processing. 2013-06-08 13:31:32 -07:00
Paul Kulchenko
30bb8c29a6 Updated Gideros API/auto-complete reference. 2013-06-07 10:44:43 -07:00
Paul Kulchenko
4e66f20078 Allowed tab width and indentation to be set independently. 2013-06-06 23:00:44 -07:00
Paul Kulchenko
a4c503027a Fixed styling of markup that can be affected by folded lines. 2013-06-06 10:07:48 -07:00
Paul Kulchenko
3a5ef4b5e4 Updated markup to allow opening files from new buffers ('untitled'). 2013-06-06 10:07:46 -07:00
Paul Kulchenko
666024a77a Refactored Project tree handling. 2013-06-06 10:07:45 -07:00
Paul Kulchenko
501ba761a9 Added support for 'silent' execution of shell commands in markup. 2013-06-06 10:07:43 -07:00
Paul Kulchenko
66cc79a3fe Added Find Next/Previous over selected variable instances (ref #163). 2013-06-05 10:02:28 -07:00
Paul Kulchenko
a5d5fd729a Fixed value selection with multiple active selections. 2013-06-04 14:34:36 -07:00
Paul Kulchenko
6ad74e09a9 Improved error reporting in interpreters on failures to copy the debugger. 2013-06-04 14:03:38 -07:00
Paul Kulchenko
87dd7edf61 Fixed style compatibility with wxwidgets 2.8 (ref #128). 2013-06-04 13:28:28 -07:00
Paul Kulchenko
06356f6940 Added debugger.allowediting option to allow editing while debugging. 2013-06-03 22:01:37 -07:00
Paul Kulchenko
a4d423c685 Fixed error reporting by (internal) file operations. 2013-06-03 20:50:56 -07:00
Paul Kulchenko
32e828088b Fixed styling comments that start with markup symbols. 2013-06-03 20:38:35 -07:00
Paul Kulchenko
dcfc212bf4 Added skiping binary files during file search (ref #162). 2013-06-03 20:34:53 -07:00
Paul Kulchenko
790d1a6516 Added yield to update search results during file search (ref #162). 2013-06-03 20:34:42 -07:00
Paul Kulchenko
bc660522d5 Added showing default extensions in the file search (ref #162). 2013-06-03 20:34:05 -07:00
Paul Kulchenko
3cc29e1301 Added support for multiple file extensions in the file search (ref #162). 2013-06-03 20:33:16 -07:00
Paul Kulchenko
7b87bc3d88 Added saving folder to search files in (ref #162). 2013-05-31 17:37:26 -07:00
Paul Kulchenko
837a242bbd Fixed restoring a session with one of the files deleted on disk (fixes #161). 2013-05-30 20:06:38 -07:00
Paul Kulchenko
c2ddc72829 Added support for styles.fncall for backward compatibility. 2013-05-30 10:42:00 -07:00
Paul Kulchenko
045b9ad932 Added instance counter to 'Select all Instances'. 2013-05-29 21:26:11 -07:00
Paul Kulchenko
f0b007ff75 Updated activation of 'Select all Instances' to Ctrl/Cmd-DblClick (closes #159). 2013-05-29 20:09:33 -07:00
Paul Kulchenko
c2022a2d33 Added transparency to additional selections (ref #159). 2013-05-29 18:10:09 -07:00
Paul Kulchenko
0c1ef8870e Fixed main selection in 'Select all Instances' to avoid cursor jumps (ref #159). 2013-05-29 18:09:00 -07:00
Paul Kulchenko
22716e9d20 Disabled showing tooltip when the app is in the background (fixes #158). 2013-05-29 13:47:15 -07:00
Paul Kulchenko
34f4564ec0 Fixed reporting variable instances for comment/string fragments. 2013-05-28 13:34:59 -07:00
Paul Kulchenko
e26db06ede Added configuration for analizer indicator styles. 2013-05-28 13:29:37 -07:00
Paul Kulchenko
7384afa325 Moved Lua specific logic for variable indicators to the spec file. 2013-05-27 21:39:28 -07:00
Paul Kulchenko
209756349c Suppressed tooltips with empty descriptions. 2013-05-27 20:41:39 -07:00
Paul Kulchenko
294d19806b Fixed instance selection for local a = a type localization. 2013-05-27 17:44:58 -07:00
Paul Kulchenko
2dc5f85dbb Fixed masking of implicit self parameter. 2013-05-27 14:10:30 -07:00
Paul Kulchenko
f2aeebb8f6 Added a style for masking variables. 2013-05-27 11:58:05 -07:00
Paul Kulchenko
63cc789959 Fixed masking of variables that could reference incorrect location. 2013-05-27 11:32:28 -07:00
Paul Kulchenko
bf19bf7e39 Fixed parser reporting (internal) error on invalid code. 2013-05-26 16:27:32 -07:00
Paul Kulchenko
776888838b Fixed an error when quick search fails with multiple fragments. 2013-05-26 16:13:22 -07:00
Paul Kulchenko
29738092e7 Added selecting all instances with a double-click on a variable. 2013-05-26 16:11:53 -07:00
Paul Kulchenko
c8b669bb80 Added styles and config options for analizer indicators. 2013-05-25 22:41:53 -07:00
Paul Kulchenko
398f3dee55 Added autoanalizer option for dynamic static analysis. 2013-05-25 22:15:40 -07:00
Paul Kulchenko
54db8d28f0 Fixed masking by a statement at the end of file. 2013-05-25 22:15:39 -07:00
Paul Kulchenko
6531ff3c66 Fixed 'Rename Instances' to always reset previous selection. 2013-05-25 22:15:37 -07:00
Paul Kulchenko
cd27b14152 Fixed popup menu logic for one character variables. 2013-05-25 22:15:36 -07:00
Paul Kulchenko
3da05c2a7e Fixed showing all instances of a variable. 2013-05-25 22:15:35 -07:00
Paul Kulchenko
df58fadd15 Fixed masking of function parameters and loop variables. 2013-05-25 22:15:33 -07:00
Paul Kulchenko
48b596af01 Added 'Go To Definition' and 'Rename All Instances'. 2013-05-25 22:15:32 -07:00
Paul Kulchenko
dc36a0f6da Added masking for parameters in variable indication. 2013-05-25 22:15:31 -07:00
Paul Kulchenko
a9488870b3 Added initial support for indicating local/global variables. 2013-05-25 22:15:30 -07:00
Paul Kulchenko
924f1ad89a Disabled 'value' tooltip over variables that match known function names (ref #101). 2013-05-25 22:14:16 -07:00
Paul Kulchenko
bcf0b2ee7b Added showing tooltip in any position over a term and showing 'values' (ref #101). 2013-05-24 16:17:28 -07:00
Paul Kulchenko
74572a9765 Added disabling tooltip when context menu is shown. 2013-05-24 16:17:20 -07:00
Paul Kulchenko
b445ab7810 Fixed auto-complete error for '%dddd' strings (fixes #156). 2013-05-22 14:25:34 -07:00
Paul Kulchenko
52e9b1764b Added 'fixing' path returned by wxDirDialog; may be incorrect in 2.9.x. 2013-05-21 14:21:24 -07:00
Paul Kulchenko
bcabcc7ea6 Added constant initialization missing on ArchLinux with wxlua 2.8.12.2 (fixes #155; ref #128). 2013-05-20 18:29:25 -07:00
Paul Kulchenko
e0dcf5448a Removed sorting in the Stack view to keep the order of table elements. 2013-05-20 09:29:43 -07:00
Paul Kulchenko
f6877667bf Updated Stack view navigation to use clicked on instead of active item. 2013-05-20 08:17:05 -07:00
Paul Kulchenko
de491e1876 Fixed an issue with showing filenames that include '"?*:<>' on OSX/Linux. 2013-05-19 14:15:40 -07:00
Paul Kulchenko
103fdb553c Fixed current line marker being shown using 'Run as Scratchpad' with
'runonstart' option.
2013-05-18 22:15:45 -07:00
Paul Kulchenko
575107c2ae Updated build scripts to use luasocket 2.0.3. 2013-05-18 10:56:11 -07:00
Paul Kulchenko
7dc69a8959 Added support for table valuetypes in auto-complete for foo[index]: (ref #101). 2013-05-17 11:50:41 -07:00
Paul Kulchenko
3fce412df1 Added navigation to the line of code in the Stack Window (thanks to George Pimm; closes #134). 2013-05-15 11:40:57 -07:00
Paul Kulchenko
d6e1a2f8dd Fixed looping in auto-complete (fixes #151). 2013-05-14 11:30:03 -07:00
Paul Kulchenko
b21864a974 Added Show Location to the editor tab menu. 2013-05-13 13:59:18 -07:00
Paul Kulchenko
6108865ed2 Improved focus on the debugger when a breakpoint hits on OSX (fixes #141). 2013-05-13 13:56:24 -07:00
Paul Kulchenko
cb2cb9ff3c Fixed incorrect localization that led to an error in 'Save' from tab menu. 2013-05-13 13:52:52 -07:00
Paul Kulchenko
099f9f92fa Updated linux build files to use latest zlib/libpng to fix png load on Gentoo. 2013-05-12 21:20:08 -07:00
Paul Kulchenko
5449ed237a Updated 'Find in Files' to start in the project folder by default. 2013-05-11 14:22:23 -07:00
Paul Kulchenko
fae664ac0d Allowed closing editor tabs while debugger is running. 2013-05-10 14:13:50 -07:00
Paul Kulchenko
71b4f47159 Added support for absolute filenames in Markdown links. 2013-05-09 16:22:49 -07:00
Paul Kulchenko
347b53659c Updated CHANGELOG for 0.37. 2013-05-09 13:54:45 -07:00
Paul Kulchenko
16f32e0df5 Updated interpreters and tests after API changes. 2013-05-09 12:41:04 -07:00
Paul Kulchenko
171287fac6 Added Russian translation for Find/Replace dialog (ref #70). 2013-05-08 21:46:10 -07:00
Paul Kulchenko
9d05cd6931 Added Russian translation for the Preferences menu (ref #70). 2013-05-07 21:57:48 -07:00
Paul Kulchenko
a9e847372a Added Preferences menu to simplify access to system/user settings. 2013-05-06 10:05:13 -07:00
Paul Kulchenko
1eba53cc0e Fixed loading a non-existing file. 2013-05-05 22:02:07 -07:00
Paul Kulchenko
c5a0077a01 Fixed filtering out directories when spec is specified. 2013-05-05 22:01:04 -07:00
Paul Kulchenko
2b07dd1db4 Separated settings for function dropdown and project tree fonts (fixes #148). 2013-05-04 16:03:18 -07:00
Paul Kulchenko
28b3380a45 Fixed hiding all panels when switching to Full Screen mode. 2013-05-04 10:40:39 -07:00
Paul Kulchenko
564338656d Updated CHANGELOG with recent changes. 2013-05-04 10:39:57 -07:00
Paul Kulchenko
29b2e4f5ec Fixed activation of non-existing files/folders in the Project tree. 2013-05-04 10:06:35 -07:00
Paul Kulchenko
c7ab3aeb32 Refactored and optimized directory scanning when loading IDE files. 2013-05-02 16:24:25 -07:00
Paul Kulchenko
4b771dafe4 Added 'wlua' to the list of recognized Lua extensions. 2013-05-02 13:13:27 -07:00
Paul Kulchenko
71393bd35a Fixed search results for lines without newline. 2013-05-01 15:10:17 -07:00
Paul Kulchenko
f7e2697e56 Fixed Find/Replace in folders with Unicode names (fixes #147); improved performance. 2013-05-01 15:03:59 -07:00
Paul Kulchenko
608644bd83 Added 'shaking' Find/Replace window when text is not found (closes #146). 2013-05-01 11:20:49 -07:00
Paul Kulchenko
7563e52aba Fixed Un/Comment commands executed for empty lines. 2013-05-01 09:10:08 -07:00
Paul Kulchenko
039dde0ccb Fixed fold/unfold for files starting with block/comment. 2013-04-30 22:26:47 -07:00
Paul Kulchenko
abbde79ab0 Fixed history after activating non-existing file in Recent Files. 2013-04-30 18:09:09 -07:00
Paul Kulchenko
ead958e603 Added disabling Recent Files menu if the list is empty. 2013-04-29 22:00:33 -07:00
Paul Kulchenko
6b7f310cd7 Added TomorrowContrast color scheme (thanks to Sergey Lerg). 2013-04-28 17:49:41 -07:00
Paul Kulchenko
451186ac4e Fixed scrolling to restored cursor position on OSX (when usewrap = false). 2013-04-27 14:58:42 -07:00
Paul Kulchenko
b8b3b7f0af Fixed Find/Replace dialog to take Enter on OSX (fixes #140). 2013-04-26 11:01:45 -07:00
Paul Kulchenko
5ee71feac4 Updated CHANGELOG with recent changes. 2013-04-26 10:58:51 -07:00
Paul Kulchenko
a2e65e2bbd Updated Marmalade interpreter with Quick 1.1 path changes. 2013-04-26 10:48:35 -07:00
Paul Kulchenko
e8ad508021 Updated Watch/Stack panels min size to make them dockable with other panels. 2013-04-26 09:05:20 -07:00
Paul Kulchenko
aa2a4fac2b Added detaching a child process to avoid crash when exiting during debugging. 2013-04-24 22:53:56 -07:00
Paul Kulchenko
d5fda558c1 Fixed loading an empty recent file history. 2013-04-24 21:55:23 -07:00
Paul Kulchenko
171b98717a Fixed 'breaking' after executing OUT command that never reaches the target level. 2013-04-24 21:40:01 -07:00
Paul Kulchenko
da07ef0e2c Added a check to fix assertions in debug build. 2013-04-24 21:36:22 -07:00
Paul Kulchenko
6c9e226d67 Added Recent File history navigation (closes #66). 2013-04-24 14:02:17 -07:00
Paul Kulchenko
d3884358be Fixed stopping at a breakpoint at the initial line when startwith option is specified. 2013-04-24 12:30:58 -07:00
Paul Kulchenko
0ebeee3641 Fixed activation of a file loaded into active tab. 2013-04-23 19:58:10 -07:00
Paul Kulchenko
bd190d5a4e Added Marmalade auto-complete support and API documentation. 2013-04-23 15:49:19 -07:00
Paul Kulchenko
b1f09b9ef0 Fixed an occasional crash on OSX introduced by a duplicate line fix. 2013-04-23 10:34:52 -07:00
Paul Kulchenko
ac556aea34 Updated documentation about default EOL on OSX (ref #102). 2013-04-22 21:37:02 -07:00
Paul Kulchenko
87ab3702fe Fixed incorrect tab activation on OSX after using 'Open File'. 2013-04-22 18:24:08 -07:00
Paul Kulchenko
83556f9ab2 Improved file activation when debugging is started (closes #137). 2013-04-21 22:35:03 -07:00
Paul Kulchenko
43c18552c1 Added processing of runonstart when using remote debugging (closes #138). 2013-04-21 19:04:26 -07:00
Paul Kulchenko
dc54c76435 Updated highlighting in Watch windows to not use editor styles.
This is to avoid color conflicts with dark color schemes.
2013-04-21 18:47:14 -07:00
Paul Kulchenko
9a16cd026f Fixed editor activation when file is loaded into an existing tab. 2013-04-21 18:43:51 -07:00
Paul Kulchenko
e4710a16b0 Refactored Recent Files history to make it faster and simpler. 2013-04-21 17:33:47 -07:00
Paul Kulchenko
ae2e99f6d3 Fixed an error after opening non-existing file from 'Recent Files'. 2013-04-20 15:38:32 -07:00
Paul Kulchenko
c182a19fa5 Added suggesting proper extension after 'Save/Save As' based on current spec. 2013-04-19 15:09:22 -07:00
Paul Kulchenko
2ddeaf4eb8 Updated Russian 'watch' translation for consistency. 2013-04-19 09:24:59 -07:00
Paul Kulchenko
b4fd071efb Fixed blocking on reading app output without processing other events. 2013-04-18 17:24:30 -07:00
Paul Kulchenko
9344280d5b Fixed an issue with duplicate lines shown in the editor.
This can happen when the line is too long for one line and can wrap; if it
also includes hidden markup (Markdown in comments), this markup can change
the length of the line, but it's not adjusted by Scintilla after the
markup is applied. Force adjustment when this situation is detected.
2013-04-18 12:42:43 -07:00
Paul Kulchenko
ad037536cd Updated documentation for user settings (ref #113, #55). 2013-04-17 21:08:32 -07:00
Paul Kulchenko
d8e8af00b6 Added translation setup for Find/Replace dialog (closes #133). 2013-04-17 18:07:45 -07:00
Paul Kulchenko
1e651a97b7 Fixed 'Replace All' to take 'Wrap Around' into account (fixes #132). 2013-04-17 16:45:19 -07:00
Paul Kulchenko
c2e49e169f Added tests. 2013-04-17 12:26:47 -07:00
Paul Kulchenko
6662cb0f5e Fixed off-by-one error in searching consecutive matches. 2013-04-17 12:18:19 -07:00
Paul Kulchenko
c00d85890a Fixed 'Quick Find' not working without current selection (fixes #131). 2013-04-17 12:01:51 -07:00
Paul Kulchenko
c42c9ffb3d Reduced the minimum size of the Output/Console panel. 2013-04-16 17:31:16 -07:00
Paul Kulchenko
b5661976eb Fixed looping in auto-complete on mistyped class (fixes #130). 2013-04-16 10:22:02 -07:00
Paul Kulchenko
c1e66f8fc2 Fixed compatibility with wx2.8 (thanks to Samuel Dionne-Riel; closes #128). 2013-04-15 18:14:12 -07:00
Paul Kulchenko
c2715040fe Added nomousezoom option to disable zoom with mouse wheel in the editor. 2013-04-15 18:12:15 -07:00
Paul Kulchenko
fc17dac2a5 Added selecting text and Cmd-F shortcut in Find dialog on OSX (ref #127). 2013-04-15 18:10:16 -07:00
Paul Kulchenko
0dfd8e3ba1 Fixed replacement logic in Find/Replace that could replace selected fragment (ref #127). 2013-04-15 18:06:59 -07:00
Paul Kulchenko
acbfd6d81d Fixed an error caused by allowing multiple Search/Replace windows (fixes #127). 2013-04-15 10:23:17 -07:00
Paul Kulchenko
0d268a01e1 Updated Monokai color scheme to fix current line color. 2013-04-13 09:46:08 -07:00
Paul Kulchenko
1e9cbb4633 Updated CHANGELOG with recent changes. 2013-04-12 12:25:34 -07:00
Paul Kulchenko
7d3683df98 Updated About screen to be more configurable and flexible. 2013-04-12 12:22:17 -07:00
Paul Kulchenko
3b10bbbcd2 Fixed launch command for Corona debugging on Windows. 2013-04-11 09:23:52 -07:00
Paul Kulchenko
3ea40683c9 Added handling of Ctrl-Home and Ctrl-End on OSX (ref #89). 2013-04-10 21:55:03 -07:00
Paul Kulchenko
e6b789131a Added line copy/cut for Ctrl-C/Ctrl-X with no selection. 2013-04-10 21:53:16 -07:00
Paul Kulchenko
613dec0571 Fixed 'control' check on OSX that changed with wx2.9.2+ (ref #89). 2013-04-10 18:23:10 -07:00
Paul Kulchenko
36b3692e9e Fixed wrong tab activated on OSX after using New file in some cases.
This is caused by two PAGE_CHANGED event for the notebook triggered
when the current tab is not the last one (in wx2.9.5+). This could lead to
a crash if the incorrect tab is closed (ref #89).
2013-04-10 18:18:35 -07:00
Paul Kulchenko
59cde2fc8c Fixed cursor not being visible in some cases after file is loaded (ref #116). 2013-04-10 15:32:31 -07:00
Paul Kulchenko
e8027b3b95 Updated Russian translation (thanks to toiffel). 2013-04-09 22:12:22 -07:00
Paul Kulchenko
579ab4c831 Updated CHANGELOG for 0.36. 2013-04-08 11:39:17 -07:00
Paul Kulchenko
f54322c1f7 Fixed the current editor not being fully activated when closing a tab. 2013-04-08 11:37:46 -07:00
Paul Kulchenko
a5b85c533a Fixed activating files in the project tree on a case insensitive system. 2013-04-08 09:33:16 -07:00
Paul Kulchenko
149340669a Fixed the Stack view being partially hidden when the root item is too wide (ref #110). 2013-04-08 09:16:11 -07:00
Paul Kulchenko
5165bf5b29 Fixed left side of the project panel being hidden when a file is activated (fixes #122). 2013-04-08 09:14:04 -07:00
Paul Kulchenko
fbc04ba199 Updated Linux launch script and MANIFEST. 2013-04-07 23:53:54 -07:00
Paul Kulchenko
e33f2d40dd Removed build files no longer needed. 2013-04-07 23:52:34 -07:00
Paul Kulchenko
bad62f0a16 Updated CHANGELOG with recent changes. 2013-04-06 21:30:20 -07:00
Paul Kulchenko
b393b58cc1 Fixed breakpoint not firing on the first executable line in debugging (helps #121). 2013-04-06 13:57:49 -07:00
Paul Kulchenko
4480825408 Fixed activating of the first line in the script during debugging. 2013-04-06 13:53:24 -07:00
Paul Kulchenko
10fb31f1e5 Disabled showing 'value' in auto-complete after 'a:' (helps #101). 2013-04-06 13:44:14 -07:00
Paul Kulchenko
789a2d8a88 Upgraded Mobdebug (v0.525) for performance improvements (also closes #121).
Other changes in the same version:
  Added handling of case-insensitive filenames on OSX.
  Improved debugging performance.
  Fixed terminating debugging of an empty script.
  Fixed resetting cached source as it may change when basedir changes.
  Replaced socket.select with non-blocking .receive as it is faster.
2013-04-05 08:46:41 -07:00
Paul Kulchenko
b9ebd44c30 Simplified lua interpreter launch/debug command. 2013-04-04 21:48:05 -07:00
Paul Kulchenko
a65edf8fd5 Fixed reporting of initial line during debugging. 2013-04-03 23:23:53 -07:00
crazybutcher
89f33160bc GLSL compilation checker frontend https://github.com/CrazyButcher/glslc 2013-04-03 16:09:20 +02:00
crazybutcher
e96a7657cd disable cpp preprocessor based "greying" out, due to lack of proper styles 2013-04-03 12:02:52 +02:00
Paul Kulchenko
492270a3bf Added universal binaries for luasocket on OSX (closes #120).
This allows debugging of 64bit applications (for example, LuaJIT) on OSX.
2013-04-02 22:29:54 -07:00
Paul Kulchenko
1cd34e3853 Fixed incorrect type guessing from assignments in auto-complete. 2013-04-02 18:31:40 -07:00
Paul Kulchenko
3ad7b389da Updated references to configuration files in documentation. 2013-04-02 10:17:24 -07:00
Leo Bartoloni
bc58913272 Update it.lua
Added new italian translations
2013-04-02 10:03:04 +03:00
Paul Kulchenko
415ba2bd17 Fixed editor tab activation after closing another tab on Linux (ref #89). 2013-04-01 20:15:10 -07:00
Paul Kulchenko
a338f4c436 Fixed 'Show tooltip' shortcut not working on Linux (fixes #118; ref #89). 2013-04-01 20:14:21 -07:00
Paul Kulchenko
24507e22bb Fixed cursor position being incorrectly restored (fixes #116; ref #89). 2013-04-01 16:07:34 -07:00
Paul Kulchenko
8e208b7dd3 Fixed lag on Windows when using brackets and backspace (fixes #117; ref #89). 2013-04-01 09:23:12 -07:00
Paul Kulchenko
d5c585b118 Updated 'method' type in auto-complete to only allow a:b syntax (closes #101). 2013-04-01 09:16:52 -07:00
Paul Kulchenko
56b63b3b4c Merge branch 'master' of git://estrelaeditor.git.sourceforge.net/gitroot/estrelaeditor/estrelaeditor into auto-complete 2013-03-31 19:20:33 -07:00
Paul Kulchenko
8c64d77276 Added update of Stack and Watch windows after 'Debugging suspended' message. 2013-03-31 18:17:40 -07:00
Paul Kulchenko
406056bf52 Updated language files (es, it, ru) with new messages (ref #70). 2013-03-30 20:17:20 -07:00
Fringale
f960d65e08 Updated French translation with latest string changes, fixed a few typos. 2013-03-31 00:01:19 +01:00
Paul Kulchenko
a3fc62a7c0 Added toggling for View menu items. 2013-03-30 13:13:03 -07:00
Paul Kulchenko
5a4e996b37 Updated Stack and Watch window to not refresh when not visible. 2013-03-30 13:12:57 -07:00
Paul Kulchenko
200647f0c5 Fixed a warning about empty project directory in local console. 2013-03-29 16:25:25 -07:00
Paul Kulchenko
99d6395845 Fixed an issue with default layout on the very first start. 2013-03-29 16:18:28 -07:00
Paul Kulchenko
fc0d5083e6 Updated CHANGELOG and README with current features. 2013-03-29 14:44:01 -07:00
Paul Kulchenko
478a87c8d0 Merge branch 'wxwidgets' (closes #89; closes #111).
Conflicts:
	src/editor/filetree.lua
2013-03-29 11:20:27 -07:00
Paul Kulchenko
d3a8b37cf3 Disabled closing Stack and Watch tabs. 2013-03-29 09:09:24 -07:00
Paul Kulchenko
0f99cb20b0 Forced floating of Stack and Watch windows by default (ref #89). 2013-03-28 22:40:41 -07:00
Paul Kulchenko
df54864e43 Made application name an optional parameter; reorganized on-exit workarounds. 2013-03-28 21:37:48 -07:00
Paul Kulchenko
9beae1f9c4 Updated error messages from loading configuration files. 2013-03-28 21:37:48 -07:00
Paul Kulchenko
0761ee2f4a Reduced flicker in the project tree when a file is opened (ref #89). 2013-03-28 21:37:47 -07:00
Paul Kulchenko
314dc5ba9e Added migration of configuration file on Windows (helps #89). 2013-03-28 21:37:46 -07:00
Paul Kulchenko
02a086e083 Revert "Updated editor handlers to improve performance on OSX with wx2.9.5".
The revert is needed as wx2.9.5 doesn't properly refresh status bar with
this change (on OSX, which the original improvement targeted).
2013-03-28 21:37:45 -07:00
Paul Kulchenko
3a616f5e37 Added hiding floating windows and removed excessive manager updates to reduce flicker. 2013-03-28 21:37:44 -07:00
Paul Kulchenko
3f12ce28d8 Optimized project switching and added notebook freezing where possible (ref #89). 2013-03-28 21:37:44 -07:00
Paul Kulchenko
a913c1fa55 Changed auto-recovery mark to be only applied after text changes. 2013-03-28 21:37:43 -07:00
Paul Kulchenko
363803ea9b Fixed an issue with Enter used to select an item in project dropdown (ref #89).
On Windows multiple COMBOBOX_SELECTED events are sent when Enter is used,
which may lead to run-time errors. Disabled processing of multiple copies
of the same event.
2013-03-28 21:37:35 -07:00
Paul Kulchenko
1bbb9f432c Rearranged saving settings to properly save on OSX (helps #89). 2013-03-27 13:02:15 -07:00
Paul Kulchenko
4854afeb32 Fixed default perspective to include Stack and Watch windows (ref #103). 2013-03-27 12:56:45 -07:00
Paul Kulchenko
507832ac2b Updated project tree workaround on OSX as it's not needed with wx 2.9.5+ (ref #89). 2013-03-27 12:54:54 -07:00
Paul Kulchenko
146b36d9ce Fixed an issue with the Project tree when project and app directories are the same. 2013-03-27 12:53:45 -07:00
Paul Kulchenko
77276d48ae Added auto-show/hide Stack and Watch windows during debugging (closes #110). 2013-03-26 15:25:02 -07:00
Paul Kulchenko
c3f253ef64 Added ignoring -psn... parameter on OSX when reading file names from command line. 2013-03-26 09:18:26 -07:00
Paul Kulchenko
93e51a6d43 Made stack and watch windows dockable (closes #103). 2013-03-24 15:04:27 -07:00
Paul Kulchenko
a26d72f99d Added exit call to avoid crash on Linux when closing the IDE.
The crash appears to happen in Unlink when debugging is in progress or
after an external process is executed. In some cases it also happens in
wxluaO_deletegcobject after simply closing the app on 64bit Linux.

1 0x0000... in wxEvtHandler::Unlink()
2 0x0000... in wxEvtHandler::~wxEvtHandler()
3 0x0000... in wxProcess::~wxProcess()
4 0x0000... in wxluaO_deletegcobject(lua_State*, int, int)
5 0x0000... in wxlua_wxLuaBindClass__gc(lua_State*)
2013-03-22 15:08:04 -07:00
Paul Kulchenko
cd8b714ea6 Upgraded Mobdebug (0.5222) to add serialization with metamethods and notification on incomplete output (closes #109). 2013-03-22 15:05:27 -07:00
Paul Kulchenko
909e9b3ee9 Updated Linux binaries to use libpng 1.6 with wxwidgets (helps #89).
The builtin library is now using separate symbols to avoid conflicts with
system libpng.
2013-03-22 14:45:22 -07:00
Paul Kulchenko
d10bcda693 Added scripts to install build prerequisites on Linux (helps #89). 2013-03-21 22:52:19 -07:00
Paul Kulchenko
7ddb673624 Updated Windows/OSX build files to only build components needed (helps #89). 2013-03-21 19:15:07 -07:00
Paul Kulchenko
bbd11b90eb Added check for different spellings of the same folder in the project tree. 2013-03-21 17:51:03 -07:00
Paul Kulchenko
4fee737981 Improved performance of tab switching and project tree population. 2013-03-21 17:49:35 -07:00
Paul Kulchenko
14143bf0ce Fixed function list in toolbar on Linux (helps #89). 2013-03-21 17:46:50 -07:00
Paul Kulchenko
0e8a9b078c Updated linux binaries to fix libpng support (helps #89).
Binaries have been updated to use whatever system libpng library is
available (without being linked against a particular version).

This also includes fix for 64bit systems to allow for these binaries to
work with "older" versions of libpng (for example, v1.2).

The binaries include wxwidgets fix for lsb_release messages, so the
workaround for this issue has been removed.
2013-03-20 12:22:28 -07:00
Paul Kulchenko
c2ca459882 Updated Linux binaries to work with different libpng versions (helps #89).
The compiled binary always has version of libpng as 1.2.0 (even though
wxwidgets may come with a different version) and is compiled with libpng
set to use system library. The warnings from libpng about different
versions are suppressed when bitmaps are loaded. This has been tested to
work with libpng 1.2.x and 1.5.x.

This update also adds a workaround for "lsb_release: command not found"
message reported on some Linux systems.
2013-03-18 12:48:16 -07:00
Paul Kulchenko
f80a11a982 Replaced deprecated arch with uname -m in Linux components (ref #89). 2013-03-14 09:50:11 -07:00
Paul Kulchenko
29650cef8c Updated executable status on linux files (ref #89). 2013-03-13 22:23:33 -07:00
Paul Kulchenko
4cf8017d7b Fixed debugger output not being suppressed on Linux and using wlua. 2013-03-13 17:16:38 -07:00
Paul Kulchenko
f807b1f48c Set 'Courier New' as the default font on Linux (ref #89). 2013-03-13 17:02:32 -07:00
Paul Kulchenko
dc7e040087 Added linux binaries with support for x86 and x64 (helps #89). 2013-03-13 16:59:38 -07:00
Paul Kulchenko
4262716043 Removed unused code. 2013-03-13 16:51:30 -07:00
Paul Kulchenko
5f25238ba6 Updated function list dropdown to fit toolbar on Linux (helps #89). 2013-03-13 16:47:08 -07:00
Paul Kulchenko
cf95129fc6 Fixed About screen to fit on Linux (helps #89). 2013-03-13 16:46:38 -07:00
Paul Kulchenko
f8b6654cd6 Fixed a warning when setting empty working directory. 2013-03-13 16:45:00 -07:00
Paul Kulchenko
cf001082e2 Removed reference to a dll no longer used. 2013-03-13 13:58:31 -07:00
Paul Kulchenko
c8e2890f60 Enabled full debugging for Corona on OSX. 2013-03-12 16:01:13 -07:00
Paul Kulchenko
9075736cf1 Set 'Courier New' as the default font on Windows.
It turned out that some Windows systems (like XP), don't use 'Courier New'
as the default, and rather use some proportional font, even when
wxFONTFAMILY_MODERN is used, which should pick a fixed pitch font.
2013-03-12 12:17:14 -07:00
Paul Kulchenko
e1cba702f7 Updated windows executable to show properly scaled icons in the Explorer. 2013-03-12 12:04:40 -07:00
Paul Kulchenko
9ffc4cf9dd Fixed wxwidgets issue with wrong cursor shape over editor (ref #89). 2013-03-11 10:35:17 -07:00
Paul Kulchenko
94647152fc Fixed a static analyzer issue with anonymous functions defined in expressions (fixes #3). 2013-03-10 15:59:45 -07:00
Paul Kulchenko
e4a69a63c0 Added a workaround for a crash on OSX when the app is closed while
debugging is in progress (ref #89).

The crash appears to be in wxEvtHandler::Unlink, but I couldn't find the
cause for it:
0   libwx.dylib	0x014d2bd9 wxEvtHandler::Unlink() + 51
1   libwx.dylib	0x014d4023 wxEvtHandler::~wxEvtHandler() + 37
2   libwx.dylib	0x0146d7fa wxProcess::~wxProcess() + 84
3   libwx.dylib	0x01074af9 wxLua_wxProcess_delete_function(void**) + 23
4   libwx.dylib	0x0113300d wxluaO_deletegcobject(lua_State*, int, int) + 425
5   libwx.dylib	0x0111f6f2 wxlua_wxLuaBindClass__gc(lua_State*) + 101
2013-03-09 18:49:35 -08:00
Paul Kulchenko
05e2b483a8 Added window list button to the notepad with editor tabs. 2013-03-09 18:48:40 -08:00
Paul Kulchenko
f2e8c0c213 Updated status bar to use no border around fields. 2013-03-09 18:46:44 -08:00
Paul Kulchenko
43c6be0859 Added centering of current line during debugging. 2013-03-07 20:01:37 -08:00
Paul Kulchenko
fb5ef928fd Improved handling of upvalues with __tostring method in the Stack window. 2013-03-07 19:59:18 -08:00
Paul Kulchenko
3f9be575fd Updated check for wxwidgets version on OSX (helps #89). 2013-03-07 17:11:06 -08:00
Paul Kulchenko
9985cfc50a Fixed OSX crash when tooltips/auto-complete is used (helps #89). 2013-03-07 17:10:19 -08:00
Paul Kulchenko
be018b39fc Updated build scripts to include wxlua patch to fix live coding (helps #89). 2013-03-07 17:09:40 -08:00
Paul Kulchenko
da15c46429 Fixed OSX issues with 2.9.5: numpad keys, switching tabs, and cursor shape when using scratchpad (helps #89). 2013-03-06 22:17:26 -08:00
Paul Kulchenko
0eb71f44d4 Updated indicator description for wx2.9.5; removed license that doesn't apply (helps #89). 2013-03-03 20:03:29 -08:00
Paul Kulchenko
aa6618f002 Updated translation script to work with wxwidgets 2.9.5+ (helps #89). 2013-03-03 19:46:12 -08:00
Paul Kulchenko
e55e28e852 Fixed multi-line paste into console with wxwidgets 2.9.5 (helps #89). 2013-03-03 19:01:05 -08:00
Paul Kulchenko
0e1c937892 Increased default font size for OSX; set 'Monaco' as default font (helps #89). 2013-03-01 20:46:34 -08:00
Paul Kulchenko
65a112a4e9 Removed checks for Windows in font setup; now uses default font. 2013-03-01 20:46:33 -08:00
Paul Kulchenko
0448ebb0e0 Updated function call indicator to use round box with wxwidgets upgrade (helps #89). 2013-03-01 20:46:32 -08:00
Paul Kulchenko
fec7d21ca4 Updated binaries with a patched version of wxlua (helps #89).
The patch is needed to fix live coding issue with wxlua applications. Also
uses a more recent version of wxwidgets, that fixes menu hint on OSX.
2013-03-01 20:46:26 -08:00
Paul Kulchenko
2d29aa3666 Updated large icons for "native" toolbar on OSX (helps #89). 2013-03-01 20:46:06 -08:00
Paul Kulchenko
23a4f5fa04 Reorganized code to allow references to wxver from default style generation. 2013-02-28 00:01:13 -08:00
Paul Kulchenko
80bcc21562 Fixed rearranging editor tabs with drag and drop (helps #89). 2013-02-28 00:00:04 -08:00
Paul Kulchenko
5dcf0a6622 Updated keywords to be re-applied after SaveAs only when needed. 2013-02-25 21:51:50 -08:00
Paul Kulchenko
99c1be49a6 Updated handling of markdown styles to make it more robust (fixes #59). 2013-02-25 21:45:33 -08:00
Paul Kulchenko
2a46b4ece7 Updated file loading logic for a small performance improvement. 2013-02-24 22:17:43 -08:00
Paul Kulchenko
1d77bbdf5a Added multiple selection and multi-cursor editing (wx2.9.5+). 2013-02-24 22:16:05 -08:00
Paul Kulchenko
943517f07e Updated editor handlers to improve performance on OSX with wx2.9.5 (helps #89). 2013-02-24 21:43:21 -08:00
Paul Kulchenko
93b664de45 Fixed an issue with full screen mode on OSX with wx 2.9.5 (helps #89). 2013-02-24 21:43:21 -08:00
Paul Kulchenko
695fed709e Switched to 'native' menu on OSX and added 24x24 icons required (helps #89).
Removed Cut/Copy/Paste/Undo/Redo icons from the toolbar as these are
rarely used and were taking too much space.
2013-02-24 21:43:05 -08:00
Paul Kulchenko
51735ac89d Updated MANIFEST for OSX dylib changes (helps #89). 2013-02-24 21:28:53 -08:00
Paul Kulchenko
5a49699098 Added a check to only activate the Output window if it's not activated.
This reduces flicker by redrawing the project tree only when needed.
2013-02-24 17:53:03 -08:00
Paul Kulchenko
b2b6e82735 Added a check for project tree refresh to only execute on OSX. 2013-02-24 17:53:02 -08:00
Paul Kulchenko
fd3ed2b7da Added a property to store wxwidgets version. 2013-02-24 17:46:59 -08:00
Paul Kulchenko
4da018b8ce Removed files for handling preferences that are no longer used. 2013-02-24 17:46:31 -08:00
Paul Kulchenko
99ad315832 Added dll proxy to make LfW libraries to work with the IDE. 2013-02-23 14:49:40 -08:00
Paul Kulchenko
4bd20406a2 Removed binary libraries not currently used. 2013-02-23 14:33:28 -08:00
Paul Kulchenko
48b51c549a Updated launcher manifest and resource file; resigned windows executable (helps #89). 2013-02-23 14:31:24 -08:00
toiffel
af0a95ddb8 Added wxWidgets 2.9.5 binaries and build scripts 2013-02-22 14:10:02 +07:00
Paul Kulchenko
5db9b6b9b5 Updated applying fold properties to get folds working with wxwidgets 2.9.5+ (helps #89). 2013-02-18 14:08:37 -08:00
toiffel
e1bee48834 Fixed a segfault when closing the application on OS X and Linux 2013-02-18 14:02:02 -08:00
Paul Kulchenko
704f6fed89 Fixed formatting in the About screen for wxwidgets 2.9.x (helps #89). 2013-02-13 13:53:58 -08:00
Paul Kulchenko
c05962c6a6 Updated README with Marmalade Quick support and Corona tutorial. 2013-02-13 13:50:41 -08:00
crazybutcher
17948e06d8 introduce method handling for autocomplete and api resolving 2013-02-10 20:45:38 +01:00
crazybutcher
51777d47c9 Merge remote-tracking branch 'zbstudio/master' 2013-02-10 12:48:25 +01:00
crazybutcher
1714cf6109 improved type guessing: always keep full assignment string, do multiple runs on resolve, strip closed scopes 2013-02-10 12:48:05 +01:00
226 changed files with 20595 additions and 6367 deletions

View File

@@ -1,5 +1,550 @@
# ZeroBrane Studio Changelog
## v0.40 (Dec 14 2013)
### Highlights
- Added LuaDist integration.
- Added live coding support for GSL-shell.
- Added support for project settings.
- Added filetree operations.
- Added Busted interpreter.
### Special thanks
- To Jayanth Acharya for SciTeLuaIDE color scheme.
- To Mike Richards for adding edge handling and styles.
- To [adamdmoss](https://github.com/adamdmoss) for Mobdebug API update.
### Improvements
- Added live coding support for GSL-shell (closes #239).
- Added support for product-specific links in the Help menu.
- Added 'edge' style to the color schemes (ref #237).
- Added ability to set 'edge' style properties individually (ref #237).
- Add edge to styles
- Add fold margin checker color to styles
- Add edge line and fold margin checker color
- Added changing directory when launching on Linux (closes #157).
- Added setting PATH for LfW to allow loading of DLL dependencies.
- Added logic to set architecture dynamically for luadist (ref #225).
- Added luadist bootstrap dependencies for Linux (ref #225).
- Added option to load luadist as a module (ref #225).
- Added luadist bootstrap dependencies for OSX (ref #225).
- Added proxy dll for Lua 5.2 (ref #225).
- Added luadist bootstrap dependencies for Windows (ref #225).
- Added package GetInterpreters method (ref #166, #225).
- Added package AddConsoleAlias/RemoveConsoleAlias methods (ref #166, #225).
- Added version property to the Lua interpreters.
- Added new location for Marmalade Quick v7+ and s3e path logic (fixes #226).
- Added directory creation (if needed) to file saving.
- Added support for symlinks in the filetree (with recursion protection).
- Added package AddConfig/RemoveConfig methods (ref #166).
- Added package GetProject method (ref #166).
- Added package onProjectPreLoad method (ref #166).
- Added workaround for conflict with Scintilla shortcuts on Linux.
- Added 'Open with Default Program' to file tree operations (ref #123).
- Added toggling directory on Enter (ref #123).
- Added 'Copy Full Path' to file tree operations (ref #123).
- Added deleting file/directory to file tree operations (ref #123).
- Added processing of packages from `$HOME/.zbstudio/packages` folder (#166).
- Added 'New File' and 'New Directory' to file operations (ref #123).
- Added error reporting for failed rename operations (ref #123).
- Added re-opening editor tabs affected by directory move/rename (ref #123).
- Added package FindDocumentsByPartialPath method (ref #166).
- Added existing file overwrite confirmation when renaming (ref #123).
- Added existing file overwrite confirmation when saving.
- Added creating intermediate directories during file rename (ref #123).
- Added in-place editing of file and folder names (ref #123).
- Added refreshing editor tab after drag-n-drop operation (ref #123).
- Added drag-n-drop operation to move files in the project tree (ref #123).
- Added package AddMarker/RemoveMarker methods (ref #166).
- Added package GetStatusBar method (ref #166).
- Added package GetDocuments and document methods (ref #166).
- Added `EscapeMagic` function to escape magic characters.
- Added SciTeLuaIDE color scheme (thanks to Jayanth Acharya).
- Changed glslc option to reflect new version
- Disabled compilation check for scratchpad when `skipcompile` is set (ref #239).
- Disabled output activation for messages redirected to Console (ref #225).
- Disabled commenting for file types that don't specify line comments.
- Moved restoring project before loading files (ref #107).
- Reorganized loading configuration files (ref #107).
- Removed 'file no longer exists' message after moving opened files (ref #123).
- Removed some of the snippets as they are available as plugins.
- Store os specific clibs path to make it available to plugins.
- Tidy up estrela tools a bit (remove key strokes from cgc, remove luxinia res viewer, rename perforce files to get loaded again)
- Updated README.
- Updated samples with missing indicator constants (closes #243).
- Updated OSX executables and added 'fake' proxy for lua-dist support (ref #225).
- Updated handling of case-insensitive names during debugging on OSX (Mobdebug v0.545).
- Updated package onEditorPreSave to be called on SaveAs events (ref #166).
- Updated icon bundle to eliminate large icons.
- Updated application icon to a bit brighter one on OSX (closes #196).
- Updated build script on OSX to not require 10.6 SDK (closes #231).
- Updated menu definitions for consistency.
- Updated use of `unpack` for consistency and Lua 5.2 compatibility.
- Updated 'Open with Default Program' on Windows to work with spaces in names (#123).
- Updated cmake installation script to install to '/Applications' on OSX.
- Updated OSX build script to revert wxwidgets commit to fix auto-complete crash.
- Updated `Start debugging` hint to clarify.
- Updated single-click toggle to allow rename/move directories (ref #123).
- Updated normalization flags as some path parts were changed to dots.
- Updated editor tab processing using FindDocument method.
- Updated shortcut for Replace All to avoid conflict on OSX (fixes #220).
- Updated `SetDocumentModified` to use current tab text.
### Fixes
- Fixed values 'captured' by redirected 'print' and not collected (fixes #240).
- Fixed typo in fold style definition (ref #237).
- Fixed console output being limited in addition to stack result limit.
- Fixed hang in auto-complete on expressions involving '...' (fixes #235).
- Fixed auto-complete for string values (broken by 933aacc2).
- Fixed crash when LUA_DEV environmental variable is not set (fixes #228).
- Fixed cmake cache filename (ref #225).
- Fixed incorrect UTF-8 sequence in UTF-8 validity check.
- Fixed Un/Comment menu for Output/Console windows.
- Fixed format of the file name reported after compilation errors.
- Fixed jumping to compilation error (if any) after Run/Debug.
- Fixed disabling 'Open with Default Program' on OSX (ref #123).
- Fixed file tree update after changes on OSX (ref #123).
- Fixed copying full path on OSX (ref #123).
- Fixed 'Open with Default Program' for paths with spaces on Windows (ref #123).
- Fixed folding issue (caused by `math.mod` not available in LuaJIT).
- Fixed debugger marker calculations to avoid marker conflicts.
- Fixed color references in marker config examples.
- Fixed Step Over/Out to stay in the same coroutine; Mobdebug 0.543 (closes #217).
- Fixed case sensitivity in matching of file name in error messages (fixes #216).
- Fixed tab text after SaveAs and loading files into the same tab.
## v0.39 (Oct 06 2013)
### Highlights
- Added Lua 5.2 support out of the box.
- Added suggesting dynamic words as fields in auto-complete.
- Added 'go to definition' (Ctrl/Cmd+Alt+Click) and 'jump to previous location' (Alt+Left).
- Added abbreviation of project directories to keep unique parts visible.
- Fixed breakpoints with Marmalade Quick.
- Switched to using LuaJIT interpreter by default.
- Upgraded Luasocket (3.0-rc1), copas, and coxpcall libraries.
### Special thanks
- To Chow CheeWen for Chinese translation.
- To [Enrique García](https://github.com/kikito) for fixing `fixutf8` function.
- To [Riidom](https://github.com/Riidom) for German translation.
- To [ardente](https://github.com/ardente) for user home patch for Windows and separating Lua 5.1 and 5.2 paths in user config.
- To [Mika Attila](https://github.com/crumblingstatue) for code folding patch.
- To [Tim Mensch](https://github.com/TimMensch) for auto-save, auto-reload, and debugger improvements.
- To [Florian](https://github.com/SiENcE) for Notepad++ color scheme.
- To [Michal Kottman](https://github.com/mkottman) for 'go to definition' and Alt+Left navigation patch.
- To [Christoph Kubisch](https://github.com/CrazyButcher) for dx11 and glslc updates.
- To [jpoag](https://github.com/jpoag) for improved activation during debugging on Windows.
### Improvements
- Added setting project directory when passed as a parameter.
- Added activation of windows with SDL_app class name (Moai support).
- Added support for joining/splitting Watch/Stack with Output/Console tabs.
- Added package GetSetting method (ref #166).
- Added selected index to package onMenuEditorTab event (ref #166).
- Added activation of windows with FREEGLUT class name (Moai support).
- Added hiding console window for Corona (2013.8.28+) applications (Windows).
- Added suggesting dynamic words as fields in auto-complete.
- Added socket.connect for compatibility with socket.core <3.0 (fixes #208).
- Added recalculating line number margin width after zooming (fixes #207).
- Added margin constants and removed unused variables.
- Added reporting of socket error for initial debugger calls (Mobdebug 0.5403).
- Added error handling/reporting for `debugger.outputfilter`.
- Added 'debug' option to OSX build script.
- Added ability to modify exe path in base interpreter (ref #197).
- Added package GetEditorNotebook method (ref #166).
- Added 'molokai' color scheme (ref #200).
- added hlsl spec and basic api (note: currently autocomplete doesn't work on object functions, need fix). also fixed cg syntax lexer settings
- Added file activation for abbreviated file names in error messages.
- Added abbreviation of project directories to keep unique parts visible.
- Added `debugger.redirect` configuration option.
- Added `editor.saveallonrun` configuration option.
- Added package GetOutput method (ref #166).
- Added package onAppLoad/onAppClose events (ref #166).
- Added package onIdleOnce event (ref #166).
- Added manifest to the Windows executable and re-signed.
- Added Notepad++ color scheme (thanks to Florian/SiENcE; closes #193).
- Added clearing document styles after saving file with a different extension.
- Added workaround to avoid crash on OSX after `Close All Pages` (closes #190).
- Added return type for string.* functions to assist in auto-complete (ref #189).
- Added handling of string literals in type assignments (closes #189).
- Added support for captures in regexp replacement (\1-\9).
- Added ability to cancel FindInFiles search by closing search dialog (ref #162).
- Added activating Output window before showing search results (ref #162).
- Added support for packages from different platforms to co-exist (ref #166).
- Added ability to save complex data in package settings (ref #166).
- Added support for multiple inheritance in auto-complete (ref #101).
- Added ability to add/remove API descriptions from plugins (ref #166).
- Added package GetSettings/SetSettings methods (ref #166).
- Added methods to save/restore package settings (ref #166).
- Added ability to add/remove specs from plugins (ref #166).
- Added ability to add/remove interpreters from plugins (ref #166).
- Added wxlua patch for twoface compatibility.
- Added `setfenv` for Lua 5.2 compatibility.
- Added links to project page and documentation (closes #180).
- Added German translation (thanks to Riidom; ref #70).
- Added default value to package config (ref #176).
- Added handling of ?51.dll and required DLLs for LuaForWindows interpreter.
- Added plugin::GetConfig method (ref #166).
- Added erasing current line in Console (ref #173).
- Added search/completion in the local and remote console (closes #173).
- Added package onAppFocus* events (ref #166; ref #172).
- Added Chinese translation (thanks to Chow CheeWen; ref #70).
- Added `editor.autoreload` to enable reload of updated files (ref #172).
- Added creating (missing) folders when saving a file (fixes #171).
- Added an example of styling individual keywords.
- Added fold indication of a current block (ref #168).
- Added reporting of process id for a conflicting process.
- allow to define separate lua 5.1 and 5.2 paths in user config
- Changed 'go to definition' to Ctrl/Cmd+Alt+Click (ref #203).
- Changed `un/comment` to act from the beginning of the line for multi-line selection.
- Disabled refreshing Watch/Stack windows when they get focus.
- Disabled markup styling for specs without comment styles.
- Disabled showing tooltip when auto-complete suggestions are shown.
- Disabled error reporting after debugging has been terminated.
- Disabled 'Fold' menu instead of removing when no folding is allowed (ref #169).
- dx11 and glslc updates
- Enabled editing watches with doubleclick or Enter.
- Enable Ctrl+Click and Alt+Left navigation on local variables
- Enabled support for xml/html folding.
- Enabled path remapping for local debugging.
- Enabled slower and more thorough static analysis (ref #149; ref #168).
- Improved file/debugger activation on Windows (ref #199).
- Improved IDE activation during debugging on Windows (closes #199); thanks to jpoag.
- Improved logic to jump to file/line indicated in error messages.
- Limited activation of code fragments to the beginning of debugging session.
- Make code folding optional (thanks to [Mika Attila](https://github.com/crumblingstatue))
- Moved 'Sort' menu to 'Edit'.
- OpenGL 4.4 and ARB extensions added as well as NV_gpu_shader5 functions
- Optimized handling of large tables in stack results.
- Optimized line count calculation for dynamic words when text is deleted.
- Optimized dynamic word processing for large files.
- Reduced CPU usage while idle (ref #204, #206).
- Renamed package onEditorPostSave event to onEditorSave for consistency (ref #166).
- Removed comment from default spec as it forces undesired markup styling.
- Removed auto-complete suggestion when it is already typed (ref #101).
- Reorganized auto-complete handling; should fix #164.
- Reorganized path separator handling to minimize use of global variables.
- Reorganized API processing to allow loading API description from a plugin.
- Replaced package onEditorActivated event with onEditorFocus* events (ref #166).
- Set search in subdirectories as default in Find in Files dialog (ref #162).
- Switched to using POSIX compatible regexp with '()' used for captures.
- Updated LICENSE information.
- Updated Windows build file for wxwidgets 3.0.
- Updated support for MOAI coroutine debugging (Mobdebug 0.541).
- Updated type assignment logic to remove spurious types.
- Updated Windows build script to enable gdb debugging.
- Updated OSX build script to not strip debug builds.
- Updated Corona interpreter to handle failure to copy debugger to Resources/ folder.
- Updated build scripts with proper INSTALL_PREFIX option.
- Updated CFBundleIdentifier in plist files to allow references from OSX programs.
- Updated un/comment to toggle selection as a group rather than line by line.
- Updated `NewFile` to accept a file name.
- Updated 'get hostname' logic to avoid using non-resolvable names (mostly on OSX).
- Updated tooltip to use the same type inference as auto-complete (ref #101).
- Updated Estrela reference in README.
- Updated build script on Windows to enable debugging (ref #164).
- Updated build script with a (temporary) fix for wxlua issue (mingw32).
- updated glewgl api for OpenGL4.4 and removed non-core duplicate functions/enums
- Updated static analyzer to report only first instance of 'unknown field'.
- Updated filename/source code heuristic in the debugger (Mobdebug 0.5362).
- Updated `SaveAll` to allow saving (only) files with filenames (ref #172).
- Upgraded copas and coxpcall libraries (closes #144).
- windows: adopt native user home (thanks to [ardente](https://github.com/ardente))
### Fixes
- Fixed Lua 5.2 crash on OSX (added -O1).
- Fixed onInterpreterLoad to only be called when interpreter changes.
- fix the fixutf8 function (thanks to Enrique García).
- Fixed handling of source code fragments in the Stack view.
- Fixed Watch/Stack windows to refresh when shown.
- Fixed incorrect editor tab acted upon in split notebook situations.
- Fixed auto-complete suggestions for indentifiers matching partial function names.
- Fixed hiding launched windows when running/debugging (Windows).
- Fixed showing known functions in auto-complete.
- Fixed showing output with invalid UTF8 characters in Stack and Console windows.
- Fixed debugging on/off handling in 'main' thread for LuaJIT (MobDebug 0.5402).
- Fixed having duplicate tabs after SaveAs with existing file name.
- Fixed showing redirected 'print' messages after debugging is terminated.
- Fixed using default interpreter when no interpreter is selected.
- Fixed stepping through blocks with undefined variables when 'strict' is in effect (upgraded Mobdebug to 0.5401).
- Fixed loading of files with incorrect UTF-8 encoding and control characters (fixes #198).
- Fixed package sample to take into account new documents.
- Fixed crash on OSX after opening 'application' in 'Open File' dialog.
- Fixed windows resource file to properly reference the manifest.
- Fixed missing default api for files with unknown extensions.
- Fix spurious replacement after 'search, clear selection, replace' actions.
- Fixed using auto-complete with multiple selections (fixes #188).
- Fixed looping in auto-complete with array references (ref #143).
- Fixed showing auto-complete after comma.
- Fixed 'cannot get official hostname' message on low privilege accounts (fixes #183).
- Fixed displaying variable instances when code has invalid blocks (fixes #182).
- Fixed tooltip to ignore string parameters (ref #101).
- Fixed tooltip display between empty brackets (ref #101).
- Fixed indentation after lines with brackets in strings.
- Fixed indentation after lines with anonymous functions.
- Fixed indicator showing at the end of not terminated long comment.
- Fixed an issue with LUA_DEV including files instead of directories.
- Fixed project switching to close all files when switching to a subdirectory.
- Fixed saving projects that do not have any open files.
- Fixed debugger to accept filenames without '@'; thanks to Tim Mensch (closes #174).
- Fixed sorting when the sorted fragment ends with a newline.
## v0.38 (Jun 21 2013)
### Highlights
- Added source code debugging (to support LuaJava and other engines).
- Added scope-aware global/local/masked/masking variable highlighting.
- Added 'Go To Definition' and 'Rename All Instances'.
- Added package/plugin API.
- Added Retina display support (can be enabled with `hidpi` option).
- Improved auto-complete API with inheritance and table index support.
### Special thanks
- To George Pimm for line of code navigation in the Stack Window.
- To Fringale for updated French translation.
- To Tom Burgel for LuaForWindows interpreter.
### Improvements
- Added sorting of file lists on Linux (used in the filetree and file search).
- Added LuaForWindows interpreter (thanks to Tom Burgel).
- Added package onEditorCharAdded/onEditorKeyDown events (ref #166).
- Added support for changing the Corona simulator skin (closes #151).
- Added inheritance support for auto-complete API.
- Added package onEditor* events (closes #166).
- Added package onInterpreterLoad/onInterpreterClose events (ref #166).
- Added package onProjectLoad/onProjectClose events (ref #166).
- Added package onMenu* events (ref #166).
- Added package onRegister/onUnRegister events (ref #166).
- Added 'Show Location' to the Project/Filetree menu.
- Added `hidpi` option to enable HiDPI/Retina display support (closes #160).
- Added breakpoint support for unnamed code fragments.
- Added support for debugging (stepping through) unnamed code fragments.
- Added LuaSec to win32 build script.
- Added package/plugin processing.
- Added support for 'silent' execution of shell commands in markup.
- Added `Find Next/Previous` over selected variable instances (ref #163).
- Added `debugger.allowediting` option to allow editing while debugging.
- Added skiping binary files during file search (ref #162).
- Added yield to update search results during file search (ref #162).
- Added showing default extensions in the file search (ref #162).
- Added support for multiple file extensions in the file search (ref #162).
- Added saving folder to search files in (ref #162).
- Added selecting all instances with a double-click on a variable.
- Added `autoanalizer` option for dynamic static analysis.
- Added 'Go To Definition' and 'Rename All Instances'.
- Added initial support for indicating local/global variables.
- Added showing tooltip in any position over a term and showing 'values' (ref #101).
- Added disabling tooltip when context menu is shown.
- Added 'fixing' path returned by wxDirDialog; may be incorrect in 2.9.x.
- Added constant initialization missing on ArchLinux with wxlua 2.8.12.2 (fixes #155; ref #128).
- Added support for table valuetypes in auto-complete for `foo[index]:` (ref #101).
- Added navigation to the line of code in the Stack Window (thanks to George Pimm; closes #134).
- Added `Show Location` to the editor tab menu.
- Added support for absolute filenames in Markdown links.
- Allowed tab width and indentation to be set independently.
- Allowed closing editor tabs while debugger is running.
- Disabled following symlinks during directory scanning to avoid infinite loops.
- Disabled showing tooltip when the app is in the background (fixes #158).
- Disabled 'value' tooltip over variables that match known function names (ref #101).
- Improved error reporting in interpreters on failures to copy the debugger.
- Improved focus on the debugger when a breakpoint hits on OSX (fixes #141).
- Removed sorting in the Stack view to keep the order of table elements.
- Set default directory for Find in Files opened from a new file (#ref 162).
- Updated configuration example for variable indicators.
- Updated Stack view navigation to use clicked on instead of active item.
- Updated Gideros API/auto-complete reference.
- Updated markup to allow opening files from new buffers ('untitled').
- Updated build scripts to use luasocket 2.0.3.
- Updated linux build files to use latest zlib/libpng to fix png load on Gentoo.
- Updated 'Find in Files' to start in the project folder by default.
- Updated French translation with latest string changes (mostly for find/replace dialogs).
- Updated Marmalade Quick auto-complete API to use class inheritance.
- Updated Gideros auto-complete API to use class inheritance.
- Upgraded Mobdebug to 0.534 for debugging of source code fragments.
### Fixes
- Fixed looping in auto-complete when indexes are used (fixes #143).
- Fixed possible duplicate paths in the filetree.
- Fixed missing numerical keys in serialized tables (upgraded Mobdebug to 0.535).
- Fixed styling of markup that can be affected by folded lines.
- Fixed value selection with multiple active selections.
- Fixed style compatibility with wxwidgets 2.8 (ref #128).
- Fixed error reporting by (internal) file operations.
- Fixed styling comments that start with markup symbols.
- Fixed restoring a session with one of the files deleted on disk (fixes #161).
- Fixed reporting variable instances for comment/string fragments.
- Fixed 'Rename Instances' to always reset previous selection.
- Fixed auto-complete error for '%dddd' strings (fixes #156).
- Fixed an issue with showing filenames that include '"?*:<>' on OSX/Linux.
- Fixed current line marker being shown using 'Run as Scratchpad' with 'runonstart' option.
- Fixed looping in auto-complete (fixes #151).
- Fixed incorrect localization that led to an error in 'Save' from tab menu.
## v0.37 (May 09 2013)
### Highlights
- Added Marmalade Quick auto-complete support and API documentation.
- Added full Marmalade Quick debugging support (requires Quick 1.1+).
- Improved Find/Replace behavior and functionality.
- Added Recent File history navigation.
- Added Preferences menu to simplify access to system/user settings.
### Special thanks
- To Samuel Dionne-Riel for wxwidgets 2.8 compatibility updates.
- To Mat Hopwood for assistance with Marmalade Quick integration.
### Improvements
- Added Preferences menu to simplify access to system/user settings.
- Added Russian translation for Find/Replace dialog and (ref #70).
- Added Russian translation for the Preferences menu (ref #70).
- Added 'shaking' Find/Replace window when text is not found (closes #146).
- Added 'wlua' to the list of recognized Lua extensions.
- Added disabling Recent Files menu if the list is empty.
- Added TomorrowContrast color scheme (thanks to Sergey Lerg).
- Added detaching a child process to avoid crash when exiting during debugging.
- Added Recent File history navigation (closes #66).
- Added Marmalade auto-complete support and API documentation.
- Added processing of `runonstart` when using remote debugging (closes #138).
- Added suggesting proper extension after 'Save/Save As' based on current spec.
- Added translation setup for Find/Replace dialog (closes #133).
- Added `nomousezoom` option to disable zoom with mouse wheel in the editor.
- Added selecting text and Cmd-F shortcut in Find dialog on OSX (ref #127).
- Improved file activation when debugging is started (closes #137).
- Reduced the minimum size of the Output/Console panel.
- Refactored Recent Files history to make it faster and simpler.
- Refactored and optimized directory scanning when loading IDE files.
- Separated settings for function dropdown and project tree fonts (fixes #148).
- Updated documentation about default EOL on OSX (ref #102).
- Updated highlighting in Watch windows to not use editor styles.
- Updated documentation for user settings (ref #113, #55).
- Updated Monokai color scheme to fix current line color.
### Incompatibilities
- (dev) `FileSysGet` has been replaced with `FileSysGetRecursive` with a different signature.
### Fixes
- Fixed hiding all panels when switching to Full Screen mode.
- Fixed loading a non-existing file.
- Fixed activation of non-existing files/folders in the Project tree.
- Fixed search results for lines without newline.
- Fixed Find/Replace in folders with Unicode names (fixes #147); improved performance.
- Fixed Un/Comment commands executed for empty lines.
- Fixed fold/unfold for files starting with block/comment.
- Fixed history after activating non-existing file in Recent Files.
- Fixed scrolling to restored cursor position on OSX (when `usewrap` = false).
- Fixed Find/Replace dialog to take Enter on OSX (fixes #140).
- Fixed 'breaking' after executing OUT command that never reaches the target level.
- Fixed stopping at a breakpoint at the initial line when `startwith` option is specified.
- Fixed activation of a file loaded into active tab.
- Fixed incorrect tab activation on OSX after using 'Open File'.
- Fixed editor activation when file is loaded into an existing tab.
- Fixed an error after opening non-existing file from 'Recent Files'.
- Fixed blocking on reading app output without processing other events.
- Fixed an issue with duplicate lines shown in the editor.
- Fixed 'Replace All' to take 'Wrap Around' into account (fixes #132).
- Fixed off-by-one error in searching consecutive matches.
- Fixed 'Quick Find' not working without current selection (fixes #131).
- Fixed looping in auto-complete on mistyped class (fixes #130).
- Fixed compatibility with wx2.8 (thanks to Samuel Dionne-Riel; closes #128).
- Fixed replacement logic in Find/Replace that could replace selected fragment (ref #127).
- Fixed an error caused by allowing multiple Search/Replace windows (fixes #127).
## v0.361 (Apr 12 2013)
### Improvements
- Added handling of Ctrl-Home and Ctrl-End on OSX (ref #89).
- Added line copy/cut for Ctrl-C/Ctrl-X with no selection.
- Updated About screen to be more configurable and flexible.
- Updated Russian translation (thanks to toiffel).
### Fixes
- Fixed launch command for Corona debugging on Windows.
- Fixed 'control' check on OSX that changed with wx2.9.2+ (ref #89).
- Fixed wrong tab activated on OSX after using New file in some cases.
- Fixed cursor not being visible in some cases after file is loaded (ref #116).
## v0.36 (Apr 08 2013)
### Highlights
- Added 32bit and 64bit **Linux binaries**.
- Enabled **full debugging for Corona on OSX**.
- Improved **debugger performance**.
- Improved **performance of tab and project switching**.
- Added **multiple selection and multi-cursor editing**.
- Made Stack and Watch windows dockable and toggleable.
### Special thanks
- To toiffel for build improvements and continuous work on wxwidgets 2.9 and Linux support.
- To Marcel van Herk for testing and feedback on Stack and Watch windows behavior.
- To Leo Bartoloni for Italian translation update.
- To Fringale for updated French translation.
- To neomantra for adding cdata processing in the serializer.
### Improvements
- Added handling of case-insensitive filenames on OSX.
- Added cdata processing (thanks to neomantra).
- Added universal binaries for luasocket on OSX to allow debugging of 64bit applications (for example, LuaJIT) on OSX.
- Added update of Stack and Watch windows after 'Debugging suspended' message.
- Added toggling for View menu items.
- Added auto-show/hide Stack and Watch windows during debugging (closes #110).
- Added ignoring `-psn...` parameter on OSX when reading file names from command line.
- Added migration of configuration file on Windows (helps #89).
- Added check for different spellings of the same folder in the project tree.
- Added scripts to install build prerequisites on Linux (helps #89).
- Added linux binaries with support for x86 and x64 (helps #89).
- Added window list button to the notepad with editor tabs.
- Added centering of current line during debugging.
- Added multiple selection and multi-cursor editing (wx2.9.5+).
- Added dll proxy to make LfW libraries to work with the IDE.
- Disabled showing 'value' in auto-complete after 'a:' (helps #101).
- Enabled full debugging for Corona on OSX.
- Improved debugging performance.
- Improved performance of tab switching and project tree population.
- Improved handling of upvalues with __tostring method in the Stack window.
- Increased default font size for OSX; set 'Monaco' as default font (helps #89).
- Made stack and watch windows dockable (closes #103).
- Optimized project switching and added notebook freezing where possible (ref #89).
- Reduced flicker in the project tree when a file is opened (ref #89).
- Removed binary libraries not currently used.
- Set 'Courier New' as the default font on Linux (ref #89).
- Switched to 'native' menu on OSX and added 24x24 icons required (helps #89).
- Updated Italian translation (thanks to Leo Bartoloni)
- Updated 'method' type in auto-complete to only allow a:b syntax (closes #101).
- Updated language files (es, it, ru) with new messages (ref #70).
- Updated French translation with latest string changes, fixed a few typos (thanks to Fringale).
- Updated Stack and Watch window to not refresh when not visible.
- Upgraded Mobdebug (0.5222) to add serialization with metamethods and notification on incomplete output (closes #109).
- Updated error messages from loading configuration files.
- Updated Linux binaries to use libpng 1.6 with wxwidgets (helps #89).
- Updated Windows/OSX build files to only build components needed (helps #89).
- Updated windows executable to show properly scaled icons in the Explorer.
- Updated status bar to use no border around fields.
- Updated large icons for "native" toolbar on OSX (helps #89).
- Updated function call indicator to use round box with wxwidgets upgrade (helps #89).
- Updated handling of markdown styles to make it more robust (fixes #59).
- Updated README with Marmalade Quick support and Corona tutorial.
### Incompatibilities
- Configuration file (.ini) location has changed on Windows. The current file will be copied to the new location.
- The debugger now stops on the next executable line after `.start()` call.
### Fixes
- Fixed activating files in the project tree on a case insensitive system.
- Fixed the Stack view being partially hidden when the root item is too wide (ref #110).
- Fixed left side of the project panel being hidden when a file is activated (fixes #122).
- Fixed breakpoint not firing on the first executable line in debugging (helps #121).
- Fixed terminating debugging of an empty script.
- Fixed reporting of initial line during debugging.
- Fixed editor tab activation after closing another tab on Linux (ref #89).
- Fixed 'Show tooltip' shortcut not working on Linux (fixes #118; ref #89).
- Fixed cursor position being incorrectly restored (fixes #116; ref #89).
- Fixed a warning about empty project directory in local console.
- Fixed an issue with Enter used to select an item in project dropdown (ref #89).
- Fixed an issue with the Project tree when project and app directories are the same.
- Fixed debugger output not being suppressed on Linux and using wlua.
- Fixed a static analyzer issue with anonymous functions defined in expressions (fixes #3).
## v0.35 (Feb 10 2013)
### Highlights
@@ -171,7 +716,7 @@
### Special thanks
- To Andy Bower and Atilim Cetin for their assistance with Gideros integration and live coding.
- To toiffel for Linux/OSX/Windows CMake-based launcher build.
- To Christoph Kubisch for help with Estrela merge.
- To [Christoph Kubisch](https://github.com/CrazyButcher) for help with Estrela merge.
### Improvements
- Added configuration option to specify hostname when the default one is not reachable (fixes #68).

64
LICENSE
View File

@@ -136,43 +136,59 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--[[ LuaFileSystem License ]]----------------------------------------------
LuaFileSystem was designed by Roberto Ierusalimschy, André Carregal and Tomás
Guisasola as part of the Kepler Project, which holds its copyright.
Homepage: http://www.keplerproject.org/luafilesystem/index.html
License: http://www.keplerproject.org/luafilesystem/license.html
--[[ LuaSockets License ]]-------------------------------------------------
Copyright: © 2004-2006 Diego Nehab. All rights reserved.
Homepage: http://www.cs.princeton.edu/~diego/professional/luasocket/
License: http://www.lua.org/copyright.html (same as LUA)
--[[ ZMQ License ]]--------------------------------------------------------
--[[ Serpent License ]]----------------------------------------------------
Copyright: © 2007-2011 iMatix Corporation and Contributors
Homepage: http://www.zeromq.org/
License: http://www.zeromq.org/area:licensing
Copyright (c) 2011-2013 Paul Kulchenko (paul@kulchenko.com)
LuaZMQ
Copyright: © 2011 by Robert G. Jakabosky
Homepage: https://github.com/Neopallium/lua-zmq
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
--[[ MojoShader License ]]-------------------------------------------------
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
Copyright: © 2008-2010 Ryan C. Gordon
Homepage: http://icculus.org/mojoshader/
License: http://hg.icculus.org/icculus/mojoshader/raw-file/tip/LICENSE.txt
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
--[[ CLCC License ]]-------------------------------------------------------
--[[ LuaJIT License ]]-----------------------------------------------------
Copyright: © 2009 Organic Vectory B.V.
Homepage: http://clcc.sourceforge.net/
License: boost
Copyright © 2005-2013 Mike Pall, released under the MIT open source license.
CLCC was modified by Christoph Kubisch to support multiple platforms and
output file generation.
--[[ WinAPI License ]]-----------------------------------------------------
Copyright (C) 2011 Steve Donovan.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
--[[ MobDebug License ]]---------------------------------------------------

View File

@@ -2,7 +2,7 @@
[ZeroBrane Studio](http://studio.zerobrane.com/) is a lightweight Lua IDE with code completion, syntax
highlighting, remote debugger, code analyzer, live coding, and debugging
support for several Lua engines (LuaJIT, Löve 2D, Moai, Gideros, Corona,
support for several Lua engines (LuaJIT, Löve 2D, Moai, Gideros, Corona, Marmalade Quick,
MobileLua, GSL-shell, and others). It originated from the [Estrela Editor](http://www.luxinia.de/index.php/Estrela/).
## Features
@@ -11,15 +11,29 @@ MobileLua, GSL-shell, and others). It originated from the [Estrela Editor](http:
* Small, portable, and cross-platform (Windows, Mac OSX, and Linux).
* Auto-completion for functions, keywords, and custom APIs.
* Interactive console to directly test code snippets with local and remote execution.
* Integrated debugger (with support for local and remote debugging).
* Live coding with Lua ([demo](http://notebook.kulchenko.com/zerobrane/live-coding-in-lua-bret-victor-style)), Löve 2D ([demo](http://notebook.kulchenko.com/zerobrane/live-coding-with-love)), and Gideros ([demo](http://notebook.kulchenko.com/zerobrane/gideros-live-coding-with-zerobrane-studio-ide)).
* Integrated debugger with local and [remote debugging](http://studio.zerobrane.com/doc-remote-debugging.html) for Lua 5.1,
[Lua 5.2](http://studio.zerobrane.com/doc-lua52-debugging.html),
[LuaJIT](http://studio.zerobrane.com/doc-luajit-debugging.html),
and [other Lua engines](http://studio.zerobrane.com/documentation.html#debugging).
* Live coding with Lua ([demo](http://notebook.kulchenko.com/zerobrane/live-coding-in-lua-bret-victor-style)),
Löve 2D ([demo](http://notebook.kulchenko.com/zerobrane/live-coding-with-love)),
Gideros ([demo](http://notebook.kulchenko.com/zerobrane/gideros-live-coding-with-zerobrane-studio-ide)),
Moai ([demo](http://notebook.kulchenko.com/zerobrane/live-coding-with-moai-and-zerobrane-studio)),
and Corona SDK ([demo](http://notebook.kulchenko.com/zerobrane/debugging-and-live-coding-with-corona-sdk-applications-and-zerobrane-studio)).
* Support for plugin-like components:
- applications: overall control of applications settings;
- specs (spec/): file syntax, lexer, keywords (e.g. glsl);
- apis (api/): for code-completion and tool-tips;
- interpreters (interpreters/): how a project is run;
- config (cfg/): contains style and basic editor settings;
- tools (tools/): additional tools (e.g. DirectX/Cg shader compiler...).
- specs (`spec/`): file syntax, lexer, and keywords;
- apis (`api/`): for code completion and tooltips;
- interpreters (`interpreters/`): components for setting debugging and run-time project environment;
- config (`cfg/`): contains style, color themes, and other settings;
- packages (`packages/`): plugins that provide additional functionality;
- tools (`tools/`): additional tools.
## Documentation
* A [short and simple overview](http://studio.zerobrane.com/doc-getting-started.html) for those who are new to this development environment.
* A list of [frequently asked questions](http://studio.zerobrane.com/doc-faq.html) about the IDE.
* [Tutorials and demos](http://studio.zerobrane.com/tutorials.html) that cover debugging and live coding for different environments.
* [Tips and tricks](http://studio.zerobrane.com/doc-tips-and-tricks.html).
## Screenshot
@@ -32,12 +46,16 @@ Open file(s):
zbstudio <filename> [<filename>...]
any non-option will be treated as filename
Set project directory:
zbstudio <project directory> [<filename>...]
(0.39+) a directory passed as a parameter will be set as the project directory
Overriding default configuration:
zbstudio -cfg "<luacode overriding config>" [<filename>]
e.g.: zbstudio -cfg "editor.fontsize=12" somefile.lua
Loading custom configuration:
zbstudio -cfg config/file.lua [<filename>]
zbstudio -cfg path/file.lua [<filename>]
e.g.: zbstudio -cfg cfg/estrela.lua
```
@@ -53,12 +71,13 @@ Loading custom configuration:
## Where is Estrela?
The projects have been merged again and zbstudio will lead the future.
Please reassociate files with zbstudio. To keep your history of files and
projects copy the contents of the `EstrelaEditor.ini` in your HOME directory
to `ZeroBraneStudio.ini`. If you have used Estrela for graphics shader
authoring or luxinia, create/modify the `cfg/user.lua` to include the content
of `cfg/estrela.lua` to load all tools and specifications by default again.
The projects have been merged and ZeroBrane Studio will lead the future.
Please reassociate files with ZeroBrane Studio. To keep your history of files
and projects copy the contents of the `EstrelaEditor.ini` in your HOME
directory to `ZeroBraneStudio.ini`. If you have used Estrela for graphics
shader authoring or luxinia, create/modify the `cfg/user.lua` to include the
content of `cfg/estrela.lua` to load all tools and specifications by default
again.
## License

View File

@@ -64,6 +64,11 @@ smoothstep = fn "clip and smooth blend [a,b]. - (vecN)(vecN a, b, x)",
floatBitsToInt = fn "returns the 32-bit integer representation of an IEEE 754 floating-point scalar or vector - (uintN/intN)(floatN)",
intBitsToFloat = fn "returns the float value corresponding to a given bit represention.of a scalar int value or vector of int values. - (floatN)(intN)",
uintBitsToFloat = fn "returns the float value corresponding to a given bit represention.of a scalar int value or vector of int values. - (floatN)(uintN)",
doubleBitsToInt64 = fn "returns the 64-bit integer representation of an IEEE 754 double precision floating-point scalar or vector - (int64N)(doubleN)",
doubleBitsToUint64 = fn "returns the 64-bit integer representation of an IEEE 754 double precision floating-point scalar or vector - (uint64N)(doubleN)",
int64BitsToDouble = fn "returns the double value corresponding to a given bit represention.of a scalar int value or vector of int values. - (doubleN)(uint64N)",
uint64BitsToDouble = fn "returns the double value corresponding to a given bit represention.of a scalar int value or vector of int values. - (doubleN)(uint64N)",
fma = fn "return a*b + c, treated as single operation when using precise - (vecN a, vecN b, vecN c)",
frexp = fn "splits scalars and vectors into normalized fraction [0.5,1.0) and a power of 2. - (vecN)(vecN x, out vecN e)",
ldexp = fn "build floating point number from x and the corresponding integral exponen of 2 in exp. - (vecN)(vecN x, exp)",
@@ -73,12 +78,19 @@ packUnorm4x8 = fn "Converts each comp. of v into 8-bit ints, packs results into
packSnorm4x8 = fn "Converts each comp. of v into 8-bit ints, packs results into the returned 32-bit uint. - (uint)(vec4 v)",
packDouble2x32 = fn "Packs components of v into a 64-bit value and returns a double-prec value. - (double)(uvec2 v)",
packHalf2x16 = fn "Converts each comp. of v into 16-bit half float, packs results into the returned 32-bit uint. - (uint)(vec2 v)",
packInt2x32 = fn "Packs two 32 bit into one 64-bit value. - (int64_t)(ivec2)",
packUint2x32 = fn "Packs two 32 bit into one 64-bit value. - (uint64_t)(uvec2)",
packFloat2x16 = fn "returns an unsigned integer obtained by interpreting the components of a two-component 16-bit floating-point as integers and packing them into 32 bit. - (uint)(f16vec2 v)",
unpackUnorm2x16 = fn "Unpacks 32-bit p into two 16-bit uints and converts them to normalized float. - (vec2)(uint p)",
unpackUnorm4x8 = fn "Unpacks 32-bit p into four 8-bit uints and converts them to normalized float. - (vec4)(uint p)",
unpackSnorm4x8 = fn "Unpacks 32-bit p into four 8-bit uints and converts them to normalized float. - (vec4)(uint p)",
unpackDouble2x32 = fn "Returns a 2 component vector representation of v. - (uvec2)(double v)",
unpackHalf2x16 = fn "Interprets p as two 16-bit half floats and returns them as vector. - (vec2)(uint p)",
unpackInt2x32 = fn "Unpacks 64-bit into two 32-bit values. - (ivec2)(int64_t)",
unpackUint2x32 = fn "Unpacks 64-bit into two 32-bit values. - (uvec2)(uint64_t)",
unpackFloat2x16 = fn "returns a two-component vector with 16-bit floating-point components obtained by unpacking a 32-bit unsigned integer into a pair of 16-bit values. - (f16vec2)(uint)",
length = fn "return scalar Euclidean length of a vector. - (type)(vecN)",
distance = fn "return the Euclidean distance between two points. - (vecN)(vecN a, b)",
@@ -170,6 +182,10 @@ textureGather = fn "gather lookup (pixel quad of 4 single channel samples at onc
textureGatherOffset = fn "gather lookup (pixel quad of 4 single channel samples at once) with offset. Component 0: x, 1: y ... is ignored for shadow samplers instead reference value must be passed. Only 2D/Cube. Illegal for MS. - (vec4)(samplerN, vecN coord, [float shadowRefZ], intN offset / intN offset[4] , [int comp])",
texelFetch = fn "integer coordinate lookup for a single texel. No lod parameter for Buffer, MS, Rect. Illegal for Cube - (vec4)(samplerN, intN coord, [int lod/sample])",
texelFetchOffset = fn "integer coordinate lookup for a single texel with offset. No lod parameter for Buffer, MS, Rect. Illegal for Cube, Buffer, MS. - (vec4)(samplerN, intN coord, [int lod/sample], intN offset)",
anyInvocationARB = fn "returns true if and only if <value> is true for at least one active invocation in the group. - (bool)(bool value)",
allInvocationsARB = fn "returns true if and only if <value> is true for all active invocations in the group - (bool)(bool value)",
allInvocationsEqualARB = fn "returns true if <value> is the same for all active invocation in the group. - (bool)(bool value)",
}
local keyw =
@@ -178,6 +194,18 @@ local keyw =
ivec2 ivec3 ivec4 uvec2 uvec3 uvec4 bvec2 bvec3 bvec4
mat2 mat3 mat4 mat2x2 mat3x3 mat4x4 mat2x3 mat3x2 mat4x2 mat2x4 mat4x3 mat3x4
dmat2 dmat3 dmat4 dmat2x2 dmat3x3 dmat4x4 dmat2x3 dmat3x2 dmat4x2 dmat2x4 dmat4x3 dmat3x4
float16_t f16vec2 f16vec3 f16vec4
float32_t f32vec2 f32vec3 f32vec4
float64_t f64vec2 f64vec3 f64vec4
int8_t i8vec2 i8vec3 i8vec4
int8_t i8vec2 i8vec3 i8vec4
int16_t i16vec2 i16vec3 i16vec4
int32_t i32vec2 i32vec3 i32vec4
int64_t i64vec2 i64vec3 i64vec4
uint8_t u8vec2 u8vec3 u8vec4
uint16_t u16vec2 u16vec3 u16vec4
uint32_t u32vec2 u32vec3 u32vec4
uint64_t u64vec2 u64vec3 u64vec4
struct typedef void
usampler1D usampler2D usampler3D usampler2DRect usamplerCube isampler1DArray usampler2DARRAY usamplerCubeArray usampler2DMS usampler2DMSArray
isampler1D isampler2D isampler3D isampler2DRect isamplerCube isampler1DArray isampler2DARRAY isamplerCubeArray isampler2DMS isampler2DMSArray
@@ -189,7 +217,7 @@ local keyw =
layout location vertices line_strip triangle_strip max_vertices stream
triangles quads equal_spacing isolines fractional_even_spacing lines points
fractional_odd_spacing cw ccw point_mode lines_adjacency triangles_adjacency
invocations
invocations offset align xfb_offset xfb_buffer
origin_upper_left pixel_center_integer depth_greater depth_greater depth_greater depth_unchanged
smooth flat noperspective highp mediump lowp shared packed std140 std430 row_major column_major buffer
gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_Color gl_SecondaryColor
@@ -205,6 +233,8 @@ local keyw =
gl_FragData gl_FragDepth gl_SampleMask
gl_NumWorkGroups gl_WorkGroupSize gl_WorkGroupID gl_LocalInvocationID gl_GlobalInvocationID gl_LocalInvocationIndex
local_size_x local_size_y local_size_z
gl_BaseVertexARB gl_BaseInstanceARB gl_DrawIDARB
bindless_sampler bound_sampler bindless_image bound_image
coherent volatile restrict readonly writeonly
image1D image2D image3D image2DRect imageCube imageBuffer image1DArray image2DArray imageCubeArray image2DMS image2DMSArray

60
api/hlsl/dx11.lua Normal file
View File

@@ -0,0 +1,60 @@
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch)
---------------------------------------------------------
local function fn (description)
local description2,returns,args = description:match("(.+)%-%s*(%b())%s*(%b())")
if not description2 then
return {type="function",description=description,
returns="(?)"}
end
return {type="function",description=description2,
returns=returns:gsub("^%s+",""):gsub("%s+$",""), args = args}
end
local api = {}
local funcs = [[
abs acos all AllMemoryBarrier AllMemoryBarrierWithGroupSync any asdouble asfloat asin asint asuint atan atan2 ceil clamp clip cos cosh countbits cross ddx ddx_coarse ddx_fine ddy ddy_coards ddy_fine degrees determinant DeviceMemoryBarrier DeviceMemoryBarrierWithGroupSync distance dot dst EvaluateAttributeAtCentroid EvaluateAttributeAtSample EvaluateAttributeSnapped exp exp2 f16tof32 f32tof16 faceforward firstbithigh firstbitlow floor fmod frac frexp fwidth GetRenderTargetSampleCount GetRenderTargetSamplePosition GroupMemoryBarrier GroupMemoryBarrierWithGroupSync InterlockedAdd InterlockedAnd InterlockedCompareExchange InterlockedExchange InterlockedMax InterlockedMin IntterlockedOr InterlockedXor isfinite isinf isnan ldexp length lerp lit log log10 log2 mad max min modf mul normalize pow Process2DQuadTessFactorsAvg Process2DQuadTessFactorsMax Process2DQuadTessFactorsMin ProcessIsolineTessFactors ProcessQuadTessFactorsAvg ProcessQuadTessFactorsMax ProcessQuadTessFactorsMin ProcessTriTessFactorsAvg ProcessTriTessFactorsMax ProcessTriTessFactorsMin radians rcp reflect refract reversebits round rsqrt saturate sign sin sincos sinh smoothstep sqrt step tan tanh transpose trunc
]]
for w in funcs:gmatch("([_%w]+)") do
api[w] = {type="function",returns="(?)"}
end
local objfuncs = [[
Append RestartStrip CalculateLevelOfDetail CalculateLevelOfDetailUnclamped GetDimensions GetSamplePosition Load Sample SampleBias SampleCmp SampleCmpLevelZero SampleGrad SampleLevel Load2 Load3 Load4 Consume Store Store2 Store3 Store4 DecrementCounter IncrementCounter mips Gather GatherRed GatherGreen GatherBlue GatherAlpha GatherCmp GatherCmpRed GatherCmpGreen GatherCmpBlue GatherCmpAlpha
]]
for w in objfuncs:gmatch("([_%w]+)") do
api[w] = {type="function",returns="(?)"}
end
local keyw =
[[break continue if else switch return for while do typedef namespace true false compile
const void struct static extern register volatile inline target nointerpolation shared uniform row_major column_major snorm unorm
bool bool1 bool2 bool3 bool4 int int1 int2 int3 int4 uint uint1 uint2 uint3 uint4 half half1 half2 half3 half4 float float1 float2 float3 float4 double double1 double2 double3 double4
matrix bool1x1 bool1x2 bool1x3 bool1x4 bool2x1 bool2x2 bool2x3 bool2x4 bool3x1 bool3x2 bool3x3 bool3x4 bool4x1 bool4x2 bool4x3 bool4x4
int1x1 int1x2 int1x3 int1x4 int2x1 int2x2 int2x3 int2x4 int3x1 int3x2 int3x3 int3x4 int4x1 int4x2 int4x3 int4x4 uint1x1 uint1x2 uint1x3 uint1x4
uint2x1 uint2x2 uint2x3 uint2x4 uint3x1 uint3x2 uint3x3 uint3x4 uint4x1 uint4x2 uint4x3 uint4x4 half1x1 half1x2 half1x3 half1x4 half2x1 half2x2
half2x3 half2x4 half3x1 half3x2 half3x3 half3x4 half4x1 half4x2 half4x3 half4x4 float1x1 float1x2 float1x3 float1x4 float2x1 float2x2 float2x3
float2x4 float3x1 float3x2 float3x3 float3x4 float4x1 float4x2 float4x3 float4x4 double1x1 double1x2 double1x3 double1x4 double2x1 double2x2
double2x3 double2x4 double3x1 double3x2 double3x3 double3x4 double4x1 double4x2 double4x3 double4x4 cbuffer groupshared SamplerState
in out inout vector matrix interface class point triangle line lineadj triangleadj
Texture Texture1D Texture1DArray Texture2D Texture2DArray Texture2DMS Texture2DMSArray Texture3D TextureCube RWTexture1D RWTexture1DArray RWTexture2D RWTexture2DArray RWTexture3D
Buffer StructuredBuffer AppendStructuredBuffer ConsumeStructuredBuffer RWBuffer RWStructuredBuffer ByteAddressBuffer RWByteAddressBuffer PointStream TriangleStream LineStream InputPatch OutputPatch
unroll loop flatten branch earlydepthstencil allow_uav_condition domain instance maxtessfactor outputcontrolpoints outputtopology partitioning patchconstantfunc numthreads maxvertexcount precise
SV_DispatchThreadID SV_DomainLocation SV_GroupID SV_GroupIndex SV_GroupThreadID SV_GSInstanceID SV_InsideTessFactor SV_OutputControlPointID SV_Coverage SV_Depth SV_Position SV_IsFrontFace SV_RenderTargetArrayIndex SV_SampleIndex SV_ViewportArrayIndex SV_InstanceID SV_PrimitiveID SV_VertexID
SV_ClipDistance SV_CullDistance SV_Target
]]
-- keywords - shouldn't be left out
for w in keyw:gmatch("([_%w]+)") do
api[w] = {type="keyword"}
end
return api

View File

@@ -324,12 +324,14 @@ return {
description = "Receives zero or more integers. Returns a string with length equal to the number of arguments, in which each character has the internal numerical code equal to its corresponding argument.\n\nNumerical codes are not necessarily portable across platforms.",
args = "(...)",
returns = "(string)",
valuetype = "string",
},
dump = {
type = "function",
description = "Returns a string containing a binary representation of the given function, so that a later load on this string returns a copy of the function (but with new upvalues).",
args = "(function: function)",
returns = "(string)",
valuetype = "string",
},
find = {
type = "function",
@@ -342,6 +344,7 @@ return {
description = "Returns a formatted version of its variable number of arguments following the description given in its first argument (which must be a string).\n\nThe format string follows the same rules as the C function sprintf. The only differences are that the options/modifiers *, h, L, l, n, and p are not supported and that there is an extra option, q. The q option formats a string between double quotes, using escape sequences when necessary to ensure that it can safely be read back by the Lua interpreter.\n\nOptions A and a (when available) (VALUES ADDED IN Lua 5.2), E, e, f, G, and g all expect a number as argument. Options c, d, i, o, u, X, and x also expect a number, but the range of that number may be limited by the underlying C implementation. For options o, u, X, and x, the number cannot be negative. Option q expects a string; option s expects a string without embedded zeros. If the argument to option s is not a string, it is converted to one following the same rules of tostring (BEHAVIOR ADDED IN Lua 5.2).",
args = "(formatstring, ...)",
returns = "(string)",
valuetype = "string",
},
gmatch = {
type = "function",
@@ -354,6 +357,7 @@ return {
description = "Returns a copy of s in which all (or the first n, if given) occurrences of the pattern have been replaced by a replacement string specified by repl, which can be a string, a table, or a function.\n\ngsub also returns, as its second value, the total number of matches that occurred. The name gsub comes from Global SUBstitution.\n\nIf repl is a string, then its value is used for replacement. The character % works as an escape character: any sequence in repl of the form %d, with d between 1 and 9, stands for the value of the d-th captured substring. The sequence %0 stands for the whole match. The sequence %% stands for a single %.\n\nIf repl is a table, then the table is queried for every match, using the first capture as the key.\n\nIf repl is a function, then this function is called every time a match occurs, with all captured substrings passed as arguments, in order.\n\nIn any case, if the pattern specifies no captures, then it behaves as if the whole pattern was inside a capture.\n\nIf the value returned by the table query or by the function call is a string or a number, then it is used as the replacement string; otherwise, if it is false or nil, then there is no replacement (that is, the original match is kept in the string).",
args = "(s: string, pattern: string, repl: string|table|function [, n: number])",
returns = "(string, number)",
valuetype = "string",
},
len = {
type = "function",
@@ -366,36 +370,42 @@ return {
description = "Receives a string and returns a copy of this string with all uppercase letters changed to lowercase.\n\nAll other characters are left unchanged. The definition of what an uppercase letter is depends on the current locale.",
args = "(s: string)",
returns = "(string)",
valuetype = "string",
},
match = {
type = "function",
description = "Looks for the first match of pattern in the string s.\n\nIf it finds one, then match returns the captures from the pattern; otherwise it returns nil.\n\nIf pattern specifies no captures, then the whole match is returned. A third, optional numerical argument init specifies where to start the search; its default value is 1 and can be negative.",
args = "(s: string, pattern: string [, init: number])",
returns = "(string|nil [,...])",
valuetype = "string",
},
rep = {
type = "function",
description = "Returns a string that is the concatenation of n copies of the string s separated by the string sep.\n\nThe default value for sep is the empty string (that is, no separator). ARGUMENT ADDED IN Lua 5.2.",
args = "(s: string, n: number [, sep: string])",
returns = "(string)",
valuetype = "string",
},
reverse = {
type = "function",
description = "Returns a string that is the string s reversed.",
args = "(s: string)",
returns = "(string)",
valuetype = "string",
},
sub = {
type = "function",
description = "Returns the substring of s that starts at i and continues until j; i and j can be negative.\n\nIf j is absent, then it is assumed to be equal to -1 (which is the same as the string length). In particular, the call string.sub(s,1,j) returns a prefix of s with length j, and string.sub(s, -i) returns a suffix of s with length i.\n\nIf, after the translation of negative indices, i is less than 1, it is corrected to 1. If j is greater than the string length, it is corrected to that length. If, after these corrections, i is greater than j, the function returns the empty string.",
args = "(s: string, i: number [, j: number])",
returns = "(string)",
valuetype = "string",
},
upper = {
type = "function",
description = "Receives a string and returns a copy of this string with all lowercase letters changed to uppercase.\n\nAll other characters are left unchanged. The definition of what a lowercase letter is depends on the current locale.",
args = "(s: string)",
returns = "(string)",
valuetype = "string",
},
},
},
@@ -410,6 +420,7 @@ return {
description = "Given a list where all elements are strings or numbers, returns list[i]..sep..list[i+1] ··· sep..list[j].\n\nThe default value for sep is the empty string, the default for i is 1, and the default for j is #list. If i is greater than j, returns the empty string.",
args = "(list: table [, sep: string [, i: number [, j: number]]])",
returns = "(string)",
valuetype = "string",
},
insert = {
type = "function",
@@ -739,6 +750,7 @@ return {
description = "When called with a file name, it opens the named file (in text mode), and sets its handle as the default input file. When called with a file handle, it simply sets this file handle as the default input file. When called without parameters, it returns the current default input file.\n\nIn case of errors this function raises the error, instead of returning an error code.",
args = "([file: string|file])",
returns = "([file])",
valuetype = "f",
},
lines = {
type = "function",
@@ -751,18 +763,21 @@ return {
description = "This function opens a file, in the mode specified in the string mode.\n\nIt returns a new file handle, or, in case of errors, nil plus an error message.\n\nThe mode string can be any of the following:\n\n* \"r\": read mode (the default);\n\n* \"w\": write mode;\n\n* \"a\": append mode;\n\n* \"r+\": update mode, all previous data is preserved;\n\n* \"w+\": update mode, all previous data is erased;\n\n* \"a+\": append update mode, previous data is preserved, writing is only allowed at the end of file.\n\nThe mode string can also have a 'b' at the end, which is needed in some systems to open the file in binary mode.",
args = "(filename: string [, mode: string])",
returns = "(file|nil [, string])",
valuetype = "f",
},
output = {
type = "function",
description = "When called with a file name, it opens the named file (in text mode), and sets its handle as the default output file. When called with a file handle, it simply sets this file handle as the default output file. When called without parameters, it returns the current default output file.\n\nIn case of errors this function raises the error, instead of returning an error code.",
args = "([file: string|file])",
returns = "([file])",
valuetype = "f",
},
popen = {
type = "function",
description = "Starts program prog in a separated process and returns a file handle that you can use to read data from this program (if mode is \"r\", the default) or to write data to this program (if mode is \"w\").\n\nThis function is system dependent and is not available on all platforms.",
args = "(prog: string [, mode: string])",
returns = "(file|nil [, string])",
valuetype = "f",
},
read = {
type = "function",
@@ -775,6 +790,7 @@ return {
description = "Returns a handle for a temporary file.\n\nThis file is opened in update mode and it is automatically removed when the program ends.",
args = "()",
returns = "(file)",
valuetype = "f",
},
type = {
type = "function",
@@ -796,43 +812,43 @@ return {
description = "Pseudoclass for operations on file handles.",
childs = {
close = {
type = "function",
type = "method",
description = "Closes file.\n\nNote that files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen.\n\nWhen closing a file handle created with io.popen, file:close returns the same values returned by os.execute. RETURN SPECIAL CASE ADDED IN Lua 5.2.",
args = "(file: file)",
returns = "(boolean|nil [, string, number])",
},
flush = {
type = "function",
type = "method",
description = "Saves any written data to file.",
args = "(file: file)",
returns = "(boolean|nil [, string])",
},
lines = {
type = "function",
type = "method",
description = "Returns an iterator function that, each time it is called, reads the file according to the given formats.\n\nWhen no format is given, uses \"*l\" as a default. ARGUMENT ADDED IN Lua 5.2.\n\nUnlike io.lines, this function does not close the file when the loop ends.\n\nIn case of errors this function raises the error, instead of returning an error code.",
args = "(file: file, ...)",
returns = "(function)",
},
read = {
type = "function",
type = "method",
description = "Reads the file file, according to the given formats, which specify what to read.\n\nFor each format, the function returns a string (or a number) with the characters read, or nil if it cannot read data with the specified format. When called without formats, it uses a default format that reads the next line (see below).\n\nThe available formats are\n\n* \"*n\": reads a number; this is the only format that returns a number instead of a string.\n\n* \"*a\": reads the whole file, starting at the current position. On end of file, it returns the empty string.\n\n* \"*l\": reads the next line skipping the end of line, returning nil on end of file. This is the default format.\n\n* \"*L\": reads the next line keeping the end of line (if present), returning nil on end of file. VALUE ADDED IN Lua 5.2.\n\n* number: reads a string with up to this number of bytes, returning nil on end of file. If number is zero, it reads nothing and returns an empty string, or nil on end of file.",
args = "(file: file, ...)",
returns = "(...)",
},
seek = {
type = "function",
type = "method",
description = "Sets and gets the file position, measured from the beginning of the file, to the position given by offset plus a base specified by the string whence.\n\nThe string whence is specified as follows:\n\n* \"set\": base is position 0 (beginning of the file);\n\n* \"cur\": base is current position;\n\n* \"end\": base is end of file.\n\nIn case of success, seek returns the final file position, measured in bytes from the beginning of the file. If seek fails, it returns nil, plus a string describing the error.\n\nThe default value for whence is \"cur\", and for offset is 0. Therefore, the call file:seek() returns the current file position, without changing it; the call file:seek(\"set\") sets the position to the beginning of the file (and returns 0); and the call file:seek(\"end\") sets the position to the end of the file, and returns its size.",
args = "(file: file, [whence: string [, offset: number]])",
returns = "(number|nil [, string])",
},
setvbuf = {
type = "function",
type = "method",
description = "Sets the buffering mode for an output file.\n\nThere are three available modes:\n\n* \"no\": no buffering; the result of any output operation appears immediately.\n\n* \"full\": full buffering; output operation is performed only when the buffer is full or when you explicitly flush the file (see io.flush).\n\n* \"line\": line buffering; output is buffered until a newline is output or there is any input from some special files (such as a terminal device).\n\nFor the last two cases, size specifies the size of the buffer, in bytes. The default is an appropriate size.",
args = "(file: file, mode: string [, size: number])",
returns = "(boolean|nil [, string])",
},
write = {
type = "function",
type = "method",
description = "Writes the value of each of its arguments to file.\n\nThe arguments must be strings or numbers.\n\nIn case of success, this function returns file (RETURN CHANGED IN Lua 5.2, BOOLEAN IN LUA 5.1). Otherwise it returns nil plus a string describing the error.",
args = "(file: file, ...)",
returns = "(file|nil [, string])",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2506
api/lua/marmalade.lua Normal file

File diff suppressed because it is too large Load Diff

BIN
bin/clibs/git/core.dll Normal file

Binary file not shown.

BIN
bin/clibs/git/core.dylib Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/clibs/lfs.dylib Normal file

Binary file not shown.

BIN
bin/clibs/liblua.dll Normal file

Binary file not shown.

BIN
bin/clibs/libzlib.dll Normal file

Binary file not shown.

BIN
bin/clibs/mime/core.dll Executable file → Normal file

Binary file not shown.

BIN
bin/clibs/mime/core.dylib Normal file → Executable file

Binary file not shown.

Binary file not shown.

BIN
bin/clibs/socket/core.dll Executable file → Normal file

Binary file not shown.

BIN
bin/clibs/socket/core.dylib Normal file → Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/clibs52/liblua.dll Normal file

Binary file not shown.

BIN
bin/clibs52/mime/core.dll Normal file

Binary file not shown.

BIN
bin/clibs52/mime/core.dylib Normal file

Binary file not shown.

BIN
bin/clibs52/socket/core.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/liblua.dylib Normal file

Binary file not shown.

BIN
bin/liblua52.dylib Normal file

Binary file not shown.

BIN
bin/libluadef.dylib Normal file

Binary file not shown.

BIN
bin/libwx.dylib Normal file → Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/linux/x64/clibs/lfs.so Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/linux/x64/libwx.so Normal file

Binary file not shown.

BIN
bin/linux/x64/lua Executable file

Binary file not shown.

BIN
bin/linux/x64/lua52 Executable file

Binary file not shown.

Binary file not shown.

BIN
bin/linux/x86/clibs/lfs.so Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/linux/x86/libwx.so Normal file

Binary file not shown.

BIN
bin/linux/x86/lua Executable file

Binary file not shown.

BIN
bin/linux/x86/lua52 Executable file

Binary file not shown.

BIN
bin/lua

Binary file not shown.

1
bin/lua Symbolic link
View File

@@ -0,0 +1 @@
lua.app/Contents/MacOS/lua

View File

@@ -13,7 +13,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string></string>
<string>org.Lua.LuaInterpreter</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>

Binary file not shown.

BIN
bin/lua.app/Contents/MacOS/lua52 Executable file

Binary file not shown.

BIN
bin/lua.exe Executable file → Normal file

Binary file not shown.

BIN
bin/lua5.1.dll Executable file → Normal file

Binary file not shown.

Binary file not shown.

1
bin/lua52 Symbolic link
View File

@@ -0,0 +1 @@
lua.app/Contents/MacOS/lua52

BIN
bin/lua52.dll Normal file

Binary file not shown.

BIN
bin/lua52.exe Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/wx.dll Executable file → Normal file

Binary file not shown.

View File

@@ -84,6 +84,8 @@ if(WIN32)
install_from_manifest(FILES ${TOPDIR}/zbstudio/MANIFEST ${DATADIR} "^$")
install_from_manifest(FILES ${TOPDIR}/zbstudio/MANIFEST-bin-win32 ${DATADIR} "^zbstudio.exe$")
elseif(APPLE)
set(OSX_INSTALL_PREFIX "/Applications" CACHE PATH "Default OSX prefix")
set(CMAKE_INSTALL_PREFIX "${OSX_INSTALL_PREFIX}" CACHE INTERNAL "Prefix prepended to install directories")
# setup the data directory
set(ROOTDIR ZeroBraneStudio.app/Contents)
set(DATADIR ${ROOTDIR}/ZeroBraneStudio)

Binary file not shown.

View File

@@ -1,42 +0,0 @@
#!/bin/bash
set -x
TEMPLATE_DMG=/tmp/ZeroBraneStudio-template.dmg
BUILT_DMG=ZeroBraneStudio.dmg
WKDIR=/tmp/zbs-build
# remove problematic symlink
rm ../zbstudio/ZeroBraneStudio.app/Contents/ZeroBraneStudio
bunzip2 -kf ZeroBraneStudio.dmg.bz2
mv ZeroBraneStudio.dmg $TEMPLATE_DMG
hdiutil attach "${TEMPLATE_DMG}" -noautoopen -quiet -mountpoint "${WKDIR}"
rm -rf "${WKDIR}/ZeroBraneStudio.app"
# copy the app to where it should be
cp -pr "../zbstudio/ZeroBraneStudio.app" "${WKDIR}/ZeroBraneStudio.app"
mkdir "${WKDIR}/ZeroBraneStudio.app/Contents/ZeroBraneStudio"
# only pick the files listed in manifests and 'myprograms' (if exists)
if [[ -d ../myprograms ]]; then MYPROGRAMS=$(cd ..; find myprograms -iname *.lua); fi
(cd ".."; tar cf - $MYPROGRAMS $(< zbstudio/MANIFEST) $(< zbstudio/MANIFEST-bin-macos) | (cd "${WKDIR}/ZeroBraneStudio.app/Contents/ZeroBraneStudio/"; tar xf -))
codesign -s "ZeroBrane LLC" ${WKDIR}/ZeroBraneStudio.app
codesign --signature-size 6400 -s "ZeroBrane LLC" ${WKDIR}/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app
# clean up
sudo rm -rf "${WKDIR}/.Trashes"
sudo rm -rf "${WKDIR}/.fseventsd"
hdiutil detach "${WKDIR}" -quiet -force
hdiutil convert "${TEMPLATE_DMG}" -quiet -format UDZO -imagekey zlib-level=9 -o "${BUILT_DMG}"
rm -f "${TEMPLATE_DMG}"
cd ../zbstudio/ZeroBraneStudio.app/Contents
ln -s ../../.. ZeroBraneStudio
echo Built ${BUILT_DMG}.

22
build/build-linux-prep-deb.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# this script installs prerequisites to build binary files on Linux with deb
sudo apt-get install git-core
sudo apt-get install g++
sudo apt-get install subversion
sudo apt-get install libgtk2.0-dev
# install cmake as wxwidgets needs 2.8.4+ but "sudo apt-get install cmake"
# only installs 2.8.0 on some systems (like Ubuntu 10.4)
mkdir build-cmake
cd build-cmake
wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz
gunzip cmake-2.8.10.2.tar.gz
tar xvf cmake-2.8.10.2.tar
cd cmake-2.8.10.2
./bootstrap
make
sudo make install
cd ../..
rm -rf build-cmake

View File

@@ -0,0 +1,9 @@
#!/bin/bash
# this script installs prerequisites to build binary files on Linux with rpm
sudo yum install gcc-c++
sudo yum install git
sudo yum install svn
sudo yum install cmake
sudo yum install gtk2-devel

235
build/build-linux.sh Executable file
View File

@@ -0,0 +1,235 @@
#!/bin/bash
if [ "$(uname -m)" = "x86_64" ]; then
FPIC="-fpic"
ARCH="x64"
else
FPIC=""
ARCH="x86"
fi
# ZBS binary directory
BIN_DIR="$(dirname "$PWD")/bin/linux/$ARCH"
# temporary installation directory for dependencies
INSTALL_DIR="$PWD/deps"
# number of parallel jobs used for building
MAKEFLAGS="-j4"
# flags for manual building with gcc
BUILD_FLAGS="-O2 -shared -s -I $INSTALL_DIR/include -L $INSTALL_DIR/lib $FPIC"
# paths configuration
WXWIDGETS_BASENAME="wxWidgets"
WXWIDGETS_URL="http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk"
LIBPNG_BASENAME="libpng-1.6.2"
LIBPNG_FILENAME="$LIBPNG_BASENAME.tar.gz"
LIBPNG_URL="http://sourceforge.net/projects/libpng/files/libpng16/1.6.2/libpng-1.6.2.tar.gz/download"
ZLIB_BASENAME="zlib-1.2.8"
ZLIB_FILENAME="$ZLIB_BASENAME.tar.gz"
ZLIB_URL="https://github.com/madler/zlib/archive/v1.2.8.tar.gz"
WXLUA_BASENAME="wxlua"
WXLUA_URL="https://svn.code.sf.net/p/wxlua/svn/trunk"
LUASOCKET_BASENAME="luasocket-3.0-rc1"
LUASOCKET_FILENAME="v3.0-rc1.zip"
LUASOCKET_URL="https://github.com/diegonehab/luasocket/archive/$LUASOCKET_FILENAME"
# exit if the command line is empty
if [ $# -eq 0 ]; then
echo "Usage: $0 LIBRARY..."
exit 0
fi
# iterate through the command line arguments
for ARG in "$@"; do
case $ARG in
5.2)
BUILD_52=true
;;
jit)
BUILD_JIT=true
;;
wxwidgets)
BUILD_WXWIDGETS=true
;;
lua)
BUILD_LUA=true
;;
wxlua)
BUILD_WXLUA=true
;;
luasocket)
BUILD_LUASOCKET=true
;;
all)
BUILD_WXWIDGETS=true
BUILD_LUA=true
BUILD_WXLUA=true
BUILD_LUASOCKET=true
;;
*)
echo "Error: invalid argument $ARG"
exit 1
;;
esac
done
# check for g++
if [ ! "$(which g++)" ]; then
echo "Error: g++ isn't found. Please install GNU C++ compiler."
exit 1
fi
# check for cmake
if [ ! "$(which cmake)" ]; then
echo "Error: cmake isn't found. Please install CMake and add it to PATH."
exit 1
fi
# check for svn
if [ ! "$(which svn)" ]; then
echo "Error: svn isn't found. Please install console SVN client."
exit 1
fi
# check for wget
if [ ! "$(which wget)" ]; then
echo "Error: wget isn't found. Please install GNU Wget."
exit 1
fi
# create the installation directory
mkdir -p "$INSTALL_DIR" || { echo "Error: cannot create directory $INSTALL_DIR"; exit 1; }
LUAV="51"
LUAS=""
LUA_BASENAME="lua-5.1.5"
if [ $BUILD_52 ]; then
LUAV="52"
LUAS=$LUAV
LUA_BASENAME="lua-5.2.2"
fi
LUA_FILENAME="$LUA_BASENAME.tar.gz"
LUA_URL="http://www.lua.org/ftp/$LUA_FILENAME"
if [ $BUILD_JIT ]; then
LUA_BASENAME="LuaJIT-2.0.2"
LUA_FILENAME="$LUA_BASENAME.tar.gz"
LUA_URL="http://luajit.org/download/$LUA_FILENAME"
fi
# build wxWidgets
if [ $BUILD_WXWIDGETS ]; then
# first build get/configure libpng as v1.6 is needed
wget -c "$LIBPNG_URL" -O "$LIBPNG_FILENAME" || { echo "Error: failed to download libpng"; exit 1; }
tar -xzf "$LIBPNG_FILENAME"
(cd "$LIBPNG_BASENAME"; ./configure --with-libpng-prefix=wxpng_; make $MAKEFLAGS)
wget -c "$ZLIB_URL" -O "$ZLIB_FILENAME" || { echo "Error: failed to download zlib"; exit 1; }
tar -xzf "$ZLIB_FILENAME"
(cd "$ZLIB_BASENAME"; ./configure; make $MAKEFLAGS)
svn co "$WXWIDGETS_URL" "$WXWIDGETS_BASENAME" || { echo "Error: failed to checkout wxWidgets"; exit 1; }
# replace src/png with the libpng folder
rm -rf "$WXWIDGETS_BASENAME/src/png"
mv "$LIBPNG_BASENAME" "$WXWIDGETS_BASENAME/src/png"
# replace src/zlib with the zlib folder
rm -rf "$WXWIDGETS_BASENAME/src/zlib"
mv "$ZLIB_BASENAME" "$WXWIDGETS_BASENAME/src/zlib"
cd "$WXWIDGETS_BASENAME"
./configure --prefix="$INSTALL_DIR" --disable-debug --disable-shared --enable-unicode \
--with-libjpeg=builtin --with-libpng=builtin --with-libtiff=no --with-expat=no \
--with-zlib=builtin --disable-richtext --with-gtk=2 \
CFLAGS="-Os -fPIC" CXXFLAGS="-Os -fPIC"
# update gzio to gzlib as this has changed between zlib 1.2.3 to 1.2.8
sed -i 's/gzio.c/gzlib.c/' Makefile
make $MAKEFLAGS || { echo "Error: failed to build wxWidgets"; exit 1; }
make install
cd ..
rm -rf "$WXWIDGETS_BASENAME" "$LIBPNG_FILENAME"
fi
# build Lua
if [ $BUILD_LUA ]; then
wget -c "$LUA_URL" -O "$LUA_FILENAME" || { echo "Error: failed to download Lua"; exit 1; }
tar -xzf "$LUA_FILENAME"
cd "$LUA_BASENAME"
if [ $BUILD_JIT ]; then
make CCOPT="-DLUAJIT_ENABLE_LUA52COMPAT" || { echo "Error: failed to build Lua"; exit 1; }
make install PREFIX="$INSTALL_DIR"
cp "$INSTALL_DIR/bin/luajit" "$INSTALL_DIR/bin/lua"
# move luajit to lua as it's expected by luasocket and other components
cp "$INSTALL_DIR"/include/luajit*/* "$INSTALL_DIR/include/"
else
# use POSIX as it has minimum dependencies (no readline and no ncurses required)
# LUA_USE_DLOPEN is required for loading libraries
(cd src; make all MYCFLAGS="$FPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -ldl") || { echo "Error: failed to build Lua"; exit 1; }
make install INSTALL_TOP="$INSTALL_DIR"
fi
cp "$INSTALL_DIR/bin/lua" "$INSTALL_DIR/bin/lua$LUAV"
cd ..
rm -rf "$LUA_FILENAME" "$LUA_BASENAME"
fi
# build wxLua
if [ $BUILD_WXLUA ]; then
svn co "$WXLUA_URL" "$WXLUA_BASENAME" || { echo "Error: failed to checkout wxLua"; exit 1; }
cd "$WXLUA_BASENAME/wxLua"
# the following patches wxlua source to fix live coding support in wxlua apps
# http://www.mail-archive.com/wxlua-users@lists.sourceforge.net/msg03225.html
sed -i 's/\(m_wxlState = wxLuaState(wxlState.GetLuaState(), wxLUASTATE_GETSTATE|wxLUASTATE_ROOTSTATE);\)/\/\/ removed by ZBS build process \/\/ \1/' modules/wxlua/wxlcallb.cpp
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=FALSE \
-DwxWidgets_CONFIG_EXECUTABLE="$INSTALL_DIR/bin/wx-config" \
-DwxWidgets_COMPONENTS="stc;html;aui;adv;core;net;base" \
-DwxLuaBind_COMPONENTS="stc;html;aui;adv;core;net;base" -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
-DwxLua_LUA_INCLUDE_DIR="$INSTALL_DIR/include" -DwxLua_LUA_LIBRARY="$INSTALL_DIR/lib/liblua.a" .
(cd modules/luamodule; make $MAKEFLAGS) || { echo "Error: failed to build wxLua"; exit 1; }
(cd modules/luamodule; make install/strip)
[ -f "$INSTALL_DIR/lib/libwx.so" ] || { echo "Error: libwx.so isn't found"; exit 1; }
cd ../..
rm -rf "$WXLUA_BASENAME"
fi
# build LuaSocket
if [ $BUILD_LUASOCKET ]; then
wget --no-check-certificate -c "$LUASOCKET_URL" -O "$LUASOCKET_FILENAME" || { echo "Error: failed to download LuaSocket"; exit 1; }
unzip "$LUASOCKET_FILENAME"
cd "$LUASOCKET_BASENAME"
mkdir -p "$INSTALL_DIR/lib/lua/$LUAV/"{mime,socket}
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/mime/core.so" src/mime.c -llua \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/socket/core.so" \
src/{auxiliar.c,buffer.c,except.c,inet.c,io.c,luasocket.c,options.c,select.c,tcp.c,timeout.c,udp.c,usocket.c} -llua \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
mkdir -p "$INSTALL_DIR/share/lua/$LUAV/socket"
cp src/{ftp.lua,http.lua,smtp.lua,tp.lua,url.lua} "$INSTALL_DIR/share/lua/$LUAV/socket"
cp src/{ltn12.lua,mime.lua,socket.lua} "$INSTALL_DIR/share/lua/$LUAV"
[ -f "$INSTALL_DIR/lib/lua/$LUAV/mime/core.so" ] || { echo "Error: mime/core.so isn't found"; exit 1; }
[ -f "$INSTALL_DIR/lib/lua/$LUAV/socket/core.so" ] || { echo "Error: socket/core.so isn't found"; exit 1; }
cd ..
rm -rf "$LUASOCKET_FILENAME" "$LUASOCKET_BASENAME"
fi
# now copy the compiled dependencies to ZBS binary directory
mkdir -p "$BIN_DIR" || { echo "Error: cannot create directory $BIN_DIR"; exit 1; }
[ $BUILD_LUA ] && cp "$INSTALL_DIR/bin/lua$LUAS" "$BIN_DIR"
[ $BUILD_WXLUA ] && cp "$INSTALL_DIR/lib/libwx.so" "$BIN_DIR"
if [ $BUILD_LUASOCKET ]; then
mkdir -p "$BIN_DIR/clibs$LUAS/"{mime,socket}
cp "$INSTALL_DIR/lib/lua/$LUAV/mime/core.so" "$BIN_DIR/clibs$LUAS/mime"
cp "$INSTALL_DIR/lib/lua/$LUAV/socket/core.so" "$BIN_DIR/clibs$LUAS/socket"
fi
echo "*** Build has been successfully completed ***"
exit 0

249
build/build-macosx.sh Executable file
View File

@@ -0,0 +1,249 @@
#!/bin/bash
# ZBS binary directory
BIN_DIR="$(dirname "$PWD")/bin"
# temporary installation directory for dependencies
INSTALL_DIR="$PWD/deps"
# Mac OS X global settings
MACOSX_ARCH="i386"
MACOSX_VERSION="10.6"
MACOSX_SDK_PATH="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"
# number of parallel jobs used for building
MAKEFLAGS="-j4"
# flags for manual building with gcc; build universal binaries for luasocket
MACOSX_FLAGS="-arch $MACOSX_ARCH -mmacosx-version-min=$MACOSX_VERSION"
if [ -d "$MACOSX_SDK_PATH" ]; then
echo "Building with $MACOSX_SDK_PATH"
MACOSX_FLAGS="$MACOSX_FLAGS -isysroot $MACOSX_SDK_PATH"
fi
BUILD_FLAGS="-O2 -arch x86_64 -dynamiclib -undefined dynamic_lookup $MACOSX_FLAGS -I $INSTALL_DIR/include -L $INSTALL_DIR/lib"
# paths configuration
WXWIDGETS_BASENAME="wxWidgets"
WXWIDGETS_URL="http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk"
WXLUA_BASENAME="wxlua"
WXLUA_URL="https://svn.code.sf.net/p/wxlua/svn/trunk"
LUASOCKET_BASENAME="luasocket-3.0-rc1"
LUASOCKET_FILENAME="v3.0-rc1.zip"
LUASOCKET_URL="https://github.com/diegonehab/luasocket/archive/$LUASOCKET_FILENAME"
# exit if the command line is empty
if [ $# -eq 0 ]; then
echo "Usage: $0 LIBRARY..."
exit 0
fi
WXLUASTRIP="/strip"
WXWIDGETSDEBUG="--disable-debug"
WXLUABUILD="MinSizeRel"
# iterate through the command line arguments
for ARG in "$@"; do
case $ARG in
5.2)
BUILD_52=true
;;
jit)
BUILD_JIT=true
;;
wxwidgets)
BUILD_WXWIDGETS=true
;;
lua)
BUILD_LUA=true
;;
wxlua)
BUILD_WXLUA=true
;;
luasocket)
BUILD_LUASOCKET=true
;;
debug)
WXLUASTRIP=""
WXWIDGETSDEBUG="--enable-debug=max"
WXLUABUILD="Debug"
;;
all)
BUILD_WXWIDGETS=true
BUILD_LUA=true
BUILD_WXLUA=true
BUILD_LUASOCKET=true
;;
*)
echo "Error: invalid argument $ARG"
exit 1
;;
esac
done
# check for g++
if [ ! "$(which g++)" ]; then
echo "Error: g++ isn't found. Please install GNU C++ compiler."
exit 1
fi
# check for cmake
if [ ! "$(which cmake)" ]; then
echo "Error: cmake isn't found. Please install CMake and add it to PATH."
exit 1
fi
# check for svn
if [ ! "$(which svn)" ]; then
echo "Error: svn isn't found. Please install console SVN client."
exit 1
fi
# check for wget
if [ ! "$(which wget)" ]; then
echo "Error: wget isn't found. Please install GNU Wget."
exit 1
fi
# create the installation directory
mkdir -p "$INSTALL_DIR" || { echo "Error: cannot create directory $INSTALL_DIR"; exit 1; }
LUAV="51"
LUAS=""
LUA_BASENAME="lua-5.1.5"
if [ $BUILD_52 ]; then
LUAV="52"
LUAS=$LUAV
LUA_BASENAME="lua-5.2.2"
fi
LUA_FILENAME="$LUA_BASENAME.tar.gz"
LUA_URL="http://www.lua.org/ftp/$LUA_FILENAME"
if [ $BUILD_JIT ]; then
LUA_BASENAME="LuaJIT-2.0.2"
LUA_FILENAME="$LUA_BASENAME.tar.gz"
LUA_URL="http://luajit.org/download/$LUA_FILENAME"
fi
# build wxWidgets
if [ $BUILD_WXWIDGETS ]; then
svn co "$WXWIDGETS_URL" "$WXWIDGETS_BASENAME" || { echo "Error: failed to checkout wxWidgets"; exit 1; }
cd "$WXWIDGETS_BASENAME"
MINSDK=""
if [ -d $MACOSX_SDK_PATH ]; then
MINSDK="--with-macosx-sdk=$MACOSX_SDK_PATH"
fi
# fix auto-complete crash by reverting an earlier revision
# http://trac.wxwidgets.org/ticket/15008#comment:12
svn merge -r 74098:74097 .
./configure --prefix="$INSTALL_DIR" $WXWIDGETSDEBUG --disable-shared --enable-unicode \
--with-libjpeg=builtin --with-libpng=builtin --with-libtiff=no --with-expat=no \
--with-zlib=builtin --disable-richtext \
--enable-macosx_arch=$MACOSX_ARCH --with-macosx-version-min=$MACOSX_VERSION $MINSDK \
--with-osx_cocoa CFLAGS="-Os" CXXFLAGS="-Os"
make $MAKEFLAGS || { echo "Error: failed to build wxWidgets"; exit 1; }
make install
cd ..
rm -rf "$WXWIDGETS_BASENAME"
fi
# build Lua
if [ $BUILD_LUA ]; then
wget -c "$LUA_URL" -O "$LUA_FILENAME" || { echo "Error: failed to download Lua"; exit 1; }
tar -xzf "$LUA_FILENAME"
cd "$LUA_BASENAME"
if [ $BUILD_JIT ]; then
make BUILDMODE=dynamic LUAJIT_SO=liblua.dylib TARGET_DYLIBPATH=liblua.dylib CC="gcc -m32" CCOPT="$MACOSX_FLAGS -DLUAJIT_ENABLE_LUA52COMPAT" || { echo "Error: failed to build Lua"; exit 1; }
make install PREFIX="$INSTALL_DIR"
cp "src/luajit" "$INSTALL_DIR/bin/lua"
cp "src/liblua.dylib" "$INSTALL_DIR/lib"
# move luajit to lua as it's expected by luasocket and other components
cp "$INSTALL_DIR"/include/luajit*/* "$INSTALL_DIR/include/"
else
sed -i "" 's/PLATS=/& macosx_dylib/' Makefile
# -O1 fixes this issue with for Lua 5.2 with i386: http://lua-users.org/lists/lua-l/2013-05/msg00070.html
printf "macosx_dylib:\n" >> src/Makefile
printf "\t\$(MAKE) LUA_A=\"liblua$LUAS.dylib\" AR=\"\$(CC) -dynamiclib $MACOSX_FLAGS -o\" RANLIB=\"strip -u -r\" \\\\\n" >> src/Makefile
printf "\tMYCFLAGS=\"-O1 -DLUA_USE_LINUX $MACOSX_FLAGS\" MYLDFLAGS=\"$MACOSX_FLAGS\" MYLIBS=\"-lreadline\" lua\n" >> src/Makefile
printf "\t\$(MAKE) MYCFLAGS=\"-DLUA_USE_LINUX $MACOSX_FLAGS\" MYLDFLAGS=\"$MACOSX_FLAGS\" luac\n" >> src/Makefile
make macosx_dylib || { echo "Error: failed to build Lua"; exit 1; }
make install INSTALL_TOP="$INSTALL_DIR"
mv "$INSTALL_DIR/bin/lua" "$INSTALL_DIR/bin/lua$LUAS"
cp src/liblua$LUAS.dylib "$INSTALL_DIR/lib"
fi
strip -u -r "$INSTALL_DIR/bin/lua$LUAS"
[ -f "$INSTALL_DIR/lib/liblua$LUAS.dylib" ] || { echo "Error: liblua$LUAS.dylib isn't found"; exit 1; }
cd ..
rm -rf "$LUA_FILENAME" "$LUA_BASENAME"
fi
# build wxLua
if [ $BUILD_WXLUA ]; then
svn co "$WXLUA_URL" "$WXLUA_BASENAME" || { echo "Error: failed to checkout wxLua"; exit 1; }
cd "$WXLUA_BASENAME/wxLua"
MINSDK=""
if [ -d $MACOSX_SDK_PATH ]; then
MINSDK="CMAKE_OSX_SYSROOT=$MACOSX_SDK_PATH"
fi
# the following patches wxlua source to fix live coding support in wxlua apps
# http://www.mail-archive.com/wxlua-users@lists.sourceforge.net/msg03225.html
sed -i "" 's/\(m_wxlState = wxLuaState(wxlState.GetLuaState(), wxLUASTATE_GETSTATE|wxLUASTATE_ROOTSTATE);\)/\/\/ removed by ZBS build process \/\/ \1/' modules/wxlua/wxlcallb.cpp
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -DCMAKE_BUILD_TYPE=$WXLUABUILD -DBUILD_SHARED_LIBS=FALSE \
-DCMAKE_OSX_ARCHITECTURES=$MACOSX_ARCH -DCMAKE_OSX_DEPLOYMENT_TARGET=$MACOSX_VERSION $MINSDK \
-DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DwxWidgets_CONFIG_EXECUTABLE="$INSTALL_DIR/bin/wx-config" \
-DwxWidgets_COMPONENTS="stc;html;aui;adv;core;net;base" \
-DwxLuaBind_COMPONENTS="stc;html;aui;adv;core;net;base" -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
-DwxLua_LUA_INCLUDE_DIR="$INSTALL_DIR/include" -DwxLua_LUA_LIBRARY="$INSTALL_DIR/lib/liblua.dylib" .
(cd modules/luamodule; make $MAKEFLAGS) || { echo "Error: failed to build wxLua"; exit 1; }
(cd modules/luamodule; make install$WXLUASTRIP)
if [ $WXLUASTRIP ]; then strip -u -r "$INSTALL_DIR/lib/libwx.dylib"; fi
[ -f "$INSTALL_DIR/lib/libwx.dylib" ] || { echo "Error: libwx.dylib isn't found"; exit 1; }
cd ../..
rm -rf "$WXLUA_BASENAME"
fi
# build LuaSocket
if [ $BUILD_LUASOCKET ]; then
wget --no-check-certificate -c "$LUASOCKET_URL" -O "$LUASOCKET_FILENAME" || { echo "Error: failed to download LuaSocket"; exit 1; }
unzip "$LUASOCKET_FILENAME"
cd "$LUASOCKET_BASENAME"
mkdir -p "$INSTALL_DIR/lib/lua/$LUAV/"{mime,socket}
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dylib" src/mime.c \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dylib" \
src/{auxiliar.c,buffer.c,except.c,inet.c,io.c,luasocket.c,options.c,select.c,tcp.c,timeout.c,udp.c,usocket.c} \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
strip -u -r "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dylib" "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dylib"
install_name_tool -id core.dylib "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dylib"
install_name_tool -id core.dylib "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dylib"
mkdir -p "$INSTALL_DIR/share/lua/$LUAV/socket"
cp src/{ftp.lua,http.lua,smtp.lua,tp.lua,url.lua} "$INSTALL_DIR/share/lua/$LUAV/socket"
cp src/{ltn12.lua,mime.lua,socket.lua} "$INSTALL_DIR/share/lua/$LUAV"
[ -f "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dylib" ] || { echo "Error: mime/core.dylib isn't found"; exit 1; }
[ -f "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dylib" ] || { echo "Error: socket/core.dylib isn't found"; exit 1; }
cd ..
rm -rf "$LUASOCKET_FILENAME" "$LUASOCKET_BASENAME"
fi
# now copy the compiled dependencies to ZBS binary directory
mkdir -p "$BIN_DIR" || { echo "Error: cannot create directory $BIN_DIR"; exit 1; }
if [ $BUILD_LUA ]; then
mkdir -p "$BIN_DIR/lua.app/Contents/MacOS"
cp "$INSTALL_DIR/bin/lua$LUAS" "$BIN_DIR/lua.app/Contents/MacOS"
cp "$INSTALL_DIR/bin/lua$LUAS" "$INSTALL_DIR/lib/liblua$LUAS.dylib" "$BIN_DIR"
fi
[ $BUILD_WXLUA ] && cp "$INSTALL_DIR/lib/libwx.dylib" "$BIN_DIR"
if [ $BUILD_LUASOCKET ]; then
mkdir -p "$BIN_DIR/clibs$LUAS/"{mime,socket}
cp "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dylib" "$BIN_DIR/clibs$LUAS/mime"
cp "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dylib" "$BIN_DIR/clibs$LUAS/socket"
fi
echo "*** Build has been successfully completed ***"
exit 0

308
build/build-win32.sh Normal file
View File

@@ -0,0 +1,308 @@
#!/bin/bash
# ZBS binary directory
BIN_DIR="$(dirname "$PWD")/bin"
# temporary installation directory for dependencies
INSTALL_DIR="$PWD/deps"
# number of parallel jobs used for building
MAKEFLAGS="-j1" # some make may hang on Windows with j4 or j7
# flags for manual building with gcc
BUILD_FLAGS="-O2 -shared -s -I $INSTALL_DIR/include -L $INSTALL_DIR/lib"
# paths configuration
WXWIDGETS_BASENAME="wxWidgets"
WXWIDGETS_URL="http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk"
WXLUA_BASENAME="wxlua"
WXLUA_URL="https://svn.code.sf.net/p/wxlua/svn/trunk"
LUASOCKET_BASENAME="luasocket-3.0-rc1"
LUASOCKET_FILENAME="v3.0-rc1.zip"
LUASOCKET_URL="https://github.com/diegonehab/luasocket/archive/$LUASOCKET_FILENAME"
OPENSSL_BASENAME="openssl-1.0.1e"
OPENSSL_FILENAME="$OPENSSL_BASENAME.tar.gz"
OPENSSL_URL="http://www.openssl.org/source/$OPENSSL_FILENAME"
LUASEC_BASENAME="luasec-0.4.1"
LUASEC_FILENAME="$LUASEC_BASENAME.zip"
LUASEC_URL="https://github.com/brunoos/luasec/archive/$LUASEC_FILENAME"
WINAPI_BASENAME="winapi"
WINAPI_URL="https://github.com/stevedonovan/winapi.git"
# exit if the command line is empty
if [ $# -eq 0 ]; then
echo "Usage: $0 LIBRARY..."
exit 0
fi
WXLUASTRIP="/strip"
WXWIDGETSDEBUG="--disable-debug"
WXLUABUILD="MinSizeRel"
# iterate through the command line arguments
for ARG in "$@"; do
case $ARG in
5.2)
BUILD_52=true
;;
jit)
BUILD_JIT=true
;;
wxwidgets)
BUILD_WXWIDGETS=true
;;
lua)
BUILD_LUA=true
;;
wxlua)
BUILD_WXLUA=true
;;
luasocket)
BUILD_LUASOCKET=true
;;
luasec)
BUILD_LUASEC=true
;;
winapi)
BUILD_WINAPI=true
;;
zbstudio)
BUILD_ZBSTUDIO=true
;;
debug)
WXLUASTRIP=""
WXWIDGETSDEBUG="--enable-debug=max --enable-debug_gdb"
WXLUABUILD="Debug"
;;
all)
BUILD_WXWIDGETS=true
BUILD_LUA=true
BUILD_WXLUA=true
BUILD_LUASOCKET=true
BUILD_WINAPI=true
BUILD_ZBSTUDIO=true
;;
*)
echo "Error: invalid argument $ARG"
exit 1
;;
esac
done
# check for g++
if [ ! "$(which g++)" ]; then
echo "Error: g++ isn't found. Please install MinGW C++ compiler."
exit 1
fi
# check for cmake
if [ ! "$(which cmake)" ]; then
echo "Error: cmake isn't found. Please install CMake and add it to PATH."
exit 1
fi
# check for svn
if [[ ($BUILD_WXWIDGETS || $BUILD_LUA) && ! "$(which svn)" ]]; then
echo "Error: svn isn't found. Please install console SVN client."
exit 1
fi
# check for git
if [[ $BUILD_WINAPI && ! "$(which git)" ]]; then
echo "Error: git isn't found. Please install console GIT client."
exit 1
fi
# check for wget
if [ ! "$(which wget)" ]; then
# NOTE: can't check the return status since mingw-get always returns 0 even in the case of errors :(
mingw-get install msys-wget
fi
# create the installation directory
mkdir -p "$INSTALL_DIR" || { echo "Error: cannot create directory $INSTALL_DIR"; exit 1; }
LUAV="51"
LUAS=""
LUA_BASENAME="lua-5.1.5"
if [ $BUILD_52 ]; then
LUAV="52"
LUAS=$LUAV
LUA_BASENAME="lua-5.2.2"
fi
LUA_FILENAME="$LUA_BASENAME.tar.gz"
LUA_URL="http://www.lua.org/ftp/$LUA_FILENAME"
if [ $BUILD_JIT ]; then
LUA_BASENAME="LuaJIT-2.0.2"
LUA_FILENAME="$LUA_BASENAME.tar.gz"
LUA_URL="http://luajit.org/download/$LUA_FILENAME"
fi
# build wxWidgets
if [ $BUILD_WXWIDGETS ]; then
svn co "$WXWIDGETS_URL" "$WXWIDGETS_BASENAME" || { echo "Error: failed to checkout wxWidgets"; exit 1; }
svn revert -R "$WXWIDGETS_BASENAME"
cd "$WXWIDGETS_BASENAME"
./configure --prefix="$INSTALL_DIR" $WXWIDGETSDEBUG --disable-shared --enable-unicode \
--with-libjpeg=builtin --with-libpng=builtin --with-libtiff=no --with-expat=no \
--with-zlib=builtin --disable-richtext \
CFLAGS="-Os -fno-keep-inline-dllexport" CXXFLAGS="-Os -fno-keep-inline-dllexport"
make $MAKEFLAGS || { echo "Error: failed to build wxWidgets"; exit 1; }
make install
cd ..
rm -rf "$WXWIDGETS_BASENAME"
fi
# build Lua
if [ $BUILD_LUA ]; then
wget -c "$LUA_URL" -O "$LUA_FILENAME" || { echo "Error: failed to download Lua"; exit 1; }
tar -xzf "$LUA_FILENAME"
cd "$LUA_BASENAME"
if [ $BUILD_JIT ]; then
make CCOPT="-DLUAJIT_ENABLE_LUA52COMPAT" || { echo "Error: failed to build Lua"; exit 1; }
make install PREFIX="$INSTALL_DIR"
cp "$INSTALL_DIR/bin/luajit.exe" "$INSTALL_DIR/bin/lua.exe"
# move luajit to lua as it's expected by luasocket and other components
cp "$INSTALL_DIR"/include/luajit*/* "$INSTALL_DIR/include/"
else
make mingw || { echo "Error: failed to build Lua"; exit 1; }
make install INSTALL_TOP="$INSTALL_DIR"
fi
cp src/lua$LUAV.dll "$INSTALL_DIR/lib"
cp "$INSTALL_DIR/bin/lua.exe" "$INSTALL_DIR/bin/lua$LUAV.exe"
[ -f "$INSTALL_DIR/lib/lua$LUAV.dll" ] || { echo "Error: lua$LUAV.dll isn't found"; exit 1; }
cd ..
rm -rf "$LUA_FILENAME" "$LUA_BASENAME"
fi
# build wxLua
if [ $BUILD_WXLUA ]; then
svn co "$WXLUA_URL" "$WXLUA_BASENAME" || { echo "Error: failed to checkout wxLua"; exit 1; }
svn revert -R "$WXLUA_BASENAME"
cd "$WXLUA_BASENAME/wxLua"
sed -i 's|:-/\(.\)/|:-\1:/|' "$INSTALL_DIR/bin/wx-config"
sed -i 's/execute_process(COMMAND/& sh/' build/CMakewxAppLib.cmake modules/wxstedit/build/CMakewxAppLib.cmake
# the following patches wxlua source to fix live coding support in wxlua apps
# http://www.mail-archive.com/wxlua-users@lists.sourceforge.net/msg03225.html
sed -i 's/\(m_wxlState = wxLuaState(wxlState.GetLuaState(), wxLUASTATE_GETSTATE|wxLUASTATE_ROOTSTATE);\)/\/\/ removed by ZBS build process \/\/ \1/' modules/wxlua/wxlcallb.cpp
# remove check for Lua 5.2 as it doesn't work with Twoface ABI mapper
sed -i 's/LUA_VERSION_NUM < 502/0/' modules/wxlua/wxlcallb.cpp
# (temporary) fix for compilation issue in wxlua in Windows using mingw (r184)
sed -i 's/defined(__MINGW32__) || defined(__GNUWIN32__)/0/' modules/wxbind/src/wxcore_bind.cpp
[ -f "$INSTALL_DIR/lib/libwxscintilla-2.9.a" ] && cp "$INSTALL_DIR/lib/libwxscintilla-2.9.a" "$INSTALL_DIR/lib/libwx_mswu_scintilla-2.9.a"
[ -f "$INSTALL_DIR/lib/libwxscintilla-3.0.a" ] && cp "$INSTALL_DIR/lib/libwxscintilla-3.0.a" "$INSTALL_DIR/lib/libwx_mswu_scintilla-3.0.a"
echo "set_target_properties(wxLuaModule PROPERTIES LINK_FLAGS -static)" >> modules/luamodule/CMakeLists.txt
cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -DCMAKE_BUILD_TYPE=$WXLUABUILD -DBUILD_SHARED_LIBS=FALSE \
-DwxWidgets_CONFIG_EXECUTABLE="$INSTALL_DIR/bin/wx-config" \
-DwxWidgets_COMPONENTS="stc;html;aui;adv;core;net;base" \
-DwxLuaBind_COMPONENTS="stc;html;aui;adv;core;net;base" -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
-DwxLua_LUA_INCLUDE_DIR="$INSTALL_DIR/include" -DwxLua_LUA_LIBRARY="$INSTALL_DIR/lib/lua51.dll" .
(cd modules/luamodule; make $MAKEFLAGS) || { echo "Error: failed to build wxLua"; exit 1; }
(cd modules/luamodule; make install$WXLUASTRIP)
[ -f "$INSTALL_DIR/bin/libwx.dll" ] || { echo "Error: libwx.dll isn't found"; exit 1; }
cd ../..
rm -rf "$WXLUA_BASENAME"
fi
# build LuaSocket
if [ $BUILD_LUASOCKET ]; then
wget --no-check-certificate -c "$LUASOCKET_URL" -O "$LUASOCKET_FILENAME" || { echo "Error: failed to download LuaSocket"; exit 1; }
unzip "$LUASOCKET_FILENAME"
cd "$LUASOCKET_BASENAME"
mkdir -p "$INSTALL_DIR/lib/lua/$LUAV/"{mime,socket}
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dll" src/mime.c -llua$LUAV \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
gcc $BUILD_FLAGS -DLUASOCKET_INET_PTON -D_WIN32_WINNT=0x0501 -o "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dll" \
src/{auxiliar.c,buffer.c,except.c,inet.c,io.c,luasocket.c,options.c,select.c,tcp.c,timeout.c,udp.c,wsocket.c} -lwsock32 -lws2_32 -llua$LUAV \
|| { echo "Error: failed to build LuaSocket"; exit 1; }
mkdir -p "$INSTALL_DIR/share/lua/$LUAV/socket"
cp src/{ftp.lua,http.lua,smtp.lua,tp.lua,url.lua} "$INSTALL_DIR/share/lua/$LUAV/socket"
cp src/{ltn12.lua,mime.lua,socket.lua} "$INSTALL_DIR/share/lua/$LUAV"
[ -f "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dll" ] || { echo "Error: mime/core.dll isn't found"; exit 1; }
[ -f "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dll" ] || { echo "Error: socket/core.dll isn't found"; exit 1; }
cd ..
rm -rf "$LUASOCKET_FILENAME" "$LUASOCKET_BASENAME"
fi
# build LuaSec
if [ $BUILD_LUASEC ]; then
# build openSSL
wget --no-check-certificate -c "$OPENSSL_URL" -O "$OPENSSL_FILENAME" || { echo "Error: failed to download OpenSSL"; exit 1; }
tar -xzf "$OPENSSL_FILENAME"
cd "$OPENSSL_BASENAME"
bash Configure mingw
make
make install_sw INSTALLTOP="$INSTALL_DIR"
cd ..
rm -rf "$OPENSSL_FILENAME" "$OPENSSL_BASENAME"
# build LuaSec
wget --no-check-certificate -c "$LUASEC_URL" -O "$LUASEC_FILENAME" || { echo "Error: failed to download LuaSec"; exit 1; }
unzip "$LUASEC_FILENAME"
# the folder in the archive is "luasec-luasec-....", so need to fix
mv "luasec-$LUASEC_BASENAME" $LUASEC_BASENAME
cd "$LUASEC_BASENAME"
gcc $BUILD_FLAGS -o "$INSTALL_DIR/lib/lua/5.1/ssl.dll" \
src/{timeout.c,buffer.c,io.c,context.c,ssl.c,wsocket.c} -lssl -lcrypto -lws2_32 -lgdi32 -llua51 \
|| { echo "Error: failed to build LuaSec"; exit 1; }
cp src/{ssl.lua,https.lua} "$INSTALL_DIR/share/lua/5.1"
[ -f "$INSTALL_DIR/lib/lua/5.1/ssl.dll" ] || { echo "Error: luasec.dll isn't found"; exit 1; }
cd ..
rm -rf "$LUASEC_FILENAME" "$LUASEC_BASENAME"
fi
# build winapi
if [ $BUILD_WINAPI ]; then
git clone "$WINAPI_URL" "$WINAPI_BASENAME"
cd "$WINAPI_BASENAME"
gcc $BUILD_FLAGS -DPSAPI_VERSION=1 -o "$INSTALL_DIR/lib/lua/5.1/winapi.dll" winapi.c wutils.c -lpsapi -lmpr -llua51 \
|| { echo "Error: failed to build winapi"; exit 1; }
[ -f "$INSTALL_DIR/lib/lua/5.1/winapi.dll" ] || { echo "Error: winapi.dll isn't found"; exit 1; }
cd ..
rm -rf "$WINAPI_BASENAME"
fi
# build ZBS launcher
if [ $BUILD_ZBSTUDIO ]; then
windres ../zbstudio/res/zbstudio.rc zbstudio.rc.o
gcc -O2 -s -mwindows -o ../zbstudio.exe win32_starter.c zbstudio.rc.o
rm zbstudio.rc.o
[ -f ../zbstudio.exe ] || { echo "Error: zbstudio.exe isn't found"; exit 1; }
fi
# now copy the compiled dependencies to ZBS binary directory
mkdir -p "$BIN_DIR" || { echo "Error: cannot create directory $BIN_DIR"; exit 1; }
[ $BUILD_LUA ] && cp "$INSTALL_DIR/bin/lua$LUAS.exe" "$INSTALL_DIR/lib/lua$LUAV.dll" "$BIN_DIR"
[ $BUILD_WXLUA ] && cp "$INSTALL_DIR/bin/libwx.dll" "$BIN_DIR/wx.dll"
[ $BUILD_WINAPI ] && cp "$INSTALL_DIR/lib/lua/5.1/winapi.dll" "$BIN_DIR"
[ $BUILD_LUASEC ] && cp "$INSTALL_DIR/lib/lua/5.1/ssl.dll" "$BIN_DIR"
if [ $BUILD_LUASOCKET ]; then
mkdir -p "$BIN_DIR/clibs$LUAS/"{mime,socket}
cp "$INSTALL_DIR/lib/lua/$LUAV/mime/core.dll" "$BIN_DIR/clibs$LUAS/mime"
cp "$INSTALL_DIR/lib/lua/$LUAV/socket/core.dll" "$BIN_DIR/clibs$LUAS/socket"
fi
# To build lua5.1.dll proxy:
# (1) get mkforwardlib-gcc.lua from http://lua-users.org/wiki/LuaProxyDllThree
# (2) run it as "lua mkforwardlib-gcc.lua lua51 lua5.1 X86"
# To build lua5.2.dll proxy:
# (1) get mkforwardlib-gcc-52.lua from http://lua-users.org/wiki/LuaProxyDllThree
# (2) run it as "lua mkforwardlib-gcc-52.lua lua52 lua5.2 X86"
echo "*** Build has been successfully completed ***"
exit 0

View File

@@ -1,10 +0,0 @@
#!/bin/bash
echo "Installing wxlua modules from ZeroBrane Studio repository..."
sudo add-apt-repository ppa:zerobranestudio/zerobranestudio
sudo apt-get update
sudo apt-get install wxlua28
# To remove wxlua and required packages use:
# sudo apt-get purge wxlua28
# sudo apt-get autoremove

View File

@@ -19,10 +19,21 @@ require "wx"
function FileSysGet(dir,spec)
local content = {}
local browse = wx.wxFileSystem()
local cwd = wx.wxGetCwd()
if not wx.wxFileName(dir):DirExists() then return content end
local f = browse:FindFirst(dir,spec)
while #f>0 do
table.insert(content,(f:gsub("^file:",""))) -- drop file: protocol (wx2.9+)
if f:match("^file:") then -- remove file: protocol (wx2.9+)
f = f:gsub(iswindows and "^file:/?" or "^file:","")
:gsub('%%(%x%x)', function(n) return string.char(tonumber(n, 16)) end)
end
-- wx2.9+ return absolute path here instead of expected relative; fix it
if wx.wxIsAbsolutePath(f) then
local relative = wx.wxFileName(f)
relative:MakeRelativeTo(cwd)
f = relative:GetFullPath()
end
table.insert(content, f)
f = browse:FindNext()
end
return content

View File

@@ -164,7 +164,7 @@ int main (int argc, char *argv[])
SetDllDirectory(".\\bin\\");
hinstLib = LoadLibrary("lua5.1.dll");
hinstLib = LoadLibrary("lua51.dll");
if (hinstLib != NULL)
{
luaL_newstate = (voidfunc*) GetProcAddress(hinstLib, "luaL_newstate");
@@ -214,7 +214,7 @@ int main (int argc, char *argv[])
MB_OK|MB_ICONERROR);
} else {
MessageBox(NULL,
TEXT("Could not load all functions that are supposed to be located in the lua5.1.dll\n"
TEXT("Could not load all functions that are supposed to be located in the lua51.dll\n"
"This is not supposed to be happening..."),
TEXT("Failed to start editor"),
MB_OK|MB_ICONERROR);
@@ -224,7 +224,7 @@ int main (int argc, char *argv[])
FreeLibrary(hinstLib);
} else {
MessageBox(NULL,
TEXT("The lua5.1.dll could not be found or loaded, please check the working directory of the application.\n"),
TEXT("The lua51.dll could not be found or loaded, please check the working directory of the application.\n"),
TEXT("Failed to initialize editor"),
MB_OK|MB_ICONERROR);
}

231
cfg/i18n/cn.lua Normal file
View File

@@ -0,0 +1,231 @@
return {
["%d instance"] = "%d 个体", -- src\editor\findreplace.lua
["&About"] = "关于(&A)", -- src\editor\menu_help.lua
["&Add Watch"] = "添加监视(&A)", -- src\editor\debugger.lua
["&Break"] = "中断", -- src\editor\menu_project.lua
["&Close Page"] = "关闭页面", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Compile"] = "编译", -- src\editor\menu_project.lua
["&Copy"] = "复制", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Default Layout"] = "布局", -- src\editor\menu_view.lua
["&Delete Watch"] = "删除监视", -- src\editor\debugger.lua
["&Down"] = "往下", -- src\editor\findreplace.lua
["&Edit Watch"] = "编辑监视", -- src\editor\debugger.lua
["&Edit"] = "编辑", -- src\editor\menu_edit.lua
["&File"] = "文件", -- src\editor\menu_file.lua
["&Find All"] = "查找全部", -- src\editor\findreplace.lua
["&Find Next"] = "查找下一个", -- src\editor\findreplace.lua
["&Find"] = "查找", -- src\editor\menu_search.lua
["&Fold/Unfold All"] = "全 折叠/展开", -- src\editor\menu_edit.lua
["&Goto Line"] = "到...行", -- src\editor\menu_search.lua
["&Help"] = "帮助", -- src\editor\menu_help.lua
["&New"] = "新建", -- src\editor\menu_file.lua
["&Open..."] = "打开...", -- src\editor\menu_file.lua
["&Output/Console Window"] = "输出/主控台视窗", -- src\editor\menu_view.lua
["&Paste"] = "粘贴", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Project"] = "项目", -- src\editor\menu_project.lua, src\editor\inspect.lua
["&Redo"] = "重做", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Replace All"] = "全替换", -- src\editor\findreplace.lua
["&Replace"] = "替换", -- src\editor\findreplace.lua, src\editor\menu_search.lua
["&Run"] = "执行", -- src\editor\menu_project.lua
["&Save"] = "保存", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Search"] = "搜索", -- src\editor\menu_search.lua
["&Sort"] = "分类", -- src\editor\menu_search.lua
["&Stack Window"] = "叠视窗/堆栈视窗", -- src\editor\menu_view.lua
["&Start Debugger Server"] = "开启除错器伺服机", -- src\editor\menu_project.lua
["&Subdirectories"] = "子文件夹", -- src\editor\findreplace.lua
["&Undo"] = "撤消", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Up"] = "往上", -- src\editor\findreplace.lua
["&View"] = "视图", -- src\editor\menu_view.lua
["&Watch Window"] = "监视视窗", -- src\editor\menu_view.lua
["About %s"] = "关于 %s", -- src\editor\menu_help.lua
["Add Watch Expression"] = "添加监视表达式", -- src\editor\editor.lua
["Add to Scratchpad"] = "添加至暂存器", -- src\editor\editor.lua
["All files"] = "全部文件", -- src\editor\commands.lua
["Allow external process to start debugging"] = "允许外部进程开启除错", -- src\editor\menu_project.lua
["Analyze the source code"] = "分析源代码", -- src\editor\inspect.lua
["Analyze"] = "分析", -- src\editor\inspect.lua
["Auto Complete Identifiers"] = "自动补全标识符", -- src\editor\menu_edit.lua
["Auto complete while typing"] = "当输入时自动补全", -- src\editor\menu_edit.lua
["Break execution at the next executed line of code"] = "执行下一语句之后中断执行", -- src\editor\menu_project.lua, src\editor\gui.lua
["C&lear Output Window"] = "清除输出视窗", -- src\editor\menu_project.lua
["C&omment/Uncomment"] = "注释/消除注释", -- src\editor\menu_edit.lua
["Can't debug the script in the active editor window."] = "不能在现行编辑视窗对脚本进行除错", -- src\editor\debugger.lua
["Can't find file '%s' in the current project to activate for debugging. Update the project or open the file in the editor before debugging."] = "在当前项目中寻找不到文件 '%s' 以进行激活然后除错, 更新项目或是在编辑器里开启文件后再除错", -- src\editor\debugger.lua
["Can't process auto-recovery record; invalid format: %s."] = "不能处理自动恢复存档: %s", -- src\editor\commands.lua
["Can't run the entry point script ('%s')."] = "不能执行entry point脚本 ('%s')", -- src\editor\debugger.lua
["Can't start debugging session due to internal error '%s'."] = "除错动作失败 '%s'.", -- src\editor\debugger.lua
["Can't start debugging without an opened file or with the current file not being saved ('%s')."] = "不能启动除错,没有文档被开启或当前更改过的文档还没保存('%s')", -- src\editor\debugger.lua
["Cancel"] = "取消", -- src\editor\findreplace.lua
["Choose ..."] = "请选 ...", -- src\editor\menu_project.lua
["Choose a project directory"] = "选择项目文件夹", -- src\editor\findreplace.lua, src\editor\menu_project.lua
["Clear &Dynamic Words"] = "清除动态词汇", -- src\editor\menu_edit.lua
["Clear the output window before compiling or debugging"] = "编译或除错前清除输出视窗", -- src\editor\menu_project.lua
["Close &Other Pages"] = "关闭其他页面", -- src\editor\gui.lua
["Close A&ll Pages"] = "关闭全部页面", -- src\editor\gui.lua
["Close the current editor window"] = "关闭当前编译视窗", -- src\editor\menu_file.lua
["Co&ntinue"] = "继续", -- src\editor\menu_project.lua
["Col: %d"] = "列: %d", -- src\editor\editor.lua
["Comment or uncomment current or selected lines"] = "注释/消除注释 当前或被选的语句", -- src\editor\menu_edit.lua
["Compilation error"] = "编译错误", -- src\editor\debugger.lua, src\editor\commands.lua
["Compilation successful; %.0f%% success rate (%d/%d)."] = "编译成功; 成功率: %.0f%% (%d/%d).", -- src\editor\commands.lua
["Compile the current file"] = "编译当前的文档", -- src\editor\menu_project.lua
["Complete &Identifier"] = "补全标识符", -- src\editor\menu_edit.lua
["Complete the current identifier"] = "补全当前标识符", -- src\editor\menu_edit.lua
["Copy selected text to clipboard"] = "复制被选的text到clipboard", -- src\editor\menu_edit.lua
["Couldn't activate file '%s' for debugging; continuing without it."] = "不能激活 '%s' 以除错; 省略后继续进行", -- src\editor\debugger.lua
["Create an empty document"] = "新建空文档", -- src\editor\menu_file.lua, src\editor\gui.lua
["Cu&t"] = "剪切", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Cut selected text to clipboard"] = "剪切被选的text到clipboard", -- src\editor\menu_edit.lua
["Debugger server started at %s:%d."] = "除错伺服器起始于 %s:%d.", -- src\editor\debugger.lua
["Debugging session completed (%s)."] = "除错会话完成 (%s)", -- src\editor\debugger.lua
["Debugging session started in '%s'."] = "除错会话于 '%s' 起始", -- src\editor\debugger.lua
["Debugging suspended at %s:%s (couldn't activate the file)."] = "除错挂起于 %s:%s (不能激活文档).", -- src\editor\debugger.lua
["Directory"] = "文件夹", -- src\editor\findreplace.lua
["Do you want to reload it?"] = "需要重新导入吗?", -- src\editor\editor.lua
["Do you want to save the changes to '%s'?"] = "需要把更改保存于 '%s'?", -- src\editor\commands.lua
["E&xit"] = "离开", -- src\editor\menu_file.lua
["Enter Lua code and press Enter to run it."] = "输入Lua代码然后按 <Enter> 以执行", -- src\editor\shellbox.lua
["Enter line number"] = "输入行号码", -- src\editor\menu_search.lua
["Error while loading API file: %s"] = "导入API档时出错误: %s", -- src\editor\autocomplete.lua
["Error while loading configuration file: %s"] = "导入configuration档时出错误: %s", -- src\editor\style.lua
["Error while processing API file: %s"] = "处理API档时出错误: %s", -- src\editor\autocomplete.lua
["Error while processing configuration file: %s"] = "处理configuration档时出错误: %s", -- src\editor\style.lua
["Error"] = "错误", -- src\editor\commands.lua
["Evaluate in Console"] = "在主控台中估值", -- src\editor\editor.lua
["Execute the current project/file and keep updating the code to see immediate results"] = "执行当前项目/文档和更新代码以便得到执行结果", -- src\editor\menu_project.lua
["Execute the current project/file"] = "执行当前项目/文档", -- src\editor\menu_project.lua
["Execution error"] = "执行出错误", -- src\editor\debugger.lua
["Exit program"] = "离开程式", -- src\editor\menu_file.lua
["Expr"] = "表达式", -- src\editor\debugger.lua
["Expression"] = "表达式", -- src\editor\debugger.lua
["File '%s' has been modified on disk."] = "磁碟上的文档 '%s' 已被更改", -- src\editor\editor.lua
["File '%s' has more recent timestamp than restored '%s'; please review before saving."] =
"文档 '%s' 的时间戳比 '%s' 更新近; 请检验后再保存", -- src\editor\commands.lua
["File '%s' no longer exists."] = "文档 '%s' 已不存在", -- src\editor\editor.lua, src\editor\menu_file.lua
["File Type"] = "文档类", -- src\editor\findreplace.lua
["File history"] = "文档历史", -- src\editor\menu_file.lua
["Find &In Files"] = "在文档中查找", -- src\editor\menu_search.lua
["Find &Next"] = "查找下一个", -- src\editor\menu_search.lua
["Find &Previous"] = "查找上一个", -- src\editor\menu_search.lua
["Find In Files"] = "在文档中查找", -- src\editor\findreplace.lua
["Find and replace text in files"] = "在文档中查找text然后更换", -- src\editor\menu_search.lua
["Find and replace text"] = "查找text然后更换", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find text in files"] = "在文档中查找text", -- src\editor\menu_search.lua
["Find text"] = "查找text", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find the earlier text occurence"] = "查找之前出现的text", -- src\editor\menu_search.lua
["Find the next text occurrence"] = "查找之後将出现的text", -- src\editor\menu_search.lua
["Find"] = "查找", -- src\editor\findreplace.lua
["Fold or unfold all code folds"] = "折叠/展开所有代码折叠", -- src\editor\menu_edit.lua
["Found auto-recovery record and restored saved session."] = "找到自动恢复存档和恢复已存对话", -- src\editor\commands.lua
["Found"] = "找到", -- src\editor\findreplace.lua
["Full &Screen"] = "全屏", -- src\editor\menu_view.lua
["Go to a selected line"] = "到所选的行", -- src\editor\menu_search.lua
["Goto Line"] = "到...行", -- src\editor\menu_search.lua
["INS"] = "INS", -- src\editor\editor.lua
["In Files"] = "在档案里", -- src\editor\findreplace.lua
["Jump to a function definition..."] = "跳到函数定义", -- src\editor\editor.lua
["Known Files"] = "所知的文档", -- src\editor\commands.lua
["Ln: %d"] = "行: %d", -- src\editor\editor.lua
["Local console"] = "本地主控台", -- src\editor\shellbox.lua, src\editor\gui.lua
["Lua &Interpreter"] = "Lua 解释器", -- src\editor\menu_project.lua
["Mapped remote request for '%s' to '%s'."] = "映射远程请求 '%s' 至 '%s'", -- src\editor\debugger.lua
["Match &case"] = "case匹配", -- src\editor\findreplace.lua
["Match &whole word"] = "全句匹配", -- src\editor\findreplace.lua
["Mixed end-of-line encodings detected."] = "发现混杂的EOL编码", -- src\editor\commands.lua
["OVR"] = "OVR", -- src\editor\editor.lua
["Open an existing document"] = "打开现存文档", -- src\editor\menu_file.lua, src\editor\gui.lua
["Open file"] = "打开文档", -- src\editor\commands.lua
["Options"] = "选项", -- src\editor\findreplace.lua
["Output (running)"] = "输出 (进行中)", -- src\editor\output.lua
["Output"] = "输出", -- src\editor\output.lua, src\editor\settings.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "从clipboard粘贴text", -- src\editor\menu_edit.lua
["Preferences"] = "首选项", -- src\editor\menu_edit.lua
["Prepend '=' to show complex values on multiple lines."] = "在多行展现复杂值请前置 '='", -- src\editor\shellbox.lua
["Press cancel to abort."] = "按 <cancel> 以退出", -- src\editor\commands.lua
["Program '%s' started in '%s' (pid: %d)."] = "程式 '%s' 执行于 '%s' (pid: %d).", -- src\editor\output.lua
["Program can't start because conflicting process is running as '%s'."] = "程序不能启动因为有名为 '%s' 的冲突进程", -- src\editor\output.lua
["Program completed in %.2f seconds (pid: %d)."] = "程序于 %.2f 秒完成 (pid: %d).", -- src\editor\output.lua
["Program starting as '%s'."] = "程式以 '%s' 执行", -- src\editor\output.lua
["Program stopped (pid: %d)."] = "程式停止 (pid: %d).", -- src\editor\debugger.lua
["Program unable to run as '%s'."] = "程式不能以 '%s' 执行", -- src\editor\output.lua
["Project Directory"] = "项目文件夹", -- src\editor\menu_project.lua
["Project"] = "项目", -- src\editor\settings.lua, src\editor\gui.lua
["Project/&FileTree Window"] = "项目/文档树 视窗", -- src\editor\menu_view.lua
["R/O"] = "唯读", -- src\editor\editor.lua
["R/W"] = "读写", -- src\editor\editor.lua
["Re&place In Files"] = "在文档中替换", -- src\editor\menu_search.lua
["Recent Files"] = "最近的文档", -- src\editor\menu_file.lua
["Redo last edit undone"] = "重做最后被取消的编辑", -- src\editor\menu_edit.lua
["Refused a request to start a new debugging session as there is one in progress already."] = "因为有另一个除错在进行,拒绝开启新的除错对话", -- src\editor\debugger.lua
["Regular &expression"] = "正则表达式", -- src\editor\findreplace.lua
["Remote console"] = "远程主控台", -- src\editor\shellbox.lua
["Replace A&ll"] = "更换全部", -- src\editor\findreplace.lua
["Replace"] = "更换", -- src\editor\findreplace.lua
["Replaced an invalid UTF8 character with %s."] = "以%s更换无效的UTF8字元", -- src\editor\commands.lua
["Replaced"] = "更换", -- src\editor\findreplace.lua
["Replacing"] = "更换中", -- src\editor\findreplace.lua
["Reset to default layout"] = "重置缺省布局", -- src\editor\menu_view.lua
["Resets the dynamic word list for autocompletion"] = "为自动补全重置动态word list", -- src\editor\menu_edit.lua
["Run as Scratchpad"] = "以Scratchpad执行", -- src\editor\menu_project.lua
["S&top Debugging"] = "停止除错", -- src\editor\menu_project.lua
["S&top Process"] = "停止进程", -- src\editor\menu_project.lua
["Save &As..."] = "另存为...", -- src\editor\menu_file.lua, src\editor\gui.lua
["Save A&ll"] = "全部存档", -- src\editor\menu_file.lua
["Save Changes?"] = "存档更新?", -- src\editor\commands.lua
["Save all open documents"] = "保存所有开启的文档", -- src\editor\menu_file.lua, src\editor\gui.lua
["Save file as"] = "文档另存为", -- src\editor\commands.lua
["Save file?"] = "保存文档?", -- src\editor\commands.lua
["Save the current document to a file with a new name"] = "用新档案名称保存当前文档", -- src\editor\menu_file.lua
["Save the current document"] = "保存当前文档", -- src\editor\menu_file.lua, src\editor\gui.lua
["Saved auto-recover at %s."] = "在 %s 存档自动恢复", -- src\editor\commands.lua
["Scope"] = "范围", -- src\editor\findreplace.lua
["Scratchpad error"] = "暂存器错误", -- src\editor\debugger.lua
["Searching for"] = "搜索", -- src\editor\findreplace.lua
["Select &All"] = "选全部", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Select all text in the editor"] = "选编辑器内的所有text", -- src\editor\menu_edit.lua
["Set From Current File"] = "从当前文档设置", -- src\editor\menu_project.lua
["Set project directory from current file"] = "从当前文档设置项目文件夹", -- src\editor\menu_project.lua, src\editor\gui.lua
["Set the interpreter to be used"] = "设置解释器", -- src\editor\menu_project.lua
["Set the project directory to be used"] = "设置项目文件夹", -- src\editor\menu_project.lua
["Settings: System"] = "设置: 系统", -- src\editor\menu_edit.lua
["Settings: User"] = "设置: 用户", -- src\editor\menu_edit.lua
["Show &Tooltip"] = "展现tooltip", -- src\editor\menu_edit.lua
["Show tooltip for current position; place cursor after opening bracket of function"] = "在当前的位置展现tooltip; 把游标放置于函数的开括号之后", -- src\editor\menu_edit.lua
["Sort selected lines"] = "对被选的行进行排列", -- src\editor\menu_search.lua
["Stack"] = "堆栈", -- src\editor\debugger.lua
["Start &Debugging"] = "开始除错", -- src\editor\menu_project.lua
["Start debugging"] = "开始除错", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step &Into"] = "除错运行 进入子程序/函数", -- src\editor\menu_project.lua
["Step &Over"] = "除错运行 掠过子程序/函数", -- src\editor\menu_project.lua
["Step O&ut"] = "除错运行 离开子程序/函数", -- src\editor\menu_project.lua
["Step into"] = "除错运行 进入子程序/函数", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step out of the current function"] = "除错运行 离开当前的函数", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step over"] = "除错运行 掠过子程序/函数", -- src\editor\menu_project.lua, src\editor\gui.lua
["Stop the currently running process"] = "终止目前进行着的进程", -- src\editor\menu_project.lua, src\editor\gui.lua
["Switch to or from full screen mode"] = "切换全屏模式", -- src\editor\menu_view.lua
["Text not found."] = "寻找不到text", -- src\editor\findreplace.lua
["The API file must be located in a subdirectory of the API directory."] = "API file必须存放在API文件夹中的子文件夹", -- src\editor\autocomplete.lua
["Toggle Break&point"] = "切换中断点", -- src\editor\menu_project.lua
["Toggle breakpoint"] = "切换中断点", -- src\editor\menu_project.lua, src\editor\gui.lua
["Tr&ace"] = "追踪", -- src\editor\menu_project.lua
["Trace execution showing each executed line"] = "执行追踪展示每一执行过的语句", -- src\editor\menu_project.lua
["Unable to load file '%s'."] = "导出文件失败 '%s'.", -- src\editor\commands.lua
["Unable to save file '%s': %s"] = "保存文件失败 '%s': %s", -- src\editor\commands.lua
["Unable to stop program (pid: %d), code %d."] = "停止程序失败 (pid: %d), 代码 %d.", -- src\editor\debugger.lua
["Undo last edit"] = "清除前编辑动作", -- src\editor\menu_edit.lua
["Use '%s' to see full description."] = "用 '%s' 来看全解析", -- src\editor\editor.lua
["Use '%s' to show line endings and '%s' to convert them."] = "用 '%s' 来显示语句的终结和 '%s' 来进行转换", -- src\editor\commands.lua
["Use 'clear' to clear the shell output and the history."] = "用 'clear' 来清除shell的输出和历史", -- src\editor\shellbox.lua
["Use Shift-Enter for multiline code."] = "用 <Shift-Enter> 来处理多行代码", -- src\editor\shellbox.lua
["Value"] = "数值", -- src\editor\debugger.lua
["View the output/console window"] = "查看输出/主控台视窗", -- src\editor\menu_view.lua
["View the project/filetree window"] = "查看项目/文件树视窗", -- src\editor\menu_view.lua
["View the stack window"] = "查看堆栈视窗", -- src\editor\menu_view.lua, src\editor\gui.lua
["View the watch window"] = "查看监视视窗", -- src\editor\menu_view.lua, src\editor\gui.lua
["Watch"] = "监视", -- src\editor\debugger.lua
["Welcome to the interactive Lua interpreter."] = "欢迎来到互动 Lua interpreter.", -- src\editor\shellbox.lua
["Wrap ar&ound"] = "卷绕", -- src\editor\findreplace.lua
["You must save the program first."] = "必须先保存程序", -- src\editor\commands.lua
["on line %d"] = "在 %d 行", -- src\editor\debugger.lua, src\editor\commands.lua
["traced %d instruction"] = "追踪 %d 指令", -- src\editor\debugger.lua
}

236
cfg/i18n/de.lua Normal file
View File

@@ -0,0 +1,236 @@
return {
[0] = function(c) return c == 1 and 1 or 2 end, -- plural
["%d instance"] = {"%d Instanz", "%d Instanzen"}, -- src\editor\findreplace.lua
["%s event failed: %s"] = "Ereignis fehlgeschlagen : %s", -- src\editor\package.lua
["&About"] = "&Über", -- src\editor\menu_help.lua
["&Add Watch"] = "&Beobachtungspunkt hinzufügen", -- src\editor\debugger.lua
["&Break"] = "&Unterbrechung", -- src\editor\menu_project.lua
["&Close Page"] = "S&eite schließen", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Compile"] = "&Compiler", -- src\editor\menu_project.lua
["&Copy"] = "&Kopieren", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Default Layout"] = "Standard-&Layout", -- src\editor\menu_view.lua
["&Delete Watch"] = "&Beobachtungspunkt entfernen", -- src\editor\debugger.lua
["&Down"] = "&Runter", -- src\editor\findreplace.lua
["&Edit Watch"] = "&Beobachtungspunkt bearbeiten", -- src\editor\debugger.lua
["&Edit"] = "&Bearbeiten", -- src\editor\menu_edit.lua
["&File"] = "&Datei", -- src\editor\menu_file.lua
["&Find All"] = "&Alle finden", -- src\editor\findreplace.lua
["&Find Next"] = "&Nächsten finden", -- src\editor\findreplace.lua
["&Find"] = "&Finden", -- src\editor\menu_search.lua
["&Fold/Unfold All"] = "A&lles ein-/ausklappen", -- src\editor\menu_edit.lua
["&Goto Line"] = "&Gehe zu Zeile", -- src\editor\menu_search.lua
["&Help"] = "&Hilfe", -- src\editor\menu_help.lua
["&New"] = "&Neu", -- src\editor\menu_file.lua
["&Open..."] = "&Öffnen...", -- src\editor\menu_file.lua
["&Output/Console Window"] = "&Ausgabefenster/Konsole", -- src\editor\menu_view.lua
["&Paste"] = "&Einfügen", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Project"] = "&Projekt", -- src\editor\menu_project.lua, src\editor\inspect.lua
["&Redo"] = "&Wiederholen", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Replace All"] = "&Alles ersetzen", -- src\editor\findreplace.lua
["&Replace"] = "&Ersetzen", -- src\editor\findreplace.lua, src\editor\menu_search.lua
["&Run"] = "&Starten", -- src\editor\menu_project.lua
["&Save"] = "&Speichern", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Search"] = "&Suchen", -- src\editor\menu_search.lua
["&Sort"] = "&Sortieren", -- src\editor\menu_search.lua
["&Stack Window"] = "&Stapel/Stack", -- src\editor\menu_view.lua
["&Start Debugger Server"] = "De&bugserver starten", -- src\editor\menu_project.lua
["&Subdirectories"] = "&Unterverzeichnisse", -- src\editor\findreplace.lua
["&Undo"] = "&Rückgängig", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Up"] = "&Hoch", -- src\editor\findreplace.lua
["&View"] = "&Ansicht", -- src\editor\menu_view.lua
["&Watch Window"] = "&Beobachtungspunkte", -- src\editor\menu_view.lua
[".&bak on Replace"] = ".&bak bei Ersetzen", -- src\editor\findreplace.lua
["About %s"] = "Über %s", -- src\editor\menu_help.lua
["Add Watch Expression"] = "Beobachtungspunkt hinzufügen", -- src\editor\editor.lua
["Add To Scratchpad"] = "Zu Entwurf hinzufügen", -- src\editor\editor.lua
["All files"] = "Alle Dateien", -- src\editor\commands.lua
["Allow external process to start debugging"] = "Externem Prozeß erlauben, den Debugger zu starten", -- src\editor\menu_project.lua
["Analyze the source code"] = "Quellcode analysieren", -- src\editor\inspect.lua
["Analyze"] = "&Analyseroutine", -- src\editor\inspect.lua
["Auto Complete Identifiers"] = "Auto-Vervollständigen von Bezeichnern", -- src\editor\menu_edit.lua
["Auto complete while typing"] = "Auto-Vervollständigen beim Tippen", -- src\editor\menu_edit.lua
["Break execution at the next executed line of code"] = "Programmausführung bei der nächsten ausgeführten Zeile stoppen", -- src\editor\menu_project.lua, src\editor\gui.lua
["C&lear Output Window"] = "Ausgabefenster &löschen", -- src\editor\menu_project.lua
["C&omment/Uncomment"] = "(Aus-)/&Kommentieren", -- src\editor\menu_edit.lua
["Can't debug the script in the active editor window."] = "Script kann im aktiven Editorfenster nicht gedebuggt werden.", -- src\editor\debugger.lua
["Can't find file '%s' in the current project to activate for debugging. Update the project or open the file in the editor before debugging."] = "Kann Datei '%s' zwecks Debugging im aktuellen Projekt nicht finden. Bitte Projekt aktualisieren oder Datei in den Editor laden.", -- src\editor\debugger.lua
["Can't process auto-recovery record; invalid format: %s."] = "Auto-Wiederherstellen nicht möglich; ungültiges Format: %s.", -- src\editor\commands.lua
["Can't run the entry point script ('%s')."] = "Kann Script für Einsprungspunkt ('%s') nicht ausführen.", -- src\editor\debugger.lua
["Can't start debugging session due to internal error '%s'."] = "Debugging kann nicht gestartet werden wegen internem Fehler '%s'.", -- src\editor\debugger.lua
["Can't start debugging without an opened file or with the current file not being saved ('%s')."] = "Debugging kann nicht gestartet werden ohne geöffnete Datei oder wenn die aktuelle Datei nicht gespeichert ist ('%s').", -- src\editor\debugger.lua
["Cancel"] = "Abbrechen", -- src\editor\findreplace.lua
["Choose ..."] = "Wählen...", -- src\editor\menu_project.lua
["Choose a project directory"] = "Projektverzeichnis auswählen", -- src\editor\findreplace.lua, src\editor\menu_project.lua
["Clear &Dynamic Words"] = "&Dynamic Words löschen", -- src\editor\menu_edit.lua
["Clear the output window before compiling or debugging"] = "Vor Kompilieren oder Debuggen das Ausgabefenster löschen", -- src\editor\menu_project.lua
["Close &Other Pages"] = "A&ndere Seiten schließen", -- src\editor\gui.lua
["Close A&ll Pages"] = "&Alle Seiten schließen", -- src\editor\gui.lua
["Close the current editor window"] = "Aktuelles Editorfenster schließen", -- src\editor\menu_file.lua
["Co&ntinue"] = "&Fortsetzen", -- src\editor\menu_project.lua
["Col: %d"] = "Spalte: %d", -- src\editor\editor.lua
["Comment or uncomment current or selected lines"] = "Ausgewählte bzw. aktive Zeile (un-)kommentieren", -- src\editor\menu_edit.lua
["Compilation error"] = "Fehler beim Kompilieren", -- src\editor\debugger.lua, src\editor\commands.lua
["Compilation successful; %.0f%% success rate (%d/%d)."] = "Kompilieren erfolgreich; Erfolgsquote von %.0f%% (%d/%d).", -- src\editor\commands.lua
["Compile the current file"] = "Aktuelle Datei kompilieren", -- src\editor\menu_project.lua
["Complete &Identifier"] = "&Bezeichner vervollständigen", -- src\editor\menu_edit.lua
["Complete the current identifier"] = " Aktuellen Bezeichner vervollständigen", -- src\editor\menu_edit.lua
["Copy selected text to clipboard"] = "Text in Zwischenablage kopieren", -- src\editor\menu_edit.lua
["Couldn't activate file '%s' for debugging; continuing without it."] = "Konnte Datei '%s' zwecks nicht Debugging aktivieren; fahre ohne die Datei fort.", -- src\editor\debugger.lua
["Create an empty document"] = "Leeres Dokument anlegen", -- src\editor\menu_file.lua, src\editor\gui.lua
["Cu&t"] = "A&usschneiden", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Cut selected text to clipboard"] = "Schneide ausgewählten Text in die Zwischenablage hinein", -- src\editor\menu_edit.lua
["Debugger server started at %s:%d."] = "Debugserver gestartet an %s:%d.", -- src\editor\debugger.lua
["Debugging session completed (%s)."] = "Debugging Session beendet (%s).", -- src\editor\debugger.lua
["Debugging session started in '%s'."] = "Debugging Session gestartet '%s'.", -- src\editor\debugger.lua
["Debugging suspended at %s:%s (couldn't activate the file)."] = "Debugging angehalten bei %s:%s (konnte Datei nicht aktivieren).", -- src\editor\debugger.lua
["Directory"] = "Verzeichnis", -- src\editor\findreplace.lua
["Do you want to reload it?"] = "Neu laden?", -- src\editor\editor.lua
["Do you want to save the changes to '%s'?"] = "Änderungen an '%s' speichern?", -- src\editor\commands.lua
["E&xit"] = "&Beenden", -- src\editor\menu_file.lua
["Enter Lua code and press Enter to run it."] = "Lua-Code eingeben und Enter drücken zum Ausführen.", -- src\editor\shellbox.lua
["Enter line number"] = "Zeilennummer eingeben", -- src\editor\menu_search.lua
["Error while loading API file: %s"] = "Fehler beim Laden von API-Datei: %s", -- src\editor\autocomplete.lua
["Error while loading configuration file: %s"] = "Fehler beim Laden von Konfigurationsdatei: %s", -- src\editor\style.lua
["Error while processing API file: %s"] = "Fehler beim Lesen von API-Datei: %s", -- src\editor\autocomplete.lua
["Error while processing configuration file: %s"] = "Fehler beim Lesen von Konfiguratonsdatei: %s", -- src\editor\style.lua
["Error"] = "Fehler", -- src\editor\commands.lua
["Evaluate In Console"] = "In Konsole auswerten", -- src\editor\editor.lua
["Execute the current project/file and keep updating the code to see immediate results"] = "Aktuelles Projekt/ aktuelle Datei ausführen und Quellcode ändern, um Ergebnisse in Echtzeit zu sehen", -- src\editor\menu_project.lua
["Execute the current project/file"] = "Aktuelles Projekt/ aktuelle Datei ausführen", -- src\editor\menu_project.lua
["Execution error"] = "Fehler bei Ausführung", -- src\editor\debugger.lua
["Exit program"] = "Programm beenden", -- src\editor\menu_file.lua
["Expr"] = "Ausdr.", -- src\editor\debugger.lua
["Expression"] = "Ausdruck", -- src\editor\debugger.lua
["File '%s' has been modified on disk."] = "Datei '%s' wurde auf der Festplatte geändert.", -- src\editor\editor.lua
["File '%s' has more recent timestamp than restored '%s'; please review before saving."] = "Datei '%s' hat neueren Zeitstempel als wiederhergestellte Datei '%s'; bitte vor dem Speichern kontrollieren.", -- src\editor\commands.lua
["File '%s' no longer exists."] = "Datei '%s' existiert nicht mehr.", -- src\editor\editor.lua, src\editor\menu_file.lua
["File Type"] = "Dateityp", -- src\editor\findreplace.lua
["File history"] = "Dateiverlauf", -- src\editor\menu_file.lua
["Find &In Files"] = "Finde &in Dateien", -- src\editor\menu_search.lua
["Find &Next"] = "Finde &Nächste", -- src\editor\menu_search.lua
["Find &Previous"] = "Finde &Vorherige", -- src\editor\menu_search.lua
["Find In Files"] = "Finde in Dateien", -- src\editor\findreplace.lua
["Find and replace text in files"] = "Finde und ersetze Text in Dateien", -- src\editor\menu_search.lua
["Find and replace text"] = "Finde und ersetze Text", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find text in files"] = "Finde Text in Dateien", -- src\editor\menu_search.lua
["Find text"] = "Finde Text", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find the earlier text occurence"] = "Finde vorheriges Auftreten des Textes", -- src\editor\menu_search.lua
["Find the next text occurrence"] = "Finde nächstes Auftreten des Textes", -- src\editor\menu_search.lua
["Find"] = "Finden", -- src\editor\findreplace.lua
["Fold or unfold all code folds"] = "Alle Stellen im Code ein-/ausklappen ", -- src\editor\menu_edit.lua
["Found auto-recovery record and restored saved session."] = "Autowiederherstellen-Aufzeichnung gefunden und vorherige Sitzung wiederhergestellt.", -- src\editor\commands.lua
["Found"] = "Gefunden", -- src\editor\findreplace.lua
["Full &Screen"] = "&Vollbild", -- src\editor\menu_view.lua
["Go To Definition"] = "Gehe zu Definition", -- src\editor\editor.lua
["Go to a selected line"] = "Gehe zu ausgewählter Zeile", -- src\editor\menu_search.lua
["Goto Line"] = "Gehe zu Zeile", -- src\editor\menu_search.lua
["INS"] = "INS", -- src\editor\editor.lua
["In Files"] = "In Dateien", -- src\editor\findreplace.lua
["Jump to a function definition..."] = "Springe zu Funktions-Definition...", -- src\editor\editor.lua
["Known Files"] = "Bekannte Dateien", -- src\editor\commands.lua
["Ln: %d"] = "Zeile: %d", -- src\editor\editor.lua
["Local console"] = "Lokale Konsole", -- src\editor\shellbox.lua, src\editor\gui.lua
["Lua &Interpreter"] = "&Lua Interpreter", -- src\editor\menu_project.lua
["Mapped remote request for '%s' to '%s'."] = "Mapped remote request for '%s' to '%s'.", -- src\editor\debugger.lua
["Match &case"] = "&Groß-/Kleinschreibung", -- src\editor\findreplace.lua
["Match &whole word"] = "Ganzes &Wort", -- src\editor\findreplace.lua
["Mixed end-of-line encodings detected."] = "Gemischte End-of-Line Kodierung entdeckt.", -- src\editor\commands.lua
["OVR"] = "OVR", -- src\editor\editor.lua
["Open an existing document"] = "Öffne existierendes Dokument", -- src\editor\menu_file.lua, src\editor\gui.lua
["Open file"] = "Öffne Datei", -- src\editor\commands.lua
["Options"] = "Optionen", -- src\editor\findreplace.lua
["Output (running)"] = "Ausgabe (ausgeführt)", -- src\editor\output.lua
["Output"] = "Ausgabe", -- src\editor\output.lua, src\editor\settings.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Text aus Zwischenablage einfügen", -- src\editor\menu_edit.lua
["Preferences"] = "Einstellungen", -- src\editor\menu_edit.lua
["Prepend '=' to show complex values on multiple lines."] = "'=' voranstellen, um komplexe Ausdrücke auf mehrere Zeilen zu verteilen.", -- src\editor\shellbox.lua
["Press cancel to abort."] = "Abbrechen Drücken zum Beenden.", -- src\editor\commands.lua
["Program '%s' started in '%s' (pid: %d)."] = "Programm '%s' gestartet in '%s' (pid : %d).", -- src\editor\output.lua
["Program can't start because conflicting process is running as '%s'."] = "Programm kann nicht starten, da blockierender Prozeß als '%s' läuft.", -- src\editor\output.lua
["Program completed in %.2f seconds (pid: %d)."] = "Programm beendet nach %.2f Sekunden (pid : %d).", -- src\editor\output.lua
["Program starting as '%s'."] = "Programm gestartet als '%s'.", -- src\editor\output.lua
["Program stopped (pid: %d)."] = "Programm gestoppt (pid: %d).", -- src\editor\debugger.lua
["Program unable to run as '%s'."] = "Programm kann nicht als '%s' laufen.", -- src\editor\output.lua
["Project Directory"] = "&Projektverzeichnis", -- src\editor\menu_project.lua
["Project"] = "Projekt", -- src\editor\settings.lua, src\editor\gui.lua
["Project/&FileTree Window"] = "&Projekt/Datei Fenster", -- src\editor\menu_view.lua
["R/O"] = "R/O", -- src\editor\editor.lua
["R/W"] = "R/W", -- src\editor\editor.lua
["Re&place In Files"] = "Ersetze in &Dateien", -- src\editor\menu_search.lua
["Recent Files"] = "Letzte Dateien", -- src\editor\menu_file.lua
["Redo last edit undone"] = "Stelle letzte rückgängig gemachte Bearbeitung wieder her", -- src\editor\menu_edit.lua
["Refused a request to start a new debugging session as there is one in progress already."] = "Starten einer neuen Debuggingsession abgelehnt, da bereits eine läuft.", -- src\editor\debugger.lua
["Regular &expression"] = "&Regulärer Ausdruck", -- src\editor\findreplace.lua
["Remote console"] = "Fensteuerungs-Konsole", -- src\editor\shellbox.lua
["Rename All Instances"] = "Umbenennen aller Instanzen", -- src\editor\editor.lua
["Replace A&ll"] = "A&lles ersetzen", -- src\editor\findreplace.lua
["Replace"] = "Ersetzen", -- src\editor\findreplace.lua
["Replaced an invalid UTF8 character with %s."] = "Unbekanntes UTF8-Symbol ersetzt mit %s.", -- src\editor\commands.lua
["Replaced"] = "Ersetzt:", -- src\editor\findreplace.lua
["Replacing"] = "Am Ersetzen", -- src\editor\findreplace.lua
["Reset to default layout"] = "Standard-Layout wiederherstellen", -- src\editor\menu_view.lua
["Resets the dynamic word list for autocompletion"] = "Zurücksetzen der Liste der dynamischen Wörter für Autovervollständigung", -- src\editor\menu_edit.lua
["Run as Scratchpad"] = "Als &Entwurf starten", -- src\editor\menu_project.lua
["S&top Debugging"] = "Debugging a&nhalten", -- src\editor\menu_project.lua
["S&top Process"] = "Prozeß &anhalten", -- src\editor\menu_project.lua
["Save &As..."] = "S&peichern als...", -- src\editor\menu_file.lua, src\editor\gui.lua
["Save A&ll"] = "&Alle Speichern", -- src\editor\menu_file.lua
["Save Changes?"] = "Änderungen speichern?", -- src\editor\commands.lua
["Save all open documents"] = "Alle offenen Dokumente speichern", -- src\editor\menu_file.lua, src\editor\gui.lua
["Save file as"] = "Datei speichern als", -- src\editor\commands.lua
["Save file?"] = "Datei speichern?", -- src\editor\commands.lua
["Save the current document to a file with a new name"] = "Aktuelles Dokument unter neuem Namen speichern", -- src\editor\menu_file.lua
["Save the current document"] = "Aktuelles Dokument speichern", -- src\editor\menu_file.lua, src\editor\gui.lua
["Saved auto-recover at %s."] = "Autowiederherstellen gespeichert unter %s.", -- src\editor\commands.lua
["Scope"] = "Richtung", -- src\editor\findreplace.lua
["Scratchpad error"] = "Fehler im Entwurf", -- src\editor\debugger.lua
["Searching for"] = "Suchen nach", -- src\editor\findreplace.lua
["Select &All"] = "&Alles Auswählen", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Select all text in the editor"] = "Kompletten Text im Editor auswählen", -- src\editor\menu_edit.lua
["Set From Current File"] = "Anhand der aktuellen Datei festlegen", -- src\editor\menu_project.lua
["Set project directory from current file"] = "Lege Projektverzeichnis anhand der aktuellen Datei fest", -- src\editor\menu_project.lua, src\editor\gui.lua
["Set the interpreter to be used"] = "Wähle zu benutzenden Interpreter aus", -- src\editor\menu_project.lua
["Set the project directory to be used"] = "Lege zu benutzendes Projektverzeichnis fest", -- src\editor\menu_project.lua
["Settings: System"] = "Einstellungen: System", -- src\editor\menu_edit.lua
["Settings: User"] = "Einstellungen: Nutzer", -- src\editor\menu_edit.lua
["Show &Tooltip"] = "&Tooltip zeigen", -- src\editor\menu_edit.lua
["Show Location"] = "Ordner öffnen", -- src\editor\gui.lua, src\editor\filetree.lua
["Show tooltip for current position; place cursor after opening bracket of function"] = "Zeige Tooltip für aktuelle Position; setze Cursor hinter die öffnende Klammer der Funktion", -- src\editor\menu_edit.lua
["Sort selected lines"] = "Ausgewählte Zeilen sortieren", -- src\editor\menu_search.lua
["Stack"] = "Stack", -- src\editor\debugger.lua
["Start &Debugging"] = "&Debugging starten", -- src\editor\menu_project.lua
["Start debugging"] = "Debugging starten", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step &Into"] = "Schritt h&inein", -- src\editor\menu_project.lua
["Step &Over"] = "&Überspringen", -- src\editor\menu_project.lua
["Step O&ut"] = "Schritt &raus", -- src\editor\menu_project.lua
["Step into"] = "Schritt hinein", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step out of the current function"] = "Schritt aus der aktuellen Funktion heraus", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step over"] = "Überspringen", -- src\editor\menu_project.lua, src\editor\gui.lua
["Stop the currently running process"] = "Aktuell laufenden Prozeß stoppen", -- src\editor\menu_project.lua, src\editor\gui.lua
["Switch to or from full screen mode"] = "Vollbild an/aus", -- src\editor\menu_view.lua
["Text not found."] = "Text nicht gefunden.", -- src\editor\findreplace.lua
["The API file must be located in a subdirectory of the API directory."] = "Die API-Datei muß sich in einem Unterverzeichnis des API-Vereichnisses befinden.", -- src\editor\autocomplete.lua
["Toggle Break&point"] = "&Haltepunkt an/aus", -- src\editor\menu_project.lua
["Toggle breakpoint"] = "Haltepunkt an/aus", -- src\editor\menu_project.lua, src\editor\gui.lua
["Tr&ace"] = "Ablauf &verfolgen", -- src\editor\menu_project.lua
["Trace execution showing each executed line"] = "Ablaufverfolgung zeigt jede ausgeführte Zeile an", -- src\editor\menu_project.lua
["Unable to load file '%s'."] = "Scheitern beim Laden von Datei '%s'.", -- src\editor\commands.lua
["Unable to save file '%s': %s"] = "Scheitern beim Speichern von Datei '%s' : %s", -- src\editor\commands.lua
["Unable to stop program (pid: %d), code %d."] = "Scheitern beim Stoppen des Prozesses (pid : %d), code %d.", -- src\editor\debugger.lua
["Undo last edit"] = "Letzte Änderung rückgängig machen", -- src\editor\menu_edit.lua
["Use '%s' to see full description."] = "'%s' für eine komplette Beschreibung.", -- src\editor\editor.lua
["Use '%s' to show line endings and '%s' to convert them."] = "'%s' um Zeilenende-Codes zu sehen, und '%s' um sie zu konvertieren.", -- src\editor\commands.lua
["Use 'clear' to clear the shell output and the history."] = "'clear' um Ausgabefenster und Verlauf zu löschen.", -- src\editor\shellbox.lua
["Use Shift-Enter for multiline code."] = "<Umsch-Eingabetaste> für Code in mehreren Zeilen.", -- src\editor\shellbox.lua
["Value"] = "Wert", -- src\editor\debugger.lua
["View the output/console window"] = "Ausgabe-/Konsolenfenster ansehen", -- src\editor\menu_view.lua
["View the project/filetree window"] = "Projekt-/Dateifenster ansehen", -- src\editor\menu_view.lua
["View the stack window"] = "Stapel/Stack-Fenster ansehen", -- src\editor\menu_view.lua, src\editor\gui.lua
["View the watch window"] = "Fenster für Beobachtungspunkte ansehen", -- src\editor\menu_view.lua, src\editor\gui.lua
["Watch"] = "Beobachtungspunkte", -- src\editor\debugger.lua
["Welcome to the interactive Lua interpreter."] = "Willkommen zum interaktiven Lua-Interpretr!", -- src\editor\shellbox.lua
["Wrap ar&ound"] = "Am Anfang fortsetzen", -- src\editor\findreplace.lua
["You must save the program first."] = "Erst das Programm speichern.", -- src\editor\commands.lua
["on line %d"] = "in Zeile %d", -- src\editor\debugger.lua, src\editor\commands.lua, src\editor\editor.lua
["traced %d instruction"] = {"%d Anweisung verfolgt", "%d Anweisungen verfolgt"} -- src\editor\debugger.lua
}

View File

@@ -1,4 +1,5 @@
return {
[0] = function(c) return c == 1 and 1 or 2 end, -- plural
["traced %d instruction"] = {"traced %d instruction", "traced %d instructions"}, -- src\editor\debugger.lua
["%d instance"] = {"%d instance", "%d instances"}, -- src\editor\findreplace.lua
}

View File

@@ -6,10 +6,11 @@ return {
["&About"] = "&Acerca de...", -- src\editor\menu_help.lua
["&Add Watch"] = "Añadir observación", -- src\editor\debugger.lua
["&Break"] = "Ruptura", -- src\editor\menu_project.lua
["&Close Page"] = "Cerrar página", -- src\editor\menu_file.lua
["&Close Page"] = "Cerrar página", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Compile"] = "Compilar", -- src\editor\menu_project.lua
["&Copy"] = "Copiar", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Default Layout"] = "Diseño por defecto", -- src\editor\menu_view.lua
["&Delete Watch"] = "Eliminar observación", -- src\editor\debugger.lua
["&Edit Watch"] = "Editar observación", -- src\editor\debugger.lua
["&Edit"] = "Editar", -- src\editor\menu_edit.lua
["&File"] = "Archivo", -- src\editor\menu_file.lua
@@ -23,10 +24,9 @@ return {
["&Paste"] = "Pegar", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Project"] = "Proyecto", -- src\editor\menu_project.lua, src\editor\inspect.lua
["&Redo"] = "Rehacer", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Remove Watch"] = "Eliminar observación", -- src\editor\debugger.lua
["&Replace"] = "Remplazar", -- src\editor\menu_search.lua
["&Run"] = "Ejecutar", -- src\editor\menu_project.lua
["&Save"] = "Guardar", -- src\editor\menu_file.lua
["&Save"] = "Guardar", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Search"] = "Buscar", -- src\editor\menu_search.lua
["&Sort"] = "Clasificar", -- src\editor\menu_search.lua
["&Stack Window"] = "Ventana de la pila de ejecución", -- src\editor\menu_view.lua
@@ -34,10 +34,9 @@ return {
["&Undo"] = "Deshacer", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&View"] = "Ver", -- src\editor\menu_view.lua
["&Watch Window"] = "Ventana de observaciones", -- src\editor\menu_view.lua
["&Watches"] = "Observaciones", -- src\editor\debugger.lua
["About ZeroBrane Studio"] = "Acerca de ZeroBrane Studio", -- src\editor\menu_help.lua
["About %s"] = "Acerca de %s", -- src\editor\menu_help.lua
["Add Watch Expression"] = "Añadir expresión de observación", -- src\editor\editor.lua
["Add to Scratchpad"] = "Añadir al borrador", -- src\editor\editor.lua
["Add To Scratchpad"] = "Añadir al borrador", -- src\editor\editor.lua
["All files"] = "Todos los archivos", -- src\editor\commands.lua
["Allow external process to start debugging"] = "Permitir proceso externo para iniciar depuración", -- src\editor\menu_project.lua
["Analyze the source code"] = "Analizar el código fuente", -- src\editor\inspect.lua
@@ -53,9 +52,12 @@ return {
["Can't run the entry point script ('%s')."] = "No se pude ejecutar el punto de entrada del script (%s).", -- src\editor\debugger.lua
["Can't start debugging session due to internal error '%s'."] = "No se puede iniciar la sesión de depuración debido a un error interno '%s'.'", -- src\editor\debugger.lua
["Can't start debugging without an opened file or with the current file not being saved ('%s')."] = "No se puede iniciar la depuración sin abrir un archivo o si no ha sido guardado ('%s').", -- src\editor\debugger.lua
["Choose ..."] = nil, -- src\editor\menu_project.lua
["Choose a project directory"] = "Elegir el directorio del proyecto", -- src\editor\menu_project.lua
["Clear &Dynamic Words"] = "Limpiar las palabras dinámicas", -- src\editor\menu_edit.lua
["Clear the output window before compiling or debugging"] = "Limpiar la ventana de salida antes de compilar o depurar", -- src\editor\menu_project.lua
["Close &Other Pages"] = nil, -- src\editor\gui.lua
["Close A&ll Pages"] = nil, -- src\editor\gui.lua
["Close the current editor window"] = "Cerrar la ventana actual del editor", -- src\editor\menu_file.lua
["Co&ntinue"] = "Continuar", -- src\editor\menu_project.lua
["Col: %d"] = "Col: %d", -- src\editor\editor.lua
@@ -65,24 +67,26 @@ return {
["Compile the current file"] = "Compilar el archivo actual", -- src\editor\menu_project.lua
["Complete &Identifier"] = "Completar identificador", -- src\editor\menu_edit.lua
["Complete the current identifier"] = "Completar el actual identificador", -- src\editor\menu_edit.lua
["Copy selected text to clipboard"] = "Copiar el texto seleccionado al portapapeles", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Copy selected text to clipboard"] = "Copiar el texto seleccionado al portapapeles", -- src\editor\menu_edit.lua
["Couldn't activate file '%s' for debugging; continuing without it."] = "No se pudo activar el archivo '%s' para la depuración; continuar sin él.", -- src\editor\debugger.lua
["Create an empty document"] = "Crear un documento en blanco", -- src\editor\menu_file.lua, src\editor\gui.lua
["Cu&t"] = "Cortar", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Cut selected text to clipboard"] = "Cortar el texto selecionado al portapapeles", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Cut selected text to clipboard"] = "Cortar el texto selecionado al portapapeles", -- src\editor\menu_edit.lua
["Debugger server started at %s:%d."] = "Servidor de depuración inciado en %s:%s", -- src\editor\debugger.lua
["Debugging session completed (%s)."] = "Sesión de depuración completada (%s).", -- src\editor\debugger.lua
["Debugging session started in '%s'."] = "Sesión de depuración iniciada en '%s'.", -- src\editor\debugger.lua
["Debugging suspended at %s:%s (couldn't activate the file)."] = nil, -- src\editor\debugger.lua
["Do you want to reload it?"] = "¿Quieres recargarlo?", -- src\editor\editor.lua
["Do you want to save the changes to '%s'?"] = "¿Quieres guardar los cambios en '%s'?", -- src\editor\commands.lua
["E&xit"] = "Salir", -- src\editor\menu_file.lua
["Enter Lua code and press Enter to run it."] = "Introduce código Lua y pulsa <Entrer> para ejecutarlo.", -- src\editor\shellbox.lua
["Enter line number"] = "Introduce número de línea", -- src\editor\menu_search.lua
["Error while loading API file: %s"] = "Error mientras se cargaba el archivo de API: %s", -- src\editor\autocomplete.lua
["Error while loading configuration file: %s"] = nil, -- src\editor\style.lua
["Error while processing API file: %s"] = "Error mientras se procesaba el archivo de API: %s", -- src\editor\autocomplete.lua
["Error while processing configuration file: %s"] = nil, -- src\editor\style.lua
["Error"] = "Error", -- src\editor\commands.lua
["Evaluate &Watches"] = "Evaluar las observaciones", -- src\editor\debugger.lua
["Evaluate in Console"] = "Evaluar en consola", -- src\editor\editor.lua
["Evaluate In Console"] = "Evaluar en consola", -- src\editor\editor.lua
["Execute the current project/file and keep updating the code to see immediate results"] = "Ejecutar el proyecto/archivo actual y manteniendo actualizado el código para ver resultados en tiempo real", -- src\editor\menu_project.lua
["Execute the current project/file"] = "Ejecutar el proyecto/archivo actual", -- src\editor\menu_project.lua
["Execution error"] = "Error de ejecución", -- src\editor\debugger.lua
@@ -113,12 +117,14 @@ return {
["Ln: %d"] = "Ln: %d", -- src\editor\editor.lua
["Local console"] = "Consola local", -- src\editor\shellbox.lua, src\editor\gui.lua
["Lua &Interpreter"] = "Intérprete Lua", -- src\editor\menu_project.lua
["Mapped remote request for '%s' to '%s'."] = nil, -- src\editor\debugger.lua
["Mixed end-of-line encodings detected."] = nil, -- src\editor\commands.lua
["OVR"] = "OVR", -- src\editor\editor.lua
["Open an existing document"] = "Abrir un documento existente", -- src\editor\menu_file.lua, src\editor\gui.lua
["Open file"] = "Abrir archivo", -- src\editor\commands.lua
["Output (running)"] = "Salida (en ejecución)", -- src\editor\output.lua
["Output"] = "Salida", -- src\editor\output.lua, src\editor\settings.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Pegar texto desde el portapapeles", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Pegar texto desde el portapapeles", -- src\editor\menu_edit.lua
["Prepend '=' to show complex values on multiple lines."] = "Antepón '=' para ver valores complejos en líneas múltiples", -- src\editor\shellbox.lua
["Press cancel to abort."] = "Presiona cancelar para abortar.", -- src\editor\commands.lua
["Program '%s' started in '%s' (pid: %d)."] = "Programa '%s' iniciado en '%s' (pid: %d).", -- src\editor\output.lua
@@ -127,21 +133,23 @@ return {
["Program starting as '%s'."] = "Programa iniciado como '%s'.", -- src\editor\output.lua
["Program stopped (pid: %d)."] = "Programa parado (pid: %d).", -- src\editor\debugger.lua
["Program unable to run as '%s'."] = "No se puede ejecutar el programa como '%s'.", -- src\editor\output.lua
["Project Directory"] = nil, -- src\editor\menu_project.lua
["Project"] = "Proyecto", -- src\editor\settings.lua, src\editor\gui.lua
["Project/&FileTree Window"] = "Ventana de proyecto/árbol de archivos", -- src\editor\menu_view.lua
["R/O"] = "R/O", -- src\editor\editor.lua
["R/W"] = "R/W", -- src\editor\editor.lua
["Re&place In Files"] = "Remplazar en archivos", -- src\editor\menu_search.lua
["Recent Files"] = "Archivos recientes", -- src\editor\menu_file.lua
["Redo last edit undone"] = "Rehacer la última edición deshecha", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Redo last edit undone"] = "Rehacer la última edición deshecha", -- src\editor\menu_edit.lua
["Refused a request to start a new debugging session as there is one in progress already."] = "No se pudo lanzar una nueva sesión de depuración porque ya hay una en curso.", -- src\editor\debugger.lua
["Remote console"] = "Consola remota", -- src\editor\shellbox.lua
["Replaced an invalid UTF8 character with %s."] = nil, -- src\editor\commands.lua
["Reset to default layout"] = "Restablecer el diseño por defecto", -- src\editor\menu_view.lua
["Resets the dynamic word list for autocompletion"] = "Restablecer la lista dinámica de palabras para autocompletado", -- src\editor\menu_edit.lua
["Run as Scratchpad"] = "Ejecutar como borrador", -- src\editor\menu_project.lua
["S&top Debugging"] = "Parar depuración", -- src\editor\menu_project.lua
["S&top Process"] = "Parar proceso", -- src\editor\menu_project.lua
["Save &As..."] = "Guardar como...", -- src\editor\menu_file.lua
["Save &As..."] = "Guardar como...", -- src\editor\menu_file.lua, src\editor\gui.lua
["Save A&ll"] = "Guardar todo", -- src\editor\menu_file.lua
["Save Changes?"] = "¿Guardar cambios?", -- src\editor\commands.lua
["Save all open documents"] = "Guardar todos los documentos abiertos", -- src\editor\menu_file.lua, src\editor\gui.lua
@@ -153,12 +161,14 @@ return {
["Scratchpad error"] = "Error en el borrador", -- src\editor\debugger.lua
["Select &All"] = "Seleccionar todo", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Select all text in the editor"] = "Seleccionar todo el texto en el editor", -- src\editor\menu_edit.lua
["Set project directory from current file"] = "Establecer el directorio del proyecto del archivo actual", -- src\editor\gui.lua
["Set From Current File"] = nil, -- src\editor\menu_project.lua
["Set project directory from current file"] = "Establecer el directorio del proyecto del archivo actual", -- src\editor\menu_project.lua, src\editor\gui.lua
["Set the interpreter to be used"] = "Establecer el intérprete a ser usado", -- src\editor\menu_project.lua
["Set the project directory to be used"] = nil, -- src\editor\menu_project.lua
["Show &Tooltip"] = "Ver tooltip", -- src\editor\menu_edit.lua
["Show tooltip for current position; place cursor after opening bracket of function"] = "Ver tooltip para la posición actual; posicionar el cursor después de abrir el paréntisis de los argumentos de la función", -- src\editor\menu_edit.lua
["Sort selected lines"] = "Clasificar las líneas seleccionadas", -- src\editor\menu_search.lua
["Stack Window"] = "Ventana de la pila de ejecución", -- src\editor\debugger.lua
["Stack"] = nil, -- src\editor\debugger.lua
["Start &Debugging"] = "Comenzar depuración", -- src\editor\menu_project.lua
["Start debugging"] = "Comenzar depuración", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step &Into"] = "Paso dentro", -- src\editor\menu_project.lua
@@ -177,7 +187,9 @@ return {
["Unable to load file '%s'."] = "No se pudo cargar el archivo '%s'.", -- src\editor\commands.lua
["Unable to save file '%s': %s"] = "No se pudo guardar el archivo '%s': %s", -- src\editor\commands.lua
["Unable to stop program (pid: %d), code %d."] = "No se puedo parar el programa (pid: %d), código %d.", -- src\editor\debugger.lua
["Undo last edit"] = "Deshacer la última edición", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Undo last edit"] = "Deshacer la última edición", -- src\editor\menu_edit.lua
["Use '%s' to see full description."] = nil, -- src\editor\editor.lua
["Use '%s' to show line endings and '%s' to convert them."] = nil, -- src\editor\commands.lua
["Use 'clear' to clear the shell output and the history."] = "Usa 'clear' para limpiar la consola de salida y el historial.", -- src\editor\shellbox.lua
["Use Shift-Enter for multiline code."] = "Usa <Shift-Enter> para código multilínea.", -- src\editor\shellbox.lua
["Value"] = "Valor", -- src\editor\debugger.lua
@@ -185,7 +197,7 @@ return {
["View the project/filetree window"] = "Ver la ventana de proyecto/árbol de archivos", -- src\editor\menu_view.lua
["View the stack window"] = "Ver la ventana de la pila de ejecución", -- src\editor\menu_view.lua, src\editor\gui.lua
["View the watch window"] = "Ver la ventana de observación", -- src\editor\menu_view.lua, src\editor\gui.lua
["Watch Window"] = "Ventana de observación", -- src\editor\debugger.lua
["Watch"] = nil, -- src\editor\debugger.lua
["Welcome to the interactive Lua interpreter."] = "Bienvenido al intérprete interactico de Lua.", -- src\editor\shellbox.lua
["You must save the program first."] = "Debes guardar el programa primero", -- src\editor\commands.lua
["on line %d"] = "en la línea %d", -- src\editor\debugger.lua, src\editor\commands.lua

View File

@@ -1,5 +1,7 @@
return {
[0] = function(c) return c == 1 and 1 or 2 end, -- plural
["%d instance"] = {"%d occurrence", "%d occurrences"}, -- src\editor\findreplace.lua
["%s event failed: %s"] = "L'événement %s a échoué : %s", -- src\editor\package.lua
["&About"] = "À &propos", -- src\editor\menu_help.lua
["&Add Watch"] = "&Ajouter une expression", -- src\editor\debugger.lua
["&Break"] = "&Interrompre", -- src\editor\menu_project.lua
@@ -7,12 +9,16 @@ return {
["&Compile"] = "&Compiler", -- src\editor\menu_project.lua
["&Copy"] = "Co&pier", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Default Layout"] = "Affichage par &défaut", -- src\editor\menu_view.lua
["&Delete Watch"] = "&Supprimer une expression", -- src\editor\debugger.lua
["&Down"] = "Vers le &bas", -- src\editor\findreplace.lua
["&Edit Watch"] = "&Modifier une expression", -- src\editor\debugger.lua
["&Edit"] = "É&dition", -- src\editor\menu_edit.lua
["&File"] = "&Fichier", -- src\editor\menu_file.lua
["&Find"] = "&Rechercher...", -- src\editor\menu_search.lua
["&Find All"] = "&Rechercher tout", -- src\editor\findreplace.lua
["&Find Next"] = "&Rechercher", -- src\editor\findreplace.lua
["&Find"] = "&Rechercher", -- src\editor\menu_search.lua
["&Fold/Unfold All"] = "Re&plier/Déplier tout", -- src\editor\menu_edit.lua
["&Goto Line"] = "&Aller à la ligne...", -- src\editor\menu_search.lua
["&Goto Line"] = "&Aller à la ligne", -- src\editor\menu_search.lua
["&Help"] = "Aid&e", -- src\editor\menu_help.lua
["&New"] = "&Nouveau", -- src\editor\menu_file.lua
["&Open..."] = "&Ouvrir...", -- src\editor\menu_file.lua
@@ -20,21 +26,23 @@ return {
["&Paste"] = "Co&ller", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Project"] = "&Projet", -- src\editor\menu_project.lua, src\editor\inspect.lua
["&Redo"] = "&Rétablir", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Remove Watch"] = "&Supprimer une expression", -- src\editor\debugger.lua
["&Replace"] = "Re&mplacer...", -- src\editor\menu_search.lua
["&Replace All"] = "Remplacer &tout", -- src\editor\findreplace.lua
["&Replace"] = "Re&mplacer", -- src\editor\findreplace.lua, src\editor\menu_search.lua
["&Run"] = "&Exécuter", -- src\editor\menu_project.lua
["&Save"] = "&Enregistrer", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Search"] = "&Recherche", -- src\editor\menu_search.lua
["&Sort"] = "&Trier", -- src\editor\menu_search.lua
["&Stack Window"] = "&Pile d'exécution", -- src\editor\menu_view.lua
["&Start Debugger Server"] = "Lancer le &serveur de débogage", -- src\editor\menu_project.lua
["&Subdirectories"] = "&Sous-répertoires", -- src\editor\findreplace.lua
["&Undo"] = "&Annuler", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Up"] = "Vers le &haut", -- src\editor\findreplace.lua
["&View"] = "&Affichage", -- src\editor\menu_view.lua
["&Watch Window"] = "&Expressions espionnes", -- src\editor\menu_view.lua
["&Watches"] = "&Expressions", -- src\editor\debugger.lua
["About ZeroBrane Studio"] = "À propos de ZeroBrane Studio", -- src\editor\menu_help.lua
[".&bak on Replace"] = ".&bak avant remplacement", -- src\editor\findreplace.lua
["About %s"] = "À propos de %s", -- src\editor\menu_help.lua
["Add Watch Expression"] = "Ajouter une expression", -- src\editor\editor.lua
["Add to Scratchpad"] = "Ajouter au brouillon", -- src\editor\editor.lua
["Add To Scratchpad"] = "Ajouter au brouillon", -- src\editor\editor.lua
["All files"] = "Tous les fichiers", -- src\editor\commands.lua
["Allow external process to start debugging"] = "Autoriser les processus externes à lancer le débogage", -- src\editor\menu_project.lua
["Analyze the source code"] = "Analyser le code source", -- src\editor\inspect.lua
@@ -50,8 +58,9 @@ return {
["Can't run the entry point script ('%s')."] = "Impossible d'exécuter le point d'entrée du script ('%s').", -- src\editor\debugger.lua
["Can't start debugging session due to internal error '%s'."] = "Impossible de lancer la session de débogage : erreur interne '%s'.", -- src\editor\debugger.lua
["Can't start debugging without an opened file or with the current file not being saved ('%s')."] = "Impossible de lancer le débogage si aucun fichier n'est ouvert ou si le fichier courant n'a pas été enregistré ('%s').", -- src\editor\debugger.lua
["Cancel"] = "Annuler", -- src\editor\findreplace.lua
["Choose ..."] = "Choisir...", -- src\editor\menu_project.lua
["Choose a project directory"] = "Choisissez un répertoire de projet", -- src\editor\menu_project.lua
["Choose a project directory"] = "Choisissez un répertoire de projet", -- src\editor\findreplace.lua, src\editor\menu_project.lua
["Clear &Dynamic Words"] = "Effacer les mots &dynamiques", -- src\editor\menu_edit.lua
["Clear the output window before compiling or debugging"] = "Effacer la fenêtre de sortie avant compilation ou débogage", -- src\editor\menu_project.lua
["Close &Other Pages"] = "Fermer les &autres pages", -- src\editor\gui.lua
@@ -60,20 +69,21 @@ return {
["Co&ntinue"] = "Co&ntinuer", -- src\editor\menu_project.lua
["Col: %d"] = "Col : %d", -- src\editor\editor.lua
["Comment or uncomment current or selected lines"] = "Commenter ou décommenter les lignes courantes ou sélectionnées", -- src\editor\menu_edit.lua
["Compilation error"] = "Erreur de commpilation", -- src\editor\debugger.lua, src\editor\commands.lua
["Compilation error"] = "Erreur de compilation", -- src\editor\debugger.lua, src\editor\commands.lua
["Compilation successful; %.0f%% success rate (%d/%d)."] = "Compilation réussie ; taux de succès : %.0f%% (%d/%d).", -- src\editor\commands.lua
["Compile the current file"] = "Сompiler le fichier courant", -- src\editor\menu_project.lua
["Complete &Identifier"] = "Compléter l'&identifiant", -- src\editor\menu_edit.lua
["Complete the current identifier"] = "Compléter l'identifiant courant", -- src\editor\menu_edit.lua
["Copy selected text to clipboard"] = "Copier le texte sélectionné dans le presse-papiers", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Copy selected text to clipboard"] = "Copier le texte sélectionné dans le presse-papiers", -- src\editor\menu_edit.lua
["Couldn't activate file '%s' for debugging; continuing without it."] = "Impossible d'activer le fichier '%s' pour débogage ; poursuite du processus en ignorant le fichier.", -- src\editor\debugger.lua
["Create an empty document"] = "Créer un document vierge", -- src\editor\menu_file.lua, src\editor\gui.lua
["Cu&t"] = "&Couper", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Cut selected text to clipboard"] = "Couper le texte selectionné et copier dans le presse-papiers", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Cut selected text to clipboard"] = "Couper le texte sélectionné et copier dans le presse-papiers", -- src\editor\menu_edit.lua
["Debugger server started at %s:%d."] = "Serveur de débogage démarré à %s:%d.", -- src\editor\debugger.lua
["Debugging session completed (%s)."] = "Session de débogage terminée (%s).", -- src\editor\debugger.lua
["Debugging session started in '%s'."] = "Session de débogage démarrée dans '%s'.", -- src\editor\debugger.lua
["Debugging suspended at %s:%s (couldn't activate the file)."] = "Débogage interrompu à %s:%s (impossible d'activer le fichier).", -- src\editor\debugger.lua
["Directory"] = "Répertoire ", -- src\editor\findreplace.lua
["Do you want to reload it?"] = "Voulez-vous le recharger ?", -- src\editor\editor.lua
["Do you want to save the changes to '%s'?"] = "Voulez-vous enregistrer les modifications dans '%s' ?", -- src\editor\commands.lua
["E&xit"] = "&Quitter", -- src\editor\menu_file.lua
@@ -84,8 +94,7 @@ return {
["Error while processing API file: %s"] = "Erreur lors de la lecture du fichier d'API : %s", -- src\editor\autocomplete.lua
["Error while processing configuration file: %s"] = "Erreur lors de la lecture du fichier de configuration : %s", -- src\editor\style.lua
["Error"] = "Erreur", -- src\editor\commands.lua
["Evaluate &Watches"] = "&Evaluer les expressions", -- src\editor\debugger.lua
["Evaluate in Console"] = "Evaluer dans la console", -- src\editor\editor.lua
["Evaluate In Console"] = "Évaluer dans la console", -- src\editor\editor.lua
["Execute the current project/file and keep updating the code to see immediate results"] = "Exécuter le projet/fichier courant en mettant le code à jour afin de voir les résultats en temps réel", -- src\editor\menu_project.lua
["Execute the current project/file"] = "Exécuter le projet/fichier courant", -- src\editor\menu_project.lua
["Execution error"] = "Erreur d'exécution", -- src\editor\debugger.lua
@@ -94,34 +103,46 @@ return {
["Expression"] = "Expression", -- src\editor\debugger.lua
["File '%s' has been modified on disk."] = "Le fichier '%s' a été modifié sur le disque.", -- src\editor\editor.lua
["File '%s' has more recent timestamp than restored '%s'; please review before saving."] = "Le fichier '%s' a un horodatage plus récent que celui restauré '%s' ; veuillez vérifier avant d'enregistrer.", -- src\editor\commands.lua
["File '%s' no longer exists."] = "Le fichier '%s' n'existe plus.", -- src\editor\editor.lua
["File '%s' no longer exists."] = "Le fichier '%s' n'existe plus.", -- src\editor\editor.lua, src\editor\menu_file.lua
["File Type"] = "Type de fichier ", -- src\editor\findreplace.lua
["File history"] = "Historique de fichier", -- src\editor\menu_file.lua
["Find &In Files"] = "Rec&hercher dans les fichiers...", -- src\editor\menu_search.lua
["Find &Next"] = "Rechercher l'occurence &suivante", -- src\editor\menu_search.lua
["Find &Previous"] = "Rechercher l'occurence &précédente", -- src\editor\menu_search.lua
["Find &In Files"] = "Rec&hercher dans les fichiers", -- src\editor\menu_search.lua
["Find &Next"] = "Rechercher l'occurrence &suivante", -- src\editor\menu_search.lua
["Find &Previous"] = "Rechercher l'occurrence &précédente", -- src\editor\menu_search.lua
["Find In Files"] = "Rechercher dans les fichiers", -- src\editor\findreplace.lua
["Find and replace text in files"] = "Rechercher et remplacer le texte dans les fichiers", -- src\editor\menu_search.lua
["Find and replace text"] = "Rechercher et remplacer le texte", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find text in files"] = "Rechercher le texte dans les fichiers", -- src\editor\menu_search.lua
["Find text"] = "Rechercher le texte", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find the earlier text occurence"] = "Recherche l'occurence précédente du texte", -- src\editor\menu_search.lua
["Find the next text occurrence"] = "Recherche l'occurence suivante du texte", -- src\editor\menu_search.lua
["Find the earlier text occurence"] = "Recherche l'occurrence précédente du texte", -- src\editor\menu_search.lua
["Find the next text occurrence"] = "Recherche l'occurrence suivante du texte", -- src\editor\menu_search.lua
["Find"] = "Rechercher ", -- src\editor\findreplace.lua
["Fold or unfold all code folds"] = "Replier ou déplier tous les blocs de code", -- src\editor\menu_edit.lua
["Found auto-recovery record and restored saved session."] = "Une récupération automatique a été trouvé et la session a été restaurée.", -- src\editor\commands.lua
["Found"] = "Occurrences trouvées :", -- src\editor\findreplace.lua
["Full &Screen"] = "&Plein écran", -- src\editor\menu_view.lua
["Go To Definition"] = "Aller à la définition", -- src\editor\editor.lua
["Go to a selected line"] = "Aller à la ligne sélectionnée", -- src\editor\menu_search.lua
["Goto Line"] = "Aller à la ligne", -- src\editor\menu_search.lua
["INS"] = "INS", -- src\editor\editor.lua
["In Files"] = "Dans les fichiers", -- src\editor\findreplace.lua
["Jump to a function definition..."] = "Aller à la définition de fonction...", -- src\editor\editor.lua
["Known Files"] = "Fichiers connus", -- src\editor\commands.lua
["Ln: %d"] = "Lig : %d", -- src\editor\editor.lua
["Local console"] = "Console locale", -- src\editor\shellbox.lua, src\editor\gui.lua
["Lua &Interpreter"] = "Interpréteur L&ua", -- src\editor\menu_project.lua
["Mapped remote request for '%s' to '%s'."] = "La requête distante pour '%s' a été associée à '%s'.", -- src\editor\debugger.lua
["Match &case"] = "Respecter la &casse", -- src\editor\findreplace.lua
["Match &whole word"] = "&Mot entier uniquement", -- src\editor\findreplace.lua
["Mixed end-of-line encodings detected."] = "Plusieurs codages de fin de ligne détectés.", -- src\editor\commands.lua
["OVR"] = "OVR", -- src\editor\editor.lua
["Open an existing document"] = "Ouvrir un document existant", -- src\editor\menu_file.lua, src\editor\gui.lua
["Open file"] = "Ouvrir un fichier", -- src\editor\commands.lua
["Options"] = "Options", -- src\editor\findreplace.lua
["Output (running)"] = "Sortie (en cours d'exécution)", -- src\editor\output.lua
["Output"] = "Sortie", -- src\editor\output.lua, src\editor\settings.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Coller le texte depuis le presse-papiers", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Coller le texte depuis le presse-papiers", -- src\editor\menu_edit.lua
["Preferences"] = "Préférences", -- src\editor\menu_edit.lua
["Prepend '=' to show complex values on multiple lines."] = "Préfixez par '=' pour afficher les valeurs complexes sur plusieurs lignes.", -- src\editor\shellbox.lua
["Press cancel to abort."] = "Cliquez sur Annuler pour annuler.", -- src\editor\commands.lua
["Program '%s' started in '%s' (pid: %d)."] = "Programme '%s' démarré dans '%s' (pid : %d).", -- src\editor\output.lua
@@ -135,11 +156,18 @@ return {
["Project/&FileTree Window"] = "&Explorateur de projet", -- src\editor\menu_view.lua
["R/O"] = "R/O", -- src\editor\editor.lua
["R/W"] = "R/W", -- src\editor\editor.lua
["Re&place In Files"] = "Remp&lacer dans les fichiers...", -- src\editor\menu_search.lua
["Re&place In Files"] = "Remp&lacer dans les fichiers", -- src\editor\menu_search.lua
["Recent Files"] = "Fichiers récents", -- src\editor\menu_file.lua
["Redo last edit undone"] = "Rétablir la dernière modification", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Redo last edit undone"] = "Rétablir la dernière modification", -- src\editor\menu_edit.lua
["Refused a request to start a new debugging session as there is one in progress already."] = "Une requête de lancement de débogage a été refusée car une session de débogage est déjà en cours.", -- src\editor\debugger.lua
["Regular &expression"] = "&Expression régulière", -- src\editor\findreplace.lua
["Remote console"] = "Console à distance", -- src\editor\shellbox.lua
["Rename All Instances"] = "Renommer toutes les occurrences", -- src\editor\editor.lua
["Replace A&ll"] = "Remplacer &tout", -- src\editor\findreplace.lua
["Replace"] = "Remplacer par ", -- src\editor\findreplace.lua
["Replaced an invalid UTF8 character with %s."] = "Un caractère UTF8 invalide a été remplacé par %s.", -- src\editor\commands.lua
["Replaced"] = "Occurrences remplacées :", -- src\editor\findreplace.lua
["Replacing"] = "Remplacement de", -- src\editor\findreplace.lua
["Reset to default layout"] = "Restaurer l'affichage par défaut", -- src\editor\menu_view.lua
["Resets the dynamic word list for autocompletion"] = "Réinitialiser la liste des mots dynamiques pour l'auto-complétion", -- src\editor\menu_edit.lua
["Run as Scratchpad"] = "Exécuter comme brouillon", -- src\editor\menu_project.lua
@@ -154,17 +182,22 @@ return {
["Save the current document to a file with a new name"] = "Enregistrer le document courant sous un nouveau nom", -- src\editor\menu_file.lua
["Save the current document"] = "Enregistrer le document courant", -- src\editor\menu_file.lua, src\editor\gui.lua
["Saved auto-recover at %s."] = "Récup. auto enregistrée à %s.", -- src\editor\commands.lua
["Scope"] = "Direction", -- src\editor\findreplace.lua
["Scratchpad error"] = "Erreur dans le brouillon", -- src\editor\debugger.lua
["Searching for"] = "Recherche de", -- src\editor\findreplace.lua
["Select &All"] = "Sélectionner &tout", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Select all text in the editor"] = "Sélectionner tout le texte dans l'éditeur", -- src\editor\menu_edit.lua
["Set From Current File"] = "Définir depuis le fichier courant", -- src\editor\menu_project.lua
["Set project directory from current file"] = "Définir le répertoire de projet depuis le fichier courant", -- src\editor\menu_project.lua, src\editor\gui.lua
["Set the interpreter to be used"] = "Définir l'interpréteur à utiliser", -- src\editor\menu_project.lua
["Set the project directory to be used"] = "Définir le répertoire de projet à utiliser", -- src\editor\menu_project.lua
["Settings: System"] = "Paramètres : Système", -- src\editor\menu_edit.lua
["Settings: User"] = "Paramètres : Utilisateur", -- src\editor\menu_edit.lua
["Show &Tooltip"] = "Afficher l'info-&bulle", -- src\editor\menu_edit.lua
["Show Location"] = "Afficher l'emplacement", -- src\editor\gui.lua, src\editor\filetree.lua
["Show tooltip for current position; place cursor after opening bracket of function"] = "Afficher l'info-bulle pour la position actuelle ; placez le curseur après la parenthèse ouvrante de la fonction", -- src\editor\menu_edit.lua
["Sort selected lines"] = "Trier les lignes sélectionnées", -- src\editor\menu_search.lua
["Stack Window"] = "Fenêtre de pile d'éxécution", -- src\editor\debugger.lua
["Stack"] = "Pile d'exécution", -- src\editor\debugger.lua
["Start &Debugging"] = "Lancer le &débogage", -- src\editor\menu_project.lua
["Start debugging"] = "Lancer le débogage", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step &Into"] = "Pas à pas détai&llé", -- src\editor\menu_project.lua
@@ -175,6 +208,7 @@ return {
["Step over"] = "Enjamber l'instruction suivante", -- src\editor\menu_project.lua, src\editor\gui.lua
["Stop the currently running process"] = "Arrêter le processus en cours d'exécution", -- src\editor\menu_project.lua, src\editor\gui.lua
["Switch to or from full screen mode"] = "Activer ou désactiver le mode plein écran", -- src\editor\menu_view.lua
["Text not found."] = "Texte non trouvé.", -- src\editor\findreplace.lua
["The API file must be located in a subdirectory of the API directory."] = "Le fichier d'API doit être placé dans un sous-répertoire du répertoire d'API.", -- src\editor\autocomplete.lua
["Toggle Break&point"] = "Créer/Supprimer un &point d'arrêt", -- src\editor\menu_project.lua
["Toggle breakpoint"] = "Créer ou supprimer un point d'arrêt", -- src\editor\menu_project.lua, src\editor\gui.lua
@@ -183,18 +217,20 @@ return {
["Unable to load file '%s'."] = "Impossible de charger le le fichier '%s'.", -- src\editor\commands.lua
["Unable to save file '%s': %s"] = "Impossible d'enregistrer le fichier '%s' : %s", -- src\editor\commands.lua
["Unable to stop program (pid: %d), code %d."] = "Impossible d'arrêter le programme (pid : %d), code %d.", -- src\editor\debugger.lua
["Undo last edit"] = "Annuler la dernière modification", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Undo last edit"] = "Annuler la dernière modification", -- src\editor\menu_edit.lua
["Use '%s' to see full description."] = "Utilisez '%s' pour voir la description complète.", -- src\editor\editor.lua
["Use '%s' to show line endings and '%s' to convert them."] = "Utilisez '%s' pour afficher les fins de ligne et '%s' pour les convertir.", -- src\editor\commands.lua
["Use 'clear' to clear the shell output and the history."] = "Utilisez 'clear' pour effacer la sortie console et l´historique.", -- src\editor\shellbox.lua
["Use Shift-Enter for multiline code."] = "Appuyez sur <Shift-Entrée> pour du code multiligne.", -- src\editor\shellbox.lua
["Value"] = "Valeur", -- src\editor\debugger.lua
["View the output/console window"] = "Afficher la fenêtre de sortie/console", -- src\editor\menu_view.lua
["View the project/filetree window"] = "Afficher la fenêtre d'explorateur de projet", -- src\editor\menu_view.lua
["View the stack window"] = "Afficher la fenêtre de pile d'éxécution", -- src\editor\menu_view.lua, src\editor\gui.lua
["View the stack window"] = "Afficher la fenêtre de pile d'exécution", -- src\editor\menu_view.lua, src\editor\gui.lua
["View the watch window"] = "Afficher la fenêtre d'expressions espionnes", -- src\editor\menu_view.lua, src\editor\gui.lua
["Watch Window"] = "Fenêtre d'expressions espionnes", -- src\editor\debugger.lua
["Watch"] = "Expressions espionnes", -- src\editor\debugger.lua
["Welcome to the interactive Lua interpreter."] = "Bienvenue dans l´interpréteur interactif Lua.", -- src\editor\shellbox.lua
["Wrap ar&ound"] = "B&oucler", -- src\editor\findreplace.lua
["You must save the program first."] = "Vous devez d'abord enregistrer le programme.", -- src\editor\commands.lua
["on line %d"] = "à la ligne %d", -- src\editor\debugger.lua, src\editor\commands.lua
["on line %d"] = "à la ligne %d", -- src\editor\debugger.lua, src\editor\commands.lua, src\editor\editor.lua
["traced %d instruction"] = {"%d instruction tracée", "%d instructions tracées"} -- src\editor\debugger.lua
}

View File

@@ -3,10 +3,11 @@ return {
["&About"] = "Informazioni", -- src\editor\menu_help.lua
["&Add Watch"] = "&Aggiungi Espressione di Controllo", -- src\editor\debugger.lua
["&Break"] = "Interrompi", -- src\editor\menu_project.lua
["&Close Page"] = "&Chiudi pagina", -- src\editor\menu_file.lua
["&Close Page"] = "&Chiudi pagina", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Compile"] = "&Compila", -- src\editor\menu_project.lua
["&Copy"] = "&Copia", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Default Layout"] = "Visualizzazione di &Default", -- src\editor\menu_view.lua
["&Delete Watch"] = "Elimina Espressione di Controllo", -- src\editor\debugger.lua
["&Edit Watch"] = "Modifica Espressione di Controllo", -- src\editor\debugger.lua
["&Edit"] = "Modifica", -- src\editor\menu_edit.lua
["&File"] = "File", -- src\editor\menu_file.lua
@@ -20,10 +21,9 @@ return {
["&Paste"] = "Incolla", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Project"] = "&Progetto", -- src\editor\menu_project.lua, src\editor\inspect.lua
["&Redo"] = "&Ripeti", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Remove Watch"] = "Elimina Espressione di Controllo", -- src\editor\debugger.lua
["&Replace"] = "Sostituisci", -- src\editor\menu_search.lua
["&Run"] = "Lancia", -- src\editor\menu_project.lua
["&Save"] = "&Salva", -- src\editor\menu_file.lua
["&Save"] = "&Salva", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Search"] = "Ricerca", -- src\editor\menu_search.lua
["&Sort"] = "Ordina", -- src\editor\menu_search.lua
["&Stack Window"] = "Stack di chiamate", -- src\editor\menu_view.lua
@@ -31,10 +31,9 @@ return {
["&Undo"] = "Annulla", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&View"] = "Visualizza", -- src\editor\menu_view.lua
["&Watch Window"] = "Finestra Espressioni di Controllo", -- src\editor\menu_view.lua
["&Watches"] = "Espressioni di Controllo", -- src\editor\debugger.lua
["About ZeroBrane Studio"] = "Informazioni su ZeroBrane Studio", -- src\editor\menu_help.lua
["About %s"] = "Informazioni su %s", -- src\editor\menu_help.lua
["Add Watch Expression"] = "Aggiungi Espressione di Controllo", -- src\editor\editor.lua
["Add to Scratchpad"] = "Aggiungi a Scratchpad ", -- src\editor\editor.lua
["Add To Scratchpad"] = "Aggiungi a Scratchpad ", -- src\editor\editor.lua
["All files"] = "Tutti i files", -- src\editor\commands.lua
["Allow external process to start debugging"] = "Permetti a processi esterni di avviare il debug", -- src\editor\menu_project.lua
["Analyze the source code"] = "Analizza il codice", -- src\editor\inspect.lua
@@ -50,9 +49,12 @@ return {
["Can't run the entry point script ('%s')."] = "Impossibile eseguire il punto di ingresos dello script (%s).", -- src\editor\debugger.lua
["Can't start debugging session due to internal error '%s'."] = "Impossibile lanciare la sessione di debug: errore interno '%s'.'", -- src\editor\debugger.lua
["Can't start debugging without an opened file or with the current file not being saved ('%s')."] = "Impossibile lanciare il debug senza aver aperto un file o se il file corrente non è stato salvato ('%s').", -- src\editor\debugger.lua
["Choose ..."] = "Scegli...", -- src\editor\menu_project.lua
["Choose a project directory"] = "Scegli la directory di un progetto", -- src\editor\menu_project.lua
["Clear &Dynamic Words"] = "Elimna le &Dynamic Words", -- src\editor\menu_edit.lua
["Clear the output window before compiling or debugging"] = "Pulisci la finestra di output prima di compilare o lanciare debug", -- src\editor\menu_project.lua
["Close &Other Pages"] = "Chidi le Altre Pagine", -- src\editor\gui.lua
["Close A&ll Pages"] = "Chiudi Tutte le Pagine", -- src\editor\gui.lua
["Close the current editor window"] = "Chiude la finestra dell'edit corrente", -- src\editor\menu_file.lua
["Co&ntinue"] = "Co&ntinua", -- src\editor\menu_project.lua
["Col: %d"] = "Col: %d", -- src\editor\editor.lua
@@ -62,24 +64,26 @@ return {
["Compile the current file"] = "Compila il file corrente", -- src\editor\menu_project.lua
["Complete &Identifier"] = "Completa l'&Identificatore", -- src\editor\menu_edit.lua
["Complete the current identifier"] = "Completa l'identificatore corrente", -- src\editor\menu_edit.lua
["Copy selected text to clipboard"] = "Copia il testo selezionato negli appunti", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Copy selected text to clipboard"] = "Copia il testo selezionato negli appunti", -- src\editor\menu_edit.lua
["Couldn't activate file '%s' for debugging; continuing without it."] = "Impossibile attivare il file '%s' per debug; si prosegue senza.", -- src\editor\debugger.lua
["Create an empty document"] = "Crea un documento vuoto", -- src\editor\menu_file.lua, src\editor\gui.lua
["Cu&t"] = "&Taglia", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Cut selected text to clipboard"] = "Taglia il testo selezionato e mette negli appunti", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Cut selected text to clipboard"] = "Taglia il testo selezionato e mette negli appunti", -- src\editor\menu_edit.lua
["Debugger server started at %s:%d."] = "Server Debugger iniziato %s:%s", -- src\editor\debugger.lua
["Debugging session completed (%s)."] = "Sessione di debug completata (%s).", -- src\editor\debugger.lua
["Debugging session started in '%s'."] = "Sessione di debug iniziata da '%s'.", -- src\editor\debugger.lua
["Debugging suspended at %s:%s (couldn't activate the file)."] = "Debug sospeso a %s:%s (impossibile attivare il file).", -- src\editor\debugger.lua
["Do you want to reload it?"] = "Vuoi ricaricarlo?", -- src\editor\editor.lua
["Do you want to save the changes to '%s'?"] = "Vuoi salvare le modifiche a '%s'?", -- src\editor\commands.lua
["E&xit"] = "Uscita", -- src\editor\menu_file.lua
["Enter Lua code and press Enter to run it."] = "Inserisci codice Lua e premi <Enter> per eseguirlo.", -- src\editor\shellbox.lua
["Enter line number"] = "Inserisci il numero di linea", -- src\editor\menu_search.lua
["Error while loading API file: %s"] = "Errore durante il caricamento del file API: %s", -- src\editor\autocomplete.lua
["Error while loading configuration file: %s"] = "Errore nel caricamento del file di configurazione: %s", -- src\editor\style.lua
["Error while processing API file: %s"] = "Errore durante l'elaborazione del file API: %s", -- src\editor\autocomplete.lua
["Error while processing configuration file: %s"] = "Errore durante l'elaborazione del file di configurazione: %s", -- src\editor\style.lua
["Error"] = "Errore", -- src\editor\commands.lua
["Evaluate &Watches"] = "Elabora Espressioni di Controllo", -- src\editor\debugger.lua
["Evaluate in Console"] = "Elabora in console", -- src\editor\editor.lua
["Evaluate In Console"] = "Elabora in console", -- src\editor\editor.lua
["Execute the current project/file and keep updating the code to see immediate results"] = "Esegue il progetto/file corrente e permette di modificare il codice per vedere i risultati in tempo reale", -- src\editor\menu_project.lua
["Execute the current project/file"] = "Esegue il progetto/file corrente", -- src\editor\menu_project.lua
["Execution error"] = "Errore di esecuzione", -- src\editor\debugger.lua
@@ -110,12 +114,14 @@ return {
["Ln: %d"] = "Ln: %d", -- src\editor\editor.lua
["Local console"] = "Console locale", -- src\editor\shellbox.lua, src\editor\gui.lua
["Lua &Interpreter"] = "&Interprete Lua", -- src\editor\menu_project.lua
["Mapped remote request for '%s' to '%s'."] = "Richiesta remota '%s' mappata su '%s'.", -- src\editor\debugger.lua
["Mixed end-of-line encodings detected."] = "Trovata codifica Fine-Riga mista.", -- src\editor\commands.lua
["OVR"] = "OVR", -- src\editor\editor.lua
["Open an existing document"] = "Apri un documento esistente", -- src\editor\menu_file.lua, src\editor\gui.lua
["Open file"] = "Apri un file", -- src\editor\commands.lua
["Output (running)"] = "Output (in corso d'esecuzione)", -- src\editor\output.lua
["Output"] = "Output", -- src\editor\output.lua, src\editor\settings.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Incolla testo dagli appunti", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Incolla testo dagli appunti", -- src\editor\menu_edit.lua
["Prepend '=' to show complex values on multiple lines."] = "Prefissa '=' per visualizzare valori complessi su piu` righe", -- src\editor\shellbox.lua
["Press cancel to abort."] = "Premi cancel per bloccare.", -- src\editor\commands.lua
["Program '%s' started in '%s' (pid: %d)."] = "Programma '%s' partito da '%s' (pid: %d).", -- src\editor\output.lua
@@ -124,21 +130,23 @@ return {
["Program starting as '%s'."] = "Programma partito da '%s'.", -- src\editor\output.lua
["Program stopped (pid: %d)."] = "Programma fermato (pid: %d).", -- src\editor\debugger.lua
["Program unable to run as '%s'."] = "Il programma non puo' partire '%s'.", -- src\editor\output.lua
["Project Directory"] = "Directory del Progetto", -- src\editor\menu_project.lua
["Project"] = "Progetto", -- src\editor\settings.lua, src\editor\gui.lua
["Project/&FileTree Window"] = "Progetto/Explorer", -- src\editor\menu_view.lua
["R/O"] = "R/O", -- src\editor\editor.lua
["R/W"] = "R/W", -- src\editor\editor.lua
["Re&place In Files"] = "Sostituisci nei files", -- src\editor\menu_search.lua
["Recent Files"] = "Files recenti", -- src\editor\menu_file.lua
["Redo last edit undone"] = "Ripeti l'ultima azione annullata", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Redo last edit undone"] = "Ripeti l'ultima azione annullata", -- src\editor\menu_edit.lua
["Refused a request to start a new debugging session as there is one in progress already."] = "Impossibile aprire una nuova sessione di debug in quanto ne esiste una in corso", -- src\editor\debugger.lua
["Remote console"] = "Console remota", -- src\editor\shellbox.lua
["Replaced an invalid UTF8 character with %s."] = "Sostituito un carattere UTF8 invalido con %s.", -- src\editor\commands.lua
["Reset to default layout"] = "Ritorna al default layout", -- src\editor\menu_view.lua
["Resets the dynamic word list for autocompletion"] = "Azzera la lista di dynamic words per l'autocompletamento", -- src\editor\menu_edit.lua
["Run as Scratchpad"] = "Esegui in Scratchpad (Live coding)", -- src\editor\menu_project.lua
["S&top Debugging"] = "Ferma il debugger", -- src\editor\menu_project.lua
["S&top Process"] = "Ferma il processo", -- src\editor\menu_project.lua
["Save &As..."] = "S&alva con nome...", -- src\editor\menu_file.lua
["Save &As..."] = "S&alva con nome...", -- src\editor\menu_file.lua, src\editor\gui.lua
["Save A&ll"] = "Sa&lva tutto", -- src\editor\menu_file.lua
["Save Changes?"] = "Vuoi salvare le modifiche?", -- src\editor\commands.lua
["Save all open documents"] = "Salva tutti i documenti aperti", -- src\editor\menu_file.lua, src\editor\gui.lua
@@ -150,12 +158,14 @@ return {
["Scratchpad error"] = "Errore durente Scratchpad", -- src\editor\debugger.lua
["Select &All"] = "Selezion&a Tutto", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Select all text in the editor"] = "Seleziona tutto il testo nell'editor", -- src\editor\menu_edit.lua
["Set project directory from current file"] = "Definisci la directory del progeetto dal file corrente", -- src\editor\gui.lua
["Set From Current File"] = "Impostato da file corrente", -- src\editor\menu_project.lua
["Set project directory from current file"] = "Definisci la directory del progeetto dal file corrente", -- src\editor\menu_project.lua, src\editor\gui.lua
["Set the interpreter to be used"] = "Definisci l'interprete da utilizzare", -- src\editor\menu_project.lua
["Set the project directory to be used"] = "Imposta la directory di progetto da usare", -- src\editor\menu_project.lua
["Show &Tooltip"] = "Mos&tra i consgli", -- src\editor\menu_edit.lua
["Show tooltip for current position; place cursor after opening bracket of function"] = "Mostra i consigli per la posizione corrente; muovi il cursore dopo la parentesi o la funzione", -- src\editor\menu_edit.lua
["Sort selected lines"] = "Ordina le righe selezionate", -- src\editor\menu_search.lua
["Stack Window"] = "Finestra Stack", -- src\editor\debugger.lua
["Stack"] = "Stack", -- src\editor\debugger.lua
["Start &Debugging"] = "Inizia il &Debug", -- src\editor\menu_project.lua
["Start debugging"] = "Inizia il Debug", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step &Into"] = "Step &Into", -- src\editor\menu_project.lua
@@ -174,7 +184,9 @@ return {
["Unable to load file '%s'."] = "Impossibile aprire il file '%s'.", -- src\editor\commands.lua
["Unable to save file '%s': %s"] = "Impossibile salvare il file '%s': %s", -- src\editor\commands.lua
["Unable to stop program (pid: %d), code %d."] = "Impossibile fermare il programma (pid: %d), code %d.", -- src\editor\debugger.lua
["Undo last edit"] = "Annulla l'ultima azione di edit", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Undo last edit"] = "Annulla l'ultima azione di edit", -- src\editor\menu_edit.lua
["Use '%s' to see full description."] = "Utilizza '%s' per vedere la descrizione completa.", -- src\editor\editor.lua
["Use '%s' to show line endings and '%s' to convert them."] = "Utilizza '%s' per vedere la fine della riga e '%s' per convertirli.", -- src\editor\commands.lua
["Use 'clear' to clear the shell output and the history."] = "Utilizza 'clear' per pulire l`output e lo storico.", -- src\editor\shellbox.lua
["Use Shift-Enter for multiline code."] = "Premi <Shift-Invio> per inserire piu` righe di codice.", -- src\editor\shellbox.lua
["Value"] = "Valore", -- src\editor\debugger.lua
@@ -182,9 +194,9 @@ return {
["View the project/filetree window"] = "Mostra la finestra di progetto/explorer", -- src\editor\menu_view.lua
["View the stack window"] = "Mostra la finestra dello Stack", -- src\editor\menu_view.lua, src\editor\gui.lua
["View the watch window"] = "Mostra la finestra delle Espressioni di Controllo", -- src\editor\menu_view.lua, src\editor\gui.lua
["Watch Window"] = "Finestra Espressioni di Controllo", -- src\editor\debugger.lua
["Watch"] = "Watch", -- src\editor\debugger.lua
["Welcome to the interactive Lua interpreter."] = "Benvenuti nell`interprete interattivo Lua.", -- src\editor\shellbox.lua
["You must save the program first."] = "Devi prima salvare il programma", -- src\editor\commands.lua
["on line %d"] = "alla linea %d", -- src\editor\debugger.lua, src\editor\commands.lua
["traced %d instruction"] = {"tracciata %d istruzione", "%d istruzioni tracciate"} -- src\editor\debugger.lua
}
}

View File

@@ -1,5 +1,6 @@
return {
[0] = function(c) return (c%10 == 1 and c%100 ~= 11) and 1 or (c%10 >= 2 and c%10 <= 4 and (c%100 < 10 or c%100 >= 20) and 2) or 3 end, -- plural
[0] = function(c) c = (c-9)%100 < 9 and 9 or (c-1)%10 return c == 0 and 1 or c < 4 and 2 or 3 end, -- plural
["%d instance"] = {"%d совпадение", "%d совпадения", "%d совпадений"}, -- src\editor\findreplace.lua
["&About"] = "&О программе", -- src\editor\menu_help.lua
["&Add Watch"] = "&Добавить выражение", -- src\editor\debugger.lua
["&Break"] = "Пр&ервать", -- src\editor\menu_project.lua
@@ -7,9 +8,13 @@ return {
["&Compile"] = "&Компилировать", -- src\editor\menu_project.lua
["&Copy"] = "&Копировать", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Default Layout"] = "Вид по &умолчанию", -- src\editor\menu_view.lua
["&Delete Watch"] = "&Удалить выражение", -- src\editor\debugger.lua
["&Down"] = "Вниз", -- src\editor\findreplace.lua
["&Edit Watch"] = "&Редактировать выражение", -- src\editor\debugger.lua
["&Edit"] = "&Правка", -- src\editor\menu_edit.lua
["&File"] = "&Файл", -- src\editor\menu_file.lua
["&Find All"] = "Найти все", -- src\editor\findreplace.lua
["&Find Next"] = "Найти далее", -- src\editor\findreplace.lua
["&Find"] = "&Найти", -- src\editor\menu_search.lua
["&Fold/Unfold All"] = "Св&ернуть/развернуть все", -- src\editor\menu_edit.lua
["&Goto Line"] = "&Перейти к строке", -- src\editor\menu_search.lua
@@ -20,21 +25,23 @@ return {
["&Paste"] = "В&ставить", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Project"] = "Пр&оект", -- src\editor\menu_project.lua, src\editor\inspect.lua
["&Redo"] = "Верну&ть", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Remove Watch"] = "&Удалить выражение", -- src\editor\debugger.lua
["&Replace"] = "За&менить", -- src\editor\menu_search.lua
["&Replace All"] = "Заменить всe", -- src\editor\findreplace.lua
["&Replace"] = "За&менить", -- src\editor\findreplace.lua, src\editor\menu_search.lua
["&Run"] = "За&пустить", -- src\editor\menu_project.lua
["&Save"] = "&Сохранить", -- src\editor\menu_file.lua, src\editor\gui.lua
["&Search"] = "По&иск", -- src\editor\menu_search.lua
["&Sort"] = "&Cортировать", -- src\editor\menu_search.lua
["&Stack Window"] = "Окно &стека", -- src\editor\menu_view.lua
["&Start Debugger Server"] = "Запустить сервер отла&дки", -- src\editor\menu_project.lua
["&Subdirectories"] = "В папках", -- src\editor\findreplace.lua
["&Undo"] = "&Отменить", -- src\editor\editor.lua, src\editor\menu_edit.lua
["&Up"] = "Вверх", -- src\editor\findreplace.lua
["&View"] = "&Вид", -- src\editor\menu_view.lua
["&Watch Window"] = "Окно &наблюдения", -- src\editor\menu_view.lua
["&Watches"] = "&Выражения", -- src\editor\debugger.lua
["About ZeroBrane Studio"] = "О ZeroBrane Studio", -- src\editor\menu_help.lua
["Add Watch Expression"] = "Добавить в окно наблюдения", -- src\editor\editor.lua
["Add to Scratchpad"] = "Добавить в черновик", -- src\editor\editor.lua
["&Watch Window"] = "Окно &выражений", -- src\editor\menu_view.lua
[".&bak on Replace"] = ".&bak после замены", -- src\editor\findreplace.lua
["About %s"] = "О %s", -- src\editor\menu_help.lua
["Add Watch Expression"] = "Добавить выражение", -- src\editor\editor.lua
["Add To Scratchpad"] = "Добавить в черновик", -- src\editor\editor.lua
["All files"] = "Все файлы", -- src\editor\commands.lua
["Allow external process to start debugging"] = "Разрешить внешнему процессу начать отладку", -- src\editor\menu_project.lua
["Analyze the source code"] = "Проанализировать исходный код", -- src\editor\inspect.lua
@@ -50,8 +57,9 @@ return {
["Can't run the entry point script ('%s')."] = "Ошибка выполнения стартового скрипта ('%s').", -- src\editor\debugger.lua
["Can't start debugging session due to internal error '%s'."] = "Невозможно начать отладочную сессию из-за внутренней ошибки '%s'.", -- src\editor\debugger.lua
["Can't start debugging without an opened file or with the current file not being saved ('%s')."] = "Невозможно начать отладку без открытого файла или с несохраненным текущим файлом ('%s').", -- src\editor\debugger.lua
["Cancel"] = "Отмена", -- src\editor\findreplace.lua
["Choose ..."] = "Выбрать ...", -- src\editor\menu_project.lua
["Choose a project directory"] = "Выберите каталог проекта", -- src\editor\menu_project.lua
["Choose a project directory"] = "Выберите папку проекта", -- src\editor\findreplace.lua, src\editor\menu_project.lua
["Clear &Dynamic Words"] = "Очистить &динамические слова", -- src\editor\menu_edit.lua
["Clear the output window before compiling or debugging"] = "Очистить окно вывода перед компиляцией или отладкой", -- src\editor\menu_project.lua
["Close &Other Pages"] = "Закрыть &остальные вкладки", -- src\editor\gui.lua
@@ -65,15 +73,16 @@ return {
["Compile the current file"] = "Скомпилировать текущий файл", -- src\editor\menu_project.lua
["Complete &Identifier"] = "Дополнить &идентификатор", -- src\editor\menu_edit.lua
["Complete the current identifier"] = "Дополнить текущий идентификатор", -- src\editor\menu_edit.lua
["Copy selected text to clipboard"] = "Скопировать выделенный текст в буфер обмена", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Copy selected text to clipboard"] = "Скопировать выделенный текст в буфер обмена", -- src\editor\menu_edit.lua
["Couldn't activate file '%s' for debugging; continuing without it."] = "Невозможно открыть файл '%s' для отладки; выполнение будет продолжено без него.", -- src\editor\debugger.lua
["Create an empty document"] = "Создать новый документ", -- src\editor\menu_file.lua, src\editor\gui.lua
["Cu&t"] = "Вы&резать", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Cut selected text to clipboard"] = "Вырезать выделенный текст в буфер обмена", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Cut selected text to clipboard"] = "Вырезать выделенный текст в буфер обмена", -- src\editor\menu_edit.lua
["Debugger server started at %s:%d."] = "Сервер отладки запущен на %s:%d.", -- src\editor\debugger.lua
["Debugging session completed (%s)."] = "Отладочная сессия завершена (%s).", -- src\editor\debugger.lua
["Debugging session started in '%s'."] = "Отладочная сессия запущена в '%s'.", -- src\editor\debugger.lua
["Debugging suspended at %s:%s (couldn't activate the file)."] = "Отладка остановлена на %s:%s (невозможно открыть файл).", -- src\editor\debugger.lua
["Directory"] = "Папка", -- src\editor\findreplace.lua
["Do you want to reload it?"] = "Перезагрузить его?", -- src\editor\editor.lua
["Do you want to save the changes to '%s'?"] = "Сохранить изменения в '%s'?", -- src\editor\commands.lua
["E&xit"] = "Вы&ход", -- src\editor\menu_file.lua
@@ -84,8 +93,7 @@ return {
["Error while processing API file: %s"] = "Ошибка обработки файла определений API: %s", -- src\editor\autocomplete.lua
["Error while processing configuration file: %s"] = "Ошибка обработки файла конфигурации: %s", -- src\editor\style.lua
["Error"] = "Ошибка", -- src\editor\commands.lua
["Evaluate &Watches"] = "&Вычислить выражения", -- src\editor\debugger.lua
["Evaluate in Console"] = "Выполнить в консоли", -- src\editor\editor.lua
["Evaluate In Console"] = "Выполнить в консоли", -- src\editor\editor.lua
["Execute the current project/file and keep updating the code to see immediate results"] = "Запустить текущий проект/файл и продолжать вносить изменения в код с немедленным выводом результатов", -- src\editor\menu_project.lua
["Execute the current project/file"] = "Запустить текущий проект/файл", -- src\editor\menu_project.lua
["Execution error"] = "Ошибка выполнения", -- src\editor\debugger.lua
@@ -94,34 +102,45 @@ return {
["Expression"] = "Выражение", -- src\editor\debugger.lua
["File '%s' has been modified on disk."] = "Файл '%s' был изменен на диске.", -- src\editor\editor.lua
["File '%s' has more recent timestamp than restored '%s'; please review before saving."] = "Файл '%s' имеет более позднее время модификации, чем восстановленный '%s'; пожалуйста просмотрите его перед сохранением.", -- src\editor\commands.lua
["File '%s' no longer exists."] = "Файл '%s' больше не существует.", -- src\editor\editor.lua
["File '%s' no longer exists."] = "Файл '%s' больше не существует.", -- src\editor\editor.lua, src\editor\menu_file.lua
["File Type"] = "Тип файла", -- src\editor\findreplace.lua
["File history"] = "История файлов", -- src\editor\menu_file.lua
["Find &In Files"] = "Н&айти в файлах", -- src\editor\menu_search.lua
["Find &Next"] = "Найти &далее", -- src\editor\menu_search.lua
["Find &Previous"] = "Найти &ранее", -- src\editor\menu_search.lua
["Find In Files"] = "Найти в файлах", -- src\editor\findreplace.lua
["Find and replace text in files"] = "Найти и заменить текст в файлах", -- src\editor\menu_search.lua
["Find and replace text"] = "Найти и заменить текст", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find text in files"] = "Найти текст в файлах", -- src\editor\menu_search.lua
["Find text"] = "Найти текст", -- src\editor\menu_search.lua, src\editor\gui.lua
["Find the earlier text occurence"] = "Найти предыдущее вхождение текста", -- src\editor\menu_search.lua
["Find the next text occurrence"] = "Найти следующее вхождение текста", -- src\editor\menu_search.lua
["Find"] = "Найти", -- src\editor\findreplace.lua
["Fold or unfold all code folds"] = "Свернуть или развернуть все блоки кода", -- src\editor\menu_edit.lua
["Found auto-recovery record and restored saved session."] = "Найдена запись авто-восстановления и восстановлена сохраненная сессия.", -- src\editor\commands.lua
["Found"] = "Найдено", -- src\editor\findreplace.lua
["Full &Screen"] = "Во весь экр&ан", -- src\editor\menu_view.lua
["Go to a selected line"] = "Перейти к заданной строке", -- src\editor\menu_search.lua
["Goto Line"] = "Перейти к строке", -- src\editor\menu_search.lua
["INS"] = "ВСТ", -- src\editor\editor.lua
["In Files"] = "Установки файлов", -- src\editor\findreplace.lua
["Jump to a function definition..."] = "Перейти к определению функции...", -- src\editor\editor.lua
["Known Files"] = "Файлы Lua", -- src\editor\commands.lua
["Ln: %d"] = "Стр: %d", -- src\editor\editor.lua
["Local console"] = "Локальная консоль", -- src\editor\shellbox.lua, src\editor\gui.lua
["Lua &Interpreter"] = "&Интерпретатор Lua", -- src\editor\menu_project.lua
["Mapped remote request for '%s' to '%s'."] = "Удаленный запрос для '%s' отображен на '%s'.", -- src\editor\debugger.lua
["Match &case"] = "Совпадение регистра", -- src\editor\findreplace.lua
["Match &whole word"] = "Совпадение целого слова", -- src\editor\findreplace.lua
["Mixed end-of-line encodings detected."] = "Обнаружены смешанные символы конца строки.", -- src\editor\commands.lua
["OVR"] = "ЗАМ", -- src\editor\editor.lua
["Open an existing document"] = "Открыть существующий документ", -- src\editor\menu_file.lua, src\editor\gui.lua
["Open file"] = "Открыть файл", -- src\editor\commands.lua
["Options"] = "Установки", -- src\editor\findreplace.lua
["Output (running)"] = "Вывод (запущен)", -- src\editor\output.lua
["Output"] = "Вывод", -- src\editor\output.lua, src\editor\settings.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Вставить текст из буфера обмена", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Paste text from the clipboard"] = "Вставить текст из буфера обмена", -- src\editor\menu_edit.lua
["Preferences"] = "Настройки", -- src\editor\menu_edit.lua
["Prepend '=' to show complex values on multiple lines."] = "Укажите '=' в начале выражения для отображения сложных значений на нескольких строках.", -- src\editor\shellbox.lua
["Press cancel to abort."] = "Нажмите Отмена для завершения.", -- src\editor\commands.lua
["Program '%s' started in '%s' (pid: %d)."] = "Программа '%s' запущена в '%s' (pid: %d).", -- src\editor\output.lua
@@ -130,16 +149,22 @@ return {
["Program starting as '%s'."] = "Программа запускается как '%s'.", -- src\editor\output.lua
["Program stopped (pid: %d)."] = "Программа завершена (pid: %d).", -- src\editor\debugger.lua
["Program unable to run as '%s'."] = "Программа не может быть запущена как '%s'.", -- src\editor\output.lua
["Project Directory"] = "Каталог проекта", -- src\editor\menu_project.lua
["Project Directory"] = "Папка проекта", -- src\editor\menu_project.lua
["Project"] = "Проект", -- src\editor\settings.lua, src\editor\gui.lua
["Project/&FileTree Window"] = "Окно &проекта/списка файлов", -- src\editor\menu_view.lua
["R/O"] = "R/O", -- src\editor\editor.lua
["R/W"] = "R/W", -- src\editor\editor.lua
["Re&place In Files"] = "Замени&ть в файлах", -- src\editor\menu_search.lua
["Recent Files"] = "Недавние файлы", -- src\editor\menu_file.lua
["Redo last edit undone"] = "Вернуть последнее отмененное изменение", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Redo last edit undone"] = "Вернуть последнее отмененное изменение", -- src\editor\menu_edit.lua
["Refused a request to start a new debugging session as there is one in progress already."] = "Отказано в запросе на запуск новой отладочной сессии, поскольку одна сессия уже выполняется.", -- src\editor\debugger.lua
["Regular &expression"] = "Регулярное выражение", -- src\editor\findreplace.lua
["Remote console"] = "Удаленная консоль", -- src\editor\shellbox.lua
["Replace A&ll"] = "Заменить все", -- src\editor\findreplace.lua
["Replace"] = "Заменить", -- src\editor\findreplace.lua
["Replaced an invalid UTF8 character with %s."] = "Некорректный символ UTF8 заменен на %s.", -- src\editor\commands.lua
["Replaced"] = "Заменено", -- src\editor\findreplace.lua
["Replacing"] = "Замена", -- src\editor\findreplace.lua
["Reset to default layout"] = "Установить расположение окон по умолчанию", -- src\editor\menu_view.lua
["Resets the dynamic word list for autocompletion"] = "Очистить список динамических слов для автодополнения", -- src\editor\menu_edit.lua
["Run as Scratchpad"] = "Запустить как черновик", -- src\editor\menu_project.lua
@@ -154,17 +179,21 @@ return {
["Save the current document to a file with a new name"] = "Сохранить текущий документ в файл под новым именем", -- src\editor\menu_file.lua
["Save the current document"] = "Сохранить текущий документ", -- src\editor\menu_file.lua, src\editor\gui.lua
["Saved auto-recover at %s."] = "Сохранено авто-восст в %s.", -- src\editor\commands.lua
["Scope"] = "Направление", -- src\editor\findreplace.lua
["Scratchpad error"] = "Ошибка в черновике", -- src\editor\debugger.lua
["Searching for"] = "Поиск", -- src\editor\findreplace.lua
["Select &All"] = "Выделить &все", -- src\editor\editor.lua, src\editor\menu_edit.lua
["Select all text in the editor"] = "Выделить весь текст в редакторе", -- src\editor\menu_edit.lua
["Set From Current File"] = "Установить по текущему файлу", -- src\editor\menu_project.lua
["Set project directory from current file"] = "Установить каталог проекта по текущему файлу", -- src\editor\menu_project.lua, src\editor\gui.lua
["Set project directory from current file"] = "Установить папку проекта по текущему файлу", -- src\editor\menu_project.lua, src\editor\gui.lua
["Set the interpreter to be used"] = "Установить используемый интерпретатор", -- src\editor\menu_project.lua
["Set the project directory to be used"] = "Установить используемый каталог проекта", -- src\editor\menu_project.lua
["Set the project directory to be used"] = "Установить используемую папку проекта", -- src\editor\menu_project.lua
["Settings: System"] = "Установки: Системы", -- src\editor\menu_edit.lua
["Settings: User"] = "Установки: Пользователя", -- src\editor\menu_edit.lua
["Show &Tooltip"] = "Показать &подсказку", -- src\editor\menu_edit.lua
["Show tooltip for current position; place cursor after opening bracket of function"] = "Показать подсказку в текущей позиции; переместите курсор в позицию после открывающей скобки функции", -- src\editor\menu_edit.lua
["Sort selected lines"] = "Отсортировать выделенные строки", -- src\editor\menu_search.lua
["Stack Window"] = "Окно стека", -- src\editor\debugger.lua
["Stack"] = "Стек", -- src\editor\debugger.lua
["Start &Debugging"] = "Начать &отладку", -- src\editor\menu_project.lua
["Start debugging"] = "Начать отладку", -- src\editor\menu_project.lua, src\editor\gui.lua
["Step &Into"] = "&Войти", -- src\editor\menu_project.lua
@@ -175,7 +204,8 @@ return {
["Step over"] = "Перейти на следующую строку", -- src\editor\menu_project.lua, src\editor\gui.lua
["Stop the currently running process"] = "Завершить текущий процесс", -- src\editor\menu_project.lua, src\editor\gui.lua
["Switch to or from full screen mode"] = "Переключить полноэкранный режим", -- src\editor\menu_view.lua
["The API file must be located in a subdirectory of the API directory."] = "Файл определений API должен быть расположен в подкаталоге каталога API.", -- src\editor\autocomplete.lua
["Text not found."] = "Текст не найден.", -- src\editor\findreplace.lua
["The API file must be located in a subdirectory of the API directory."] = "Файл определений API должен быть расположен внутри папки API.", -- src\editor\autocomplete.lua
["Toggle Break&point"] = "&Точка останова", -- src\editor\menu_project.lua
["Toggle breakpoint"] = "Переключить точку останова", -- src\editor\menu_project.lua, src\editor\gui.lua
["Tr&ace"] = "Т&рассировка", -- src\editor\menu_project.lua
@@ -183,17 +213,19 @@ return {
["Unable to load file '%s'."] = "Ошибка загрузки файла '%s'.", -- src\editor\commands.lua
["Unable to save file '%s': %s"] = "Ошибка сохранения файла '%s': %s", -- src\editor\commands.lua
["Unable to stop program (pid: %d), code %d."] = "Невозможно завершить программу (pid: %d), код %d.", -- src\editor\debugger.lua
["Undo last edit"] = "Отменить последнее действие", -- src\editor\menu_edit.lua, src\editor\gui.lua
["Undo last edit"] = "Отменить последнее действие", -- src\editor\menu_edit.lua
["Use '%s' to see full description."] = "Используйте '%s' для полного описания.", -- src\editor\editor.lua
["Use '%s' to show line endings and '%s' to convert them."] = "Используйте '%s' для отображения символов конца строки и '%s' для их преобразования.", -- src\editor\commands.lua
["Use 'clear' to clear the shell output and the history."] = "Используйте команду 'clear' для очистки содержимого окна и истории.", -- src\editor\shellbox.lua
["Use Shift-Enter for multiline code."] = "Используйте Shift-Enter для многострочного кода.", -- src\editor\shellbox.lua
["Value"] = "Значение", -- src\editor\debugger.lua
["View the output/console window"] = "Показать окно вывода/консоли", -- src\editor\menu_view.lua
["View the project/filetree window"] = "Показать окно проекта/списка файлов", -- src\editor\menu_view.lua
["View the stack window"] = "Показать окно стека", -- src\editor\menu_view.lua, src\editor\gui.lua
["View the watch window"] = "Показать окно наблюдения", -- src\editor\menu_view.lua, src\editor\gui.lua
["Watch Window"] = "Окно наблюдения", -- src\editor\debugger.lua
["View the watch window"] = "Показать окно выражений", -- src\editor\menu_view.lua, src\editor\gui.lua
["Watch"] = "Выражение", -- src\editor\debugger.lua
["Welcome to the interactive Lua interpreter."] = "Добро пожаловать в интерактивный интерпретатор Lua.", -- src\editor\shellbox.lua
["Wrap ar&ound"] = "Продолжить сначала", -- src\editor\findreplace.lua
["You must save the program first."] = "Вы должны сначала сохранить программу.", -- src\editor\commands.lua
["on line %d"] = "в строке %d", -- src\editor\debugger.lua, src\editor\commands.lua
["traced %d instruction"] = {"выполнена %d инструкция", "выполнено %d инструкции", "выполнено %d инструкций"}, -- src\editor\debugger.lua

View File

@@ -1,14 +1,18 @@
--[[
1. Pick a color scheme by clicking on a link:
1. Pick a color scheme by clicking on its name:
- [Tomorrow](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','Tomorrow')))
- [TomorrowContrast](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','TomorrowContrast')))
- [TomorrowNight](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','TomorrowNight')))
- [TomorrowNightBlue](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','TomorrowNightBlue')))
- [TomorrowNightBright](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','TomorrowNightBright')))
- [TomorrowNightEighties](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','TomorrowNightEighties')))
- [Zenburn](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','Zenburn')))
- [Monokai](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','Monokai')))
- [Molokai](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','Molokai')))
- [SolarizedDark](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','SolarizedDark')))
- [SolarizedLight](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','SolarizedLight')))
- [Notepad++](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','NotepadPlusPlus')))
- [SciTeLuaIDE](macro:shell(ApplyStyleConfig('cfg/tomorrow.lua','SciTeLuaIDE')))
- [ZeroBrane Studio](macro:shell(ide.config.styles = StylesGetDefault(); ReApplySpecAndStyles()))

View File

@@ -4,6 +4,7 @@
-- Tomorrow colors from https://github.com/chriskempson/tomorrow-theme
-- Zenburn colors from https://github.com/jnurmine/Zenburn/blob/master/colors/zenburn.vim (contributed by Srdjan Marković)
-- Monokai colors from http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/
-- Molokay colors based on https://github.com/tomasr/molokai/blob/master/colors/molokai.vim
-- Solarized colors from https://github.com/altercation/vim-colors-solarized
local theme = ...
@@ -37,6 +38,20 @@ local colors = {
Blue = H'4271ae',
Purple = H'8959a8',
},
TomorrowContrast = { -- contributed by Sergey Lerg
Background = H'f7f7f7',
CurrentLine = H'efefef',
Selection = H'd6d6d6',
Foreground = H'202020',
Comment = H'8e908c',
Red = H'4669ff', --numbers
Orange = H'f5871f',
Yellow = H'eab700',
Green = H'108010', --strings
Aqua = H'4060b0', --built in functions
Blue = H'101080', --keywords
Purple = H'a01090',
},
TomorrowNight = {
Background = H'1d1f21',
CurrentLine = H'282a2e',
@@ -109,7 +124,7 @@ local colors = {
},
Monokai = {
Background = H'272822',
CurrentLine = H'49483E',
CurrentLine = H'2D2F29',
Selection = H'49483E',
Foreground = H'F8F8F2',
Comment = H'75715E',
@@ -121,6 +136,20 @@ local colors = {
Blue = H'F92672',
Purple = H'A6E22E',
},
Molokai = {
Background = H'1B1D1E',
CurrentLine = H'293739',
Selection = H'49483E',
Foreground = H'F8F8F2',
Comment = H'7E8E91',
Red = H'AE81FF',
Orange = H'AE81FF',
Yellow = H'F8F8F2',
Green = H'E6DB74',
Aqua = H'66D9EF',
Blue = H'F92672',
Purple = H'A6E22E',
},
SolarizedDark = {
Background = H'042029',
CurrentLine = H'0A2933',
@@ -149,6 +178,34 @@ local colors = {
Blue = H'859900',
Purple = H'268BD2',
},
NotepadPlusPlus = { -- contributed by Florian (https://github.com/SiENcE)
Background = H'FFFFFF',
CurrentLine = H'E9E2FF',
Selection = H'ADADA1',
Foreground = H'000000',
Comment = H'008000',
Red = H'FF6900',
Orange = H'00FF00',
Yellow = H'FF4E00',
Green = H'808080',
Aqua = H'260099',
Blue = H'2123FF',
Purple = H'FFFFFF',
},
SciTeLuaIDE = { -- contributed by Jayanth Acharya
Background = H'1B1D1E',
CurrentLine = H'293739',
Selection = H'49483E',
Foreground = H'F8F8F2', -- super-light-gray (everything else)
Comment = H'00FF00', -- bright green (comments)
Red = H'F92672', -- purple (numbers)
Orange = H'AE81FF', -- lavendar?? (numbers)
Yellow = H'F8F8F2', -- light-gray
Green = H'FF8000', -- amber (string literal)
Aqua = H'808080', -- gray (operators, separators etc.)
Blue = H'0066FF', -- semi-blue (keywords)
Purple = H'A6E22E', -- light-grass-green
},
}
-- add more of the specified color (keeping all in 0-255 range)
@@ -182,15 +239,15 @@ return {
-- wxstc.wxSTC_LUA_NUMBER
number = {fg = C.Red},
-- wxstc.wxSTC_LUA_WORD, wxstc.wxSTC_LUA_WORD#
-- wxstc.wxSTC_LUA_WORD, wxstc.wxSTC_LUA_WORD2-8
keywords0 = {fg = C.Blue, b = true},
keywords1 = {fg = C.Aqua, b = false},
keywords2 = {fg = C.Aqua, b = true},
keywords3 = {fg = C.Purple, b = true},
keywords4 = {fg = C.Purple, b = true},
keywords5 = {fg = C.Purple, b = true},
keywords6 = {fg = C.Purple, b = true},
keywords7 = {fg = C.Purple, b = true},
keywords3 = {fg = C.Purple, b = false},
keywords4 = {fg = C.Purple, b = false},
keywords5 = {fg = C.Purple, b = false},
keywords6 = {fg = C.Purple, b = false},
keywords7 = {fg = C.Purple, b = false},
-- common (inherit fg/bg from text)
-- wxstc.wxSTC_LUA_IDENTIFIER
@@ -207,19 +264,27 @@ return {
sel = {bg = C.Selection},
caret = {fg = C.Foreground},
caretlinebg = {bg = C.CurrentLine},
fold = {fg = C.Comment, bg = C.Background},
fold = {fg = C.Comment, bg = C.Background, sel = mixer(C.Comment, 1, 96)},
whitespace = {fg = C.Comment, bg = C.Background},
edge = {},
fncall = {fg = C.Purple, st = wxstc.wxSTC_INDIC_PLAIN},
--[[ other possible values are:
wxSTC_INDIC_PLAIN Single-line underline
wxSTC_INDIC_SQUIGGLE Squiggly underline
wxSTC_INDIC_TT Line of small T-shapes
wxSTC_INDIC_DIAGONAL Diagonal hatching
wxSTC_INDIC_STRIKE Strike-out
wxSTC_INDIC_BOX Box
wxSTC_INDIC_ROUNDBOX Rounded Box (not suppored in the current version?)
--]]
indicator = {
fncall = {fg = C.Purple, st = wxstc.wxSTC_INDIC_ROUNDBOX},
--[[ other possible values are:
wxSTC_INDIC_PLAIN Single-line underline
wxSTC_INDIC_SQUIGGLE Squiggly underline
wxSTC_INDIC_TT Line of small T-shapes
wxSTC_INDIC_DIAGONAL Diagonal hatching
wxSTC_INDIC_STRIKE Strike-out
wxSTC_INDIC_BOX Box
wxSTC_INDIC_ROUNDBOX Rounded Box
--]]
-- these indicators have all different default styles
varlocal = {fg = C.Foreground},
varglobal = {fg = C.Foreground},
varmasked = {fg = C.Foreground},
varmasking = {fg = C.Foreground},
},
-- markup
['['] = {hs = mixer(C.Comment, 3, 64)},
@@ -244,8 +309,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---- Zenburn license ----
GNU GPL, http://www.gnu.org/licenses/gpl.html
--]]

View File

@@ -1,11 +1,11 @@
--[[-- Copy required content from this file to `user.lua`
--[[-- This file shows examples of settings you can adjust.
Configuration files are loaded in the following order
Configuration files with preferences are loaded in the following order:
1. cfg/user.lua (system-wide configuration)
2. HOME/.zbstudio/user.lua (per-user configuration)
3. -cfg <lua code fragment|filename> (command line configuration)
1. <application>\config.lua
2. cfg\user.lua
3. ~\.zbstudio\user.lua
4. -cfg commandline strings
See [configuration](http://studio.zerobrane.com/doc-configuration.html) page for information about location of configuration files.
--]]--
@@ -47,7 +47,7 @@ path.lua = 'd:/lua/lua'
path.gslshell = [[D:\Lua\gsl-shell\gsl-shell.exe]]
-- to provide output filter for those engines that support redirecting
-- of "print" output to the IDE (like Corona SDK and Gideros)
-- of "print" output to the IDE (like Corona SDK or Gideros)
debugger.outputfilter = function(m) return #m < 124 and m or m:sub(1,120).."...\n" end
-- to fix an issue with 0d0d0a line endings in MOAI examples,
@@ -89,27 +89,27 @@ stylesoutshell = styles
-- to change markers used in console and output windows
styles.marker = styles.marker or {}
styles.marker.message = {ch = wxstc.wxSTC_MARK_ARROWS, {0, 0, 0}, {240, 240, 240}}
styles.marker.output = {ch = wxstc.wxSTC_MARK_BACKGROUND, {0, 0, 0}, {240, 240, 240}}
styles.marker.prompt = {ch = wxstc.wxSTC_MARK_CHARACTER+('>'):byte(), {0, 0, 0}, {240, 240, 240}}
styles.marker.message = {ch = wxstc.wxSTC_MARK_ARROWS, fg = {0, 0, 0}, bg = {240, 240, 240}}
styles.marker.output = {ch = wxstc.wxSTC_MARK_BACKGROUND, fg = {0, 0, 0}, bg = {240, 240, 240}}
styles.marker.prompt = {ch = wxstc.wxSTC_MARK_CHARACTER+('>'):byte(), fg = {0, 0, 0}, bg = {240, 240, 240}}
stylesoutshell = styles
-- to disable indicators (underlining) on function calls
editor.showfncall = false
styles.indicator.fncall = nil
-- to change the color of the indicator used for function calls
styles.fncall.fg = {240,0,0}
styles.indicator.fncall.fg = {240,0,0}
-- to change the type of the indicator used for function calls
styles.fncall.st = wxstc.wxSTC_INDIC_PLAIN
styles.indicator.fncall.st = wxstc.wxSTC_INDIC_PLAIN
--[[ other possible values are:
wxSTC_INDIC_PLAIN Single-line underline
wxSTC_INDIC_SQUIGGLE Squiggly underline
wxSTC_INDIC_TT Line of small T-shapes
wxSTC_INDIC_DIAGONAL Diagonal hatching
wxSTC_INDIC_STRIKE Strike-out
wxSTC_INDIC_BOX Box
wxSTC_INDIC_ROUNDBOX Rounded Box (not suppored in the current version?)
wxSTC_INDIC_DOTS Dotted underline; wxSTC_INDIC_PLAIN Single-line underline
wxSTC_INDIC_TT Line of Tshapes; wxSTC_INDIC_SQUIGGLE Squiggly underline
wxSTC_INDIC_STRIKE Strike-out; wxSTC_INDIC_SQUIGGLELOW Squiggly underline (2 pixels)
wxSTC_INDIC_BOX Box; wxSTC_INDIC_ROUNDBOX Rounded Box
wxSTC_INDIC_DASH Dashed underline; wxSTC_INDIC_STRAIGHTBOX Box with trasparency
wxSTC_INDIC_DOTBOX Dotted rectangle; wxSTC_INDIC_DIAGONAL Diagonal hatching
wxSTC_INDIC_HIDDEN No visual effect;
--]]
-- to enable additional spec files (like spec/cpp.lua)
@@ -117,8 +117,8 @@ load.specs(function(file) return file:find('spec[/\\]cpp%.lua$') end)
-- to specify a default EOL encoding to be used for new files:
-- `wxstc.wxSTC_EOL_CRLF` or `wxstc.wxSTC_EOL_LF`;
-- `nil` means OS default: CRLF on Windows and OSX and LF on Linux/Unix.
-- CRLF as a default on OSX is a bug and is likely to change in future versions.
-- `nil` means OS default: CRLF on Windows and LF on Linux/Unix and OSX.
-- (OSX had CRLF as a default until v0.36, which fixed it).
editor.defaulteol = wxstc.wxSTC_EOL_LF
-- to turn off checking for mixed end-of-line encodings in loaded files
@@ -132,3 +132,11 @@ debugger.runonstart = true
-- to set compact fold that doesn't include empty lines after a block
editor.foldcompact = true
-- to disable zoom with mouse wheel as it may be too sensitive on OSX
editor.nomousezoom = true
-- to specify a skin for Corona simulator (OSX only);
-- you can also change it between runs from Local Console by executing
-- `ide.config.corona = {skin = 'iPad'}`
corona = { skin = "iPad" }

30
cfg/user-snippet.lua Normal file
View File

@@ -0,0 +1,30 @@
--[[-- Copy snippets from this file to `user.lua` --]]--
--[[ Add `Evaluate in Console` option to the Edit menu
local G = ... -- this now points to the global environment in the script
local ide, wx, TR, ID = G.ide, G.wx, G.TR, G.ID
local postinit = ide.app.postinit
ide.app.postinit = function()
if postinit then postinit() end
local menu = ide.frame.menuBar:GetMenu(ide.frame.menuBar:FindMenu(TR("&Edit")))
menu:Append(ID "eval", "Evaluate in Console\tCtrl-E")
ide.frame:Connect(ID "eval", wx.wxEVT_COMMAND_MENU_SELECTED,
function () ShellExecuteCode(GetEditor():GetSelectedText()) end)
ide.frame:Connect(ID "eval", wx.wxEVT_UPDATE_UI,
function (event) event:Enable(GetEditor() and #GetEditor():GetSelectedText() > 0) end)
end
--]]
--[[ An example of how individual keywords can be styled
local G = ... -- this now points to the global environment in the script
local luaspec = G.ide.specs['lua']
local num = #luaspec.keywords
-- take a new slot in the list of keywords (starting from 1)
luaspec.keywords[num+1] = 'return'
-- remove 'return' from the list of "regular" keywords
luaspec.keywords[1] = luaspec.keywords[1]:gsub(' return', '')
-- assign new style to the added slot (starting from 0)
styles["keywords"..num] = {fg = {240, 0, 0}, b = true}
--]]

View File

@@ -65,8 +65,7 @@ local xcode = {
-- Watch window menu items
[G.ID_ADDWATCH] = "Ins",
[G.ID_EDITWATCH] = "F2",
[G.ID_REMOVEWATCH] = "Del",
[G.ID_EVALUATEWATCH] = "",
[G.ID_DELETEWATCH] = "Del",
-- Editor popup menu items
[G.ID_QUICKADDWATCH] = "",
[G.ID_QUICKEVAL] = "",

66
interpreters/busted.lua Normal file
View File

@@ -0,0 +1,66 @@
-- Copyright 2011-13 Paul Kulchenko, ZeroBrane LLC
local busted
local win = ide.osname == "Windows"
return {
name = "Busted",
description = "Busted Lua testing",
api = {"baselib"},
frun = function(self,wfilename,rundebug)
busted = busted or ide.config.path.busted -- check if the path is configured
if not busted then
local sep = win and ';' or ':'
local path = (os.getenv('PATH') or '')..sep
..(os.getenv('HOME') and os.getenv('HOME') .. '/bin' or '')
local paths = {}
for p in path:gmatch("[^"..sep.."]+") do
busted = busted or GetFullPathIfExists(p, win and 'busted.exe' or 'busted')
table.insert(paths, p)
end
if not busted then
DisplayOutput("Can't find busted executable in any of the folders in PATH: "
..table.concat(paths, ", ").."\n")
return
end
end
local file
if rundebug then
-- start running the application right away
DebuggerAttachDefault({runstart = ide.config.debugger.runonstart == true})
local code = (
[=[xpcall(function() io.stdout:setvbuf('no')
require('mobdebug').start(); dofile [[%s]]
end, function(err) print(debug.traceback(err)) end)]=])
:format(wfilename:GetFullPath())
local tmpfile = wx.wxFileName()
tmpfile:AssignTempFileName(".")
file = tmpfile:GetFullPath()
local f = io.open(file, "w")
if not f then
DisplayOutput("Can't open temporary file '"..file.."' for writing\n")
return
end
f:write(code)
f:close()
end
file = file or wfilename:GetFullPath()
local options = ide.config.busted and ide.config.busted.options
or "--output=TAP"
local cmd = ('"%s" %s "%s"'):format(busted, options, file)
-- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
return CommandLineRun(cmd,self:fworkdir(wfilename),true,false,nil,nil,
function() ide.debugger.pid = nil if rundebug then wx.wxRemoveFile(file) end end)
end,
fprojdir = function(self,wfilename)
return wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
fworkdir = function(self,wfilename)
return ide.config.path.projectdir or wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
hasdebugger = true,
fattachdebug = function(self) DebuggerAttachDefault() end,
}

View File

@@ -1,4 +1,4 @@
-- Copyright 2011-12 Paul Kulchenko, ZeroBrane LLC
-- Copyright 2011-13 Paul Kulchenko, ZeroBrane LLC
local corona
local win = ide.osname == "Windows"
@@ -40,27 +40,47 @@ return {
return
end
-- can we really do debugging? do if asked and if not on mac OSX where it's not supported
local debug = rundebug and not mac
if rundebug then
-- start running the application right away
DebuggerAttachDefault({startwith = file,
runstart = ide.config.debugger.runonstart ~= false,
redirect = debug and "c", noshell = mac or nil, noeval = mac or nil})
DebuggerAttachDefault({startwith = file, redirect = mac and "r" or "c",
runstart = ide.config.debugger.runonstart ~= false})
local function needRefresh(mdbl, mdbc)
return not wx.wxFileExists(mdbc)
or GetFileModTime(mdbc):GetTicks() < GetFileModTime(mdbl):GetTicks()
end
-- copy mobdebug.lua to Resources/ folder on Win and to the project folder on OSX
-- as copying it to Resources/ folder seems to break the signature of the app.
local mdbc = mac and MergeFullPath(self:fworkdir(wfilename), "mobdebug.lua")
or MergeFullPath(GetPathWithSep(corona), "Resources/mobdebug.lua")
local mdbl = MergeFullPath(GetPathWithSep(ide.editorFilename), "lualibs/mobdebug/mobdebug.lua")
if not wx.wxFileExists(mdbc)
or GetFileModTime(mdbc):GetTicks() < GetFileModTime(mdbl):GetTicks() then
FileCopy(mdbl, mdbc)
DisplayOutput(("Copied ZeroBrane Studio debugger ('mobdebug.lua') to '%s' folder.\n"):format(mdbc))
local needed = needRefresh(mdbl, mdbc)
if needed then
local copied = FileCopy(mdbl, mdbc)
-- couldn't copy to the Resources/ folder; not have permissions?
if not copied and win then
mdbc = MergeFullPath(wx.wxStandardPaths.Get():GetUserLocalDataDir(),
"../../Roaming/Corona Labs/Corona Simulator/Plugins/mobdebug.lua")
needed = needRefresh(mdbl, mdbc)
copied = needed and FileCopy(mdbl, mdbc)
end
if needed then
local message = copied
and ("Copied debugger ('mobdebug.lua') to '%s'."):format(mdbc)
or ("Failed to copy debugger ('mobdebug.lua') to '%s': %s")
:format(mdbc, wx.wxSysErrorMsg())
DisplayOutputLn(message)
if not copied then return end
end
end
end
local cmd = ('"%s" %s"%s"'):format(corona, debug and "-debug " or "", file)
local debugopt = mac and "-debug 1 -project " or "-debug "
local skin = ide.config.corona and ide.config.corona.skin
and (" -skin "..ide.config.corona.skin) or ""
local cmd = ('"%s" %s"%s"%s')
:format(corona, rundebug and debugopt or "", file, skin)
-- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
return CommandLineRun(cmd,self:fworkdir(wfilename),true,false,nil,nil,
function() ide.debugger.pid = nil end)

View File

@@ -4,15 +4,6 @@ local gideros
local win = ide.osname == "Windows"
local mac = ide.osname == "Macintosh"
local function exePath()
local mainpath = ide.editorFilename:gsub("[^/\\]+$","")
local macExe = mainpath..'bin/lua.app/Contents/MacOS/lua'
return ide.config.path.lua or
(ide.osname == "Windows" and mainpath..[[bin\lua.exe]]
or (ide.osname == "Unix" and [[lua]]) -- using installed lua
or (wx.wxFileExists(macExe) and macExe or mainpath..[[bin/lua]]))
end
local function isValidPid(bid, cmd)
if not bid or bid == -1 or bid == 0 then
DisplayOutputLn(("Program unable to run as '%s'."):format(cmd))
@@ -74,7 +65,7 @@ return {
-- find *.gproj file in the project directory
local file
for _, proj in ipairs(FileSysGet(self:fworkdir(wfilename).."/*.gproj", wx.wxFILE)) do
for _, proj in ipairs(FileSysGetRecursive(self:fworkdir(wfilename), false, "*.gproj")) do
if file then
DisplayOutputLn("Found multiple .gproj files in the project directory; ignored '"..proj.."'.")
end

View File

@@ -55,7 +55,11 @@ return {
DebuggerAttachDefault({runstart = ide.config.debugger.runonstart == true})
end
local cmd = ('"%s" "%s"'):format(gslshell, wfilename:GetFullPath())
local code = rundebug
and ([[-e "io.stdout:setvbuf('no'); %s"]]):format(rundebug)
or ([[-e "io.stdout:setvbuf('no')" "%s"]]):format(wfilename:GetFullPath())
local cmd = '"'..gslshell..'" '..code
-- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
return CommandLineRun(cmd,self:fworkdir(wfilename),true,false,nil,nil,
function() ide.debugger.pid = nil end)
@@ -70,4 +74,5 @@ return {
fattachdebug = function(self) DebuggerAttachDefault() end,
skipcompile = true,
unhideanywindow = true,
scratchextloop = false,
}

63
interpreters/lfw.lua Normal file
View File

@@ -0,0 +1,63 @@
if ide.osname ~= "Windows" or not os.getenv("LUA_DEV") then return end
local exe
local function exePath()
local defaultPath = ide.config.path.lfw or os.getenv("LUA_DEV")
return MergeFullPath(defaultPath, 'lua.exe')
end
return {
name = "LuaForWindows",
description = "Lua For Windows interpreter with debugger",
api = {"baselib"},
frun = function(self,wfilename,rundebug)
exe = exe or exePath()
local filepath = wfilename:GetFullPath()
local script
if rundebug then
DebuggerAttachDefault({basedir = self:fworkdir(wfilename),
runstart = ide.config.debugger.runonstart == true})
script = rundebug
else
-- if running on Windows and can't open the file, this may mean that
-- the file path includes unicode characters that need special handling
local fh = io.open(filepath, "r")
if fh then fh:close() end
if ide.osname == 'Windows' and pcall(require, "winapi")
and wfilename:FileExists() and not fh then
winapi.set_encoding(winapi.CP_UTF8)
filepath = winapi.short_path(filepath)
end
script = ('dofile [[%s]]'):format(filepath)
end
local code = ([[xpcall(function() io.stdout:setvbuf('no'); %s end,function(err) print(debug.traceback(err)) end)]]):format(script)
local cmd = '"'..exe..'" -e "'..code..'"'
-- add "LUA_DEV\clibs" to PATH to allow required DLLs to load
local _, path = wx.wxGetEnv("PATH")
local clibs = MergeFullPath(GetPathWithSep(exe), 'clibs')
if path and not path:find(clibs, 1, true) then
wx.wxSetEnv("PATH", path..';'..clibs)
end
-- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
local pid = CommandLineRun(cmd,self:fworkdir(wfilename),true,false,nil,nil,
function() ide.debugger.pid = nil end)
-- restore PATH
wx.wxSetEnv("PATH", path)
return pid
end,
fprojdir = function(self,wfilename)
return wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
fworkdir = function (self,wfilename)
return wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
hasdebugger = true,
fattachdebug = function(self) DebuggerAttachDefault() end,
scratchextloop = false,
unhideanywindow = true,
}

69
interpreters/luabase.lua Normal file
View File

@@ -0,0 +1,69 @@
function MakeLuaInterpreter(version, name)
local exe
local function exePath(self, version)
local version = tostring(version):gsub('%.','')
local mainpath = ide.editorFilename:gsub("[^/\\]+$","")
local macExe = mainpath..([[bin/lua.app/Contents/MacOS/lua%s]]):format(version)
return ide.config.path['lua'..version]
or (ide.osname == "Windows" and mainpath..([[bin\lua%s.exe]]):format(version))
or (ide.osname == "Unix" and mainpath..([[bin/linux/%s/lua%s]]):format(ide.osarch, version))
or (wx.wxFileExists(macExe) and macExe or mainpath..([[bin/lua%s]]):format(version))
end
return {
name = ("Lua%s"):format(name or version or ""),
description = ("Lua%s interpreter with debugger"):format(name or version or ""),
api = {"wxwidgets","baselib"},
luaversion = version or '5.1',
fexepath = exePath,
frun = function(self,wfilename,rundebug)
exe = exe or self:fexepath(version or "")
local filepath = wfilename:GetFullPath()
if rundebug then
DebuggerAttachDefault({runstart = ide.config.debugger.runonstart == true})
else
-- if running on Windows and can't open the file, this may mean that
-- the file path includes unicode characters that need special handling
local fh = io.open(filepath, "r")
if fh then fh:close() end
if ide.osname == 'Windows' and pcall(require, "winapi")
and wfilename:FileExists() and not fh then
winapi.set_encoding(winapi.CP_UTF8)
filepath = winapi.short_path(filepath)
end
end
local code = rundebug
and ([[-e "io.stdout:setvbuf('no'); %s"]]):format(rundebug)
or ([[-e "io.stdout:setvbuf('no')" "%s"]]):format(filepath)
local cmd = '"'..exe..'" '..code
-- modify CPATH to work with other Lua versions
local clibs = ('/clibs%s/'):format(version and tostring(version):gsub('%.','') or '')
local _, cpath = wx.wxGetEnv("LUA_CPATH")
if version and cpath and not cpath:find(clibs, 1, true) then
wx.wxSetEnv("LUA_CPATH", cpath:gsub('/clibs/', clibs)) end
-- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
local pid = CommandLineRun(cmd,self:fworkdir(wfilename),true,false,nil,nil,
function() ide.debugger.pid = nil end)
if version and cpath then wx.wxSetEnv("LUA_CPATH", cpath) end
return pid
end,
fprojdir = function(self,wfilename)
return wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
fworkdir = function (self,wfilename)
return ide.config.path.projectdir or wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
hasdebugger = true,
fattachdebug = function(self) DebuggerAttachDefault() end,
scratchextloop = false,
unhideanywindow = true,
}
end
return nil -- as this is not a real interpreter

View File

@@ -1,52 +1,2 @@
local exe
local function exePath()
local mainpath = ide.editorFilename:gsub("[^/\\]+$","")
local macExe = mainpath..'bin/lua.app/Contents/MacOS/lua'
return ide.config.path.lua or
(ide.osname == "Windows" and mainpath..[[bin\lua.exe]]
or (ide.osname == "Unix" and [[lua]]) -- using installed lua
or (wx.wxFileExists(macExe) and macExe or mainpath..[[bin/lua]]))
end
return {
name = "Lua",
description = "Lua interpreter with debugger",
api = {"wxwidgets","baselib"},
frun = function(self,wfilename,rundebug)
exe = exe or exePath()
local filepath = wfilename:GetFullPath()
local script
if rundebug then
DebuggerAttachDefault({runstart = ide.config.debugger.runonstart == true})
script = rundebug
else
-- if running on Windows and can't open the file, this may mean that
-- the file path includes unicode characters that need special handling
local fh = io.open(filepath, "r")
if fh then fh:close() end
if ide.osname == 'Windows' and pcall(require, "winapi")
and wfilename:FileExists() and not fh then
winapi.set_encoding(winapi.CP_UTF8)
filepath = winapi.short_path(filepath)
end
script = ('dofile [[%s]]'):format(filepath)
end
local code = ([[xpcall(function() io.stdout:setvbuf('no'); %s end,function(err) print(debug.traceback(err)) end)]]):format(script)
local cmd = '"'..exe..'" -e "'..code..'"'
-- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
return CommandLineRun(cmd,self:fworkdir(wfilename),true,false,nil,nil,
function() ide.debugger.pid = nil end)
end,
fprojdir = function(self,wfilename)
return wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
fworkdir = function (self,wfilename)
return ide.config.path.projectdir or wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
hasdebugger = true,
fattachdebug = function(self) DebuggerAttachDefault() end,
scratchextloop = false,
unhideanywindow = true,
}
dofile 'interpreters/luabase.lua'
return MakeLuaInterpreter()

Some files were not shown because too many files have changed in this diff Show More