Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Work on Scripting Console
arst:
Hello,
I've been working quite a bit developing the scripting console
component of CodeBlocks. Now the whole thing works OK, and
I think it could be useful for others. There is still a lot to do.
Description:
The aim has been to make developing scripts inside CodeBlocks
easier. To reduce the amount of typing a bit. One part has been
to provide command line history (up and down arrows).
Another to develop a macro facility that expands the command
Squirrel line in a flexible way. This happens almost 100% on the
Squirrel side, so it is quite flexible and one can edit/add/remove
macros without leaving CodeBlocks or compiling.
To do more work from inside the Squirrel language, I found I
had to develop a some small basic libraries (that don't call
native code). Given the dynamic typing in the language,
good internal strings, arrays & tables, it was rather straight-
forward and enjoyable work.
I also exposed a bit more of CB functionality to scripts. In
particular, I wanted to be able to have scripts that add/modify
C++ source code in open editors, so I exposed quite a bit of the
wxScintilla class (through cbEditor).
Questions:
I really hope it is possible to merge this into CB. I've been working
with a rather recent CB rev (3538) and there are a few files I've
been modifying (5..10 files). I also need to add some new files to
the project.
How to go about this in a sensible way?
Who should I speak to about this?
I'm happy to provide a binary some instructions to those who
want to try it out.
I attach an image of the thing in action.
Take care,
// Arst
[attachment deleted by admin]
Game_Ender:
Just update your working copy to the latest SVN, fix any issues that may be broken. Then run a diff with subversion and submit the patch to codeblocks project on berlios. You should also describe the reason for any changes you made to the CB core.
arst:
OK, I can do that.
The reason I ask is that it's basically replacing the existing scripting
console with a new one, and I have to do a small modification in
main.cpp, to create an object of the new class.
So I take it can go ahead with that.
Regards
// Arst
Game_Ender:
Its up to the devs to decide whether or not to accept the patch. But if you haven't lost anything and it has become more functional I am for it.
arst:
OK, after a lot of work with svn and patch creation, it's been done.
To understand what to do at the modified scripting console, I think some doc is needed (it works like before but adds a shell layer). I could not find any place to attach comments like that in patch submission page.
I would like the person who looks at it to have some explanation available.
Regards,
Arst
Navigation
[0] Message Index
[#] Next page
Go to full version