Compatible Android
@ -0,0 +1,53 @@
|
||||
local skipspecs = {
|
||||
cg = true, glsl = true, luxres = true, opencl = true, sql = true,
|
||||
cbase = true, hlsl = true, oglgpuprog = true, ptx = true, text = true,
|
||||
}
|
||||
return {
|
||||
loadfilters = {
|
||||
tools = function(file) return false end,
|
||||
specs = function(file) return not skipspecs[file:match('spec[/\\]([^/\\]+)%.lua$') or ''] end,
|
||||
interpreters = function(file) return not file:find('estrela') end,
|
||||
},
|
||||
|
||||
postinit = function ()
|
||||
local ide = ide
|
||||
local bundle = wx.wxIconBundle()
|
||||
local files = FileSysGetRecursive(ide:GetAppName().."/res", false, "*.ico")
|
||||
local icons = 0
|
||||
for i,file in ipairs(files) do
|
||||
icons = icons + 1
|
||||
bundle:AddIcon(file, wx.wxBITMAP_TYPE_ICO)
|
||||
end
|
||||
if icons > 0 then ide.frame:SetIcons(bundle) end
|
||||
|
||||
local menuBar = ide.frame.menuBar
|
||||
menuBar:Check(ID_CLEAROUTPUT, true)
|
||||
|
||||
-- load myprograms/welcome.lua if exists and no projectdir
|
||||
local projectdir = ide.config.path.projectdir
|
||||
if (not projectdir or string.len(projectdir) == 0
|
||||
or not wx.wxFileName(projectdir):DirExists()) then
|
||||
local home = wx.wxGetHomeDir():gsub("[\\/]$","")
|
||||
for _,dir in pairs({home, home.."/Desktop", ""}) do
|
||||
local fn = wx.wxFileName("myprograms/welcome.lua")
|
||||
-- normalize to absolute path
|
||||
if fn:Normalize(wx.wxPATH_NORM_ALL, dir) and fn:FileExists() then
|
||||
LoadFile(fn:GetFullPath(),nil,true)
|
||||
ProjectUpdateProjectDir(fn:GetPath(wx.wxPATH_GET_VOLUME))
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
stringtable = {
|
||||
editor = "ZeroBrane Studio",
|
||||
about = "About ZeroBrane Studio",
|
||||
editormessage = "ZeroBrane Studio Message",
|
||||
statuswelcome = "Welcome to ZeroBrane Studio",
|
||||
settingsapp = "ZeroBraneStudio",
|
||||
settingsvendor = "ZeroBraneLLC",
|
||||
logo = "res/zerobrane.png",
|
||||
help = "zerobranestudio",
|
||||
},
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
local G = ... -- this now points to the global environment
|
||||
local ide, wx = G.ide, G.wx
|
||||
local mac = ide.osname == 'Macintosh'
|
||||
local win = ide.osname == "Windows"
|
||||
if mac then
|
||||
local defaultsize = 11
|
||||
filetree.fontsize = defaultsize
|
||||
if ide.wxver >= "2.9.5" then
|
||||
editor.fontsize = defaultsize+1
|
||||
outputshell.fontsize = defaultsize
|
||||
end
|
||||
|
||||
editor.fontname = "Monaco"
|
||||
outputshell.fontname = editor.fontname
|
||||
else
|
||||
local defaultsize = 10
|
||||
editor.fontsize = defaultsize+1
|
||||
outputshell.fontsize = defaultsize
|
||||
|
||||
local sysid, major, minor = wx.wxGetOsVersion()
|
||||
editor.fontname =
|
||||
win and (major == 5 and "Courier New" or "Consolas") or "Monospace"
|
||||
outputshell.fontname = editor.fontname
|
||||
end
|
||||
|
||||
hidpi = mac -- support Retina displays by default (OSX)
|
||||
singleinstance = not mac
|
||||
|
||||
unhidewindow = { -- allow unhiding of GUI windows
|
||||
-- 1 - show if hidden, 0 - ignore, 2 -- hide if shown
|
||||
ConsoleWindowClass = 2,
|
||||
-- ignore the following windows when "showing all"
|
||||
IME = 0,
|
||||
wxDisplayHiddenWindow = 0,
|
||||
['MSCTFIME UI'] = 0,
|
||||
-- GLUT/opengl/SDL applications (for example, moai or love2d)
|
||||
GLUT = 1, FREEGLUT = 1, SDL_app = 1,
|
||||
}
|
After Width: | Height: | Size: 884 B |
After Width: | Height: | Size: 374 B |
After Width: | Height: | Size: 702 B |
After Width: | Height: | Size: 500 B |
After Width: | Height: | Size: 583 B |
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 259 B |
After Width: | Height: | Size: 335 B |
After Width: | Height: | Size: 356 B |
After Width: | Height: | Size: 362 B |
After Width: | Height: | Size: 594 B |
After Width: | Height: | Size: 786 B |
After Width: | Height: | Size: 778 B |
After Width: | Height: | Size: 738 B |
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 730 B |
After Width: | Height: | Size: 743 B |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 602 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 451 B |
After Width: | Height: | Size: 671 B |
After Width: | Height: | Size: 402 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 340 B |
After Width: | Height: | Size: 445 B |
After Width: | Height: | Size: 387 B |
After Width: | Height: | Size: 229 B |
After Width: | Height: | Size: 716 B |
After Width: | Height: | Size: 742 B |
After Width: | Height: | Size: 398 B |
After Width: | Height: | Size: 415 B |
After Width: | Height: | Size: 520 B |
After Width: | Height: | Size: 662 B |
After Width: | Height: | Size: 656 B |
After Width: | Height: | Size: 615 B |
@ -0,0 +1,28 @@
|
||||
Icons are based on the icon set used in LuaEdit. Some of the icons
|
||||
have been modified to avoid using the last line that is not displayed
|
||||
correctly in wxLua.
|
||||
|
||||
These icons are licenced under MIT license by permission from
|
||||
Jean-Francois Goulet (granted on 2012/01/02).
|
||||
|
||||
LuaEdit
|
||||
|
||||
Copyright © 2004-2009 Jean-Francois Goulet
|
||||
|
||||
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.
|
After Width: | Height: | Size: 292 B |
After Width: | Height: | Size: 271 B |
After Width: | Height: | Size: 371 B |
After Width: | Height: | Size: 717 B |
After Width: | Height: | Size: 374 B |
After Width: | Height: | Size: 433 B |
After Width: | Height: | Size: 698 B |
After Width: | Height: | Size: 428 B |
After Width: | Height: | Size: 753 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 473 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 566 B |
After Width: | Height: | Size: 755 B |
After Width: | Height: | Size: 400 B |
After Width: | Height: | Size: 369 B |
After Width: | Height: | Size: 451 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 484 B |
After Width: | Height: | Size: 799 B |
After Width: | Height: | Size: 1008 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 821 B |
After Width: | Height: | Size: 780 B |
After Width: | Height: | Size: 622 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 775 B |
@ -0,0 +1,27 @@
|
||||
Icons are based on the icon set used in LuaEdit.
|
||||
These icons have been manually converted and updated for 24 pixels.
|
||||
|
||||
These icons are licenced under MIT license by permission from
|
||||
Jean-Francois Goulet (granted on 2012/01/02).
|
||||
|
||||
LuaEdit
|
||||
|
||||
Copyright <20> 2004-2009 Jean-Francois Goulet
|
||||
|
||||
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.
|
After Width: | Height: | Size: 384 B |
After Width: | Height: | Size: 358 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 10 KiB |