Open
Conversation
janrysavy
reviewed
Jan 2, 2024
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| // CommentsTranslationProject: TRANSLATED | ||
| // |
|
|
||
| #ifdef _MSC_VER | ||
| #pragma pack(push, enter_include_spl_arc) // aby byly struktury nezavisle na nastavenem zarovnavani | ||
| #pragma pack(push, enter_include_spl_arc) // so that the structures are independent of the alignment |
Contributor
There was a problem hiding this comment.
// to make structures independent of the set alignment
| // pouzit Cancel, mohl byt pouzit Skip) - zdroj operace v panelu je odznacen, jinak vraci | ||
| // FALSE (neprovede se odznaceni); 'salamander' je sada uzitecnych metod vyvezenych ze | ||
| // Salamandera | ||
| // function for "panel archiver view"; called during a request to unpack file/directory |
Contributor
There was a problem hiding this comment.
file/directory -> files/directories
| // vyvezenych ze Salamandera | ||
| // function for "panel archiver view"; called during a request for unpacking one file | ||
| // for view/edit from archive 'fileName' to directory 'targetDir'; filename in archive | ||
| // is 'nameInArchive'; 'pluginData' is interface for working with information about files |
| // pouzit Skip) - zdroj operace v panelu je odznacen, jinak vraci FALSE (neprovede se odznaceni), | ||
| // 'salamander' je sada uzitecnych metod vyvezenych ze Salamandera | ||
| // function for "panel archiver view" and "custom archiver pack"; called during a request | ||
| // for packing file/directory archive 'fileName' to path 'archiveRoot'; files/directories |
Contributor
There was a problem hiding this comment.
file/directory archive -> files/directories to archive
| // vraci TRUE pokud je zavreni mozne, je-li 'force' TRUE, vraci TRUE vzdy; pokud probiha | ||
| // critical shutdown (vice viz CSalamanderGeneralAbstract::IsCriticalShutdown), nema | ||
| // smysl se usera na cokoliv ptat | ||
| // function for "panel archiver view/edit", called before closing panel with archive; |
| // CAUTION: if opening new path fails, archive can remain in panel (independent on | ||
| // return value of CanCloseArchive); therefore this method cannot be used | ||
| // for destruction of context; it is intended e.g. for optimization of | ||
| // Delete operation from archive, when it can offer "shredding" of archive |
Contributor
There was a problem hiding this comment.
, it can offer "shredding" of archive when it is leaved
| // cache nebo pri zavreni archivu | ||
| // finds out required disk-cache settings (disk-cache is used for temporary copies | ||
| // of files opened from archive in viewers, editors and via system associations); | ||
| // normally (if it is possible to allocate 'tempPath' buffer) it is called only once |
Contributor
There was a problem hiding this comment.
(if it is possible to allocate 'tempPath' buffer) -> (if a copy of 'tempPath' can be allocated after calling)
| // (pokud zpravu distribuuje message-loopa uvnitr pluginu), dalsi vstup do DeleteTmpCopy | ||
| // je vylouceny, protoze do ukonceni volani DeleteTmpCopy disk-cache zadne dalsi zpravy | ||
| // neposila | ||
| // CAUTION: it is called in main thread on the basis of message from disk-cache main window |
Contributor
There was a problem hiding this comment.
main window -> to main window
| // - message about need to delete temporary copy (typically when viewer is closed | ||
| // or when archive is "edited" in panel), therefore it can lead to repeated entry to plugin | ||
| // (if message is distributed by message-loop inside plugin), another entry to DeleteTmpCopy | ||
| // is excluded until end of call of DeleteTmpCopy, disk-cache does not send any other |
Contributor
There was a problem hiding this comment.
because until the completion of the DeleteTmpCopy call, the disk-cache does not send any further messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.