FreeTherm 0.4 is out :
http://sourceforge.net/project/showfile ... _id=608277
Changes :
Improved signal naming
Fixed mid temp signal
Added int parsing method/function
Added button handlers for output temp
Added temperature conversions
Added comment above unused widgets
Renamed filename and array widgets
Added Scale output widgets and handlers
Changed all spaces to tabs
Added debug flag and some code
Initialised internal scales by setting radiobuttons
Shifted all leading braces to behind declaration with a space
Commented most things that needed it
Added init methods
Renamed numberverify to floatingpointverify and added integerverify
Reordered methods slightly to conform with "region" tags
Removed return calls at the end of void functions
Added Floor to match ceiling
Added ability to format element as X per line
Cleaned up after writer
I'm pretty happy with it now, if the remaining things come together in a clean happy way without causing any regressions it will be sweet. One way to ensure that is the case is to include unit tests, but given that I don't have the project setup in an IDE, that might not be so easy.
It's a lot more solid now, but could still do with more work :
TODO :
Initialise and use remaining fields and buttons
Format number output according to buttons
Generate array type according to buttons
Find out how to make it run on Windows (even if it means ditching Glade file!)
Wrap file handling code in try, catch, finally to make it safe
One more tab for program config?
Give debug option an option in there or somewhere
Beautify the GUI? (Rob?)
Make cut, copy, paste, delete work with key commands and menu
Once that stuff is done it will be 100% finished for it's original intended purpose at least.
Fred.