diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kformula/DESIGN | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kformula/DESIGN')
-rw-r--r-- | kformula/DESIGN | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kformula/DESIGN b/kformula/DESIGN index eec708699..326cfb551 100644 --- a/kformula/DESIGN +++ b/kformula/DESIGN @@ -19,22 +19,22 @@ objects from it. Responsebilities (This goes for every derived element and therefore for each one.) -- knows its children. Actually BasicElement doesn't have any. But it - already defines that children must be known by their parent. -- knows its bounding rectangle (its size.) The children are included +- knows its tqchildren. Actually BasicElement doesn't have any. But it + already defines that tqchildren must be known by their tqparent. +- knows its bounding rectangle (its size.) The tqchildren are included in this rect. (Only width and height are needed. Positions are - handled by the parent) -//- knows its middle line. (for alignment) -- knows it's zero point for midline (vertical alignment) and + handled by the tqparent) +//- knows its middle line. (for tqalignment) +- knows it's zero point for midline (vertical tqalignment) and keep open the possibility of negative positions (out of bounding rect) -- draws itself (given a painter); children are drawn, too +- draws itself (given a painter); tqchildren are drawn, too - knows all positions where the cursor is allowed to be. (see below) -- knows its parent; The topmost element has no parent; there is a +- knows its tqparent; The topmost element has no tqparent; there is a implicit garantie that the topmost element is always a SequenceElement. - can save and load itself. different formates. (see below) -- all children must be a SequenceElement. Except for SequenceElement's - children that might be of any type. +- all tqchildren must be a SequenceElement. Except for SequenceElement's + tqchildren that might be of any type. - might have its own color. - might have its own font size (see below). @@ -42,14 +42,14 @@ Responsebilities SequenceElement from BasicElement --------------- -Manages a list of children. The children are aligned horizontally at +Manages a list of tqchildren. The tqchildren are aligned horizontally at one middle line. No gaps, no overlaps. -Has no own look. It just draws all its children and is done. Except if +Has no own look. It just draws all its tqchildren and is done. Except if its empty. It looks like an empty space then (i.e. a little square) Has n+1 valid cursor positions where n is the number of -children. These are before, between and after the children. +tqchildren. These are before, between and after the tqchildren. May contain any (type of) element as child @@ -57,41 +57,41 @@ except SequenceElements if they contains a SequenceElement they merge it in the list They can handle splitting of the sequence to allow "select an put selected item -between parenthesis" i.e. as content child of a delimiterelement) +between tqparenthesis" i.e. as content child of a delimiterelement) FormulaElement from SequenceElement -------------- -The only element those parent is null. The root of the element object +The only element those tqparent is null. The root of the element object tree. This is the element that is created by the KFormulaDoc and that knows -about it. As every other element knows its parent and therefore the +about it. As every other element knows its tqparent and therefore the FormulaElement we get a chance to pass messages to the outside world. RootElement from BasicElement ----------- -contains two children. content and index. index is optional. +contains two tqchildren. content and index. index is optional. IndexElement from BasicElement ------------ -contains five children. content and four indexes. all indexes are +contains five tqchildren. content and four indexes. all indexes are optional. If there is no index the element might be replaced by its content. TextElement from BasicElement ----------- -contains one char and no children at all. +contains one char and no tqchildren at all. Might have its own font and size. But preferes to use a reasonalbe -font and size that are calculated from its parents font and a given +font and size that are calculated from its tqparents font and a given scheme (see below). @@ -105,7 +105,7 @@ choose with. FractionElement from BasicElement --------------- -2 children: numerator, denominator +2 tqchildren: numerator, denominator DecorationElement from BasicElement @@ -122,7 +122,7 @@ the other side of the decoration. SumIntegralElement from BasicElement //PrefixedElement ------------------ -draws all sorts of mathematical symbols with three children. Above, +draws all sorts of mathematical symbols with three tqchildren. Above, below (or whereever the indices and limits go)and to the right. @@ -130,7 +130,7 @@ GeometryElement from BasicElement --------------- One child. -Draw it at a fixed position relative to parent or absolute. +Draw it at a fixed position relative to tqparent or absolute. This is to do dirty things. This element must not be used, kformula will provide you everything @@ -143,7 +143,7 @@ typical of a math formula. MatrixElement from BasicElement ------------- -A matrix of children. +A matrix of tqchildren. With all align stuff, internal borders etc, matrix dots handling (i.e. those dots or lines that complete the matrix, not well handled in TeX), etc.. @@ -151,7 +151,7 @@ etc.. SpaceElement from BasicElement ------------ -No children at all. Provides the facility to insert horizontal spaces +No tqchildren at all. Provides the facility to insert horizontal spaces in the formula. (therefore it is similar to TextElement.) @@ -183,18 +183,18 @@ If the cursor points into an element this element is said to own the cursor. There are a few rules that describe how new cursor positions are calculated given the current key: -- An elements cursor positions are its children. The element might not -own the cursor except when it is owned by one of its children. The +- An elements cursor positions are its tqchildren. The element might not +own the cursor except when it is owned by one of its tqchildren. The only exception is SequenceElement which has valid cursor positions -before, between and after its children, too. +before, between and after its tqchildren, too. (Therefore the cursor is always owned by a SequenceElement.) -- Each element's children are ordered. If the cursor leaves one child +- Each element's tqchildren are ordered. If the cursor leaves one child the next child it. The direction depends on the key that moved the -cursor. If there is child left the cursor is passed to the parent. +cursor. If there is child left the cursor is passed to the tqparent. -- If the cursor comes from our parent the first or the last child gets +- If the cursor comes from our tqparent the first or the last child gets it. Depending on the direction in which the cursor moved. Please note that because each element knows its own cursor positions @@ -261,7 +261,7 @@ We want a formula to look different according to its surroundings. (Most obviosly according to the available height and/or width.) It would be great to get something like automatic operator -alignment. So if you type some formulas each on its own line the +tqalignment. So if you type some formulas each on its own line the assigment operators should be automatically in a column. (If the user turns this on.) @@ -272,7 +272,7 @@ Fonts and font size (2 ideas) 1) Each element know its font family (also if it is not a text element) so that it -can give this font to its children. +can give this font to its tqchildren. The font size is calculated starting from a global scale factor and appling to it a local size modifier (like HTML -2, -1,+3,etc..), this also calculate the |