diff --git a/NEWS b/NEWS index 00e6f86053..6c495a34a7 100644 --- a/NEWS +++ b/NEWS @@ -1,690 +1,692 @@ digiKam 6.0.0 - Release date: 2019-02-10 ***************************************************************************************************** NEW FEATURES: ImageEditor : Add Web services Import and Export tools. Showfoto : Add Web services Import and Export tools. LightTable : Add Web services Import and Export tools. Database : Similarity database has been moved to a dedicated file to not bloat core database with computed finger-prints. This will speed-up query in core database in case of Similarity feature is used. Database : New video metadata parser based on ffmpeg to populate database. Search : Add video support to find files based on properties registered on database. General : Add new Exiv2 0.27 support. General : Add new Lensfun 0.4 support. General : Use DrMinGW has crash handler under Windows. General : Port all export/import tool to OAuth2 authentification. General : New tool to adjust quickly time and date information from items. Tool will be available in AlbumView, ImageEditor, LightTable, and Showfoto. General : New function to group images by timelapse / burst General : New tool to export to Pinterest social network. General : New tool to export to OneDrive webservice. General : New tool to export to Box webservice. General : New tool to export to Ipfs webservice. General : All bundles use last Lenfun 0.3.95 to process automatic lens correction. General : Add QWebEngine support. General : Fix all Krazy static analyzer reports. General : Update internal Libraw to last 0.19.2. New camera supported: * Apple: Phone 8, iPhone 8 plus, iPhone X * BlackMagic: URSA Mini 4k, URSA Mini 4.6k, URSA Mini Pro 4.6k * Canon: PowerShot A410, A540, D10, ELPH 130 IS, ELPH 160 IS, SD750, SX100 IS,SX130 IS, SX160 IS, SX510 HS, SX10 IS, IXUS 900Ti PowerShot G1 X Mark III, G9 X Mark II, EOS 6D Mark II, EOS 77D, EOS 200D, EOS 800D, EOS M6, EOS M100 * Casio: EX-ZR4100/5100 * DJI: Phantom4 Pro/Pro+, Zenmuse X5, Zenmuse X5R * FujiFilm: S6500fd, GFX 50S, X100f, X-A3, X-A5, X-A10, X-A20, X-E3, X-H1, X-T20 * Hasselblad: H6D-100c, A6D-100c * Huawei: P9 (EVA-L09/AL00), Honor6a, Honor9, Mate10 (BLA-L29) * Leica: CL, M10, TL2 * LG: V20 (F800K), VS995 * Nikon: D850, D5600, D7500, Coolpix B700 * Olympus: E-PL9, E-M10 Mark III, TG-5 * OnePlus: A3303, A5000 * Panasonic: DMC-FZ45, DMC-FZ72, DC-FZ80/82, DC-G9 (std. res mode only), DC-GF10/GF90, DC-GH5, DC-GX9, DC-GX800/850/GF9, DMC-LX1, DC-ZS70 (DC-TZ90/91/92, DC-T93), DC-TZ100/101/ZS100, DC-TZ200/ZS200 * PARROT: Bebop 2, Bebop Drone * Pentax: KP * PhaseOne: IQ3 100MP Trichromatic * Samsung: Galaxy Nexus, Galaxy S3, S6 (SM-G920F), S7, S7 Edge, S8 (SM-G950U) * Sony: A7R III, A9, DSC-RX0, DSC-RX10IV * Yi: M1 * YUNEEC: CGO3, CGO3P * Xiaoyi: YIAC3 (YI 4k) Collection : Add tool button to update an existing collection to the new drive or path. Tags : Add possibility to merge tags by drag & drop. IconView : Add capability to re-organize the contents manually. IconView : Add capability to separate the contents by month. HTML Gallery : New Vanilla theme to emulate export to HTML from Adobe LightRoom. HTML Gallery : New Blue Frame theme. HTML Gallery : New Kiosk-Mode theme. ***************************************************************************************************** BUGFIXES: 001 ==> 172650 - No export tools available. 002 ==> 149591 - The export menu is blank. 003 ==> 300424 - Export tools not detected. 004 ==> 327743 - MediaWiki export not displayed. 005 ==> 348146 - Export tools configuration module. 006 ==> 243275 - Crashing when calling configuration. 007 ==> 257134 - Crashes when entering its settings. 008 ==> 230666 - Crash during start. 009 ==> 306698 - Crashes after update to KDE. 010 ==> 207640 - Crashes immediately at startup, sometimes at closing. 011 ==> 245628 - Crash when enabling/disabling Facebook import/export. 012 ==> 097317 - sigsegv [New Thread 1100241184 (LWP 5665)]. 013 ==> 245776 - Crashes when selecting Settings. 014 ==> 245775 - Crashes even without export tools installed. 015 ==> 254283 - Crash as soon as i click settings. 016 ==> 255733 - crash when reopening configuration dialog. 017 ==> 262050 - Crash after new install and scan to mysql database. 018 ==> 263871 - Crashed after searching for duplicates. 019 ==> 268242 - Crashes after I clicked on 'Settings'. 020 ==> 276882 - Add export tool buttons to toolbar. 021 ==> 284801 - Export to picasaweb crashes. 022 ==> 277669 - Crash after files moved. 023 ==> 281250 - Crash after disabling Export tools. 024 ==> 202637 - Crash trying to start export tool. 025 ==> 306693 - after update to KDE host application crashes on startup. 026 ==> 282781 - Crashes when reopening configuration dialog after disabling export tools. 027 ==> 285499 - Crash when settings window opened. 028 ==> 297629 - Crashed when importing from Nikon P7000. 029 ==> 303338 - Crashes when clicking "send to" button. 030 ==> 307619 - Refuses to load Export tools. 031 ==> 311812 - Export tools not loading, SO version not defined. 032 ==> 313186 - Crashes on attempt to use the "Send to" menu. 033 ==> 313356 - Crashed when clicking the "send to" button. 034 ==> 313577 - Crashes when pressing the "send to" button. 035 ==> 313890 - Crash when clicking "Send to...". 036 ==> 315033 - Crashes on pressing Send To... button. 037 ==> 315914 - The facebook tool crashes everytime on initialization. 038 ==> 326556 - Export tools are not loaded when starting host application for second time. 039 ==> 095175 - crash on loading, signal 11 SIGSEGV. 040 ==> 175844 - Crashes at startup loading Export tools. 041 ==> 306511 - Crash during start. 042 ==> 234021 - Crash on loading. 043 ==> 219772 - Opening the application causes crash. 044 ==> 294173 - Crash after Image resize start. 045 ==> 306881 - Crashed when attempting to open Export tools. 046 ==> 306495 - Crash changing settings linux ubuntu lucid. 047 ==> 306497 - Crash after changing settings segmentation fault possible 2nd report? 048 ==> 185470 - "Import from facebook" is listed twice in import menu. 049 ==> 334045 - MediaWiki option not available in Export menu when plugin activated. 050 ==> 142112 - Can't save on my webspace with ShowFoto. 051 ==> 167417 - Showfoto cannot save files of CIFS mount. 052 ==> 125164 - Flickr export tool should respect host application selection. 053 ==> 238927 - Host application quits when uploading to Flickr. 054 ==> 326740 - Selection of tools is set to default after each update. 055 ==> 233063 - Add progress indicator when moving or copy files [patch]. 056 ==> 361829 - Rotated MP4 video with "Orientation" flag are not played back in the correct rotation angle. 057 ==> 329854 - digiKam doesn't rotate video thumbnail. 058 ==> 376661 - When importing ~200,000 video files Digikam crashes in about 2-5 seconds of starting. 059 ==> 377072 - Cannot read video metadata. 060 ==> 374453 - Extract right video date from MP4 files metadata. 061 ==> 377177 - Geolocation / GPS information doesn't appear in video metadata. 062 ==> 383588 - Imported video files have time shifted exactly 2 hours later. 063 ==> 380847 - MP4 video not importing with correct date. 064 ==> 373682 - geolocalisation filter does not take care of the videos geolocalisation tags. 065 ==> 340925 - digiKam crash when start it. 066 ==> 331506 - digiKam crashes on startup. 067 ==> 335816 - Crash when trying to add a big collection. 068 ==> 353295 - digiKam repeatedly crashes while importing pictures. 069 ==> 341433 - Crash when opening digiKam application. 070 ==> 375562 - digiKam crashes while scanning images into sqlite database. 071 ==> 334782 - Crash while doing nothing. 072 ==> 362672 - Crash on start of digiKam. 073 ==> 341023 - Crash after startup during check for updated images. 074 ==> 386891 - Crashed while adding pictures. 075 ==> 342666 - digiKam crashes during find new items. 076 ==> 341274 - digiKam crash on startup. 077 ==> 343708 - Crash when scanning album. 078 ==> 332721 - Crash when reading a certain MP4 video file. 079 ==> 343736 - Crashes when rebuilding thumbnails from database. 080 ==> 346356 - digiKam crashes when adding 90.000 pictures to library. 081 ==> 343714 - digiKam crash when scanning for new items. 082 ==> 341091 - digiKam crashes when updating the MySQL database of a a hudge photo collection. 083 ==> 340879 - digiKam crashes after getting unexpected but reasonable output from libexiv2. 084 ==> 342712 - Crash on collection scanning. 085 ==> 356704 - digiKam still crashes while scanning a new photo directory and subdirs. 086 ==> 339269 - Segfault when opening a folder that contains unknown file types (mov, avi, xcf). 087 ==> 364635 - digiKam crashes on startup. 088 ==> 357356 - digiKam crash on startup while scanning photos. 089 ==> 341554 - digiKam crashed by Data-Import from NFS. 090 ==> 345457 - digiKam crashes at "loading tools". 091 ==> 349635 - Crash of digiKam - moving album. 092 ==> 342604 - digiKam crash. 093 ==> 331450 - Signal 8 on album opening. 094 ==> 342030 - digiKam crashes when checking an AVI video file using exiv2. 095 ==> 352777 - Crash during scan. 096 ==> 352944 - digiKam crashes on start. 097 ==> 343643 - digiKam crashes while perform initial scanning of custom photo folder. 098 ==> 342000 - digiKam crash when opening folder with Videos (Album or SD Card import). 099 ==> 353447 - digiKam crashes when scanning files. 100 ==> 346807 - Crashes on startup. 101 ==> 364639 - digiKam crashed while opening database. 102 ==> 341504 - Crash while using application. 103 ==> 367691 - Searching for pictures crashes at 30% every time. 104 ==> 334604 - Crash after changing disk partions. 105 ==> 351689 - Crash on opening digiKam. 106 ==> 149267 - digiKam crashes after finding avi and so on. 107 ==> 170387 - Add movies management. 108 ==> 369629 - digiKam does not use GPS data from video files. 109 ==> 367880 - Nexus 5X videos show up upside-down in digiKam. 110 ==> 330116 - digiKam does not take care about GPS info stored in MP4 video files. 111 ==> 339150 - digikam crashes when trying to display video file. 112 ==> 344406 - Crash at start. 113 ==> 339909 - digiKam Segmentation Fault on open. 114 ==> 343231 - Crash at scanning for new fotos. 115 ==> 340373 - Crash on scanning video directory. 116 ==> 134679 - Video and audio files are not imported. 117 ==> 375357 - No video preview. 118 ==> 261773 - Batch renaming does not complete when MP4 video file is processed. 119 ==> 185915 - Album View: "Created" time of video set to "00:00". 120 ==> 303218 - digiKam import crashes when you select video files. 121 ==> 374241 - Bad video date rename. 122 ==> 375646 - Be able to scan only photo, not video and audio. 123 ==> 262499 - Cannot rename .AVI files. 124 ==> 199261 - Import avi movies from sdcard wrong date and no thumbnail. 125 ==> 181521 - NEF's in descending order, AVI in ascending order in import from SD-card. 126 ==> 392019 - Two persons can point to the same face tag in pictures. 127 ==> 392013 - Metadata explorer does not show XMP face rectangles. 128 ==> 389508 - Dates Side Menu Is Not Updated Automatically After Exif Date Change [patch]. 129 ==> 331864 - Merge Tags with same name when moving to same hierarchy level. 130 ==> 347302 - Reassign name to face. 131 ==> 391747 - BQM Tool "Remove Metadata" doesn't remove all metadata from image. 132 ==> 285683 - Already imported pictures not recognized after daylight savings time. 133 ==> 392309 - Icons are pixelated when my display scale factor is 1.2 134 ==> 392405 - Function 'getImageIdsFromArea' argument order different. 135 ==> 386224 - Metadata is not updated when moving tags. 136 ==> 370245 - Be able to rename tags which have been setted in pictures. 137 ==> 374470 - Deleted tags are not removed from file metadata. 138 ==> 374516 - Persons metadata are not updated after a tag removed. 139 ==> 392436 - Count Files in directory. 140 ==> 363859 - digiKam core port from QWebKit to QWebEngine [patch]. 141 ==> 392427 - Cannot add collection on network drive. 142 ==> 392022 - Position of a face tag appears on top of bottom of the list, instead of being sorted alphabetically. 143 ==> 372763 - Rename does not give options on Conflict. 144 ==> 391533 - Feature request: add "NOT" tag matching condition in "Filters" panel. 145 ==> 381222 - digiKam crash on fuzzy search. 146 ==> 386275 - Crash caused by QtAV. 147 ==> 372342 - Face tag area is very short [patch]. 148 ==> 391348 - People Side Menu Shows Only Faces Not People Tagged Images. 149 ==> 385630 - Views Requiring Maps Takes ~30s to Launch. 150 ==> 192908 - Allow to split icon-view in order to show multiple albums at the same time. 151 ==> 339088 - GIT master: crash when clicking through images in preview, with face recognition running in background. 152 ==> 341605 - Crash if I attempt to use left-sidebar tags tab. 153 ==> 227266 - Handle Video Date from metadata. 154 ==> 227259 - Needs to Edit Video Date. 155 ==> 373284 - digiKam crashed with SIGSEGV in QSortFilterProxyModel::parent(). 156 ==> 384807 - digikam 5.7.0 AppImage bundle : provide a more recent ffmpeg version for video support. 157 ==> 391835 - Deleted pictures still appear in group. 158 ==> 387483 - Elegant theme: Selected frame colors swapped [patch]. 159 ==> 375424 - Thumbnails are not being removed from AlbumsView after moving the images to Trash. 160 ==> 368796 - Problem with Exif-tags: ImageDescription and UserComment. 161 ==> 392417 - AppImage (5.9.0-01-x86-64) does not support "--install" cli parameter. 162 ==> 392922 - digikam-6.0.0 fail to start. 163 ==> 391399 - Not possible to add location bookmarks in Digikam >5.6.0. 164 ==> 380876 - Tags in Digikam DB maintained after being removed from file and file re-scanned. 165 ==> 392017 - Merging, renaming and removing face tags. 166 ==> 352711 - Externally removed tags are not removed from digiKam. 167 ==> 393108 - Tags not always visible when selecting multiple pictures in a group. 168 ==> 392656 - Selecting a root album for face scan doesn't include subfolders, but rather scans an unexpected album set. 169 ==> 329438 - Rename function with Date & Time does not work with NTFS. 170 ==> 376473 - Can"t set empty IPTC country code when using metadata templates. 171 ==> 380289 - Cannot write to Albums residing on NFS. 172 ==> 384465 - With Compact Flash Card Created date in thumbnails is wrong. 173 ==> 381958 - Cannot add additional collection. 174 ==> 383747 - "Rotate only by setting a flag" Changes Image Instead. 175 ==> 387977 - No icon only view of "Extras sidebar": sidebar taking up a lot of space. 176 ==> 277502 - All versions of version set always displayed in Album view [patch]. 177 ==> 393283 - Caption not updating Exif.Image.ImageDescription field. 178 ==> 391060 - Crashes on undo of very large tif. 179 ==> 366305 - Add a message at startup about the lack of temporary space to perform Undo operations. 180 ==> 366391 - Rotating an image seems to forget to reset the orientation flag. 181 ==> 393654 - Not able to select gpx file. 182 ==> 367596 - Sub-folder count images but don't show them (unsupported JPEG file?). 183 ==> 379922 - Digikam won't remove tags set by Windows Explorer. 184 ==> 379081 - GPS data are in file but geolocation indicator is not shown and map view empty. 185 ==> 354819 - Specific pictures not showing up in digikam. 186 ==> 393855 - MySQL/MariaDB upgrade fails. 187 ==> 384603 - Camera Creation Date not set from EXIF data. 188 ==> 386959 - Properties view: wrong creation date [patch]. 189 ==> 393970 - No mts video thumbnails. 190 ==> 393728 - Reread metadata from Video uses sidecar only. 191 ==> 393925 - UpdateSchemaFromV7ToV9 fails due to duplicate key in album_2. 192 ==> 393773 - showfoto crashes when geotagging. 193 ==> 388199 - No context menu to copy coordinates from map. 194 ==> 393399 - Windows defender freaks out in windows 10 and Edge. 195 ==> 392134 - SIGSEGV While Scanning Faces [patch]. 196 ==> 394168 - OSM Search Yields No Results. 197 ==> 377719 - Cannot rename file with overwrite [patch]. 198 ==> 388002 - remove kio related legacy [patch] 199 ==> 394242 - Import settings unneccesarily asks to overwrite image database, and crashes when I decline. 200 ==> 394278 - A slideshow theme for kiosk mode. 201 ==> 340389 - digiKam crashes while editing pictures for color balancing on OSX [patch]. 202 ==> 394413 - Unify group handling [patch]. 203 ==> 394573 - Revers geodata from open street map does not work. 204 ==> 394590 - Feature request: being able to filter on all metadatas fields. 205 ==> 394671 - Distortion on Panasonic DMC-LX15. 206 ==> 393205 - Advanced rename very slow. 207 ==> 382474 - Thumbnail regeneration. 208 ==> 394865 - digikam suspicious crash on exit. 209 ==> 390541 - Tooltip background cannot be changed. 210 ==> 391521 - "Tool-tip" box difficult to read due to default color scheme. 211 ==> 377849 - Albums disappear when the network is interrupted. 212 ==> 394988 - PgDown and PgUp hardcoded in preview mode. 213 ==> 366312 - Efficient photo tagging workflow got lost in transition from 4.x to 5. 214 ==> 395093 - Being able to export a list of paths from a selection of thumbnails. 215 ==> 395144 - When zooming in preview, face tags show on wrong places. 216 ==> 275671 - Scan single image for faces. 217 ==> 395199 - Uploading large video files to flickr fails. 218 ==> 348274 - "Change Account" immediately opens web page in browser, before I click Continue 219 ==> 263347 - Print wizard ignores selected paper size, reverts to A4. 220 ==> 395579 - Only one tag being exported to flickr. 221 ==> 395790 - Rename with nested tags breaks due to | bar character. 222 ==> 395875 - ImageEditor window is blank when opened a second time. 223 ==> 385822 - [Suggested feature] Re-use thumbnails from the database for the items in Trash. 224 ==> 382174 - Not creating thumbnails and not editing (F4) files created for Samsung panorama jpgs [patch]. 225 ==> 376124 - Some Photos are not previewed. 226 ==> 386188 - Preview Does Not Display Some JPGs Editor Crashes Program. 227 ==> 394906 - Toggling "use file metadata" for input will make Digikam forget all imported photos. 228 ==> 388391 - Windows x64 installer crashes at 60%. 229 ==> 377433 - Crash on opening settings. 230 ==> 390286 - Please update version of lensfun. 231 ==> 386649 - Crash on opening RAW file from OnePlus One. 232 ==> 172836 - No menu item for lensfun. 233 ==> 319462 - Crash while applying lensfun distortion correction a second time. 234 ==> 380844 - Demosaicing choosing VCD & AHD then update. 235 ==> 380843 - Demosaicing. 236 ==> 301219 - digiKam crash. 237 ==> 216013 - try to open extras/ batch raw converter was followed by a crash. 238 ==> 102045 - RAW conversion in digikam fails to convert or generate preview. 239 ==> 137281 - Cannot convert nef into raw. 240 ==> 230763 - Exif ISO data missing when converting Olympus ORF. 241 ==> 137278 - 16-bit/channel workspace when working with RAW conversions. 242 ==> 133004 - Canon CRW portrait preview upside-down. 243 ==> 221345 - Do not process search immediately when enter text to query. 244 ==> 396234 - Add a feature which allow to switch latitude and longitude. 245 ==> 396283 - Missing images in album preview. 246 ==> 396352 - Some iptc tags are not displayed in the metadata part. 247 ==> 396434 - Uncontrolled log messages oversize log file up to run out of disk space. 248 ==> 396482 - Empty folder selector window after select and click on "Import selected elements". 249 ==> 396170 - Gallery creation error. 250 ==> 140374 - HTML Gallery export fails to parse xml from non-UTF8 metadata in jpeg. 251 ==> 396712 - "Save Search" does not work. 252 ==> 396944 - Integrity constraint violation on Albums.icons when migrating from sqlite to mysql. 253 ==> 396952 - Cut and Paste Into Caption Has Incorrect Font Initially. 254 ==> 091562 - Change order of pictures in the virtual album manually. 255 ==> 098340 - Re-sort images in albums 256 ==> 177355 - Feature request: export slideshow in lighttable. 257 ==> 158520 - Wishlist sort thumbnails manually and rename images. 258 ==> 191000 - Wish: Visual tool to change the sort order of photos. 259 ==> 216802 - digiKam ability to sort album with "picture is before picture". 260 ==> 230136 - It lacks the ability to sort photos manually. 261 ==> 236249 - Wish: custom sort in album view. 262 ==> 323559 - Wish: Albums like Playlists in Amarok. 263 ==> 337002 - Manual image sort. 264 ==> 397167 - Some tags are not displayed on the preview. 265 ==> 397207 - Too many open files, when reverse geocoding many images. 266 ==> 397278 - DNG conversion not possible. 267 ==> 397311 - DIN A relation in "Aspect Ratio Crop". 268 ==> 222716 - digiKam does not start. Showing: Reading database. 269 ==> 276633 - Crash when using map view inside of digiKam. 270 ==> 224706 - digiKam for KDE on Windows "Failed to rename Album" (KDirWatch Relevant). 271 ==> 383016 - digiKam with incomplete German translation. 272 ==> 244982 - digiKam crashes at initial configuration. 273 ==> 366453 - digiKam crash while using mouse over title bar. 274 ==> 278490 - Incorrect tab layout with slider/spinbox/reset button. 275 ==> 324642 - digiKam crash when starting a bug report while offline. 276 ==> 238392 - digiKam Camera interface : rename dialog interprets alt-s as plain s when button greyed out. 277 ==> 397177 - image editor does not export exif and IPTC data when saving to PNG. 278 ==> 341276 - Picture bigger than 5MB are not previewed. 279 ==> 388908 - Error while scanning with HP F300 series. 280 ==> 381723 - digiKam crashed when I tried to close the window opened by clicking import button. 281 ==> 345288 - Crash from digiKam when try customizing a shortcut to a Tag. 282 ==> 381193 - digiKam crashes after uploading photos from smartphone via USB. 283 ==> 275670 - Face preview image incorrect on 'rotated' images. 284 ==> 395199 - Uploading large video files to flickr fails [patch]. 285 ==> 240144 - digiKam : When I press the left button of the mouse on a photo, a menu appears, but no items are seen. 286 ==> 240229 - White contextual menu problem. 287 ==> 309508 - Export to Flickr does not send the geodata. 288 ==> 383987 - Flickr tool no longer authenticates to Flickr. 289 ==> 338333 - Account problem. 290 ==> 397001 - The "maximise" button is missing in decoration of the geolocation editor window [patch]. 291 ==> 397406 - Digikam shouldn't use parentheses when renaming files. 292 ==> 397411 - Not being able to move files in a removable media collection which is not mounted. 293 ==> 227566 - digiKam does not allow smb:// shared folder as picture collection. 294 ==> 395201 - SSL broken in 5.9.0 AppImage bundle. 295 ==> 385363 - digiKam crashes when authorizing access to Google photo because of SSL error in AppImage. 296 ==> 348277 - Please focus auth code input field in the GDrive authentication dialog. 297 ==> 383174 - Google photo, export stops after a random quantity of photos. 298 ==> 387422 - Flickr export authorization does not work. 299 ==> 397126 - Fail to replace a photo in google photo. 300 ==> 387201 - kioslave needed by flickr export but not included in appimage. 301 ==> 389785 - 'Open in Filemanager' dolphin not working. 302 ==> 396619 - All Exports fail - cannot find ioslave. 303 ==> 254512 - Crash when initializing the export to Flickr.com. 304 ==> 237818 - Crash when uploading multiple images to Flickr. 305 ==> 286754 - Crash when when entering collection name in flickr uploader. 306 ==> 337980 - Flickr Export tool can no longer obtain a new token. 307 ==> 151018 - Requires new token with every invokation. 308 ==> 132922 - Export to flickr doesn't work. 309 ==> 149864 - Dialog box pops up saying 'Error Occured: Missing signature. We can not proceed further". 310 ==> 196179 - Flickr export does not work. 311 ==> 391734 - Can't export to google photos: SSL Handshake failed. 312 ==> 386402 - Not all page sizes for selected printer can be selected. 313 ==> 395557 - Printformat not selectable. 314 ==> 340644 - Allow to use standard photo paper sizes. 315 ==> 330906 - Crashes when exporting to HTML. 316 ==> 309316 - Html gallery export crash and other bugs. 317 ==> 314248 - digiKam crashing when exporting pictures to html. 318 ==> 225725 - Crash using HTML export. 319 ==> 396092 - Don't init search till user press a buttom specifically for this task. 320 ==> 397376 - Search in Geolocation doesn't work for Streets / location, only for City. 321 ==> 393259 - Configuration conflicts. 322 ==> 391329 - Two actions that wants to use same shortcut (Ctrl+Shift+,). 323 ==> 391655 - Kubuntu 18.04 beta, Digikam 5.6.0 Ambiguous Shortcuts - Zoom to 100% and Configure Digikam share the same shortcut (Ctrl+Shift+,). 324 ==> 393031 - Two actions for digikam[helpfully identified as a bug]. 325 ==> 395518 - When manually typing face name, sort the filtered tags by recent usage. 326 ==> 304202 - No option to re-read metadata from XMP sidecar file. 327 ==> 289445 - Allow to create Contact Sheet from an album. 328 ==> 164750 - Picture alignment and background picture. 329 ==> 338180 - Add "Toggle auto-refresh" option in search view. 330 ==> 359235 - digiKam doesn't response after start when StatusBar=Disabled in digikamrc. 331 ==> 090550 - Linking error with jpeg. 332 ==> 393974 - Appimage bundle does not automatically recognize Gphoto2 devices connected. 333 ==> 141288 - Error KIoexec usb camera. 334 ==> 397554 - digiKam crashes while running BatchQueueManager. 335 ==> 379261 - Crash on attempting camera import. 336 ==> 379335 - digiKam crashes when deleting images in the download window [patch]. 337 ==> 394291 - Cannot upgrade mysql db from v7 to v9. 338 ==> 389468 - Immediate Crash On Metadata Sync. 339 ==> 379807 - ShowFoto crashes when clicking Color Effects from menu. 340 ==> 257301 - showfoto reaches an assert when saving file with "~/" in the path. 341 ==> 183629 - Digikam/Showfoto Dark Theme: The selected photo filename is nearly invisible. 342 ==> 249379 - All versions of Digikam/Showfoto/KDE download is missing a file. 343 ==> 237286 - digiKam crash after to scan collection (upgrate from 9.10 to 10.04). 344 ==> 254878 - digiKam error segmentation fault when open it. 345 ==> 255759 - digikam crash when open it kunbuntu lucid. 346 ==> 249009 - digiKam crashes at initialisation. 347 ==> 236647 - After upgrading to Ubuntu 10.04 digiKam crashes everytime it is launched. 348 ==> 235905 - digiKam crash after upgrade. 349 ==> 185265 - digiKam constantly using some CPU in a poll loop due a timeout 350 ==> 250364 - digiKam crashes at start-up in xubuntu 10.04. 351 ==> 253205 - digiKam crashes while loading on Ubunu 10.04. 352 ==> 249033 - After upgrade to 10.04 digiKam crashes after starting always. 353 ==> 300713 - Crash while editing tag in digiKam. 354 ==> 184443 - digiKam save as "JPEG" appends a ".JPEG" file extension. Bad! 355 ==> 189084 - Crash while editing toolbars (here from digiKam camera GUI). 356 ==> 205275 - After changing symbols in bar on preview digikam closes. 357 ==> 214418 - Crash while importing into digiKam. 358 ==> 279909 - digiKam crashed when I tried to import photos from my iPhone 4. 359 ==> 287616 - digiKam crash when selecting folder to store photos. 360 ==> 327714 - digiKam crashes when starting up [Qt Bmp Image IO]. 361 ==> 396892 - digiKam font sizes cannot be changed. Mostly too small. 362 ==> 371726 - Dates view empty using MYSQL due to SQL query error (fix supplied). 363 ==> 382217 - Use normalized connects [patch]. 364 ==> 113692 - digiKam thumbnail hangs on .mov movie. 365 ==> 185638 - digiKam crash on startup. 366 ==> 350404 - digiKam crashes at startup. 367 ==> 301583 - digiKam crash on preview avi. 368 ==> 236960 - No video in digiKam embedded viewer no way to change codec? 369 ==> 227113 - digiKam crashes when selecting a movie. 370 ==> 274333 - digiKam crashed upon startup. 371 ==> 247019 - digiKam crashes in Album view with Canon IXUS 90 video clip. 372 ==> 238525 - digiKam crashes on browsing in album view. 373 ==> 317437 - digiKam crashes on startup. 374 ==> 237183 - digiKam crashes on playing Quicktime movies. 375 ==> 256644 - digiKam crashes after adding photos to light table. 376 ==> 245033 - digiKam falls on video files. 377 ==> 252411 - digiKam crashes when .AVI videoclip is launched. 378 ==> 247399 - digiKam crashes when viewing videos. 379 ==> 261706 - digiKam crashed after downloading pictures. 380 ==> 172170 - digiKam embedded video player - video not synchronized with sound. 381 ==> 293173 - digiKam does not play videos. 382 ==> 182401 - Wrong color palette on playback videos within digiKam. 383 ==> 219419 - digiKam crashes after splash screen with PTP. 384 ==> 397565 - Unable to launch in OS X after install. 385 ==> 337978 - digiKam crashes on startup - always. 386 ==> 215673 - digiKam movie no preview. 387 ==> 204481 - digikam: Wizard not translated in French. 388 ==> 365694 - digiKam 5.0.0 : every menus are in French, excepted the menu bar. 389 ==> 394434 - Installation problem mysql internal on mac os high sierra [patch]. 390 ==> 397696 - [Website] On Fedora, use dnf instead of yum. 391 ==> 392970 - Website: Mention KDE Familly. 392 ==> 394694 - Showfoto crashes on change picture size. 393 ==> 326006 - digiKam Raw engine generates pink & black stripe on the right. 394 ==> 379984 - ASSERT failure in Q_GLOBAL_STATIC: "The global static was used after being destroyed". 395 ==> 373572 - File synchronization. 396 ==> 296768 - When creating thumbnails, digiKam uses 80% CPU - quadcore 3800, 9GB RAM. 397 ==> 397777 - Need to default to native filesystem browser on first run to see external drives. 398 ==> 279818 - digiKam crashed when updating fingerprints. 399 ==> 275931 - digiKam crashed when trying to stop a batch queue. 400 ==> 272144 - Alphabetically sorting of the tools in BQM. 401 ==> 271531 - Cannot edit canon crw-pics. 402 ==> 397739 - Menu icons are not scaled correctly on external/secondary screen (2560x1440) while using MacBookPro. 403 ==> 380841 - Crash while correcting color manually. 404 ==> 378176 - Using tool causes program to crash. 405 ==> 395842 - digiKam crashes adjusting color balance on a RAW file. 406 ==> 388608 - Faces engine hangs and crashes. 407 ==> 397855 - Not compatible with Windows 10. 408 ==> 391039 - digiKam stalled after trying to make a panorama. 409 ==> 184318 - Starting digiKam it crashed and caused the signal 11 (SIGSEGV). 410 ==> 222740 - Starting digiKam cause sound system to report pulseaudio is removed. 411 ==> 378697 - Add image carousel to front page screenshots. 412 ==> 180375 - Web page: Wrong link to Alpenglow Webpage. 413 ==> 331141 - Broken link to database schema in web site digikam.org pointing to project.kde.org. 414 ==> 397862 - Reordering geolocation bookmarks will remove them from the list. 415 ==> 223348 - digiKam crash during album view browsing AVIs with PgUp/PgDown. 416 ==> 156146 - Reading data base, digiKam don't start. 417 ==> 118090 - digiKam crashed while attempting to save scanned (tiff) image. 418 ==> 397828 - Operation cancelled when exporting to flickr. 419 ==> 397924 - Merge tag names of people. 420 ==> 397425 - Bug when trying find duplicates. 421 ==> 397496 - Wish: Read facetags from jpg files edited in Mylio. 422 ==> 397727 - Don't show "Mod."" label when no modified timestamp exists on an image. 423 ==> 397893 - MacOS : digiKam do not link with libksane 18.08.0. 424 ==> 397990 - Carousel images too large. 425 ==> 389273 - Copy/move selected items to anothor Album doesn't work correctly [patch]. 426 ==> 261471 - Crashes when trying to delete photos or albums. 427 ==> 342108 - Crashes when trying to import images 428 ==> 341268 - digiKam freeze each time I select a photograph in a collection. 429 ==> 388551 - Error message at startup showing that Marble plugins are not loading but they do. 430 ==> 342110 - Bug reporting feature gives error wont report bug. 431 ==> 387047 - Easily accessible signatures. 432 ==> 286286 - digiKam crashes if I request fullscreen mode. 433 ==> 292522 - digiKam crashes on startup. 434 ==> 294791 - digiKam and Showfoto crashes while switching to fullscreen mode. 435 ==> 347589 - Menu icons size is not unified - text overlapping. 436 ==> 382053 - digiKam preferences when using mysql host port resets to default (3306) when accessing preferences. 437 ==> 388227 - Image version always shown. 438 ==> 386561 - Cannot import images from mac /Volumes/. 439 ==> 396491 - Versions are not grouped despite the correct setting. 440 ==> 389505 - Database port reset to 3306 when oppening digiKam setup (working with maiaDB10). 441 ==> 266165 - Advanced slideshow crash. 442 ==> 387372 - With Digikam Version 5.7 is no preview possible. 443 ==> 286341 - Crash at startup with a "Bus Error". 444 ==> 329050 - Application crashes while starts. 445 ==> 396374 - editing a picture (F4) presents an empty screen. 446 ==> 336874 - After exiting full screen, Menu Bar disappear and crash. 447 ==> 237494 - B&W JPEG displayed incorrectly. 448 ==> 265749 - Blank context menus. 449 ==> 274733 - Delete file permanentry works wrong. 450 ==> 383711 - All Albums Disappear. 451 ==> 378929 - DNG conversion fails in Windows 10 for Olympus ORF files. 452 ==> 170458 - Object position on pictures. 453 ==> 184638 - Generate XMP for raw files. 454 ==> 200380 - Usability of editing exif comments. 455 ==> 195090 - Thumbnails bar should have no empty space. 456 ==> 196730 - Add Color Space converter to batch queue tool. 457 ==> 207921 - Using image editing tools in fullscreen modes leaves right sidebar open. 458 ==> 211066 - TIFFs written by digiKam not readable with GIMP. 459 ==> 224603 - One-touch download when connecting media. 460 ==> 282021 - Impossible to start... 461 ==> 202430 - Crash after startup on Mac OS X. 462 ==> 139153 - Can't compile from source. 463 ==> 380971 - Albums disappear when the network is interrupted. (5.6.0). 464 ==> 342673 - Rebuild fingerprints crashes with large number (>110000) of images. 465 ==> 261134 - Drag a folder into album view - deletes source folder. 466 ==> 365809 - Menu bar disappears after having used full screen mode. 467 ==> 383924 - Tags syncing and reading from file not working. 468 ==> 395788 - If tags have a in them rename effectively deletes the file. 469 ==> 388596 - Main area remains empty with Qt 5.9.3. 470 ==> 387552 - digiKam suddenly is unable to read or display any images. 471 ==> 397972 - Unable to navigate in DK during flickr export. 472 ==> 390228 - No clear rule on where digikam wants to import. 473 ==> 187274 - The dialogue to export to an HTML gallery has an album selected but the Next button is greyed out. 474 ==> 129762 - Flickr export tool should export whole host application albums. 475 ==> 130966 - Exporting to html gallery doesn't include subalbums. 476 ==> 097396 - Export to HTML stops/ slow. 477 ==> 128035 - HTML export adds extra .jpg extention to all image filenames. 478 ==> 129870 - Album sent to HTMLGallery tool doesn't respect the view order. 479 ==> 111462 - Exporting multiple "tag" albums in HTML produces invalid hyperlinks on main webpage. 480 ==> 147770 - Use a hierarchical treeview in HTMLExport (instead of a listview). 481 ==> 259748 - Xorg crashes when launching the "Export to flickr" tool. 482 ==> 398206 - Strongly underexposed areas of the jpeg file are white rather than pure black. 483 ==> 127498 - Reduce image size delete exif data. 484 ==> 219009 - Crashed when selecting photos for upload. 485 ==> 234395 - Unable to get list of albums. 486 ==> 241587 - Flickr export reencode jpeg before sending them. 487 ==> 278890 - Showfoto crashes with qt 4.8. 488 ==> 355744 - Segfault on SmugMug upload. 489 ==> 358704 - Request authorization does not occur and upload becomes impossible. 490 ==> 175233 - Showfoto crashes on windows. 491 ==> 259623 - Application: showFoto (showfoto), signal: Segmentation fault (opening jpg). 492 ==> 194832 - Showfoto open and crash after one second. 493 ==> 390287 - digiKam crashes when I do batch renames. 494 ==> 390290 - Trying to use "red eyes" reduction function make showfoto crash. 495 ==> 388542 - DNG crash when i open a .nef files. 496 ==> 390580 - First crashes when saving tiff file, then crashes when starting. 497 ==> 391721 - No photography is displayed in the main view. 498 ==> 392813 - Showfoto crashed when clicked on close button in title bar. 499 ==> 393069 - I do not see images in the file browser, only in calendar. 500 ==> 392189 - Database upgrade fails. 501 ==> 386653 - Message error on face detectior. 502 ==> 398287 - Print creator causes digiKam crash when orientation is changed. 503 ==> 397305 - Failed to add tag to database. 504 ==> 398462 - IPTC from Ligthroom. 505 ==> 397340 - Update image file timestamps if metadata is written to sidecar file [patch]. 506 ==> 398331 - Xmp sidecar files are not reloaded on change. 507 ==> 380341 - Modified sidecar not rescanned. 508 ==> 339342 - SCAN : Search for new items does not recognize modified tags in sidecar files. 509 ==> 387351 - Meta data for RAW files checkbox disabled. 510 ==> 398676 - Time Adjust in Batch Queue Manager jumps from hour to second. 511 ==> 338533 - Sort by date should use picture created date not modified date. 512 ==> 398675 - Image Rotation Inflates File Size. 513 ==> 309520 - GROUP : add 'group by month' into 'View.. | group by...' menu. 514 ==> 398714 - MicrosoftPhoto:LastKeywordXMP does not show up in digkam tags list. 515 ==> 388386 - Time adjustment tool is misleading and potentially leads to data loss. 516 ==> 366777 - No preview for Time Adjust tool. 517 ==> 306092 - Creation date as file name - doesn't work in BQM. 518 ==> 089993 - Allow setting time to specific date/time. 519 ==> 099894 - TimeAdjust only modifies file modification date, not EXIF. 520 ==> 119232 - Mass changing date for jpegs without EXIF. 521 ==> 119634 - Batch operation to change the date to several images at the same time. 522 ==> 134306 - Image mass tagging feature. 523 ==> 211845 - Missing progress bar while changing images dates. 524 ==> 249320 - Unable to change time file. 525 ==> 282559 - Graphical interface for changing dates and time. 526 ==> 354668 - Crashes when adjusting time and date on two or more photos at a time. 527 ==> 360770 - Crash when adjusting time on many pictures. 528 ==> 362104 - digiKam crashes when changing date and time of more than 25 selected pictures 529 ==> 366450 - Batch time adjust is ok, but time not adjusted in digikam thumbnail. 530 ==> 378006 - Preview of the time adjust result. 531 ==> 398624 - Cannot edit Date in XMP video metadata. 532 ==> 398810 - "Dates" panel is not refreshed after a photo with a new year is added. 533 ==> 398986 - Deleting a tag while using it as filter removes all images from the current view. 534 ==> 370093 - Opening a picture (double-click) in Showfoto (default viewer) does not show the other pictures in the folder (similar to Bug 221245). 535 ==> 398479 - digiKam crashing at startup Thread 2 Crashed:: Digikam::ScanController. 536 ==> 397808 - digiKam Mac Package crashes after resume when screen configuration changes. 537 ==> 399071 - "Adjust Time Date" tool shows all times as "00:00:00". 538 ==> 399134 - Progress bar or status when importing from camera/card reader. 539 ==> 399153 - Selecting a picture with a tag and another without that tag, the checkbox is black instead of gray. 540 ==> 384759 - Can't adjust timestamp of RAW files. 541 ==> 399221 - Cannot scroll in videos by clicking on the progress bar (only by moving the progress slider). 542 ==> 399315 - Horizontal scroll bar aligned to the right by default. 543 ==> 397962 - digiKam 6.0 does not start after install. 544 ==> 399336 - Google maps – "For development purposes only" printed on the map. 545 ==> 399338 - Count of items in Tree Views does not match total number of items. 546 ==> 399292 - Video file datetime not shown correctly after editing. 547 ==> 370553 - Adjust date - not possible to update "digiKam timestamp". 548 ==> 329091 - MySQL : needs to set "max-allowed-packet" server settings from 4.096 to 16.777.216 to prevent Maintenance tool crash. 549 ==> 399406 - digiKam Crash on advance rename. 550 ==> 397386 - Add a separate checkbox to "Show Rating". 551 ==> 335870 - Nexus 4 in PTP mode gets error: The specified camera ("/org/kde/solid/udev/...") is not supported. 552 ==> 399917 - Fails to build with QT5.7.1 553 ==> 399762 - digiKam Geolocation Correlator ignores time offset. 554 ==> 400148 - Files exported in google photos does not have their filename as name, but their date. 555 ==> 373678 - Videos exported in google photos are not available (still processing state). 556 ==> 400139 - Titles are not exported anymore on google photos. 557 ==> 400216 - Components Information window: no standardized uppercase/lowercase. 558 ==> 400217 - Incorrect Video date/time information: shifted by 2 hours. 559 ==> 396961 - Empty space on interface on thumbnail view. 560 ==> 400436 - Crash when saving jpeg files with metadata. 561 ==> 400492 - Rotation does not work. 562 ==> 246727 - Add undo functionality to move to trash action. 563 ==> 400637 - IPFS icons have non-square size, causing them to get blurred. 564 ==> 400434 - Trash content disappears after selecting 'Map' or 'Table' view. 565 ==> 394660 - Crashes when refreshing. 566 ==> 400712 - File modification timestamp is updated when images are moved to collection on removable media. 567 ==> 394214 - Import .mp4 files does not preserve file mtime as date stamp. 568 ==> 400762 - Trash - "Delete All Permanently" button not visible. 569 ==> 400792 - Failure to export to JPEG 2000. 570 ==> 400777 - Group images by timelapse / burst [patch]. 571 ==> 400902 - NAS Mysql cannot connect with instructions given by Dmitry Popov. 572 ==> 400918 - Tags are erroneously copied to untagged images in a selection when new tag added. 573 ==> 375197 - It is possible to rotate video thumbnails (but the video isn't rotated). 574 ==> 334678 - Thumbnails fail to generate for certain AVI files - infinite loop. 575 ==> 400917 - Rotation of picture in Preview mode: thumbnail not rotated. 576 ==> 400960 - Do not reset horizontal scroll bar slider position when selecting album. 577 ==> 400766 - Export to Onedrive: not possible to export into subfolder. 578 ==> 398207 - Box.com video upload fails despite successful authentication. 579 ==> 401160 - Build against lensfun-devel. 580 ==> 401173 - Wish for file saving: set changed datetime to exif datetime. 581 ==> 401423 - Video sidecar files nor read or written. 582 ==> 401438 - Calendar plugin prints improper month names (Czech localization). 583 ==> 401515 - Export to OneDrive: created subfolders not correctly managed. 584 ==> 401516 - Export to (Onedrive, Dropbox ...): list of subfolders not correctly displayed (problems if several subfolders have the same name). 585 ==> 401645 - digiKam crashes on possibly damaged video-file. 586 ==> 401676 - BQM resize tool : allow to resize by percentage (%). 587 ==> 401709 - Double clicking a name in a face-frame closes image preview. 588 ==> 401811 - DB migration (SQLite -> MySQL) fails if images are in trash. 589 ==> 401767 - digiKam unable to find existing path. 590 ==> 215486 - Collection not found in location on disk with UUID (LVM volume). 591 ==> 401834 - The "Scanning Faces" dialog box is too large and can't be resized in french language. 592 ==> 401664 - Trash shows list view only no thumbnails. 593 ==> 402029 - Find New Items process takes significantly longer to finish on 6.0.0. 594 ==> 402286 - Metadata settings don't display the combo value options. 595 ==> 402288 - The default Xmp.lr.hierarchicalSubject setting does not read darktable tags. 596 ==> 402300 - Template string in Help > About. 597 ==> 402283 - Duplicate entries drive to unpredictable performance. 598 ==> 402380 - Database schema upgrade to V10 is incomplete. 599 ==> 402379 - Moving location of RAW file causes loss of metadata. 600 ==> 366211 - When changing database, cannot open thumbnails into edit window. 601 ==> 402496 - digiKam crashed after a while during face recognition. 602 ==> 402726 - Piwigo export is missing. 603 ==> 401301 - digiKam Close crash. 604 ==> 401837 - Button Caption transcription error in french. 605 ==> 398880 - digiKam stays as a background process after closing. 606 ==> 398129 - ExpoBlend tool filename dialog shows previous file's name. 607 ==> 402556 - digikam-data conflict with dropbox installation. 608 ==> 402733 - Launch failure on MacOS with Digkam 6 beta3. 609 ==> 388705 - Unexpected crash on adding new items to the collection from an external application - 5.7.0 suse packages. 610 ==> 402800 - Main album view does not update when moving images between albums. 611 ==> 402811 - Drag-n-drop disabled in Geolocation editor. 612 ==> 402812 - Use RED "recycle bin" icon from Albums context menus in all other 'delete' context menu items too. 613 ==> 402809 - Clicking on "Import" toolbar button in import preview does nothing. 614 ==> 372650 - On OS X, when tagging multiple images metadata is not correctly written to some image files or sidecars. 615 ==> 389241 - Several errors in migrating from sqlite to external mysql server. 616 ==> 402979 - Can't rename album in collection on NTFS usb drive. 617 ==> 389690 - Updated image label and image is broken after metadata is written to file. 618 ==> 402944 - crash while looking at face tags. 619 ==> 402659 - Find Similar context menu action shows no result if used on an image without a fingerprint. -620 ==> +620 ==> 225647 - Host application name instead of picasaweb in the report. +621 ==> + diff --git a/core/dplugins/bqm/colors/autocorrectionplugin.cpp b/core/dplugins/bqm/colors/autocorrectionplugin.cpp index 4f7417498c..f4bd0500b8 100644 --- a/core/dplugins/bqm/colors/autocorrectionplugin.cpp +++ b/core/dplugins/bqm/colors/autocorrectionplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to fix colors automatically * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "autocorrectionplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "autocorrection.h" namespace Digikam { AutoCorrectionPlugin::AutoCorrectionPlugin(QObject* const parent) : DPluginBqm(parent) { } AutoCorrectionPlugin::~AutoCorrectionPlugin() { } QString AutoCorrectionPlugin::name() const { return i18n("Color Auto-correction"); } QString AutoCorrectionPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AutoCorrectionPlugin::icon() const { return QIcon::fromTheme(QLatin1String("autocorrection")); } QString AutoCorrectionPlugin::description() const { return i18n("A tool to fix colors automatically"); } QString AutoCorrectionPlugin::details() const { return i18n("

This Batch Queue Manager tool can adjust colors automatically from images.

"); } QList AutoCorrectionPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void AutoCorrectionPlugin::setup(QObject* const parent) { AutoCorrection* const tool = new AutoCorrection(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/bcgcorrectionplugin.cpp b/core/dplugins/bqm/colors/bcgcorrectionplugin.cpp index 098c129b82..2e1fd53f8f 100644 --- a/core/dplugins/bqm/colors/bcgcorrectionplugin.cpp +++ b/core/dplugins/bqm/colors/bcgcorrectionplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to adjust BCG * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "bcgcorrectionplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "bcgcorrection.h" namespace Digikam { BCGCorrectionPlugin::BCGCorrectionPlugin(QObject* const parent) : DPluginBqm(parent) { } BCGCorrectionPlugin::~BCGCorrectionPlugin() { } QString BCGCorrectionPlugin::name() const { return i18n("BCG Correction"); } QString BCGCorrectionPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BCGCorrectionPlugin::icon() const { return QIcon::fromTheme(QLatin1String("contrast")); } QString BCGCorrectionPlugin::description() const { return i18n("A tool to fix Brightness / Contrast / Gamma"); } QString BCGCorrectionPlugin::details() const { return i18n("

This Batch Queue Manager tool can adjust Brightness / Contrast / Gamma from images.

"); } QList BCGCorrectionPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void BCGCorrectionPlugin::setup(QObject* const parent) { BCGCorrection* const tool = new BCGCorrection(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/bwconvertplugin.cpp b/core/dplugins/bqm/colors/bwconvertplugin.cpp index 36919a697d..362b1f4a55 100644 --- a/core/dplugins/bqm/colors/bwconvertplugin.cpp +++ b/core/dplugins/bqm/colors/bwconvertplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to Black and White * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "bwconvertplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "bwconvert.h" namespace Digikam { BWConvertPlugin::BWConvertPlugin(QObject* const parent) : DPluginBqm(parent) { } BWConvertPlugin::~BWConvertPlugin() { } QString BWConvertPlugin::name() const { return i18n("Black and White Convert"); } QString BWConvertPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BWConvertPlugin::icon() const { return QIcon::fromTheme(QLatin1String("bwtonal")); } QString BWConvertPlugin::description() const { return i18n("A tool to convert to black and white"); } QString BWConvertPlugin::details() const { return i18n("

This Batch Queue Manager tool can convert images to black and white.

"); } QList BWConvertPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void BWConvertPlugin::setup(QObject* const parent) { BWConvert* const tool = new BWConvert(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/channelmixerplugin.cpp b/core/dplugins/bqm/colors/channelmixerplugin.cpp index e257033cf5..29e080c52b 100644 --- a/core/dplugins/bqm/colors/channelmixerplugin.cpp +++ b/core/dplugins/bqm/colors/channelmixerplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to mix color channels * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "channelmixerplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "channelmixer.h" namespace Digikam { ChannelMixerPlugin::ChannelMixerPlugin(QObject* const parent) : DPluginBqm(parent) { } ChannelMixerPlugin::~ChannelMixerPlugin() { } QString ChannelMixerPlugin::name() const { return i18n("Channel Mixer"); } QString ChannelMixerPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ChannelMixerPlugin::icon() const { return QIcon::fromTheme(QLatin1String("colorfx")); } QString ChannelMixerPlugin::description() const { return i18n("A tool to mix color channel"); } QString ChannelMixerPlugin::details() const { return i18n("

This Batch Queue Manager tool can mix color channels from images.

"); } QList ChannelMixerPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void ChannelMixerPlugin::setup(QObject* const parent) { ChannelMixer* const tool = new ChannelMixer(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/colorbalanceplugin.cpp b/core/dplugins/bqm/colors/colorbalanceplugin.cpp index aa3b8d6486..cefe8e52fc 100644 --- a/core/dplugins/bqm/colors/colorbalanceplugin.cpp +++ b/core/dplugins/bqm/colors/colorbalanceplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to fix colors balance * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "colorbalanceplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "colorbalance.h" namespace Digikam { ColorBalancePlugin::ColorBalancePlugin(QObject* const parent) : DPluginBqm(parent) { } ColorBalancePlugin::~ColorBalancePlugin() { } QString ColorBalancePlugin::name() const { return i18n("Color Balance"); } QString ColorBalancePlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ColorBalancePlugin::icon() const { return QIcon::fromTheme(QLatin1String("adjustrgb")); } QString ColorBalancePlugin::description() const { return i18n("A tool to adjust color balance"); } QString ColorBalancePlugin::details() const { return i18n("

This Batch Queue Manager tool can adjust color balance from images.

"); } QList ColorBalancePlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void ColorBalancePlugin::setup(QObject* const parent) { ColorBalance* const tool = new ColorBalance(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/convert16to8plugin.cpp b/core/dplugins/bqm/colors/convert16to8plugin.cpp index 409f2281fb..ee75e51c3a 100644 --- a/core/dplugins/bqm/colors/convert16to8plugin.cpp +++ b/core/dplugins/bqm/colors/convert16to8plugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert 16 bits color depth to 8 * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "convert16to8plugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert16to8.h" namespace Digikam { Convert16To8Plugin::Convert16To8Plugin(QObject* const parent) : DPluginBqm(parent) { } Convert16To8Plugin::~Convert16To8Plugin() { } QString Convert16To8Plugin::name() const { return i18n("Convert to 8 bits"); } QString Convert16To8Plugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon Convert16To8Plugin::icon() const { return QIcon::fromTheme(QLatin1String("depth16to8")); } QString Convert16To8Plugin::description() const { return i18n("A tool to convert color depth to 8 bits"); } QString Convert16To8Plugin::details() const { return i18n("

This Batch Queue Manager tool can convert image color depth to 8 bits.

"); } QList Convert16To8Plugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void Convert16To8Plugin::setup(QObject* const parent) { Convert16to8* const tool = new Convert16to8(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/convert8to16plugin.cpp b/core/dplugins/bqm/colors/convert8to16plugin.cpp index fe460be77f..3220ea67c9 100644 --- a/core/dplugins/bqm/colors/convert8to16plugin.cpp +++ b/core/dplugins/bqm/colors/convert8to16plugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert 8 bits color depth to 16 * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "convert8to16plugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert8to16.h" namespace Digikam { Convert8To16Plugin::Convert8To16Plugin(QObject* const parent) : DPluginBqm(parent) { } Convert8To16Plugin::~Convert8To16Plugin() { } QString Convert8To16Plugin::name() const { return i18n("Convert to 16 bits"); } QString Convert8To16Plugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon Convert8To16Plugin::icon() const { return QIcon::fromTheme(QLatin1String("depth8to16")); } QString Convert8To16Plugin::description() const { return i18n("A tool to convert color depth to 16 bits"); } QString Convert8To16Plugin::details() const { return i18n("

This Batch Queue Manager tool can convert images color depth to 16 bits.

"); } QList Convert8To16Plugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void Convert8To16Plugin::setup(QObject* const parent) { Convert8to16* const tool = new Convert8to16(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/curvesadjustplugin.cpp b/core/dplugins/bqm/colors/curvesadjustplugin.cpp index 42f71f3331..c987f3c0dd 100644 --- a/core/dplugins/bqm/colors/curvesadjustplugin.cpp +++ b/core/dplugins/bqm/colors/curvesadjustplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to adjust color curves * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "curvesadjustplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "curvesadjust.h" namespace Digikam { CurvesAdjustPlugin::CurvesAdjustPlugin(QObject* const parent) : DPluginBqm(parent) { } CurvesAdjustPlugin::~CurvesAdjustPlugin() { } QString CurvesAdjustPlugin::name() const { return i18n("Curves Adjust"); } QString CurvesAdjustPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon CurvesAdjustPlugin::icon() const { return QIcon::fromTheme(QLatin1String("colorfx")); } QString CurvesAdjustPlugin::description() const { return i18n("A tool to adjust color curves"); } QString CurvesAdjustPlugin::details() const { return i18n("

This Batch Queue Manager tool can adjust the color curves from images.

"); } QList CurvesAdjustPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void CurvesAdjustPlugin::setup(QObject* const parent) { CurvesAdjust* const tool = new CurvesAdjust(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/hslcorrectionplugin.cpp b/core/dplugins/bqm/colors/hslcorrectionplugin.cpp index d91756f804..e37c01514c 100644 --- a/core/dplugins/bqm/colors/hslcorrectionplugin.cpp +++ b/core/dplugins/bqm/colors/hslcorrectionplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to adjust HSL * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "hslcorrectionplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "hslcorrection.h" namespace Digikam { HSLCorrectionPlugin::HSLCorrectionPlugin(QObject* const parent) : DPluginBqm(parent) { } HSLCorrectionPlugin::~HSLCorrectionPlugin() { } QString HSLCorrectionPlugin::name() const { return i18n("HSL Correction"); } QString HSLCorrectionPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon HSLCorrectionPlugin::icon() const { return QIcon::fromTheme(QLatin1String("adjusthsl")); } QString HSLCorrectionPlugin::description() const { return i18n("A tool to fix Hue / Saturation / Lightness"); } QString HSLCorrectionPlugin::details() const { return i18n("

This Batch Queue Manager tool can adjust Hue / Saturation / Lightness from images.

"); } QList HSLCorrectionPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void HSLCorrectionPlugin::setup(QObject* const parent) { HSLCorrection* const tool = new HSLCorrection(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/iccconvertplugin.cpp b/core/dplugins/bqm/colors/iccconvertplugin.cpp index 4c66d1b98f..0d9c6f8608 100644 --- a/core/dplugins/bqm/colors/iccconvertplugin.cpp +++ b/core/dplugins/bqm/colors/iccconvertplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to color space * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "iccconvertplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "iccconvert.h" namespace Digikam { IccConvertPlugin::IccConvertPlugin(QObject* const parent) : DPluginBqm(parent) { } IccConvertPlugin::~IccConvertPlugin() { } QString IccConvertPlugin::name() const { return i18n("Color Profile Conversion"); } QString IccConvertPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon IccConvertPlugin::icon() const { return QIcon::fromTheme(QLatin1String("preferences-desktop-display-color")); } QString IccConvertPlugin::description() const { return i18n("A tool to convert images to a color space"); } QString IccConvertPlugin::details() const { return i18n("

This Batch Queue Manager tool can convert images to a different color space.

"); } QList IccConvertPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void IccConvertPlugin::setup(QObject* const parent) { IccConvert* const tool = new IccConvert(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/invertplugin.cpp b/core/dplugins/bqm/colors/invertplugin.cpp index 3b4ec22c2d..bc6067a1d1 100644 --- a/core/dplugins/bqm/colors/invertplugin.cpp +++ b/core/dplugins/bqm/colors/invertplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to invert colors * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "invertplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "invert.h" namespace Digikam { InvertPlugin::InvertPlugin(QObject* const parent) : DPluginBqm(parent) { } InvertPlugin::~InvertPlugin() { } QString InvertPlugin::name() const { return i18n("Invert Colors"); } QString InvertPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon InvertPlugin::icon() const { return QIcon::fromTheme(QLatin1String("edit-select-invert")); } QString InvertPlugin::description() const { return i18n("A tool to invert image colors"); } QString InvertPlugin::details() const { return i18n("

This Batch Queue Manager tool can invert colors from images.

"); } QList InvertPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void InvertPlugin::setup(QObject* const parent) { Invert* const tool = new Invert(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/colors/whitebalanceplugin.cpp b/core/dplugins/bqm/colors/whitebalanceplugin.cpp index e833a119a5..0fe19d689b 100644 --- a/core/dplugins/bqm/colors/whitebalanceplugin.cpp +++ b/core/dplugins/bqm/colors/whitebalanceplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to fix white balance * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "whitebalanceplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "whitebalance.h" namespace Digikam { WhiteBalancePlugin::WhiteBalancePlugin(QObject* const parent) : DPluginBqm(parent) { } WhiteBalancePlugin::~WhiteBalancePlugin() { } QString WhiteBalancePlugin::name() const { return i18n("White Balance"); } QString WhiteBalancePlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon WhiteBalancePlugin::icon() const { return QIcon::fromTheme(QLatin1String("whitebalance")); } QString WhiteBalancePlugin::description() const { return i18n("A tool to adjust white balance"); } QString WhiteBalancePlugin::details() const { return i18n("

This Batch Queue Manager tool can adjust the white balance from images.

"); } QList WhiteBalancePlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void WhiteBalancePlugin::setup(QObject* const parent) { WhiteBalance* const tool = new WhiteBalance(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/convert/converttodngplugin.cpp b/core/dplugins/bqm/convert/converttodngplugin.cpp index f603ba8fae..85883e3f69 100644 --- a/core/dplugins/bqm/convert/converttodngplugin.cpp +++ b/core/dplugins/bqm/convert/converttodngplugin.cpp @@ -1,96 +1,96 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to DNG. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "converttodngplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert2dng.h" namespace Digikam { ConvertToDngPlugin::ConvertToDngPlugin(QObject* const parent) : DPluginBqm(parent) { } ConvertToDngPlugin::~ConvertToDngPlugin() { } QString ConvertToDngPlugin::name() const { return i18n("Convert RAW To DNG"); } QString ConvertToDngPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ConvertToDngPlugin::icon() const { return QIcon::fromTheme(QLatin1String("image-x-adobe-dng")); } QString ConvertToDngPlugin::description() const { return i18n("A tool to convert RAW images to DNG container"); } QString ConvertToDngPlugin::details() const { return i18n("

This Batch Queue Manager tool can convert RAW images data to DNG format.

" "

The Digital Negative is a lossless RAW image format created by Adobe.

" "

See details about this format from this page.

"); } QList ConvertToDngPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2015-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2015-2019")) ; } void ConvertToDngPlugin::setup(QObject* const parent) { Convert2DNG* const tool = new Convert2DNG(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/convert/converttojp2plugin.cpp b/core/dplugins/bqm/convert/converttojp2plugin.cpp index 1313610004..eaa12a7db2 100644 --- a/core/dplugins/bqm/convert/converttojp2plugin.cpp +++ b/core/dplugins/bqm/convert/converttojp2plugin.cpp @@ -1,96 +1,96 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to JPEG2000. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "converttojp2plugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert2jp2.h" namespace Digikam { ConvertToJp2Plugin::ConvertToJp2Plugin(QObject* const parent) : DPluginBqm(parent) { } ConvertToJp2Plugin::~ConvertToJp2Plugin() { } QString ConvertToJp2Plugin::name() const { return i18n("Convert To JP2"); } QString ConvertToJp2Plugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ConvertToJp2Plugin::icon() const { return QIcon::fromTheme(QLatin1String("image-jpeg")); } QString ConvertToJp2Plugin::description() const { return i18n("A tool to convert images to JPEG-2000 format"); } QString ConvertToJp2Plugin::details() const { return i18n("

This Batch Queue Manager tool can convert images data to JPEG-2000 format.

" "

This is an image compression standard and coding system. It was created by the Joint Photographic Experts Group committee in 2000 with the intention of superseding their original discrete cosine transform-based JPEG standard (created in 1992) with a newly designed, wavelet-based method.

" "

See details about this format from this page.

"); } QList ConvertToJp2Plugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void ConvertToJp2Plugin::setup(QObject* const parent) { Convert2JP2* const tool = new Convert2JP2(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/convert/converttojpegplugin.cpp b/core/dplugins/bqm/convert/converttojpegplugin.cpp index 91906881ee..1e4e8d816b 100644 --- a/core/dplugins/bqm/convert/converttojpegplugin.cpp +++ b/core/dplugins/bqm/convert/converttojpegplugin.cpp @@ -1,96 +1,96 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to jpeg. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "converttojpegplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert2jpeg.h" namespace Digikam { ConvertToJpegPlugin::ConvertToJpegPlugin(QObject* const parent) : DPluginBqm(parent) { } ConvertToJpegPlugin::~ConvertToJpegPlugin() { } QString ConvertToJpegPlugin::name() const { return i18n("Convert To JPEG"); } QString ConvertToJpegPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ConvertToJpegPlugin::icon() const { return QIcon::fromTheme(QLatin1String("image-jpeg")); } QString ConvertToJpegPlugin::description() const { return i18n("A tool to convert images to JPEG format"); } QString ConvertToJpegPlugin::details() const { return i18n("

This Batch Queue Manager tool can convert images data to JPEG format.

" "

The Joint Photographic Experts Group format is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography.

" "

See details about this format from this page.

"); } QList ConvertToJpegPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void ConvertToJpegPlugin::setup(QObject* const parent) { Convert2JPEG* const tool = new Convert2JPEG(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/convert/converttopgfplugin.cpp b/core/dplugins/bqm/convert/converttopgfplugin.cpp index 708fb36fe6..cf3d5a15ef 100644 --- a/core/dplugins/bqm/convert/converttopgfplugin.cpp +++ b/core/dplugins/bqm/convert/converttopgfplugin.cpp @@ -1,96 +1,96 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to PGF. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "converttopgfplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert2pgf.h" namespace Digikam { ConvertToPgfPlugin::ConvertToPgfPlugin(QObject* const parent) : DPluginBqm(parent) { } ConvertToPgfPlugin::~ConvertToPgfPlugin() { } QString ConvertToPgfPlugin::name() const { return i18n("Convert To PGF"); } QString ConvertToPgfPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ConvertToPgfPlugin::icon() const { return QIcon::fromTheme(QLatin1String("image-jpeg")); } QString ConvertToPgfPlugin::description() const { return i18n("A tool to convert images to PGF format"); } QString ConvertToPgfPlugin::details() const { return i18n("

This Batch Queue Manager tool can convert images data to PGF format.

" "

The Progressive Graphics File is a wavelet-based bitmapped image format that employs lossless and lossy data compression.

" "

See details about this format from this page.

"); } QList ConvertToPgfPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void ConvertToPgfPlugin::setup(QObject* const parent) { Convert2PGF* const tool = new Convert2PGF(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/convert/converttopngplugin.cpp b/core/dplugins/bqm/convert/converttopngplugin.cpp index d260169fa7..148047813d 100644 --- a/core/dplugins/bqm/convert/converttopngplugin.cpp +++ b/core/dplugins/bqm/convert/converttopngplugin.cpp @@ -1,96 +1,96 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to PNG. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "converttopngplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert2png.h" namespace Digikam { ConvertToPngPlugin::ConvertToPngPlugin(QObject* const parent) : DPluginBqm(parent) { } ConvertToPngPlugin::~ConvertToPngPlugin() { } QString ConvertToPngPlugin::name() const { return i18n("Convert To PNG"); } QString ConvertToPngPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ConvertToPngPlugin::icon() const { return QIcon::fromTheme(QLatin1String("image-png")); } QString ConvertToPngPlugin::description() const { return i18n("A tool to convert images to PNG format"); } QString ConvertToPngPlugin::details() const { return i18n("

This Batch Queue Manager tool can convert images data to PNG format.

" "

The Portable Network Graphics is a raster-graphics file-format that supports lossless data compression.

" "

See details about this format from this page.

"); } QList ConvertToPngPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void ConvertToPngPlugin::setup(QObject* const parent) { Convert2PNG* const tool = new Convert2PNG(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/convert/converttotiffplugin.cpp b/core/dplugins/bqm/convert/converttotiffplugin.cpp index c05f2873cc..032f48c6aa 100644 --- a/core/dplugins/bqm/convert/converttotiffplugin.cpp +++ b/core/dplugins/bqm/convert/converttotiffplugin.cpp @@ -1,96 +1,96 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to convert to TIFF. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "converttotiffplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "convert2tiff.h" namespace Digikam { ConvertToTiffPlugin::ConvertToTiffPlugin(QObject* const parent) : DPluginBqm(parent) { } ConvertToTiffPlugin::~ConvertToTiffPlugin() { } QString ConvertToTiffPlugin::name() const { return i18n("Convert To TIFF"); } QString ConvertToTiffPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ConvertToTiffPlugin::icon() const { return QIcon::fromTheme(QLatin1String("image-tiff")); } QString ConvertToTiffPlugin::description() const { return i18n("A tool to convert images to TIFF format"); } QString ConvertToTiffPlugin::details() const { return i18n("

This Batch Queue Manager tool can convert images data to TIFF format.

" "

The Tagged Image File Format is a computer file format for storing raster graphics images, popular among graphic artists, the publishing industry, and photographers.

" "

See details about this format from this page.

"); } QList ConvertToTiffPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void ConvertToTiffPlugin::setup(QObject* const parent) { Convert2TIFF* const tool = new Convert2TIFF(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/custom/userscriptplugin.cpp b/core/dplugins/bqm/custom/userscriptplugin.cpp index 1efcbf51e1..34ed50560a 100644 --- a/core/dplugins/bqm/custom/userscriptplugin.cpp +++ b/core/dplugins/bqm/custom/userscriptplugin.cpp @@ -1,97 +1,97 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to run user script. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "userscriptplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "userscript.h" namespace Digikam { UserScriptPlugin::UserScriptPlugin(QObject* const parent) : DPluginBqm(parent) { } UserScriptPlugin::~UserScriptPlugin() { } QString UserScriptPlugin::name() const { return i18n("User Shell Script"); } QString UserScriptPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon UserScriptPlugin::icon() const { return QIcon::fromTheme(QLatin1String("text-x-script")); } QString UserScriptPlugin::description() const { return i18n("A tool to execute a custom shell script"); } QString UserScriptPlugin::details() const { return i18n("

This Batch Queue Manager tool can run user shell script as workflow stage.

"); } QList UserScriptPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) - << DPluginAuthor(QLatin1String("Hubert Law"), - QLatin1String("hhclaw dot eb at gmail dot com"), - QLatin1String("(C) 2014")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Hubert Law"), + QString::fromUtf8("hhclaw dot eb at gmail dot com"), + QString::fromUtf8("(C) 2014")) ; } void UserScriptPlugin::setup(QObject* const parent) { UserScript* const tool = new UserScript(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/decorate/borderplugin.cpp b/core/dplugins/bqm/decorate/borderplugin.cpp index fc766ff438..eb2daf86ae 100644 --- a/core/dplugins/bqm/decorate/borderplugin.cpp +++ b/core/dplugins/bqm/decorate/borderplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to add border * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "borderplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "border.h" namespace Digikam { BorderPlugin::BorderPlugin(QObject* const parent) : DPluginBqm(parent) { } BorderPlugin::~BorderPlugin() { } QString BorderPlugin::name() const { return i18n("Add Border"); } QString BorderPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BorderPlugin::icon() const { return QIcon::fromTheme(QLatin1String("bordertool")); } QString BorderPlugin::description() const { return i18n("A tool to add a border around images"); } QString BorderPlugin::details() const { return i18n("

This Batch Queue Manager tool can add decorative border around images.

"); } QList BorderPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void BorderPlugin::setup(QObject* const parent) { Border* const tool = new Border(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/decorate/watermarkplugin.cpp b/core/dplugins/bqm/decorate/watermarkplugin.cpp index ef656ef3e4..e1f0775d05 100644 --- a/core/dplugins/bqm/decorate/watermarkplugin.cpp +++ b/core/dplugins/bqm/decorate/watermarkplugin.cpp @@ -1,100 +1,100 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to add watermark * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "watermarkplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "watermark.h" namespace Digikam { WaterMarkPlugin::WaterMarkPlugin(QObject* const parent) : DPluginBqm(parent) { } WaterMarkPlugin::~WaterMarkPlugin() { } QString WaterMarkPlugin::name() const { return i18n("Add Watermark"); } QString WaterMarkPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon WaterMarkPlugin::icon() const { return QIcon::fromTheme(QLatin1String("insert-text")); } QString WaterMarkPlugin::description() const { return i18n("A tool to overlay an image or text as a visible watermark"); } QString WaterMarkPlugin::details() const { return i18n("

This Batch Queue Manager tool can add a text watermark over images.

"); } QList WaterMarkPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) - << DPluginAuthor(QLatin1String("Mikkel Baekhoej Christensen"), - QLatin1String("mbc at baekhoej dot dk"), - QLatin1String("(C) 2010")) - << DPluginAuthor(QLatin1String("Ahmed Fathi"), - QLatin1String("ahmed dot fathi dot abdelmageed at gmail dot com"), - QLatin1String("(C) 2017")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Mikkel Baekhoej Christensen"), + QString::fromUtf8("mbc at baekhoej dot dk"), + QString::fromUtf8("(C) 2010")) + << DPluginAuthor(QString::fromUtf8("Ahmed Fathi"), + QString::fromUtf8("ahmed dot fathi dot abdelmageed at gmail dot com"), + QString::fromUtf8("(C) 2017")) ; } void WaterMarkPlugin::setup(QObject* const parent) { WaterMark* const tool = new WaterMark(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/enhance/antivignettingplugin.cpp b/core/dplugins/bqm/enhance/antivignettingplugin.cpp index 74a87dc4e6..28d76d84d2 100644 --- a/core/dplugins/bqm/enhance/antivignettingplugin.cpp +++ b/core/dplugins/bqm/enhance/antivignettingplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to correct vignetting * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "antivignettingplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "antivignetting.h" namespace Digikam { AntiVignettingPlugin::AntiVignettingPlugin(QObject* const parent) : DPluginBqm(parent) { } AntiVignettingPlugin::~AntiVignettingPlugin() { } QString AntiVignettingPlugin::name() const { return i18n("Anti-Vignetting"); } QString AntiVignettingPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AntiVignettingPlugin::icon() const { return QIcon::fromTheme(QLatin1String("antivignetting")); } QString AntiVignettingPlugin::description() const { return i18n("A tool to adjust vignetting to photograph"); } QString AntiVignettingPlugin::details() const { return i18n("

This Batch Queue Manager tool remove or add vignettings to images.

"); } QList AntiVignettingPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void AntiVignettingPlugin::setup(QObject* const parent) { AntiVignetting* const tool = new AntiVignetting(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/enhance/lensautofixplugin.cpp b/core/dplugins/bqm/enhance/lensautofixplugin.cpp index e004c64874..2964ac6977 100644 --- a/core/dplugins/bqm/enhance/lensautofixplugin.cpp +++ b/core/dplugins/bqm/enhance/lensautofixplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to reduce lens artifacts * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "lensautofixplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "lensautofix.h" namespace Digikam { LensAutoFixPlugin::LensAutoFixPlugin(QObject* const parent) : DPluginBqm(parent) { } LensAutoFixPlugin::~LensAutoFixPlugin() { } QString LensAutoFixPlugin::name() const { return i18n("Lens Auto-Correction"); } QString LensAutoFixPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon LensAutoFixPlugin::icon() const { return QIcon::fromTheme(QLatin1String("lensautofix")); } QString LensAutoFixPlugin::description() const { return i18n("A tool to fix automatically lens artifacts"); } QString LensAutoFixPlugin::details() const { return i18n("

This Batch Queue Manager tool can fix automatically lens artifacts over images.

"); } QList LensAutoFixPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void LensAutoFixPlugin::setup(QObject* const parent) { LensAutoFix* const tool = new LensAutoFix(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/enhance/localcontrastplugin.cpp b/core/dplugins/bqm/enhance/localcontrastplugin.cpp index 01600d129b..77c7e8cb9f 100644 --- a/core/dplugins/bqm/enhance/localcontrastplugin.cpp +++ b/core/dplugins/bqm/enhance/localcontrastplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to apply local contrast * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "localcontrastplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "localcontrast.h" namespace Digikam { LocalContrastPlugin::LocalContrastPlugin(QObject* const parent) : DPluginBqm(parent) { } LocalContrastPlugin::~LocalContrastPlugin() { } QString LocalContrastPlugin::name() const { return i18n("Local Contrast"); } QString LocalContrastPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon LocalContrastPlugin::icon() const { return QIcon::fromTheme(QLatin1String("contrast")); } QString LocalContrastPlugin::description() const { return i18n("A tool to emulate tone mapping"); } QString LocalContrastPlugin::details() const { return i18n("

This Batch Queue Manager tool can emulate tone mapping over images.

"); } QList LocalContrastPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void LocalContrastPlugin::setup(QObject* const parent) { LocalContrast* const tool = new LocalContrast(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/enhance/noisereductionplugin.cpp b/core/dplugins/bqm/enhance/noisereductionplugin.cpp index 07c7830335..2019dac7e1 100644 --- a/core/dplugins/bqm/enhance/noisereductionplugin.cpp +++ b/core/dplugins/bqm/enhance/noisereductionplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to to reduce noise * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "noisereductionplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "noisereduction.h" namespace Digikam { NoiseReductionPlugin::NoiseReductionPlugin(QObject* const parent) : DPluginBqm(parent) { } NoiseReductionPlugin::~NoiseReductionPlugin() { } QString NoiseReductionPlugin::name() const { return i18n("Noise Reduction"); } QString NoiseReductionPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon NoiseReductionPlugin::icon() const { return QIcon::fromTheme(QLatin1String("noisereduction")); } QString NoiseReductionPlugin::description() const { return i18n("A tool to remove photograph noise using wavelets"); } QString NoiseReductionPlugin::details() const { return i18n("

This Batch Queue Manager tool can reduce noise in images.

"); } QList NoiseReductionPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void NoiseReductionPlugin::setup(QObject* const parent) { NoiseReduction* const tool = new NoiseReduction(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/enhance/redeyecorrectionplugin.cpp b/core/dplugins/bqm/enhance/redeyecorrectionplugin.cpp index b02ae74916..60bbc74e71 100644 --- a/core/dplugins/bqm/enhance/redeyecorrectionplugin.cpp +++ b/core/dplugins/bqm/enhance/redeyecorrectionplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to reduce red eyes * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "redeyecorrectionplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "redeyecorrection.h" namespace Digikam { RedEyeCorrectionPlugin::RedEyeCorrectionPlugin(QObject* const parent) : DPluginBqm(parent) { } RedEyeCorrectionPlugin::~RedEyeCorrectionPlugin() { } QString RedEyeCorrectionPlugin::name() const { return i18n("Red Eye Correction"); } QString RedEyeCorrectionPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RedEyeCorrectionPlugin::icon() const { return QIcon::fromTheme(QLatin1String("redeyes")); } QString RedEyeCorrectionPlugin::description() const { return i18n("A tool to automatically detect and correct red eye effect"); } QString RedEyeCorrectionPlugin::details() const { return i18n("

This Batch Queue Manager tool can reduce red eye effect on images.

"); } QList RedEyeCorrectionPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Omar Amin"), - QLatin1String("Omar dot moh dot amin at gmail dot com"), - QLatin1String("(C) 2016")) + << DPluginAuthor(QString::fromUtf8("Omar Amin"), + QString::fromUtf8("Omar dot moh dot amin at gmail dot com"), + QString::fromUtf8("(C) 2016")) ; } void RedEyeCorrectionPlugin::setup(QObject* const parent) { RedEyeCorrection* const tool = new RedEyeCorrection(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/enhance/restorationplugin.cpp b/core/dplugins/bqm/enhance/restorationplugin.cpp index f973b9857b..4c858a45bc 100644 --- a/core/dplugins/bqm/enhance/restorationplugin.cpp +++ b/core/dplugins/bqm/enhance/restorationplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to restore images * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "restorationplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "restoration.h" namespace Digikam { RestorationPlugin::RestorationPlugin(QObject* const parent) : DPluginBqm(parent) { } RestorationPlugin::~RestorationPlugin() { } QString RestorationPlugin::name() const { return i18n("Restoration"); } QString RestorationPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RestorationPlugin::icon() const { return QIcon::fromTheme(QLatin1String("colorfx")); } QString RestorationPlugin::description() const { return i18n("A tool to restore images using Greystoration algorithm"); } QString RestorationPlugin::details() const { return i18n("

This Batch Queue Manager tool can restore images using Greystoration algorithm.

"); } QList RestorationPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void RestorationPlugin::setup(QObject* const parent) { Restoration* const tool = new Restoration(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/enhance/sharpenplugin.cpp b/core/dplugins/bqm/enhance/sharpenplugin.cpp index 812beb10ca..7fac7928b7 100644 --- a/core/dplugins/bqm/enhance/sharpenplugin.cpp +++ b/core/dplugins/bqm/enhance/sharpenplugin.cpp @@ -1,97 +1,97 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to sharp images * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "sharpenplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "sharpen.h" namespace Digikam { SharpenPlugin::SharpenPlugin(QObject* const parent) : DPluginBqm(parent) { } SharpenPlugin::~SharpenPlugin() { } QString SharpenPlugin::name() const { return i18n("Sharpen Image"); } QString SharpenPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon SharpenPlugin::icon() const { return QIcon::fromTheme(QLatin1String("sharpenimage")); } QString SharpenPlugin::description() const { return i18n("A tool to sharp images"); } QString SharpenPlugin::details() const { return i18n("

This Batch Queue Manager tool can sharp images.

"); } QList SharpenPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Matthias Welwarsky"), - QLatin1String("matze at welwarsky dot de"), - QLatin1String("(C) 2009")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Matthias Welwarsky"), + QString::fromUtf8("matze at welwarsky dot de"), + QString::fromUtf8("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void SharpenPlugin::setup(QObject* const parent) { Sharpen* const tool = new Sharpen(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/filters/colorfxplugin.cpp b/core/dplugins/bqm/filters/colorfxplugin.cpp index ecf6f94c86..57aa9db861 100644 --- a/core/dplugins/bqm/filters/colorfxplugin.cpp +++ b/core/dplugins/bqm/filters/colorfxplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to apply color effects * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "colorfxplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "colorfx.h" namespace Digikam { ColorFXPlugin::ColorFXPlugin(QObject* const parent) : DPluginBqm(parent) { } ColorFXPlugin::~ColorFXPlugin() { } QString ColorFXPlugin::name() const { return i18n("Color Effects"); } QString ColorFXPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ColorFXPlugin::icon() const { return QIcon::fromTheme(QLatin1String("colorfx")); } QString ColorFXPlugin::description() const { return i18n("A tool to apply color effects"); } QString ColorFXPlugin::details() const { return i18n("

This Batch Queue Manager tool can apply color effects over images.

"); } QList ColorFXPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Alexander Dymo"), - QLatin1String("adymo at develop dot org"), - QLatin1String("(C) 2012")) + << DPluginAuthor(QString::fromUtf8("Alexander Dymo"), + QString::fromUtf8("adymo at develop dot org"), + QString::fromUtf8("(C) 2012")) ; } void ColorFXPlugin::setup(QObject* const parent) { ColorFX* const tool = new ColorFX(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/filters/filmgrainplugin.cpp b/core/dplugins/bqm/filters/filmgrainplugin.cpp index dd5294a9b6..a0552a366a 100644 --- a/core/dplugins/bqm/filters/filmgrainplugin.cpp +++ b/core/dplugins/bqm/filters/filmgrainplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to apply film grain * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "filmgrainplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "filmgrain.h" namespace Digikam { FilmGrainPlugin::FilmGrainPlugin(QObject* const parent) : DPluginBqm(parent) { } FilmGrainPlugin::~FilmGrainPlugin() { } QString FilmGrainPlugin::name() const { return i18n("Film Grain"); } QString FilmGrainPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FilmGrainPlugin::icon() const { return QIcon::fromTheme(QLatin1String("filmgrain")); } QString FilmGrainPlugin::description() const { return i18n("A tool to add film grain"); } QString FilmGrainPlugin::details() const { return i18n("

This Batch Queue Manager tool can add film grain over images.

"); } QList FilmGrainPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void FilmGrainPlugin::setup(QObject* const parent) { FilmGrain* const tool = new FilmGrain(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/metadata/assigntemplateplugin.cpp b/core/dplugins/bqm/metadata/assigntemplateplugin.cpp index ce57e5274c..5696ab339e 100644 --- a/core/dplugins/bqm/metadata/assigntemplateplugin.cpp +++ b/core/dplugins/bqm/metadata/assigntemplateplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to assign template * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "assigntemplateplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "assigntemplate.h" namespace Digikam { AssignTemplatePlugin::AssignTemplatePlugin(QObject* const parent) : DPluginBqm(parent) { } AssignTemplatePlugin::~AssignTemplatePlugin() { } QString AssignTemplatePlugin::name() const { return i18n("Apply Metadata Template"); } QString AssignTemplatePlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AssignTemplatePlugin::icon() const { return QIcon::fromTheme(QLatin1String("text-xml")); } QString AssignTemplatePlugin::description() const { return i18n("A tool to apply metadata template to images"); } QString AssignTemplatePlugin::details() const { return i18n("

This Batch Queue Manager tool can apply metadata template over images.

"); } QList AssignTemplatePlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void AssignTemplatePlugin::setup(QObject* const parent) { AssignTemplate* const tool = new AssignTemplate(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/metadata/removemetadataplugin.cpp b/core/dplugins/bqm/metadata/removemetadataplugin.cpp index 589f34d33a..b9e7be4ef6 100644 --- a/core/dplugins/bqm/metadata/removemetadataplugin.cpp +++ b/core/dplugins/bqm/metadata/removemetadataplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to remove metadata * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "removemetadataplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "removemetadata.h" namespace Digikam { RemoveMetadataPlugin::RemoveMetadataPlugin(QObject* const parent) : DPluginBqm(parent) { } RemoveMetadataPlugin::~RemoveMetadataPlugin() { } QString RemoveMetadataPlugin::name() const { return i18n("Remove Metadata"); } QString RemoveMetadataPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RemoveMetadataPlugin::icon() const { return QIcon::fromTheme(QLatin1String("format-text-code")); } QString RemoveMetadataPlugin::description() const { return i18n("A tool to remove Exif, Iptc, or Xmp metadata from images"); } QString RemoveMetadataPlugin::details() const { return i18n("

This Batch Queue Manager tool can remove metadata as Exif, Iptc, or Xmp from images.

"); } QList RemoveMetadataPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void RemoveMetadataPlugin::setup(QObject* const parent) { RemoveMetadata* const tool = new RemoveMetadata(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/metadata/timeadjustplugin.cpp b/core/dplugins/bqm/metadata/timeadjustplugin.cpp index 9e5cc95ee9..944140fe11 100644 --- a/core/dplugins/bqm/metadata/timeadjustplugin.cpp +++ b/core/dplugins/bqm/metadata/timeadjustplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to ajust time * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "timeadjustplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "timeadjust.h" namespace Digikam { TimeAdjustPlugin::TimeAdjustPlugin(QObject* const parent) : DPluginBqm(parent) { } TimeAdjustPlugin::~TimeAdjustPlugin() { } QString TimeAdjustPlugin::name() const { return i18n("Time Adjust"); } QString TimeAdjustPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon TimeAdjustPlugin::icon() const { return QIcon::fromTheme(QLatin1String("appointment-new")); } QString TimeAdjustPlugin::description() const { return i18n("A tool to adjust date and time-stamp from images"); } QString TimeAdjustPlugin::details() const { return i18n("

This Batch Queue Manager tool can adjust time in images.

"); } QList TimeAdjustPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void TimeAdjustPlugin::setup(QObject* const parent) { TimeAdjust* const tool = new TimeAdjust(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/transform/cropplugin.cpp b/core/dplugins/bqm/transform/cropplugin.cpp index e88d452622..90ce4ee33b 100644 --- a/core/dplugins/bqm/transform/cropplugin.cpp +++ b/core/dplugins/bqm/transform/cropplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to crop images. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "cropplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "crop.h" namespace Digikam { CropPlugin::CropPlugin(QObject* const parent) : DPluginBqm(parent) { } CropPlugin::~CropPlugin() { } QString CropPlugin::name() const { return i18n("Crop"); } QString CropPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon CropPlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-crop")); } QString CropPlugin::description() const { return i18n("A tool to crop images to a region"); } QString CropPlugin::details() const { return i18n("

This Batch Queue Manager tool can crop images to a region.

"); } QList CropPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2012-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2012-2019")) ; } void CropPlugin::setup(QObject* const parent) { Crop* const tool = new Crop(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/transform/flipplugin.cpp b/core/dplugins/bqm/transform/flipplugin.cpp index 64f5c4a82f..8b0c7ba157 100644 --- a/core/dplugins/bqm/transform/flipplugin.cpp +++ b/core/dplugins/bqm/transform/flipplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to flip images. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "flipplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "flip.h" namespace Digikam { FlipPlugin::FlipPlugin(QObject* const parent) : DPluginBqm(parent) { } FlipPlugin::~FlipPlugin() { } QString FlipPlugin::name() const { return i18n("Flip"); } QString FlipPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FlipPlugin::icon() const { return QIcon::fromTheme(QLatin1String("object-flip-vertical")); } QString FlipPlugin::description() const { return i18n("A tool to flip images horizontally or vertically"); } QString FlipPlugin::details() const { return i18n("

This Batch Queue Manager tool can run user shell script as workflow stage.

"); } QList FlipPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void FlipPlugin::setup(QObject* const parent) { Flip* const tool = new Flip(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/transform/resizeplugin.cpp b/core/dplugins/bqm/transform/resizeplugin.cpp index 41f94c2b0f..001297ccc4 100644 --- a/core/dplugins/bqm/transform/resizeplugin.cpp +++ b/core/dplugins/bqm/transform/resizeplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to resize images. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "resizeplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "resize.h" namespace Digikam { ResizePlugin::ResizePlugin(QObject* const parent) : DPluginBqm(parent) { } ResizePlugin::~ResizePlugin() { } QString ResizePlugin::name() const { return i18n("Resize"); } QString ResizePlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ResizePlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-scale")); } QString ResizePlugin::description() const { return i18n("A tool to resize images with a customized length"); } QString ResizePlugin::details() const { return i18n("

This Batch Queue Manager tool can resize images.

"); } QList ResizePlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void ResizePlugin::setup(QObject* const parent) { Resize* const tool = new Resize(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/bqm/transform/rotateplugin.cpp b/core/dplugins/bqm/transform/rotateplugin.cpp index 7ce74831d0..ae83e983b4 100644 --- a/core/dplugins/bqm/transform/rotateplugin.cpp +++ b/core/dplugins/bqm/transform/rotateplugin.cpp @@ -1,94 +1,94 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a BQM plugin to rotate images. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "rotateplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "digikam_debug.h" #include "rotate.h" namespace Digikam { RotatePlugin::RotatePlugin(QObject* const parent) : DPluginBqm(parent) { } RotatePlugin::~RotatePlugin() { } QString RotatePlugin::name() const { return i18n("Rotate"); } QString RotatePlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RotatePlugin::icon() const { return QIcon::fromTheme(QLatin1String("object-rotate-right")); } QString RotatePlugin::description() const { return i18n("A tool to rotate images"); } QString RotatePlugin::details() const { return i18n("

This Batch Queue Manager tool can rotate images.

"); } QList RotatePlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void RotatePlugin::setup(QObject* const parent) { Rotate* const tool = new Rotate(parent); tool->setPlugin(this); addTool(tool); } } // namespace Digikam diff --git a/core/dplugins/editor/colors/adjustcurvestoolplugin.cpp b/core/dplugins/editor/colors/adjustcurvestoolplugin.cpp index f00a54b80c..057631f0a5 100644 --- a/core/dplugins/editor/colors/adjustcurvestoolplugin.cpp +++ b/core/dplugins/editor/colors/adjustcurvestoolplugin.cpp @@ -1,112 +1,112 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to adjust color curves. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "adjustcurvestoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "adjustcurvestool.h" namespace Digikam { AdjustCurvesToolPlugin::AdjustCurvesToolPlugin(QObject* const parent) : DPluginEditor(parent) { } AdjustCurvesToolPlugin::~AdjustCurvesToolPlugin() { } QString AdjustCurvesToolPlugin::name() const { return i18n("Adjust Curves"); } QString AdjustCurvesToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AdjustCurvesToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("adjustcurves")); } QString AdjustCurvesToolPlugin::description() const { return i18n("A tool to adjust color curves"); } QString AdjustCurvesToolPlugin::details() const { return i18n("

This Image Editor tool can adjust the color curves from image.

"); } QList AdjustCurvesToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void AdjustCurvesToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Curves Adjust...")); ac->setObjectName(QLatin1String("editorwindow_color_adjustcurves")); // NOTE: Photoshop 7 use CTRL+M (but it's used in KDE to toogle menu bar). ac->setShortcut(Qt::CTRL+Qt::SHIFT+Qt::Key_C); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotAdjustCurvesTool())); addAction(ac); } void AdjustCurvesToolPlugin::slotAdjustCurvesTool() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { AdjustCurvesTool* const tool = new AdjustCurvesTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/adjustlevelstoolplugin.cpp b/core/dplugins/editor/colors/adjustlevelstoolplugin.cpp index ab5f4c81c4..6a2f9ff1b2 100644 --- a/core/dplugins/editor/colors/adjustlevelstoolplugin.cpp +++ b/core/dplugins/editor/colors/adjustlevelstoolplugin.cpp @@ -1,112 +1,112 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to adjust color levels. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "adjustlevelstoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "adjustlevelstool.h" namespace Digikam { AdjustLevelsToolPlugin::AdjustLevelsToolPlugin(QObject* const parent) : DPluginEditor(parent) { } AdjustLevelsToolPlugin::~AdjustLevelsToolPlugin() { } QString AdjustLevelsToolPlugin::name() const { return i18n("Adjust Levels"); } QString AdjustLevelsToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AdjustLevelsToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("adjustlevels")); } QString AdjustLevelsToolPlugin::description() const { return i18n("A tool to adjust color levels"); } QString AdjustLevelsToolPlugin::details() const { return i18n("

This Image Editor tool can adjust the color levels from image.

"); } QList AdjustLevelsToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void AdjustLevelsToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Levels Adjust...")); ac->setObjectName(QLatin1String("editorwindow_color_adjustlevels")); // NOTE: Photoshop 7 use CTRL+M (but it's used in KDE to toogle menu bar). ac->setShortcut(Qt::CTRL+Qt::Key_L); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotAdjustCurvesTool())); addAction(ac); } void AdjustLevelsToolPlugin::slotAdjustCurvesTool() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { AdjustLevelsTool* const tool = new AdjustLevelsTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/autocorrectiontoolplugin.cpp b/core/dplugins/editor/colors/autocorrectiontoolplugin.cpp index 04d72f5a71..d12d4f9c46 100644 --- a/core/dplugins/editor/colors/autocorrectiontoolplugin.cpp +++ b/core/dplugins/editor/colors/autocorrectiontoolplugin.cpp @@ -1,112 +1,112 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to fix colors automatically * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "autocorrectiontoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "autocorrectiontool.h" namespace Digikam { AutoCorrectionToolPlugin::AutoCorrectionToolPlugin(QObject* const parent) : DPluginEditor(parent) { } AutoCorrectionToolPlugin::~AutoCorrectionToolPlugin() { } QString AutoCorrectionToolPlugin::name() const { return i18n("Auto Correction"); } QString AutoCorrectionToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AutoCorrectionToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("autocorrection")); } QString AutoCorrectionToolPlugin::description() const { return i18n("A tool to fix colors automatically"); } QString AutoCorrectionToolPlugin::details() const { return i18n("

This Image Editor tool can adjust colors automatically from image.

"); } QList AutoCorrectionToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void AutoCorrectionToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Auto-Correction...")); ac->setObjectName(QLatin1String("editorwindow_color_autocorrection")); // NOTE: Photoshop 7 use CTRL+SHIFT+B ac->setShortcut(Qt::CTRL+Qt::SHIFT+Qt::Key_B); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotAutoCorrection())); addAction(ac); } void AutoCorrectionToolPlugin::slotAutoCorrection() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { AutoCorrectionTool* const tool = new AutoCorrectionTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/bcgtoolplugin.cpp b/core/dplugins/editor/colors/bcgtoolplugin.cpp index fb7423f8de..525e2f966d 100644 --- a/core/dplugins/editor/colors/bcgtoolplugin.cpp +++ b/core/dplugins/editor/colors/bcgtoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to fix BCG. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "bcgtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "bcgtool.h" namespace Digikam { BCGToolPlugin::BCGToolPlugin(QObject* const parent) : DPluginEditor(parent) { } BCGToolPlugin::~BCGToolPlugin() { } QString BCGToolPlugin::name() const { return i18n("BCG Correction"); } QString BCGToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BCGToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("contrast")); } QString BCGToolPlugin::description() const { return i18n("A tool to fix Brightness / Contrast / Gamma"); } QString BCGToolPlugin::details() const { return i18n("

This Image Editor tool can adjust Brightness / Contrast / Gamma from image.

"); } QList BCGToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Renchi Raju"), - QLatin1String("renchi dot raju at gmail dot com"), - QLatin1String("(C) 2004")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Renchi Raju"), + QString::fromUtf8("renchi dot raju at gmail dot com"), + QString::fromUtf8("(C) 2004")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void BCGToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Brightness/Contrast/Gamma...")); ac->setObjectName(QLatin1String("editorwindow_color_bcg")); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotBCGTool())); addAction(ac); } void BCGToolPlugin::slotBCGTool() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { BCGTool* const tool = new BCGTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/bwsepiatoolplugin.cpp b/core/dplugins/editor/colors/bwsepiatoolplugin.cpp index a0b2a103f2..5a1c9d399e 100644 --- a/core/dplugins/editor/colors/bwsepiatoolplugin.cpp +++ b/core/dplugins/editor/colors/bwsepiatoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to convert to Black and White * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "bwsepiatoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "bwsepiatool.h" namespace Digikam { BWSepiaToolPlugin::BWSepiaToolPlugin(QObject* const parent) : DPluginEditor(parent) { } BWSepiaToolPlugin::~BWSepiaToolPlugin() { } QString BWSepiaToolPlugin::name() const { return i18n("Black and White"); } QString BWSepiaToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BWSepiaToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("bwtonal")); } QString BWSepiaToolPlugin::description() const { return i18n("A tool to convert to black and white"); } QString BWSepiaToolPlugin::details() const { return i18n("

This Image Editor tool can can convert image to black and white.

"); } QList BWSepiaToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Renchi Raju"), - QLatin1String("renchi dot raju at gmail dot com"), - QLatin1String("(C) 2004-2005")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019")) + << DPluginAuthor(QString::fromUtf8("Renchi Raju"), + QString::fromUtf8("renchi dot raju at gmail dot com"), + QString::fromUtf8("(C) 2004-2005")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019")) ; } void BWSepiaToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Black && White...")); ac->setObjectName(QLatin1String("editorwindow_color_blackwhite")); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotBWSepia())); addAction(ac); } void BWSepiaToolPlugin::slotBWSepia() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { BWSepiaTool* const tool = new BWSepiaTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/cbtoolplugin.cpp b/core/dplugins/editor/colors/cbtoolplugin.cpp index 16533abe74..171d41d469 100644 --- a/core/dplugins/editor/colors/cbtoolplugin.cpp +++ b/core/dplugins/editor/colors/cbtoolplugin.cpp @@ -1,112 +1,112 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to fix colors balance * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "cbtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "cbtool.h" namespace Digikam { CBToolPlugin::CBToolPlugin(QObject* const parent) : DPluginEditor(parent) { } CBToolPlugin::~CBToolPlugin() { } QString CBToolPlugin::name() const { return i18n("Color Balance"); } QString CBToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon CBToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("adjustrgb")); } QString CBToolPlugin::description() const { return i18n("A tool to adjust color balance"); } QString CBToolPlugin::details() const { return i18n("

This Image Editor tool can adjust color balance from image.

"); } QList CBToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void CBToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Color Balance...")); ac->setObjectName(QLatin1String("editorwindow_color_rgb")); // NOTE: Photoshop 7 use CTRL+B. ac->setShortcut(Qt::CTRL+Qt::Key_B); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotColorBalance())); addAction(ac); } void CBToolPlugin::slotColorBalance() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { CBTool* const tool = new CBTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/channelmixertoolplugin.cpp b/core/dplugins/editor/colors/channelmixertoolplugin.cpp index 9330755663..40996936b9 100644 --- a/core/dplugins/editor/colors/channelmixertoolplugin.cpp +++ b/core/dplugins/editor/colors/channelmixertoolplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to mix color channels * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "channelmixertoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "channelmixertool.h" namespace Digikam { ChannelMixerToolPlugin::ChannelMixerToolPlugin(QObject* const parent) : DPluginEditor(parent) { } ChannelMixerToolPlugin::~ChannelMixerToolPlugin() { } QString ChannelMixerToolPlugin::name() const { return i18n("Channel Mixer"); } QString ChannelMixerToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ChannelMixerToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("channelmixer")); } QString ChannelMixerToolPlugin::description() const { return i18n("A tool to mix color channel"); } QString ChannelMixerToolPlugin::details() const { return i18n("

This Image Editor tool can mix color channels from image.

"); } QList ChannelMixerToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void ChannelMixerToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Channel Mixer...")); ac->setObjectName(QLatin1String("editorwindow_color_channelmixer")); ac->setShortcut(Qt::CTRL+Qt::Key_H); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotChannelMixer())); addAction(ac); } void ChannelMixerToolPlugin::slotChannelMixer() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { ChannelMixerTool* const tool = new ChannelMixerTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/convert16to8toolplugin.cpp b/core/dplugins/editor/colors/convert16to8toolplugin.cpp index f8d41b56c4..3c7c0ec4d1 100644 --- a/core/dplugins/editor/colors/convert16to8toolplugin.cpp +++ b/core/dplugins/editor/colors/convert16to8toolplugin.cpp @@ -1,129 +1,129 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to convert 16 bits color depth to 8. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "convert16to8toolplugin.h" // Qt includes #include #include // KDE includes #include // Local includes #include "imageiface.h" #include "dmessagebox.h" namespace Digikam { Convert16To8ToolPlugin::Convert16To8ToolPlugin(QObject* const parent) : DPluginEditor(parent) { } Convert16To8ToolPlugin::~Convert16To8ToolPlugin() { } QString Convert16To8ToolPlugin::name() const { return i18n("Convert to 8 bits"); } QString Convert16To8ToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon Convert16To8ToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("depth16to8")); } QString Convert16To8ToolPlugin::description() const { return i18n("A tool to convert color depth to 8 bits"); } QString Convert16To8ToolPlugin::details() const { return i18n("

This Image Editor tool can convert image color depth to 8 bits.

"); } QList Convert16To8ToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void Convert16To8ToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Convert to 8 bits")); ac->setObjectName(QLatin1String("editorwindow_convertto8bits")); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotConvert16To8())); addAction(ac); } void Convert16To8ToolPlugin::slotConvert16To8() { ImageIface iface; if (!iface.originalSixteenBit()) { QMessageBox::critical(qApp->activeWindow(), qApp->applicationName(), i18n("This image is already using a depth of 8 bits / color / pixel.")); return; } else { if (DMessageBox::showContinueCancel(QMessageBox::Warning, qApp->activeWindow(), qApp->applicationName(), i18n("Performing this operation will reduce image color quality. " "Do you want to continue?"), QLatin1String("ToolColor16To8Bits")) == QMessageBox::Cancel) { return; } } qApp->setOverrideCursor(Qt::WaitCursor); iface.convertOriginalColorDepth(32); qApp->restoreOverrideCursor(); } } // namespace Digikam diff --git a/core/dplugins/editor/colors/convert8to16toolplugin.cpp b/core/dplugins/editor/colors/convert8to16toolplugin.cpp index d265939db6..d8224cb2c7 100644 --- a/core/dplugins/editor/colors/convert8to16toolplugin.cpp +++ b/core/dplugins/editor/colors/convert8to16toolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to convert 8 bits color depth to 16 * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "convert8to16toolplugin.h" // Qt includes #include #include // KDE includes #include // Local includes #include "imageiface.h" namespace Digikam { Convert8To16ToolPlugin::Convert8To16ToolPlugin(QObject* const parent) : DPluginEditor(parent) { } Convert8To16ToolPlugin::~Convert8To16ToolPlugin() { } QString Convert8To16ToolPlugin::name() const { return i18n("Convert to 16 bits"); } QString Convert8To16ToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon Convert8To16ToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("depth8to16")); } QString Convert8To16ToolPlugin::description() const { return i18n("A tool to convert color depth to 16 bits"); } QString Convert8To16ToolPlugin::details() const { return i18n("

This Image Editor tool can convert image color depth to 16 bits.

"); } QList Convert8To16ToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void Convert8To16ToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Convert to 16 bits")); ac->setObjectName(QLatin1String("editorwindow_convertto16bits")); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotConvert8To16())); addAction(ac); } void Convert8To16ToolPlugin::slotConvert8To16() { ImageIface iface; if (iface.originalSixteenBit()) { QMessageBox::critical(qApp->activeWindow(), qApp->applicationName(), i18n("This image is already using a depth of 16 bits / color / pixel.")); return; } qApp->setOverrideCursor(Qt::WaitCursor); iface.convertOriginalColorDepth(64); qApp->restoreOverrideCursor();} } // namespace Digikam diff --git a/core/dplugins/editor/colors/filmtoolplugin.cpp b/core/dplugins/editor/colors/filmtoolplugin.cpp index 8e75fc3ef8..f78effa82f 100644 --- a/core/dplugins/editor/colors/filmtoolplugin.cpp +++ b/core/dplugins/editor/colors/filmtoolplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to emulate film color * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "filmtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "filmtool.h" namespace Digikam { FilmToolPlugin::FilmToolPlugin(QObject* const parent) : DPluginEditor(parent) { } FilmToolPlugin::~FilmToolPlugin() { } QString FilmToolPlugin::name() const { return i18n("Color Negative Film"); } QString FilmToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FilmToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("colorneg")); } QString FilmToolPlugin::description() const { return i18n("A tool to emulate color negative film"); } QString FilmToolPlugin::details() const { return i18n("

This Image Editor tool can emulate color negative film from image.

"); } QList FilmToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Matthias Welwarsky"), - QLatin1String("matthias at welwarsky dot de"), - QLatin1String("(C) 2012")) + << DPluginAuthor(QString::fromUtf8("Matthias Welwarsky"), + QString::fromUtf8("matthias at welwarsky dot de"), + QString::fromUtf8("(C) 2012")) ; } void FilmToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Color Negative...")); ac->setObjectName(QLatin1String("editorwindow_color_film")); ac->setShortcut(Qt::CTRL+Qt::SHIFT+Qt::Key_I); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotFilmTool())); addAction(ac); } void FilmToolPlugin::slotFilmTool() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { FilmTool* const tool = new FilmTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/hsltoolplugin.cpp b/core/dplugins/editor/colors/hsltoolplugin.cpp index 7489302a4d..97c027a083 100644 --- a/core/dplugins/editor/colors/hsltoolplugin.cpp +++ b/core/dplugins/editor/colors/hsltoolplugin.cpp @@ -1,112 +1,112 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to adjust HSL * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "hsltoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "hsltool.h" namespace Digikam { HSLToolPlugin::HSLToolPlugin(QObject* const parent) : DPluginEditor(parent) { } HSLToolPlugin::~HSLToolPlugin() { } QString HSLToolPlugin::name() const { return i18n("HSL Correction"); } QString HSLToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon HSLToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("adjusthsl")); } QString HSLToolPlugin::description() const { return i18n("A tool to fix Hue / Saturation / Lightness"); } QString HSLToolPlugin::details() const { return i18n("

This Image Editor tool can adjust Hue / Saturation / Lightness from image.

"); } QList HSLToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void HSLToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Hue/Saturation/Lightness...")); ac->setObjectName(QLatin1String("editorwindow_color_hsl")); // NOTE: Photoshop 7 use CTRL+U. ac->setShortcut(Qt::CTRL+Qt::Key_U); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotHSL())); addAction(ac); } void HSLToolPlugin::slotHSL() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { HSLTool* const tool = new HSLTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/inverttoolplugin.cpp b/core/dplugins/editor/colors/inverttoolplugin.cpp index 729f9adb45..a3c30079e0 100644 --- a/core/dplugins/editor/colors/inverttoolplugin.cpp +++ b/core/dplugins/editor/colors/inverttoolplugin.cpp @@ -1,112 +1,112 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to invert colors. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "inverttoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "imageiface.h" #include "invertfilter.h" namespace Digikam { InvertToolPlugin::InvertToolPlugin(QObject* const parent) : DPluginEditor(parent) { } InvertToolPlugin::~InvertToolPlugin() { } QString InvertToolPlugin::name() const { return i18n("Invert Colors"); } QString InvertToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon InvertToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("edit-select-invert")); } QString InvertToolPlugin::description() const { return i18n("A tool to invert image colors"); } QString InvertToolPlugin::details() const { return i18n("

This Image Editor tool can invert colors from image.

"); } QList InvertToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void InvertToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Invert")); ac->setObjectName(QLatin1String("editorwindow_color_invert")); // NOTE: Photoshop 7 use CTRL+I. ac->setShortcut(Qt::CTRL+Qt::Key_I); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotInvert())); addAction(ac); } void InvertToolPlugin::slotInvert() { qApp->setOverrideCursor(Qt::WaitCursor); ImageIface iface; InvertFilter invert(iface.original(), 0L); invert.startFilterDirectly(); iface.setOriginal(i18n("Invert"), invert.filterAction(), invert.getTargetImage()); qApp->restoreOverrideCursor(); } } // namespace Digikam diff --git a/core/dplugins/editor/colors/profileconversiontoolplugin.cpp b/core/dplugins/editor/colors/profileconversiontoolplugin.cpp index 7d47c69dfc..20d7902976 100644 --- a/core/dplugins/editor/colors/profileconversiontoolplugin.cpp +++ b/core/dplugins/editor/colors/profileconversiontoolplugin.cpp @@ -1,214 +1,214 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to convert to color space * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "profileconversiontoolplugin.h" // Qt includes #include #include #include // KDE includes #include // Local includes #include "editorwindow.h" #include "profileconversiontool.h" #include "iccprofilescombobox.h" #include "iccsettings.h" #include "iccsettingscontainer.h" #include "icctransform.h" #include "imageiface.h" namespace Digikam { ProfileConversionToolPlugin::ProfileConversionToolPlugin(QObject* const parent) : DPluginEditor(parent) { } ProfileConversionToolPlugin::~ProfileConversionToolPlugin() { } QString ProfileConversionToolPlugin::name() const { return i18n("Color Profile Conversion"); } QString ProfileConversionToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ProfileConversionToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("preferences-desktop-display-color")); } QString ProfileConversionToolPlugin::description() const { return i18n("A tool to convert image to a color space"); } QString ProfileConversionToolPlugin::details() const { return i18n("

This Image Editor tool can can convert image to a different color space.

"); } QList ProfileConversionToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2009-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2009-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void ProfileConversionToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); m_profileMenuAction = new IccProfilesMenuAction(icon(), QString(), parent); connect(m_profileMenuAction, SIGNAL(triggered(IccProfile)), this, SLOT(slotConvertToColorSpace(IccProfile))); connect(IccSettings::instance(), SIGNAL(settingsChanged()), this, SLOT(slotUpdateColorSpaceMenu())); ac->setMenu(m_profileMenuAction); ac->setText(i18n("Color Spaces")); ac->setObjectName(QLatin1String("editorwindow_colormanagement")); ac->setActionCategory(DPluginAction::EditorColors); addAction(ac); DPluginAction* const ac2 = new DPluginAction(parent); ac2->setIcon(icon()); ac2->setText(i18nc("@action", "Color Space Converter...")); ac2->setObjectName(QLatin1String("editorwindow_color_spaceconverter")); ac2->setActionCategory(DPluginAction::EditorColors); connect(ac2, SIGNAL(triggered(bool)), this, SLOT(slotProfileConversionTool())); m_colorSpaceConverter = ac2; addAction(ac2); slotUpdateColorSpaceMenu(); } void ProfileConversionToolPlugin::slotConvertToColorSpace(const IccProfile& profile) { ImageIface iface; if (iface.originalIccProfile().isNull()) { QMessageBox::critical(qApp->activeWindow(), qApp->applicationName(), i18n("This image is not color managed.")); return; } qApp->setOverrideCursor(Qt::WaitCursor); ProfileConversionTool::fastConversion(profile); qApp->restoreOverrideCursor(); } void ProfileConversionToolPlugin::slotUpdateColorSpaceMenu() { m_profileMenuAction->clear(); if (!IccSettings::instance()->isEnabled()) { QAction* const action = new QAction(i18n("Color Management is disabled..."), this); m_profileMenuAction->addAction(action); connect(action, SIGNAL(triggered()), this, SLOT(slotSetupICC())); } else { ICCSettingsContainer settings = IccSettings::instance()->settings(); QList standardProfiles, favoriteProfiles; QSet standardProfilePaths, favoriteProfilePaths; standardProfiles << IccProfile::sRGB() << IccProfile::adobeRGB() << IccProfile::wideGamutRGB() << IccProfile::proPhotoRGB(); foreach (IccProfile profile, standardProfiles) // krazy:exclude=foreach { m_profileMenuAction->addProfile(profile, profile.description()); standardProfilePaths << profile.filePath(); } m_profileMenuAction->addSeparator(); favoriteProfilePaths = QSet::fromList(ProfileConversionTool::favoriteProfiles()); favoriteProfilePaths -= standardProfilePaths; foreach (const QString& path, favoriteProfilePaths) { favoriteProfiles << IccProfile(path); } m_profileMenuAction->addProfiles(favoriteProfiles); } m_profileMenuAction->addSeparator(); m_profileMenuAction->addAction(m_colorSpaceConverter); EditorWindow* const editor = dynamic_cast(m_profileMenuAction->parent()); if (editor) { m_colorSpaceConverter->setEnabled(editor->actionEnabledState() && IccSettings::instance()->isEnabled()); } } void ProfileConversionToolPlugin::slotProfileConversionTool() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { ProfileConversionTool* const tool = new ProfileConversionTool(this); tool->setPlugin(this); connect(tool, SIGNAL(okClicked()), this, SLOT(slotUpdateColorSpaceMenu())); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/colors/whitebalancetoolplugin.cpp b/core/dplugins/editor/colors/whitebalancetoolplugin.cpp index 21c525ddba..2b61931ba8 100644 --- a/core/dplugins/editor/colors/whitebalancetoolplugin.cpp +++ b/core/dplugins/editor/colors/whitebalancetoolplugin.cpp @@ -1,114 +1,114 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to fix white balance * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "whitebalancetoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "whitebalancetool.h" namespace Digikam { WhiteBalanceToolPlugin::WhiteBalanceToolPlugin(QObject* const parent) : DPluginEditor(parent) { } WhiteBalanceToolPlugin::~WhiteBalanceToolPlugin() { } QString WhiteBalanceToolPlugin::name() const { return i18n("White Balance"); } QString WhiteBalanceToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon WhiteBalanceToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("whitebalance")); } QString WhiteBalanceToolPlugin::description() const { return i18n("A tool to adjust white balance"); } QString WhiteBalanceToolPlugin::details() const { return i18n("

This Image Editor tool can can adjust the white balance from image.

"); } QList WhiteBalanceToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) - << DPluginAuthor(QLatin1String("Guillaume Castagnino"), - QLatin1String("casta at xwing dot info"), - QLatin1String("(C) 2008-2009")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Guillaume Castagnino"), + QString::fromUtf8("casta at xwing dot info"), + QString::fromUtf8("(C) 2008-2009")) ; } void WhiteBalanceToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "White Balance...")); ac->setObjectName(QLatin1String("editorwindow_color_whitebalance")); ac->setShortcut(Qt::CTRL+Qt::SHIFT+Qt::Key_W); ac->setActionCategory(DPluginAction::EditorColors); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotWhiteBalance())); addAction(ac); } void WhiteBalanceToolPlugin::slotWhiteBalance() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { WhiteBalanceTool* const tool = new WhiteBalanceTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/decorate/bordertoolplugin.cpp b/core/dplugins/editor/decorate/bordertoolplugin.cpp index 1824f9aa22..5bdda35322 100644 --- a/core/dplugins/editor/decorate/bordertoolplugin.cpp +++ b/core/dplugins/editor/decorate/bordertoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to add border * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "bordertoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "bordertool.h" namespace Digikam { BorderToolPlugin::BorderToolPlugin(QObject* const parent) : DPluginEditor(parent) { } BorderToolPlugin::~BorderToolPlugin() { } QString BorderToolPlugin::name() const { return i18n("Add Border"); } QString BorderToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BorderToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("bordertool")); } QString BorderToolPlugin::description() const { return i18n("A tool to add a border around image"); } QString BorderToolPlugin::details() const { return i18n("

This Image Editor tool can add decorative border around image.

"); } QList BorderToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void BorderToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Add Border...")); ac->setObjectName(QLatin1String("editorwindow_decorate_border")); ac->setActionCategory(DPluginAction::EditorDecorate); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotBorder())); addAction(ac); } void BorderToolPlugin::slotBorder() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { BorderTool* const tool = new BorderTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/decorate/inserttexttoolplugin.cpp b/core/dplugins/editor/decorate/inserttexttoolplugin.cpp index 031a4168e5..77de3278bf 100644 --- a/core/dplugins/editor/decorate/inserttexttoolplugin.cpp +++ b/core/dplugins/editor/decorate/inserttexttoolplugin.cpp @@ -1,114 +1,114 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to insert text * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "inserttexttoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "inserttexttool.h" namespace Digikam { InsertTextToolPlugin::InsertTextToolPlugin(QObject* const parent) : DPluginEditor(parent) { } InsertTextToolPlugin::~InsertTextToolPlugin() { } QString InsertTextToolPlugin::name() const { return i18n("Insert Text"); } QString InsertTextToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon InsertTextToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("insert-text")); } QString InsertTextToolPlugin::description() const { return i18n("A tool to insert text over an image"); } QString InsertTextToolPlugin::details() const { return i18n("

This Image Editor tool can insert text over an image.

"); } QList InsertTextToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void InsertTextToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Insert Text...")); ac->setObjectName(QLatin1String("editorwindow_decorate_inserttext")); ac->setShortcut(Qt::SHIFT+Qt::CTRL+Qt::Key_T); ac->setActionCategory(DPluginAction::EditorDecorate); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotInsertText())); addAction(ac); } void InsertTextToolPlugin::slotInsertText() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { InsertTextTool* const tool = new InsertTextTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/decorate/texturetoolplugin.cpp b/core/dplugins/editor/decorate/texturetoolplugin.cpp index b02790e697..2a1afe83e7 100644 --- a/core/dplugins/editor/decorate/texturetoolplugin.cpp +++ b/core/dplugins/editor/decorate/texturetoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to add texture * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "texturetoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "texturetool.h" namespace Digikam { TextureToolPlugin::TextureToolPlugin(QObject* const parent) : DPluginEditor(parent) { } TextureToolPlugin::~TextureToolPlugin() { } QString TextureToolPlugin::name() const { return i18n("Texture"); } QString TextureToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon TextureToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("texture")); } QString TextureToolPlugin::description() const { return i18n("A tool to apply a texture over an image"); } QString TextureToolPlugin::details() const { return i18n("

This Image Editor tool can apply a texture over an image.

"); } QList TextureToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2010")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2010")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void TextureToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Apply Texture...")); ac->setObjectName(QLatin1String("editorwindow_decorate_texture")); ac->setActionCategory(DPluginAction::EditorDecorate); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotTexture())); addAction(ac); } void TextureToolPlugin::slotTexture() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { TextureTool* const tool = new TextureTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/antivignettingtoolplugin.cpp b/core/dplugins/editor/enhance/antivignettingtoolplugin.cpp index bfee690d28..13c29fde4d 100644 --- a/core/dplugins/editor/enhance/antivignettingtoolplugin.cpp +++ b/core/dplugins/editor/enhance/antivignettingtoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to reduce vignetting * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "antivignettingtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "antivignettingtool.h" namespace Digikam { AntiVignettingToolPlugin::AntiVignettingToolPlugin(QObject* const parent) : DPluginEditor(parent) { } AntiVignettingToolPlugin::~AntiVignettingToolPlugin() { } QString AntiVignettingToolPlugin::name() const { return i18n("Vignetting Correction"); } QString AntiVignettingToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AntiVignettingToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("antivignetting")); } QString AntiVignettingToolPlugin::description() const { return i18n("A tool to correct vignetting"); } QString AntiVignettingToolPlugin::details() const { return i18n("

This Image Editor tool correct vignetting from an image.

"); } QList AntiVignettingToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Julien Narboux"), - QLatin1String("julien at narboux dot fr"), - QLatin1String("(C) 2010")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Julien Narboux"), + QString::fromUtf8("julien at narboux dot fr"), + QString::fromUtf8("(C) 2010")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void AntiVignettingToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Vignetting Correction...")); ac->setObjectName(QLatin1String("editorwindow_enhance_antivignetting")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotAntiVignetting())); addAction(ac); } void AntiVignettingToolPlugin::slotAntiVignetting() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { AntiVignettingTool* const tool = new AntiVignettingTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/blurtoolplugin.cpp b/core/dplugins/editor/enhance/blurtoolplugin.cpp index 0138adf6cd..d226fd58a4 100644 --- a/core/dplugins/editor/enhance/blurtoolplugin.cpp +++ b/core/dplugins/editor/enhance/blurtoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to blur an image * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "blurtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "blurtool.h" namespace Digikam { BlurToolPlugin::BlurToolPlugin(QObject* const parent) : DPluginEditor(parent) { } BlurToolPlugin::~BlurToolPlugin() { } QString BlurToolPlugin::name() const { return i18n("Blur"); } QString BlurToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BlurToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("blurimage")); } QString BlurToolPlugin::description() const { return i18n("A tool to blur an image"); } QString BlurToolPlugin::details() const { return i18n("

This Image Editor tool can blur an image.

"); } QList BlurToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Andi Clemens"), - QLatin1String("andi dot clemens at gmail dot com"), - QLatin1String("(C) 2009")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Andi Clemens"), + QString::fromUtf8("andi dot clemens at gmail dot com"), + QString::fromUtf8("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void BlurToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Blur...")); ac->setObjectName(QLatin1String("editorwindow_enhance_blur")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotBlur())); addAction(ac); } void BlurToolPlugin::slotBlur() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { BlurTool* const tool = new BlurTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/healingclone/healingclonetoolplugin.cpp b/core/dplugins/editor/enhance/healingclone/healingclonetoolplugin.cpp index 9acb99ac62..0cd27c0e2e 100644 --- a/core/dplugins/editor/enhance/healingclone/healingclonetoolplugin.cpp +++ b/core/dplugins/editor/enhance/healingclone/healingclonetoolplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to reduce image artifacts * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "healingclonetoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "healingclonetool.h" namespace Digikam { HealingCloneToolPlugin::HealingCloneToolPlugin(QObject* const parent) : DPluginEditor(parent) { } HealingCloneToolPlugin::~HealingCloneToolPlugin() { } QString HealingCloneToolPlugin::name() const { return i18n("Healing Clone Tool"); } QString HealingCloneToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon HealingCloneToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("edit-clone")); } QString HealingCloneToolPlugin::description() const { return i18n("A tool to fix image artifacts"); } QString HealingCloneToolPlugin::details() const { return i18n("

This Image Editor tool can fix image artifacts by cloning area.

"); } QList HealingCloneToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Shaza Ismail Kaoud shaza dot ismail dot k at gmail dot com"), - QLatin1String("shaza dot ismail dot k at gmail dot com"), - QLatin1String("(C) 2017")) + << DPluginAuthor(QString::fromUtf8("Shaza Ismail Kaoud shaza dot ismail dot k at gmail dot com"), + QString::fromUtf8("shaza dot ismail dot k at gmail dot com"), + QString::fromUtf8("(C) 2017")) ; } void HealingCloneToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Healing Clone...")); ac->setObjectName(QLatin1String("editorwindow_enhance_healingclone")); ac->setWhatsThis(i18n( "This filter can be used to clone a part in a photo to erase unwanted region.")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotHealingClone())); addAction(ac); } void HealingCloneToolPlugin::slotHealingClone() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { HealingCloneTool* const tool = new HealingCloneTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/hotpixels/hotpixelstoolplugin.cpp b/core/dplugins/editor/enhance/hotpixels/hotpixelstoolplugin.cpp index e634bc67ba..9de51de367 100644 --- a/core/dplugins/editor/enhance/hotpixels/hotpixelstoolplugin.cpp +++ b/core/dplugins/editor/enhance/hotpixels/hotpixelstoolplugin.cpp @@ -1,115 +1,115 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to fix hot pixels * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "hotpixelstoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "hotpixelstool.h" namespace Digikam { HotPixelsToolPlugin::HotPixelsToolPlugin(QObject* const parent) : DPluginEditor(parent) { } HotPixelsToolPlugin::~HotPixelsToolPlugin() { } QString HotPixelsToolPlugin::name() const { return i18n("Hot Pixels"); } QString HotPixelsToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon HotPixelsToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("hotpixels")); } QString HotPixelsToolPlugin::description() const { return i18n("A tool to fix hot pixels"); } QString HotPixelsToolPlugin::details() const { return i18n("

This Image Editor tool can fix hot pixels from an image.

"); } QList HotPixelsToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Unai Garro"), - QLatin1String("ugarro at users dot sourceforge dot net"), - QLatin1String("(C) 2005-2006")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Unai Garro"), + QString::fromUtf8("ugarro at users dot sourceforge dot net"), + QString::fromUtf8("(C) 2005-2006")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void HotPixelsToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Hot Pixels...")); ac->setObjectName(QLatin1String("editorwindow_enhance_hotpixels")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotHotPixels())); addAction(ac); HotPixelsTool::registerFilter(); } void HotPixelsToolPlugin::slotHotPixels() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { HotPixelsTool* const tool = new HotPixelsTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/lensautofixtoolplugin.cpp b/core/dplugins/editor/enhance/lensautofixtoolplugin.cpp index 667f522c0c..1f2630c5fa 100644 --- a/core/dplugins/editor/enhance/lensautofixtoolplugin.cpp +++ b/core/dplugins/editor/enhance/lensautofixtoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to reduce lens artifacts * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "lensautofixtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "lensautofixtool.h" namespace Digikam { LensAutoFixToolPlugin::LensAutoFixToolPlugin(QObject* const parent) : DPluginEditor(parent) { } LensAutoFixToolPlugin::~LensAutoFixToolPlugin() { } QString LensAutoFixToolPlugin::name() const { return i18n("Lens Auto-Correction"); } QString LensAutoFixToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon LensAutoFixToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("lensautofix")); } QString LensAutoFixToolPlugin::description() const { return i18n("A tool to fix automatically lens artifacts"); } QString LensAutoFixToolPlugin::details() const { return i18n("

This Image Editor tool can fix automatically lens artifacts over an image.

"); } QList LensAutoFixToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Adrian Schroeter"), - QLatin1String("adrian at suse dot de"), - QLatin1String("(C) 2008")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) + << DPluginAuthor(QString::fromUtf8("Adrian Schroeter"), + QString::fromUtf8("adrian at suse dot de"), + QString::fromUtf8("(C) 2008")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void LensAutoFixToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Auto-Correction...")); ac->setObjectName(QLatin1String("editorwindow_enhance_lensautofix")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotLensAutoFix())); addAction(ac); } void LensAutoFixToolPlugin::slotLensAutoFix() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { LensAutoFixTool* const tool = new LensAutoFixTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/lensdistortiontoolplugin.cpp b/core/dplugins/editor/enhance/lensdistortiontoolplugin.cpp index 04dda54894..6bc2211563 100644 --- a/core/dplugins/editor/enhance/lensdistortiontoolplugin.cpp +++ b/core/dplugins/editor/enhance/lensdistortiontoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to reduce lens distortions * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "lensdistortiontoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "lensdistortiontool.h" namespace Digikam { LensDistortionToolPlugin::LensDistortionToolPlugin(QObject* const parent) : DPluginEditor(parent) { } LensDistortionToolPlugin::~LensDistortionToolPlugin() { } QString LensDistortionToolPlugin::name() const { return i18n("Lens Distortion"); } QString LensDistortionToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon LensDistortionToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("lensdistortion")); } QString LensDistortionToolPlugin::description() const { return i18n("A tool to adjust lens distortions"); } QString LensDistortionToolPlugin::details() const { return i18n("

This Image Editor tool can adjust lens distortions from an image.

"); } QList LensDistortionToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2010")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2010")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void LensDistortionToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Distortion...")); ac->setObjectName(QLatin1String("editorwindow_enhance_lensdistortion")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotLensDistortion())); addAction(ac); } void LensDistortionToolPlugin::slotLensDistortion() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { LensDistortionTool* const tool = new LensDistortionTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/localcontrasttoolplugin.cpp b/core/dplugins/editor/enhance/localcontrasttoolplugin.cpp index 92bbadb1e8..664bee48e5 100644 --- a/core/dplugins/editor/enhance/localcontrasttoolplugin.cpp +++ b/core/dplugins/editor/enhance/localcontrasttoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to restore an image * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "localcontrasttoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "localcontrasttool.h" namespace Digikam { LocalContrastToolPlugin::LocalContrastToolPlugin(QObject* const parent) : DPluginEditor(parent) { } LocalContrastToolPlugin::~LocalContrastToolPlugin() { } QString LocalContrastToolPlugin::name() const { return i18n("Local Contrast"); } QString LocalContrastToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon LocalContrastToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("contrast")); } QString LocalContrastToolPlugin::description() const { return i18n("A tool to emulate tone mapping"); } QString LocalContrastToolPlugin::details() const { return i18n("

This Image Editor tool can emulate tone mapping over an image.

"); } QList LocalContrastToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Julien Pontabry"), - QLatin1String("julien dot pontabry at gmail dot com"), - QLatin1String("(C) 2009")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Julien Pontabry"), + QString::fromUtf8("julien dot pontabry at gmail dot com"), + QString::fromUtf8("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void LocalContrastToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Local Contrast...")); ac->setObjectName(QLatin1String("editorwindow_enhance_localcontrast")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotLocalContrast())); addAction(ac); } void LocalContrastToolPlugin::slotLocalContrast() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { LocalContrastTool* const tool = new LocalContrastTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/noisereductiontoolplugin.cpp b/core/dplugins/editor/enhance/noisereductiontoolplugin.cpp index abeb2afde9..5fe4f89d88 100644 --- a/core/dplugins/editor/enhance/noisereductiontoolplugin.cpp +++ b/core/dplugins/editor/enhance/noisereductiontoolplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to reduce noise * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "noisereductiontoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "noisereductiontool.h" namespace Digikam { LocalContrastToolPlugin::LocalContrastToolPlugin(QObject* const parent) : DPluginEditor(parent) { } LocalContrastToolPlugin::~LocalContrastToolPlugin() { } QString LocalContrastToolPlugin::name() const { return i18n("Noise Reduction"); } QString LocalContrastToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon LocalContrastToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("noisereduction")); } QString LocalContrastToolPlugin::description() const { return i18n("A tool to remove photograph noise using wavelets"); } QString LocalContrastToolPlugin::details() const { return i18n("

This Image Editor tool can reduce noise in image.

"); } QList LocalContrastToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void LocalContrastToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Noise Reduction...")); ac->setObjectName(QLatin1String("editorwindow_enhance_noisereduction")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotNoiseReduction())); addAction(ac); } void LocalContrastToolPlugin::slotNoiseReduction() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { NoiseReductionTool* const tool = new NoiseReductionTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/redeyetoolplugin.cpp b/core/dplugins/editor/enhance/redeyetoolplugin.cpp index 90c405174e..b882d28e39 100644 --- a/core/dplugins/editor/enhance/redeyetoolplugin.cpp +++ b/core/dplugins/editor/enhance/redeyetoolplugin.cpp @@ -1,115 +1,115 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to restore an image * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "redeyetoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "redeyetool.h" namespace Digikam { RedEyeToolPlugin::RedEyeToolPlugin(QObject* const parent) : DPluginEditor(parent) { } RedEyeToolPlugin::~RedEyeToolPlugin() { } QString RedEyeToolPlugin::name() const { return i18n("Red Eye"); } QString RedEyeToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RedEyeToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("redeye")); } QString RedEyeToolPlugin::description() const { return i18n("A tool to automatically detect and correct red eye effect"); } QString RedEyeToolPlugin::details() const { return i18n("

This Image Editor tool can reduce red eye effect on image.

"); } QList RedEyeToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Renchi Raju"), - QLatin1String("renchi dot raju at gmail dot com"), - QLatin1String("(C) 2004-2005")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Renchi Raju"), + QString::fromUtf8("renchi dot raju at gmail dot com"), + QString::fromUtf8("(C) 2004-2005")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void RedEyeToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Red Eye...")); ac->setWhatsThis(i18n("This filter can be used to correct red eyes in a photo. " "Select a region including the eyes to use this option.")); ac->setObjectName(QLatin1String("editorwindow_enhance_redeye")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotRedEye())); addAction(ac); } void RedEyeToolPlugin::slotRedEye() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { RedEyeTool* const tool = new RedEyeTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/restorationtoolplugin.cpp b/core/dplugins/editor/enhance/restorationtoolplugin.cpp index ec9b5d4eb6..a8c9f2025e 100644 --- a/core/dplugins/editor/enhance/restorationtoolplugin.cpp +++ b/core/dplugins/editor/enhance/restorationtoolplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to restore an image * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "restorationtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "restorationtool.h" namespace Digikam { RestoreToolPlugin::RestoreToolPlugin(QObject* const parent) : DPluginEditor(parent) { } RestoreToolPlugin::~RestoreToolPlugin() { } QString RestoreToolPlugin::name() const { return i18n("Restoration"); } QString RestoreToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RestoreToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("restoration")); } QString RestoreToolPlugin::description() const { return i18n("A tool to restore an image using Greystoration algorithm"); } QString RestoreToolPlugin::details() const { return i18n("

This Image Editor tool can restore an image using Greystoration algorithm.

"); } QList RestoreToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void RestoreToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Restoration...")); ac->setObjectName(QLatin1String("editorwindow_enhance_restoration")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotRestore())); addAction(ac); } void RestoreToolPlugin::slotRestore() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { RestorationTool* const tool = new RestorationTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/enhance/sharpentoolplugin.cpp b/core/dplugins/editor/enhance/sharpentoolplugin.cpp index a6f7138ad6..5fad84e1ec 100644 --- a/core/dplugins/editor/enhance/sharpentoolplugin.cpp +++ b/core/dplugins/editor/enhance/sharpentoolplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to sharp image * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "sharpentoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "sharpentool.h" namespace Digikam { SharpenToolPlugin::SharpenToolPlugin(QObject* const parent) : DPluginEditor(parent) { } SharpenToolPlugin::~SharpenToolPlugin() { } QString SharpenToolPlugin::name() const { return i18n("Sharpen"); } QString SharpenToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon SharpenToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("sharpenimage")); } QString SharpenToolPlugin::description() const { return i18n("A tool to sharp an image"); } QString SharpenToolPlugin::details() const { return i18n("

This Image Editor tool can sharp an image.

"); } QList SharpenToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void SharpenToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Sharpen...")); ac->setObjectName(QLatin1String("editorwindow_enhance_sharpen")); ac->setActionCategory(DPluginAction::EditorEnhance); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotSharpen())); addAction(ac); } void SharpenToolPlugin::slotSharpen() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { SharpenTool* const tool = new SharpenTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/file/print/printplugin.cpp b/core/dplugins/editor/file/print/printplugin.cpp index a10039911e..4b584294d6 100644 --- a/core/dplugins/editor/file/print/printplugin.cpp +++ b/core/dplugins/editor/file/print/printplugin.cpp @@ -1,122 +1,122 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to print an image * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "printplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "imageiface.h" #include "editorwindow.h" #include "printhelper.h" namespace Digikam { PrintToolPlugin::PrintToolPlugin(QObject* const parent) : DPluginEditor(parent) { } PrintToolPlugin::~PrintToolPlugin() { } QString PrintToolPlugin::name() const { return i18n("Print Image"); } QString PrintToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon PrintToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("document-print-frame")); } QString PrintToolPlugin::description() const { return i18n("A tool to print an image"); } QString PrintToolPlugin::details() const { return i18n("

This Image Editor tool can print an image.

"); } QList PrintToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Angelo Naselli"), - QLatin1String("anaselli at linux dot it"), - QLatin1String("(C) 2009")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Angelo Naselli"), + QString::fromUtf8("anaselli at linux dot it"), + QString::fromUtf8("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void PrintToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Print Image...")); ac->setObjectName(QLatin1String("editorwindow_print")); ac->setShortcut(Qt::CTRL + Qt::Key_P); ac->setActionCategory(DPluginAction::EditorFile); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotPrint())); addAction(ac); } void PrintToolPlugin::slotPrint() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { ImageIface iface; DImg* const image = iface.original(); if (!image || image->isNull()) { return; } PrintHelper printHelp(editor); printHelp.print(*image); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/blurfxtoolplugin.cpp b/core/dplugins/editor/filters/blurfxtoolplugin.cpp index 75cc0d66d9..8eaf093f6b 100644 --- a/core/dplugins/editor/filters/blurfxtoolplugin.cpp +++ b/core/dplugins/editor/filters/blurfxtoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to apply blur effects. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "blurfxtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "blurfxtool.h" namespace Digikam { BlurFXToolPlugin::BlurFXToolPlugin(QObject* const parent) : DPluginEditor(parent) { } BlurFXToolPlugin::~BlurFXToolPlugin() { } QString BlurFXToolPlugin::name() const { return i18n("Blur Effects"); } QString BlurFXToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BlurFXToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("blurfx")); } QString BlurFXToolPlugin::description() const { return i18n("A tool to apply blur effects to an image"); } QString BlurFXToolPlugin::details() const { return i18n("

This Image Editor tool can apply blur effects to an image.

"); } QList BlurFXToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void BlurFXToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Blur Effects...")); ac->setObjectName(QLatin1String("editorwindow_filter_blurfx")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotBlurFX())); addAction(ac); } void BlurFXToolPlugin::slotBlurFX() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { BlurFXTool* const tool = new BlurFXTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/charcoaltoolplugin.cpp b/core/dplugins/editor/filters/charcoaltoolplugin.cpp index f1ef088ee7..e3825d9750 100644 --- a/core/dplugins/editor/filters/charcoaltoolplugin.cpp +++ b/core/dplugins/editor/filters/charcoaltoolplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to emulate charcoal drawing. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "charcoaltoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "charcoaltool.h" namespace Digikam { CharcoalToolPlugin::CharcoalToolPlugin(QObject* const parent) : DPluginEditor(parent) { } CharcoalToolPlugin::~CharcoalToolPlugin() { } QString CharcoalToolPlugin::name() const { return i18n("Charcoal Drawing"); } QString CharcoalToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon CharcoalToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("charcoaltool")); } QString CharcoalToolPlugin::description() const { return i18n("A tool to emulate charcoal drawing"); } QString CharcoalToolPlugin::details() const { return i18n("

This Image Editor tool can emulate charcoal drawing to an image.

"); } QList CharcoalToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void CharcoalToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Charcoal Drawing...")); ac->setObjectName(QLatin1String("editorwindow_filter_charcoal")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotCharcoal())); addAction(ac); } void CharcoalToolPlugin::slotCharcoal() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { CharcoalTool* const tool = new CharcoalTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/colorfxtoolplugin.cpp b/core/dplugins/editor/filters/colorfxtoolplugin.cpp index 460b863cf4..e2e3588bf3 100644 --- a/core/dplugins/editor/filters/colorfxtoolplugin.cpp +++ b/core/dplugins/editor/filters/colorfxtoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to apply color effects. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "colorfxtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "colorfxtool.h" namespace Digikam { ColorFXToolPlugin::ColorFXToolPlugin(QObject* const parent) : DPluginEditor(parent) { } ColorFXToolPlugin::~ColorFXToolPlugin() { } QString ColorFXToolPlugin::name() const { return i18n("Color Effects"); } QString ColorFXToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ColorFXToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("colorfx")); } QString ColorFXToolPlugin::description() const { return i18n("A tool to apply color effects to an image"); } QString ColorFXToolPlugin::details() const { return i18n("

This Image Editor tool can apply color effects to an image.

"); } QList ColorFXToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Renchi Raju"), - QLatin1String("renchi dot raju at gmail dot com"), - QLatin1String("(C) 2004-2005")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019")) + << DPluginAuthor(QString::fromUtf8("Renchi Raju"), + QString::fromUtf8("renchi dot raju at gmail dot com"), + QString::fromUtf8("(C) 2004-2005")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019")) ; } void ColorFXToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Color Effects...")); ac->setObjectName(QLatin1String("editorwindow_filter_colorfx")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotColorFX())); addAction(ac); } void ColorFXToolPlugin::slotColorFX() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { ColorFxTool* const tool = new ColorFxTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/distortionfxtoolplugin.cpp b/core/dplugins/editor/filters/distortionfxtoolplugin.cpp index a4e8c70bc2..b82e81b7f9 100644 --- a/core/dplugins/editor/filters/distortionfxtoolplugin.cpp +++ b/core/dplugins/editor/filters/distortionfxtoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to apply distortion effects. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "distortionfxtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "distortionfxtool.h" namespace Digikam { DistortionFXToolPlugin::DistortionFXToolPlugin(QObject* const parent) : DPluginEditor(parent) { } DistortionFXToolPlugin::~DistortionFXToolPlugin() { } QString DistortionFXToolPlugin::name() const { return i18n("Distortion Effects"); } QString DistortionFXToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon DistortionFXToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("draw-spiral")); } QString DistortionFXToolPlugin::description() const { return i18n("A tool to apply distortion effects to an image"); } QString DistortionFXToolPlugin::details() const { return i18n("

This Image Editor tool can apply distortion effects to an image.

"); } QList DistortionFXToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void DistortionFXToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Distortion Effects...")); ac->setObjectName(QLatin1String("editorwindow_filter_distortionfx")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotDistortionFX())); addAction(ac); } void DistortionFXToolPlugin::slotDistortionFX() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { DistortionFXTool* const tool = new DistortionFXTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/embosstoolplugin.cpp b/core/dplugins/editor/filters/embosstoolplugin.cpp index 17471109de..6c427d1527 100644 --- a/core/dplugins/editor/filters/embosstoolplugin.cpp +++ b/core/dplugins/editor/filters/embosstoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to emboss an image. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "embosstoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "embosstool.h" namespace Digikam { EmbossToolPlugin::EmbossToolPlugin(QObject* const parent) : DPluginEditor(parent) { } EmbossToolPlugin::~EmbossToolPlugin() { } QString EmbossToolPlugin::name() const { return i18n("Emboss"); } QString EmbossToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon EmbossToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("embosstool")); } QString EmbossToolPlugin::description() const { return i18n("A tool to emboss an image"); } QString EmbossToolPlugin::details() const { return i18n("

This Image Editor tool can emboss an image.

"); } QList EmbossToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void EmbossToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Emboss...")); ac->setObjectName(QLatin1String("editorwindow_filter_emboss")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotEmboss())); addAction(ac); } void EmbossToolPlugin::slotEmboss() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { EmbossTool* const tool = new EmbossTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/filmgraintoolplugin.cpp b/core/dplugins/editor/filters/filmgraintoolplugin.cpp index 27dd60157c..1052d8432f 100644 --- a/core/dplugins/editor/filters/filmgraintoolplugin.cpp +++ b/core/dplugins/editor/filters/filmgraintoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to add film grain over an image. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "filmgraintoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "filmgraintool.h" namespace Digikam { FilmGrainToolPlugin::FilmGrainToolPlugin(QObject* const parent) : DPluginEditor(parent) { } FilmGrainToolPlugin::~FilmGrainToolPlugin() { } QString FilmGrainToolPlugin::name() const { return i18n("Film Grain"); } QString FilmGrainToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FilmGrainToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("filmgrain")); } QString FilmGrainToolPlugin::description() const { return i18n("A tool to add film grain over an image"); } QString FilmGrainToolPlugin::details() const { return i18n("

This Image Editor tool can add film grain over an image.

"); } QList FilmGrainToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void FilmGrainToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Add Film Grain...")); ac->setObjectName(QLatin1String("editorwindow_filter_filmgrain")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotFilmGrain())); addAction(ac); } void FilmGrainToolPlugin::slotFilmGrain() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { FilmGrainTool* const tool = new FilmGrainTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/oilpainttoolplugin.cpp b/core/dplugins/editor/filters/oilpainttoolplugin.cpp index 4fd1e74568..d398655ad3 100644 --- a/core/dplugins/editor/filters/oilpainttoolplugin.cpp +++ b/core/dplugins/editor/filters/oilpainttoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to emulate oil painting. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "oilpainttoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "oilpainttool.h" namespace Digikam { OilPaintToolPlugin::OilPaintToolPlugin(QObject* const parent) : DPluginEditor(parent) { } OilPaintToolPlugin::~OilPaintToolPlugin() { } QString OilPaintToolPlugin::name() const { return i18n("Oil Paint"); } QString OilPaintToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon OilPaintToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("oilpaint")); } QString OilPaintToolPlugin::description() const { return i18n("A tool to emulate oil painting"); } QString OilPaintToolPlugin::details() const { return i18n("

This Image Editor tool can emulate oil painting over an image.

"); } QList OilPaintToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void OilPaintToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Oil Paint...")); ac->setObjectName(QLatin1String("editorwindow_filter_oilpaint")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotOilPaint())); addAction(ac); } void OilPaintToolPlugin::slotOilPaint() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { OilPaintTool* const tool = new OilPaintTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/filters/raindroptoolplugin.cpp b/core/dplugins/editor/filters/raindroptoolplugin.cpp index 53089b4b86..896f9a933a 100644 --- a/core/dplugins/editor/filters/raindroptoolplugin.cpp +++ b/core/dplugins/editor/filters/raindroptoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to add rain drops over an image. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "raindroptoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "raindroptool.h" namespace Digikam { RainDropToolPlugin::RainDropToolPlugin(QObject* const parent) : DPluginEditor(parent) { } RainDropToolPlugin::~RainDropToolPlugin() { } QString RainDropToolPlugin::name() const { return i18n("Raindrops"); } QString RainDropToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RainDropToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("raindrop")); } QString RainDropToolPlugin::description() const { return i18n("A tool to add rain drops over an image"); } QString RainDropToolPlugin::details() const { return i18n("

This Image Editor tool can add rain drops over an image.

"); } QList RainDropToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019")) ; } void RainDropToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Raindrops...")); ac->setObjectName(QLatin1String("editorwindow_filter_raindrop")); ac->setActionCategory(DPluginAction::EditorFilters); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotRainDrop())); addAction(ac); } void RainDropToolPlugin::slotRainDrop() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { RainDropTool* const tool = new RainDropTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/transform/autocroptoolplugin.cpp b/core/dplugins/editor/transform/autocroptoolplugin.cpp index a7f2640c9d..dbb08b01a6 100644 --- a/core/dplugins/editor/transform/autocroptoolplugin.cpp +++ b/core/dplugins/editor/transform/autocroptoolplugin.cpp @@ -1,117 +1,117 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to auto-crop an image. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "autocroptoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "imageiface.h" #include "autocrop.h" namespace Digikam { AutoCropToolPlugin::AutoCropToolPlugin(QObject* const parent) : DPluginEditor(parent) { } AutoCropToolPlugin::~AutoCropToolPlugin() { } QString AutoCropToolPlugin::name() const { return i18n("Auto-Crop"); } QString AutoCropToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon AutoCropToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-crop")); } QString AutoCropToolPlugin::description() const { return i18n("A tool to auto-crop an image"); } QString AutoCropToolPlugin::details() const { return i18n("

