The last work for the new elements into the visualmap. Ticket #1478
@ -147,6 +147,11 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
$table->data[$i + 1]['icon'] =
|
$table->data[$i + 1]['icon'] =
|
||||||
html_print_image('images/box_item.png', true, array('title' => __('Box')));
|
html_print_image('images/box_item.png', true, array('title' => __('Box')));
|
||||||
break;
|
break;
|
||||||
|
case LINE_ITEM:
|
||||||
|
$table->data[$i + 1]['icon'] =
|
||||||
|
html_print_image('images/line_item.png', true,
|
||||||
|
array('title' => __('Line')));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
$table->data[$i + 1]['icon'] =
|
$table->data[$i + 1]['icon'] =
|
||||||
@ -166,6 +171,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
switch ($layoutData['type']) {
|
switch ($layoutData['type']) {
|
||||||
case ICON:
|
case ICON:
|
||||||
case BOX_ITEM:
|
case BOX_ITEM:
|
||||||
|
case LINE_ITEM:
|
||||||
// hasn't the label.
|
// hasn't the label.
|
||||||
$table->data[$i + 1][0] = '';
|
$table->data[$i + 1][0] = '';
|
||||||
break;
|
break;
|
||||||
@ -196,18 +202,35 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
|
|
||||||
|
|
||||||
//Width and height
|
//Width and height
|
||||||
$table->data[$i + 1][2] = html_print_input_text('width_' . $idLayoutData, $layoutData['width'], '', 2, 5, true) .
|
switch ($layoutData['type']) {
|
||||||
'x' .
|
case LINE_ITEM:
|
||||||
html_print_input_text('height_' . $idLayoutData, $layoutData['height'], '', 2, 5, true);
|
// hasn't the width and height.
|
||||||
|
$table->data[$i + 1][2] = '';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$table->data[$i + 1][2] = html_print_input_text('width_' . $idLayoutData, $layoutData['width'], '', 2, 5, true) .
|
||||||
|
'x' .
|
||||||
|
html_print_input_text('height_' . $idLayoutData, $layoutData['height'], '', 2, 5, true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//Position
|
//Position
|
||||||
$table->data[$i + 1][3] = '(' . html_print_input_text('left_' . $idLayoutData, $layoutData['pos_x'], '', 2, 5, true) .
|
switch ($layoutData['type']) {
|
||||||
',' . html_print_input_text('top_' . $idLayoutData, $layoutData['pos_y'], '', 2, 5, true) .
|
case LINE_ITEM:
|
||||||
')';
|
// hasn't the width and height.
|
||||||
|
$table->data[$i + 1][3] = '';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$table->data[$i + 1][3] = '(' . html_print_input_text('left_' . $idLayoutData, $layoutData['pos_x'], '', 2, 5, true) .
|
||||||
|
',' . html_print_input_text('top_' . $idLayoutData, $layoutData['pos_y'], '', 2, 5, true) .
|
||||||
|
')';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//Parent
|
//Parent
|
||||||
switch ($layoutData['type']) {
|
switch ($layoutData['type']) {
|
||||||
case BOX_ITEM:
|
case BOX_ITEM:
|
||||||
|
case LINE_ITEM:
|
||||||
$table->data[$i + 1][4] = "";
|
$table->data[$i + 1][4] = "";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -238,6 +261,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
case BOX_ITEM:
|
case BOX_ITEM:
|
||||||
case ICON:
|
case ICON:
|
||||||
case LABEL:
|
case LABEL:
|
||||||
|
case LINE_ITEM:
|
||||||
$table->data[$i + 2][0] = '';
|
$table->data[$i + 2][0] = '';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -288,6 +312,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
case ICON:
|
case ICON:
|
||||||
case LABEL:
|
case LABEL:
|
||||||
case BOX_ITEM:
|
case BOX_ITEM:
|
||||||
|
case LINE_ITEM:
|
||||||
$table->data[$i + 2][1] = '';
|
$table->data[$i + 2][1] = '';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -349,6 +374,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
|
|
||||||
//Map linked
|
//Map linked
|
||||||
switch ($layoutData['type']) {
|
switch ($layoutData['type']) {
|
||||||
|
case LINE_ITEM:
|
||||||
case BOX_ITEM:
|
case BOX_ITEM:
|
||||||
$table->data[$i + 2][4] = "";
|
$table->data[$i + 2][4] = "";
|
||||||
break;
|
break;
|
||||||
|
BIN
pandora_console/images/box_item.disabled.png
Executable file → Normal file
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 1.2 KiB |
BIN
pandora_console/images/box_item.png
Executable file → Normal file
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 1.2 KiB |
BIN
pandora_console/images/line_item.disabled.png
Executable file → Normal file
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 1.4 KiB |
BIN
pandora_console/images/line_item.png
Executable file → Normal file
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 1.4 KiB |