Author Topic: The new Zoom plugin is nice...  (Read 1857 times)

gtech

  • Full Member
  • ***
  • Posts: 70
The new Zoom plugin is nice...
« on: July 05, 2010, 04:17:01 am »
I always test the nighty versions before I upload them to my website and I was in for a surprise with this one.

Nice addon. Works very well.

Gilles

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: The new Zoom plugin is nice...
« Reply #1 on: July 06, 2010, 04:19:32 pm »
Thanks :) It's not even fully done, yet (still need to work the snapping into the slider).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

gtech

  • Full Member
  • ***
  • Posts: 70
Re: The new Zoom plugin is nice...
« Reply #2 on: July 07, 2010, 04:51:16 am »
Humm... the new nighty471 is nice too... but I find it a bit too much stuff in front of the book.

It's both distracting, and makes it harder to read the left pages.

Gilles

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: The new Zoom plugin is nice...
« Reply #3 on: July 08, 2010, 12:32:06 pm »
The current nightly isn't the latest state, I did some stuff right after midnight that aren't in there, yet, one of which was to make the whole thing a little less bulky.
As for the thumbnail, you can either reduce it's size, or remove it completely via the zoom.asul file (the related part is the scrollpanecontrol).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

gtech

  • Full Member
  • ***
  • Posts: 70
Re: The new Zoom plugin is nice...
« Reply #4 on: July 09, 2010, 02:24:18 am »
Ok, nighty479...

I took a snap of the upper left corner of the 472 and 479 versions.

I tried to turn the thumbnail off but it didn't work. So I think I still have some reading to do...

But I noticed you set the whole zoom thing smaller. Looks less invasive this way.

Gilles
« Last Edit: July 09, 2010, 04:13:18 am by gtech »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: The new Zoom plugin is nice...
« Reply #5 on: July 09, 2010, 11:50:39 pm »
It's quite simple, really. In the zoom.asul file, just remove the lines
Code: (xml)
  1. <scrollpanecontrol name="control" width="125?pagew" height="pageh*(125?pagew)/(pagew*2)" hideifnodrag="true">
  2.    <box name="$dragrect$" style="dragrect"><box/></box>
  3. </scrollpanecontrol>
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

gtech

  • Full Member
  • ***
  • Posts: 70
Re: The new Zoom plugin is nice...
« Reply #6 on: July 10, 2010, 03:09:47 am »
I tried that, but it also removes the (-)---------(+) window, not just the thumbs window below it.

I would like to keep the controls just like the pages are not zoomed, and not have the miniature copy of the pages.

Well, it's not a problem anymore because I can do it by setting the height to "0" the result is pictured below.

Gilles
« Last Edit: July 10, 2010, 03:21:34 am by gtech »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: The new Zoom plugin is nice...
« Reply #7 on: July 10, 2010, 11:08:21 am »
Ah, right, forgot about the resize, sorry. You'll have to remove the resize="true" from the outermost box, and give it a size (e.g. width="125?pagew" height="24"). You should also remove the wrapping vflow, I think. So basically it'll become:
Code: (xml)
  1. <box id="zoomframe" style="container" x="25" y="25" mouseenabled="true" alpha_out="0.3" width="125?pagew" height="24">
  2.    <!-- Zoom out -->
  3.    <button name="btn_zoom_out" title="localize(LNG_ZOOM_OUT, Zoom out)" style="common zoom_out"/>
  4.    <scrollbar name="zoom_slider" anchors="25,5,pw-25,19" background="gradient(linear-horizontal,0x666666,0x4d4d4d)">
  5.        <button name="$scroll_handle$" width="15" height="15" style="scroll_handle" title="localize(LNG_ZOOM_SLIDE, Slide to control zoom level)"/>
  6.    </scrollbar>
  7.    <!-- Zoom in -->
  8.    <button name="btn_zoom_in" title="localize(LNG_ZOOM_IN, Zoom in)" style="common zoom_in" anchors="pw-w"/>
  9. </box>
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

gtech

  • Full Member
  • ***
  • Posts: 70
Re: The new Zoom plugin is nice...
« Reply #8 on: July 10, 2010, 01:27:19 pm »
Ok, it worked...

Thanks,

Gilles