Commit 9192134c authored by user's avatar user
Browse files

gatom prefs dialog-- label and label position

parent 1c42579b
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="dialog_canvas.css">
<link id="page_style" rel="stylesheet" type="text/css" href="css/default.css">
</head>
<body>
<div class="container noselect">
......@@ -270,6 +270,9 @@
// For translations
var l = pdgui.get_local_string;
// gui preset
pdgui.skin.apply(this);
console.log("my working dire is " + pdgui.get_pwd());
var pd_object_callback;
......
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="dialog_iemgui.css">
<link id="page_style" rel="stylesheet" type="text/css" href="css/default.css">
</head>
<body id="iemgui_dialog_body">
<div class="container">
......@@ -20,12 +20,8 @@
<input type="text" name="width">
</td>
<td>
<label data-i18n="[title]iem.prop.height_tt">
<span data-i18n="iem.prop.height"></span>
</label>
</td>
<td data-i18n="[title]iem.prop.height_tt">
<input type="text" name="height">
<td>
</td>
</tr>
<tr class="draglo prop pair hidden">
......@@ -46,43 +42,86 @@
<input type="text" name="maximum-range">
</td>
</tr>
<tr class="send-symbol prop hidden">
<tr>
<td>
<label data-i18n="[title]iem.prop.send_tt">
<span data-i18n="iem.prop.send"></span>
</label>
</td>
<td data-i18n="[title]iem.prop.send_tt">
<td colspan="3">
<input type="text" name="send-symbol">
</td>
<td>
<tr class="receive-symbol prop hidden">
</tr>
<tr>
<td>
<label data-i18n="[title]iem.prop.receive_tt">
<span data-i18n="iem.prop.receive"></span>
</label>
</td>
<td data-i18n="[title]iem.prop.receive_tt">
<input type="text" name="receive-symbol">
<td colspan="3">
<input type="text" name="receive-symbol">
</td>
<td>
</tr>
<tr class="label prop hidden">
<tr>
<td>
<label data-i18n="[title]iem.prop.label_tt">
<span data-i18n="iem.prop.label"></span>
<label data-i18n="[title]gatom.prop.label_tt">
<span data-i18n="gatom.prop.label"></span>
</label>
</td>
<td data-i18n="[title]iem.prop.label_tt">
<td colspan="3">
<input type="text" name="label">
</td>
</tr>
<tr>
<td>
<label data-i18n="[title]iem.prop.labelpos">
<span data-i18n="iem.prop.labelpos"></span>
</label>
<label data-i18n="[title]gatom.prop.labelpos_tt">
<span data-i18n="gatom.prop.labelpos"></span>
</label>
</td>
</tr>
<td colspan="3">
<label class="points"
data-i18n="[title]gatom.prop.labelpos_tt">
<input class="label-pos"
type="radio"
id="labelpos_left"
value="2"
name="labelpos"
onchange="labelpos_change(this);">
<span data-i18n="gatom.prop.label_top"></span>
<br/>
<input class="array-style"
type="radio"
id="labelpos_left"
value="0"
name="labelpos"
onchange="labelpos_change(this);">
<span data-i18n="gatom.prop.label_left"></span>
<input class="array-style"
type="radio"
id="labelpos_right"
value="1"
name="labelpos"
onchange="labelpos_change(this);">
<span data-i18n="gatom.prop.label_right"></span>
<br/>
<input class="array-style"
type="radio"
id="labelpos_bottom"
value="3"
name="labelpos"
onchange="labelpos_change(this);">
<span data-i18n="gatom.prop.label_bottom"></span>
</label>
</table>
</fieldset>
<div class="submit_buttons">
......@@ -110,6 +149,8 @@
console.log("my working dire is " + pdgui.get_pwd());
pdgui.skin.apply(this);
var pd_object_callback;
function ok() {
......
......@@ -72,7 +72,17 @@
},
"gatom": {
"prop": {
"gatom": "atom box"
"gatom": "atom box",
"label": "label",
"label_left": "left",
"label_right": "right",
"label_tt": "text label to display next to this object",
"labelpos": "label position",
"labelpos_tt": "position the label to the left or right of the object",
"label_top": "top",
"label_bottom": "bottom",
"label_left": "left",
"label_right": "right"
}
},
"menu": {
......
......@@ -1349,8 +1349,8 @@ static void gatom_properties(t_gobj *z, t_glist *owner)
gui_s("draghi"); gui_f(x->a_draghi);
gui_s("labelpos"); gui_i(x->a_wherelabel);
gui_s("label"); gui_s(gatom_escapit(x->a_label)->s_name);
gui_s("receive"); gui_s(gatom_escapit(x->a_symfrom)->s_name);
gui_s("send"); gui_s(gatom_escapit(x->a_symto)->s_name);
gui_s("receive-symbol"); gui_s(gatom_escapit(x->a_symfrom)->s_name);
gui_s("send-symbol"); gui_s(gatom_escapit(x->a_symto)->s_name);
gui_end_array();
gui_end_vmess();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment