Integrated Sumatra PDF based Lister plug-in (wlx)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, sheep, Hacker, Stefan2

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp » 2010-08-22, 09:05 UTC

if you want to implement Print cmd, you may call original code (respect to Def-printer field may be omitted).

j
Member
Member
Posts: 123
Joined: 2009-04-13, 19:49 UTC

Post by *j » 2010-08-22, 13:37 UTC

Alextp wrote:if you want to implement Print cmd, you may call original code (respect to Def-printer field may be omitted).
I know. Didn't have the time to do so yet (as I never print anyway...).
Feel free to provide a patch :-)

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp » 2010-08-22, 15:38 UTC

Btw. Is there code in Sumatra, that uses "whole words" and "back" search opts?

User avatar
Xnor
Junior Member
Junior Member
Posts: 80
Joined: 2009-04-17, 10:55 UTC

Post by *Xnor » 2010-08-22, 19:07 UTC

With changing the view between "fit page" and "fit to width", it also changes the view of pics in the listerplugin Imagine. Is there a way to avoid it?

The reason is, that your plugin also changes the entry "ShrinkBitmap" unter "[Lister]" in the wincmd.ini, while changing the views. This option also the Imagine plugin uses to save the view.
#201591 Single user licence

j
Member
Member
Posts: 123
Joined: 2009-04-13, 19:49 UTC

Post by *j » 2010-08-22, 20:56 UTC

Xnor wrote:With changing the view between "fit page" and "fit to width", it also changes the view of pics in the listerplugin Imagine. Is there a way to avoid it?

The reason is, that your plugin also changes the entry "ShrinkBitmap" unter "[Lister]" in the wincmd.ini, while changing the views. This option also the Imagine plugin uses to save the view.
This is by design. It's not Imagine that saves the view but Total Commander/Lister itself. See the Options -> Fit image to window. This way when you want to fit the files you view to the window it is consistent throughout Lister.

j
Member
Member
Posts: 123
Joined: 2009-04-13, 19:49 UTC

Post by *j » 2010-08-22, 21:00 UTC

Alextp wrote:Btw. Is there code in Sumatra, that uses "whole words" and "back" search opts?
I don't think "whole word" is supported. And I don't know what you mean with "back". If it's "search backwards" it is already supported.

User avatar
Xnor
Junior Member
Junior Member
Posts: 80
Joined: 2009-04-17, 10:55 UTC

Post by *Xnor » 2010-08-22, 21:03 UTC

j wrote:
Xnor wrote:With changing the view between "fit page" and "fit to width", it also changes the view of pics in the listerplugin Imagine. Is there a way to avoid it?

The reason is, that your plugin also changes the entry "ShrinkBitmap" unter "[Lister]" in the wincmd.ini, while changing the views. This option also the Imagine plugin uses to save the view.
This is by design. It's not Imagine that saves the view but Total Commander/Lister itself. See the Options -> Fit image to window. This way when you want to fit the files you view to the window it is consistent throughout Lister.
damn, so I can't set to fit image to window for the Imagine plugin and to fit to width for this plugin :cry:
Isn't it possible to store that option in the lsplugin.ini, so the lister doesn't overwrite the "ShrinkBitmap" option while changing the view in this plugin?
#201591 Single user licence

j
Member
Member
Posts: 123
Joined: 2009-04-13, 19:49 UTC

Post by *j » 2010-08-22, 21:09 UTC

Xnor wrote:damn, so I can't set to fit image to window for the Imagine plugin and to fit to width for this plugin :cry:
Isn't it possible to store that option in the lsplugin.ini, so the lister doesn't overwrite the "ShrinkBitmap" option while changing the view in this plugin?
Well Imagine as well as any other viewer that fully supports the wlx plug-in API...

It would be possible to not notify Lister that "Fit to window" was selected from the menu. Maybe I'll make a hidden option to disable it.

User avatar
Xnor
Junior Member
Junior Member
Posts: 80
Joined: 2009-04-17, 10:55 UTC

Post by *Xnor » 2010-08-22, 21:26 UTC

