diff options
author | NatsuDrag9 | 2018-06-28 09:52:30 +0530 |
---|---|---|
committer | NatsuDrag9 | 2018-06-28 09:52:30 +0530 |
commit | 30452e21785776a6f479d16099dcb2318a48d641 (patch) | |
tree | d3bc43b2ff7a3a8fc866656e5973753c468fd511 /ldmicro/schematic.cpp | |
parent | 8b1f25cfb7b201c873b39ca0e4521b971a085d48 (diff) | |
parent | 04c0824f90ff1ae35f117d19090db9641c29d33f (diff) | |
download | LDMicroGtk-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.cpp | 21 |
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: |