This Image Editor tool can crop automatically an image by detection of inner black border," "generated while panorama stitching for example.

"); } QList AutoCropToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Sayantan Datta"), - QLatin1String("sayantan dot knz at gmail dot com"), - QLatin1String("(C) 2013")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2013-2019")) + << DPluginAuthor(QString::fromUtf8("Sayantan Datta"), + QString::fromUtf8("sayantan dot knz at gmail dot com"), + QString::fromUtf8("(C) 2013")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2013-2019")) ; } void AutoCropToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "&Auto-Crop")); ac->setObjectName(QLatin1String("editorwindow_transform_autocrop")); ac->setWhatsThis(i18n("This option can be used to crop automatically the image.")); ac->setShortcut(Qt::SHIFT + Qt::CTRL + Qt::Key_X); ac->setActionCategory(DPluginAction::EditorTransform); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotAutoCrop())); addAction(ac); } void AutoCropToolPlugin::slotAutoCrop() { QApplication::setOverrideCursor(Qt::WaitCursor); ImageIface iface; AutoCrop ac(iface.original()); ac.startFilterDirectly(); QRect rect = ac.autoInnerCrop(); iface.crop(rect); QApplication::restoreOverrideCursor(); } } // namespace Digikam diff --git a/core/dplugins/editor/transform/contentawareresizetoolplugin.cpp b/core/dplugins/editor/transform/contentawareresizetoolplugin.cpp index 75630ffd9e..f80eb13333 100644 --- a/core/dplugins/editor/transform/contentawareresizetoolplugin.cpp +++ b/core/dplugins/editor/transform/contentawareresizetoolplugin.cpp @@ -1,116 +1,116 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to resize an image with content analysis * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "contentawareresizetoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "contentawareresizetool.h" namespace Digikam { ContentAwareResizeToolPlugin::ContentAwareResizeToolPlugin(QObject* const parent) : DPluginEditor(parent) { } ContentAwareResizeToolPlugin::~ContentAwareResizeToolPlugin() { } QString ContentAwareResizeToolPlugin::name() const { return i18n("Liquid Rescale"); } QString ContentAwareResizeToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ContentAwareResizeToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-scale")); } QString ContentAwareResizeToolPlugin::description() const { return i18n("A tool to resize an image with content analysis"); } QString ContentAwareResizeToolPlugin::details() const { return i18n("

This Image Editor tool can resize an image with content analysis.

"); } QList ContentAwareResizeToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Julien Pontabry"), - QLatin1String("julien dot pontabry at ulp dot u-strasbg dot fr"), - QLatin1String("(C) 2009-2010")) - << DPluginAuthor(QLatin1String("Julien Narboux"), - QLatin1String("julien at narboux dot fr"), - QLatin1String("(C) 2009-2010")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019")) + << DPluginAuthor(QString::fromUtf8("Julien Pontabry"), + QString::fromUtf8("julien dot pontabry at ulp dot u-strasbg dot fr"), + QString::fromUtf8("(C) 2009-2010")) + << DPluginAuthor(QString::fromUtf8("Julien Narboux"), + QString::fromUtf8("julien at narboux dot fr"), + QString::fromUtf8("(C) 2009-2010")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019")) ; } void ContentAwareResizeToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Liquid Rescale...")); ac->setObjectName(QLatin1String("editorwindow_transform_contentawareresizing")); ac->setActionCategory(DPluginAction::EditorTransform); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotContentAwareResize())); addAction(ac); } void ContentAwareResizeToolPlugin::slotContentAwareResize() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { ContentAwareResizeTool* const tool = new ContentAwareResizeTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/transform/freerotationtoolplugin.cpp b/core/dplugins/editor/transform/freerotationtoolplugin.cpp index c91d93a077..f6d6096ba4 100644 --- a/core/dplugins/editor/transform/freerotationtoolplugin.cpp +++ b/core/dplugins/editor/transform/freerotationtoolplugin.cpp @@ -1,144 +1,144 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to rotate an image. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "freerotationtoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "freerotationtool.h" namespace Digikam { FreeRotationToolPlugin::FreeRotationToolPlugin(QObject* const parent) : DPluginEditor(parent) { } FreeRotationToolPlugin::~FreeRotationToolPlugin() { } QString FreeRotationToolPlugin::name() const { return i18n("Free Rotation"); } QString FreeRotationToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FreeRotationToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-rotate")); } QString FreeRotationToolPlugin::description() const { return i18n("A tool to rotate an image"); } QString FreeRotationToolPlugin::details() const { return i18n("

This Image Editor tool can rotate an image with an abitrary angle.

"); } QList FreeRotationToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Andi Clemens"), - QLatin1String("andi dot clemens at gmail dot com"), - QLatin1String("(C) 2009-2010")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Andi Clemens"), + QString::fromUtf8("andi dot clemens at gmail dot com"), + QString::fromUtf8("(C) 2009-2010")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void FreeRotationToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Free Rotation...")); ac->setObjectName(QLatin1String("editorwindow_transform_freerotation")); ac->setActionCategory(DPluginAction::EditorTransform); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotFreeRotation())); addAction(ac); QAction* const point1Action = new QAction(i18n("Free Rotation Set Point 1"), parent); point1Action->setObjectName(QLatin1String("editorwindow_transform_freerotation_point1")); point1Action->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_1); connect(point1Action, SIGNAL(triggered(bool)), this, SIGNAL(signalPoint1Action())); QAction* const point2Action = new QAction(i18n("Free Rotation Set Point 2"), parent); point2Action->setObjectName(QLatin1String("editorwindow_transform_freerotation_point2")); point2Action->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_2); connect(point2Action, SIGNAL(triggered(bool)), this, SIGNAL(signalPoint2Action())); QAction* const autoAdjustAction = new QAction(i18n("Free Rotation Auto Adjust"), parent); autoAdjustAction->setObjectName(QLatin1String("editorwindow_transform_freerotation_autoadjust")); autoAdjustAction->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_R); connect(autoAdjustAction, SIGNAL(triggered(bool)), this, SIGNAL(signalAutoAdjustAction())); } void FreeRotationToolPlugin::slotFreeRotation() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { FreeRotationTool* const tool = new FreeRotationTool(editor); tool->setPlugin(this); connect(this, SIGNAL(signalPoint1Action()), tool, SLOT(slotAutoAdjustP1Clicked())); connect(this, SIGNAL(signalPoint2Action()), tool, SLOT(slotAutoAdjustP2Clicked())); connect(this, SIGNAL(signalAutoAdjustAction()), tool, SLOT(slotAutoAdjustClicked())); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/transform/perspective/perspectivetoolplugin.cpp b/core/dplugins/editor/transform/perspective/perspectivetoolplugin.cpp index 0715956c9c..6aed2dcb91 100644 --- a/core/dplugins/editor/transform/perspective/perspectivetoolplugin.cpp +++ b/core/dplugins/editor/transform/perspective/perspectivetoolplugin.cpp @@ -1,113 +1,113 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to adjust perspective. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "perspectivetoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "perspectivetool.h" namespace Digikam { PerspectiveToolPlugin::PerspectiveToolPlugin(QObject* const parent) : DPluginEditor(parent) { } PerspectiveToolPlugin::~PerspectiveToolPlugin() { } QString PerspectiveToolPlugin::name() const { return i18n("Perspective"); } QString PerspectiveToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon PerspectiveToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("perspective")); } QString PerspectiveToolPlugin::description() const { return i18n("A tool to adjust perspective"); } QString PerspectiveToolPlugin::details() const { return i18n("

This Image Editor tool can adjust perspective from an image.

"); } QList PerspectiveToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2006-2012")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2006-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void PerspectiveToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Perspective Adjustment...")); ac->setObjectName(QLatin1String("editorwindow_transform_perspective")); ac->setActionCategory(DPluginAction::EditorTransform); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotPerspective())); addAction(ac); } void PerspectiveToolPlugin::slotPerspective() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { PerspectiveTool* const tool = new PerspectiveTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/transform/ratiocrop/ratiocroptoolplugin.cpp b/core/dplugins/editor/transform/ratiocrop/ratiocroptoolplugin.cpp index d21145ff56..1ec2a1a153 100644 --- a/core/dplugins/editor/transform/ratiocrop/ratiocroptoolplugin.cpp +++ b/core/dplugins/editor/transform/ratiocrop/ratiocroptoolplugin.cpp @@ -1,116 +1,116 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to crop an image with ratio. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "ratiocroptoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "ratiocroptool.h" namespace Digikam { RatioCropToolPlugin::RatioCropToolPlugin(QObject* const parent) : DPluginEditor(parent) { } RatioCropToolPlugin::~RatioCropToolPlugin() { } QString RatioCropToolPlugin::name() const { return i18n("Aspect Ratio Crop"); } QString RatioCropToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RatioCropToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-crop")); } QString RatioCropToolPlugin::description() const { return i18n("A tool to crop an image with ratio"); } QString RatioCropToolPlugin::details() const { return i18n("

This Image Editor tool can crop an image with ratio.

"); } QList RatioCropToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Jaromir Malenko"), - QLatin1String("malenko at email dot cz"), - QLatin1String("(C) 2007")) - << DPluginAuthor(QLatin1String("Roberto Castagnola"), - QLatin1String("roberto dot castagnola at gmail dot com"), - QLatin1String("(C) 2008")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Jaromir Malenko"), + QString::fromUtf8("malenko at email dot cz"), + QString::fromUtf8("(C) 2007")) + << DPluginAuthor(QString::fromUtf8("Roberto Castagnola"), + QString::fromUtf8("roberto dot castagnola at gmail dot com"), + QString::fromUtf8("(C) 2008")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void RatioCropToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Aspect Ratio Crop...")); ac->setObjectName(QLatin1String("editorwindow_transform_ratiocrop")); ac->setActionCategory(DPluginAction::EditorTransform); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotRatioCrop())); addAction(ac); } void RatioCropToolPlugin::slotRatioCrop() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { RatioCropTool* const tool = new RatioCropTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/transform/resizetoolplugin.cpp b/core/dplugins/editor/transform/resizetoolplugin.cpp index 8e1c3df9fe..bb47ebba5f 100644 --- a/core/dplugins/editor/transform/resizetoolplugin.cpp +++ b/core/dplugins/editor/transform/resizetoolplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to resize an image. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "resizetoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "resizetool.h" namespace Digikam { ResizeToolPlugin::ResizeToolPlugin(QObject* const parent) : DPluginEditor(parent) { } ResizeToolPlugin::~ResizeToolPlugin() { } QString ResizeToolPlugin::name() const { return i18n("Resize Image"); } QString ResizeToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ResizeToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-scale")); } QString ResizeToolPlugin::description() const { return i18n("A tool to resize an image"); } QString ResizeToolPlugin::details() const { return i18n("

This Image Editor tool can resize an image.

"); } QList ResizeToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void ResizeToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "&Resize...")); ac->setObjectName(QLatin1String("editorwindow_transform_resize")); ac->setActionCategory(DPluginAction::EditorTransform); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotResize())); addAction(ac); } void ResizeToolPlugin::slotResize() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { ResizeTool* const tool = new ResizeTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/editor/transform/sheartoolplugin.cpp b/core/dplugins/editor/transform/sheartoolplugin.cpp index 5ecd35c8bc..3f381db601 100644 --- a/core/dplugins/editor/transform/sheartoolplugin.cpp +++ b/core/dplugins/editor/transform/sheartoolplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : image editor plugin to shear an image. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "sheartoolplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "editorwindow.h" #include "sheartool.h" namespace Digikam { ShearToolPlugin::ShearToolPlugin(QObject* const parent) : DPluginEditor(parent) { } ShearToolPlugin::~ShearToolPlugin() { } QString ShearToolPlugin::name() const { return i18n("Shear Image"); } QString ShearToolPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ShearToolPlugin::icon() const { return QIcon::fromTheme(QLatin1String("transform-shear-left")); } QString ShearToolPlugin::description() const { return i18n("A tool to shear an image"); } QString ShearToolPlugin::details() const { return i18n("

This Image Editor tool can shear an image.

"); } QList ShearToolPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019")) ; } void ShearToolPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "&Shear...")); ac->setObjectName(QLatin1String("editorwindow_transform_sheartool")); ac->setActionCategory(DPluginAction::EditorTransform); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotShear())); addAction(ac); } void ShearToolPlugin::slotShear() { EditorWindow* const editor = dynamic_cast(sender()->parent()); if (editor) { ShearTool* const tool = new ShearTool(editor); tool->setPlugin(this); editor->loadTool(tool); } } } // namespace Digikam diff --git a/core/dplugins/generic/import/dscanner/dscannerplugin.cpp b/core/dplugins/generic/import/dscanner/dscannerplugin.cpp index e51a3c758b..611ccae045 100644 --- a/core/dplugins/generic/import/dscanner/dscannerplugin.cpp +++ b/core/dplugins/generic/import/dscanner/dscannerplugin.cpp @@ -1,153 +1,153 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to acquire images with a digital scanner. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "dscannerplugin.h" // Qt includes #include #include #include #include // KDE includes #include // LibKSane includes #include // Local includes #include "digikam_debug.h" #include "scandialog.h" namespace Digikam { DigitalScannerPlugin::DigitalScannerPlugin(QObject* const parent) : DPluginGeneric(parent), m_saneWidget(0) { } DigitalScannerPlugin::~DigitalScannerPlugin() { if (m_saneWidget) { delete m_saneWidget; } } QString DigitalScannerPlugin::name() const { return i18n("Digital Scanner"); } QString DigitalScannerPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon DigitalScannerPlugin::icon() const { return QIcon::fromTheme(QLatin1String("scanner")); } QString DigitalScannerPlugin::description() const { return i18n("A tool to acquire images with a digital scanner"); } QString DigitalScannerPlugin::details() const { return i18n("

This tool permit to acquire new images from a digital scanner.

" "

Plenty of scanner devices are supported through the Sane library.

" "

Target image can be post processed as crop and rotate.

"); } QList DigitalScannerPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2003-2019")) - << DPluginAuthor(QLatin1String("Kare Sars"), - QLatin1String("kare dot sars at kolumbus dot fi"), - QLatin1String("(C) 2003-2005")) - << DPluginAuthor(QLatin1String("Angelo Naselli"), - QLatin1String("anaselli at linux dot it"), - QLatin1String("(C) 2006-2007")) + << DPluginAuthor(QString::fromUtf8("Kare Sars"), + QString::fromUtf8("kare dot sars at kolumbus dot fi"), + QString::fromUtf8("(C) 2003-2005")) + << DPluginAuthor(QString::fromUtf8("Angelo Naselli"), + QString::fromUtf8("anaselli at linux dot it"), + QString::fromUtf8("(C) 2006-2007")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2003-2019")) ; } void DigitalScannerPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Import from Scanner...")); ac->setObjectName(QLatin1String("import_scan")); ac->setActionCategory(DPluginAction::GenericImport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotDigitalScanner())); addAction(ac); } void DigitalScannerPlugin::slotDigitalScanner() { if (!m_saneWidget) { m_saneWidget = new KSaneIface::KSaneWidget(0); } if (m_saneWidget) { QString dev = m_saneWidget->selectDevice(0); if (dev.isEmpty()) { return; } if (!m_saneWidget->openDevice(dev)) { // could not open a scanner QMessageBox::warning(0, qApp->applicationName(), i18n("Cannot open scanner device.")); return; } DInfoInterface* const iface = infoIface(sender()); ScanDialog* const dlg = new ScanDialog(m_saneWidget); connect(dlg, SIGNAL(signalImportedImage(QUrl)), iface, SIGNAL(signalImportedImage(QUrl))); dlg->setTargetDir(iface->defaultUploadUrl().toLocalFile()); dlg->setPlugin(this); dlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/metadata/geolocationedit/geolocationeditplugin.cpp b/core/dplugins/generic/metadata/geolocationedit/geolocationeditplugin.cpp index 386aabed7a..bd31b40d3e 100644 --- a/core/dplugins/generic/metadata/geolocationedit/geolocationeditplugin.cpp +++ b/core/dplugins/generic/metadata/geolocationedit/geolocationeditplugin.cpp @@ -1,118 +1,118 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to edit items geolocation. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "geolocationeditplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "geolocationedit.h" namespace Digikam { GeolocationEditPlugin::GeolocationEditPlugin(QObject* const parent) : DPluginGeneric(parent) { } GeolocationEditPlugin::~GeolocationEditPlugin() { } QString GeolocationEditPlugin::name() const { return i18n("Geolocation Edit"); } QString GeolocationEditPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon GeolocationEditPlugin::icon() const { return QIcon::fromTheme(QLatin1String("globe")); } QString GeolocationEditPlugin::description() const { return i18n("A tool to edit items geolocation"); } QString GeolocationEditPlugin::details() const { return i18n("

This tool permit to changes geolocation information from items.

" "

This tool can edit GPS data, manualy or over a map. Reverse geo-coding is also available through web services.

" "

This tool as also an export function to KML to store map traces in Google format.

" "

Finaly, this tool is able to read a GPS trace from a device to synchronize geo-location of items if you camera do not have an embeded GPS device.

"); } QList GeolocationEditPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019")) - << DPluginAuthor(QLatin1String("Michael G. Hansen"), - QLatin1String("mike at mghansen dot de"), - QLatin1String("(C) 2008-2012")) - << DPluginAuthor(QLatin1String("Gabriel Voicu"), - QLatin1String("ping dot gabi at gmail dot com"), - QLatin1String("(C) 2010-2012")) - << DPluginAuthor(QLatin1String("Justus Schwartz"), - QLatin1String("justus at gmx dot li"), - QLatin1String("(C) 2014")) + << DPluginAuthor(QString::fromUtf8("Michael G. Hansen"), + QString::fromUtf8("mike at mghansen dot de"), + QString::fromUtf8("(C) 2008-2012")) + << DPluginAuthor(QString::fromUtf8("Gabriel Voicu"), + QString::fromUtf8("ping dot gabi at gmail dot com"), + QString::fromUtf8("(C) 2010-2012")) + << DPluginAuthor(QString::fromUtf8("Justus Schwartz"), + QString::fromUtf8("justus at gmx dot li"), + QString::fromUtf8("(C) 2014")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019")) ; } void GeolocationEditPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Edit Geolocation...")); ac->setObjectName(QLatin1String("geolocation_edit")); ac->setActionCategory(DPluginAction::GenericMetadata); ac->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_G); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotEditGeolocation())); addAction(ac); } void GeolocationEditPlugin::slotEditGeolocation() { QPointer dialog = new GeolocationEdit(0, infoIface(sender())); dialog->setPlugin(this); dialog->exec(); delete dialog; } } // namespace Digikam diff --git a/core/dplugins/generic/metadata/metadataedit/metadataeditplugin.cpp b/core/dplugins/generic/metadata/metadataedit/metadataeditplugin.cpp index af83515fb1..4488d3642b 100644 --- a/core/dplugins/generic/metadata/metadataedit/metadataeditplugin.cpp +++ b/core/dplugins/generic/metadata/metadataedit/metadataeditplugin.cpp @@ -1,121 +1,121 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to edit items metadata. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "metadataeditplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "metadataedit.h" namespace Digikam { MetadataEditPlugin::MetadataEditPlugin(QObject* const parent) : DPluginGeneric(parent) { } MetadataEditPlugin::~MetadataEditPlugin() { } QString MetadataEditPlugin::name() const { return i18n("Metadata Edit"); } QString MetadataEditPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon MetadataEditPlugin::icon() const { return QIcon::fromTheme(QLatin1String("format-text-code")); } QString MetadataEditPlugin::description() const { return i18n("A tool to edit items metadata"); } QString MetadataEditPlugin::details() const { return i18n("

This tool permit to changes plenty of metadata from items.

" "

Most common Exif, Iptc, and Xmp tags used in photography are listed for editing with standardized values.

" "

For photo agencies, pre-configured subjects canb eused to describe the items contents based on Iptc reference codes.

"); } QList MetadataEditPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019")) - << DPluginAuthor(QLatin1String("Victor Dodon"), - QLatin1String("victor dot dodon at cti dot pub dot ro"), - QLatin1String("(C) 2010-2012")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019")) + << DPluginAuthor(QString::fromUtf8("Victor Dodon"), + QString::fromUtf8("victor dot dodon at cti dot pub dot ro"), + QString::fromUtf8("(C) 2010-2012")) ; } void MetadataEditPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Edit Metadata...")); ac->setObjectName(QLatin1String("metadata_edit")); ac->setActionCategory(DPluginAction::GenericMetadata); ac->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_M); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotEditMetadata())); addAction(ac); } void MetadataEditPlugin::slotEditMetadata() { DInfoInterface* const iface = infoIface(sender()); if (!iface) return; QList urls = iface->currentSelectedItems(); if (urls.isEmpty()) return; QPointer dialog = new MetadataEditDialog(0, iface); dialog->setPlugin(this); dialog->exec(); delete dialog; } } // namespace Digikam diff --git a/core/dplugins/generic/metadata/timeadjust/timeadjustplugin.cpp b/core/dplugins/generic/metadata/timeadjust/timeadjustplugin.cpp index 852e04b615..7a281889d6 100644 --- a/core/dplugins/generic/metadata/timeadjust/timeadjustplugin.cpp +++ b/core/dplugins/generic/metadata/timeadjust/timeadjustplugin.cpp @@ -1,120 +1,120 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to adjust items date-time. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "timeadjustplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "timeadjustdialog.h" namespace Digikam { TimeAdjustPlugin::TimeAdjustPlugin(QObject* const parent) : DPluginGeneric(parent) { } TimeAdjustPlugin::~TimeAdjustPlugin() { } QString TimeAdjustPlugin::name() const { return i18n("Time Adjust"); } QString TimeAdjustPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon TimeAdjustPlugin::icon() const { return QIcon::fromTheme(QLatin1String("appointment-new")); } QString TimeAdjustPlugin::description() const { return i18n("A tool to adjust items date-time"); } QString TimeAdjustPlugin::details() const { return i18n("

This tool permit to adjust date time-stamp of items in batch.

" "

Many source of original time-stamp can be selected from original items, or a from a common file.

" "

Many metadata time-stamp can be adjusted or left untouched. The adjustement can be an offset of time or a specific date.

"); } QList TimeAdjustPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019")) - << DPluginAuthor(QLatin1String("Jesper K. Pedersen"), - QLatin1String("blackie at kde dot org"), - QLatin1String("(C) 2003-2005")) - << DPluginAuthor(QLatin1String("Smit Mehta"), - QLatin1String("smit dot meh at gmail dot com"), - QLatin1String("(C) 2012")) - << DPluginAuthor(QLatin1String("Pieter Edelman"), - QLatin1String("p dot edelman at gmx dot net"), - QLatin1String("(C) 2008")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019")) + << DPluginAuthor(QString::fromUtf8("Jesper K. Pedersen"), + QString::fromUtf8("blackie at kde dot org"), + QString::fromUtf8("(C) 2003-2005")) + << DPluginAuthor(QString::fromUtf8("Smit Mehta"), + QString::fromUtf8("smit dot meh at gmail dot com"), + QString::fromUtf8("(C) 2012")) + << DPluginAuthor(QString::fromUtf8("Pieter Edelman"), + QString::fromUtf8("p dot edelman at gmx dot net"), + QString::fromUtf8("(C) 2008")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2018")) ; } void TimeAdjustPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Adjust Time && Date...")); ac->setObjectName(QLatin1String("timeadjust_edit")); ac->setActionCategory(DPluginAction::GenericMetadata); ac->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_D); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotTimeAdjust())); addAction(ac); } void TimeAdjustPlugin::slotTimeAdjust() { QPointer dialog = new TimeAdjustDialog(0, infoIface(sender())); dialog->setPlugin(this); dialog->exec(); delete dialog; } } // namespace Digikam diff --git a/core/dplugins/generic/tools/calendar/calendarplugin.cpp b/core/dplugins/generic/tools/calendar/calendarplugin.cpp index 3d606c07fb..0e1f1cebd2 100644 --- a/core/dplugins/generic/tools/calendar/calendarplugin.cpp +++ b/core/dplugins/generic/tools/calendar/calendarplugin.cpp @@ -1,118 +1,118 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to create calendar. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "calendarplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "calwizard.h" namespace Digikam { CalendarPlugin::CalendarPlugin(QObject* const parent) : DPluginGeneric(parent) { } CalendarPlugin::~CalendarPlugin() { } QString CalendarPlugin::name() const { return i18n("Create Calendar"); } QString CalendarPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon CalendarPlugin::icon() const { return QIcon::fromTheme(QLatin1String("view-calendar")); } QString CalendarPlugin::description() const { return i18n("A tool to create calendar from images"); } QString CalendarPlugin::details() const { return i18n("

This tool permit to compose items and create a calendar with you prefered photos.

" "

Different calendar layout are avaialble and you can integrate a list of dates from ICS format to highlight holidays time.

" "

Finaly, the tool will propose to export the result to your printer or in a PDF file.

"); } QList CalendarPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019"), i18n("Developer and Maintainer")) - << DPluginAuthor(QLatin1String("Renchi Raju"), - QLatin1String("renchi dot raju at gmail dot com"), - QLatin1String("(C) 2003-2005"), + << DPluginAuthor(QString::fromUtf8("Renchi Raju"), + QString::fromUtf8("renchi dot raju at gmail dot com"), + QString::fromUtf8("(C) 2003-2005"), i18n("Former Author")) - << DPluginAuthor(QLatin1String("Orgad Shaneh"), - QLatin1String("orgads at gmail dot com"), - QLatin1String("(C) 2007-2008")) - << DPluginAuthor(QLatin1String("Tom Albers"), - QLatin1String("tomalbers at kde dot nl"), - QLatin1String("(C) 2006")) + << DPluginAuthor(QString::fromUtf8("Orgad Shaneh"), + QString::fromUtf8("orgads at gmail dot com"), + QString::fromUtf8("(C) 2007-2008")) + << DPluginAuthor(QString::fromUtf8("Tom Albers"), + QString::fromUtf8("tomalbers at kde dot nl"), + QString::fromUtf8("(C) 2006")) ; } void CalendarPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Create Calendar...")); ac->setObjectName(QLatin1String("calendar")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotCalendar())); addAction(ac); } void CalendarPlugin::slotCalendar() { QPointer wzrd = new CalWizard(0, infoIface(sender())); wzrd->setPlugin(this); wzrd->exec(); delete wzrd; } } // namespace Digikam diff --git a/core/dplugins/generic/tools/expoblending/expoblendingplugin.cpp b/core/dplugins/generic/tools/expoblending/expoblendingplugin.cpp index e3edd7d1ca..40cecfd901 100644 --- a/core/dplugins/generic/tools/expoblending/expoblendingplugin.cpp +++ b/core/dplugins/generic/tools/expoblending/expoblendingplugin.cpp @@ -1,118 +1,118 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to blend bracketed images. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "expoblendingplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "expoblendingmanager.h" namespace Digikam { ExpoBlendingPlugin::ExpoBlendingPlugin(QObject* const parent) : DPluginGeneric(parent) { } ExpoBlendingPlugin::~ExpoBlendingPlugin() { if (ExpoBlendingManager::isCreated()) { delete ExpoBlendingManager::internalPtr; } } QString ExpoBlendingPlugin::name() const { return i18n("Exposure Blending"); } QString ExpoBlendingPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ExpoBlendingPlugin::icon() const { return QIcon::fromTheme(QLatin1String("expoblending")); } QString ExpoBlendingPlugin::description() const { return i18n("A tool to blend bracketed images"); } QString ExpoBlendingPlugin::details() const { return i18n("

This tool permit to blend bracketed images together to create pseudo HDR photo.

" "

To create high definition range image, you need to use images from same subject taken with a tripod and exposed with different exposure settings.

" "

To create image with better results, you can use RAW images instead JPEG, where colors depth is higher and are well adapted for merging pixels by pixels.

"); } QList ExpoBlendingPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019"), i18n("Author and Maintainer")) - << DPluginAuthor(QLatin1String("Johannes Wienke"), - QLatin1String("languitar at semipol dot de"), - QLatin1String("(C) 2010")) - << DPluginAuthor(QLatin1String("Benjamin Girault"), - QLatin1String("benjamin dot girault at gmail dot com"), - QLatin1String("(C) 2014")) + << DPluginAuthor(QString::fromUtf8("Johannes Wienke"), + QString::fromUtf8("languitar at semipol dot de"), + QString::fromUtf8("(C) 2010")) + << DPluginAuthor(QString::fromUtf8("Benjamin Girault"), + QString::fromUtf8("benjamin dot girault at gmail dot com"), + QString::fromUtf8("(C) 2014")) ; } void ExpoBlendingPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Create Stacked Images...")); ac->setObjectName(QLatin1String("expoblending")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotExpoBlending())); addAction(ac); } void ExpoBlendingPlugin::slotExpoBlending() { ExpoBlendingManager::instance()->checkBinaries(); ExpoBlendingManager::instance()->setItemsList(infoIface(sender())->currentSelectedItems()); ExpoBlendingManager::instance()->setPlugin(this); ExpoBlendingManager::instance()->run(); } } // namespace Digikam diff --git a/core/dplugins/generic/tools/htmlgallery/htmlgalleryplugin.cpp b/core/dplugins/generic/tools/htmlgallery/htmlgalleryplugin.cpp index 680b59f274..5953fd6978 100644 --- a/core/dplugins/generic/tools/htmlgallery/htmlgalleryplugin.cpp +++ b/core/dplugins/generic/tools/htmlgallery/htmlgalleryplugin.cpp @@ -1,116 +1,116 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to generate HTML image galleries. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "htmlgalleryplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "htmlwizard.h" namespace Digikam { HtmlGalleryPlugin::HtmlGalleryPlugin(QObject* const parent) : DPluginGeneric(parent) { } HtmlGalleryPlugin::~HtmlGalleryPlugin() { } QString HtmlGalleryPlugin::name() const { return i18n("Html Gallery"); } QString HtmlGalleryPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon HtmlGalleryPlugin::icon() const { return QIcon::fromTheme(QLatin1String("text-html")); } QString HtmlGalleryPlugin::description() const { return i18n("A tool to generate HTML gallery from images"); } QString HtmlGalleryPlugin::details() const { return i18n("

This tool permit to back-process items (as resize) before to create W3C compliant html gallery.

" "

Items to process can be selected one by one or by group through a selection of albums.

" "

Themable HTML template with different layout can be used to assemble files on a gallery.

"); } QList HtmlGalleryPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019"), i18n("Developer and Maintainer")) - << DPluginAuthor(QLatin1String("Aurelien Gateau"), - QLatin1String("agateau at kde dot org"), - QLatin1String("(C) 2006-2009"), + << DPluginAuthor(QString::fromUtf8("Aurelien Gateau"), + QString::fromUtf8("agateau at kde dot org"), + QString::fromUtf8("(C) 2006-2009"), i18n("Former Author and Maintainer")) - << DPluginAuthor(QLatin1String("Gianluca Urgese"), - QLatin1String("giasone dot 82 at gmail dot com"), - QLatin1String("(C) 2010")) + << DPluginAuthor(QString::fromUtf8("Gianluca Urgese"), + QString::fromUtf8("giasone dot 82 at gmail dot com"), + QString::fromUtf8("(C) 2010")) ; } void HtmlGalleryPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Create Html gallery...")); ac->setObjectName(QLatin1String("htmlgallery")); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_H); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotHtmlGallery())); addAction(ac); } void HtmlGalleryPlugin::slotHtmlGallery() { QPointer wzrd = new HTMLWizard(0, infoIface(sender())); wzrd->setPlugin(this); wzrd->exec(); delete wzrd; } } // namespace Digikam diff --git a/core/dplugins/generic/tools/jalbum/jalbumplugin.cpp b/core/dplugins/generic/tools/jalbum/jalbumplugin.cpp index f3852773c5..514a74d5d7 100644 --- a/core/dplugins/generic/tools/jalbum/jalbumplugin.cpp +++ b/core/dplugins/generic/tools/jalbum/jalbumplugin.cpp @@ -1,108 +1,108 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to jAlbum gallery generator * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "jalbumplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "jalbumwizard.h" namespace Digikam { JAlbumPlugin::JAlbumPlugin(QObject* const parent) : DPluginGeneric(parent) { } JAlbumPlugin::~JAlbumPlugin() { } QString JAlbumPlugin::name() const { return i18n("jAlbum Export"); } QString JAlbumPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon JAlbumPlugin::icon() const { return QIcon::fromTheme(QLatin1String("text-html")); } QString JAlbumPlugin::description() const { return i18n("A tool to export images to jAlbum gallery generator"); } QString JAlbumPlugin::details() const { return i18n("

This tool permit to export items to jAlbum html gallery generator.

" "

Items to process can be selected one by one or by group through a selection of albums.

" "

jAlbum is themable with different templates and layout. See the jAlbum web-site for details: https://jalbum.net/.

"); } QList JAlbumPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Andrew Goodbody"), - QLatin1String("ajg zero two at elfringham dot co dot uk"), - QLatin1String("(c) 2013-2019"), + << DPluginAuthor(QString::fromUtf8("Andrew Goodbody"), + QString::fromUtf8("ajg zero two at elfringham dot co dot uk"), + QString::fromUtf8("(c) 2013-2019"), i18n("Author and Maintainer")) ; } void JAlbumPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Create jAlbum Gallery...")); ac->setObjectName(QLatin1String("jalbum")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotJAlbum())); addAction(ac); } void JAlbumPlugin::slotJAlbum() { QPointer wzrd = new JAlbumWizard(0, infoIface(sender())); wzrd->setPlugin(this); wzrd->exec(); delete wzrd; } } // namespace Digikam diff --git a/core/dplugins/generic/tools/mediaserver/mediaserverplugin.cpp b/core/dplugins/generic/tools/mediaserver/mediaserverplugin.cpp index 4c5b98e441..5321d14771 100644 --- a/core/dplugins/generic/tools/mediaserver/mediaserverplugin.cpp +++ b/core/dplugins/generic/tools/mediaserver/mediaserverplugin.cpp @@ -1,117 +1,117 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to share items with DLNA server. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "mediaserverplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "dmediaserverdlg.h" namespace Digikam { MediaServerPlugin::MediaServerPlugin(QObject* const parent) : DPluginGeneric(parent) { } MediaServerPlugin::~MediaServerPlugin() { } QString MediaServerPlugin::name() const { return i18n("DLNA Export"); } QString MediaServerPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon MediaServerPlugin::icon() const { return QIcon::fromTheme(QLatin1String("arrow-right-double")); } QString MediaServerPlugin::description() const { return i18n("A tool to export items to a DLNA compatible device"); } QString MediaServerPlugin::details() const { return i18n("

This tool permit to share items on the local network through a DLNA server.

" "

Items to share can be selected one by one or by group through a selection of albums.

" "

Many kind of electronic devices can support DLNA, as tablets, cellulars, TV, etc.

"); } QList MediaServerPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2012-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2012-2019"), i18n("Developer and Maintainer")) - << DPluginAuthor(QLatin1String("Ahmed Fathi"), - QLatin1String("ahmed dot fathi dot abdelmageed at gmail dot com"), - QLatin1String("(C) 2015")) - << DPluginAuthor(QLatin1String("Smit Mehta"), - QLatin1String("smit dot meh at gmail dot com"), - QLatin1String("(C) 2012-2013")) - << DPluginAuthor(QLatin1String("Marcel Wiesweg"), - QLatin1String("marcel dot wiesweg at gmx dot de"), - QLatin1String("(C) 2012-2013")) + << DPluginAuthor(QString::fromUtf8("Ahmed Fathi"), + QString::fromUtf8("ahmed dot fathi dot abdelmageed at gmail dot com"), + QString::fromUtf8("(C) 2015")) + << DPluginAuthor(QString::fromUtf8("Smit Mehta"), + QString::fromUtf8("smit dot meh at gmail dot com"), + QString::fromUtf8("(C) 2012-2013")) + << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"), + QString::fromUtf8("marcel dot wiesweg at gmx dot de"), + QString::fromUtf8("(C) 2012-2013")) ; } void MediaServerPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Share with DLNA...")); ac->setObjectName(QLatin1String("mediaserver")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotMediaServer())); addAction(ac); } void MediaServerPlugin::slotMediaServer() { QPointer w = new DMediaServerDlg(this, infoIface(sender())); w->setPlugin(this); w->exec(); delete w; } } // namespace Digikam diff --git a/core/dplugins/generic/tools/panorama/panoramaplugin.cpp b/core/dplugins/generic/tools/panorama/panoramaplugin.cpp index 46ed25ca65..ff3c0fc550 100644 --- a/core/dplugins/generic/tools/panorama/panoramaplugin.cpp +++ b/core/dplugins/generic/tools/panorama/panoramaplugin.cpp @@ -1,115 +1,115 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to create panorama. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "panoramaplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "panomanager.h" namespace Digikam { PanoramaPlugin::PanoramaPlugin(QObject* const parent) : DPluginGeneric(parent) { } PanoramaPlugin::~PanoramaPlugin() { if (PanoManager::isCreated()) { delete PanoManager::internalPtr; } } QString PanoramaPlugin::name() const { return i18n("Create Panorama"); } QString PanoramaPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon PanoramaPlugin::icon() const { return QIcon::fromTheme(QLatin1String("panorama")); } QString PanoramaPlugin::description() const { return i18n("A tool to create panorama"); } QString PanoramaPlugin::details() const { return i18n("

This tool permit to assemble images together to create large panorama.

" "

To create panorama image, you need to use images taken from same point of view with a tripod and exposed with same settings.

" "

The tool is able to assemble shot taken horizontally, vertically, or as a matrix. Take a care that target image will become huge and require a lots of memory to be processed.

"); } QList PanoramaPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2009-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2009-2019"), i18n("Author and Maintainer")) - << DPluginAuthor(QLatin1String("Benjamin Girault"), - QLatin1String("benjamin dot girault at gmail dot com"), - QLatin1String("(C) 2011-2016")) + << DPluginAuthor(QString::fromUtf8("Benjamin Girault"), + QString::fromUtf8("benjamin dot girault at gmail dot com"), + QString::fromUtf8("(C) 2011-2016")) ; } void PanoramaPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Create panorama...")); ac->setObjectName(QLatin1String("panorama")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotPanorama())); addAction(ac); } void PanoramaPlugin::slotPanorama() { PanoManager::instance()->checkBinaries(); PanoManager::instance()->setItemsList(infoIface(sender())->currentSelectedItems()); PanoManager::instance()->setPlugin(this); PanoManager::instance()->run(); } } // namespace Digikam diff --git a/core/dplugins/generic/tools/printcreator/printcreatorplugin.cpp b/core/dplugins/generic/tools/printcreator/printcreatorplugin.cpp index 3f7a67e51d..41bdc2041b 100644 --- a/core/dplugins/generic/tools/printcreator/printcreatorplugin.cpp +++ b/core/dplugins/generic/tools/printcreator/printcreatorplugin.cpp @@ -1,119 +1,119 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to create print compositions. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "printcreatorplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "advprintwizard.h" namespace Digikam { PrintCreatorPlugin::PrintCreatorPlugin(QObject* const parent) : DPluginGeneric(parent) { } PrintCreatorPlugin::~PrintCreatorPlugin() { } QString PrintCreatorPlugin::name() const { return i18n("Print Creator"); } QString PrintCreatorPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon PrintCreatorPlugin::icon() const { return QIcon::fromTheme(QLatin1String("document-print")); } QString PrintCreatorPlugin::description() const { return i18n("A tool to create print composition from images"); } QString PrintCreatorPlugin::details() const { return i18n("

This tool permit to back-process items (as assemble) before to print.

" "

Items to process can be selected one by one or by group through a selection of albums.

" "

Different pre-defined paper sizes and layouts can be used to process files.

"); } QList PrintCreatorPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019"), i18n("Developer and Maintainer")) - << DPluginAuthor(QLatin1String("Todd Shoemaker"), - QLatin1String("todd at theshoemakers dot net"), - QLatin1String("(C) 2003-2004"), + << DPluginAuthor(QString::fromUtf8("Todd Shoemaker"), + QString::fromUtf8("todd at theshoemakers dot net"), + QString::fromUtf8("(C) 2003-2004"), i18n("Author")) - << DPluginAuthor(QLatin1String("Angelo Naselli"), - QLatin1String("anaselli at linux dot it"), - QLatin1String("(C) 2007-2013")) - << DPluginAuthor(QLatin1String("Andreas Trink"), - QLatin1String("atrink at nociaro dot org"), - QLatin1String("(C) 2010"), + << DPluginAuthor(QString::fromUtf8("Angelo Naselli"), + QString::fromUtf8("anaselli at linux dot it"), + QString::fromUtf8("(C) 2007-2013")) + << DPluginAuthor(QString::fromUtf8("Andreas Trink"), + QString::fromUtf8("atrink at nociaro dot org"), + QString::fromUtf8("(C) 2010"), i18n("Contributor")) ; } void PrintCreatorPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Print Creator...")); ac->setObjectName(QLatin1String("printcreator")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotPrintCreator())); addAction(ac); } void PrintCreatorPlugin::slotPrintCreator() { QPointer wzrd = new AdvPrintWizard(0, infoIface(sender())); wzrd->setPlugin(this); wzrd->exec(); delete wzrd; } } // namespace Digikam diff --git a/core/dplugins/generic/tools/sendbymail/sendbymailplugin.cpp b/core/dplugins/generic/tools/sendbymail/sendbymailplugin.cpp index f1ec65ad1f..89476134a6 100644 --- a/core/dplugins/generic/tools/sendbymail/sendbymailplugin.cpp +++ b/core/dplugins/generic/tools/sendbymail/sendbymailplugin.cpp @@ -1,114 +1,114 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : plugin to email items. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "sendbymailplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "mailwizard.h" namespace Digikam { SendByMailPlugin::SendByMailPlugin(QObject* const parent) : DPluginGeneric(parent) { } SendByMailPlugin::~SendByMailPlugin() { } QString SendByMailPlugin::name() const { return i18n("Send by Email"); } QString SendByMailPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon SendByMailPlugin::icon() const { return QIcon::fromTheme(QLatin1String("mail-send")); } QString SendByMailPlugin::description() const { return i18n("A tool to send images by E-mail"); } QString SendByMailPlugin::details() const { return i18n("

This tool permit to back-process items (as resize) before to send by e-mail.

" "

Items to process can be selected one by one or by group through a selection of albums.

" "

Different mail client application can be used to process files on the network.

"); } QList SendByMailPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2004-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2004-2019"), i18n("Author and Maintainer")) - << DPluginAuthor(QLatin1String("Michael Hoechstetter"), - QLatin1String("michael dot hoechstetter at gmx dot de"), - QLatin1String("(C) 2006")) - << DPluginAuthor(QLatin1String("Tom Albers"), - QLatin1String("tomalbers at kde dot nl"), - QLatin1String("(C) 2007")) + << DPluginAuthor(QString::fromUtf8("Michael Hoechstetter"), + QString::fromUtf8("michael dot hoechstetter at gmx dot de"), + QString::fromUtf8("(C) 2006")) + << DPluginAuthor(QString::fromUtf8("Tom Albers"), + QString::fromUtf8("tomalbers at kde dot nl"), + QString::fromUtf8("(C) 2007")) ; } void SendByMailPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Send by Mail...")); ac->setObjectName(QLatin1String("sendbymail")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotSendByMail())); addAction(ac); } void SendByMailPlugin::slotSendByMail() { QPointer wzrd = new MailWizard(0, infoIface(sender())); wzrd->setPlugin(this); wzrd->exec(); delete wzrd; } } // namespace Digikam diff --git a/core/dplugins/generic/tools/videoslideshow/videoslideshowplugin.cpp b/core/dplugins/generic/tools/videoslideshow/videoslideshowplugin.cpp index d2de6e6009..1d1b1077e0 100644 --- a/core/dplugins/generic/tools/videoslideshow/videoslideshowplugin.cpp +++ b/core/dplugins/generic/tools/videoslideshow/videoslideshowplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : plugin to create video slideshow. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "videoslideshowplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "vidslidewizard.h" namespace Digikam { VideoSlideShowPlugin::VideoSlideShowPlugin(QObject* const parent) : DPluginGeneric(parent) { } VideoSlideShowPlugin::~VideoSlideShowPlugin() { } QString VideoSlideShowPlugin::name() const { return i18n("Video Slideshow"); } QString VideoSlideShowPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon VideoSlideShowPlugin::icon() const { return QIcon::fromTheme(QLatin1String("media-record")); } QString VideoSlideShowPlugin::description() const { return i18n("A tool to create video slideshow from images"); } QString VideoSlideShowPlugin::details() const { return i18n("

This tool permit to back-process image as frame to create video slide-show.

" "

Items to process can be selected one by one or by group through a selection of albums.

" "

Different visual effects can be applied to images to make transitions while to render target video.

"); } QList VideoSlideShowPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2012-2019"), + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2012-2019"), i18n("Author and Maintainer")) - << DPluginAuthor(QLatin1String("A Janardhan Reddy"), - QLatin1String("annapareddyjanardhanreddy at gmail dot com"), - QLatin1String("(C) 2012")) + << DPluginAuthor(QString::fromUtf8("A Janardhan Reddy"), + QString::fromUtf8("annapareddyjanardhanreddy at gmail dot com"), + QString::fromUtf8("(C) 2012")) ; } void VideoSlideShowPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Create video slideshow...")); ac->setObjectName(QLatin1String("videoslideshow")); ac->setActionCategory(DPluginAction::GenericTool); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotVideoSlideShow())); addAction(ac); } void VideoSlideShowPlugin::slotVideoSlideShow() { QPointer wzrd = new VidSlideWizard(0, infoIface(sender())); wzrd->setPlugin(this); wzrd->exec(); delete wzrd; } } // namespace Digikam diff --git a/core/dplugins/generic/view/presentation/presentationplugin.cpp b/core/dplugins/generic/view/presentation/presentationplugin.cpp index 242a4b7a2f..97c0b759e8 100644 --- a/core/dplugins/generic/view/presentation/presentationplugin.cpp +++ b/core/dplugins/generic/view/presentation/presentationplugin.cpp @@ -1,123 +1,123 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to render presentation. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "presentationplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "presentationmngr.h" namespace Digikam { PresentationPlugin::PresentationPlugin(QObject* const parent) : DPluginGeneric(parent) { } PresentationPlugin::~PresentationPlugin() { } QString PresentationPlugin::name() const { return i18n("Presentation"); } QString PresentationPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon PresentationPlugin::icon() const { return QIcon::fromTheme(QLatin1String("view-presentation")); } QString PresentationPlugin::description() const { return i18n("A tool to render presentation"); } QString PresentationPlugin::details() const { return i18n("

This tool render a serie of items as an advanced slide-show.

" "

Plenty of transition effects are available are ones based on OpenGL and the famous Ken Burns effect.

" "

You can add a sound-track in background while your presentation.

"); } QList PresentationPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2005-2019")) - << DPluginAuthor(QLatin1String("Renchi Raju"), - QLatin1String("renchi dot raju at gmail dot com"), - QLatin1String("(C) 2003-2004")) - << DPluginAuthor(QLatin1String("Valerio Fuoglio"), - QLatin1String("valerio dot fuoglio at gmail dot com"), - QLatin1String("(C) 2006-2009")) + << DPluginAuthor(QString::fromUtf8("Renchi Raju"), + QString::fromUtf8("renchi dot raju at gmail dot com"), + QString::fromUtf8("(C) 2003-2004")) + << DPluginAuthor(QString::fromUtf8("Valerio Fuoglio"), + QString::fromUtf8("valerio dot fuoglio at gmail dot com"), + QString::fromUtf8("(C) 2006-2009")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2005-2019")) ; } void PresentationPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Presentation...")); ac->setObjectName(QLatin1String("presentation")); ac->setActionCategory(DPluginAction::GenericView); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_F9); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotPresentation())); addAction(ac); } void PresentationPlugin::slotPresentation() { DInfoInterface* const iface = infoIface(sender()); QPointer mngr = new PresentationMngr(this); foreach (const QUrl& url, iface->currentSelectedItems()) { DItemInfo info(iface->itemInfo(url)); mngr->addFile(url, info.comment()); qApp->processEvents(); } mngr->setPlugin(this); mngr->showConfigDialog(); } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/box/boxplugin.cpp b/core/dplugins/generic/webservices/box/boxplugin.cpp index 4d7bf61009..987c8d945c 100644 --- a/core/dplugins/generic/webservices/box/boxplugin.cpp +++ b/core/dplugins/generic/webservices/box/boxplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to Box web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "boxplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "boxwindow.h" namespace Digikam { BoxPlugin::BoxPlugin(QObject* const parent) : DPluginGeneric(parent) { } BoxPlugin::~BoxPlugin() { delete m_toolDlg; } QString BoxPlugin::name() const { return i18n("Box"); } QString BoxPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon BoxPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-box")); } QString BoxPlugin::description() const { return i18n("A tool to export to Box web-service"); } QString BoxPlugin::details() const { return i18n("

This tool permit to export items to Box web-service.

" "

See Box web site for details: https://box.com/

"); } QList BoxPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Tarek Talaat"), - QLatin1String("tarektalaat93 at gmail dot com"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Tarek Talaat"), + QString::fromUtf8("tarektalaat93 at gmail dot com"), + QString::fromUtf8("(C) 2018")) ; } void BoxPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Box...")); ac->setObjectName(QLatin1String("export_box")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_B); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotBox())); addAction(ac); } void BoxPlugin::slotBox() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new BOXWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/dropbox/dbplugin.cpp b/core/dplugins/generic/webservices/dropbox/dbplugin.cpp index 8a11376d8a..6e13f3a4c9 100644 --- a/core/dplugins/generic/webservices/dropbox/dbplugin.cpp +++ b/core/dplugins/generic/webservices/dropbox/dbplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to DropBox web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "dbplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "dbwindow.h" namespace Digikam { DBPlugin::DBPlugin(QObject* const parent) : DPluginGeneric(parent) { } DBPlugin::~DBPlugin() { delete m_toolDlg; } QString DBPlugin::name() const { return i18n("DropBox"); } QString DBPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon DBPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-dropbox")); } QString DBPlugin::description() const { return i18n("A tool to export to DropBox web-service"); } QString DBPlugin::details() const { return i18n("

This tool permit to export items to DropBox web-service.

" "

See DropBox web site for details: https://www.dropbox.com/

"); } QList DBPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Tarek Talaat"), - QLatin1String("tarektalaat93 at gmail dot com"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Tarek Talaat"), + QString::fromUtf8("tarektalaat93 at gmail dot com"), + QString::fromUtf8("(C) 2018")) ; } void DBPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Dropbox...")); ac->setObjectName(QLatin1String("export_dropbox")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_D); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotDropBox())); addAction(ac); } void DBPlugin::slotDropBox() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new DBWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/facebook/fbplugin.cpp b/core/dplugins/generic/webservices/facebook/fbplugin.cpp index 69b1ebec13..4b31b45fe6 100644 --- a/core/dplugins/generic/webservices/facebook/fbplugin.cpp +++ b/core/dplugins/generic/webservices/facebook/fbplugin.cpp @@ -1,127 +1,127 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to FaceBook web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "fbplugin.h" // Qt includes #include #include // KDE includes #include // Local includes #include "fbwindow.h" namespace Digikam { FbPlugin::FbPlugin(QObject* const parent) : DPluginGeneric(parent) { } FbPlugin::~FbPlugin() { delete m_toolDlg; } QString FbPlugin::name() const { return i18n("FaceBook"); } QString FbPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FbPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-facebook")); } QString FbPlugin::description() const { return i18n("A tool to export to FaceBook web-service"); } QString FbPlugin::details() const { return i18n("

This tool permit to export items to FaceBook web-service.

" "

See FaceBook web site for details: https://www.facebook.com/

"); } QList FbPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2012-2019")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2017-2019")) - << DPluginAuthor(QLatin1String("Luka Renko"), - QLatin1String("lure at kubuntu dot org"), - QLatin1String("(C) 2009")) - << DPluginAuthor(QLatin1String("Vardhman Jain"), - QLatin1String("vardhman at gmail dot com"), - QLatin1String("(C) 2005-2008")) + << DPluginAuthor(QString::fromUtf8("Luka Renko"), + QString::fromUtf8("lure at kubuntu dot org"), + QString::fromUtf8("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Vardhman Jain"), + QString::fromUtf8("vardhman at gmail dot com"), + QString::fromUtf8("(C) 2005-2008")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2017-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2012-2019")) ; } void FbPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &FaceBook...")); ac->setObjectName(QLatin1String("export_facebook")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_F); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotFaceBook())); addAction(ac); } void FbPlugin::slotFaceBook() { if (!reactivateToolDialog(m_toolDlg)) { // This message is not translated, and it will be removed after the review process. QMessageBox::warning(0, QLatin1String("Facebook"), QLatin1String("This Facebook export tool is under " "review process and only works for " "registered test users.")); delete m_toolDlg; m_toolDlg = new FbWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/filetransfer/ftplugin.cpp b/core/dplugins/generic/webservices/filetransfer/ftplugin.cpp index 1172674cc3..b989372c0f 100644 --- a/core/dplugins/generic/webservices/filetransfer/ftplugin.cpp +++ b/core/dplugins/generic/webservices/filetransfer/ftplugin.cpp @@ -1,143 +1,143 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export and import items with a remote location. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "ftplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "ftexportwindow.h" #include "ftimportwindow.h" namespace Digikam { FTPlugin::FTPlugin(QObject* const parent) : DPluginGeneric(parent) { } FTPlugin::~FTPlugin() { delete m_toolDlgExport; delete m_toolDlgImport; } QString FTPlugin::name() const { return i18n("FileTransfer"); } QString FTPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FTPlugin::icon() const { return QIcon::fromTheme(QLatin1String("folder-html")); } QString FTPlugin::description() const { return i18n("A tool to export and import items with a remote location"); } QString FTPlugin::details() const { return i18n("

This tool permit to export and import items with a remote location.

" "

Many protocols can be used, as FTP, SFTP, SAMBA, etc.

