company logo

Cell :: Cell - Constructor

In order to describe single data items in a list (table or tree), Cells can be created for a list item (Line).

Implementation overview

Implementation details

  1. Create subcell
    Cell  :: Cell ( odabagui::Cell &cCell, odaba::String &sResource )

    The constructor creates a sub cell for the cell passed in cCell with the name passed in sName. Sub cells can be created for complex columns, which consist of several sub cells.

    • cCell - Constant reference to cell
    • sResource - Name of resoure

      "ok_button"        // button in the current window

      "address.street"   // line edit in the address subwindow

      ".name"            // line edit in the upper control (window)

  2. to list
  3. Create copy
    Cell  :: Cell ( odabagui::Cell &cCell )

    The function creates a copy from the cell passed in cCell.

    • cCell - Constant reference to cell
  4. to list
  5. Create empty cell
    Cell  :: Cell (  )

    The function creates an empty (invalid) cell object.

  6. to list
  7. Create cell for column
    Cell  :: Cell ( odabagui::Line &cLine, odaba::String &sName )

    The function creates a cell for the column sName in the line passed in cLine.

    • cLine - Constant line

      The line passed may have any state, i.e. it night be attached to a list item or not. The line might even be empty.

    • sName - Resource or entity name

      The name refers to a design or GUI resource.

  8. to list
  9. Create cell at position
    Cell  :: Cell ( odabagui::Line &cLine, int32 iPosition )

    The constructor creates a cell for the column at position passed in iPosition in the line passed in cLine.

    • cLine - Constant line

      The line passed may have any state, i.e. it night be attached to a list item or not. The line might even be empty.

    • iPosition - Position in collection

      The position of an entry in a collection or list is the number of the entry in the collection beginning with 0 for the first entry.

  10. to list