Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread Rod Pinna

 R. Lahaye [EMAIL PROTECTED] writes:
 
 | Rod Pinna writes:
 
  Just wondering in a reread button could be added in the next version, in
  the graphics insert box. Currently, if I update a picture externally,
  there isn't a way to update the picture without closing lyx.
 
 | What about a watch file in the graphics dialog, or even such a selection
 | button in the preferences for all graphics (same as the ghostview option).
 
 Why?
 This is how we should behave by default.

Indeed. My request was predicated that watching the files in such a way
would be more difficult than implementing a button to force a reread. I'm
somewhat reticent to create work for others that I have no hope of doing
myself :)

Rod

_
rod   | Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea.
  | They Might Be Giants, Lincoln




Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread Herbert Voss

Rod Pinna wrote:

 
 Just wondering in a reread button could be added in the next version, in
 the graphics insert box. Currently, if I update a picture externally,
 there isn't a way to update the picture without closing lyx.


this is not true, it's still part of the code!
- reread the bb
- the only problem is that you have to enable
   the clip to bounding box, then the lyx-view
   is updated, too.
- and an apply to view the changes

with the attached patch it works without enabling the
clip to ... checkbox

Herbert



-- 
http://www.lyx.org/help/


Index: src/graphics/GraphicsParams.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/graphics/GraphicsParams.C,v
retrieving revision 1.13
diff -u -r1.13 GraphicsParams.C
--- src/graphics/GraphicsParams.C   1 May 2002 11:12:02 -   1.13
+++ src/graphics/GraphicsParams.C   22 May 2002 17:00:32 -
 -33,7 +33,7 
filename = MakeAbsPath(filename, filepath);
}
 
-   if (iparams.clip) {
+// if (iparams.clip) {
bb = iparams.bb;
 
// Get the original Bounding Box from the file
 -55,16 +55,16 
bb.yt = std::max(0, bb.yt);
 
// Paranoia check.
-   int const width  = bb.xr - bb.xl;
-   int const height = bb.yt - bb.yb;
+   int const width_bb  = bb.xr - bb.xl;
+   int const height_bb = bb.yt - bb.yb;
 
-   if (width   0 || height  0) {
+   if (width_bb   0 || height_bb  0) {
bb.xl = 0;
bb.xr = 0;
bb.yb = 0;
bb.yt = 0;
}
-   }
+// }

if (iparams.rotate)
 



Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread John Levon

On Wed, May 22, 2002 at 07:04:37PM +0200, Herbert Voss wrote:

 this is not true, it's still part of the code!
 - reread the bb

This is nearly useless in terms of UI

regards
john

-- 
I never understood what's so hard about picking a unique
 first and last name - and not going beyond the 6 character limit.
- Toon Moene



Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread Rod Pinna



Herbert,

Thanks alot. I don't feel too guilty for not getting this procedure though
:)

Rod

On Wed, 22 May 2002, Herbert Voss wrote:

 Rod Pinna wrote:
 
  
  Just wondering in a reread button could be added in the next version, in
  the graphics insert box. Currently, if I update a picture externally,
  there isn't a way to update the picture without closing lyx.
 
 
 this is not true, it's still part of the code!
 - reread the bb
 - the only problem is that you have to enable
the clip to bounding box, then the lyx-view
is updated, too.
 - and an apply to view the changes
 
 with the attached patch it works without enabling the
 clip to ... checkbox
 
 Herbert
 
 
 
 -- 
 http://www.lyx.org/help/
 

_
rod   | Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea.
  | They Might Be Giants, Lincoln




Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread Rod Pinna

> "R. Lahaye" <[EMAIL PROTECTED]> writes:
> 
> | Rod Pinna writes:
> >>
> >> Just wondering in a "reread" button could be added in the next version, in
> >> the graphics insert box. Currently, if I update a picture externally,
> >> there isn't a way to update the picture without closing lyx.
> >
> | What about a "watch file" in the graphics dialog, or even such a selection
> | button in the preferences for all graphics (same as the ghostview option).
> 
> Why?
> This is how we should behave by default.

Indeed. My request was predicated that watching the files in such a way
would be more difficult than implementing a button to force a reread. I'm
somewhat reticent to create work for others that I have no hope of doing
myself :)

Rod

_
rod   | "Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea."
  | They Might Be Giants, Lincoln




Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread Herbert Voss

Rod Pinna wrote:

> 
> Just wondering in a "reread" button could be added in the next version, in
> the graphics insert box. Currently, if I update a picture externally,
> there isn't a way to update the picture without closing lyx.


this is not true, it's still part of the code!
- reread the bb
- the only problem is that you have to enable
   the "clip to bounding box", then the lyx-view
   is updated, too.
- and an apply to view the changes

with the attached patch it works without enabling the
"clip to ..." checkbox

Herbert



-- 
http://www.lyx.org/help/


