1. support generic type password input dialog;

2. move the enumeration definition to ui_global.h.