It is currently Mon Sep 06, 2010 9:00 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: IrfanView
PostPosted: Sun Nov 04, 2007 2:41 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
I'm made plugin for my most favourite pictures viewer - IrfanView.
I think, that would be useful also for somewhere another.
I'm made two variant:
FULL - contains whole list (99) of Hotkeys.
LIGHT - selection only some one (23) Hotkeys.
I would have grateful behind corrections mine bad English in plugin.


I have another intention - make simple plugin for OpenOffice - Impress
(Hotkeys only for presentation preview). It is good idea ?

Pako


Attachments:
IrfanViewPlugin.zip [7.77 KiB]
Downloaded 230 times
Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Sun Nov 04, 2007 5:37 pm 
Site Admin
User avatar

Joined: Mon Feb 06, 2006 11:28 pm
Posts: 2236
Very nice. I would suggest to only build a "full version" and putting the less often used actions into a sub-group.

I nice addition would be if the "Run" action could pass command line parameters. For example a start in fullscreen mode, setting the position to a specific monitor and starting the slideshow from a specific folder might be desirable.

I never used OpenOffice Impress, but I think its a good idea.

_________________
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!


Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Sun Nov 04, 2007 10:12 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Bitmonster wrote:
I would suggest to only build a "full version" and putting the less often used actions into a sub-group.
OK.

Bitmonster wrote:
I nice addition would be if the "Run" action could pass command line parameters. For example a start in fullscreen mode, setting the position to a specific monitor and starting the slideshow from a specific folder might be desirable.
Well, I attempt to make. Will it for me good exercise.

Pako


Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Thu Nov 15, 2007 3:40 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Here is second generation IrfanView plugin's.
Bitmonster wrote:
I would suggest to only build a "full version" and putting the less often used actions into a sub-group.
Now is only one version and only one python file.
Bitmonster wrote:
I nice addition would be if the "Run" action could pass command line parameters. For example a start in fullscreen mode, and starting the slideshow from a specific folder might be desirable.
I hope, that it is good work.
Bitmonster wrote:
...setting the position to a specific monitor...
I'm learn, that choice of monitor is possible only for "exe" forms slideshow :( .

Pako


Attachments:
__init__.py [52.34 KiB]
Downloaded 51 times
Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Thu Nov 15, 2007 6:05 pm 
Site Admin
User avatar

Joined: Mon Feb 06, 2006 11:28 pm
Posts: 2236
Wow! The option dialogs look really cool.

Two questions:
1. I haven't understood the need of the "label" option. Does it only modify the appearance of the action in the tree? If so, isn't it enough the user can rename it directly in the tree?

2. If I have so many options in a particular action/plugin, I prefer to use a dictionary to store them, because it is easier to introduce new options or to drop unneeded options and I don't lose compatibility with older settings if I change something. It is also more readable, since it is hard to remember what option the "[12]" means. So I write it like:

Code:
class DictionaryTest(eg.ActionClass):
   
    defaults = {
        "aValue": True,
        "bValue": "The value of b",
        "cValue": "The value of c",
    }
   
    def __call__(self, kwargs):
        options = self.defaults.copy()
        options.update(kwargs)
        print options
       
       
    def Configure(self, kwargs={}):
        options = self.defaults.copy()
        options.update(kwargs)
       
        dialog = eg.ConfigurationDialog(self)
        aValueCtrl = wx.CheckBox(dialog, -1, "aValue")
        aValueCtrl.SetValue(options["aValue"])
        bValueCtrl = wx.TextCtrl(dialog)
        bValueCtrl.SetValue(options["bValue"])
        cValueCtrl = wx.TextCtrl(dialog)
        cValueCtrl.SetValue(options["cValue"])
       
        dialog.sizer.Add(aValueCtrl)
        dialog.sizer.Add(bValueCtrl)
        dialog.sizer.Add(cValueCtrl)
       
        if dialog.AffirmedShowModal():
            kwargs = {}
            kwargs["aValue"] = aValueCtrl.GetValue()
            kwargs["bValue"] = bValueCtrl.GetValue()
            kwargs["cValue"] = cValueCtrl.GetValue()
            return (kwargs, )

_________________
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!


Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Fri Nov 16, 2007 3:55 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Bitmonster wrote:
Wow! The option dialogs look really cool.
:D
Bitmonster wrote:
1. I haven't understood the need of the "label" option. Does it only modify the appearance of the action in the tree? If so, isn't it enough the user can rename it directly in the tree?
With my English is heavy it formulate. Simply yourself I think, that it is useful.
Bitmonster wrote:
2. If I have so many options in a particular action/plugin, I prefer to use a dictionary to store them, because it is easier to introduce new options or to drop unneeded options and I don't lose compatibility with older settings if I change something. It is also more readable, since it is hard to remember what option the "[12]" means. So I write it like: ...
I thanks for nice education :) .
I'm made appropriate changes -> release 0.2.2

Pako


Attachments:
File comment: Release 0.2.2
__init__.py [54.28 KiB]
Downloaded 36 times
Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Fri Nov 16, 2007 4:09 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Delete please line 821: print kwargs, if load file before 16:08.
Pako


Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Fri Nov 16, 2007 6:50 pm 
Site Admin
User avatar

Joined: Mon Feb 06, 2006 11:28 pm
Posts: 2236
The plugin is included in 0.3.6.1172

I have created a new module to get access to more system folders. Particularly you might be interested in the "My Pictures" path, to give it as a default for some actions. You can get this path through:
Code:
print eg.folderPath.Pictures

To see all available folders, you can do in a script:
Code:
for name in eg.folderPath.__ALL__:
    print name + ": " + getattr(eg.folderPath, name)

I will possibly remove the old names APPDATA, STARTUP, PROGRAMFILES and so on in the future.

_________________
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!


Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Fri Nov 16, 2007 8:31 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
Instead old names they are new names and is fixed bug on line 932 -> release 0.2.3

Pako


Attachments:
File comment: Release 0.2.3
__init__.py [54.46 KiB]
Downloaded 35 times
Top
 Profile  
 
 Post subject: Re: IrfanView
PostPosted: Fri Nov 23, 2007 9:45 pm 
Plugin Developer
User avatar

Joined: Sat Nov 11, 2006 2:31 pm
Posts: 612
Location: Czech Republic
New release 0.2.4:
Removing bugs, complement event.Skip() code.

Pako


Attachments:
File comment: Release 0.2.4
__init__.py [54.86 KiB]
Downloaded 91 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group