j wrote:
Xnor wrote:damn, so I can't set to fit image to window for the Imagine plugin and to fit to width for this plugin :cry:
Isn't it possible to store that option in the lsplugin.ini, so the lister doesn't overwrite the "ShrinkBitmap" option while changing the view in this plugin?
Well Imagine as well as any other viewer that fully supports the wlx plug-in API...

It would be possible to not notify Lister that "Fit to window" was selected from the menu. Maybe I'll make a hidden option to disable it.
I would be deeply grateful if you could add it as an option.
Something like that should be stored separate anyway. There are so many various plugins and for one I need this view and for another one another view. I guess the plugin API says to do it that way but I think it's a bit outdated in this point. The Multimedia mode in the Lister is not anymore for viewing images only. But I don't think there will be any changes in the lister.
#201591 Single user licence

j
Member
Member
Posts: 123
Joined: 2009-04-13, 19:49 UTC

Post by *j » 2010-08-22, 21:46 UTC

Xnor wrote:I would be deeply grateful if you could add it as an option.
An option it is. Add a [face=courier]sendcommand=0[/face] to the [face=courier][SumatraPDF][/face]-secion of lsplugin.ini

Version 0.8 should also fix the problem with the TOC on some documents.

User avatar
Xnor
Junior Member
Junior Member
Posts: 80
Joined: 2009-04-17, 10:55 UTC

Post by *Xnor » 2010-08-22, 21:52 UTC

j wrote:
Xnor wrote:I would be deeply grateful if you could add it as an option.
An option it is. Add a [face=courier]sendcommand=0[/face] to the [face=courier][SumatraPDF][/face]-secion of lsplugin.ini

Version 0.8 should also fix the problem with the TOC on some documents.
that was fast ! :up
the option works but then it also doesn't save the changed view anymore ;)
#201591 Single user licence

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp » 2010-08-22, 22:51 UTC

yes, "backwards". It is supported, I overlooked it, thx.

j
Member
Member
Posts: 123
Joined: 2009-04-13, 19:49 UTC

Post by *j » 2010-08-22, 22:51 UTC

Xnor wrote:the option works but then it also doesn't save the changed view anymore ;)
But only when "Fit to window" is active ;-)

(Fixed with 0.8.1)

User avatar
fenix_productions
Power Member
Power Member
Posts: 1950
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions » 2010-08-22, 22:51 UTC

2j
0.8.1 - Bookmarks navigation works fine now. Thank you.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099

damjang
Senior Member
Senior Member
Posts: 205
Joined: 2003-10-09, 15:58 UTC
Contact:

Post by *damjang » 2010-08-23, 07:49 UTC

If I open SUmatraPdf.wlx with FileInfo lister I see:

Code: Select all

File Version Information : 

Version language : Inglese (Stati Uniti)
      Comments	: SumatraPDF.wlx viewer
      CompanyName	: j
      FileDescription	: SumatraPDF
      FileVersion	: 0.8.1
      OriginalFilename	: SumatraPDF.wlx
      ProductName	: SumatraPDF.wlx
      ProductVersion	: 0.8.1

Creation Date	: 23/08/2010  09:43:50 
Last Modif. Date	: 23/08/2010  00:43:24 
Last Access Date	: 23/08/2010  09:43:51 
FileSize	: 1688576 bytes ( 1649.000 KB,  1.610 MB ) 
FileVersionInfoSize	: 1236 bytes  
File type	: Application (0x1) 
Target OS	: Win32 API (Windows NT) (0x40004) 
File/Product version	: 1.2.0.0 / 1.2.0.0
Language 	: Inglese (Stati Uniti) (0x409) 
Character Set	: 1252 (ANSI - Latin 1 (US, Western Europe)) (0x4E4) 

Build Information : 
Debug Version	: no 
Patched Version	: no 
Prerelease Version	: no 
Private Version	: no 
Special Build	: no
Can be possible to change the File/Product version: 1.2.0.0 / 1.2.0.0 to the right numbers. I ask this because e.g. TP Plugin Manager show the wrong version (1.2.0.0)

Post Reply