[glideplan_swproj] Re: Settings

  • From: Cestmir Houska <czestmyr@xxxxxxxxx>
  • To: glideplan_swproj@xxxxxxxxxxxxx
  • Date: Fri, 2 Dec 2011 11:38:12 +0100

Agreed, Tom.

That's the basic idea. But how to implement it? ;-)

Cestmir

2011/12/2 Tomáš Zámečník <pulcik@xxxxxxxx>

> My suggestion is to have one dialog for all settings and also one file on
> disk.
> Every setting should be triple: (type, name, value)
> To avoid name conflicts, every plugin should have its own namespace.
> Settins file might look like this:
>
> [Task Declaration]
> int defaultTurnPointShape = 1
> real defaultR1 = 0.5
> real defaultR2 = 0.5
> ...
>
> [Igc Viewing]
> int coloring = 2
> ...
>
> Tom
>
> > ------------ Původní zpráva ------------
> > Od: Kuba Marek <blue.cube@xxxxxxxxx>
> > Předmět: [glideplan_swproj] Settings
> > Datum: 02.12.2011 02:42:39
> > ----------------------------------------
> > Hi,
> > there's one thing we completely skipped in plugin API -- plugin
> > settings. We were talking and thinking about this for the whole day on
> > jabber and I've put something together.
> >
> >
> https://github.com/updraft/updraft/commit/9621592837afd9f59e4348e62fc917578d5942d1
> >
> > What I was trying to achieve is to have both internal and usersettings.
> > User settings should have GUI for different data types (int, string,
> filename,
> > list, color picker and number with units (maybe not all of those)).
> >
> > Comments, please
> >
> > K
> >
> >
> >
>
> To visit archive or unsubscribe, follow:
> http://www.freelists.org/list/glideplan_swproj
>

Other related posts: