Ignore:
Timestamp:
Apr 29, 2001, 2:10:31 PM (24 years ago)
Author:
umoeller
Message:

Misc fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/dialog.c

    r61 r65  
    400400
    401401VOID ProcessColumn(PCOLUMNDEF pColumnDef,
    402                    PROWDEF pOwningRow,
    403                    PROCESSMODE ProcessMode,
     402                   PROWDEF pOwningRow,          // in: current row from ProcessRow
     403                   PROCESSMODE ProcessMode,     // in: processing mode (see ProcessAll)
    404404                   PLONG plX,                   // in/out: PROCESS_CALC_POSITIONS only
    405405                   PDLGPRIVATE pDlgData)
     
    673673/*
    674674 *@@ ProcessRow:
    675  *
     675 *      level-3 procedure (called from ProcessTable),
     676 *      which in turn calls ProcessColumn for each column
     677 *      in the row.
     678 *
     679 *      See ProcessAll for the meaning of ProcessMode.
    676680 */
    677681
    678682VOID ProcessRow(PROWDEF pRowDef,
    679                 PTABLEDEF pOwningTable,
    680                 PROCESSMODE ProcessMode,
    681                 PLONG plY,
     683                PTABLEDEF pOwningTable,     // in: current table from ProcessTable
     684                PROCESSMODE ProcessMode,    // in: processing mode (see ProcessAll)
     685                PLONG plY,                  // in/out: current y position (decremented)
    682686                PDLGPRIVATE pDlgData)
    683687{
     
    727731/*
    728732 *@@ ProcessTable:
    729  *
    730  *      This routine is a bit sick because it can be
    731  *      called recursively if a nested table is found
    732  *      in a COLUMNDEF.
     733 *      level-2 procedure (called from ProcessAll),
     734 *      which in turn calls ProcessRow for each row
     735 *      in the table (which in turn calls ProcessColumn
     736 *      for each column in the row).
     737 *
     738 *      See ProcessAll for the meaning of ProcessMode.
     739 *
     740 *      This routine is a bit sick because it can even be
     741 *      called recursively from ProcessColumn (!) if a
     742 *      nested table is found in a COLUMNDEF.
    733743 *
    734744 *      With PROCESS_CALC_POSITIONS, pptl must specify
     
    742752VOID ProcessTable(PTABLEDEF pTableDef,
    743753                  const CONTROLPOS *pcpTable,       // in: table position with PROCESS_CALC_POSITIONS
    744                   PROCESSMODE ProcessMode,
     754                  PROCESSMODE ProcessMode,          // in: processing mode (see ProcessAll)
    745755                  PDLGPRIVATE pDlgData)
    746756{
     
    783793/*
    784794 *@@ ProcessAll:
     795 *      level-1 procedure, which in turn calls ProcessTable
     796 *      for each root-level table found (which in turn
     797 *      calls ProcessRow for each row in the table, which
     798 *      in turn calls ProcessColumn for each column in
     799 *      the row).
     800 *
     801 *      The first trick to formatting is that ProcessAll will
     802 *      get three times, thus going down the entire tree three
     803 *      times, with ProcessMode being set to one of the
     804 *      following for each call (in this order):
    785805 *
    786806 *      -- PROCESS_CALC_SIZES: calculates the sizes
    787807 *         of all tables, rows, columns, and controls.
    788808 *
     809 *         After this first call, we know all the sizes
     810 *         only and then then calculate the positions.
     811 *
    789812 *      -- PROCESS_CALC_POSITIONS: calculates the positions
    790813 *         based on the sizes calculated before.
     
    793816 *         positions and sizes calculated before.
    794817 *
     818 *      The second trick is the precondition that tables may
     819 *      nest by allowing a table definition instead of a
     820 *      control definition in a column. This way we can
     821 *      recurse from columns back into tables and thus
     822 *      know the size and position of a nested table column
     823 *      just as if it were a regular control.
    795824 */
    796825
Note: See TracChangeset for help on using the changeset viewer.