Re: Automaticall open new diagram
- From: "James K. Lowden" <jklowden schemamania org>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Automaticall open new diagram
- Date: Fri, 26 Nov 2004 00:58:38 -0500
On Thu, 25 Nov 2004 18:44:06 +0100 (CET), larsrc raeder dk wrote:
Octavio Alvarez Piza sagde:
Hi. Why not a "dirty" flag? There might be one already there; I don't
remember if Dia asks me to save the file before closing if it was
changed since opened.
It's there, in fact it's a bit more complex than just a flag by now: We
can actually notice that changes have been undone and mark it
non-modified. The check is diagram_modified(Diagram), AFAIR. The
'virtual' flag is to indicate that this is a starting diagram that can
be loaded into. Wouldn't want a user to explicitly make a new diagram
and then open another, only to find that the opened diagram 'ate' the
new diagram.
Another way to look at that, fwiw, is
Virtual == !dirty && empty
That would mean that a diagram that had its contents deleted and saved
(hope that's clear) would recover its original virtualness.
--jkl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]