summaryrefslogtreecommitdiff
path: root/ldmicro/schematic.cpp
diff options
context:
space:
mode:
authorNatsuDrag92018-06-28 09:52:30 +0530
committerNatsuDrag92018-06-28 09:52:30 +0530
commit30452e21785776a6f479d16099dcb2318a48d641 (patch)
treed3bc43b2ff7a3a8fc866656e5973753c468fd511 /ldmicro/schematic.cpp
parent8b1f25cfb7b201c873b39ca0e4521b971a085d48 (diff)
parent04c0824f90ff1ae35f117d19090db9641c29d33f (diff)
downloadLDMicroGtk-30452e21785776a6f479d16099dcb2318a48d641.tar.gz
LDMicroGtk-30452e21785776a6f479d16099dcb2318a48d641.tar.bz2
LDMicroGtk-30452e21785776a6f479d16099dcb2318a48d641.zip
Updated LutDialog and merged changes.
Diffstat (limited to 'ldmicro/schematic.cpp')
-rw-r--r--ldmicro/schematic.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/ldmicro/schematic.cpp b/ldmicro/schematic.cpp
index f47a568..728a588 100644
--- a/ldmicro/schematic.cpp
+++ b/ldmicro/schematic.cpp
@@ -401,32 +401,29 @@ void MoveCursorKeyboard(int keyCode)
void EditSelectedElement(void)
{
-
- ShowContactsDialog(&(Selected->d.contacts.negated),Selected->d.contacts.name);
-
if(!Selected || Selected->selectedState == SELECTED_NONE) return;
switch(SelectedWhich) {
case ELEM_COMMENT:
- // ShowCommentDialog(Selected->d.comment.str);
+ ShowCommentDialog(Selected->d.comment.str);
break;
case ELEM_CONTACTS:
- // ShowContactsDialog(&(Selected->d.contacts.negated),
- // Selected->d.contacts.name);
+ ShowContactsDialog(&(Selected->d.contacts.negated),
+ Selected->d.contacts.name);
break;
case ELEM_COIL:
- // ShowCoilDialog(&(Selected->d.coil.negated),
- // &(Selected->d.coil.setOnly), &(Selected->d.coil.resetOnly),
- // Selected->d.coil.name);
+ ShowCoilDialog(&(Selected->d.coil.negated),
+ &(Selected->d.coil.setOnly), &(Selected->d.coil.resetOnly),
+ Selected->d.coil.name);
break;
case ELEM_TON:
case ELEM_TOF:
case ELEM_RTO:
// ShowTimerDialog(SelectedWhich, &(Selected->d.timer.delay),
- // Selected->d.timer.name);
+ // Selected->d.timer.name);
break;
case ELEM_CTU:
@@ -451,11 +448,11 @@ void EditSelectedElement(void)
case ELEM_MUL:
case ELEM_DIV:
// ShowMathDialog(SelectedWhich, Selected->d.math.dest,
- // Selected->d.math.op1, Selected->d.math.op2);
+ // Selected->d.math.op1, Selected->d.math.op2);
break;
case ELEM_RES:
- // ShowResetDialog(Selected->d.reset.name);
+ ShowResetDialog(Selected->d.reset.name);
break;
case ELEM_MOVE: