Ignore:
Timestamp:
07/03/10 22:24:43 (23 months ago)
Author:
tolteque
Message:

o LOMEFC2:

  • New Rules management

TODO: indentation and consistency check

tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lomefc2/me_utilities.lua

    r2065 r2103  
    576576-- itemId will be assign to itemId field of item widget 
    577577-- returns created item. 
    578 function addBoxItem(box, item, theme, itemId) 
     578function addBoxItem(box, item, theme, itemId, idx) 
    579579    if itemId then 
    580580        item.itemId = itemId 
     
    583583        item:setTheme(theme) 
    584584    end 
    585      
    586     box:insertWidget(item) 
     585    if idx then 
     586        box:insertWidget(item, idx) 
     587    else 
     588        box:insertWidget(item) 
     589    end 
    587590end 
    588591 
     
    591594-- itemId will be assign to itemId field of item widget 
    592595-- returns created item. 
    593 function addListBoxItem(listBox, caption, theme, itemId) 
     596function addListBoxItem(listBox, caption, theme, itemId, idx) 
    594597    local item = ListBox.newItem(caption) 
    595     addBoxItem(listBox, item, theme, itemId) 
     598    addBoxItem(listBox, item, theme, itemId, idx) 
    596599    return item 
    597600end 
Note: See TracChangeset for help on using the changeset viewer.