Skip to content

Refactoring (out of date)

felix edited this page Sep 29, 2020 · 1 revision

Proposals:

module.h defines the "creator" function: typedef Element * (* pInfoFunc) (QString&, char * &, bool) which is implemented by every component. It allows obtaining the name of the component, the icon bitmap filename, and (if the bool = true), returns an instantiated Element*.

Idea is to make the name & icon filename member of the element class (these are attributes of an element!) and define the "creator" function as Element * (* pInfoFunc) (bool). Requires changes in the element class, all component classes, and all code using the "creator" function (-> has a rather high impact).

Replace qucs-core/src/hash.{h,cpp} functionality with stc::hash or equivalent

Clone this wiki locally