Using internal Total's overwrite dialog in plugins

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Motorocker
Member
Member
Posts: 105
Joined: 2006-07-19, 10:52 UTC
Location: Perm, Russia
Contact:

Using internal Total's overwrite dialog in plugins

Post by *Motorocker »

Can I use internal overwrite dialog in my wcx plugin?

I want add overwrite dialog in Graphics Converter plugin, but I don't want add new form and duplicate Total's code.

i.e. I call in my plugin function

Code: Select all

function WantOverwrite(FileNameSrc, FileNameDest: string): boolean;
and Total make all operations (rename, compare etc.) yourself and return me, can/must I replace FileNameDest by FileNameSrc.

or Total return one of codes (1=Replace, 2=ReplaceAll, 3=Rename etc.) and new filenames to coding all or part of operations myself.

Code: Select all

function WantOverwrite(var FileNameSrc, FileNameDest: string): integer;
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You mean in the PackFiles function? No, this isn't supported, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
Motorocker
Member
Member
Posts: 105
Joined: 2006-07-19, 10:52 UTC
Location: Perm, Russia
Contact:

Post by *Motorocker »

Yes, PackFiles.
Maybe this feature will added in next versions?

It will be very usualy to create converting/copy plugins on wcx interface.
Graphics Converter – images conversion
KillOK – Cease to press OK!
NSCopy – copy unreadable
Post Reply