Coder Social home page Coder Social logo

lexi's Introduction

C++ implementation of Lexi

Lexi - WYSIWYG text editor described in second chapter of Design Patterns: Elements of Reusable Object-Oriented Software

Motivation - I've been reading the book(as most of you) and faced the questions like "How this pattern is implemented?" or "Is there an open-source implementation of Lexi?". After searching internet for the answers I decided to implement it all by myself.

Note: Even though I've tried to implement stuff as described in the book, there are differences that I'll try to describe in the future.

Pattern referencing

  • IGlyph Abstract, base for all graphical units class. Described in Section 2.2 of GoF.
  • Composite Described in Section 2.2 of GoF.
  • Strategy: basically any child glyph.
  • Decorator Note: currently, the scroller isn't a decorator as described in GoF due to implementation specific. Described in Section 2.4.
  • Abstract Factory Described in Section 2.5.
  • Bridge: Base Window, interface WindowImpl and its child XWindowImpl. Described in Section 2.6.
  • Command Described in Section 2.7.

Note: some of the patterns are WIP state and may distinguish from the implementation provided in GoF

Projects functionality(in Gif format) across the versions

In Progress

  • Finishing text editor (Finished basic functionality)
  • Migration to Windows

TODO List

  • use only smart pointers
  • migrate to a Windows(which includes expansion of WindowSystemFactory)
  • add important glyphs as text editor
  • appropriate processing of all fonts(now only mono is supported)

HowTo

Build Lexi:

cmake %path_to_lexi
make

Linux build troubleshooting

I'm using X11 library for basic graphic operation. If it is not installed in Your system, You can install it:

sudo apt install libx11-dev

Discussion

lexi's People

Contributors

romaonishuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.