diff options
author | Gevel Tekens <geveltekens@gmail.com> | 2025-02-04 23:13:27 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-02-05 21:50:39 +0100 |
commit | 6cd133d2f242d36bd48ddea44acd868f70782d0b (patch) | |
tree | d6846c0e13706fb1dbb94885cb2980a639d22735 /dw | |
parent | 0c7e087fbd0278da9a39bd16ab9385073f1f495c (diff) |
Fix several typos
See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/L3FFAINJJMIOZQNID5HC2DHKJIIIHEYH/
Diffstat (limited to 'dw')
-rw-r--r-- | dw/findtext.hh | 2 | ||||
-rw-r--r-- | dw/fltkui.hh | 2 | ||||
-rw-r--r-- | dw/hyphenator.cc | 2 | ||||
-rw-r--r-- | dw/imgbuf.hh | 2 | ||||
-rw-r--r-- | dw/layout.cc | 2 | ||||
-rw-r--r-- | dw/oofawarewidget.hh | 2 | ||||
-rw-r--r-- | dw/ooffloatsmgr.cc | 12 | ||||
-rw-r--r-- | dw/oofposabslikemgr.cc | 2 | ||||
-rw-r--r-- | dw/outofflowmgr.hh | 2 | ||||
-rw-r--r-- | dw/platform.hh | 2 | ||||
-rw-r--r-- | dw/selection.hh | 2 | ||||
-rw-r--r-- | dw/style.cc | 6 | ||||
-rw-r--r-- | dw/style.hh | 2 | ||||
-rw-r--r-- | dw/table.cc | 10 | ||||
-rw-r--r-- | dw/table.hh | 6 | ||||
-rw-r--r-- | dw/tablecell.cc | 2 | ||||
-rw-r--r-- | dw/textblock.cc | 10 | ||||
-rw-r--r-- | dw/textblock.hh | 16 | ||||
-rw-r--r-- | dw/textblock_linebreaking.cc | 8 | ||||
-rw-r--r-- | dw/types.hh | 6 | ||||
-rw-r--r-- | dw/ui.cc | 2 | ||||
-rw-r--r-- | dw/ui.hh | 4 | ||||
-rw-r--r-- | dw/view.hh | 2 | ||||
-rw-r--r-- | dw/widget.cc | 14 |
24 files changed, 60 insertions, 60 deletions
diff --git a/dw/findtext.hh b/dw/findtext.hh index c6803485..1923acce 100644 --- a/dw/findtext.hh +++ b/dw/findtext.hh @@ -23,7 +23,7 @@ public: */ RESTART, - /** \brief The patten does not at all occur in the text. */ + /** \brief The pattern does not at all occur in the text. */ NOT_FOUND } Result; diff --git a/dw/fltkui.hh b/dw/fltkui.hh index ff6331d1..35ed6b1c 100644 --- a/dw/fltkui.hh +++ b/dw/fltkui.hh @@ -67,7 +67,7 @@ namespace fltk { * * <center>[\ref uml-legend "legend"]</center> * - * where dw::fltk::ui::FltkResource provides some base funtionality for all + * where dw::fltk::ui::FltkResource provides some base functionality for all * conctrete FLTK implementations of sub-interfaces of dw::core::ui::Resource. * However, this is not directly possible in C++, since the base class * dw::core::ui::Resource is ambiguous for diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc index 1530074f..6f7aebde 100644 --- a/dw/hyphenator.cc +++ b/dw/hyphenator.cc @@ -416,7 +416,7 @@ int TrieBuilder::insertState (StackEntry *state, bool root) return 0; if (root) { - i = 0; // we reseve slot 0 for the root state + i = 0; // we reserve slot 0 for the root state } else { /* The bigger pack is the more slots we check and the smaller * the trie will be, but CPU consumption also increases. diff --git a/dw/imgbuf.hh b/dw/imgbuf.hh index e2b592e5..bd5b6485 100644 --- a/dw/imgbuf.hh +++ b/dw/imgbuf.hh @@ -65,7 +65,7 @@ namespace core { * * \code * dw::core::Imgbuf *curBuf, *oldBuf; - * int width, heigt, + * int width, height, * // ... * oldBuf = curBuf; * curBuf = oldBuf->getScaledBuf(oldBuf, width, height); diff --git a/dw/layout.cc b/dw/layout.cc index 33c3e75d..1784b139 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -355,7 +355,7 @@ void Layout::detachWidget (Widget *widget) // be detached, and check "layout != NULL" at relevant points. // Could be replaced by a virtual method in Widget, like getWidgetAtPoint, - // if performace were really a problem. + // if performance were really a problem. widget->layout = NULL; Iterator *it = diff --git a/dw/oofawarewidget.hh b/dw/oofawarewidget.hh index 07906055..c2a359aa 100644 --- a/dw/oofawarewidget.hh +++ b/dw/oofawarewidget.hh @@ -219,7 +219,7 @@ public: static inline bool testStyleOutOfFlow (core::style::Style *style) { // Second part is equivalent to testStylePositioned(), but we still keep - // the two seperately. + // the two separately. return testStyleFloat (style) || testStyleAbsolutelyPositioned (style) || testStyleRelativelyPositioned (style) || testStyleFixedlyPositioned (style); } diff --git a/dw/ooffloatsmgr.cc b/dw/ooffloatsmgr.cc index 54ea5744..a3175081 100644 --- a/dw/ooffloatsmgr.cc +++ b/dw/ooffloatsmgr.cc @@ -584,8 +584,8 @@ int OOFFloatsMgr::addWidgetOOF (Widget *widget, OOFAwareWidget *generatingBlock, } // "sideSpanningIndex" is only compared, so this simple assignment - // is sufficient; differenciation between GB and CB lists is not - // neccessary. + // is sufficient; differentiation between GB and CB lists is not + // necessary. vloat->sideSpanningIndex = leftFloats->size() + rightFloats->size() - 1; @@ -704,7 +704,7 @@ int OOFFloatsMgr::findTBInfo (int y) TBInfo::ComparePosition comparator (oofmIndex); int index = tbInfos->bsearch (&key, false, &comparator); - // "bsearch" returns next greater, but we are interrested in the last which + // "bsearch" returns next greater, but we are interested in the last which // is less or equal. int result = index > 0 ? index - 1 : index; @@ -828,7 +828,7 @@ void OOFFloatsMgr::tellPosition1 (Widget *widget, int x, int y) DBG_OBJ_MSGF ("resize.oofm", 1, "vloat->yReq = %d, vloat->yReal = %d", vloat->yReq, vloat->yReal); - // In some cases, an explicit update is neccessary, as in this example: + // In some cases, an explicit update is necessary, as in this example: // // <body> // <div id="a"> @@ -1131,7 +1131,7 @@ int OOFFloatsMgr::getBorder (Side side, int y, int h, OOFAwareWidget *lastGB, if (first != -1) { // It is not sufficient to find the first float, since a line // (with height h) may cover the region of multiple float, of - // which the widest has to be choosen. + // which the widest has to be chosen. bool covers = true; // We are not searching until the end of the list, but until the @@ -1297,7 +1297,7 @@ int OOFFloatsMgr::getClearPosition (OOFAwareWidget *widget, Side side) int pos; SortedFloatsVector *list = side == LEFT ? leftFloats : rightFloats; - // Search the last float before (therfore -1) this widget. + // Search the last float before (therefore -1) this widget. int i = list->findFloatIndex (widget, -1); if (i < 0) pos = 0; diff --git a/dw/oofposabslikemgr.cc b/dw/oofposabslikemgr.cc index aa506dd8..f4b70087 100644 --- a/dw/oofposabslikemgr.cc +++ b/dw/oofposabslikemgr.cc @@ -272,7 +272,7 @@ void OOFPosAbsLikeMgr::calcPosAndSizeChildOfChild (Child *child, int refWidth, DBG_OBJ_ENTER ("resize.oofm", 0, "calcPosAndSizeChildOfChild", "[%p], %d, %d, ...", child->widget, refWidth, refHeight); - // TODO (i) Consider {min|max}-{width|heigt}. (ii) Height is always + // TODO (i) Consider {min|max}-{width|height}. (ii) Height is always // apportioned to descent (ascent is preserved), which makes sense // when the children are textblocks. (iii) Consider minimal width // (getMinWidth)? diff --git a/dw/outofflowmgr.hh b/dw/outofflowmgr.hh index 209ae42c..6fae524f 100644 --- a/dw/outofflowmgr.hh +++ b/dw/outofflowmgr.hh @@ -73,7 +73,7 @@ public: * Get the left border for the vertical position of *y*, for a height * of *h", based on floats; relative to the *container*. * - * The border includes marging/border/padding of the calling textblock + * The border includes margin/border/padding of the calling textblock * but is 0 if there is no float, so a caller should also consider * other borders. */ diff --git a/dw/platform.hh b/dw/platform.hh index be9b4a58..5270098b 100644 --- a/dw/platform.hh +++ b/dw/platform.hh @@ -148,7 +148,7 @@ public: virtual void cancelTooltip () = 0; /** - * \brief Create a (platform speficic) image buffer. + * \brief Create a (platform specific) image buffer. * * "gamma" is the value by which the image data is gamma-encoded. */ diff --git a/dw/selection.hh b/dw/selection.hh index 3004d2d4..d9d5af72 100644 --- a/dw/selection.hh +++ b/dw/selection.hh @@ -94,7 +94,7 @@ namespace core { * the link handling state. * * The general selection works, for events not pointing on links, like - * this (numbers in parantheses after the event denote the button, "n" + * this (numbers in parentheses after the event denote the button, "n" * means arbitrary button): * * \dot diff --git a/dw/style.cc b/dw/style.cc index 5d0bcbe3..dfb36a8d 100644 --- a/dw/style.cc +++ b/dw/style.cc @@ -1208,7 +1208,7 @@ void drawBorder (View *view, Layout *layout, Rectangle *area, * "heightRef" define the reference area, which is important for the * tiling of background images (for position 0%/0%, a tile is set at * xRef/yRef; for position 100%/100%, a tile is set at xRef + - * widthRef/yRef + widthRef). See calls for more informations; in most + * widthRef/yRef + widthRef). See calls for more information; in most * cases, these boxes are identical (padding box). All these * coordinates are given in canvas coordinates. * @@ -1216,7 +1216,7 @@ void drawBorder (View *view, Layout *layout, Rectangle *area, * canvas, not on top of other areas; this is only true for the * toplevel widget itself (not parts of its contents). Toplevel widget * background colors are already set as viewport background color, so - * that drawing again is is not neccessary, but some time can be + * that drawing again is is not necessary, but some time can be * saved. * * Otherwise, the caller should not try to increase the performance by @@ -1226,7 +1226,7 @@ void drawBorder (View *view, Layout *layout, Rectangle *area, * style->backgroundColor may simply used. However, when drawing is * inversed, and style->backgroundColor is undefined (NULL), a * background color defined higher in the hierarchy (which is not - * accessable here) must be used. + * accessible here) must be used. * * (Background *images* are never drawn inverse.) */ diff --git a/dw/style.hh b/dw/style.hh index 3cab376a..587a8622 100644 --- a/dw/style.hh +++ b/dw/style.hh @@ -190,7 +190,7 @@ namespace core { * * <ul> * <li> dw::core::Widget::~Widget, dw::Textblock::~Textblock, by the - * HTML parser, when popping an element fom the stack, and + * HTML parser, when popping an element from the stack, and * <li> dw::core::Widget::setStyle, dw::Textblock::addText etc., * these methods overwrite an existing style. * </ul> diff --git a/dw/table.cc b/dw/table.cc index 18bf81cd..aa126013 100644 --- a/dw/table.cc +++ b/dw/table.cc @@ -255,7 +255,7 @@ int Table::getAvailWidthOfChild (Widget *child, bool forceValue) // An alternative would be incremental resizing for tables; this // approach resembles the behaviour before GROWS. - // TODO Does it still make sence to return -1 when forceValue is + // TODO Does it still make sense to return -1 when forceValue is // set? if (forceValue) width = calcAvailWidthForDescendant (child); @@ -273,7 +273,7 @@ int Table::calcAvailWidthForDescendant (Widget *child) DBG_OBJ_ENTER ("resize", 0, "calcAvailWidthForDescendant", "%p", child); // "child" is not a direct child, but a direct descendant. Search - // for the actual childs. + // for the actual children. Widget *actualChild = child; while (actualChild != NULL && actualChild->getParent () != this) actualChild = actualChild->getParent (); @@ -1015,7 +1015,7 @@ void Table::actuallyCalcCellSizes (bool calcHeights) colExtremes->getRef(col)->minWidthIntrinsic; else // Columns without percentage width get only the - // intrinsic mininal, so subtract this from the width for the + // intrinsic minimal, so subtract this from the width for the // columns *with* percentage widthPartPer -= colExtremes->getRef(col)->minWidthIntrinsic; @@ -1076,7 +1076,7 @@ void Table::actuallyCalcCellSizes (bool calcHeights) "subcase 2b: %d column(s) with specified width", numColWidthSpecified); - // Seperate columns with specified and unspecified width, and + // Separate columns with specified and unspecified width, and // apply apportion2() only to the latter. int numNotSpecified = colExtremes->size() - numColWidthSpecified; @@ -1625,7 +1625,7 @@ void Table::apportion2 (int totalWidth, int firstCol, int lastCol, dest->set (destOffset - firstCol + col, width); } } else { // if (totalMin == 0) - // Last special case. Ssame algorithm, with + // Last special case. Same algorithm, with // // x[i] = 1 (so cumX = i = col - firstCol + 1) // y[i] = width[i] diff --git a/dw/table.hh b/dw/table.hh index ad1a2ddc..63c79739 100644 --- a/dw/table.hh +++ b/dw/table.hh @@ -69,7 +69,7 @@ namespace dw { * [A] In this case, the new calculation is \em not forced, but only * done, when necessary. * - * [B] In this case, the new calculation is allways necessary, since [C] + * [B] In this case, the new calculation is always necessary, since [C] * is the case. * * [C] Whether this function is called, depends on NEEDS_RESIZE / @@ -378,7 +378,7 @@ private: lout::misc::SimpleVector<core::Extremes> *colExtremes; /** - * \brief Wether the column itself (in the future?) or at least one + * \brief Whether the column itself (in the future?) or at least one * cell in this column or spanning over this column has CSS * 'width' specified. * @@ -389,7 +389,7 @@ private: int numColWidthSpecified; /** - * \brief Wether the column itself (in the future?) or at least one + * \brief Whether the column itself (in the future?) or at least one * cell in this column or spanning over this column has CSS * 'width' specified *as percentage value*. * diff --git a/dw/tablecell.cc b/dw/tablecell.cc index e2588c0b..5f125bac 100644 --- a/dw/tablecell.cc +++ b/dw/tablecell.cc @@ -30,7 +30,7 @@ namespace dw { * * Once I understand how diamond inheritance works, a class TableCell * will be provided, from which SimpleTableCell and AlignedTableCell - * will inherit, additionaly (in a multiple way). + * will inherit, additionally (in a multiple way). */ namespace tablecell { diff --git a/dw/textblock.cc b/dw/textblock.cc index df34dd95..a1cbf2a3 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -550,7 +550,7 @@ void Textblock::notifySetParent () numSizeReferences = 0; for (int i = 0; i < NUM_OOFM; i++) { if (oofContainer[i] != this) { - // avoid dublicates + // avoid duplicates bool found = false; for (int j = 0; !found && j < numSizeReferences; j++) if (oofContainer[i] == oofContainer[j]) @@ -1748,7 +1748,7 @@ void Textblock::drawLevel (core::View *view, core::Rectangle *area, break; case SL_OOF_REF: - // TODO Inefficient. Perhaps store OOF references in seperate + // TODO Inefficient. Perhaps store OOF references in separate // (much smaller!) list. for (int oofmIndex = 0; oofmIndex < NUM_OOFM; oofmIndex++) { for (int wordIndex = 0; wordIndex < words->size (); wordIndex++) { @@ -1795,7 +1795,7 @@ Textblock::Word *Textblock::addWord (int width, int ascent, int descent, } /** - * Basic initialization, which is neccessary before fillWord. + * Basic initialization, which is necessary before fillWord. */ void Textblock::initWord (int wordNo) { @@ -2745,7 +2745,7 @@ void Textblock::addParbreak (int space, core::style::Style *style) DBG_OBJ_ENTER ("construct.word", 0, "addParbreak", "%d, %p", space, style); DBG_OBJ_MSG ("construct.word", 0, - "<i>No nesting! Strack trace may be incomplete.</i>"); + "<i>No nesting! Stack trace may be incomplete.</i>"); DBG_OBJ_LEAVE (); Word *word; @@ -2919,7 +2919,7 @@ core::Widget *Textblock::getWidgetAtPointLevel (int x, int y, int level, break; case SL_OOF_REF: - // TODO Inefficient. Perhaps store OOF references in seperate + // TODO Inefficient. Perhaps store OOF references in separate // (much smaller!) list. for (int oofmIndex = NUM_OOFM; widgetAtPoint == NULL && oofmIndex >= 0; oofmIndex--) { diff --git a/dw/textblock.hh b/dw/textblock.hh index d02e6b7b..408eb5a0 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -227,7 +227,7 @@ private: int ratio; // ratio is only defined when badness is defined int badness, penalty[2]; - // For debugging: define DEBUG for more informations in print(). + // For debugging: define DEBUG for more information in print(). #ifdef DEBUG int totalWidth, idealWidth, totalStretchability, totalShrinkability; #endif @@ -386,8 +386,8 @@ protected: int borderDescent; /* Maximum of all descents minus margin (but including padding and border: hence the name) of the words in this line. */ - int contentAscent; /* ??? (depricated?) */ - int contentDescent; /* ??? (depricated?) */ + int contentAscent; /* ??? (deprecated?) */ + int contentDescent; /* ??? (deprecated?) */ int breakSpace; /* Space between this line and the next one. */ int textOffset; /* Horizontal position of the first word of the line, in widget coordinates. */ @@ -396,7 +396,7 @@ protected: * \brief Returns the difference between two vertical lines * positions: height of this line plus space below this * line. The margin of the next line (marginAscent - - * borderAscent) must be passed seperately. + * borderAscent) must be passed separately. */ inline int totalHeight (int marginNextLine) { return borderAscent + borderDescent @@ -547,7 +547,7 @@ protected: * (which is used by DwTable!), and * (ii) line1_offset is ignored (line1_offset_eff is set to 0), * when line1_offset plus the width of the first word is - * greater than the the line break witdh. + * greater than the line break width. * * \todo Eliminate all these ad-hoc features by a new, simpler and * more elegant design. ;-) @@ -589,7 +589,7 @@ protected: // These four values are calculated by containingBlock->outOfFlowMgr // (when defined; otherwise, they are false, or 0, respectively), for // the newly constructed line, only when needed: when a new line is - // added, or if something in the line currently constucted has + // added, or if something in the line currently constructed has // changed, e. g. a float has been added. bool newLineHasFloatLeft, newLineHasFloatRight; @@ -601,7 +601,7 @@ protected: // Ascent and descent of the newly constructed line, i. e. maximum // of all words ascent/descent since the end of the last line. Not - // neccessary the ascent and descent of the newly added line, since + // necessary the ascent and descent of the newly added line, since // not all words are added to it. int newLineAscent, newLineDescent; @@ -706,7 +706,7 @@ protected: // The following methods return the y offset of a line, // - given as pointer or by index; // - either within the canvas, or within this widget; - // - with allocation passed explicitely, or using the widget allocation + // - with allocation passed explicitly, or using the widget allocation // (important: this is set *after* sizeRequestImpl is returning. inline int lineYOffsetWidget (Line *line, core::Allocation *allocation) diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 713ad530..1a95cb70 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -513,7 +513,7 @@ void Textblock::processWord (int wordIndex) // // (Note: the hyphenated word is often *before* wordIndex, and // it may be even more than one word, which makes it nearly - // impossible to reconstruct what has happend. Therefore, there + // impossible to reconstruct what has happened. Therefore, there // is no simpler approach to handle this.) DBG_OBJ_MSGF ("construct.paragraph", 1, @@ -1492,7 +1492,7 @@ int Textblock::hyphenateWord (int wordIndex, int *addIndex1) // AccumulateWordData() will calculate the width, which depends // on the borders (possibly limited by floats), which depends on - // the widgeds so far. For this reason, it is important to first + // the widgets so far. For this reason, it is important to first // make all words consistent before calling // accumulateWordData(); therefore the second loop. @@ -1553,7 +1553,7 @@ void Textblock::moveWordIndices (int wordIndex, int num, int *addIndex1) par->firstWord += num; } - // Addiditional indices. When needed, the number can be extended. + // Additional indices. When needed, the number can be extended. if (addIndex1 && *addIndex1 >= wordIndex) *addIndex1 += num; @@ -1653,7 +1653,7 @@ void Textblock::accumulateWordData (int wordIndex) lineIndex, firstWordOfLine, lineBreakWidth); if (wordIndex == firstWordOfLine) { - // first word of the (not neccessarily yet existing) line + // first word of the (not necessarily yet existing) line word->totalWidth = word->size.width + word->hyphenWidth; word->maxAscent = word->size.ascent; word->maxDescent = word->size.descent; diff --git a/dw/types.hh b/dw/types.hh index eabf5ce7..bfe7ce89 100644 --- a/dw/types.hh +++ b/dw/types.hh @@ -64,7 +64,7 @@ public: }; /** - * \brief dw::core::Shape implemtation for simple rectangles. + * \brief dw::core::Shape implementation for simple rectangles. */ class Rectangle: public Shape { @@ -85,7 +85,7 @@ public: }; /** - * \brief dw::core::Shape implemtation for simple circles. + * \brief dw::core::Shape implementation for simple circles. */ class Circle: public Shape { @@ -99,7 +99,7 @@ public: }; /** - * \brief dw::core::Shape implemtation for polygons. + * \brief dw::core::Shape implementation for polygons. */ class Polygon: public Shape { @@ -52,7 +52,7 @@ Embed::~Embed() void Embed::sizeRequestSimpl (Requisition *requisition) { resource->sizeRequest (requisition); - // TODO Correction should perhaps be left to the resouces. + // TODO Correction should perhaps be left to the resources. correctRequisition(requisition, core::splitHeightPreserveAscent, true, true); } @@ -107,14 +107,14 @@ namespace core { * <h3>...</h3> * * - * <h3>Resouces needed for HTML</h3> + * <h3>Resources needed for HTML</h3> * * This chapter describes, how the form controls defined by HTML are * implemented in Dw. Some of them do not refer to UI resources, but to * other widgets, links to the respective documentations are provided * here. * - * <h4>Resouces created with \<INPUT\></h4> + * <h4>Resources created with \<INPUT\></h4> * * The HTML \<INPUT\> is always implemented by using UI * resources. \<INPUT\> element has the following attributes: @@ -75,7 +75,7 @@ public: virtual int getScrollbarOnLeft () = 0; /** - * \brief Scroll the vieport to the given position. + * \brief Scroll the viewport to the given position. * * Does not have to be implemented, when usesViewport returns false. */ diff --git a/dw/widget.cc b/dw/widget.cc index 354b644d..0b8328cf 100644 --- a/dw/widget.cc +++ b/dw/widget.cc @@ -641,7 +641,7 @@ int Widget::getMinWidth (Extremes *extremes, bool forceValue) } } - // TODO Not completely clear whether this is feasable: Within + // TODO Not completely clear whether this is feasible: Within // the context of getAvailWidth(false) etc., getExtremes may not // be called. We ignore the minimal width then. if (extremes) @@ -969,7 +969,7 @@ int Widget::calcWidth (style::Length cssValue, int refWidth, Widget *refWidget, } /** - * Computes the final width if posible and constraints it by min-width and + * Computes the final width if possible and constraints it by min-width and * max-width. * * This function performs a very particular computation. It will try to find the @@ -981,7 +981,7 @@ int Widget::calcWidth (style::Length cssValue, int refWidth, Widget *refWidget, * to auto. * * If both the initial *finalWidth and the style with are -1, the value will be - * left as is, even if min-width and max-width could contraint the size. For the + * left as is, even if min-width and max-width could constraint the size. For the * width to be constrained, either the initial *finalWidth or the computed width * should return an absolute value. * @@ -1604,7 +1604,7 @@ int Widget::getLevel () } /** - * \brief Get the level of the widget within the tree, regarting the + * \brief Get the level of the widget within the tree, regarding the * generators, not the parents. * * The root widget has the level 0. @@ -1772,7 +1772,7 @@ int Widget::applyPerHeight (int containerHeight, style::Length perHeight) * @param child The child widget of which the available width will be * computed. * @param forceValue If true, computes the width of the child with value - * "auto". Otherwise, it wont. + * "auto". Otherwise, it won't. * * @return The available width in pixels or -1. */ @@ -2002,7 +2002,7 @@ bool Widget::correctReqAspectRatio (int pass, Widget *child, Requisition *requis if (allowDecreaseHeight) { /* FIXME: This may lose cases where allowDecreaseHeight is false, and * the requisition has increased the height first, but we could still - * reduce the corrected hight above the original height, without + * reduce the corrected height above the original height, without * making the requisition height smaller. */ int h = (float) wReq / ratio; DEBUG_MSG(1, "decrease h: %d -> %d\n", hReq, h); @@ -2078,7 +2078,7 @@ void Widget::correctReqHeightOfChild (Widget *child, Requisition *requisition, void (*splitHeightFun) (int, int*, int*), bool allowDecreaseHeight) { - // TODO Correct height by extremes? (Height extemes?) + // TODO Correct height by extremes? (Height extremes?) assert (this == child->quasiParent || this == child->container); |