Ezhil-Language-Foundation / Ezhil-Lang

எழில் - ஒரு தமிழ் நிரலாக்க மொழி; தமிழ் மாணவர்களுக்கு இது முதல்முறை கணிப்பொறி நிரல் ஏழுத உதவும் (Ezhil, is a fun Tamil programming language for K-12).
http://ezhillang.org/
GNU General Public License v3.0
171 stars 46 forks source link

ezhuthi settings GUI interface - அமைப்புகள் #189

Open arcturusannamalai opened 7 years ago

arcturusannamalai commented 7 years ago

Feature involves providing toolbar and menu item hooks to the settings file "ezhuthi.json". The JSON file is a simple Python style dictionary:

{"font-size": "16", "keyword-color": "blue", "text-color": "black", "font-face": "SansItalic", "timeout": 60, "home-directory": "C:\\Users\\muthu\\devel\\ezhil-lang\\editor", "accept_license": true}
  1. Add toolbar with GTK stock settings using the enumerate 'gtk-stock-settings'
  2. Add the menu item for 'settings' under the 'Edit' menu (திருத்து)

Currently the "ezhuthi.json" file load/save lifecycle is maintained by the class EzhilSettings

The code for the callback will be similar to the hooks for 'Help > Write code in Tamil' callback or 'Help > About' menu activate. See code in lines here

You may have to make a Glade window for settings on the lines of,

image