Compare commits
209 commits
Author | SHA1 | Date | |
---|---|---|---|
391fe9e106 | |||
71cf04e433 | |||
96c2e0f49c | |||
a3d8b659a5 | |||
eb638f9d0f | |||
514015e45b | |||
70dfdbc77e | |||
247102af84 | |||
7f7f8970bc | |||
a67593b58f | |||
|
85df205a44 | ||
|
0d8bda717d | ||
|
ac2de4fcfa | ||
|
7484b886af | ||
|
5d5684ecb5 | ||
|
17fef905a7 | ||
|
433da987f2 | ||
|
123808c7d5 | ||
|
b7911a5b87 | ||
|
334359ac96 | ||
|
086f7d2887 | ||
|
8d6b35dade | ||
|
c9baf200f7 | ||
|
a07ccf6726 | ||
|
a98fd67fb8 | ||
|
3b9c2f6d27 | ||
|
67abbddc8f | ||
|
d7d080961e | ||
|
24f25ee6bd | ||
|
427ad53d23 | ||
|
65f9678930 | ||
|
6bf275439a | ||
|
bf211138f8 | ||
|
efaa845095 | ||
|
40862a4ad7 | ||
|
69749abe53 | ||
|
531bfe8728 | ||
|
2df884b7e8 | ||
|
5ecbdecaf3 | ||
|
89de5582f5 | ||
|
2d79d6f56f | ||
|
4207586fe5 | ||
|
3f0e973a81 | ||
|
5601de60d3 | ||
|
73e7084458 | ||
|
1265264cc7 | ||
|
6baa0a1beb | ||
|
87598963e7 | ||
|
bc8082b003 | ||
|
b54ae2b89d | ||
|
e08b64474d | ||
|
907d306c05 | ||
|
e05ab6ae1e | ||
|
d185e8967e | ||
|
0af6c22404 | ||
|
cb03ca2168 | ||
|
961ddfa78f | ||
|
8f1ef1581c | ||
|
571f034395 | ||
|
afddb63ecc | ||
|
af230cbed7 | ||
|
6437594240 | ||
|
52b52a2fa7 | ||
|
8d7cab032f | ||
|
f738a42e11 | ||
|
0e35b7e927 | ||
|
56d4d5a883 | ||
|
0c774368f9 | ||
|
546be43b01 | ||
|
1c685b74c4 | ||
|
7f06c5050c | ||
|
468aecd0b9 | ||
|
4b1ca5cae7 | ||
|
95889e1a35 | ||
|
52be06be96 | ||
|
3542169d5d | ||
|
49c12fbe6d | ||
|
8661094ddd | ||
|
3bc95288c5 | ||
|
f042d61218 | ||
|
cfada14ef7 | ||
|
ef91041a0c | ||
|
d14fb73355 | ||
|
987c2ad77f | ||
|
01cf42fe07 | ||
|
5a871a9792 | ||
|
cd9d030aee | ||
|
254790613c | ||
|
ebf2d3512c | ||
|
759581c095 | ||
|
afd8520899 | ||
|
740e4aec52 | ||
|
b3957ffa99 | ||
|
d4e2203d43 | ||
|
c90ec56a84 | ||
|
54b3d31d57 | ||
|
8512eead10 | ||
|
7260dbd9de | ||
|
7a2e6b5ad7 | ||
|
b69bfee3fe | ||
|
e354bfcdd4 | ||
|
33df6d8148 | ||
|
2b0deb49e1 | ||
|
13667e5a3c | ||
|
c54b50b4a0 | ||
|
0273bbb9d6 | ||
|
dc4af94aa9 | ||
|
1f868c91ad | ||
|
cfdec7300b | ||
|
c8a37b66bc | ||
|
a4ccd96bb9 | ||
|
e84ab1fe5a | ||
|
76be31637e | ||
|
484b33d422 | ||
|
b83574ac0c | ||
|
a544d1b4ac | ||
|
582963ba18 | ||
|
0bb0e8a104 | ||
|
22b4795ea5 | ||
|
e9b5a4f825 | ||
|
6152c2a509 | ||
|
7d8a3ae47f | ||
|
c50cd9efbd | ||
|
b3cd0ed59f | ||
|
0bd4ec18df | ||
|
5374fec377 | ||
|
bf8147e110 | ||
|
7a23109140 | ||
|
1a87874d79 | ||
|
d0fdf8b9a9 | ||
|
ac4d11de87 | ||
|
409aba35b3 | ||
|
39978d3543 | ||
|
3ad442128b | ||
|
20211983a0 | ||
|
5d30a4f09c | ||
|
b8c6277050 | ||
|
8d290d04e4 | ||
|
b125d075e3 | ||
|
2ae11a21f8 | ||
|
7f3e782da3 | ||
|
b2b2de3962 | ||
|
51e402c28a | ||
|
3038427909 | ||
|
4bcf3041c0 | ||
|
7c56943183 | ||
|
2d836703db | ||
|
3a0905ad7e | ||
|
32c81be487 | ||
|
88eb607dee | ||
|
0ecbb86c74 | ||
|
f2332d9399 | ||
|
1ce8fece34 | ||
|
ab531593d8 | ||
|
d9a08c4ec8 | ||
|
c7415e910b | ||
|
5dd1ea069f | ||
|
244bed413e | ||
|
e0fd0904d2 | ||
|
c3fdaaedb5 | ||
|
15234df030 | ||
|
5ee142ee4d | ||
|
a9db752cfa | ||
|
3f71914fe7 | ||
|
e010001a52 | ||
|
f4b0f045e0 | ||
|
a94055b6ab | ||
|
02fda552c0 | ||
|
bc7907ffc3 | ||
|
0472df43d7 | ||
|
4de3cebeaa | ||
|
3cec169755 | ||
|
db5aa32eb6 | ||
|
4a6348e460 | ||
|
fc1c3e349b | ||
|
d6582d8ff1 | ||
|
f89b3ecc88 | ||
|
6c6309a938 | ||
|
be5499a6c5 | ||
|
7d4b51e5ff | ||
|
a2e80080ca | ||
|
8354188e36 | ||
|
ef1d710170 | ||
|
8bf516eb20 | ||
|
cd65779486 | ||
|
f3aa4a752c | ||
|
4405a661f8 | ||
|
01b64cae0e | ||
|
fc7a8f22d5 | ||
|
9dcbc4b09f | ||
|
39bad6b5ff | ||
|
f1543567ff | ||
|
72d70f4d27 | ||
|
f007061f47 | ||
|
a442da2ba8 | ||
|
42b4d9fdac | ||
|
6c638b67b6 | ||
|
82287f9eed | ||
|
8b2baa8bbc | ||
|
3b80d5668c | ||
|
962fbed2c7 | ||
|
948d0527aa | ||
|
285938ea84 | ||
|
dd4f051b9d | ||
|
5cf77a1308 | ||
|
734930c9a9 | ||
|
a16cc8b7a2 | ||
|
1fecbad9fe | ||
|
b7a837060c |
398
.gitignore
vendored
Normal file
|
@ -0,0 +1,398 @@
|
||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.log
|
||||||
|
*.tlog
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!?*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
|
||||||
|
*.vbp
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
|
||||||
|
*.dsw
|
||||||
|
*.dsp
|
||||||
|
|
||||||
|
# Visual Studio 6 technical files
|
||||||
|
*.ncb
|
||||||
|
*.aps
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# Visual Studio History (VSHistory) files
|
||||||
|
.vshistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
# VS Code files for those working on multiple tools
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
|
# Local History for Visual Studio Code
|
||||||
|
.history/
|
||||||
|
|
||||||
|
# Windows Installer files from build outputs
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
*.sln.iml
|
5
TODO.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
LSL-Editor v3 porting TODO list
|
||||||
|
The aim of this overhaul of the code-base is to make it multi-platform friendly and gain a better insight into the workings of all areas of the code. Hopefully this will lead to removal of any cruft and a leaner code-base.
|
||||||
|
===============================
|
||||||
|
1) Port window UI/control to GTK+.
|
||||||
|
2) Clean up all the 'syntax' stuff. Alphabetise all constants, events, functions, etc.)
|
|
@ -1,13 +1,11 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2010
|
# Visual Studio Version 17
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lsleditor", "lsleditor.csproj", "{59468D25-6E68-4113-B740-C6EF4695045B}"
|
VisualStudioVersion = 17.3.32929.385
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LSLEditor", "source\LSLEditor.csproj", "{59468D25-6E68-4113-B740-C6EF4695045B}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SubversionScc) = preSolution
|
|
||||||
Svn-Managed = True
|
|
||||||
Manager = AnkhSVN - Subversion Support for Visual Studio
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||||
|
@ -27,4 +25,11 @@ Global
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {69EB7C6C-E955-4FF7-AE34-B439210197AC}
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SubversionScc) = preSolution
|
||||||
|
Svn-Managed = True
|
||||||
|
Manager = AnkhSVN - Subversion Support for Visual Studio
|
||||||
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
56
trunk/About.Designer.cs → source/About.Designer.cs
generated
|
@ -1,22 +1,60 @@
|
||||||
namespace LSLEditor
|
namespace LSLEditor
|
||||||
{
|
{
|
||||||
partial class About
|
/// <summary>
|
||||||
|
/// About dialogue box form.
|
||||||
|
/// </summary>
|
||||||
|
public partial class About
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Container for LSLife picture.
|
||||||
|
/// </summary>
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Container to hold all the elements.
|
||||||
|
/// </summary>
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// OK Button.
|
||||||
|
/// </summary>
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Web Browser.
|
||||||
|
/// </summary>
|
||||||
|
private System.Windows.Forms.WebBrowser webBrowser1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Link label.
|
||||||
|
/// </summary>
|
||||||
|
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Version label.
|
||||||
|
/// </summary>
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// LSL Editor label.
|
||||||
|
/// </summary>
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
/// <param name="disposing">True if managed resources should be disposed; otherwise, false.</param>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
if (disposing && (components != null))
|
if (disposing && (this.components != null)) {
|
||||||
{
|
this.components.Dispose();
|
||||||
components.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,13 +171,5 @@ namespace LSLEditor
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private System.Windows.Forms.PictureBox pictureBox1;
|
|
||||||
private System.Windows.Forms.GroupBox groupBox1;
|
|
||||||
private System.Windows.Forms.Button button1;
|
|
||||||
private System.Windows.Forms.WebBrowser webBrowser1;
|
|
||||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
|
||||||
private System.Windows.Forms.Label label2;
|
|
||||||
private System.Windows.Forms.Label label1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
100
source/About.cs
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
// <copyright file="gpl-2.0.txt">
|
||||||
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
|
//
|
||||||
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
|
// the community would be stuck with crappy editors.
|
||||||
|
//
|
||||||
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
|
//
|
||||||
|
// GPLv2 Header
|
||||||
|
// ************
|
||||||
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
|
// later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
// About.cs
|
||||||
|
// Provides the code for the About dialogue
|
||||||
|
// </summary>
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace LSLEditor
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// About dialogue box form.
|
||||||
|
/// </summary>
|
||||||
|
public partial class About : Form
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initialises a new instance of the <see cref="About" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="parent">The parent form.</param>
|
||||||
|
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1642:ConstructorSummaryDocumentationMustBeginWithStandardText", Justification = "Reviewed.")]
|
||||||
|
public About(LSLEditorForm parent)
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
|
||||||
|
this.Icon = parent.Icon;
|
||||||
|
|
||||||
|
string strVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
|
this.label2.Text = strVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// OK/Close button.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Link to SourceForge page.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start(Properties.Settings.Default.ContactUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Loads the page.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
private void About_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string strExeFileName = Path.GetFileName(Assembly.GetExecutingAssembly().CodeBase);
|
||||||
|
this.webBrowser1.Navigate("res://" + strExeFileName + "/" + Properties.Settings.Default.About);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
667
source/App.config
Normal file
|
@ -0,0 +1,667 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||||
|
<section name="LSLEditor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||||
|
<section name="lsleditor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||||
|
<section name="LSLEditor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
|
<section name="lsleditor.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
|
<userSettings>
|
||||||
|
<LSLEditor.Properties.Settings>
|
||||||
|
<setting name="AvatarName" serializeAs="String">
|
||||||
|
<value>SecondLife Name</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="BrowserInWindow" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="AvatarKey" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="RegionName" serializeAs="String">
|
||||||
|
<value>LSLEditor Island</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="EmailServer" serializeAs="String">
|
||||||
|
<value>smtp.emailserver.tld</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="EmailAddress" serializeAs="String">
|
||||||
|
<value>youraddress@yourdomain.tld</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ProxyServer" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ProxyUserid" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ProxyPassword" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="BrowserLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="FindLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="BrowserSize" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Help" serializeAs="String">
|
||||||
|
<value>http://www.lslwiki.net/lslwiki/wakka.php?wakka=</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="LSLEditorLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="LSLEditorSize" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RegionFPS" serializeAs="String">
|
||||||
|
<value>25</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SimulatorSize" serializeAs="String">
|
||||||
|
<value>0, 175</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SimulatorLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RegionCorner" serializeAs="String">
|
||||||
|
<value>254464, 255232</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="TabbedDocument" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SLColorScheme" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SL4SpacesIndent" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="AutoWordSelection" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="GotoLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="WikiSeperateBrowser" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="BracketHighlight" serializeAs="String">
|
||||||
|
<value>224, 224, 224</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SolutionSize" serializeAs="String">
|
||||||
|
<value>175, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CallUpgrade" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RecentFileMax" serializeAs="String">
|
||||||
|
<value>15</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckForUpdates" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckEveryDay" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckEveryWeek" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckDate" serializeAs="String">
|
||||||
|
<value>2010-01-01</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RecentProjectMax" serializeAs="String">
|
||||||
|
<value>15</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentCursorPlacement" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentFullAuto" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Indent" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SmtpUserid" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SmtpPassword" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SmtpAuth" serializeAs="String">
|
||||||
|
<value>PLAIN</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpOnline" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpOffline" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CVSEXE" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="CVSROOT" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ProjectLocation" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="DeleteOldFiles" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletionUserVar" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletion" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CommentCStyle" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SkipWarnings" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SingleQuote" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="QuotesListVerbose" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletionArguments" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentWarning" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentAutoCorrect" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SvnExe" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SvnUserid" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SvnPassword" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ShowSolutionExplorer" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="WorkingDirectory" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="XSecondLifeShard" serializeAs="String">
|
||||||
|
<value>Production</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="AutoSaveOnDebug" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ToolTip" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpNewTab" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletionAnimation" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ExampleNameNotecard" serializeAs="String">
|
||||||
|
<value>NoteCard.txt</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="llGetScriptName" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="StatesInGlobalFunctions" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelName" serializeAs="String">
|
||||||
|
<value>LSLEditor parcel</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelDescription" serializeAs="String">
|
||||||
|
<value>Description of LSLEditor parcel</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelOwner" serializeAs="String">
|
||||||
|
<value>00000000-0000-0000-0000-000000000000</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelGroup" serializeAs="String">
|
||||||
|
<value>00000000-0000-0000-0000-000000000000</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelArea" serializeAs="String">
|
||||||
|
<value>512</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="VersionControl" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="VersionControlSVN" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="OutputFormat" serializeAs="String">
|
||||||
|
<value>UTF-8</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelID" serializeAs="String">
|
||||||
|
<value>00000000-0000-0000-0000-000000000000</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelSeeAvatars" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ShowIncludeMetaData" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ExampleNameLSLI" serializeAs="String">
|
||||||
|
<value>default.lsli</value>
|
||||||
|
</setting>
|
||||||
|
</LSLEditor.Properties.Settings>
|
||||||
|
<lsleditor.Properties.Settings>
|
||||||
|
<setting name="AvatarName" serializeAs="String">
|
||||||
|
<value>SecondLife Name</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="BrowserInWindow" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="AvatarKey" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="RegionName" serializeAs="String">
|
||||||
|
<value>LSLEditor Island</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="EmailServer" serializeAs="String">
|
||||||
|
<value>smtp.emailserver.tld</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="EmailAddress" serializeAs="String">
|
||||||
|
<value>youraddress@yourdomain.ext</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ProxyServer" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ProxyUserid" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ProxyPassword" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="BrowserLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="FindLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="BrowserSize" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Help" serializeAs="String">
|
||||||
|
<value>http://www.lslwiki.net/lslwiki/wakka.php?wakka=</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="LSLEditorLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="LSLEditorSize" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RegionFPS" serializeAs="String">
|
||||||
|
<value>25</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SimulatorSize" serializeAs="String">
|
||||||
|
<value>0, 175</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SimulatorLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RegionCorner" serializeAs="String">
|
||||||
|
<value>254464, 255232</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="TabbedDocument" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SLColorScheme" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SL4SpacesIndent" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="AutoWordSelection" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="GotoLocation" serializeAs="String">
|
||||||
|
<value>0, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="WikiSeperateBrowser" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="BracketHighlight" serializeAs="String">
|
||||||
|
<value>224, 224, 224</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SolutionSize" serializeAs="String">
|
||||||
|
<value>175, 0</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CallUpgrade" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RecentFileMax" serializeAs="String">
|
||||||
|
<value>15</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckForUpdates" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckEveryDay" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckEveryWeek" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CheckDate" serializeAs="String">
|
||||||
|
<value>2010-01-01</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="RecentProjectMax" serializeAs="String">
|
||||||
|
<value>15</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentCursorPlacement" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentFullAuto" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Indent" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SmtpUserid" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SmtpPassword" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SmtpAuth" serializeAs="String">
|
||||||
|
<value>PLAIN</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpOnline" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpOffline" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CVSEXE" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="CVSROOT" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ProjectLocation" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="DeleteOldFiles" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletionUserVar" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletion" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CommentCStyle" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SkipWarnings" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SingleQuote" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="QuotesListVerbose" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletionArguments" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentWarning" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="IndentAutoCorrect" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="SvnExe" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SvnUserid" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="SvnPassword" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="ShowSolutionExplorer" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="WorkingDirectory" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="XSecondLifeShard" serializeAs="String">
|
||||||
|
<value>Production</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="AutoSaveOnDebug" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ToolTip" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpNewTab" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="CodeCompletionAnimation" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ExampleNameNotecard" serializeAs="String">
|
||||||
|
<value>NoteCard.txt</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="llGetScriptName" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="StatesInGlobalFunctions" serializeAs="String">
|
||||||
|
<value>False</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelName" serializeAs="String">
|
||||||
|
<value>LSLEditor parcel</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelDescription" serializeAs="String">
|
||||||
|
<value>Description of LSLEditor parcel</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelOwner" serializeAs="String">
|
||||||
|
<value>00000000-0000-0000-0000-000000000000</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelGroup" serializeAs="String">
|
||||||
|
<value>00000000-0000-0000-0000-000000000000</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ParcelArea" serializeAs="String">
|
||||||
|
<value>512</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="VersionControl" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="VersionControlSVN" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="OutputFormat" serializeAs="String">
|
||||||
|
<value>UTF-8</value>
|
||||||
|
</setting>
|
||||||
|
</lsleditor.Properties.Settings>
|
||||||
|
</userSettings>
|
||||||
|
<applicationSettings>
|
||||||
|
<LSLEditor.Properties.Settings>
|
||||||
|
<setting name="ConfLSL" serializeAs="String">
|
||||||
|
<value>Resource.ConfLSL.xml</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ExampleName" serializeAs="String">
|
||||||
|
<value>new.lsl</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ReleaseNotes" serializeAs="String">
|
||||||
|
<value>ReleaseNotes.htm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="About" serializeAs="String">
|
||||||
|
<value>About.htm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="TabStops" serializeAs="String">
|
||||||
|
<value>4</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ToolTipDelay" serializeAs="String">
|
||||||
|
<value>100</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="PathClipLength" serializeAs="String">
|
||||||
|
<value>60</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ExampleTemplate" serializeAs="String">
|
||||||
|
<value>default.lsl</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpOfflineFile" serializeAs="String">
|
||||||
|
<value>LSLEditorHelp.chm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Example" serializeAs="String">
|
||||||
|
<value>
|
||||||
|
default
|
||||||
|
{
|
||||||
|
state_entry()
|
||||||
|
{
|
||||||
|
llSay(0, "Hello, Avatar!");
|
||||||
|
}
|
||||||
|
touch_start(integer total_number)
|
||||||
|
{
|
||||||
|
llSay(0, "Touched: "+(string)total_number);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Examples" serializeAs="String">
|
||||||
|
<value>http://www.lsleditor.org/examples/</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Upload" serializeAs="String">
|
||||||
|
<value>http://www.lsleditor.org/uploadscript/</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ConfCSharp" serializeAs="String">
|
||||||
|
<value>Resource.ConfCSharp.xml</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ToolsOptions" serializeAs="String">
|
||||||
|
<value>Resource.ToolsOptions.xml</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ContactUrl" serializeAs="String">
|
||||||
|
<value>https://sourceforge.net/tracker/?group_id=319248</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="DonateUrl" serializeAs="String">
|
||||||
|
<value>http://www.lsleditor.org/donate.htm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Help2" serializeAs="String">
|
||||||
|
<value>http://wiki.secondlife.com/wiki/Special:Search?go=Go&search=</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Help1" serializeAs="String">
|
||||||
|
<value>http://www.lslwiki.net/lslwiki/wakka.php?wakka=</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ForumLSLEditor" serializeAs="String">
|
||||||
|
<value>https://sourceforge.net/projects/lsleditor/forums</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="qasite" serializeAs="String">
|
||||||
|
<value>http://metaversegames.net/questions/lsl</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="svnloc" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="Update" serializeAs="String">
|
||||||
|
<value>http://lsleditor.sourceforge.net/check4update.php</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="UpdateManifest" serializeAs="String">
|
||||||
|
<value>http://lsleditor.sourceforge.net/update.php</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Update1" serializeAs="String">
|
||||||
|
<value>http://a-w-d.dyndns.org:8080/lsleditor/check4update.php</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="UpdateManifest1" serializeAs="String">
|
||||||
|
<value>http://a-w-d.dyndns.org:8080/lsleditor/update.php</value>
|
||||||
|
</setting>
|
||||||
|
</LSLEditor.Properties.Settings>
|
||||||
|
<lsleditor.Properties.Settings>
|
||||||
|
<setting name="ConfLSL" serializeAs="String">
|
||||||
|
<value>Resource.ConfLSL.xml</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ExampleName" serializeAs="String">
|
||||||
|
<value>new.lsl</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ReleaseNotes" serializeAs="String">
|
||||||
|
<value>ReleaseNotes.htm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="About" serializeAs="String">
|
||||||
|
<value>About.htm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="TabStops" serializeAs="String">
|
||||||
|
<value>4</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ToolTipDelay" serializeAs="String">
|
||||||
|
<value>100</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="PathClipLength" serializeAs="String">
|
||||||
|
<value>60</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ExampleTemplate" serializeAs="String">
|
||||||
|
<value>default.lsl</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="HelpOfflineFile" serializeAs="String">
|
||||||
|
<value>LSLEditorHelp.chm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Example" serializeAs="String">
|
||||||
|
<value>
|
||||||
|
default
|
||||||
|
{
|
||||||
|
state_entry()
|
||||||
|
{
|
||||||
|
llSay(0, "Hello, Avatar!");
|
||||||
|
}
|
||||||
|
touch_start(integer total_number)
|
||||||
|
{
|
||||||
|
llSay(0, "Touched: "+(string)total_number);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Examples" serializeAs="String">
|
||||||
|
<value>http://www.lsleditor.org/examples/</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Upload" serializeAs="String">
|
||||||
|
<value>http://www.lsleditor.org/uploadscript/</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ConfCSharp" serializeAs="String">
|
||||||
|
<value>Resource.ConfCSharp.xml</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ToolsOptions" serializeAs="String">
|
||||||
|
<value>Resource.ToolsOptions.xml</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ContactUrl" serializeAs="String">
|
||||||
|
<value>https://sourceforge.net/tracker/?group_id=319248</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="DonateUrl" serializeAs="String">
|
||||||
|
<value>http://www.lsleditor.org/donate.htm</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Help2" serializeAs="String">
|
||||||
|
<value>http://wiki.secondlife.com/wiki/Special:Search?go=Go&search=</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Help1" serializeAs="String">
|
||||||
|
<value>http://www.lslwiki.net/lslwiki/wakka.php?wakka=</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="ForumLSLEditor" serializeAs="String">
|
||||||
|
<value>https://sourceforge.net/projects/lsleditor/forums</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="qasite" serializeAs="String">
|
||||||
|
<value>http://metaversegames.net/questions/lsl</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="svnloc" serializeAs="String">
|
||||||
|
<value />
|
||||||
|
</setting>
|
||||||
|
<setting name="Update" serializeAs="String">
|
||||||
|
<value>http://lsleditor.sourceforge.net/check4update.php</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="UpdateManifest" serializeAs="String">
|
||||||
|
<value>http://lsleditor.sourceforge.net/update.php</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="Update1" serializeAs="String">
|
||||||
|
<value>http://a-w-d.dyndns.org:8080/lsleditor/check4update.php</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="UpdateManifest1" serializeAs="String">
|
||||||
|
<value>http://a-w-d.dyndns.org:8080/lsleditor/update.php</value>
|
||||||
|
</setting>
|
||||||
|
</lsleditor.Properties.Settings>
|
||||||
|
</applicationSettings>
|
||||||
|
</configuration>
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
63
source/BZip2Decompress/BZip2.cs
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
// <copyright file="gpl-2.0.txt">
|
||||||
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
|
//
|
||||||
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
|
// the community would be stuck with crappy editors.
|
||||||
|
//
|
||||||
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
|
//
|
||||||
|
// GPLv2 Header
|
||||||
|
// ************
|
||||||
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
|
// later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
// BZip2.Decompress(File.OpenRead("in"), File.Create("out"));
|
||||||
|
|
||||||
|
|
||||||
|
namespace LSLEditor.Decompressor
|
||||||
|
{
|
||||||
|
public sealed class BZip2
|
||||||
|
{
|
||||||
|
public static void Decompress(Stream inStream, Stream outStream)
|
||||||
|
{
|
||||||
|
using ( outStream ) {
|
||||||
|
using ( BZip2InputStream bzis = new BZip2InputStream(inStream) ) {
|
||||||
|
int ch = bzis.ReadByte();
|
||||||
|
while (ch != -1) {
|
||||||
|
outStream.WriteByte((byte)ch);
|
||||||
|
ch = bzis.ReadByte();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,43 @@
|
||||||
namespace LSLEditor.BZip2Decompress
|
// <copyright file="gpl-2.0.txt">
|
||||||
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
|
//
|
||||||
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
|
// the community would be stuck with crappy editors.
|
||||||
|
//
|
||||||
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
|
//
|
||||||
|
// GPLv2 Header
|
||||||
|
// ************
|
||||||
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
|
// later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
|
namespace LSLEditor.Decompressor
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
|
@ -1,7 +1,46 @@
|
||||||
|
// <copyright file="gpl-2.0.txt">
|
||||||
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
|
//
|
||||||
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
|
// the community would be stuck with crappy editors.
|
||||||
|
//
|
||||||
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
|
//
|
||||||
|
// GPLv2 Header
|
||||||
|
// ************
|
||||||
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
|
// later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace LSLEditor.BZip2Decompress
|
namespace LSLEditor.Decompressor
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
|
@ -35,7 +35,7 @@
|
||||||
// obligated to do so. If you do not wish to do so, delete this
|
// obligated to do so. If you do not wish to do so, delete this
|
||||||
// exception statement from your version.
|
// exception statement from your version.
|
||||||
|
|
||||||
namespace LSLEditor.BZip2Decompress
|
namespace LSLEditor.Decompressor
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LSLEditor.BZip2Decompress
|
namespace LSLEditor.Decompressor
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bzip2 checksum algorithm
|
/// Bzip2 checksum algorithm
|
160
source/Browser.cs
Normal file
|
@ -0,0 +1,160 @@
|
||||||
|
// <copyright file="gpl-2.0.txt">
|
||||||
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
|
//
|
||||||
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
|
// the community would be stuck with crappy editors.
|
||||||
|
//
|
||||||
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
|
//
|
||||||
|
// GPLv2 Header
|
||||||
|
// ************
|
||||||
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
|
// later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
// Browser.cs
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Drawing.Imaging;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using LSLEditor.Docking;
|
||||||
|
|
||||||
|
namespace LSLEditor
|
||||||
|
{
|
||||||
|
public partial class Browser : DockContent
|
||||||
|
{
|
||||||
|
private LSLEditorForm lslEditorForm;
|
||||||
|
|
||||||
|
public Browser(LSLEditorForm lslEditorForm)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
this.Icon = lslEditorForm.Icon;
|
||||||
|
this.lslEditorForm = lslEditorForm;
|
||||||
|
|
||||||
|
// enables close buttons on tabs
|
||||||
|
this.tabControl1.SetDrawMode();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void axWebBrowser1_StatusTextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WebBrowser axWebBrowser1 = sender as WebBrowser;
|
||||||
|
ToolStripStatusLabel status = axWebBrowser1.Tag as ToolStripStatusLabel;
|
||||||
|
if (status != null) {
|
||||||
|
status.Text = axWebBrowser1.StatusText;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void axWebBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
|
||||||
|
{
|
||||||
|
string strUrl = e.Url.ToString();
|
||||||
|
if (strUrl.EndsWith(".lsl")) {
|
||||||
|
e.Cancel = true;
|
||||||
|
if (MessageBox.Show("Import LSL script?", "Import script", MessageBoxButtons.OKCancel) != DialogResult.Cancel) {
|
||||||
|
WebBrowser axWebBrowser1 = sender as WebBrowser;
|
||||||
|
axWebBrowser1.Stop();
|
||||||
|
|
||||||
|
this.lslEditorForm.OpenFile(strUrl, Guid.NewGuid());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShowWebBrowser(string strTabName, string strUrl)
|
||||||
|
{
|
||||||
|
WebBrowser axWebBrowser1 = null;
|
||||||
|
try {
|
||||||
|
if (!Properties.Settings.Default.HelpNewTab) {
|
||||||
|
TabPage tabPage = this.tabControl1.TabPages[0];
|
||||||
|
tabPage.Text = strTabName + " ";
|
||||||
|
axWebBrowser1 = tabPage.Controls[0] as WebBrowser;
|
||||||
|
}
|
||||||
|
} catch { }
|
||||||
|
|
||||||
|
if (axWebBrowser1 == null) {
|
||||||
|
TabPage tabPage = new TabPage(strTabName + " ");
|
||||||
|
tabPage.BackColor = Color.White;
|
||||||
|
|
||||||
|
axWebBrowser1 = new WebBrowser();
|
||||||
|
|
||||||
|
ToolStripStatusLabel toolStripStatusLabel1 = new ToolStripStatusLabel();
|
||||||
|
StatusStrip statusStrip1 = new StatusStrip();
|
||||||
|
|
||||||
|
statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { toolStripStatusLabel1 });
|
||||||
|
statusStrip1.Location = new System.Drawing.Point(0, 318);
|
||||||
|
statusStrip1.Name = "statusStrip1";
|
||||||
|
statusStrip1.Size = new System.Drawing.Size(584, 22);
|
||||||
|
statusStrip1.TabIndex = 0;
|
||||||
|
statusStrip1.Text = "statusStrip1";
|
||||||
|
|
||||||
|
toolStripStatusLabel1.Name = "toolStripStatusLabel1";
|
||||||
|
toolStripStatusLabel1.Size = new System.Drawing.Size(109, 17);
|
||||||
|
toolStripStatusLabel1.Text = "toolStripStatusLabel1";
|
||||||
|
|
||||||
|
tabPage.Controls.Add(axWebBrowser1);
|
||||||
|
|
||||||
|
tabPage.Controls.Add(statusStrip1);
|
||||||
|
|
||||||
|
this.tabControl1.TabPages.Add(tabPage);
|
||||||
|
this.tabControl1.SelectedIndex = this.tabControl1.TabCount - 1;
|
||||||
|
|
||||||
|
// reference
|
||||||
|
axWebBrowser1.Tag = toolStripStatusLabel1;
|
||||||
|
|
||||||
|
axWebBrowser1.Dock = DockStyle.Fill;
|
||||||
|
axWebBrowser1.StatusTextChanged += new EventHandler(axWebBrowser1_StatusTextChanged);
|
||||||
|
axWebBrowser1.Navigating += new WebBrowserNavigatingEventHandler(axWebBrowser1_Navigating);
|
||||||
|
}
|
||||||
|
axWebBrowser1.Navigate(strUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
int intTabToClose = (int)this.contextMenuStrip1.Tag;
|
||||||
|
if (intTabToClose < this.tabControl1.TabCount) {
|
||||||
|
this.tabControl1.TabPages.RemoveAt(intTabToClose);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tabControl1_MouseDown(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
TabControl tabControl = sender as TabControl;
|
||||||
|
if (tabControl != null) {
|
||||||
|
if (e.Button == MouseButtons.Right) {
|
||||||
|
for (int intI = 0; intI < tabControl.TabCount; intI++) {
|
||||||
|
Rectangle rt = tabControl.GetTabRect(intI);
|
||||||
|
if (e.X > rt.Left && e.X < rt.Right
|
||||||
|
&& e.Y > rt.Top && e.Y < rt.Bottom) {
|
||||||
|
this.contextMenuStrip1.Tag = intI;
|
||||||
|
this.contextMenuStrip1.Show(this.tabControl1, new Point(e.X, e.Y));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,46 +1,42 @@
|
||||||
// /**
|
// <copyright file="gpl-2.0.txt">
|
||||||
// ********
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
// *
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
// * ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
// * The code was donated on 4/28/2010 by Alphons van der Heijden
|
|
||||||
// * To Brandon 'Dimentox Travanti' Husbands & Malcolm J. Kudra, who in turn License under the GPLv2.
|
|
||||||
// * In agreement with Alphons van der Heijden's wishes.
|
|
||||||
// *
|
|
||||||
// * The community would like to thank Alphons for all of his hard work, blood sweat and tears.
|
|
||||||
// * Without his work the community would be stuck with crappy editors.
|
|
||||||
// *
|
|
||||||
// * The source code in this file ("Source Code") is provided by The LSLEditor Group
|
|
||||||
// * to you under the terms of the GNU General Public License, version 2.0
|
|
||||||
// * ("GPL"), unless you have obtained a separate licensing agreement
|
|
||||||
// * ("Other License"), formally executed by you and The LSLEditor Group. Terms of
|
|
||||||
// * the GPL can be found in the gplv2.txt document.
|
|
||||||
// *
|
|
||||||
// ********
|
|
||||||
// * GPLv2 Header
|
|
||||||
// ********
|
|
||||||
// * LSLEditor, a External editor for the LSL Language.
|
|
||||||
// * Copyright (C) 2010 The LSLEditor Group.
|
|
||||||
//
|
//
|
||||||
// * This program is free software; you can redistribute it and/or
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
// * modify it under the terms of the GNU General Public License
|
// the community would be stuck with crappy editors.
|
||||||
// * as published by the Free Software Foundation; either version 2
|
//
|
||||||
// * of the License, or (at your option) any later version.
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
// *
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
// * This program is distributed in the hope that it will be useful,
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
//
|
||||||
// * GNU General Public License for more details.
|
// GPLv2 Header
|
||||||
// *
|
// ************
|
||||||
// * You should have received a copy of the GNU General Public License
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
// * along with this program; if not, write to the Free Software
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
// * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
//
|
||||||
// ********
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
// *
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
// * The above copyright notice and this permission notice shall be included in all
|
// later version.
|
||||||
// * copies or substantial portions of the Software.
|
//
|
||||||
// *
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
// ********
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
// */
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
// BugReportForm.cs
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
@ -49,7 +45,6 @@ using System.Text;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
using LSLEditor.org.lsleditor.www;
|
|
||||||
|
|
||||||
|
|
||||||
namespace LSLEditor.BugReport
|
namespace LSLEditor.BugReport
|
||||||
|
@ -204,19 +199,19 @@ namespace LSLEditor.BugReport
|
||||||
|
|
||||||
private void listView2_SelectedIndexChanged(object sender, EventArgs e)
|
private void listView2_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.listView2.SelectedItems.Count == 0)
|
/*if (this.listView2.SelectedItems.Count == 0)
|
||||||
return;
|
return;
|
||||||
ListViewItem lvi = this.listView2.SelectedItems[0];
|
ListViewItem lvi = this.listView2.SelectedItems[0];
|
||||||
string Handle = lvi.Tag.ToString();
|
string Handle = lvi.Tag.ToString();
|
||||||
|
|
||||||
Service1 service1 = new Service1();
|
Service1 service1 = new Service1();
|
||||||
service1.GetStatusCompleted += new GetStatusCompletedEventHandler(service1_GetStatusCompleted);
|
service1.GetStatusCompleted += new GetStatusCompletedEventHandler(service1_GetStatusCompleted);
|
||||||
service1.GetStatusAsync(Handle, Handle);
|
service1.GetStatusAsync(Handle, Handle);*/
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
void service1_GetStatusCompleted(object sender, GetStatusCompletedEventArgs e)
|
void service1_GetStatusCompleted(object sender, GetStatusCompletedEventArgs e)
|
||||||
{
|
{
|
||||||
this.textBox5.Clear();
|
/*this.textBox5.Clear();
|
||||||
string Handle = e.UserState.ToString();
|
string Handle = e.UserState.ToString();
|
||||||
if (e.Error != null)
|
if (e.Error != null)
|
||||||
{
|
{
|
||||||
|
@ -257,7 +252,7 @@ namespace LSLEditor.BugReport
|
||||||
}
|
}
|
||||||
|
|
||||||
this.textBox4.Text = strResult.Replace("\n", "\r\n");
|
this.textBox4.Text = strResult.Replace("\n", "\r\n");
|
||||||
}
|
}*/
|
||||||
|
|
||||||
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
|
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
|
@ -1,46 +1,42 @@
|
||||||
// /**
|
// <copyright file="gpl-2.0.txt">
|
||||||
// ********
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
// *
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
// * ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
// * The code was donated on 4/28/2010 by Alphons van der Heijden
|
|
||||||
// * To Brandon 'Dimentox Travanti' Husbands & Malcolm J. Kudra, who in turn License under the GPLv2.
|
|
||||||
// * In agreement with Alphons van der Heijden's wishes.
|
|
||||||
// *
|
|
||||||
// * The community would like to thank Alphons for all of his hard work, blood sweat and tears.
|
|
||||||
// * Without his work the community would be stuck with crappy editors.
|
|
||||||
// *
|
|
||||||
// * The source code in this file ("Source Code") is provided by The LSLEditor Group
|
|
||||||
// * to you under the terms of the GNU General Public License, version 2.0
|
|
||||||
// * ("GPL"), unless you have obtained a separate licensing agreement
|
|
||||||
// * ("Other License"), formally executed by you and The LSLEditor Group. Terms of
|
|
||||||
// * the GPL can be found in the gplv2.txt document.
|
|
||||||
// *
|
|
||||||
// ********
|
|
||||||
// * GPLv2 Header
|
|
||||||
// ********
|
|
||||||
// * LSLEditor, a External editor for the LSL Language.
|
|
||||||
// * Copyright (C) 2010 The LSLEditor Group.
|
|
||||||
//
|
//
|
||||||
// * This program is free software; you can redistribute it and/or
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
// * modify it under the terms of the GNU General Public License
|
// the community would be stuck with crappy editors.
|
||||||
// * as published by the Free Software Foundation; either version 2
|
//
|
||||||
// * of the License, or (at your option) any later version.
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
// *
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
// * This program is distributed in the hope that it will be useful,
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
//
|
||||||
// * GNU General Public License for more details.
|
// GPLv2 Header
|
||||||
// *
|
// ************
|
||||||
// * You should have received a copy of the GNU General Public License
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
// * along with this program; if not, write to the Free Software
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
// * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
//
|
||||||
// ********
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
// *
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
// * The above copyright notice and this permission notice shall be included in all
|
// later version.
|
||||||
// * copies or substantial portions of the Software.
|
//
|
||||||
// *
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
// ********
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
// */
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
@ -115,8 +111,8 @@ namespace LSLEditor.BugReport
|
||||||
int intTotal = 0;
|
int intTotal = 0;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
org.lsleditor.www.Service1 webservice = new org.lsleditor.www.Service1();
|
//org.lsleditor.www.Service1 webservice = new org.lsleditor.www.Service1();
|
||||||
|
/*
|
||||||
string Handle = webservice.Open();
|
string Handle = webservice.Open();
|
||||||
if (Handle == null)
|
if (Handle == null)
|
||||||
{
|
{
|
||||||
|
@ -144,7 +140,7 @@ namespace LSLEditor.BugReport
|
||||||
intTotal += Upload(Handle, strFileName, file.Path);
|
intTotal += Upload(Handle, strFileName, file.Path);
|
||||||
}
|
}
|
||||||
intNumber++;
|
intNumber++;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
@ -183,7 +179,7 @@ namespace LSLEditor.BugReport
|
||||||
}
|
}
|
||||||
private int Upload(string Handle, string FileName, byte[] buffer)
|
private int Upload(string Handle, string FileName, byte[] buffer)
|
||||||
{
|
{
|
||||||
org.lsleditor.www.Service1 webservice = new org.lsleditor.www.Service1();
|
/*org.lsleditor.www.Service1 webservice = new org.lsleditor.www.Service1();
|
||||||
if (Handle == null)
|
if (Handle == null)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -207,7 +203,8 @@ namespace LSLEditor.BugReport
|
||||||
intTotal += intLength;
|
intTotal += intLength;
|
||||||
SetValue(intTotal);
|
SetValue(intTotal);
|
||||||
}
|
}
|
||||||
return intTotal;
|
return intTotal;*/
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int Upload(string Handle, string FileName, string strPath)
|
private int Upload(string Handle, string FileName, string strPath)
|
93
source/Decompressor/Decompress.cs
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
// <copyright file="gpl-2.0.txt">
|
||||||
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
|
//
|
||||||
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
|
// the community would be stuck with crappy editors.
|
||||||
|
//
|
||||||
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
|
//
|
||||||
|
// GPLv2 Header
|
||||||
|
// ************
|
||||||
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
|
// later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
|
using System; // bitconvertor
|
||||||
|
using System.IO;
|
||||||
|
using System.IO.Compression;
|
||||||
|
|
||||||
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
|
|
||||||
|
namespace LSLEditor.Decompressor
|
||||||
|
{
|
||||||
|
public class MD5Verify
|
||||||
|
{
|
||||||
|
public static string ComputeHash(string strFile)
|
||||||
|
{
|
||||||
|
MD5CryptoServiceProvider csp = new MD5CryptoServiceProvider();
|
||||||
|
FileStream stream = File.OpenRead(strFile);
|
||||||
|
byte[] hash = csp.ComputeHash(stream);
|
||||||
|
stream.Close();
|
||||||
|
return BitConverter.ToString(hash).Replace("-", "").ToLower();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public sealed class Gzip
|
||||||
|
{
|
||||||
|
public static void Decompress(Stream inStream, Stream outStream)
|
||||||
|
{
|
||||||
|
using (outStream)
|
||||||
|
{
|
||||||
|
using (GZipStream zipStream = new GZipStream(inStream, CompressionMode.Decompress))
|
||||||
|
{
|
||||||
|
int ch = zipStream.ReadByte();
|
||||||
|
while (ch != -1)
|
||||||
|
{
|
||||||
|
outStream.WriteByte((byte)ch);
|
||||||
|
ch = zipStream.ReadByte();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public sealed class Zip
|
||||||
|
{
|
||||||
|
public static void Decompress(Stream inStream, Stream outStream)
|
||||||
|
{
|
||||||
|
ZipEntry zipEntry = ZipEntry.Read(inStream);
|
||||||
|
inStream.Close();
|
||||||
|
using (outStream)
|
||||||
|
{
|
||||||
|
zipEntry.Extract(outStream);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,46 +1,42 @@
|
||||||
// /**
|
// <copyright file="gpl-2.0.txt">
|
||||||
// ********
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
// *
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
// * ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
// * The code was donated on 4/28/2010 by Alphons van der Heijden
|
|
||||||
// * To Brandon 'Dimentox Travanti' Husbands & Malcolm J. Kudra, who in turn License under the GPLv2.
|
|
||||||
// * In agreement with Alphons van der Heijden's wishes.
|
|
||||||
// *
|
|
||||||
// * The community would like to thank Alphons for all of his hard work, blood sweat and tears.
|
|
||||||
// * Without his work the community would be stuck with crappy editors.
|
|
||||||
// *
|
|
||||||
// * The source code in this file ("Source Code") is provided by The LSLEditor Group
|
|
||||||
// * to you under the terms of the GNU General Public License, version 2.0
|
|
||||||
// * ("GPL"), unless you have obtained a separate licensing agreement
|
|
||||||
// * ("Other License"), formally executed by you and The LSLEditor Group. Terms of
|
|
||||||
// * the GPL can be found in the gplv2.txt document.
|
|
||||||
// *
|
|
||||||
// ********
|
|
||||||
// * GPLv2 Header
|
|
||||||
// ********
|
|
||||||
// * LSLEditor, a External editor for the LSL Language.
|
|
||||||
// * Copyright (C) 2010 The LSLEditor Group.
|
|
||||||
//
|
//
|
||||||
// * This program is free software; you can redistribute it and/or
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
// * modify it under the terms of the GNU General Public License
|
// the community would be stuck with crappy editors.
|
||||||
// * as published by the Free Software Foundation; either version 2
|
//
|
||||||
// * of the License, or (at your option) any later version.
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
// *
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
// * This program is distributed in the hope that it will be useful,
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
//
|
||||||
// * GNU General Public License for more details.
|
// GPLv2 Header
|
||||||
// *
|
// ************
|
||||||
// * You should have received a copy of the GNU General Public License
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
// * along with this program; if not, write to the Free Software
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
// * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
//
|
||||||
// ********
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
// *
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
// * The above copyright notice and this permission notice shall be included in all
|
// later version.
|
||||||
// * copies or substantial portions of the Software.
|
//
|
||||||
// *
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
// ********
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
// */
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LSLEditor.Decompressor
|
namespace LSLEditor.Decompressor
|
|
@ -185,7 +185,7 @@ namespace LSLEditor.Docking
|
||||||
[LocalizedCategory("Category_Docking")]
|
[LocalizedCategory("Category_Docking")]
|
||||||
[LocalizedDescription("DockContent_TabPageContextMenu_Description")]
|
[LocalizedDescription("DockContent_TabPageContextMenu_Description")]
|
||||||
[DefaultValue(null)]
|
[DefaultValue(null)]
|
||||||
public ContextMenu TabPageContextMenu
|
public ContextMenuStrip TabPageContextMenu
|
||||||
{
|
{
|
||||||
get { return DockHandler.TabPageContextMenu; }
|
get { return DockHandler.TabPageContextMenu; }
|
||||||
set { DockHandler.TabPageContextMenu = value; }
|
set { DockHandler.TabPageContextMenu = value; }
|
120
source/Docking/DockContent.resx
Normal file
|
@ -0,0 +1,120 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
|
@ -608,8 +608,8 @@ namespace LSLEditor.Docking
|
||||||
return DockHelper.IsDockStateValid(dockState, DockAreas);
|
return DockHelper.IsDockStateValid(dockState, DockAreas);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ContextMenu m_tabPageContextMenu = null;
|
private ContextMenuStrip m_tabPageContextMenu = null;
|
||||||
public ContextMenu TabPageContextMenu
|
public ContextMenuStrip TabPageContextMenu
|
||||||
{
|
{
|
||||||
get { return m_tabPageContextMenu; }
|
get { return m_tabPageContextMenu; }
|
||||||
set { m_tabPageContextMenu = value; }
|
set { m_tabPageContextMenu = value; }
|
|
@ -261,7 +261,7 @@ namespace LSLEditor.Docking
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ContextMenu contextMenu = menu as ContextMenu;
|
ContextMenuStrip contextMenu = menu as ContextMenuStrip;
|
||||||
if (contextMenu != null)
|
if (contextMenu != null)
|
||||||
contextMenu.Show(this, position);
|
contextMenu.Show(this, position);
|
||||||
}
|
}
|
120
source/Docking/DockPaneStripBase.resx
Normal file
|
@ -0,0 +1,120 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
|
@ -2,6 +2,7 @@ using System;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
using Timer = System.Windows.Forms.Timer;
|
||||||
|
|
||||||
namespace LSLEditor.Docking
|
namespace LSLEditor.Docking
|
||||||
{
|
{
|
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 90 B After Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 774 B |
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 774 B |
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 774 B |
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 774 B |
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 774 B |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
@ -31,8 +31,8 @@ namespace LSLEditor
|
||||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
this.tvOutline = new System.Windows.Forms.TreeView();
|
|
||||||
this.numberedTextBoxUC1 = new NumberedTextBox.NumberedTextBoxUC();
|
this.numberedTextBoxUC1 = new NumberedTextBox.NumberedTextBoxUC();
|
||||||
|
this.tvOutline = new System.Windows.Forms.TreeView();
|
||||||
this.tabControl1.SuspendLayout();
|
this.tabControl1.SuspendLayout();
|
||||||
this.tabPage1.SuspendLayout();
|
this.tabPage1.SuspendLayout();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
|
@ -83,18 +83,6 @@ namespace LSLEditor
|
||||||
this.splitContainer1.SplitterDistance = 397;
|
this.splitContainer1.SplitterDistance = 397;
|
||||||
this.splitContainer1.TabIndex = 7;
|
this.splitContainer1.TabIndex = 7;
|
||||||
//
|
//
|
||||||
// tvOutline
|
|
||||||
//
|
|
||||||
this.tvOutline.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.tvOutline.HotTracking = true;
|
|
||||||
this.tvOutline.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.tvOutline.Name = "tvOutline";
|
|
||||||
this.tvOutline.Size = new System.Drawing.Size(141, 228);
|
|
||||||
this.tvOutline.TabIndex = 6;
|
|
||||||
this.tvOutline.VisibleChanged += new System.EventHandler(this.tvOutline_VisibleChanged);
|
|
||||||
this.tvOutline.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvOutline_AfterSelect);
|
|
||||||
this.tvOutline.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.tvOutline_NodeMouseClick);
|
|
||||||
//
|
|
||||||
// numberedTextBoxUC1
|
// numberedTextBoxUC1
|
||||||
//
|
//
|
||||||
this.numberedTextBoxUC1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.numberedTextBoxUC1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
@ -103,12 +91,25 @@ namespace LSLEditor
|
||||||
this.numberedTextBoxUC1.Size = new System.Drawing.Size(393, 228);
|
this.numberedTextBoxUC1.Size = new System.Drawing.Size(393, 228);
|
||||||
this.numberedTextBoxUC1.TabIndex = 4;
|
this.numberedTextBoxUC1.TabIndex = 4;
|
||||||
//
|
//
|
||||||
|
// tvOutline
|
||||||
|
//
|
||||||
|
this.tvOutline.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.tvOutline.HotTracking = true;
|
||||||
|
this.tvOutline.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.tvOutline.Name = "tvOutline";
|
||||||
|
this.tvOutline.Size = new System.Drawing.Size(141, 228);
|
||||||
|
this.tvOutline.TabIndex = 6;
|
||||||
|
this.tvOutline.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvOutline_AfterSelect);
|
||||||
|
this.tvOutline.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.tvOutline_NodeMouseClick);
|
||||||
|
this.tvOutline.VisibleChanged += new System.EventHandler(this.tvOutline_VisibleChanged);
|
||||||
|
//
|
||||||
// EditForm
|
// EditForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(560, 264);
|
this.ClientSize = new System.Drawing.Size(560, 264);
|
||||||
this.Controls.Add(this.tabControl1);
|
this.Controls.Add(this.tabControl1);
|
||||||
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.Name = "EditForm";
|
this.Name = "EditForm";
|
||||||
this.Text = "EditForm";
|
this.Text = "EditForm";
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.EditForm_FormClosing);
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.EditForm_FormClosing);
|
638
source/EditForm.cs
Normal file
|
@ -0,0 +1,638 @@
|
||||||
|
// <copyright file="gpl-2.0.txt">
|
||||||
|
// ORIGINAL CODE BASE IS Copyright (C) 2006-2010 by Alphons van der Heijden.
|
||||||
|
// The code was donated on 2010-04-28 by Alphons van der Heijden to Brandon 'Dimentox Travanti' Husbands &
|
||||||
|
// Malcolm J. Kudra, who in turn License under the GPLv2 in agreement with Alphons van der Heijden's wishes.
|
||||||
|
//
|
||||||
|
// The community would like to thank Alphons for all of his hard work, blood sweat and tears. Without his work
|
||||||
|
// the community would be stuck with crappy editors.
|
||||||
|
//
|
||||||
|
// The source code in this file ("Source Code") is provided by The LSLEditor Group to you under the terms of the GNU
|
||||||
|
// General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other
|
||||||
|
// License"), formally executed by you and The LSLEditor Group.
|
||||||
|
// Terms of the GPL can be found in the gplv2.txt document.
|
||||||
|
//
|
||||||
|
// GPLv2 Header
|
||||||
|
// ************
|
||||||
|
// LSLEditor, a External editor for the LSL Language.
|
||||||
|
// Copyright (C) 2010 The LSLEditor Group.
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
|
||||||
|
// License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any
|
||||||
|
// later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
// details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
|
||||||
|
// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// The above copyright notice and this permission notice shall be included in copies or substantial portions of the
|
||||||
|
// Software.
|
||||||
|
// ********************************************************************************************************************
|
||||||
|
// </copyright>
|
||||||
|
//
|
||||||
|
// <summary>
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// </summary>
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Xml;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using LSLEditor.Docking;
|
||||||
|
using LSLEditor.Helpers;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace LSLEditor
|
||||||
|
{
|
||||||
|
public partial class EditForm : DockContent
|
||||||
|
{
|
||||||
|
public RuntimeConsole runtime;
|
||||||
|
|
||||||
|
public List<string> verboseQueue = new List<string>();
|
||||||
|
|
||||||
|
private string m_FullPathName;
|
||||||
|
private Guid m_Guid;
|
||||||
|
// private bool sOutline = true;
|
||||||
|
public LSLEditorForm parent;
|
||||||
|
public Encoding encodedAs = null;
|
||||||
|
|
||||||
|
private const int WM_NCACTIVATE = 0x0086;
|
||||||
|
protected override void WndProc(ref Message m)
|
||||||
|
{
|
||||||
|
if (m.Msg == WM_NCACTIVATE) {
|
||||||
|
if (m.LParam != IntPtr.Zero) {
|
||||||
|
m.WParam = new IntPtr(1);
|
||||||
|
} else {
|
||||||
|
this.numberedTextBoxUC1.TextBox.MakeAllInvis();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
try { base.WndProc(ref m); } catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
public SyntaxRichTextBox TextBox
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.numberedTextBoxUC1.TextBox;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public XmlDocument ConfLSL
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.parent.ConfLSL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public XmlDocument ConfCSharp
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.parent.ConfCSharp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Guid guid
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return m_Guid;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.m_Guid = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsScript
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.TextBox.ToolTipping;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value) {
|
||||||
|
this.tabPage1.Text = "Script";
|
||||||
|
} else {
|
||||||
|
this.tabPage1.Text = "Text";
|
||||||
|
}
|
||||||
|
this.TextBox.ToolTipping = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public EditForm(LSLEditorForm lslEditorForm)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
this.guid = new Guid();
|
||||||
|
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
|
||||||
|
this.Icon = lslEditorForm.Icon;
|
||||||
|
this.parent = lslEditorForm;
|
||||||
|
this.numberedTextBoxUC1.TextBox.setEditform(this);
|
||||||
|
this.numberedTextBoxUC1.TextBox.Init(this.parent, this.parent.ConfLSL);
|
||||||
|
this.numberedTextBoxUC1.TextBox.OnDirtyChanged += new IsDirtyHandler(TextBox_OnDirtyChanged);
|
||||||
|
|
||||||
|
this.Move += new EventHandler(EditForm_Position);
|
||||||
|
this.Resize += new EventHandler(EditForm_Position);
|
||||||
|
|
||||||
|
this.Layout += new LayoutEventHandler(EditForm_Layout);
|
||||||
|
ImageList imageList = new ImageList();
|
||||||
|
imageList.Images.Add(Images.Images.Unknown);
|
||||||
|
imageList.Images.Add(Images.Images.Functions);
|
||||||
|
imageList.Images.Add(Images.Images.Events);
|
||||||
|
imageList.Images.Add(Images.Images.Constants);
|
||||||
|
imageList.Images.Add(Images.Images.Class);
|
||||||
|
imageList.Images.Add(Images.Images.Vars);
|
||||||
|
imageList.Images.Add(Images.Images.Properties);
|
||||||
|
imageList.Images.Add(Images.Images.States);
|
||||||
|
|
||||||
|
this.tvOutline.ImageList = imageList;
|
||||||
|
if (lslEditorForm.outlineToolStripMenuItem.Checked) {
|
||||||
|
splitContainer1.Panel2Collapsed = false;
|
||||||
|
} else {
|
||||||
|
splitContainer1.Panel2Collapsed = true;
|
||||||
|
}
|
||||||
|
SetFont();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetFont()
|
||||||
|
{
|
||||||
|
this.numberedTextBoxUC1.Font = Properties.Settings.Default.FontEditor;
|
||||||
|
}
|
||||||
|
|
||||||
|
void EditForm_Layout(object sender, LayoutEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.WindowState == FormWindowState.Minimized) {
|
||||||
|
this.numberedTextBoxUC1.TextBox.MakeAllInvis();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void EditForm_Position(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//this.numberedTextBoxUC1.TextBox.SetPosition(this.MdiParent.RectangleToScreen(this.MdiParent.ClientRectangle));
|
||||||
|
}
|
||||||
|
|
||||||
|
void TextBox_OnDirtyChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(parent.IsReadOnly(this))
|
||||||
|
{
|
||||||
|
Dirty = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(this.Text == null || this.ScriptName == null)
|
||||||
|
{
|
||||||
|
this.Text = this.ScriptName;
|
||||||
|
}
|
||||||
|
if (LSLIPathHelper.GetExpandedTabName(this.ScriptName) == this.Text)
|
||||||
|
{
|
||||||
|
if (this.numberedTextBoxUC1.TextBox.Dirty)
|
||||||
|
{
|
||||||
|
this.Text = this.Text.Trim() + "* ";
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Text = this.ScriptName;
|
||||||
|
if (this.numberedTextBoxUC1.TextBox.Dirty) {
|
||||||
|
this.Text = this.Text.Trim() + "* ";
|
||||||
|
} else {
|
||||||
|
this.Text = this.Text.Trim() + " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TabPage tabPage = this.Tag as TabPage;
|
||||||
|
if (tabPage != null) {
|
||||||
|
tabPage.Text = this.Text;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.parent.OnDirtyChanged(this.numberedTextBoxUC1.TextBox.Dirty);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string FullPathName
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.m_FullPathName;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.m_FullPathName = value;
|
||||||
|
string strDirectory = Path.GetDirectoryName(this.m_FullPathName);
|
||||||
|
if (Directory.Exists(strDirectory)) {
|
||||||
|
Properties.Settings.Default.WorkingDirectory = strDirectory;
|
||||||
|
} else {
|
||||||
|
if (!Directory.Exists(Properties.Settings.Default.WorkingDirectory)) {
|
||||||
|
Properties.Settings.Default.WorkingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||||
|
}
|
||||||
|
this.m_FullPathName = Path.Combine(Properties.Settings.Default.WorkingDirectory, this.m_FullPathName);
|
||||||
|
}
|
||||||
|
this.Text = this.ScriptName;
|
||||||
|
TabPage tabPage = this.Tag as TabPage;
|
||||||
|
if (tabPage != null) {
|
||||||
|
tabPage.Text = this.Text + " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ScriptName
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return Path.GetFileName(this.m_FullPathName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string ProjectName
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return parent.SolutionExplorer.GetProjectName(this.guid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string SourceCode
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.numberedTextBoxUC1.TextBox.Text;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.numberedTextBoxUC1.TextBox.Text = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private int PercentageIndentTab()
|
||||||
|
{
|
||||||
|
int intResult;
|
||||||
|
int intSpaces = 0;
|
||||||
|
int intTabs = 0;
|
||||||
|
StringReader sr = new StringReader(this.TextBox.Text);
|
||||||
|
while (true) {
|
||||||
|
string strLine = sr.ReadLine();
|
||||||
|
if (strLine == null) break;
|
||||||
|
if (strLine.Length == 0) continue;
|
||||||
|
if (strLine[0] == ' ') {
|
||||||
|
intSpaces++;
|
||||||
|
} else if (strLine[0] == '\t') {
|
||||||
|
intTabs++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (intTabs == 0 && intSpaces == 0) {
|
||||||
|
intResult = 50;
|
||||||
|
} else {
|
||||||
|
intResult = (int)Math.Round((100.0 * intTabs) / (intTabs + intSpaces));
|
||||||
|
}
|
||||||
|
return intResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void LoadFile(string strPath)
|
||||||
|
{
|
||||||
|
if (strPath.StartsWith("http://")) {
|
||||||
|
this.FullPathName = Path.GetFileName(strPath);
|
||||||
|
} else {
|
||||||
|
this.FullPathName = strPath;
|
||||||
|
}
|
||||||
|
this.encodedAs = this.numberedTextBoxUC1.TextBox.LoadFile(strPath);
|
||||||
|
|
||||||
|
if (this.IsScript) {
|
||||||
|
|
||||||
|
if (Properties.Settings.Default.IndentAutoCorrect) {
|
||||||
|
this.TextBox.FormatDocument();
|
||||||
|
this.TextBox.ClearUndoStack();
|
||||||
|
} else {
|
||||||
|
if (Properties.Settings.Default.IndentWarning) {
|
||||||
|
if ((PercentageIndentTab() > 50 && Properties.Settings.Default.SL4SpacesIndent) ||
|
||||||
|
(PercentageIndentTab() < 50 && !Properties.Settings.Default.SL4SpacesIndent)) {
|
||||||
|
if (MessageBox.Show("Indent scheme differs from settings\nDo you want to correct it?\nIt can also be corrected by pressing Ctrl-D or turn on Autocorrection (tools menu)", "Indent Warning!!", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK) {
|
||||||
|
this.TextBox.FormatDocument();
|
||||||
|
//this.TextBox.ClearUndoStack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SaveCurrentFile(string strPath)
|
||||||
|
{
|
||||||
|
// Check if this is an expanded.lsl
|
||||||
|
if (!LSLIPathHelper.IsExpandedLSL(strPath))
|
||||||
|
{
|
||||||
|
this.FullPathName = strPath;
|
||||||
|
Encoding encodeAs = this.encodedAs;
|
||||||
|
if (this.IsScript && encodeAs == null)
|
||||||
|
{
|
||||||
|
switch (Properties.Settings.Default.OutputFormat)
|
||||||
|
{
|
||||||
|
case "UTF8":
|
||||||
|
encodeAs = Encoding.UTF8;
|
||||||
|
break;
|
||||||
|
case "Unicode":
|
||||||
|
encodeAs = Encoding.Unicode;
|
||||||
|
break;
|
||||||
|
case "BigEndianUnicode":
|
||||||
|
encodeAs = Encoding.BigEndianUnicode;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
encodeAs = Encoding.Default;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (encodeAs == null)
|
||||||
|
{
|
||||||
|
encodeAs = Encoding.UTF8;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.numberedTextBoxUC1.TextBox.SaveCurrentFile(strPath, encodeAs);
|
||||||
|
this.encodedAs = encodeAs;
|
||||||
|
|
||||||
|
} else if (LSLIPathHelper.IsExpandedLSL(strPath))
|
||||||
|
{
|
||||||
|
string LSLIfilePath = LSLIPathHelper.CreateCollapsedPathAndScriptName(strPath);
|
||||||
|
// Check if an LSLI version of this script exists
|
||||||
|
if (File.Exists(LSLIfilePath))
|
||||||
|
{
|
||||||
|
// Save the LSLI file as well
|
||||||
|
File.WriteAllText(LSLIfilePath, LSLIConverter.CollapseToLSLI(this.numberedTextBoxUC1.TextBox.Text));
|
||||||
|
EditForm form = null;
|
||||||
|
|
||||||
|
// If it's currently open, then refresh it
|
||||||
|
for (int i = 0; i < Application.OpenForms.Count; i++)
|
||||||
|
{
|
||||||
|
Form openForm = Application.OpenForms[i];
|
||||||
|
string filename = LSLIPathHelper.TrimStarsAndWhiteSpace(openForm.Text);
|
||||||
|
if (filename == Path.GetFileName(LSLIfilePath))
|
||||||
|
{
|
||||||
|
form = (EditForm)openForm;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (form != null && form.Enabled)
|
||||||
|
{
|
||||||
|
parent.OpenFile(LSLIfilePath, Guid.NewGuid(), true);
|
||||||
|
form.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.numberedTextBoxUC1.TextBox.Dirty = false;
|
||||||
|
this.Text = LSLIPathHelper.GetExpandedTabName(strPath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SaveCurrentFile()
|
||||||
|
{
|
||||||
|
this.SaveCurrentFile(this.FullPathName);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Dirty
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.numberedTextBoxUC1.TextBox.Dirty;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.numberedTextBoxUC1.TextBox.Dirty = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TabControl tabControl
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.tabControl1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetFocus()
|
||||||
|
{
|
||||||
|
this.numberedTextBoxUC1.TextBox.Focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StopCompiler()
|
||||||
|
{
|
||||||
|
this.numberedTextBoxUC1.TextBox.MakeAllInvis();
|
||||||
|
|
||||||
|
if (runtime != null) {
|
||||||
|
this.components.Remove(runtime);
|
||||||
|
if (!runtime.IsDisposed) {
|
||||||
|
runtime.Dispose();
|
||||||
|
}
|
||||||
|
runtime = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int intI = this.tabControl1.TabPages.Count - 1; intI > 0; intI--) {
|
||||||
|
this.tabControl1.TabPages.RemoveAt(intI);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public SecondLifeHost.SecondLifeHostChatHandler ChatHandler;
|
||||||
|
public SecondLifeHost.SecondLifeHostMessageLinkedHandler MessageLinkedHandler;
|
||||||
|
|
||||||
|
public bool StartCompiler()
|
||||||
|
{
|
||||||
|
bool blnResult = false;
|
||||||
|
//if (this.disableCompilesyntaxCheckToolStripMenuItem.Checked)
|
||||||
|
// return false;
|
||||||
|
|
||||||
|
if (this.IsScript) {
|
||||||
|
StopCompiler();
|
||||||
|
|
||||||
|
if (this.parent != null) {
|
||||||
|
runtime = new RuntimeConsole(this.parent);
|
||||||
|
|
||||||
|
// for disposing
|
||||||
|
this.components.Add(runtime);
|
||||||
|
|
||||||
|
foreach (string message in verboseQueue)
|
||||||
|
{
|
||||||
|
runtime.VerboseConsole(message);
|
||||||
|
|
||||||
|
if (message.StartsWith("Error: "))
|
||||||
|
{
|
||||||
|
StopCompiler();
|
||||||
|
this.tabControl1.SelectedIndex = 0;
|
||||||
|
verboseQueue = new List<string>();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!runtime.Compile(this)) {
|
||||||
|
this.tabControl1.SelectedIndex = 0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TabPage tabPage = new TabPage("Debug");
|
||||||
|
tabPage.Controls.Add(runtime);
|
||||||
|
this.tabControl1.TabPages.Add(tabPage);
|
||||||
|
this.tabControl1.SelectedIndex = 1;
|
||||||
|
blnResult = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return blnResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool SyntaxCheck()
|
||||||
|
{
|
||||||
|
bool blnResult = false;
|
||||||
|
//if (this.disableCompilesyntaxCheckToolStripMenuItem.Checked)
|
||||||
|
// return false;
|
||||||
|
|
||||||
|
if (this.IsScript) {
|
||||||
|
string lsl = SourceCode;
|
||||||
|
|
||||||
|
// If it is LSLI, it needs to import scripts first, before it recognizes imported functions
|
||||||
|
if (LSLIPathHelper.IsLSLI(this.FullPathName))
|
||||||
|
{
|
||||||
|
LSLIConverter converter = new LSLIConverter();
|
||||||
|
lsl = converter.ExpandToLSL(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
LSL2CSharp translator = new LSL2CSharp(ConfLSL);
|
||||||
|
string strCSharp = translator.Parse(lsl);
|
||||||
|
|
||||||
|
if (System.Diagnostics.Debugger.IsAttached) {
|
||||||
|
for (int intI = this.tabControl1.TabPages.Count - 1; intI > 0; intI--) {
|
||||||
|
this.tabControl1.TabPages.RemoveAt(intI);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
TabPage tabPage = new TabPage("C#");
|
||||||
|
NumberedTextBox.NumberedTextBoxUC numberedTextBoxUC1 = new NumberedTextBox.NumberedTextBoxUC();
|
||||||
|
numberedTextBoxUC1.TextBox.Init(null, this.ConfCSharp);
|
||||||
|
numberedTextBoxUC1.TextBox.Text = strCSharp;
|
||||||
|
numberedTextBoxUC1.TextBox.ReadOnly = true;
|
||||||
|
numberedTextBoxUC1.Dock = DockStyle.Fill;
|
||||||
|
tabPage.Controls.Add(numberedTextBoxUC1);
|
||||||
|
this.tabControl.TabPages.Add(tabPage);
|
||||||
|
}
|
||||||
|
blnResult = (null != CompilerHelper.CompileCSharp(this, strCSharp));
|
||||||
|
}
|
||||||
|
return blnResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int Find(string strSearch, int intStart, int intEnd, RichTextBoxFinds options)
|
||||||
|
{
|
||||||
|
intStart = this.numberedTextBoxUC1.TextBox.Find(strSearch, intStart, intEnd, options);
|
||||||
|
this.numberedTextBoxUC1.TextBox.Focus();
|
||||||
|
return intStart;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.numberedTextBoxUC1.TextBox.MakeAllInvis();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EditForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
this.parent.CancelClosing = false;
|
||||||
|
if (this.Dirty) {
|
||||||
|
string scriptToSave = ScriptName;
|
||||||
|
if (LSLIPathHelper.IsExpandedLSL(ScriptName))
|
||||||
|
{
|
||||||
|
// Expanded scripts will always be saved as LSLI's
|
||||||
|
scriptToSave = LSLIPathHelper.CreateCollapsedScriptName(scriptToSave);
|
||||||
|
}
|
||||||
|
|
||||||
|
DialogResult dialogResult = MessageBox.Show(this, @"Save """ + scriptToSave + @"""?", "File has changed", MessageBoxButtons.YesNoCancel);
|
||||||
|
if (dialogResult == DialogResult.Yes) {
|
||||||
|
e.Cancel = !this.parent.SaveFile(this, false);
|
||||||
|
} else {
|
||||||
|
e.Cancel = (dialogResult == DialogResult.Cancel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!e.Cancel)
|
||||||
|
{
|
||||||
|
// Close related readonly's if this is an expanded script
|
||||||
|
if (LSLIPathHelper.IsExpandedLSL(ScriptName))
|
||||||
|
{
|
||||||
|
// Check if a LSLI readonly is open
|
||||||
|
EditForm readOnlyLSLI = (EditForm)parent.GetForm(Path.GetFileName(LSLIPathHelper.GetReadOnlyTabName(ScriptName)));
|
||||||
|
|
||||||
|
if (readOnlyLSLI != null)
|
||||||
|
{
|
||||||
|
readOnlyLSLI.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!this.parent.IsReadOnly(this)) // If this is not a readonly (LSLI)
|
||||||
|
{
|
||||||
|
// Delete expanded file when closing
|
||||||
|
string expandedFile = LSLIPathHelper.CreateExpandedPathAndScriptName(FullPathName);
|
||||||
|
EditForm expandedForm = (EditForm)parent.GetForm(LSLIPathHelper.GetExpandedTabName(Path.GetFileName(expandedFile)));
|
||||||
|
|
||||||
|
if (expandedForm != null && !LSLIPathHelper.IsExpandedLSL(ScriptName))
|
||||||
|
{
|
||||||
|
expandedForm.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (File.Exists(expandedFile))
|
||||||
|
{
|
||||||
|
File.Delete(expandedFile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.parent.CancelClosing = e.Cancel;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void disableCompilesyntaxCheckToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//this.disableCompilesyntaxCheckToolStripMenuItem.Checked = !this.disableCompilesyntaxCheckToolStripMenuItem.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tvOutline_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
|
||||||
|
{
|
||||||
|
this.parent.BeginInvoke(new TreeNodeMouseClickEventHandler(
|
||||||
|
delegate(object sender2, TreeNodeMouseClickEventArgs e2)
|
||||||
|
{
|
||||||
|
if (e.Node.Tag is Helpers.OutlineHelper) {
|
||||||
|
Helpers.OutlineHelper ohOutline = (Helpers.OutlineHelper)e.Node.Tag;
|
||||||
|
if (ohOutline.line < this.TextBox.Lines.Length) {
|
||||||
|
//editForm.Focus();
|
||||||
|
//editForm.TextBox.Select();
|
||||||
|
//editForm.TextBox.Goto(ohOutline.line + 1);
|
||||||
|
|
||||||
|
//TextBox.Focus();
|
||||||
|
this.TextBox.Select();
|
||||||
|
this.TextBox.SelectionStart = this.TextBox.GetFirstCharIndexFromLine(ohOutline.line);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}), sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tvOutline_AfterSelect(object sender, TreeViewEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
//this.TextBox.Select
|
||||||
|
}
|
||||||
|
|
||||||
|
private void splitContainer1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tvOutline_VisibleChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.tvOutline.ExpandAll();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|