/ ************************************************
October 10
*************************************** /
1. The structure of the platform will make a significant change again
The main idea is to design all parts as components or plugins, including IO, display, image (pure UIMG section), used to drag and drop the Demo on the interface, the UIMGFACADE class executed by the button, There is a class of algorithm, just need to overload a corresponding function under the frame, and design the corresponding dialog box to run
2. High requirements on the interface, but there is no idea (clearly you should find a good data structure to indicate the execution of the button, including their ID management, corresponding to a percentage DLL pointer (allocation, and delivery), button Features such as several input port output port (corresponding to several connection points), the button in the view in the view (rectangular box), how to incorporate the straight object into the button class. The simulation of the connection process (first yet Painting straight lines, the second is to consider the latest point and straight-line active end each time you click on the straight line.
CToolbar
|
--- ------
CToolbarstimu
|
--- ---------- CDRAWTOOL
|
---- -----
CRECTTOOL CLINETOOL
First design a purely drawn rectangle and straight line, should be made in the form of a class because they contain attributes (such as the number of inputs output, and each corresponding to a Void pointer pointing to a algorithm), these classes contain basic Geometric operation, initialization function (initialization to fix a rectangle and straight line, can modify parameters), and the most important DRAW function (with CDC pointer and location, size parameters)