Le 26/12/2012 12:03, Mayank Jha a écrit :
Hi there,
Hi,
I am trying to add an additional feature which allows one to submit spoj submissions from geany with the click of a button. What I have done is that I created an additional page called Spoj in the preferences dialog, which contains the details, such as Userame,Password,Language etc. Everything is working fine, the problem lies that with every new session these details are erased and one has to enter those again(frustating!!) Can you tell me where all do we have to save these settings. Like ive gone through the tools_prefs structure defined in prefs.h and tried to make a copy of it to use for my spoj page , but unfortunately its not working... Can you help me out as to what am I missing??? Also how can I commit this feature into the geany IDE??? Thanx alot...
First, you should write a plugin rather than trying to add this to Geany itself; such a feature is probably not used by enough people to get accepted in Geany's core -- such things should go in plugins, so users who wants it can enable it and user who don't just leave it alone. Also, there is a side-project called "Geany Plugins", run by plugin authors and coordinated by Geany dev team, that can help you with the distribution and infrastructure. We accept any plugin in it (unless it's bad quality, in which case we try helping to improve it), no matter what it provides -- e.g. nobody will try to tell you "your plugin dosn't look useful to me, go look somewhere else".
So I think it's a first important point, that might have incidence on your first question. To answer the question more adequately though, you need to register the prefs so they get written and read from the configuration files, generally using `stash_group_add_*()`.
Hope this helps.
GreetingsOFChristmas and New Year!!!!
Thanks, and happy holidays to you!
Regards, Colomban
PS: I'm CC-ing the mailing list so we can all answer you.