Writing plugins

Frequently Asked Questions regarding XnView (including Answers)

Moderators: XnTriq, xnview

mschnell
Posts: 6
Joined: Sat Apr 13, 2013 11:38 am
Location: Germany

Writing plugins

Postby mschnell » Sun Apr 14, 2013 7:39 am

Is it possible to enhance the features of XnView doing my own programming ?

I am a programmer myself and I think I am able to quickly learn to work with any decent programming language and with any decent interface to a host system.

So I would be very happy to be allowed to add some special features to XnView, in case I decide to use it. In fact I would be happy to publish any results of that work as open source for XnView officials and all users freely using it.

Does XnView allow for a kind of Plugins ? Is there a powerful and decently documented interface ? I see there a User group on that behalf, but did not dive into same yet. I did find a manual that seems to include information about plugins, but I cant read French.

Can XnView be handles in a kind of open source way (integrating "plugins" by recompiling) ?

I also found the thread "Lets talk about plugins" here in FAQ, but it does not seem to handle how to write plugins and what they can be made to do.


Later Edit:
I did find the PluginSDK zip file and took a short look into it.
Seemingly you can write plugins using C and Delphi. This would be very good news for me, as - while I in fact mostly do C for embedded programming - for working on a PC I prefer Delphi Language.
OTOH, Delphi only can be used on Windows, and a main benefit of XnView for me is that it can be used on Linux.
So my question is if the "Delphi" SDK can be used with Lazarus/fpc (a Delphi work-alike that runs on many systems including Window, Linux, and Mac).
BTW.: is XnView done in Delphi (and XnViewMP in Lazarus/fpc ?) I would consider this a great Plus.



What do you suggest ?

Thanks-
-Michael

User avatar
xnview
Author of XnView
Posts: 27082
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Writing plugins

Postby xnview » Mon Apr 15, 2013 12:24 pm

mschnell wrote:OTOH, Delphi only can be used on Windows, and a main benefit of XnView for me is that it can be used on Linux.
So my question is if the "Delphi" SDK can be used with Lazarus/fpc (a Delphi work-alike that runs on many systems including Window, Linux, and Mac).

Sorry but i don't know
Pierre.

mschnell
Posts: 6
Joined: Sat Apr 13, 2013 11:38 am
Location: Germany

Re: Writing plugins

Postby mschnell » Mon Apr 15, 2013 8:10 pm

In fact at the first glance it looks as if the plugin interface is just a dll interface using functions with stcall calling covention.

So it can be used by most programming languages including C, Delphi and Lazarus/FPC.

The function heades provided in the Delphi sources can easily be used with Lazarus/FPV. So no problem here.

OTOH it seems that the Plugin SDK is dedicated to Windows (dll) and I did not find any documentation regarding doing plugins for Linux (.so-files)

-Michael
(sorry but I can't read any documentation in French language)

User avatar
xnview
Author of XnView
Posts: 27082
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Writing plugins

Postby xnview » Tue Apr 16, 2013 2:50 am

Linux? Currently Plugins are only for XnView classic not XnViewMP
Pierre.

mschnell
Posts: 6
Joined: Sat Apr 13, 2013 11:38 am
Location: Germany

Re: Writing plugins

Postby mschnell » Tue Apr 16, 2013 7:35 pm

That is bad news indeed.

But I suppose the plugin interface will be available when coming nearer to v1.0

-Michael

User avatar
xnview
Author of XnView
Posts: 27082
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Writing plugins

Postby xnview » Thu Apr 18, 2013 9:16 am

Yes, i'll add better plugins support in XnViewMP
Pierre.


Return to “XnView - FAQ”

Who is online

Users browsing this forum: No registered users and 1 guest