├── Demo
├── Builds
│ ├── Linux
│ │ └── Makefile
│ ├── MacOSX
│ │ ├── Info.plist
│ │ └── LuaBridgeDemo.xcodeproj
│ │ │ └── project.pbxproj
│ ├── VisualStudio2008
│ │ ├── LuaBridgeDemo.sln
│ │ ├── LuaBridgeDemo.vcproj
│ │ └── resources.rc
│ └── VisualStudio2010
│ │ ├── LuaBridgeDemo.sln
│ │ ├── LuaBridgeDemo.vcxproj
│ │ ├── LuaBridgeDemo.vcxproj.filters
│ │ └── resources.rc
├── JUCEAmalgam
│ ├── BRANCHES
│ ├── COMMITLOG
│ ├── README.md
│ └── include
│ │ ├── juce_audio_basics_amalgam.cpp
│ │ ├── juce_audio_basics_amalgam.h
│ │ ├── juce_audio_basics_amalgam.mm
│ │ ├── juce_audio_devices_amalgam.cpp
│ │ ├── juce_audio_devices_amalgam.h
│ │ ├── juce_audio_devices_amalgam.mm
│ │ ├── juce_audio_formats_amalgam.cpp
│ │ ├── juce_audio_formats_amalgam.h
│ │ ├── juce_audio_formats_amalgam.mm
│ │ ├── juce_audio_processors_amalgam.cpp
│ │ ├── juce_audio_processors_amalgam.h
│ │ ├── juce_audio_processors_amalgam.mm
│ │ ├── juce_audio_utils_amalgam.cpp
│ │ ├── juce_audio_utils_amalgam.h
│ │ ├── juce_audio_utils_amalgam.mm
│ │ ├── juce_core_amalgam.cpp
│ │ ├── juce_core_amalgam.h
│ │ ├── juce_core_amalgam.mm
│ │ ├── juce_cryptography_amalgam.cpp
│ │ ├── juce_cryptography_amalgam.h
│ │ ├── juce_cryptography_amalgam.mm
│ │ ├── juce_data_structures_amalgam.cpp
│ │ ├── juce_data_structures_amalgam.h
│ │ ├── juce_data_structures_amalgam.mm
│ │ ├── juce_events_amalgam.cpp
│ │ ├── juce_events_amalgam.h
│ │ ├── juce_events_amalgam.mm
│ │ ├── juce_graphics_amalgam.cpp
│ │ ├── juce_graphics_amalgam.h
│ │ ├── juce_graphics_amalgam.mm
│ │ ├── juce_gui_basics_amalgam.cpp
│ │ ├── juce_gui_basics_amalgam.h
│ │ ├── juce_gui_basics_amalgam.mm
│ │ ├── juce_gui_extra_amalgam.cpp
│ │ ├── juce_gui_extra_amalgam.h
│ │ ├── juce_gui_extra_amalgam.mm
│ │ ├── juce_opengl_amalgam.cpp
│ │ ├── juce_opengl_amalgam.h
│ │ ├── juce_opengl_amalgam.mm
│ │ ├── juce_video_amalgam.cpp
│ │ ├── juce_video_amalgam.h
│ │ └── juce_video_amalgam.mm
├── JuceLibraryCode
│ ├── AppConfig.h
│ ├── BinaryData.cpp
│ ├── BinaryData.h
│ ├── JuceHeader.h
│ └── ReadMe.txt
├── LuaBridgeDemo.jucer
└── Source
│ ├── App.cpp
│ ├── CConsole.cpp
│ ├── CConsole.h
│ ├── CConsoleEdit.cpp
│ ├── CConsoleEdit.h
│ ├── CConsoleText.cpp
│ ├── CConsoleText.h
│ ├── CConsoleWindow.cpp
│ ├── CConsoleWindow.h
│ ├── LuaState.cpp
│ ├── LuaState.h
│ ├── Main.cpp
│ ├── NewTests.cpp
│ ├── NewTests.h
│ └── TestHost.h
├── Lua
├── Lua.5.1.5
│ ├── COPYRIGHT
│ ├── HISTORY
│ ├── INSTALL
│ ├── Makefile
│ ├── README
│ ├── doc
│ │ ├── contents.html
│ │ ├── cover.png
│ │ ├── logo.gif
│ │ ├── lua.1
│ │ ├── lua.css
│ │ ├── lua.html
│ │ ├── luac.1
│ │ ├── luac.html
│ │ ├── manual.css
│ │ ├── manual.html
│ │ └── readme.html
│ ├── etc
│ │ ├── Makefile
│ │ ├── README
│ │ ├── all.c
│ │ ├── lua.hpp
│ │ ├── lua.ico
│ │ ├── lua.pc
│ │ ├── luavs.bat
│ │ ├── min.c
│ │ ├── noparser.c
│ │ └── strict.lua
│ ├── src
│ │ ├── Makefile
│ │ ├── lapi.c
│ │ ├── lapi.h
│ │ ├── lauxlib.c
│ │ ├── lauxlib.h
│ │ ├── lbaselib.c
│ │ ├── lcode.c
│ │ ├── lcode.h
│ │ ├── ldblib.c
│ │ ├── ldebug.c
│ │ ├── ldebug.h
│ │ ├── ldo.c
│ │ ├── ldo.h
│ │ ├── ldump.c
│ │ ├── lfunc.c
│ │ ├── lfunc.h
│ │ ├── lgc.c
│ │ ├── lgc.h
│ │ ├── linit.c
│ │ ├── liolib.c
│ │ ├── llex.c
│ │ ├── llex.h
│ │ ├── llimits.h
│ │ ├── lmathlib.c
│ │ ├── lmem.c
│ │ ├── lmem.h
│ │ ├── loadlib.c
│ │ ├── lobject.c
│ │ ├── lobject.h
│ │ ├── lopcodes.c
│ │ ├── lopcodes.h
│ │ ├── loslib.c
│ │ ├── lparser.c
│ │ ├── lparser.h
│ │ ├── lstate.c
│ │ ├── lstate.h
│ │ ├── lstring.c
│ │ ├── lstring.h
│ │ ├── lstrlib.c
│ │ ├── ltable.c
│ │ ├── ltable.h
│ │ ├── ltablib.c
│ │ ├── ltm.c
│ │ ├── ltm.h
│ │ ├── lua.c
│ │ ├── lua.h
│ │ ├── luac.c
│ │ ├── luaconf.h
│ │ ├── lualib.h
│ │ ├── lundump.c
│ │ ├── lundump.h
│ │ ├── lvm.c
│ │ ├── lvm.h
│ │ ├── lzio.c
│ │ ├── lzio.h
│ │ └── print.c
│ └── test
│ │ ├── README
│ │ ├── bisect.lua
│ │ ├── cf.lua
│ │ ├── echo.lua
│ │ ├── env.lua
│ │ ├── factorial.lua
│ │ ├── fib.lua
│ │ ├── fibfor.lua
│ │ ├── globals.lua
│ │ ├── hello.lua
│ │ ├── life.lua
│ │ ├── luac.lua
│ │ ├── printf.lua
│ │ ├── readonly.lua
│ │ ├── sieve.lua
│ │ ├── sort.lua
│ │ ├── table.lua
│ │ ├── trace-calls.lua
│ │ ├── trace-globals.lua
│ │ └── xd.lua
├── Lua.5.2.0
│ ├── Makefile
│ ├── README
│ ├── doc
│ │ ├── contents.html
│ │ ├── logo.gif
│ │ ├── lua.1
│ │ ├── lua.css
│ │ ├── luac.1
│ │ ├── manual.css
│ │ ├── manual.html
│ │ ├── osi-certified-72x60.png
│ │ └── readme.html
│ └── src
│ │ ├── Makefile
│ │ ├── lapi.c
│ │ ├── lapi.h
│ │ ├── lauxlib.c
│ │ ├── lauxlib.h
│ │ ├── lbaselib.c
│ │ ├── lbitlib.c
│ │ ├── lcode.c
│ │ ├── lcode.h
│ │ ├── lcorolib.c
│ │ ├── lctype.c
│ │ ├── lctype.h
│ │ ├── ldblib.c
│ │ ├── ldebug.c
│ │ ├── ldebug.h
│ │ ├── ldo.c
│ │ ├── ldo.h
│ │ ├── ldump.c
│ │ ├── lfunc.c
│ │ ├── lfunc.h
│ │ ├── lgc.c
│ │ ├── lgc.h
│ │ ├── linit.c
│ │ ├── liolib.c
│ │ ├── llex.c
│ │ ├── llex.h
│ │ ├── llimits.h
│ │ ├── lmathlib.c
│ │ ├── lmem.c
│ │ ├── lmem.h
│ │ ├── loadlib.c
│ │ ├── lobject.c
│ │ ├── lobject.h
│ │ ├── lopcodes.c
│ │ ├── lopcodes.h
│ │ ├── loslib.c
│ │ ├── lparser.c
│ │ ├── lparser.h
│ │ ├── lstate.c
│ │ ├── lstate.h
│ │ ├── lstring.c
│ │ ├── lstring.h
│ │ ├── lstrlib.c
│ │ ├── ltable.c
│ │ ├── ltable.h
│ │ ├── ltablib.c
│ │ ├── ltm.c
│ │ ├── ltm.h
│ │ ├── lua.c
│ │ ├── lua.h
│ │ ├── lua.hpp
│ │ ├── luac.c
│ │ ├── luaconf.h
│ │ ├── lualib.h
│ │ ├── lundump.c
│ │ ├── lundump.h
│ │ ├── lvm.c
│ │ ├── lvm.h
│ │ ├── lzio.c
│ │ └── lzio.h
├── LuaLibrary.h
├── LuaLibrary5.1.5.cpp
└── LuaLibrary5.2.0.cpp
├── LuaBridge
├── .gitignore
├── CHANGES
├── Doxyfile
├── LuaBridge.h
├── LuaBridgeExtras.h
├── README.md
├── RefCountedObject.h
└── RefCountedPtr.h
├── README.md
├── Solutions
└── VisualStudio2010
│ └── LuaBridge.sln
└── Tests
├── Builds
├── Linux
│ └── Makefile
├── MacOSX
│ └── LuaBridgeTests.xcodeproj
│ │ └── project.pbxproj
├── VisualStudio2008
│ ├── LuaBridgeTests.sln
│ ├── LuaBridgeTests.vcproj
│ └── resources.rc
├── VisualStudio2010
│ ├── LuaBridgeTests.sln
│ ├── LuaBridgeTests.vcxproj
│ ├── LuaBridgeTests.vcxproj.filters
│ └── resources.rc
└── iOS
│ └── LuaBridgeTests.xcodeproj
│ └── project.pbxproj
├── JuceLibraryCode
├── AppConfig.h
├── BinaryData.cpp
├── BinaryData.h
├── JuceHeader.h
└── ReadMe.txt
├── LuaBridgeTests.jucer
└── Source
├── Performance.cpp
├── Performance.h
├── Tests.cpp
├── Tests.h
├── Tests.lua
└── TestsMain.cpp
/Demo/Builds/MacOSX/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CFBundleExecutable
7 | ${EXECUTABLE_NAME}
8 | CFBundleIconFile
9 |
10 | CFBundleIdentifier
11 | com.yourcompany.LuaBridgeDemo
12 | CFBundleName
13 | LuaBridgeDemo
14 | CFBundlePackageType
15 | APPL
16 | CFBundleSignature
17 | ????
18 | CFBundleShortVersionString
19 | 1.0.0
20 | CFBundleVersion
21 | 1.0.0
22 | NSHumanReadableCopyright
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Demo/Builds/VisualStudio2008/LuaBridgeDemo.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 10.00
2 | # Visual C++ Express 2008
3 | Project("{8EC338BF-BCDD-F3E3-C66F-F7F361BB1A8A}") = "LuaBridgeDemo", "LuaBridgeDemo.vcproj", "{340ACBA7-0099-FD85-2AB7-7948DD2F983D}"
4 | EndProject
5 | Global
6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
7 | Debug|Win32 = Debug|Win32
8 | Release|Win32 = Release|Win32
9 | EndGlobalSection
10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
11 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Debug|Win32.ActiveCfg = Debug|Win32
12 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Debug|Win32.Build.0 = Debug|Win32
13 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Release|Win32.ActiveCfg = Release|Win32
14 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Release|Win32.Build.0 = Release|Win32
15 | EndGlobalSection
16 | GlobalSection(SolutionProperties) = preSolution
17 | HideSolutionNode = FALSE
18 | EndGlobalSection
19 | EndGlobal
20 |
--------------------------------------------------------------------------------
/Demo/Builds/VisualStudio2008/resources.rc:
--------------------------------------------------------------------------------
1 | #undef WIN32_LEAN_AND_MEAN
2 | #define WIN32_LEAN_AND_MEAN
3 | #include
4 |
5 | VS_VERSION_INFO VERSIONINFO
6 | FILEVERSION 1,0,0,0
7 | BEGIN
8 | BLOCK "StringFileInfo"
9 | BEGIN
10 | BLOCK "040904E4"
11 | BEGIN
12 | VALUE "FileDescription", "LuaBridgeDemo\0"
13 | VALUE "FileVersion", "1.0.0\0"
14 | VALUE "ProductName", "LuaBridgeDemo\0"
15 | VALUE "ProductVersion", "1.0.0\0"
16 | END
17 | END
18 |
19 | BLOCK "VarFileInfo"
20 | BEGIN
21 | VALUE "Translation", 0x409, 65001
22 | END
23 | END
24 |
--------------------------------------------------------------------------------
/Demo/Builds/VisualStudio2010/LuaBridgeDemo.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 11.00
2 | # Visual Studio 2010
3 | Project("{8EC338BF-BCDD-F3E3-C66F-F7F361BB1A8A}") = "LuaBridgeDemo", "LuaBridgeDemo.vcxproj", "{340ACBA7-0099-FD85-2AB7-7948DD2F983D}"
4 | EndProject
5 | Global
6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
7 | Debug|Win32 = Debug|Win32
8 | Release|Win32 = Release|Win32
9 | EndGlobalSection
10 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
11 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Debug|Win32.ActiveCfg = Debug|Win32
12 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Debug|Win32.Build.0 = Debug|Win32
13 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Release|Win32.ActiveCfg = Release|Win32
14 | {340ACBA7-0099-FD85-2AB7-7948DD2F983D}.Release|Win32.Build.0 = Release|Win32
15 | EndGlobalSection
16 | GlobalSection(SolutionProperties) = preSolution
17 | HideSolutionNode = FALSE
18 | EndGlobalSection
19 | EndGlobal
20 |
--------------------------------------------------------------------------------
/Demo/Builds/VisualStudio2010/resources.rc:
--------------------------------------------------------------------------------
1 | #undef WIN32_LEAN_AND_MEAN
2 | #define WIN32_LEAN_AND_MEAN
3 | #include
4 |
5 | VS_VERSION_INFO VERSIONINFO
6 | FILEVERSION 1,0,0,0
7 | BEGIN
8 | BLOCK "StringFileInfo"
9 | BEGIN
10 | BLOCK "040904E4"
11 | BEGIN
12 | VALUE "FileDescription", "LuaBridgeDemo\0"
13 | VALUE "FileVersion", "1.0.0\0"
14 | VALUE "ProductName", "LuaBridgeDemo\0"
15 | VALUE "ProductVersion", "1.0.0\0"
16 | END
17 | END
18 |
19 | BLOCK "VarFileInfo"
20 | BEGIN
21 | VALUE "Translation", 0x409, 65001
22 | END
23 | END
24 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/BRANCHES:
--------------------------------------------------------------------------------
1 | Branches:
2 |
3 | master : Tracks the master branch of the official repository
4 |
5 | Use tags to obtain specific releases
6 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/README.md:
--------------------------------------------------------------------------------
1 | # JUCE Amalgamation
2 |
3 | A distribution of the [JUCE][1] library in amalgamated source code form.
4 |
5 | ## What's an amalgamation?
6 |
7 | An amalgamation is simply a collection of header and source files that have been
8 | concatenated together to form one or more very large files. In this form, they
9 | are easy to add to your existing project as source files (rather than linking
10 | as a library). They are also easier to redistribute if you are making an open
11 | source application and don't want to have any external dependencies.
12 |
13 | ## What is JUCE?
14 |
15 | JUCE (Jules' Utility Class Extensions) is an all-encompassing C++ class library
16 | for developing cross-platform software. It contains pretty much everything
17 | you're likely to need to create most applications, and is particularly
18 | well-suited for building highly-customised GUIs, and for handling graphics
19 | and sound. JUCE can target the following platforms:
20 |
21 | **Mac OSX**: Applications and VST/AudioUnit/RTAS/NPAPI plugins can be compiled
22 | Xcode for OSX 10.4 or later.
23 |
24 | **iOS**: Native iPhone and iPad apps can be built with Xcode.
25 |
26 | **Windows**: Applications and VST/RTAS/NPAPI/ActiveX plugins can be built using
27 | MS Visual Studio. The results are all fully compatible with
28 | Windows XP, or Win7.
29 |
30 | **Linux**: Applications and plugins can be built for any kernel 2.6 or later.
31 |
32 | **Android**: Android apps can now be built using Ant and Eclipse, with the
33 | Android NDK v5 or later.
34 |
35 | For all the platforms above, the code that you write is the same, and you don't
36 | need to worry about any platform-specific details. If your C++ is portable, then
37 | you should be able to simply re-compile your app to run it on other OSes.
38 |
39 | ## How do I use this?
40 |
41 | JUCE is broken up into modules, with each module coming with its own pair of
42 | amalgamated source and header files. Add the desired amalgamated module sources
43 | to your existing project. For Macintosh and iOS targets you will use the ".mm"
44 | files. For all others, add the ".cpp" files. Include the corresponding header
45 | in your source code. You will need to create a file called "AppConfig.h" and
46 | configure your include paths so that it is visible to the JUCE amalgamated
47 | sources.
48 |
49 | The [JUCE Amalgmation][7] was built using the [Amalgamate Templates][3].
50 |
51 | ## License
52 |
53 | Copyright 2004-11 by [Raw Material Software Ltd.][5]
54 | JUCE is released under the [GNU Public Licence][6], which means it can be freely
55 | copied and distributed, and costs nothing to use in open-source applications. If
56 | you'd like to release a closed-source application that uses JUCE, [paid
57 | commercial licences][2] are available.
58 |
59 | [1]: http://rawmaterialsoftware.com/juce.php "The JUCE Library"
60 | [2]: http://rawmaterialsoftware.com/jucelicense.php "JUCE Commercial Licensing"
61 | [3]: https://github.com/vinniefalco/Amalgams/ "Amalgamate Templates"
62 | [4]: https://github.com/vinniefalco/Amalgamate/ "Amalgamate Tool"
63 | [5]: http://rawmaterialsoftware.com "Raw Material Software, Ltd."
64 | [6]: http://www.gnu.org/licenses/gpl-2.0.html "GNU GPL Version 2"
65 | [7]: https://github.com/vinniefalco/JUCEAmalgam "JUCE Amalgamation"
66 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_audio_basics_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_audio_basics_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_audio_devices_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_audio_devices_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_audio_formats_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_audio_formats_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_audio_processors_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_audio_processors_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_audio_utils_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_audio_utils_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_core_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_core_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_cryptography_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_cryptography_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_data_structures_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_data_structures_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_events_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_events_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_graphics_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_graphics_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_gui_basics_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_gui_basics_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_gui_extra_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_gui_extra_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_opengl_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_opengl_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JUCEAmalgam/include/juce_video_amalgam.mm:
--------------------------------------------------------------------------------
1 | /*
2 | ==============================================================================
3 |
4 | This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 | Copyright 2004-11 by Raw Material Software Ltd.
6 |
7 | ------------------------------------------------------------------------------
8 |
9 | JUCE can be redistributed and/or modified under the terms of the GNU General
10 | Public License (Version 2), as published by the Free Software Foundation.
11 | A copy of the license is included in the JUCE distribution, or can be found
12 | online at www.gnu.org/licenses.
13 |
14 | JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 | A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 |
18 | ------------------------------------------------------------------------------
19 |
20 | To release a closed-source product which uses JUCE, commercial licenses are
21 | available: visit www.rawmaterialsoftware.com/juce for more information.
22 |
23 | ==============================================================================
24 | */
25 |
26 | #if defined(__APPLE__) && defined(__OBJC__)
27 | #include "juce_video_amalgam.cpp"
28 | #endif
29 |
--------------------------------------------------------------------------------
/Demo/JuceLibraryCode/AppConfig.h:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | IMPORTANT! This file is auto-generated each time you save your
4 | project - if you alter its contents, your changes may be overwritten!
5 |
6 | There's a section below where you can add your own custom code safely, and the
7 | Introjucer will preserve the contents of that block, but the best way to change
8 | any of these definitions is by using the Introjucer's project settings.
9 |
10 | Any commented-out settings will assume their default values.
11 |
12 | */
13 |
14 | #ifndef __JUCE_APPCONFIG_Z8YIUR__
15 | #define __JUCE_APPCONFIG_Z8YIUR__
16 |
17 | //==============================================================================
18 | // [BEGIN_USER_CODE_SECTION]
19 |
20 | // (You can add your own code in this section, and the Introjucer will not overwrite it)
21 |
22 | // [END_USER_CODE_SECTION]
23 |
24 | //==============================================================================
25 |
26 |
27 | #endif // __JUCE_APPCONFIG_Z8YIUR__
28 |
--------------------------------------------------------------------------------
/Demo/JuceLibraryCode/BinaryData.h:
--------------------------------------------------------------------------------
1 | /* =========================================================================================
2 |
3 | This is an auto-generated file, created by The Introjucer 3.0.0
4 | Do not edit anything in this file!
5 |
6 | */
7 |
8 | namespace BinaryData
9 | {
10 | extern const char* README_md;
11 | const int README_mdSize = 2500;
12 |
13 | extern const char* Tests_lua;
14 | const int Tests_luaSize = 3877;
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/Demo/JuceLibraryCode/JuceHeader.h:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | IMPORTANT! This file is auto-generated each time you save your
4 | project - if you alter its contents, your changes may be overwritten!
5 |
6 | This is the header file that your files should include in order to get all the
7 | JUCE library headers. You should avoid including the JUCE headers directly in
8 | your own source files, because that wouldn't pick up the correct configuration
9 | options for your app.
10 |
11 | */
12 |
13 | #ifndef __APPHEADERFILE_Z8YIUR__
14 | #define __APPHEADERFILE_Z8YIUR__
15 |
16 | #include "AppConfig.h"
17 | #include "BinaryData.h"
18 |
19 | #if ! DONT_SET_USING_JUCE_NAMESPACE
20 | // If your code uses a lot of JUCE classes, then this will obviously save you
21 | // a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
22 | using namespace juce;
23 | #endif
24 |
25 | namespace ProjectInfo
26 | {
27 | const char* const projectName = "LuaBridgeDemo";
28 | const char* const versionString = "1.0.0";
29 | const int versionNumber = 0x10000;
30 | }
31 |
32 | #endif // __APPHEADERFILE_Z8YIUR__
33 |
--------------------------------------------------------------------------------
/Demo/JuceLibraryCode/ReadMe.txt:
--------------------------------------------------------------------------------
1 |
2 | Important Note!!
3 | ================
4 |
5 | The purpose of this folder is to contain files that are auto-generated by the Introjucer,
6 | and ALL files in this folder will be mercilessly DELETED and completely re-written whenever
7 | the Introjucer saves your project.
8 |
9 | Therefore, it's a bad idea to make any manual changes to the files in here, or to
10 | put any of your own files in here if you don't want to lose them. (Of course you may choose
11 | to add the folder's contents to your version-control system so that you can re-merge your own
12 | modifications after the Introjucer has saved its changes).
13 |
--------------------------------------------------------------------------------
/Demo/Source/App.cpp:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | class App : public JUCEApplication
31 | {
32 | private:
33 | ScopedPointer m_luaState;
34 | ScopedPointer m_window;
35 |
36 | public:
37 | App()
38 | : m_luaState (LuaState::New ())
39 | {
40 | }
41 |
42 | ~App()
43 | {
44 | }
45 |
46 | void runTests ()
47 | {
48 | lua_State* L = m_luaState->createTestEnvironment ();
49 |
50 | LuaBridgeTests::addToState (L);
51 |
52 | if (luaL_loadstring (L, BinaryData::Tests_lua) != 0)
53 | {
54 | // compile-time error
55 | m_luaState->print (lua_tostring (L, -1));
56 | }
57 | else if (LuaState::pcall (L, 0, 0) != 0)
58 | {
59 | m_luaState->print (lua_tostring (L, -1));
60 | }
61 |
62 | m_luaState->destroyTestEnvironment (L);
63 |
64 | runNewTests (*m_luaState);
65 | }
66 |
67 | void initialise (const String&)
68 | {
69 | // Do your application's initialisation code here..
70 |
71 | m_window = new CConsoleWindow (*m_luaState);
72 |
73 | m_window->setVisible (true);
74 |
75 | runTests ();
76 | }
77 |
78 | void shutdown()
79 | {
80 | // Do your application's shutdown code here..
81 |
82 | m_window = nullptr;
83 | }
84 |
85 | void systemRequestedQuit()
86 | {
87 | quit();
88 | }
89 |
90 | const String getApplicationName()
91 | {
92 | return "LuaBridge Demo";
93 | }
94 |
95 | const String getApplicationVersion()
96 | {
97 | return "1.0";
98 | }
99 |
100 | bool moreThanOneInstanceAllowed()
101 | {
102 | return true;
103 | }
104 |
105 | void anotherInstanceStarted (const String&)
106 | {
107 |
108 | }
109 | };
110 |
111 | START_JUCE_APPLICATION (App)
112 |
--------------------------------------------------------------------------------
/Demo/Source/CConsole.cpp:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | CConsole::CConsole (LuaState& luaState)
31 | {
32 | {
33 | Component* c = new CConsoleText (luaState);
34 | addAndMakeVisible (c);
35 | m_text = c;
36 | }
37 |
38 | {
39 | Component* c = new CConsoleEdit (luaState);
40 | addAndMakeVisible (c);
41 | m_edit = c;
42 | }
43 | }
44 |
45 | CConsole::~CConsole ()
46 | {
47 | }
48 |
49 | void CConsole::resized ()
50 | {
51 | m_text->setBounds (0, 0, getWidth (), getHeight() - 32);
52 | m_edit->setBounds (0, getHeight () - 32, getWidth (), 32);
53 | }
54 |
--------------------------------------------------------------------------------
/Demo/Source/CConsole.h:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #ifndef LUABRIDGEDEMO_CCONSOLE_HEADER
31 | #define LUABRIDGEDEMO_CCONSOLE_HEADER
32 |
33 | #include "CConsoleEdit.h"
34 |
35 | class CConsole : public Component
36 | {
37 | public:
38 | explicit CConsole (LuaState& luaState);
39 | ~CConsole ();
40 |
41 | void resized ();
42 |
43 | private:
44 | ScopedPointer m_edit;
45 | ScopedPointer m_text;
46 | };
47 |
48 | #endif
49 |
--------------------------------------------------------------------------------
/Demo/Source/CConsoleEdit.cpp:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | CConsoleEdit::CConsoleEdit (LuaState& luaState)
31 | : m_luaState (luaState)
32 | {
33 | {
34 | TextEditor* c = new TextEditor;
35 | c->setMultiLine (false);
36 | c->setFont (18);
37 | c->setBounds (0, 0, 100, 34);
38 | addAndMakeVisible (c);
39 | c->addListener (this);
40 | m_edit = c;
41 | }
42 |
43 | triggerAsyncUpdate ();
44 | }
45 |
46 | CConsoleEdit::~CConsoleEdit ()
47 | {
48 | }
49 |
50 | void CConsoleEdit::resized ()
51 | {
52 | m_edit->setBounds (0, 0, getWidth (), getHeight ());
53 | }
54 |
55 | void CConsoleEdit::handleAsyncUpdate ()
56 | {
57 | grabKeyboardFocus ();
58 | }
59 |
60 | void CConsoleEdit::textEditorReturnKeyPressed (TextEditor& editor)
61 | {
62 | String text = editor.getText ();
63 |
64 | editor.selectAll ();
65 |
66 | m_luaState.doString (text);
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/Demo/Source/CConsoleEdit.h:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #ifndef LUABRIDGEDEMO_CCONSOLEEDIT_HEADER
31 | #define LUABRIDGEDEMO_CCONSOLEEDIT_HEADER
32 |
33 | #include "LuaState.h"
34 |
35 | class CConsoleEdit
36 | : public Component
37 | , private TextEditor::Listener
38 | , private AsyncUpdater
39 | {
40 | public:
41 | explicit CConsoleEdit (LuaState& luaState);
42 | ~CConsoleEdit ();
43 |
44 | void resized ();
45 |
46 | private:
47 | void handleAsyncUpdate ();
48 |
49 | void textEditorReturnKeyPressed (TextEditor& editor);
50 |
51 | private:
52 | LuaState& m_luaState;
53 | ScopedPointer m_edit;
54 | };
55 |
56 | #endif
57 |
--------------------------------------------------------------------------------
/Demo/Source/CConsoleText.cpp:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 |
31 | CConsoleText::CConsoleText (LuaState& luaState)
32 | : m_luaState (luaState)
33 | , m_text (new TextEditor)
34 | {
35 | setSize (400, 100);
36 |
37 | {
38 | TextEditor* c = m_text;
39 | c->setReadOnly (true);
40 | c->setMultiLine (true, true);
41 | c->setFont (18);
42 | c->setColour (TextEditor::backgroundColourId, Colours::transparentBlack);
43 | c->setColour (TextEditor::textColourId, Colours::white);
44 | c->setColour (TextEditor::highlightColourId, Colour::fromRGBA (0, 255, 255, 96));
45 | c->setColour (TextEditor::highlightedTextColourId, Colours::white);
46 | c->setColour (TextEditor::outlineColourId, Colours::transparentBlack);
47 | c->setColour (TextEditor::shadowColourId, Colour::fromRGBA (255, 255, 255, 32));
48 |
49 | c->setBounds (0, 0, 400, 100);
50 | addAndMakeVisible (c);
51 | }
52 |
53 | m_luaState.addListener (this);
54 | }
55 |
56 | CConsoleText::~CConsoleText ()
57 | {
58 | m_luaState.removeListener (this);
59 | }
60 |
61 | void CConsoleText::resized ()
62 | {
63 | m_text->setBounds (0, 0, getWidth (), getHeight ());
64 | }
65 |
66 | void CConsoleText::onLuaStatePrint (String text)
67 | {
68 | m_text->moveCaretToEnd ();
69 | m_text->insertTextAtCaret (text);
70 | m_text->insertTextAtCaret ("\n");
71 | }
72 |
--------------------------------------------------------------------------------
/Demo/Source/CConsoleText.h:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #ifndef CCONSOLETEXT_HEADER
31 | #define CCONSOLETEXT_HEADER
32 |
33 | #include "LuaState.h"
34 |
35 | class CConsoleText
36 | : public Component
37 | , private LuaState::Listener
38 | {
39 | public:
40 | explicit CConsoleText (LuaState& luaState);
41 | ~CConsoleText ();
42 |
43 | void resized ();
44 |
45 | void onLuaStatePrint (String text);
46 |
47 | private:
48 | LuaState& m_luaState;
49 | ScopedPointer m_text;
50 | };
51 |
52 | #endif
53 |
--------------------------------------------------------------------------------
/Demo/Source/CConsoleWindow.cpp:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | CConsoleWindow::CConsoleWindow (LuaState& luaState)
31 | : DocumentWindow (
32 | TRANS("LuaBridge Demo"),
33 | Colours::black,
34 | DocumentWindow::allButtons,
35 | false)
36 | {
37 | setSize (640, 480);
38 |
39 | setOpaque (true);
40 | setResizable (true, false);
41 | setDropShadowEnabled (false);
42 | //setUsingNativeTitleBar (true);
43 | setWantsKeyboardFocus (true);
44 |
45 | // must happen AFTER setUsingNativeTitleBar()
46 | Component::addToDesktop (getDesktopWindowStyleFlags());
47 |
48 | // must happen after addToDesktop()
49 | Component* c = new CConsole (luaState);
50 | c->setBounds (0, 0, 640, 480);
51 | setContentOwned (c, true);
52 |
53 | setSize (640, 480);
54 |
55 | centreWithSize (getWidth(), getHeight());
56 |
57 | grabKeyboardFocus ();
58 | }
59 |
60 | CConsoleWindow::~CConsoleWindow ()
61 | {
62 | }
63 |
64 | void CConsoleWindow::closeButtonPressed ()
65 | {
66 | JUCEApplication::getInstance()->quit ();
67 | }
68 |
--------------------------------------------------------------------------------
/Demo/Source/CConsoleWindow.h:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #ifndef LUABRIDGEDEMO_CCONSOLEWINDOW_HEADER
31 | #define LUABRIDGEDEMO_CCONSOLEWINDOW_HEADER
32 |
33 | class CConsoleWindow : public DocumentWindow
34 | {
35 | public:
36 | explicit CConsoleWindow (LuaState& luaState);
37 | ~CConsoleWindow ();
38 |
39 | void closeButtonPressed ();
40 | };
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/Demo/Source/LuaState.h:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #ifndef LUABRIDGEDEMO_LUASTATE_HEADER
31 | #define LUABRIDGEDEMO_LUASTATE_HEADER
32 |
33 | #include "TestHost.h"
34 |
35 | /**
36 | lua_State wrapper.
37 |
38 | The state hs the standard Lua libraries opened, and an override for print which
39 | sends the text to observers. There is also a traceback feature installed that
40 | displays the stack when an error occurs. To get the traceback, use the pcall()
41 | of this class.
42 | */
43 | class LuaState : public TestHost
44 | {
45 | public:
46 | class Listener
47 | {
48 | public:
49 | virtual ~Listener () { }
50 | virtual void onLuaStatePrint (String text) = 0;
51 | };
52 |
53 | static LuaState* New ();
54 | virtual ~LuaState () = 0;
55 |
56 | virtual void addListener (Listener* listener) = 0;
57 | virtual void removeListener (Listener* listener) = 0;
58 |
59 | virtual lua_State* getState () = 0;
60 |
61 | inline operator lua_State* ()
62 | {
63 | return getState ();
64 | }
65 |
66 | virtual int pcall (int numberOfArguments, int numberOfReturnValues) = 0;
67 |
68 | virtual void doString (String chunk) = 0;
69 |
70 | static int pcall (lua_State* L, int numberOfArguments, int numberOfReturnValues);
71 | };
72 |
73 | #endif
74 |
--------------------------------------------------------------------------------
/Demo/Source/Main.cpp:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #include "Lua/LuaLibrary.h"
31 |
32 | #include "LuaBridge/LuaBridge.h"
33 | #include "LuaBridge/RefCountedPtr.h"
34 | #include "LuaBridge/RefCountedObject.h"
35 |
36 | #include "Tests/Source/Tests.h"
37 | #include "Tests/Source/Tests.cpp"
38 |
39 | #include "Demo/JUCEAmalgam/include/juce_core_amalgam.h"
40 | #include "Demo/JUCEAmalgam/include/juce_data_structures_amalgam.h"
41 | #include "Demo/JUCEAmalgam/include/juce_events_amalgam.h"
42 | #include "Demo/JUCEAmalgam/include/juce_graphics_amalgam.h"
43 | #include "Demo/JUCEAmalgam/include/juce_gui_basics_amalgam.h"
44 |
45 | using namespace juce;
46 |
47 | #include "BinaryData.h"
48 |
49 | #include "CConsole.h"
50 | #include "CConsoleEdit.h"
51 | #include "CConsoleText.h"
52 | #include "CConsoleWindow.h"
53 | #include "LuaState.h"
54 | #include "NewTests.h"
55 |
56 | #include "CConsole.cpp"
57 | #include "CConsoleEdit.cpp"
58 | #include "CConsoleText.cpp"
59 | #include "CConsoleWindow.cpp"
60 | #include "LuaState.cpp"
61 | #include "NewTests.cpp"
62 |
63 | #include "App.cpp"
64 |
--------------------------------------------------------------------------------
/Demo/Source/NewTests.h:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #ifndef LUABRIDGEDEMO_NEWTESTS_HEADER
31 | #define LUABRIDGEDEMO_NEWTESTS_HEADER
32 |
33 | extern void runNewTests (LuaState& state);
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/Demo/Source/TestHost.h:
--------------------------------------------------------------------------------
1 | //==============================================================================
2 | /*
3 | https://github.com/vinniefalco/LuaBridge
4 | https://github.com/vinniefalco/LuaBridgeDemo
5 |
6 | Copyright (C) 2012, Vinnie Falco
7 |
8 | License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
9 |
10 | Permission is hereby granted, free of charge, to any person obtaining a copy
11 | of this software and associated documentation files (the "Software"), to deal
12 | in the Software without restriction, including without limitation the rights
13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 | copies of the Software, and to permit persons to whom the Software is
15 | furnished to do so, subject to the following conditions:
16 |
17 | The above copyright notice and this permission notice shall be included in all
18 | copies or substantial portions of the Software.
19 |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 | SOFTWARE.
27 | */
28 | //==============================================================================
29 |
30 | #ifndef LUABRIDGEDEMO_TESTHOST_HEADER
31 | #define LUABRIDGEDEMO_TESTHOST_HEADER
32 |
33 | struct lua_State;
34 |
35 | /**
36 | Host interface.
37 |
38 | The tests call into a host-provided instance of this interface.
39 | */
40 | class TestHost
41 | {
42 | protected:
43 | virtual ~TestHost () { }
44 |
45 | public:
46 | /**
47 | Called to create a fresh environment for performing a test.
48 |
49 | The standard libraries are automatically opened.
50 | */
51 | virtual lua_State* createTestEnvironment () = 0;
52 |
53 | /**
54 | Called to destroy the environment when it is no longer needed.
55 | */
56 | virtual void destroyTestEnvironment (lua_State* L) = 0;
57 |
58 | /**
59 | Prints output
60 | */
61 | virtual void print (std::string text) = 0;
62 | };
63 |
64 | #endif
65 |
--------------------------------------------------------------------------------
/Lua/Lua.5.1.5/COPYRIGHT:
--------------------------------------------------------------------------------
1 | Lua License
2 | -----------
3 |
4 | Lua is licensed under the terms of the MIT license reproduced below.
5 | This means that Lua is free software and can be used for both academic
6 | and commercial purposes at absolutely no cost.
7 |
8 | For details and rationale, see http://www.lua.org/license.html .
9 |
10 | ===============================================================================
11 |
12 | Copyright (C) 1994-2012 Lua.org, PUC-Rio.
13 |
14 | Permission is hereby granted, free of charge, to any person obtaining a copy
15 | of this software and associated documentation files (the "Software"), to deal
16 | in the Software without restriction, including without limitation the rights
17 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18 | copies of the Software, and to permit persons to whom the Software is
19 | furnished to do so, subject to the following conditions:
20 |
21 | The above copyright notice and this permission notice shall be included in
22 | all copies or substantial portions of the Software.
23 |
24 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30 | THE SOFTWARE.
31 |
32 | ===============================================================================
33 |
34 | (end of COPYRIGHT)
35 |
--------------------------------------------------------------------------------
/Lua/Lua.5.1.5/README:
--------------------------------------------------------------------------------
1 | README for Lua 5.1
2 |
3 | See INSTALL for installation instructions.
4 | See HISTORY for a summary of changes since the last released version.
5 |
6 | * What is Lua?
7 | ------------
8 | Lua is a powerful, light-weight programming language designed for extending
9 | applications. Lua is also frequently used as a general-purpose, stand-alone
10 | language. Lua is free software.
11 |
12 | For complete information, visit Lua's web site at http://www.lua.org/ .
13 | For an executive summary, see http://www.lua.org/about.html .
14 |
15 | Lua has been used in many different projects around the world.
16 | For a short list, see http://www.lua.org/uses.html .
17 |
18 | * Availability
19 | ------------
20 | Lua is freely available for both academic and commercial purposes.
21 | See COPYRIGHT and http://www.lua.org/license.html for details.
22 | Lua can be downloaded at http://www.lua.org/download.html .
23 |
24 | * Installation
25 | ------------
26 | Lua is implemented in pure ANSI C, and compiles unmodified in all known
27 | platforms that have an ANSI C compiler. In most Unix-like platforms, simply
28 | do "make" with a suitable target. See INSTALL for detailed instructions.
29 |
30 | * Origin
31 | ------
32 | Lua is developed at Lua.org, a laboratory of the Department of Computer
33 | Science of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro
34 | in Brazil).
35 | For more information about the authors, see http://www.lua.org/authors.html .
36 |
37 | (end of README)
38 |
--------------------------------------------------------------------------------
/Lua/Lua.5.1.5/doc/cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vinniefalco/LuaBridgeDemo/867ffe17557bbf9a73fb1efff7e0dae39ed4ba73/Lua/Lua.5.1.5/doc/cover.png
--------------------------------------------------------------------------------
/Lua/Lua.5.1.5/doc/logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vinniefalco/LuaBridgeDemo/867ffe17557bbf9a73fb1efff7e0dae39ed4ba73/Lua/Lua.5.1.5/doc/logo.gif
--------------------------------------------------------------------------------
/Lua/Lua.5.1.5/doc/lua.css:
--------------------------------------------------------------------------------
1 | body {
2 | color: #000000 ;
3 | background-color: #FFFFFF ;
4 | font-family: Helvetica, Arial, sans-serif ;
5 | text-align: justify ;
6 | margin-right: 30px ;
7 | margin-left: 30px ;
8 | }
9 |
10 | h1, h2, h3, h4 {
11 | font-family: Verdana, Geneva, sans-serif ;
12 | font-weight: normal ;
13 | font-style: italic ;
14 | }
15 |
16 | h2 {
17 | padding-top: 0.4em ;
18 | padding-bottom: 0.4em ;
19 | padding-left: 30px ;
20 | padding-right: 30px ;
21 | margin-left: -30px ;
22 | background-color: #E0E0FF ;
23 | }
24 |
25 | h3 {
26 | padding-left: 0.5em ;
27 | border-left: solid #E0E0FF 1em ;
28 | }
29 |
30 | table h3 {
31 | padding-left: 0px ;
32 | border-left: none ;
33 | }
34 |
35 | a:link {
36 | color: #000080 ;
37 | background-color: inherit ;
38 | text-decoration: none ;
39 | }
40 |
41 | a:visited {
42 | background-color: inherit ;
43 | text-decoration: none ;
44 | }
45 |
46 | a:link:hover, a:visited:hover {
47 | color: #000080 ;
48 | background-color: #E0E0FF ;
49 | }
50 |
51 | a:link:active, a:visited:active {
52 | color: #FF0000 ;
53 | }
54 |
55 | hr {
56 | border: 0 ;
57 | height: 1px ;
58 | color: #a0a0a0 ;
59 | background-color: #a0a0a0 ;
60 | }
61 |
62 | :target {
63 | background-color: #F8F8F8 ;
64 | padding: 8px ;
65 | border: solid #a0a0a0 2px ;
66 | }
67 |
68 | .footer {
69 | color: gray ;
70 | font-size: small ;
71 | }
72 |
73 | input[type=text] {
74 | border: solid #a0a0a0 2px ;
75 | border-radius: 2em ;
76 | -moz-border-radius: 2em ;
77 | background-image: url('images/search.png') ;
78 | background-repeat: no-repeat;
79 | background-position: 4px center ;
80 | padding-left: 20px ;
81 | height: 2em ;
82 | }
83 |
84 |
--------------------------------------------------------------------------------
/Lua/Lua.5.1.5/doc/manual.css:
--------------------------------------------------------------------------------
1 | h3 code {
2 | font-family: inherit ;
3 | font-size: inherit ;
4 | }
5 |
6 | pre, code {
7 | font-size: 12pt ;
8 | }
9 |
10 | span.apii {
11 | float: right ;
12 | font-family: inherit ;
13 | font-style: normal ;
14 | font-size: small ;
15 | color: gray ;
16 | }
17 |
18 | p+h1, ul+h1 {
19 | padding-top: 0.4em ;
20 | padding-bottom: 0.4em ;
21 | padding-left: 30px ;
22 | margin-left: -30px ;
23 | background-color: #E0E0FF ;
24 | }
25 |
--------------------------------------------------------------------------------
/Lua/Lua.5.1.5/doc/readme.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Lua documentation
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Documentation
13 |
14 |
15 | This is the documentation included in the source distribution of Lua 5.1.5.
16 |
17 |