Index: src/graphics/GraphicsParams.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/graphics/GraphicsParams.C,v
retrieving revision 1.13
diff -u -r1.13 GraphicsParams.C
--- src/graphics/GraphicsParams.C   1 May 2002 11:12:02 -   1.13
+++ src/graphics/GraphicsParams.C   22 May 2002 17:00:32 -
@@ -33,7 +33,7 @@
filename = MakeAbsPath(filename, filepath);
}
 
-   if (iparams.clip) {
+// if (iparams.clip) {
bb = iparams.bb;
 
// Get the original Bounding Box from the file
@@ -55,16 +55,16 @@
bb.yt = std::max(0, bb.yt);
 
// Paranoia check.
-   int const width  = bb.xr - bb.xl;
-   int const height = bb.yt - bb.yb;
+   int const width_bb  = bb.xr - bb.xl;
+   int const height_bb = bb.yt - bb.yb;
 
-   if (width  < 0 || height < 0) {
+   if (width_bb  < 0 || height_bb < 0) {
bb.xl = 0;
bb.xr = 0;
bb.yb = 0;
bb.yt = 0;
}
-   }
+// }

if (iparams.rotate)
 



Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread John Levon

On Wed, May 22, 2002 at 07:04:37PM +0200, Herbert Voss wrote:

> this is not true, it's still part of the code!
> - reread the bb

This is nearly useless in terms of UI

regards
john

-- 
"I never understood what's so hard about picking a unique
 first and last name - and not going beyond the 6 character limit."
- Toon Moene



Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-22 Thread Rod Pinna



Herbert,

Thanks alot. I don't feel too guilty for not getting this procedure though
:)

Rod

On Wed, 22 May 2002, Herbert Voss wrote:

> Rod Pinna wrote:
> 
> > 
> > Just wondering in a "reread" button could be added in the next version, in
> > the graphics insert box. Currently, if I update a picture externally,
> > there isn't a way to update the picture without closing lyx.
> 
> 
> this is not true, it's still part of the code!
> - reread the bb
> - the only problem is that you have to enable
>the "clip to bounding box", then the lyx-view
>is updated, too.
> - and an apply to view the changes
> 
> with the attached patch it works without enabling the
> "clip to ..." checkbox
> 
> Herbert
> 
> 
> 
> -- 
> http://www.lyx.org/help/
> 

_
rod   | "Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea."
  | They Might Be Giants, Lincoln




feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-21 Thread Rod Pinna


Hi all,

Just wondering in a reread button could be added in the next version, in
the graphics insert box. Currently, if I update a picture externally,
there isn't a way to update the picture without closing lyx.

Thanks,
Rod
_
rod   | Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea.
  | They Might Be Giants, Lincoln




Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-21 Thread R. Lahaye

Rod Pinna writes:

 Just wondering in a reread button could be added in the next version, in
 the graphics insert box. Currently, if I update a picture externally,
 there isn't a way to update the picture without closing lyx.

What about a watch file in the graphics dialog, or even such a selection
button in the preferences for all graphics (same as the ghostview option).

Rob.



Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-21 Thread larsbj

References: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Lars Gullik =?iso-8859-1?q?Bj=F8nnes?=)
Organization: LyX Developer http://www.lyx.org/
Date: Wed, 22 May 2002 08:09:55 +0200
In-Reply-To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Lines: 16
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

R. Lahaye [EMAIL PROTECTED] writes:

| Rod Pinna writes:

 Just wondering in a reread button could be added in the next version, in
 the graphics insert box. Currently, if I update a picture externally,
 there isn't a way to update the picture without closing lyx.

| What about a watch file in the graphics dialog, or even such a selection
| button in the preferences for all graphics (same as the ghostview option).

Why?
This is how we should behave by default.

-- 
Lgb



feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-21 Thread Rod Pinna


Hi all,

Just wondering in a "reread" button could be added in the next version, in
the graphics insert box. Currently, if I update a picture externally,
there isn't a way to update the picture without closing lyx.

Thanks,
Rod
_
rod   | "Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea."
  | They Might Be Giants, Lincoln




Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-21 Thread R. Lahaye

Rod Pinna writes:
>
> Just wondering in a "reread" button could be added in the next version, in
> the graphics insert box. Currently, if I update a picture externally,
> there isn't a way to update the picture without closing lyx.

What about a "watch file" in the graphics dialog, or even such a selection
button in the preferences for all graphics (same as the ghostview option).

Rob.



Re: feature request for 1.2.1 or 1.3.0 or 1.3.1 or ...

2002-05-21 Thread larsbj

References: <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED] (Lars Gullik =?iso-8859-1?q?Bj=F8nnes?=)
Organization: LyX Developer http://www.lyx.org/
Date: Wed, 22 May 2002 08:09:55 +0200
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Lines: 16
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

"R. Lahaye" <[EMAIL PROTECTED]> writes:

| Rod Pinna writes:
>>
>> Just wondering in a "reread" button could be added in the next version, in
>> the graphics insert box. Currently, if I update a picture externally,
>> there isn't a way to update the picture without closing lyx.
>
| What about a "watch file" in the graphics dialog, or even such a selection
| button in the preferences for all graphics (same as the ghostview option).

Why?
This is how we should behave by default.

-- 
Lgb