Inserts a new default script before the currently selected script
| 962 | |
| 963 | // Inserts a new default script before the currently selected script |
| 964 | void CDallasMainDlg::OnInsertScriptButton() { |
| 965 | HTREEITEM new_node; |
| 966 | |
| 967 | int new_id = GetLowestUnusedScriptID(); |
| 968 | |
| 969 | new_node = CreateDefaultScriptTree(new_id, m_ScriptTree.GetSelectedItem()); |
| 970 | if (new_node != NULL) { |
| 971 | if (new_id == m_NextScriptID) |
| 972 | m_NextScriptID++; |
| 973 | m_ScriptTree.SelectItem(new_node); |
| 974 | AssignSpecificValue(); |
| 975 | } |
| 976 | } |
| 977 | |
| 978 | // Deletes the currently selected script |
| 979 | void CDallasMainDlg::OnDeleteScriptButton() { |
nothing calls this directly
no test coverage detected