Lines Matching refs:cell
70 def print_intent(out, id, i, cell): argument
71 if cell:
73 cgi.escape(cell, True)
77 def print_icon(out, id, i, cell): argument
78 if cell:
82 f.write(cell)
85 def print_icon_type(out, id, i, cell): argument
86 if cell == 0:
87 out.write("Application (%d)" % cell)
88 elif cell == 1:
89 out.write("Shortcut (%d)" % cell)
90 elif cell == 2:
91 out.write("Folder (%d)" % cell)
92 elif cell == 4:
93 out.write("Widget (%d)" % cell)
94 elif cell:
95 out.write("%d" % cell)
97 def print_cell(out, id, i, cell): argument
98 if not cell is None:
99 out.write(cgi.escape(unicode(cell)))
107 def render_cell_info(out, cell, occupied): argument
108 if cell is None:
111 elif cell == occupied:
114 cellX = cell["cellX"]
115 cellY = cell["cellY"]
116 spanX = cell["spanX"]
117 spanY = cell["spanY"]
118 intent = cell["intent"]
120 title = "title=\"%s\"" % cgi.escape(cell["intent"], True)
128 itemType = cell["itemType"]
130 out.write("""<img style="width: 4em; height: 4em;" src="icon_%d.png">\n""" % ( cell["_id"] ))
132 out.write(cgi.escape(cell["title"]) + " <br/><i>(app)</i>")
134 out.write("""<img style="width: 4em; height: 4em;" src="icon_%d.png">\n""" % ( cell["_id"] ))
136 out.write(cgi.escape(cell["title"]) + " <br/><i>(shortcut)</i>")
140 out.write("<i>widget %d</i><br/>\n" % cell["appWidgetId"])
213 cell = row[i]
216 print_functions[i](out, row[0], row, cell)
243 for cell in hotseat:
244 render_cell_info(out, cell, None)
277 for cell in m:
278 render_cell_info(out, cell, occupied)