Jexi Design (1) Lexi Research

zhaozj2021-02-16  89

It is prepared to officially write the JEXI editor today. The target is "Design Mode" C Example Lexi: The visible editor of a graphic mixing:

Today, when I was free, I took a closer look at the "Design Patterns", and organized a GOF design:

Documentation Structure: Applying the Composite Mode, as shown:

To apply the Composite mode by interface GLYPH, multiple objects are organized:

Document format: Formatting is implemented by a series of formatting algorithm, which is implemented by Composite and Composition:

ResponsibilityOperationsWhat to formatvoid setcomposition (composition *) When to formatvirtual void compose ()

User interface: border, scroll bars, etc. are dynamically decorated by Decorator mode:

Redo / undo function: This is implemented in "Design Patterns" in "Design Patterns", as for other functions, such as platform-independent windows, interface style switches, spell check, etc. Temporarily.

Unfortunately, GOF only gave the design idea, there is no ready-made code, so everything has to rely on himself.

转载请注明原文地址:https://www.9cbs.com/read-15759.html

New Post(0)