Re: handling properties of multiple objects



On 12/4/08, Lars Ræder Clausen <lars raeder dk> wrote:

On Thu, 2008-12-04 at 08:09 +0530, Sameer Sahasrabuddhe wrote:

Now we need a way to have as few DiaObjects in the private copy as
possible. This means that the private copies should be made when the
Property instances are created. But the Property instances are created
by a internal functions that never sees the relevant DiaObjects. But
the DiaObjects are available when the PropDescriptions are listed
together.

A perhaps stupid question, since I haven't looked at the code for a
while: Would it not be a lot cleaner to have no private copies, but just
pointers to the real objects?  I can see all manner of problems with
having extra copies of things floating around.

Makes sense. There is one issue that will have to be resolved ... how
do we update the property dialog widgets for side-effects? One way is
to use the actual DiaObject itself. Properties get applied instantly,
if we are careful with undo. An earlier discussion in a bug about the
behaviour of the Properties Dialog is very relevant to this topic:

http://bugzilla.gnome.org/show_bug.cgi?id=488270
properties dialog should have a button to undo all changes made while
interacting with the dialog

Sameer.
-- 
http://www.it.iitb.ac.in/~sameerds/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]