"); } QList FTPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2017-2019")) - << DPluginAuthor(QLatin1String("Johannes Wienke"), - QLatin1String("languitar at semipol dot de"), - QLatin1String("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Johannes Wienke"), + QString::fromUtf8("languitar at semipol dot de"), + QString::fromUtf8("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2017-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void FTPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to remote storage...")); ac->setObjectName(QLatin1String("export_filetransfer")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_K); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotFileTransferExport())); addAction(ac); DPluginAction* const ac2 = new DPluginAction(parent); ac2->setIcon(icon()); ac2->setText(i18nc("@action", "Import from remote storage...")); ac2->setObjectName(QLatin1String("import_filetransfer")); ac2->setActionCategory(DPluginAction::GenericImport); ac2->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_I); connect(ac2, SIGNAL(triggered(bool)), this, SLOT(slotFileTransferImport())); addAction(ac2); } void FTPlugin::slotFileTransferExport() { if (!reactivateToolDialog(m_toolDlgExport)) { delete m_toolDlgExport; m_toolDlgExport = new FTExportWindow(infoIface(sender()), 0); m_toolDlgExport->setPlugin(this); m_toolDlgExport->show(); } } void FTPlugin::slotFileTransferImport() { if (!reactivateToolDialog(m_toolDlgImport)) { delete m_toolDlgImport; m_toolDlgImport = new FTImportWindow(infoIface(sender()), 0); m_toolDlgImport->setPlugin(this); m_toolDlgImport->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/flickr/flickrplugin.cpp b/core/dplugins/generic/webservices/flickr/flickrplugin.cpp index 8d34cd8d53..2b8c31a6cf 100644 --- a/core/dplugins/generic/webservices/flickr/flickrplugin.cpp +++ b/core/dplugins/generic/webservices/flickr/flickrplugin.cpp @@ -1,123 +1,123 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to Flickr web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "flickrplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "flickrwindow.h" namespace Digikam { FlickrPlugin::FlickrPlugin(QObject* const parent) : DPluginGeneric(parent) { } FlickrPlugin::~FlickrPlugin() { delete m_toolDlg; } QString FlickrPlugin::name() const { return i18n("Flickr"); } QString FlickrPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon FlickrPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-flickr")); } QString FlickrPlugin::description() const { return i18n("A tool to export to Flickr web-service"); } QString FlickrPlugin::details() const { return i18n("

This tool permit to export items to Flickr web-service.

" "

See Flickr web site for details: https://box.com/

"); } QList FlickrPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2017-2019")) - << DPluginAuthor(QLatin1String("Vardhman Jain"), - QLatin1String("vardhman at gmail dot com"), - QLatin1String("(C) 2005-2008")) - << DPluginAuthor(QLatin1String("Luka Renko"), - QLatin1String("lure at kubuntu dot org"), - QLatin1String("(C) 2009")) - << DPluginAuthor(QLatin1String("Shourya Singh Gupta"), - QLatin1String("shouryasgupta at gmail dot com"), - QLatin1String("(C) 2015")) + << DPluginAuthor(QString::fromUtf8("Vardhman Jain"), + QString::fromUtf8("vardhman at gmail dot com"), + QString::fromUtf8("(C) 2005-2008")) + << DPluginAuthor(QString::fromUtf8("Luka Renko"), + QString::fromUtf8("lure at kubuntu dot org"), + QString::fromUtf8("(C) 2009")) + << DPluginAuthor(QString::fromUtf8("Shourya Singh Gupta"), + QString::fromUtf8("shouryasgupta at gmail dot com"), + QString::fromUtf8("(C) 2015")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2017-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void FlickrPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Flickr...")); ac->setObjectName(QLatin1String("export_flickr")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_R); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotFlickr())); addAction(ac); } void FlickrPlugin::slotFlickr() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new FlickrWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/google/gsplugin.cpp b/core/dplugins/generic/webservices/google/gsplugin.cpp index 9780bafb62..281901d281 100644 --- a/core/dplugins/generic/webservices/google/gsplugin.cpp +++ b/core/dplugins/generic/webservices/google/gsplugin.cpp @@ -1,169 +1,169 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export and import items with Google web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "gsplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "gswindow.h" namespace Digikam { GSPlugin::GSPlugin(QObject* const parent) : DPluginGeneric(parent) { } GSPlugin::~GSPlugin() { delete m_toolDlgExportGphoto; delete m_toolDlgImportGphoto; delete m_toolDlgExportGdrive; } QString GSPlugin::name() const { return i18n("Google"); } QString GSPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon GSPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-googlephoto")); } QString GSPlugin::description() const { return i18n("A tool to export and import items with Google web-service"); } QString GSPlugin::details() const { return i18n("

This tool permit to export and import items with Google web-services.

" "Google Photo and Google Drive web services are supported." "

See Google web sites for details: https://photos.google.com and https://www.google.com/drive/

"); } QList GSPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2013-2019")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2017-2019")) - << DPluginAuthor(QLatin1String("Saurabh Patel"), - QLatin1String("saurabhpatel7717 at gmail dot co"), - QLatin1String("(C) 2013")) - << DPluginAuthor(QLatin1String("Shourya Singh Gupta"), - QLatin1String("shouryasgupta at gmail dot com"), - QLatin1String("(C) 2015")) + << DPluginAuthor(QString::fromUtf8("Saurabh Patel"), + QString::fromUtf8("saurabhpatel7717 at gmail dot co"), + QString::fromUtf8("(C) 2013")) + << DPluginAuthor(QString::fromUtf8("Shourya Singh Gupta"), + QString::fromUtf8("shouryasgupta at gmail dot com"), + QString::fromUtf8("(C) 2015")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2017-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2013-2019")) ; } void GSPlugin::setup(QObject* const parent) { DPluginAction* const ac1 = new DPluginAction(parent); ac1->setIcon(icon()); ac1->setText(i18nc("@action", "Export to &Google Photos...")); ac1->setObjectName(QLatin1String("export_googlephoto")); ac1->setActionCategory(DPluginAction::GenericExport); ac1->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_P); connect(ac1, SIGNAL(triggered(bool)), this, SLOT(slotExportGphoto())); addAction(ac1); DPluginAction* const ac2 = new DPluginAction(parent); ac2->setIcon(icon()); ac2->setText(i18nc("@action", "Import from &Google Photos...")); ac2->setObjectName(QLatin1String("import_googlephoto")); ac2->setActionCategory(DPluginAction::GenericImport); ac2->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_P); connect(ac2, SIGNAL(triggered(bool)), this, SLOT(slotImportGphoto())); addAction(ac2); DPluginAction* const ac3 = new DPluginAction(parent); ac3->setIcon(icon()); ac3->setText(i18nc("@action", "Export to &Google Drive...")); ac3->setObjectName(QLatin1String("export_googledrive")); ac3->setActionCategory(DPluginAction::GenericExport); ac3->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_G); connect(ac3, SIGNAL(triggered(bool)), this, SLOT(slotExportGdrive())); addAction(ac3); } void GSPlugin::slotExportGphoto() { if (!reactivateToolDialog(m_toolDlgExportGphoto)) { delete m_toolDlgExportGphoto; m_toolDlgExportGphoto = new GSWindow(infoIface(sender()), 0, QLatin1String("googlephotoexport")); m_toolDlgExportGphoto->setPlugin(this); m_toolDlgExportGphoto->show(); } } void GSPlugin::slotImportGphoto() { if (!reactivateToolDialog(m_toolDlgImportGphoto)) { delete m_toolDlgImportGphoto; m_toolDlgImportGphoto = new GSWindow(infoIface(sender()), 0, QLatin1String("googlephotoimport")); m_toolDlgImportGphoto->setPlugin(this); m_toolDlgImportGphoto->show(); } } void GSPlugin::slotExportGdrive() { if (!reactivateToolDialog(m_toolDlgExportGdrive)) { delete m_toolDlgExportGdrive; m_toolDlgExportGdrive = new GSWindow(infoIface(sender()), 0, QLatin1String("googledriveexport")); m_toolDlgExportGdrive->setPlugin(this); m_toolDlgExportGdrive->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/imageshack/imageshackplugin.cpp b/core/dplugins/generic/webservices/imageshack/imageshackplugin.cpp index ebdf599a3e..ffef63ce1a 100644 --- a/core/dplugins/generic/webservices/imageshack/imageshackplugin.cpp +++ b/core/dplugins/generic/webservices/imageshack/imageshackplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to ImageShack web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "imageshackplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "imageshackwindow.h" namespace Digikam { ImageShackPlugin::ImageShackPlugin(QObject* const parent) : DPluginGeneric(parent) { } ImageShackPlugin::~ImageShackPlugin() { delete m_toolDlg; } QString ImageShackPlugin::name() const { return i18n("ImageShack"); } QString ImageShackPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ImageShackPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-imageshack")); } QString ImageShackPlugin::description() const { return i18n("A tool to export to ImageShack web-service"); } QString ImageShackPlugin::details() const { return i18n("

This tool permit to export items to ImageShack web-service.

" "

See ImageShack web site for details: https://imageshack.us/

"); } QList ImageShackPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Dodon Victor"), - QLatin1String("dodonvictor at gmail dot com"), - QLatin1String("(C) 2012")) + << DPluginAuthor(QString::fromUtf8("Dodon Victor"), + QString::fromUtf8("dodonvictor at gmail dot com"), + QString::fromUtf8("(C) 2012")) ; } void ImageShackPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Imageshack...")); ac->setObjectName(QLatin1String("export_imageshack")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_M); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotImageShack())); addAction(ac); } void ImageShackPlugin::slotImageShack() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new ImageShackWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/imgur/imgurplugin.cpp b/core/dplugins/generic/webservices/imgur/imgurplugin.cpp index 1db6520cc3..b94f7fb54a 100644 --- a/core/dplugins/generic/webservices/imgur/imgurplugin.cpp +++ b/core/dplugins/generic/webservices/imgur/imgurplugin.cpp @@ -1,120 +1,120 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to ImgUr web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "imgurplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "imgurwindow.h" namespace Digikam { ImgUrPlugin::ImgUrPlugin(QObject* const parent) : DPluginGeneric(parent) { } ImgUrPlugin::~ImgUrPlugin() { delete m_toolDlg; } QString ImgUrPlugin::name() const { return i18n("ImgUr"); } QString ImgUrPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ImgUrPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-imgur")); } QString ImgUrPlugin::description() const { return i18n("A tool to export to ImgUr web-service"); } QString ImgUrPlugin::details() const { return i18n("

This tool permit to export items to ImgUr web-service.

" "

You can export items as anonymous or with an user account.

" "

See ImgUr web site for details: https://imgur.com/

"); } QList ImgUrPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2012-2019")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2017-2019")) - << DPluginAuthor(QLatin1String("Marius Orcsik"), - QLatin1String("marius at habarnam dot ro"), - QLatin1String("(C) 2012-2013")) - << DPluginAuthor(QLatin1String("Fabian Vogt"), - QLatin1String("fabian at ritter dash vogt dot de"), - QLatin1String("(C) 2014")) + << DPluginAuthor(QString::fromUtf8("Marius Orcsik"), + QString::fromUtf8("marius at habarnam dot ro"), + QString::fromUtf8("(C) 2012-2013")) + << DPluginAuthor(QString::fromUtf8("Fabian Vogt"), + QString::fromUtf8("fabian at ritter dash vogt dot de"), + QString::fromUtf8("(C) 2014")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2017-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2012-2019")) ; } void ImgUrPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Imgur...")); ac->setObjectName(QLatin1String("export_imgur")); ac->setActionCategory(DPluginAction::GenericExport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotImgUr())); addAction(ac); } void ImgUrPlugin::slotImgUr() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new ImgurWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/ipfs/ipfsplugin.cpp b/core/dplugins/generic/webservices/ipfs/ipfsplugin.cpp index 08a6df0bc1..ace7fdb3b2 100644 --- a/core/dplugins/generic/webservices/ipfs/ipfsplugin.cpp +++ b/core/dplugins/generic/webservices/ipfs/ipfsplugin.cpp @@ -1,113 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to IPFS web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "ipfsplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "ipfswindow.h" namespace Digikam { IpfsPlugin::IpfsPlugin(QObject* const parent) : DPluginGeneric(parent) { } IpfsPlugin::~IpfsPlugin() { delete m_toolDlg; } QString IpfsPlugin::name() const { return i18n("IPFS"); } QString IpfsPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon IpfsPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-ipfs")); } QString IpfsPlugin::description() const { return i18n("A tool to export to IPFS web-service"); } QString IpfsPlugin::details() const { return i18n("

This tool permit to export items to IPFS web-service.

" "

See IPFS web site for details: https://ipfs.io/

"); } QList IpfsPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2018-2019")) - << DPluginAuthor(QLatin1String("Amar Lakshya"), - QLatin1String("amar dot lakshya at xaviers dot edu dot in"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Amar Lakshya"), + QString::fromUtf8("amar dot lakshya at xaviers dot edu dot in"), + QString::fromUtf8("(C) 2018")) ; } void IpfsPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Ipfs...")); ac->setObjectName(QLatin1String("export_ipfs")); ac->setActionCategory(DPluginAction::GenericExport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotIpfs())); addAction(ac); } void IpfsPlugin::slotIpfs() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new IpfsWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/mediawiki/mediawikiplugin.cpp b/core/dplugins/generic/webservices/mediawiki/mediawikiplugin.cpp index 7072e9ac82..a1e42e5af4 100644 --- a/core/dplugins/generic/webservices/mediawiki/mediawikiplugin.cpp +++ b/core/dplugins/generic/webservices/mediawiki/mediawikiplugin.cpp @@ -1,119 +1,119 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to MediaWiki web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "mediawikiplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "mediawikiwindow.h" namespace Digikam { MediaWikiPlugin::MediaWikiPlugin(QObject* const parent) : DPluginGeneric(parent) { } MediaWikiPlugin::~MediaWikiPlugin() { delete m_toolDlg; } QString MediaWikiPlugin::name() const { return i18n("MediaWiki"); } QString MediaWikiPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon MediaWikiPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-mediawiki")); } QString MediaWikiPlugin::description() const { return i18n("A tool to export to MediaWiki web-service"); } QString MediaWikiPlugin::details() const { return i18n("

This tool permit to export items to MediaWiki web-service.

" "

See MediaWiki web site for details: hhttps://www.mediawiki.org/

"); } QList MediaWikiPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2011-2019")) - << DPluginAuthor(QLatin1String("Alexandre Mendes"), - QLatin1String("alex dot mendes1988 at gmail dot com"), - QLatin1String("(C) 2011")) - << DPluginAuthor(QLatin1String("Guillaume Hormiere"), - QLatin1String("hormiere dot guillaume at gmail dot com"), - QLatin1String("(C) 2011-2012")) - << DPluginAuthor(QLatin1String("Peter Potrowl"), - QLatin1String("peter dot potrowl at gmail dot com"), - QLatin1String("(C) 2013")) + << DPluginAuthor(QString::fromUtf8("Alexandre Mendes"), + QString::fromUtf8("alex dot mendes1988 at gmail dot com"), + QString::fromUtf8("(C) 2011")) + << DPluginAuthor(QString::fromUtf8("Guillaume Hormiere"), + QString::fromUtf8("hormiere dot guillaume at gmail dot com"), + QString::fromUtf8("(C) 2011-2012")) + << DPluginAuthor(QString::fromUtf8("Peter Potrowl"), + QString::fromUtf8("peter dot potrowl at gmail dot com"), + QString::fromUtf8("(C) 2013")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2011-2019")) ; } void MediaWikiPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to MediaWiki...")); ac->setObjectName(QLatin1String("export_MediaWiki")); ac->setActionCategory(DPluginAction::GenericExport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotMediaWiki())); addAction(ac); } void MediaWikiPlugin::slotMediaWiki() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new MediaWikiWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/onedrive/odplugin.cpp b/core/dplugins/generic/webservices/onedrive/odplugin.cpp index 63e62ce95e..44fdbaa4c5 100644 --- a/core/dplugins/generic/webservices/onedrive/odplugin.cpp +++ b/core/dplugins/generic/webservices/onedrive/odplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to OneDrive web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "odplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "odwindow.h" namespace Digikam { ODPlugin::ODPlugin(QObject* const parent) : DPluginGeneric(parent) { } ODPlugin::~ODPlugin() { delete m_toolDlg; } QString ODPlugin::name() const { return i18n("OneDrive"); } QString ODPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon ODPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-onedrive")); } QString ODPlugin::description() const { return i18n("A tool to export to OneDrive web-service"); } QString ODPlugin::details() const { return i18n("

This tool permit to export items to OneDrive web-service.

" "

See Box web site for details: https://onedrive.live.com/

"); } QList ODPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Tarek Talaat"), - QLatin1String("tarektalaat93 at gmail dot com"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Tarek Talaat"), + QString::fromUtf8("tarektalaat93 at gmail dot com"), + QString::fromUtf8("(C) 2018")) ; } void ODPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Onedrive...")); ac->setObjectName(QLatin1String("export_onedrive")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_O); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotOneDrive())); addAction(ac); } void ODPlugin::slotOneDrive() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new ODWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/pinterest/pplugin.cpp b/core/dplugins/generic/webservices/pinterest/pplugin.cpp index 8fb7539c4b..f4ecbde8ec 100644 --- a/core/dplugins/generic/webservices/pinterest/pplugin.cpp +++ b/core/dplugins/generic/webservices/pinterest/pplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to Pinterest web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "pplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "pwindow.h" namespace Digikam { PPlugin::PPlugin(QObject* const parent) : DPluginGeneric(parent) { } PPlugin::~PPlugin() { delete m_toolDlg; } QString PPlugin::name() const { return i18n("Pinterest"); } QString PPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon PPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-pinterest")); } QString PPlugin::description() const { return i18n("A tool to export to Pinterest web-service"); } QString PPlugin::details() const { return i18n("

This tool permit to export items to Pinterest web-service.

" "

See Box web site for details: https://www.pinterest.com/

"); } QList PPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Tarek Talaat"), - QLatin1String("tarektalaat93 at gmail dot com"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Tarek Talaat"), + QString::fromUtf8("tarektalaat93 at gmail dot com"), + QString::fromUtf8("(C) 2018")) ; } void PPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Pinterest...")); ac->setObjectName(QLatin1String("export_pinterest")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_I); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotPinterest())); addAction(ac); } void PPlugin::slotPinterest() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new PWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/piwigo/piwigoplugin.cpp b/core/dplugins/generic/webservices/piwigo/piwigoplugin.cpp index 9fd30a2180..6d7c221efe 100644 --- a/core/dplugins/generic/webservices/piwigo/piwigoplugin.cpp +++ b/core/dplugins/generic/webservices/piwigo/piwigoplugin.cpp @@ -1,122 +1,122 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to Piwigo web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "piwigoplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "piwigowindow.h" namespace Digikam { PiwigoPlugin::PiwigoPlugin(QObject* const parent) : DPluginGeneric(parent) { } PiwigoPlugin::~PiwigoPlugin() { delete m_toolDlg; } QString PiwigoPlugin::name() const { return i18n("Piwigo"); } QString PiwigoPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon PiwigoPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-piwigo")); } QString PiwigoPlugin::description() const { return i18n("A tool to export to Piwigo web-service"); } QString PiwigoPlugin::details() const { return i18n("

This tool permit to export items to Piwigo web-service.

" "

See Piwigo web site for details: https://piwigo.org/

"); } QList PiwigoPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Renchi Raju"), - QLatin1String("renchi dot raju at gmail dot com"), - QLatin1String("(C) 2003-2005")) - << DPluginAuthor(QLatin1String("Colin Guthrie"), - QLatin1String("kde at colin dot guthr dot ie"), - QLatin1String("(C) 2006-2007")) - << DPluginAuthor(QLatin1String("Andrea Diamantini"), - QLatin1String("adjam7 at gmail dot com"), - QLatin1String("(C) 2008")) - << DPluginAuthor(QLatin1String("Frédéric Coiffier"), - QLatin1String("frederic dot coiffier at free dot com"), - QLatin1String("(C) 2010-2014")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2006-2019")) + << DPluginAuthor(QString::fromUtf8("Renchi Raju"), + QString::fromUtf8("renchi dot raju at gmail dot com"), + QString::fromUtf8("(C) 2003-2005")) + << DPluginAuthor(QString::fromUtf8("Colin Guthrie"), + QString::fromUtf8("kde at colin dot guthr dot ie"), + QString::fromUtf8("(C) 2006-2007")) + << DPluginAuthor(QString::fromUtf8("Andrea Diamantini"), + QString::fromUtf8("adjam7 at gmail dot com"), + QString::fromUtf8("(C) 2008")) + << DPluginAuthor(QString::fromUtf8("Frédéric Coiffier"), + QString::fromUtf8("frederic dot coiffier at free dot com"), + QString::fromUtf8("(C) 2010-2014")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2006-2019")) ; } void PiwigoPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Piwigo...")); ac->setObjectName(QLatin1String("export_piwigo")); ac->setActionCategory(DPluginAction::GenericExport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotPiwigo())); addAction(ac); } void PiwigoPlugin::slotPiwigo() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new PiwigoWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/rajce/rajceplugin.cpp b/core/dplugins/generic/webservices/rajce/rajceplugin.cpp index 960ee0c1a1..2fdf882637 100644 --- a/core/dplugins/generic/webservices/rajce/rajceplugin.cpp +++ b/core/dplugins/generic/webservices/rajce/rajceplugin.cpp @@ -1,111 +1,111 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to Rajce web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "rajceplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "rajcewindow.h" namespace Digikam { RajcePlugin::RajcePlugin(QObject* const parent) : DPluginGeneric(parent) { } RajcePlugin::~RajcePlugin() { delete m_toolDlg; } QString RajcePlugin::name() const { return i18n("Rajce"); } QString RajcePlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon RajcePlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-rajce")); } QString RajcePlugin::description() const { return i18n("A tool to export to Rajce web-service"); } QString RajcePlugin::details() const { return i18n("

This tool permit to export items to Rajce web-service.

" "

See Rajce web site for details: https://www.rajce.idnes.cz/

"); } QList RajcePlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Lukas Krejci"), - QLatin1String("metlosh at gmail dot com"), - QLatin1String("(C) 2011-2013")) + << DPluginAuthor(QString::fromUtf8("Lukas Krejci"), + QString::fromUtf8("metlosh at gmail dot com"), + QString::fromUtf8("(C) 2011-2013")) ; } void RajcePlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Rajce...")); ac->setObjectName(QLatin1String("export_rajce")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_J); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotRajce())); addAction(ac); } void RajcePlugin::slotRajce() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new RajceWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/smugmug/smugplugin.cpp b/core/dplugins/generic/webservices/smugmug/smugplugin.cpp index 2fc7f422fc..0e632fc91a 100644 --- a/core/dplugins/generic/webservices/smugmug/smugplugin.cpp +++ b/core/dplugins/generic/webservices/smugmug/smugplugin.cpp @@ -1,145 +1,145 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export and import items with SmugMug web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "smugplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "smugwindow.h" namespace Digikam { SmugPlugin::SmugPlugin(QObject* const parent) : DPluginGeneric(parent) { } SmugPlugin::~SmugPlugin() { delete m_toolDlgExport; delete m_toolDlgImport; } QString SmugPlugin::name() const { return i18n("SmugMug"); } QString SmugPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon SmugPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-smugmug")); } QString SmugPlugin::description() const { return i18n("A tool to export and import items with SmugMug web-service"); } QString SmugPlugin::details() const { return i18n("

This tool permit to export and import items with SmugMug web-service.

" "

See SmugMug web site for details: https://www.smugmug.com

"); } QList SmugPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2008-2019")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2017-2019")) - << DPluginAuthor(QLatin1String("Luka Renko"), - QLatin1String("lure at kubuntu dot org"), - QLatin1String("(C) 2008-2009")) - << DPluginAuthor(QLatin1String("Vardhman Jain"), - QLatin1String("vardhman at gmail dot com"), - QLatin1String("(C) 2005-2008")) + << DPluginAuthor(QString::fromUtf8("Luka Renko"), + QString::fromUtf8("lure at kubuntu dot org"), + QString::fromUtf8("(C) 2008-2009")) + << DPluginAuthor(QString::fromUtf8("Vardhman Jain"), + QString::fromUtf8("vardhman at gmail dot com"), + QString::fromUtf8("(C) 2005-2008")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2017-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2008-2019")) ; } void SmugPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &SmugMug...")); ac->setObjectName(QLatin1String("export_smugmug")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_S); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotSmugMugExport())); addAction(ac); DPluginAction* const ac2 = new DPluginAction(parent); ac2->setIcon(icon()); ac2->setText(i18nc("@action", "Import from &SmugMug...")); ac2->setObjectName(QLatin1String("import_smugmug")); ac2->setActionCategory(DPluginAction::GenericImport); ac2->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_S); connect(ac2, SIGNAL(triggered(bool)), this, SLOT(slotSmugMugImport())); addAction(ac2); } void SmugPlugin::slotSmugMugExport() { if (!reactivateToolDialog(m_toolDlgExport)) { delete m_toolDlgExport; m_toolDlgExport = new SmugWindow(infoIface(sender()), 0); m_toolDlgExport->setPlugin(this); m_toolDlgExport->show(); } } void SmugPlugin::slotSmugMugImport() { if (!reactivateToolDialog(m_toolDlgImport)) { delete m_toolDlgImport; m_toolDlgImport = new SmugWindow(infoIface(sender()), 0, true); m_toolDlgImport->setPlugin(this); m_toolDlgImport->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/twitter/twitterplugin.cpp b/core/dplugins/generic/webservices/twitter/twitterplugin.cpp index 418a8c6efe..1470961a5d 100644 --- a/core/dplugins/generic/webservices/twitter/twitterplugin.cpp +++ b/core/dplugins/generic/webservices/twitter/twitterplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to Twitter web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "twitterplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "twitterwindow.h" namespace Digikam { TwitterPlugin::TwitterPlugin(QObject* const parent) : DPluginGeneric(parent) { } TwitterPlugin::~TwitterPlugin() { delete m_toolDlg; } QString TwitterPlugin::name() const { return i18n("Twitter"); } QString TwitterPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon TwitterPlugin::icon() const { return QIcon::fromTheme(QLatin1String("dk-twitter")); } QString TwitterPlugin::description() const { return i18n("A tool to export to Twitter web-service"); } QString TwitterPlugin::details() const { return i18n("

This tool permit to export items to Twitter web-service.

" "

See Twitter web site for details: https://twitter.com/

"); } QList TwitterPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Tarek Talaat"), - QLatin1String("tarektalaat93 at gmail dot com"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Tarek Talaat"), + QString::fromUtf8("tarektalaat93 at gmail dot com"), + QString::fromUtf8("(C) 2018")) ; } void TwitterPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Twitter...")); ac->setObjectName(QLatin1String("export-twitter")); ac->setActionCategory(DPluginAction::GenericExport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotTwitter())); addAction(ac); } void TwitterPlugin::slotTwitter() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new TwWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/unified/unifiedplugin.cpp b/core/dplugins/generic/webservices/unified/unifiedplugin.cpp index 4c58c32987..9385e02c79 100644 --- a/core/dplugins/generic/webservices/unified/unifiedplugin.cpp +++ b/core/dplugins/generic/webservices/unified/unifiedplugin.cpp @@ -1,116 +1,116 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export items to web-services (unified version). * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "unifiedplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "wswizard.h" namespace Digikam { UnifiedPlugin::UnifiedPlugin(QObject* const parent) : DPluginGeneric(parent) { } UnifiedPlugin::~UnifiedPlugin() { delete m_toolDlg; } QString UnifiedPlugin::name() const { return i18n("Unified"); } QString UnifiedPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon UnifiedPlugin::icon() const { return QIcon::fromTheme(QLatin1String("internet-web-browser")); } QString UnifiedPlugin::description() const { return i18n("A tool to export items to web-services"); } QString UnifiedPlugin::details() const { return i18n("

This tool permit to export items to many web-services.

" "

This is a unified tool, grouping many tools in one.

"); } QList UnifiedPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2018-2019")) - << DPluginAuthor(QLatin1String("Maik Qualmann"), - QLatin1String("metzpinguin at gmail dot com"), - QLatin1String("(C) 2018-2019")) - << DPluginAuthor(QLatin1String("Thanh Trung Dinh"), - QLatin1String("dinhthanhtrung1996 at gmail dot com"), - QLatin1String("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Thanh Trung Dinh"), + QString::fromUtf8("dinhthanhtrung1996 at gmail dot com"), + QString::fromUtf8("(C) 2018")) + << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), + QString::fromUtf8("metzpinguin at gmail dot com"), + QString::fromUtf8("(C) 2018-2019")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2018-2019")) ; } void UnifiedPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to Webservices...")); ac->setObjectName(QLatin1String("export_unified")); ac->setActionCategory(DPluginAction::GenericExport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotUnified())); addAction(ac); } void UnifiedPlugin::slotUnified() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new WSWizard(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/vkontakte/vkplugin.cpp b/core/dplugins/generic/webservices/vkontakte/vkplugin.cpp index fc5219cb64..c00ad8d9b3 100644 --- a/core/dplugins/generic/webservices/vkontakte/vkplugin.cpp +++ b/core/dplugins/generic/webservices/vkontakte/vkplugin.cpp @@ -1,110 +1,110 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to VKontakte web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "vkplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "vkwindow.h" namespace Digikam { VKontaktePlugin::VKontaktePlugin(QObject* const parent) : DPluginGeneric(parent) { } VKontaktePlugin::~VKontaktePlugin() { delete m_toolDlg; } QString VKontaktePlugin::name() const { return i18n("VKontakte"); } QString VKontaktePlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon VKontaktePlugin::icon() const { return QIcon::fromTheme(QLatin1String("preferences-web-browser-shortcuts")); } QString VKontaktePlugin::description() const { return i18n("A tool to export to VKontakte web-service"); } QString VKontaktePlugin::details() const { return i18n("

This tool permit to export items to VKontakte web-service.

" "

See VKontakte web site for details: https://vk.com/

"); } QList VKontaktePlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Alexander Potashev"), - QLatin1String("aspotashev at gmail dot com"), - QLatin1String("(C) 2011-2015")) + << DPluginAuthor(QString::fromUtf8("Alexander Potashev"), + QString::fromUtf8("aspotashev at gmail dot com"), + QString::fromUtf8("(C) 2011-2015")) ; } void VKontaktePlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &VKontakte...")); ac->setObjectName(QLatin1String("export_vkontakte")); ac->setActionCategory(DPluginAction::GenericExport); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotVKontakte())); addAction(ac); } void VKontaktePlugin::slotVKontakte() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new VKWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/core/dplugins/generic/webservices/yandexfotki/yfplugin.cpp b/core/dplugins/generic/webservices/yandexfotki/yfplugin.cpp index 5a5c7bdba7..26caa1a9b3 100644 --- a/core/dplugins/generic/webservices/yandexfotki/yfplugin.cpp +++ b/core/dplugins/generic/webservices/yandexfotki/yfplugin.cpp @@ -1,114 +1,114 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2018-07-30 * Description : a plugin to export to YandexFotki web-service. * * Copyright (C) 2018-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #include "yfplugin.h" // Qt includes #include // KDE includes #include // Local includes #include "yfwindow.h" namespace Digikam { YFPlugin::YFPlugin(QObject* const parent) : DPluginGeneric(parent) { } YFPlugin::~YFPlugin() { delete m_toolDlg; } QString YFPlugin::name() const { return i18n("YandexFotki"); } QString YFPlugin::iid() const { return QLatin1String(DPLUGIN_IID); } QIcon YFPlugin::icon() const { return QIcon::fromTheme(QLatin1String("internet-web-browser")); } QString YFPlugin::description() const { return i18n("A tool to export to YandexFotki web-service"); } QString YFPlugin::details() const { return i18n("

This tool permit to export items to YandexFotki web-service.

" "

See YandexFotki web site for details: https://fotki.yandex.ru/

"); } QList YFPlugin::authors() const { return QList() - << DPluginAuthor(QLatin1String("Roman Tsisyk"), - QLatin1String("roman at tsisyk dot com"), - QLatin1String("(C) 2010")) - << DPluginAuthor(QLatin1String("Gilles Caulier"), - QLatin1String("caulier dot gilles at gmail dot com"), - QLatin1String("(C) 2010-2019")) + << DPluginAuthor(QString::fromUtf8("Roman Tsisyk"), + QString::fromUtf8("roman at tsisyk dot com"), + QString::fromUtf8("(C) 2010")) + << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), + QString::fromUtf8("caulier dot gilles at gmail dot com"), + QString::fromUtf8("(C) 2010-2019")) ; } void YFPlugin::setup(QObject* const parent) { DPluginAction* const ac = new DPluginAction(parent); ac->setIcon(icon()); ac->setText(i18nc("@action", "Export to &Yandex.Fotki...")); ac->setObjectName(QLatin1String("export_yandexfotki")); ac->setActionCategory(DPluginAction::GenericExport); ac->setShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_Y); connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotYandexFotki())); addAction(ac); } void YFPlugin::slotYandexFotki() { if (!reactivateToolDialog(m_toolDlg)) { delete m_toolDlg; m_toolDlg = new YFWindow(infoIface(sender()), 0); m_toolDlg->setPlugin(this); m_toolDlg->show(); } } } // namespace Digikam diff --git a/project/bundles/appimage/data/AppRun b/project/bundles/appimage/data/AppRun index 0cad17c858..f0ae968e78 100755 --- a/project/bundles/appimage/data/AppRun +++ b/project/bundles/appimage/data/AppRun @@ -1,141 +1,141 @@ #!/bin/bash # Main AppImage script to wrap XDG_* variable properly for Qt5. # # Copyright (c) 2015-2019, Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # preload_shared_library () { FILE=$1 echo $FILE if [[ "$(arch)" = "x86_64" ]] ; then # 64 bits system if [ -f "/usr/lib64/$FILE" ] ; then export LD_PRELOAD=$LD_PRELOAD:/usr/lib64/$FILE elif [ -f "/usr/lib/x86_64-linux-gnu/$FILE" ] ; then export LD_PRELOAD=$LD_PRELOAD:/usr/lib/x86_64-linux-gnu/$FILE elif [ -f "/lib/x86_64-linux-gnu/$FILE" ] ; then export LD_PRELOAD=$LD_PRELOAD:/lib/x86_64-linux-gnu/$FILE fi else # 32 bits system if [ -f "/usr/lib/$FILE" ] ; then export LD_PRELOAD=$LD_PRELOAD:/usr/lib/$FILE elif [ -f "/usr/lib/i386-linux-gnu/$FILE" ] ; then export LD_PRELOAD=$LD_PRELOAD:/usr/lib/i386-linux-gnu/$FILE elif [ -f "/lib/i386-linux-gnu/$FILE" ] ; then export LD_PRELOAD=$LD_PRELOAD:/lib/i386-linux-gnu/$FILE fi fi } preload_shared_library libfreetype.so preload_shared_library libudev.so -exit + echo "-- digiKam AppImage Bundle" echo "-- Use 'help' as CLI argument to know all available options for digiKam application" echo "-- Preloading shared libs: $LD_PRELOAD" DIR="`dirname \"$0\"`" DIR="`( cd \"$DIR\" && pwd )`" export APPDIR=$DIR export APPIMAGE_ORIGINAL_LD_LIBRARY_PATH=$LD_LIBRARY_PATH export APPIMAGE_ORIGINAL_QT_PLUGIN_PATH=$QT_PLUGIN_PATH export APPIMAGE_ORIGINAL_XDG_DATA_DIRS=$XDG_DATA_DIRS export APPIMAGE_ORIGINAL_PATH=$PATH export LD_LIBRARY_PATH=$DIR/usr/lib/:$LD_LIBRARY_PATH export QT_PLUGIN_PATH=$DIR/usr/plugins/ export XDG_DATA_DIRS=$DIR/usr/share/:$XDG_DATA_DIRS export PATH=$DIR/usr/bin:$DIR/usr/lib:$DIR/usr/lib/libexec/kf5:$DIR/usr/share/digikam/utils:$PATH export KDE_FORK_SLAVES=1 export CAMLIBS=$DIR/usr/lib/libgphoto2 export IOLIBS=$DIR/usr/lib/libgphoto2_port # code to disable Plasma desktopk detection with QDesktopService export APPIMAGE_ORIGINAL_KDE_FULL_SESSION=$KDE_FULL_SESSION export APPIMAGE_ORIGINAL_DESKTOP_SESSION=$DESKTOP_SESSION export APPIMAGE_ORIGINAL_XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP export APPIMAGE_ORIGINAL_XDG_SESSION_DESKTOP=$XDG_SESSION_DESKTOP #unset KDE_FULL_SESSION #unset DESKTOP_SESSION #unset XDG_CURRENT_DESKTOP #unset XDG_SESSION_DESKTOP # if no customized Qt debug loggin variable is set, turn on one for a better readability if [ -z "$QT_MESSAGE_PATTERN" ]; then export QT_MESSAGE_PATTERN="`echo -e "\033[34m%{function}\033[0m: %{message}"`" fi export APPIMAGE_STARTUP_LD_LIBRARY_PATH=$LD_LIBRARY_PATH export APPIMAGE_STARTUP_QT_PLUGIN_PATH=$QT_PLUGIN_PATH export APPIMAGE_STARTUP_XDG_DATA_DIRS=$XDG_DATA_DIRS export APPIMAGE_STARTUP_PATH=$PATH # Parse CLI options. if [[ $1 == "showfoto" ]] ; then # Run Showfoto as well. showfoto ${@:2} elif [[ $1 == "debug" ]] ; then if [[ $2 == "showfoto" ]] ; then # Showfoto in debug mode. echo "Starting Showfoto into GDB..." echo "Use 'bt' command on debugger prompt to get a crash backtrace." echo "Use 'q' command to quit debugger session." gdb -ex=r --args showfoto ${@:3} else # digiKam in debug mode. echo "Starting digiKam into GDB..." echo "Use 'bt' command on debugger prompt to get a crash backtrace." echo "Use 'q' command to quit debugger session." gdb -ex=r --args digikam ${@:2} fi elif [[ $1 == "help" ]] ; then # digiKam/Showfoto CLI help. echo "digiKam AppImage bundle CLI options:" echo " without option : run digiKam." echo " : run Showfoto instead digiKam." echo " : run digiKam into GDB." echo " : run Showfoto into GDB." echo " : run native AppImage script for a desktop integration." echo " : show these information." elif [[ ($1 == "desktopintegration") ]] ; then # Native AppImage CLI options. echo "Call native AppImage CLI tools for desktop integration..." digikam.wrapper $@ else # Run digiKam as well. digikam $@ fi diff --git a/project/bundles/mxe/config.sh b/project/bundles/mxe/config.sh index 2a6f50c3a6..966ee3bc8a 100644 --- a/project/bundles/mxe/config.sh +++ b/project/bundles/mxe/config.sh @@ -1,79 +1,79 @@ #!/bin/bash # Copyright (c) 2013-2019, Gilles Caulier, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. ######################################################################## # Absolute path where are downloaded all tarballs to compile. DOWNLOAD_DIR="`pwd`/temp.dwnld" # Absolute path where are compiled all tarballs BUILDING_DIR="`pwd`/temp.build" #------------------------------------------------------------------------------------------- # MXE configuration #------------ # IMPORTANT: Target Windows architecture to build installer. Possible values: 32 or 64 bits. -MXE_ARCHBITS=32 +MXE_ARCHBITS=64 #------------ if [[ $MXE_ARCHBITS == 32 ]]; then # Windows 32 bits shared MXE_BUILD_TARGETS="i686-w64-mingw32.shared" MXE_BUILDROOT="`pwd`/build.win32" elif [[ $MXE_ARCHBITS == 64 ]]; then # Windows 64 bits shared MXE_BUILD_TARGETS="x86_64-w64-mingw32.shared" MXE_BUILDROOT="`pwd`/build.win64" else echo "Unsupported or wrong target Windows architecture: $MXE_ARCHBITS bits." exit -1 fi echo "Target Windows architecture: $MXE_ARCHBITS bits." MXE_GIT_URL="https://github.com/mxe/mxe.git" MXE_GIT_REVISION=master MXE_INSTALL_PREFIX=${MXE_BUILDROOT}/usr/${MXE_BUILD_TARGETS}/ MXE_TOOLCHAIN=${MXE_INSTALL_PREFIX}/share/cmake/mxe-conf.cmake #------------------------------------------------------------------------------------------- # URL to git repository to checkout digiKam source code # Read/write url is an alternative when official read only server is down. #DK_GITURL="git://anongit.kde.org/digikam.git" DK_GITURL="git@git.kde.org:digikam" # digiKam tarball information. DK_URL="http://download.kde.org/stable/digikam" # Location to build source code. DK_BUILDTEMP=~/dktemp # digiKam tag version from git. Official tarball do not include extra shared libraries. # The list of tags can be listed with this url: https://quickgit.kde.org/?p=digikam.git&a=tags # If you want to package current implemntation from git, use "master" as tag. #DK_VERSION=v6.0.0-beta2 DK_VERSION=master #DK_VERSION=development/6.0.0 # Installer sub version to differentiates newer updates of the installer itself, even if the underlying application hasn’t changed. #DK_EPOCH="-01" # Epoch with time-stamp for pre-release bundle in ISO format DK_EPOCH="-`date "+%Y%m%dT%H%M%S"`" # Installer will include or not digiKam debug symbols DK_DEBUG=1 # Sign bundles with GPG. Passphrase must be hosted in ~/.gnupg/dkorg-gpg-pwd.txt -DK_SIGN=1 +DK_SIGN=0 # Upload automatically bundle to files.kde.org (pre-release only). DK_UPLOAD=1 DK_UPLOADURL="digikam@racnoss.kde.org" DK_UPLOADDIR="/srv/archives/files/digikam/"