We have moved to https://dokuwiki.librecad.org/

Lots of content was already moved to the new wiki, but there is still work to do. If you want to contribute, please register a new account at https://dokuwiki.librecad.org/

This wiki will be kept for a while to keep search engine results valid. Moved sites may be deleted here in future.

LibreCAD v1 Developers' Handbook

From LibreCAD wiki
Jump to: navigation, search

LibreCAD API

File locations in LibreCAD

librecad.pro

The qmake project file


src/

all source code


src/actions/

all action classes

src/command/

the rs_command class for command line framework

src/lib/

LibreCAD library

src/lib/actions/

the base types of actioninterface of all actions found in src/actions, rs_preview and rs_snapper defined here

src/lib/creation/

create entities with conditions

src/lib/debug/

RS_DEBUG class, debugging levels

src/lib/engine/

all entity (geometry/shape) classes defined here rs_settings are used to save program preferences in Qt-SQL

src/fileio/

src/lib/filters/

file input output

src/lib/gui/

rs_dialogfactory to provide communication with GUI parts, rs_grid, rs_painter

src/lib/information/

intersection, measure/info, locales

src/lib/math/

common math functions

src/lib/modification/

engine for modification actions

src/lib/scripting/

scripting support, not enabled yet


src/main/

The main function and application window


src/ui/

qg_actionfactory, create actions

qg_actionhandler, provide action slots to GUI parts

qg_dialogfactory, all gui parts communication with each other

src/ui/ Qt GUI forms



res/

holds all icon pictures used by LibreCAD

plugins/

some plugins for use with LibreCAD, which has its own pro file

scripts/

scripts executed at the end of build process for copy needed resources like fonts, translations and hatches