[SPLIT] Split maindialog.cpp