Designer searchdialog

Recently I focus on how to change Q3scrollview to Q4graphicsview. I find that, before doing that, we have to do some clean work.
If you look at textdoc and schematic, they are both inherited from a Qt view object and Qucsdoc. They combine view, and file models in the same files. It makes change to Q4Graphicsview very, very complicate and error-prone. First thing to do is split them into apart. A class save the file model, and another class shows the model.
In the beginning, I tried to split Textdoc into TextDoc and TextDocView, got some conflict in searchdialog, which I have to modify. So... I first modify it to designer -- another step to split layout with function.