javauis/lcdui_akn/lcdui/inc/CMIDFormRow.h
branchRCL_3
changeset 60 6c158198356e
parent 19 04becd199f91
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
    42     ~CMIDFormRow();
    42     ~CMIDFormRow();
    43 
    43 
    44 public: // From CCoeControl
    44 public: // From CCoeControl
    45     TInt CountComponentControls() const;
    45     TInt CountComponentControls() const;
    46     CCoeControl* ComponentControl(TInt aIndex) const;
    46     CCoeControl* ComponentControl(TInt aIndex) const;
       
    47 #ifdef RD_JAVA_S60_RELEASE_9_2    
       
    48     void Draw(const TRect& /*aRect*/) const;
       
    49 #endif // RD_JAVA_S60_RELEASE_9_2    
    47     virtual void SizeChanged();
    50     virtual void SizeChanged();
    48     virtual TSize MinimumSize();
    51     virtual TSize MinimumSize();
    49 
    52 
    50 public: // interface to CMIDForm
    53 public: // interface to CMIDForm
    51     void AppendL(CMIDControlItem* aItem);
    54     void AppendL(CMIDControlItem* aItem);
    68     inline const TSize& EmptyRowSize() const;
    71     inline const TSize& EmptyRowSize() const;
    69 
    72 
    70 private:
    73 private:
    71     CMIDFormRow(CMIDForm& aForm);
    74     CMIDFormRow(CMIDForm& aForm);
    72     void ConstructL();
    75     void ConstructL();
       
    76 #ifdef RD_JAVA_S60_RELEASE_9_2
       
    77     /**
       
    78      * Checks whether the separator line must be drawn
       
    79      * above this form row.
       
    80      */
       
    81     void SetSeparator();
       
    82 #endif // RD_JAVA_S60_RELEASE_9_2
    73 
    83 
    74 private:
    84 private:
    75     CMIDForm& iForm;
    85     CMIDForm& iForm;
    76     MMIDItem::TLayout iAlignment; // ELeft, ERight, or ECenter
    86     MMIDItem::TLayout iAlignment; // ELeft, ERight, or ECenter
    77     RArray<CMIDControlItem*> iItems;
    87     RArray<CMIDControlItem*> iItems;
    78     TSize  iEmptyRowSize; // size used for empty rows
    88     TSize  iEmptyRowSize; // size used for empty rows
    79     TInt iCurrentWidth;             // used when adding items to the row. Keeps track of the total width of items added to row
    89     TInt iCurrentWidth;             // used when adding items to the row. Keeps track of the total width of items added to row
       
    90 #ifdef RD_JAVA_S60_RELEASE_9_2
       
    91     /**
       
    92      * Separator line is drawn between Form rows (except between Form rows that
       
    93      * belong together e.g. concatenated StringItems).
       
    94      */
       
    95     TBool iSeparator;
       
    96 #endif // RD_JAVA_S60_RELEASE_9_2    
    80 };
    97 };
    81 
    98 
    82 
    99 
    83 inline void CMIDFormRow::SetEmptyRowSize(const TSize& aEmptyRowSize)
   100 inline void CMIDFormRow::SetEmptyRowSize(const TSize& aEmptyRowSize)
    84 {
   101 {