I would prefer an enum. (Declared in the StelObjectMgr class)

On Dec 17, 2007 6:30 PM, Rob Spearman <rob@digitaliseducation.com> wrote:

Do you want me to use this approach?  Or turn "add" into an enum for the
action: add, replace, delete?


-------- Forwarded Message --------
From: Rob Spearman <rob@digitaliseducation.com>
To: Stellarium developers public mailing list
Subject: Unselecting selected objects
Date: Sun, 18 Nov 2007 14:45:39 -0800

I'm working on getting the scripting command to deselect constellations
individually again.

One option that seems to be the simplest is to add a "remove" parameter
to StelObjectMgr::setSelectedObject methods.  If this parameter is true,
the objects should be erased by each module from their current selection
list (rather than added) when selectedObjectChangeCallBack is called.

Does that sound OK?


 Digitalis Education Solutions, Inc.  tel 360.616.8915
 P.O. Box 2976                        fax 360.616.8917
 Bremerton, WA 98310                  http://digitaliseducation.com