Compare commits

...
Sign in to create a new pull request.

209 commits
next ... master

Author SHA1 Message Date
391fe9e106 Fix more references to images to prevent a crash 2022-12-15 09:50:06 -07:00
71cf04e433 Milestone: Got LSL Editor to open once more 2022-12-15 09:42:07 -07:00
96c2e0f49c Comment out until it compiles! 2022-11-20 17:50:41 -07:00
a3d8b659a5 Resolve most compile issues related to the Form1
Also adds notes about Form1's old usage of a deprecated class.
2022-11-20 10:51:02 -07:00
eb638f9d0f Batch update: Fix most issues 2022-11-20 09:08:34 -07:00
514015e45b Fix up a bunch of compile errors 2022-11-20 08:08:51 -07:00
70dfdbc77e Upgrade solution and project 2022-11-20 07:23:22 -07:00
247102af84 Move solution file! 2022-11-20 07:08:40 -07:00
7f7f8970bc Make structural changes to repository
Modernizes the repository
2022-11-20 07:05:44 -07:00
a67593b58f
Create LICENSE 2022-11-20 06:59:16 -07:00
Jasper Wiggerink
85df205a44 Assembly info 2018-01-29 12:32:15 +01:00
User
0d8bda717d Release notes 2018-01-18 14:45:53 +01:00
User
ac2de4fcfa Release notes 2018-01-15 13:49:41 +01:00
User
7484b886af Version 2018-01-11 15:17:53 +01:00
User
5d5684ecb5 Merge include functionality in master 2018-01-11 10:43:10 +01:00
User
17fef905a7 merge osprimitives into master 2018-01-11 10:37:24 +01:00
User
433da987f2 csproj 2018-01-11 10:34:29 +01:00
User
123808c7d5 Fix bug show include errors 2017-12-21 10:47:55 +01:00
User
b7911a5b87 Settings, bug fixes and extra functionalities 2017-11-07 15:20:29 +01:00
User
334359ac96 Export functionality, bug fixes 2017-10-27 15:45:11 +02:00
User
086f7d2887 LSLIPathHelper and updates 2017-10-26 14:50:23 +02:00
User
8d6b35dade Lot's of bug fixes and features 2017-10-16 14:55:51 +02:00
User
c9baf200f7 Basic functionality 2017-10-09 10:54:25 +02:00
User
a07ccf6726 git ignore 2017-10-03 11:29:21 +02:00
User
a98fd67fb8 gitignore 2017-10-03 11:26:34 +02:00
User
3b9c2f6d27 Format string 2017-10-02 09:26:39 +02:00
User
67abbddc8f All functions 2017-09-28 15:28:09 +02:00
User
d7d080961e First few ossl functions 2017-09-21 14:23:49 +02:00
Ima Mechanique
24f25ee6bd Bumping version number for release. 2013-10-18 18:31:20 +01:00
Ima Mechanique
427ad53d23 Adding the JSON_DELETE constant. 2013-10-18 18:27:59 +01:00
Ima Mechanique
65f9678930 Changing build to create the documentation xml file. 2013-07-20 18:14:13 +01:00
Ima Mechanique
6bf275439a Replacing empty parenthesis for functions with the word 'void' to allow autocomplete to work. 2013-07-18 22:31:39 +01:00
Ima Mechanique
bf211138f8 Merge branch 'dev-v3-audit-style' into dev-autocomplete 2013-07-18 19:30:20 +01:00
Ima Mechanique
efaa845095 Fixing StyleCop violations. 2013-07-18 19:25:47 +01:00
Ima Mechanique
40862a4ad7 Fixing white space and naming style. 2013-07-18 19:25:38 +01:00
Ima Mechanique
69749abe53 Disabling the "Fields Must be private" rule (SA1401). 2013-07-17 18:31:52 +01:00
Ima Mechanique
531bfe8728 Adding SecondLifeHost.cs to StyleCop policing. 2013-07-17 17:58:38 +01:00
Ima Mechanique
2df884b7e8 Fixing some trailing white space. 2013-07-17 16:25:50 +01:00
Ima Mechanique
5ecbdecaf3 Changing formatting of file-header/copyright statement. 2013-07-17 16:23:54 +01:00
Ima Mechanique
89de5582f5 Moving StyleCop SuppressMessage to start of code. 2013-07-16 18:38:44 +01:00
Ima Mechanique
2d79d6f56f Fixing StyleCop violations. 2013-07-16 18:29:01 +01:00
Ima Mechanique
4207586fe5 Adding SecondLife/Float.cs to StyleCop policing. 2013-07-16 17:37:10 +01:00
Ima Mechanique
3f0e973a81 Fixing a typo. 2013-07-16 17:33:31 +01:00
Ima Mechanique
5601de60d3 Added LSL_Events to StyleCop policing. 2013-07-16 17:33:13 +01:00
Ima Mechanique
73e7084458 Fixing StyleCop violations. 2013-07-16 17:21:34 +01:00
Ima Mechanique
1265264cc7 Moving StyleCop's setings file out of source tree. 2013-07-16 16:50:22 +01:00
Ima Mechanique
6baa0a1beb Adding LSL_Functions to StyleCop Policing. 2013-07-16 16:49:43 +01:00
Ima Mechanique
87598963e7 Adding constants to StyleCop policing. 2013-07-16 16:47:51 +01:00
Ima Mechanique
bc8082b003 Fixing some StyleCop violations. 2013-07-16 16:47:13 +01:00
Ima Mechanique
b54ae2b89d Renaming constant, event, function, and host files. 2013-07-16 14:14:34 +01:00
Ima Mechanique
e08b64474d Merge branch 'dev-v3-audit-style' into dev-v3 2013-07-16 14:04:50 +01:00
Ima Mechanique
907d306c05 Merge branch 'dev-v3' into dev-next 2013-07-16 13:49:00 +01:00
Ima Mechanique
e05ab6ae1e Splitting Constants, Events, and Functions into seperate files. This should make it easier to automate checking/updating them later. 2013-07-15 21:30:36 +01:00
Ima Mechanique
d185e8967e Updating copyright date 2013-07-15 21:27:07 +01:00
Ima Mechanique
0af6c22404 Ficing version number which accidentally got the v3-dev bump merged. 2013-07-15 21:18:22 +01:00
Ima Mechanique
cb03ca2168 Adding constant JSON_APPEND 2013-07-15 21:05:51 +01:00
Ima Mechanique
961ddfa78f Adding missing JSON APPEND constant. 2013-07-15 21:02:04 +01:00
Ima Mechanique
8f1ef1581c Adding missing JSON APPEND constant. 2013-07-15 21:01:22 +01:00
Ima Mechanique
571f034395 Updating first batch of files. 2013-07-15 21:00:09 +01:00
Ima Mechanique
afddb63ecc Adding StyleCop changes to allow style enforcement. 2013-07-15 20:58:55 +01:00
Ima Mechanique
af230cbed7 Fixing indentation and braces in trunk/ 2013-07-14 16:49:03 +01:00
Ima Mechanique
6437594240 Fixing a few missed braces. 2013-07-14 12:37:16 +01:00
Ima Mechanique
52b52a2fa7 Renaming variables and fixing methods to have a single return. 2013-07-14 11:46:16 +01:00
Ima Mechanique
8d7cab032f Fixing indents and braces. 2013-07-14 07:50:24 +01:00
Ima Mechanique
f738a42e11 Merge branch 'dev-v3' into dev-v3-audit-style 2013-07-14 07:03:12 +01:00
Ima Mechanique
0e35b7e927 Splitting Constants, Events, and Functions into seperate files. This should make it easier to automate checking/updating them later. 2013-07-14 07:00:47 +01:00
Ima Mechanique
56d4d5a883 Merge branch 'dev-v3' into dev-v3-audit-style 2013-07-14 04:20:53 +01:00
Ima Mechanique
0c774368f9 Moving AssemblyRevisionIncrementer into repo tree. 2013-07-14 04:19:43 +01:00
Ima Mechanique
546be43b01 Merge branch 'dev-v3' into dev-v3-audit-style 2013-07-14 03:59:42 +01:00
Ima Mechanique
1c685b74c4 Moving AssemblyRevisionIncrementer into repo tree. 2013-07-14 03:53:26 +01:00
Ima Mechanique
7f06c5050c Adding new post-build event that updates AssemblyInfo.cs 'revision' on successful build. 2013-07-13 14:14:35 +01:00
Ima Mechanique
468aecd0b9 Merge branch 'dev-v3' into dev-v3-audit-style 2013-07-13 13:53:20 +01:00
Ima Mechanique
4b1ca5cae7 Adding new post-build event that updates AssemblyInfo.cs 'revision' on successful build. 2013-07-13 13:53:06 +01:00
Ima Mechanique
95889e1a35 Fixing return value that I missed during style fix. 2013-07-13 13:51:25 +01:00
Ima Mechanique
52be06be96 Updating copyright date 2013-07-13 12:36:00 +01:00
Ima Mechanique
3542169d5d Merge branch 'dev-v3' into dev-v3-audit-style 2013-07-13 12:03:40 +01:00
Ima Mechanique
49c12fbe6d Removing _ReSharper directory and contents. 2013-07-13 12:03:25 +01:00
Ima Mechanique
8661094ddd Fixing whitespace/formatting style. 2013-07-13 11:42:48 +01:00
Ima Mechanique
3bc95288c5 Bumping version number to 2.999.999.x 2013-07-13 03:11:22 +01:00
Ima Mechanique
f042d61218 Style clenup of functions final batch 2013-07-13 03:01:08 +01:00
Ima Mechanique
cfada14ef7 Style clenup of functions llMessageLinked. - llRequestSecureURL 2013-07-11 02:25:18 +01:00
Ima Mechanique
ef91041a0c Merge branch 'dev-v3' into dev-v3-stub-audit 2013-07-11 01:21:29 +01:00
Ima Mechanique
d14fb73355 Merge branch 'dev-next' into dev-v3 2013-07-11 01:20:16 +01:00
Ima Mechanique
987c2ad77f Adding neew function stubs, constant entries. Moving llXorBase64StringsCorrect to deprecated functions. 2013-07-11 01:18:32 +01:00
Ima Mechanique
01cf42fe07 Cleaning up code fixing bug 2013-07-10 23:49:49 +01:00
Ima Mechanique
5a871a9792 Fixing parameter in function 2013-07-10 23:49:22 +01:00
Ima Mechanique
cd9d030aee Backporting style changes from dev-v3 2013-07-10 23:48:19 +01:00
Ima Mechanique
254790613c Adding properties for ParcelID and ParcelSeeAvatars. 2013-07-10 23:42:57 +01:00
Ima Mechanique
ebf2d3512c Adding highlighting for constants AVOID_NONE, OBJECT_CHARACTER_TIME, PU_FAILURE_DYNAMIC_PATHFINDING_DISABLED, PU_FAILURE_PARCEL_UNREACHABLE and functions llGetStaticPath, llXorBase64. 2013-07-10 22:54:34 +01:00
Ima Mechanique
759581c095 Style clenup of functions llGetWallclock - llMessageLinked. 2013-07-10 22:51:08 +01:00
Ima Mechanique
afd8520899 Style clenup of functions llGetClosestNavPoint - llGetWallclock. 2013-07-07 22:18:42 +01:00
Ima Mechanique
740e4aec52 Fixed misnamed function 2013-07-07 22:18:28 +01:00
Ima Mechanique
b3957ffa99 Adding properties for ParcelID and ParcelSeeAvatars. 2013-07-07 22:14:43 +01:00
Ima Mechanique
d4e2203d43 Merge branch 'dev-stub-audit' into dev-v3 2013-07-07 18:24:04 +01:00
Ima Mechanique
c90ec56a84 Merge branch 'master' into dev-v3 2013-07-07 18:22:40 +01:00
Ima Mechanique
54b3d31d57 Removing json.cs which was accidentally merged into next. 2013-07-07 18:20:27 +01:00
Ima Mechanique
8512eead10 Merge branch 'master' into dev-v3 2013-07-07 05:00:28 +01:00
Ima Mechanique
7260dbd9de Merge branch 'master' into dev-stub-audit 2013-07-07 04:47:57 +01:00
Ima Mechanique
7a2e6b5ad7 Tagging version at v2.53.1 2013-07-07 04:45:28 +01:00
Ima Mechanique
b69bfee3fe Fixing indentation whitespace. 2013-07-07 04:38:17 +01:00
Ima Mechanique
e354bfcdd4 Style clenup of functions llAbs - llGetClosestNavPoint. 2013-07-07 01:28:41 +01:00
Ima Mechanique
33df6d8148 Adding required property setting for printing on AMD64 CPUs, plus code cleanup. 2013-07-05 20:58:01 +01:00
Ima Mechanique
2b0deb49e1 Starting investigation of print (preview) failures. 2013-07-03 22:22:09 +01:00
Ima Mechanique
13667e5a3c Starting work on JSON functionality. 2013-07-03 04:35:14 +01:00
Ima Mechanique
c54b50b4a0 Adding new parcel return constants and functions. 2013-07-03 04:29:46 +01:00
Ima Mechanique
0273bbb9d6 Merge branch 'dev-next' 2013-06-22 09:35:56 +01:00
Ima Mechanique
dc4af94aa9 Updating version numbers 2013-06-22 09:35:49 +01:00
Ima Mechanique
1f868c91ad Adding JSON constants and functions. 2013-06-22 09:34:16 +01:00
Ima Mechanique
cfdec7300b Fixing some formatting. 2013-06-22 07:01:43 +01:00
Ima Mechanique
c8a37b66bc Releasing 2.51.0 2013-05-16 15:12:12 +01:00
Ima Mechanique
a4ccd96bb9 Stopping signing assembly as the certificate ran out and it is too much hassle getting a free/open source one. 2013-05-16 15:11:40 +01:00
Ima Mechanique
e84ab1fe5a Tagged and built for v2.50.0 2013-03-04 14:47:36 +00:00
Ima Mechanique
76be31637e Updated release date. 2013-03-04 13:52:03 +00:00
Ima Mechanique
484b33d422 Merge branch 'dev-next' 2013-03-04 13:51:35 +00:00
Ima Mechanique
b83574ac0c Adding missing llGenerate function. 2013-02-25 23:50:26 +00:00
Ima Mechanique
a544d1b4ac Merge branch 'dev-next' into dev-syntax-code-highlighting 2013-02-25 23:32:58 +00:00
Ima Mechanique
582963ba18 Bumped release version 2013-02-14 18:11:35 +00:00
Ima Mechanique
0bb0e8a104 Adding constants ATTACH_AVATAR_CENTER and ATTACH_NECK 2013-02-14 18:08:42 +00:00
Ima Mechanique
22b4795ea5 Branching to start work on v3 overhaul. 2012-12-28 03:01:42 +00:00
Ima Mechanique
e9b5a4f825 Merge branch 'dev-next' into dev-syntax-code 2012-12-28 02:51:15 +00:00
Ima Mechanique
6152c2a509 Updating version numbers 2012-12-28 02:43:00 +00:00
Ima Mechanique
7d8a3ae47f Adding constants: OBJECT_PHANTOM, OBJECT_PHYSICS, and OBJECT_TEMP_ON_REZ. 2012-12-28 02:32:19 +00:00
Ima Mechanique
c50cd9efbd updating version 2012-12-25 04:02:15 +00:00
Ima Mechanique
b3cd0ed59f Updating Release Notes. 2012-12-25 03:52:38 +00:00
Ima Mechanique
0bd4ec18df Fixing llWanderWithin - second argument should be vector instead of float. 2012-12-17 15:18:19 +00:00
Ima Mechanique
5374fec377 Fixing regression to llClearPrimMedia keyword data (added Link parameter by mistake). 2012-12-01 21:23:59 +00:00
Ima Mechanique
bf8147e110 Updating Release Notes. 2012-11-29 00:48:46 +00:00
Ima Mechanique
7a23109140 Improving emulation code for llAngleBetween. It is still NOT 100% accurate. 2012-11-29 00:40:30 +00:00
Ima Mechanique
1a87874d79 Updating Release Notes. 2012-11-28 23:45:49 +00:00
Ima Mechanique
d0fdf8b9a9 Fixing Bug 28 - Alt+F4/File => Exit does not close unsaved files properly. 2012-11-28 23:22:49 +00:00
Ima Mechanique
ac4d11de87 Merge branch 'dev-next' into dev-syntax-code 2012-11-28 22:21:26 +00:00
Ima Mechanique
409aba35b3 Removed conditional update addresses because VS kept removing them when the file was touched by other changes. 2012-11-28 22:21:08 +00:00
Ima Mechanique
39978d3543 Build number update 2012-11-28 22:19:54 +00:00
Ima Mechanique
3ad442128b Merge branch 'dev-next' into dev-syntax-code 2012-11-26 20:55:58 +00:00
Ima Mechanique
20211983a0 Fixing conditional update addresses, which VS broke (again! TODO replace this with prebuild script). 2012-11-26 20:54:15 +00:00
Ima Mechanique
5d30a4f09c Merge branch 'dev-next' into dev-syntax-code 2012-11-26 20:04:50 +00:00
Ima Mechanique
b8c6277050 Tagging and final Release Notes update 2012-11-26 20:02:31 +00:00
Ima Mechanique
8d290d04e4 Removing LSLEditor.RES from versioning. It is generated per build. 2012-11-24 16:38:38 +00:00
Ima Mechanique
b125d075e3 Removing duplicate entries from Help => About dialogue. Updating Release Notes 2012-11-24 15:27:38 +00:00
Ima Mechanique
2ae11a21f8 Resource changes/updates reverting use of manifest over resource file. 2012-11-24 15:26:42 +00:00
Ima Mechanique
7f3e782da3 Merge branch 'dev-next' into dev-syntax-code 2012-11-22 19:04:17 +00:00
Ima Mechanique
b2b2de3962 Updating build settings. 2012-11-22 19:02:38 +00:00
Ima Mechanique
51e402c28a Updated Release Notes. 2012-11-22 18:36:03 +00:00
Ima Mechanique
3038427909 Setting icon for application file. 2012-11-22 18:31:00 +00:00
Ima Mechanique
4bcf3041c0 Changing build method: manually specifying build/verion number, removing some info from the resource file. 2012-11-22 18:29:11 +00:00
Ima Mechanique
7c56943183 Removing duplicated constants (merge error?) 2012-11-22 18:25:39 +00:00
Ima Mechanique
2d836703db Merge branch 'dev-next' into bug-SF-3489102 2012-11-22 16:52:02 +00:00
Ima Mechanique
3a0905ad7e Adding constants to code emulation: CHARACTER_ACCOUNT_FOR_SKIPPED_FRAMES, HTTP_PRAGMA_NO_CACHE, OBJECT_ATTACHED_POINT, OBJECT_PATHFINDING_TYPE, OBJECT_ROOT, OPT_AVATAR, OPT_CHARACTER, OPT_EXCLUSION_VOLUME, OPT_LEGACY_LINKSET, OPT_MATERIAL_VOLUME, OPT_OTHER, OPT_STATIC_OBSTACLE, OPT_WALKABLE, SIM_STAT_PCT_CHARS_STEPPED; and function stubs: llAttachToAvatarTemp, llGetSimStats, llTeleportAgent, llTeleportAgentGlobalCoords. 2012-11-22 16:51:08 +00:00
Ima Mechanique
32c81be487 Merge branch 'dev-syntax-highlighting' into dev-next 2012-11-21 06:27:53 +00:00
Ima Mechanique
88eb607dee Adding functions: llAttachToAvatarTemp, llGetSimStats, llTeleportAgent, llTeleportAgentGlobalCoords. 2012-11-21 06:27:32 +00:00
Ima Mechanique
0ecbb86c74 Fixing tooltip text for llClearLinkMedia. Adding constants CHARACTER_ACCOUNT_FOR_SKIPPED_FRAMES, HTTP_PRAGMA_NO_CACHE, OBJECT_ATTACHED_POINT, OBJECT_PATHFINDING_TYPE, OBJECT_ROOT, OPT_AVATAR, OPT_CHARACTER, OPT_EXCLUSION_VOLUME, OPT_LEGACY_LINKSET, OPT_MATERIAL_VOLUME, OPT_OTHER, OPT_STATIC_OBSTACLE, OPT_WALKABLE, SIM_STAT_PCT_CHARS_STEPPED 2012-11-21 02:04:27 +00:00
Ima Mechanique
f2332d9399 Fixing tooltip text for llClearLinkMedia. Adding constants CHARACTER_ACCOUNT_FOR_SKIPPED_FRAMES, HTTP_PRAGMA_NO_CACHE, OBJECT_ATTACHED_POINT, OBJECT_PATHFINDING_TYPE, OBJECT_ROOT, OPT_AVATAR, OPT_CHARACTER, OPT_EXCLUSION_VOLUME, OPT_LEGACY_LINKSET, OPT_MATERIAL_VOLUME, OPT_OTHER, OPT_STATIC_OBSTACLE, OPT_WALKABLE 2012-11-21 02:03:09 +00:00
Ima Mechanique
1ce8fece34 Merge branch 'dev-next' into dev-syntax-highlighting 2012-11-21 01:23:25 +00:00
Ima Mechanique
ab531593d8 Constants: Adding HTTP_CUSTOM_HEADER, PERMISSION_TELEPORT; Updating PURSUIT_GOAL_TOLERANCE, WANDER_PAUSE_AT_WAYPOINTS, REQUIRE_LINE_OF_SIGHT 2012-11-21 01:23:03 +00:00
Ima Mechanique
d9a08c4ec8 Updating Release Notes 2012-11-18 19:56:15 +00:00
Ima Mechanique
c7415e910b Removing from syntax-highlighting CHARACTER_MAX_ANGULAR_ACCEL,CHARACTER_MAX_ANGULAR_SPEED. 2012-11-18 19:52:07 +00:00
Ima Mechanique
5dd1ea069f Adding syntax-check for ATTACH_LEFT_PEC, ATTACH_RIGHT_PEC, CHARACTER_MAX_SPEED, CHARACTER_MAX_TURN_RADIUS, CHARACTER_ORIENTATION, CHARACTER_RADIUS, HORIZONTAL, VERTICAL.
Removed CHARACTER_MAX_ANGULAR_ACCEL, CHARACTER_MAX_ANGULAR_SPEED, CHARACTER_RADIUS.
2012-11-18 19:46:26 +00:00
Ima Mechanique
244bed413e Removed CHARACTER_TURN_SPEED_MULTIPLIER which was removed before release. 2012-11-18 19:11:38 +00:00
Ima Mechanique
e0fd0904d2 Added PathFinding constants HORIZONTAL/VERTICAL. 2012-11-18 19:08:36 +00:00
Ima Mechanique
c3fdaaedb5 Merge branch 'dev-next' into dev-syntax-highlighting 2012-11-18 16:05:22 +00:00
Ima Mechanique
15234df030 resourve change after building Release version. Bad me, should release from master only 2012-11-18 16:04:27 +00:00
Ima Mechanique
5ee142ee4d Adding Link paramter to llClearMedia() highlighting. Updated Release Notes. 2012-11-18 13:56:09 +00:00
Ima Mechanique
a9db752cfa Merge branch 'dev-syntax-code' into dev-next 2012-11-18 13:23:52 +00:00
Ima Mechanique
3f71914fe7 Cleared out unversioned files 2012-11-18 13:23:25 +00:00
Ima Mechanique
e010001a52 Fixed missing Link argument, in stub, for llClearLinkMedia() 2012-11-18 13:20:55 +00:00
Ima Mechanique
f4b0f045e0 Merge branch 'dev-load+save-notecards' into dev-next 2012-10-23 16:43:29 +00:00
Ima Mechanique
a94055b6ab Changes to store the file encoding of loaded files, so that they can be saved the same way. This means we'll need an 'export' feature to overide the setting. 2012-10-23 16:31:58 +00:00
Ima Mechanique
02fda552c0 Forces note-cards to save as UTF-8. Also renamed open/save dialog properties. 2012-10-23 16:19:43 +00:00
Ima Mechanique
bc7907ffc3 Updating release notes. 2012-10-23 14:21:48 +00:00
Ima Mechanique
0472df43d7 Merge branch 'dev-load+save-notecards' into dev-next 2012-10-23 14:06:06 +00:00
Ima Mechanique
4de3cebeaa Bumped version number to 2.47.0 2012-10-23 14:05:32 +00:00
Ima Mechanique
3cec169755 Seperates code for opening script/notecard files and flags files appropriately. 2012-10-23 13:51:45 +00:00
Ima Mechanique
db5aa32eb6 Merge branch 'dev-next' into dev-syntax-code 2012-05-13 10:01:42 +01:00
Ima Mechanique
4a6348e460 Merge branch 'dev-next' into dev-syntax-highlighting 2012-05-13 10:01:28 +01:00
Ima Mechanique
fc1c3e349b Added TODO note 2012-05-13 10:01:12 +01:00
Ima Mechanique
d6582d8ff1 Updated Release notes for path-finding updates 2012-05-13 09:58:57 +01:00
Ima Mechanique
f89b3ecc88 Added/Removed/Renamed path-finding constants. 2012-05-13 09:58:07 +01:00
Ima Mechanique
6c6309a938 Environment updates 2012-04-22 10:24:35 +01:00
Ima Mechanique
be5499a6c5 Merge branch 'master' into dev-next 2012-04-22 10:15:11 +01:00
Ima Mechanique
7d4b51e5ff Merge branch 'master' into bug-SF-3489102 2012-04-22 10:14:59 +01:00
Ima Mechanique
a2e80080ca Merge branch 'master' into dev-syntax-highlighting 2012-04-22 10:14:30 +01:00
Ima Mechanique
8354188e36 Merge branch 'master' into dev-syntax-code 2012-04-22 10:14:16 +01:00
Ima Mechanique
ef1d710170 Merge branch 'dev-next' 2012-04-22 10:12:49 +01:00
Ima Mechanique
8bf516eb20 Updating Relase Notes and version number 2012-04-22 10:12:28 +01:00
Ima Mechanique
cd65779486 Merge branch 'dev-syntax-code' into dev-next 2012-04-22 10:06:44 +01:00
Ima Mechanique
f3aa4a752c Adding lLGetAgentList/constants and PRIM_SLICE to code emulation. 2012-04-22 10:06:28 +01:00
Ima Mechanique
4405a661f8 Merge branch 'dev-next' into dev-syntax-code 2012-04-22 10:04:58 +01:00
Ima Mechanique
01b64cae0e Merge branch 'dev-syntax-highlighting' into dev-next 2012-04-21 08:00:54 +01:00
Ima Mechanique
fc7a8f22d5 Updating Release Notes 2012-04-21 08:00:43 +01:00
Ima Mechanique
9dcbc4b09f Adding llGetAgentList and related constants plus PRIM_SLICE. 2012-04-21 08:00:01 +01:00
Ima Mechanique
39bad6b5ff Merge branch 'bug-SF-3072580-HTTPRequest-gzip-encoding' into bug-SF-3489102 2012-04-05 18:05:09 +01:00
Ima Mechanique
f1543567ff Merge branch 'bug-SF-3072580-HTTPRequest-gzip-encoding' into dev-syntax-highlighting 2012-04-05 18:04:53 +01:00
Ima Mechanique
72d70f4d27 Merge branch 'bug-SF-3072580-HTTPRequest-gzip-encoding' into dev-syntax-code 2012-04-05 18:04:39 +01:00
Ima Mechanique
f007061f47 Merge branch 'bug-SF-3072580-HTTPRequest-gzip-encoding' into dev-next 2012-04-05 18:03:51 +01:00
Ima Mechanique
a442da2ba8 Fix for SF-3072580 and ensure UTF-8 encoding is used instead of ASCII.
Thanks to Akkarin Dryke for the 3072580 fix.
2012-04-05 18:03:19 +01:00
Ima Mechanique
42b4d9fdac Merge branch 'dev-next' into dev-syntax-highlighting 2012-04-05 17:45:20 +01:00
Ima Mechanique
6c638b67b6 Merge branch 'dev-next' into dev-syntax-code 2012-04-05 17:45:07 +01:00
Ima Mechanique
82287f9eed Changes to configuration files. 2012-04-05 17:44:47 +01:00
Ima Mechanique
8b2baa8bbc Updating version numbers/ReleaseNotes 2012-03-18 05:52:21 +00:00
Ima Mechanique
3b80d5668c Settings cleanup 2012-03-18 05:50:54 +00:00
Ima Mechanique
962fbed2c7 Fixed BZip2 Decompressor, which wasn't properly included in the project. 2012-03-18 05:49:44 +00:00
Ima Mechanique
948d0527aa Updating version numbers 2012-03-16 04:22:40 +00:00
Ima Mechanique
285938ea84 White space fix. 2012-03-14 21:45:26 +00:00
Ima Mechanique
dd4f051b9d Updating ReleaseNotes.htm 2012-03-14 21:44:21 +00:00
Ima Mechanique
5cf77a1308 Merge branch 'next-syntax-code' 2012-03-14 21:37:05 +00:00
Ima Mechanique
734930c9a9 Fixed some bad constants and function entries. 2012-03-14 21:35:52 +00:00
Ima Mechanique
a16cc8b7a2 Merge branch 'next' into next-syntax-highlighting 2012-03-05 23:56:31 +00:00
Ima Mechanique
1fecbad9fe Merge branch 'next' into next-syntax-code 2012-03-05 23:56:15 +00:00
Ima Mechanique
b7a837060c Updated release notes. 2012-03-05 23:35:52 +00:00
469 changed files with 73477 additions and 66886 deletions

398
.gitignore vendored Normal file
View 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
View 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.)

View file

@ -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

View file

@ -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
View 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
View 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&amp;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&amp;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>

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

View 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();
}
}
}
}
}
}

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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
View 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));
}
}
}
}
}
}
}

View file

@ -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)
{ {

View file

@ -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)

View 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);
}
}
}
}

View file

@ -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

View file

@ -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; }

View 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>

View file

@ -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; }

View file

@ -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);
} }

View 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>

View file

@ -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
{ {

View file

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 822 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

View file

@ -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
View 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();
}
}
}

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