KeyNote is an open-source notebook. It has such features as the tree-structure, rich-text editing, tabs, and lots of other cool things. It is very flexible — you can even write your own plugins to add more functions.
I have used it for several years (since 2005, at least — I used it on my old Windows 98!) and am very happy with it.