I am working in C language and creating applications for an embedded device. These applications mainly include capturing data and storing it into a database for performing an enrollment. This involves lot of widgets like frames, buttons, check-boxes, radio buttons, widget list boxes, text boxes, entries, combo boxes etc. All these widgets are being created using the X library.
I have tried to make the application generalized using CSV files, having a list of all the widgets that the user wants to create and then creating those widgets accordingly based on the information mentioned in the CSV file.
The CSV file that I am creating includes things like
- Widget name
- Widget type
- Widget data input type/max length / min length ..... ..... etc.
Please suggest some other ways or how can I improve the current way itself? I am also creating the DB by the information provided in the CSV itself. I can say that it's a "Data Driven User Interface" approach. I need some suggestions. Please provide me some good suggestions.
Platform: Linux, GCC compiler