[Kalzium] Search Widget & Chemical Solver (OCaml part)

Carsten Niehaus cniehaus at gmx.de
Sun Sep 9 21:19:26 CEST 2007


Am Sonntag, 9. September 2007 20:50:36 schrieb Johannes Simon:
> Hi,
>
> I attached a patch that
>
> a) Improves the behaviour of the search widget in the main window.
> Hitting the enter key now doesn't append a white space, but will
> instantly do a search. I just found this annoying, so I fixed it.
>
> b) Will make the chemical solver assume that elements without an
> explicitly named coefficient (being a constant or variable) have the
> coefficient 1. Example: "aH + O -> H2O" will now resolve to the same as
> "aH + 1O -> 1H2O". Since it just returned an error before, this
> behaviour makes much more sense to me.
>
> Let me know if I should just commit changes like that in the future.

Are you sure this is correct? This looks like something like binary to me... 

-\002\000\003\000\001\000\003\000\002\000\002\000\001\000\002\000\
-\002\000\001\000\004\000\004\000\004\000\003\000\003\000\002\000\
-\001\000\002\000"
+\002\000\003\000\001\000\003\000\002\000\002\000\001\000\001\000\
+\002\000\002\000\001\000\004\000\004\000\004\000\003\000\003\000\
+\002\000\001\000\002\000"

Carsten


More information about the Kalzium mailing list