c++ - How do I design the structure a CAD package? -


I am developing a computer-aided design package for printed circuit boards and schematics (aka Eda CAD), in C ++ I am It uses Lua for some special things, but I would like to extend the role of Lua so that it applies a lot of user interface logic.

I would like to internally rebuild in a way that can easily change behavior by editing the UI of the UI Interface, and also can add new functionality.

Problem, there is a lack of exposure to any type of large API in the Lua code, I do not think it's a good way to do that I suspect that a big API, in which I can think of everything There is probably a bad design with a function call. How can I design a system that can apply to users what I did not even think?

Is there a good document or book I can read or a forum where people talk about such things I have been searching for and thinking for several months now, and I Still not sure what the answer is.

BTW is called a project.

Many thanks

Hugo

It is clear that You have to expose some functions in Lua through your API that developers can write and combine those features.

I justify this about how to design a good API and what I have recommended in the past has been recommended. This will help guide you through your design.

Once you have an API, then I suggest using Leiyah or C ++ to build a bridge with UI. In the past, I have explained every API call in the command and after this the command can be called through the script. I do not know lu but I know that Python is a good script language to experiment with your commands.

Best wishes with your project.


Comments