enable edit actions only when operation is possible

the edit actions are disabled initially and their set enabled slots are
connected to the undo, redo and copy available signals of the edit box