call these functions to determine if a pointer's value has changed after call to UpdateReturnValues (internal)
| 1790 | |
| 1791 | // call these functions to determine if a pointer's value has changed after call to UpdateReturnValues (internal) |
| 1792 | bool newuiSheet::HasChanged(bool *bptr) { |
| 1793 | int i; |
| 1794 | |
| 1795 | ASSERT(m_realized); |
| 1796 | |
| 1797 | for (i = 0; i < m_ngadgets; i++) { |
| 1798 | newuiSheet::t_gadget_desc *desc = &m_gadgetlist[i]; |
| 1799 | if (desc->obj.gadget) { |
| 1800 | switch (desc->type) { |
| 1801 | case GADGET_LCHECKBOX: |
| 1802 | case GADGET_CHECKBOX: |
| 1803 | if ((&desc->parm.b) == bptr) { |
| 1804 | return desc->changed; |
| 1805 | } |
| 1806 | break; |
| 1807 | } |
| 1808 | } |
| 1809 | } |
| 1810 | |
| 1811 | return false; |
| 1812 | } |
| 1813 | |
| 1814 | bool newuiSheet::HasChanged(int *iptr) { |
| 1815 | int i; |