From 786123caab6c79e876bab9f9dc8c1a672541ca81 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sat, 30 Mar 2019 16:57:24 -0500 Subject: [PATCH] Lubuntuify the package. --- AUTHORS | 16 - CHANGELOG | 629 ------------ CMakeLists.txt | 259 ----- COPYING | 280 ----- README.md | 69 -- cmake/FindQxt.cmake | 155 --- cmake/FindX11_XCB.cmake | 31 - cmake/FindXCB.cmake | 238 ----- cmake/LXQtTranslateDesktop.cmake | 107 -- cmake/LXQtTranslateTs.cmake | 129 --- cmake/Qt5TranslationLoader.cmake | 49 - cmake/Qt5TranslationLoader.cpp.in | 33 - debian/changelog | 6 + debian/control | 24 +- debian/copyright | 16 +- docs/html/default.css | 142 --- docs/html/en/index.html | 444 -------- docs/html/pt_BR/index.html | 434 -------- docs/html/ru/index.html | 487 --------- img/logo.png | Bin 6817 -> 0 bytes img/screengrab.png | Bin 1947 -> 0 bytes img/trayicon.png | Bin 764 -> 0 bytes screengrab.conf | 23 - screengrab.desktop.in | 12 - screengrab.qrc | 6 - src/common/qkeysequencewidget/CMakeLists.txt | 29 - .../qkeysequencewidget/img/delete_32.png | Bin 4479 -> 0 bytes .../qkeysequencewidget/qkeysequencewidget.pri | 7 - .../qkeysequencewidget/qkeysequencewidget.qrc | 5 - .../src/qkeysequencewidget.cpp | 578 ----------- .../src/qkeysequencewidget.h | 127 --- .../src/qkeysequencewidget_p.h | 120 --- src/core/config.cpp | 603 ----------- src/core/config.h | 277 ----- src/core/core.cpp | 604 ----------- src/core/core.h | 149 --- src/core/dbusnotifier.cpp | 106 -- src/core/dbusnotifier.h | 46 - src/core/main.cpp | 47 - src/core/modulemanager.cpp | 118 --- src/core/modulemanager.h | 51 - src/core/regionselect.cpp | 383 ------- src/core/regionselect.h | 92 -- src/core/shortcutmanager.cpp | 147 --- src/core/shortcutmanager.h | 64 -- src/core/singleapp.cpp | 103 -- src/core/singleapp.h | 50 - src/core/ui/about.cpp | 170 --- src/core/ui/about.h | 55 - src/core/ui/aboutwidget.ui | 167 --- src/core/ui/configwidget.cpp | 489 --------- src/core/ui/configwidget.h | 78 -- src/core/ui/configwidget.ui | 689 ------------- src/core/ui/mainwindow.cpp | 644 ------------ src/core/ui/mainwindow.h | 121 --- src/core/ui/mainwindow.ui | 261 ----- src/core/x11utils.cpp | 43 - src/core/x11utils.h | 50 - src/modules/abstractmodule.h | 43 - src/modules/extedit/CMakeLists.txt | 35 - src/modules/extedit/extedit.cpp | 93 -- src/modules/extedit/extedit.h | 53 - src/modules/extedit/moduleextedit.cpp | 74 -- src/modules/extedit/moduleextedit.h | 43 - src/modules/uploader/CMakeLists.txt | 46 - src/modules/uploader/dialoguploader.cpp | 252 ----- src/modules/uploader/dialoguploader.h | 64 -- src/modules/uploader/dialoguploader.ui | 339 ------ src/modules/uploader/imgur/uploader_imgur.cpp | 103 -- src/modules/uploader/imgur/uploader_imgur.h | 54 - .../uploader/imgur/uploader_imgur_widget.cpp | 44 - .../uploader/imgur/uploader_imgur_widget.h | 44 - .../uploader/imgur/uploader_imgur_widget.ui | 44 - .../imgur/uploaderconfigwidget_imgur.cpp | 63 -- .../imgur/uploaderconfigwidget_imgur.h | 46 - .../imgur/uploaderconfigwidget_imgur.ui | 67 -- src/modules/uploader/moduleuploader.cpp | 126 --- src/modules/uploader/moduleuploader.h | 54 - src/modules/uploader/uploader.cpp | 242 ----- src/modules/uploader/uploader.h | 91 -- src/modules/uploader/uploaderconfig.cpp | 122 --- src/modules/uploader/uploaderconfig.h | 54 - src/modules/uploader/uploaderconfigwidget.cpp | 113 -- src/modules/uploader/uploaderconfigwidget.h | 52 - src/modules/uploader/uploaderconfigwidget.ui | 96 -- translations/screengrab.ts | 962 ----------------- translations/screengrab_ca.desktop | 3 - translations/screengrab_ca.ts | 963 ----------------- translations/screengrab_cs.desktop | 2 - translations/screengrab_cs.ts | 963 ----------------- translations/screengrab_cy.ts | 962 ----------------- translations/screengrab_de.desktop | 3 - translations/screengrab_de.ts | 963 ----------------- translations/screengrab_el.ts | 962 ----------------- translations/screengrab_es.desktop | 3 - translations/screengrab_es.ts | 963 ----------------- translations/screengrab_fr.ts | 962 ----------------- translations/screengrab_gl.ts | 963 ----------------- translations/screengrab_he.ts | 963 ----------------- translations/screengrab_it.desktop | 3 - translations/screengrab_it.ts | 965 ------------------ translations/screengrab_lt.ts | 963 ----------------- translations/screengrab_nb_NO.ts | 963 ----------------- translations/screengrab_pl.ts | 963 ----------------- translations/screengrab_pt.ts | 962 ----------------- translations/screengrab_pt_BR.ts | 963 ----------------- translations/screengrab_ru.desktop | 3 - translations/screengrab_ru.ts | 964 ----------------- translations/screengrab_uk.desktop | 3 - translations/screengrab_uk.ts | 963 ----------------- 110 files changed, 26 insertions(+), 29845 deletions(-) delete mode 100644 AUTHORS delete mode 100644 CHANGELOG delete mode 100644 CMakeLists.txt delete mode 100644 COPYING delete mode 100644 README.md delete mode 100644 cmake/FindQxt.cmake delete mode 100644 cmake/FindX11_XCB.cmake delete mode 100644 cmake/FindXCB.cmake delete mode 100644 cmake/LXQtTranslateDesktop.cmake delete mode 100644 cmake/LXQtTranslateTs.cmake delete mode 100644 cmake/Qt5TranslationLoader.cmake delete mode 100644 cmake/Qt5TranslationLoader.cpp.in delete mode 100644 docs/html/default.css delete mode 100644 docs/html/en/index.html delete mode 100644 docs/html/pt_BR/index.html delete mode 100644 docs/html/ru/index.html delete mode 100644 img/logo.png delete mode 100644 img/screengrab.png delete mode 100644 img/trayicon.png delete mode 100644 screengrab.conf delete mode 100644 screengrab.desktop.in delete mode 100644 screengrab.qrc delete mode 100644 src/common/qkeysequencewidget/CMakeLists.txt delete mode 100644 src/common/qkeysequencewidget/img/delete_32.png delete mode 100644 src/common/qkeysequencewidget/qkeysequencewidget.pri delete mode 100644 src/common/qkeysequencewidget/qkeysequencewidget.qrc delete mode 100644 src/common/qkeysequencewidget/src/qkeysequencewidget.cpp delete mode 100644 src/common/qkeysequencewidget/src/qkeysequencewidget.h delete mode 100644 src/common/qkeysequencewidget/src/qkeysequencewidget_p.h delete mode 100644 src/core/config.cpp delete mode 100644 src/core/config.h delete mode 100644 src/core/core.cpp delete mode 100644 src/core/core.h delete mode 100644 src/core/dbusnotifier.cpp delete mode 100644 src/core/dbusnotifier.h delete mode 100644 src/core/main.cpp delete mode 100644 src/core/modulemanager.cpp delete mode 100644 src/core/modulemanager.h delete mode 100644 src/core/regionselect.cpp delete mode 100644 src/core/regionselect.h delete mode 100644 src/core/shortcutmanager.cpp delete mode 100644 src/core/shortcutmanager.h delete mode 100644 src/core/singleapp.cpp delete mode 100644 src/core/singleapp.h delete mode 100644 src/core/ui/about.cpp delete mode 100644 src/core/ui/about.h delete mode 100644 src/core/ui/aboutwidget.ui delete mode 100644 src/core/ui/configwidget.cpp delete mode 100644 src/core/ui/configwidget.h delete mode 100644 src/core/ui/configwidget.ui delete mode 100644 src/core/ui/mainwindow.cpp delete mode 100644 src/core/ui/mainwindow.h delete mode 100644 src/core/ui/mainwindow.ui delete mode 100644 src/core/x11utils.cpp delete mode 100644 src/core/x11utils.h delete mode 100644 src/modules/abstractmodule.h delete mode 100644 src/modules/extedit/CMakeLists.txt delete mode 100644 src/modules/extedit/extedit.cpp delete mode 100644 src/modules/extedit/extedit.h delete mode 100644 src/modules/extedit/moduleextedit.cpp delete mode 100644 src/modules/extedit/moduleextedit.h delete mode 100644 src/modules/uploader/CMakeLists.txt delete mode 100644 src/modules/uploader/dialoguploader.cpp delete mode 100644 src/modules/uploader/dialoguploader.h delete mode 100644 src/modules/uploader/dialoguploader.ui delete mode 100644 src/modules/uploader/imgur/uploader_imgur.cpp delete mode 100644 src/modules/uploader/imgur/uploader_imgur.h delete mode 100644 src/modules/uploader/imgur/uploader_imgur_widget.cpp delete mode 100644 src/modules/uploader/imgur/uploader_imgur_widget.h delete mode 100644 src/modules/uploader/imgur/uploader_imgur_widget.ui delete mode 100644 src/modules/uploader/imgur/uploaderconfigwidget_imgur.cpp delete mode 100644 src/modules/uploader/imgur/uploaderconfigwidget_imgur.h delete mode 100644 src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui delete mode 100644 src/modules/uploader/moduleuploader.cpp delete mode 100644 src/modules/uploader/moduleuploader.h delete mode 100644 src/modules/uploader/uploader.cpp delete mode 100644 src/modules/uploader/uploader.h delete mode 100644 src/modules/uploader/uploaderconfig.cpp delete mode 100644 src/modules/uploader/uploaderconfig.h delete mode 100644 src/modules/uploader/uploaderconfigwidget.cpp delete mode 100644 src/modules/uploader/uploaderconfigwidget.h delete mode 100644 src/modules/uploader/uploaderconfigwidget.ui delete mode 100644 translations/screengrab.ts delete mode 100644 translations/screengrab_ca.desktop delete mode 100644 translations/screengrab_ca.ts delete mode 100644 translations/screengrab_cs.desktop delete mode 100644 translations/screengrab_cs.ts delete mode 100644 translations/screengrab_cy.ts delete mode 100644 translations/screengrab_de.desktop delete mode 100644 translations/screengrab_de.ts delete mode 100644 translations/screengrab_el.ts delete mode 100644 translations/screengrab_es.desktop delete mode 100644 translations/screengrab_es.ts delete mode 100644 translations/screengrab_fr.ts delete mode 100644 translations/screengrab_gl.ts delete mode 100644 translations/screengrab_he.ts delete mode 100644 translations/screengrab_it.desktop delete mode 100644 translations/screengrab_it.ts delete mode 100644 translations/screengrab_lt.ts delete mode 100644 translations/screengrab_nb_NO.ts delete mode 100644 translations/screengrab_pl.ts delete mode 100644 translations/screengrab_pt.ts delete mode 100644 translations/screengrab_pt_BR.ts delete mode 100644 translations/screengrab_ru.desktop delete mode 100644 translations/screengrab_ru.ts delete mode 100644 translations/screengrab_uk.desktop delete mode 100644 translations/screengrab_uk.ts diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index d3a6ca3..0000000 --- a/AUTHORS +++ /dev/null @@ -1,16 +0,0 @@ -Upstream author: - Artem Galichkin - -Contributors: - Tonci Antunovic - Stef Binde - Alf Gaida - Jonathan Hooverman - Ilya87 - Tsu Jan - Jerome Leclanche - Paulo Lieuthier - Peter Mattern - Luís Pereira - Thibaut Quentin - Alexander Sokolov diff --git a/CHANGELOG b/CHANGELOG deleted file mode 100644 index 2555aca..0000000 --- a/CHANGELOG +++ /dev/null @@ -1,629 +0,0 @@ -screengrab-1.101 / 2019-02-25 -============================= - - * Bumped SCREENGRAB_VERSION to 1.101 - * Only translations was changed.. - -screengrab-1.100 / 2019-01-25 -============================= - - * Bumped SCREENGRAB_VERSION to 1.100 - * Don't crash with invalid config format - * Several codestyle improvements - * Added Github Issue Template - * Updated translations - * Improved translationhandling - -screengrab-1.99 / 2018-07-21 -============================ - - * Translated using Weblate (Italian) - * Translated using Weblate (Catalan) - * Translated using Weblate (català) - * Translated using Weblate (català) - * Translated using Weblate (català) - * Translated using Weblate (Catalan) - * Added translation using Weblate (català) - * Translated using Weblate (Spanish) - * Translated using Weblate (Portuguese (Brazil)) - * Translated using Weblate (Ukrainian (uk_UA)) - * Translated using Weblate (Polish) - * Added translation promo - * Translated using Weblate (Spanish) - * Translated using Weblate (Polish) - * Added translation using Weblate (Polish) - * Translated using Weblate (Hebrew) - * Added translation using Weblate (Hebrew) - * Translated using Weblate (German) - * Translated using Weblate (German) - * Translated using Weblate (Lithuanian) - * Added translation using Weblate (Lithuanian) - * Translated using Weblate (German) - * Add X11Extras and Network to link target - -1.98 / 2018-05-21 -================= - - * Release 1.98: Update changelog - * Bumped SCREENGRAB_VERSION to 1.98 - * Spanish translation update - * A more specific condition for Ctrl+C - * Filter out Ctrl+C in Delay box - * No window screenshot with shaded windows - * Translated using Weblate (German) - * Translated using Weblate (German) - * Translated using Weblate (German) - * Rewritten the debian related build infos - * some little changes regarding headlines and copyright - * removed doomer jabber - * added our bugtracker - * use our github repo as home - * Translated using Weblate (German) - * Translated using Weblate (German) - * Translated using Weblate (Ukrainian) - * Translated using Weblate (Spanish) - * Translated using Weblate (Russian) - * Translated using Weblate (Portuguese (Brazil)) - * Translated using Weblate (Italian) - * Translated using Weblate (French) - * Translated using Weblate (German) - * Translated using Weblate (Russian) - * Translated using Weblate (French) - * Updated translation files again - changed the parameters for lupdate - * Translated using Weblate (Portuguese (Brazil)) - * Translation maintenance - * Always use contents rect Fixes https://github.com/lxqt/screengrab/issues/67 - * Never scale up beyond real size - * Several fixes, especially for the tray icon - * __DATE__ and __TIME__ macro are not very helpful for reproducible builds. - * Cleanup CMakeLists.txt and complete AUTHORS - * Added a minimum default configuration - * Handle invalid window screenshots - * Corrected a grammar mistake - * Always use native (LXQt) file dialog - * Just changed the location of a comment - * Cleanup and fixes - * Some ui polishing - * Improve screengrab app behaviour - * Drops Qt foreach - * fix some uris - * Update references in about dialog - -1.97 / 2017-09-26 -================= - - * Release 1.97: Update changelog - * Added basic .gitattributes - * Bump SCREENGRAB_VERSION to 1.9.7 - * Added KF5WindowSystem to build requirements - * Updated italian translation - * Update Qt Linguist files - * French translation - * Adds "snap to border" functionality - * Fixes a FTBFS when compiled against Qt 5.8 - -1.96 / 2016-10-18 -================= - - * Bump version to 1.96 - * Disable the uploads the hard way - all other methods don't work right now. Only using the trigger results in a FTBFS. So for now it's the best just not to use the uploader lib. - * Work around grep 2.23 new behaviour - * Drop support for saving as bmp - * Remove unnecessary notification on screenshot - * Remove MediaCrush support as the official site shut down - * Some fixes regarding orthography and wording - * Documentation: fix some typos and HTML formatting issues - * Translations: drop country-specific translations in German and Italian - * Cleanup unused functions and defs - * Adds the Ui elements to support shot type saving/loading - * Adds methods to get/set screenshot type from/to config file - * imgur: Use https for uploads - * Make Imgur the default upload host again - * GPL2 header added whitespaces fixed - * fixed wrong fsf address the hard way - * Updates the CMake minimum version to v3.0.2 - * Adapt to Qt5Xdg new way of finding the package - * Grab the mouse pointer only if the option is enabled - * Add checkboxes for enable or disable grab image of the mouse pointer - * Add configuration option for enable or disable grabbing image of the mouse pointer - * Change const DEF_ENABLE_EXT_VIEWER from "1" to "true" - * Add code for grab image of the cursor on the screenshots (full screen or active window) - * Add CMake modules for finding XCB library - * Install the app icon to the hicolor theme - * Move "quit" toolbutton to the right edge of toolbar - * Return simple QSystemTray notification, if D-Bus notifications is disabled - * Add build option "-DSG_DBUS_NOTIFY" for enable \ disable D-Bus notification support - * Replace QStystemTray notification at Freedesktop notificaions (via DBus) - * Rename method "Core::getScreen" to "Core::getScreenData" - * Add configuration option for url to mediacru.sh uploader - * "Imgur' now is default uploader - * Create screengrab_it.desktop - * Update screengrab_it_IT.ts - -1.95_pr1 / 2015-01-29 -===================== - - * Reverse wrong cleanup in 21ad656c7284f346f5ecd4fc6914fa53b5c23093 - -1.95 / 2015-01-29 -================= - - * v2.0-beta1 - * Small CMakeLists cleanup - * Refactor connections signals & slots to the Qt5-style (modules classes) - * Refactor connections signals & slots to the Qt5-style (core and ui classes) - * Incapsulate pointer to Config instance in Core instance - * Remove debug output prints - * Add ability to upload on MediaCrush vith "--upload" command line option - * Restore ability to upload screenshot vith "--upload" command line option - * Restore ability for send IPC signal from new instance to the running instance (if "Allow multiple instances" is disabled) - * Actions of the modules (upload & edit) moved to the right at the toolbar - * Restore ability to run as minimized to tray (or taskbarO - * Actions of the modules (upload & edit) moved to the left at the toolbar - * Replace the deprecated QPixmap::grabWindow() method at the QScreen::grabWindow() - * Replase emitimh signal "newScreenShot" by direct call "updatePixmap" method of the MainWnd - * Make re-update preview after editing screenshot - * Fox wrong connect to slot for the "copy" action - * Refactor adding to main toolbar the actions for upload & edit screenshot - * Restore code for autosave mainwindow size on exit - * Change order initialization for some members of the MainWindow - * Kill some old unused code - * Refactor code for displaying tray info messages - * Update code fo crate / kill tray icon and tray menu actions - * Remove some old code - * Restore shortcuts - * Restore open screenshot in ext viewer by double click on preview - * Restore display tooltip on the preview image - * Make right resizing mainwindow preview on startup - * Return worked resize pixmap on resizing main window - * Small return show() main window code - * Captured screenshot now displayed again - * Return make first screenshot when app is running - * Remove old quit() method from MainWindow - * Rewok restoring main window after shot - * Fix file saving (now used Qt-based dialog for save) - * Refactir method for hide main window on the sho event - * Screenshot with delay is moved to Core::setScreen - * Update close event code - * Fix crash on exit - * Code from "restoreWindow()" moved to "show()" (Main window) - * Start refactoring MainWindos and COre - * Sync translation infrastrucuture with LXQt - * Destroy old architecture - * lxqt_translate_desktop: Updates code to cope with the cmake-policy CMP0054 - * Fix translations loader path bug introduced recently - * Remove old Windows files and move Changelog.txt - * More CMake cleanups - * Remove call 'displayPixmap()' method from the constructor of main window. - * Made first screenshot not too small in main window - * Removes left behind commented lines - * Merges singleapp lib with the core. - * More cleanups - * Use QDesktopServices::openUrl instead of calling xdg-open on uploader - * Move configuration const variables to #defines - * Remove option to use XDG's home config path and use it by default - * Remove old unused code - * Remove unused include in moduleuploader class - * Bump minimal required Qt version to 5.2 - * Replace old command line parser on the QCommandLineParser - * Extracts modules translations sources - * Adds translation infrastructure to the modules - * Updates main application translations sources - * Use LXQt translation infrastructure - * Drop the check on Qt5LinguistTools_FOUND - * Avoid opening two intances of external editor - * translations: Use install(FILES ...) instead of install(DIRECTORY ...) - * Fix is not loaded translations - * Remove unnecessary separator from toolbar - * Use the same actions for both toolbar and tray menu - * Removed code specific to X11 (using KWindowSystem now) and large code refactoring to LXQt's style - * GUI fixes - * Use libqtxdg for the external editor module - * Fix some smapp typos in README - * Bump version number to 2.0-dev - * Add AUTHORS list - * Fix wrong 'imgur' uploading result string for bb-code with preview - * Fix regressive starting crash with 'showTrayIcon=false' settings parameter - * Define and handle LIB_SUFFIX - * Updated German translation - * Move buttons on right to toolbar and clean up main window layout - * Add an empty toolbar - * Get rid of DESKTOP_SESSION hacks - * Normalize style to whatever extent possible.. - * Move translations to translations/ - * No need to mention Qt-based - * Update Russian translation - * Remove debian/ - * Move license to COPYING - * Change default preferences shortcut to something more appropriate - * Remove unused code - * Get rid of a warning in dialoguploader.ui - * Fix a warning in Core::sleep() - * Fix translations - * Windows support removed and CMake cleanups - * Port to Qt5 - * CMakeLists.txt cleanup - * Some clean-ups in docs/html/en/index.html - * Fixed some typos in CMakeLists.txt - * Reword help messages - * Clean up --help output - * Remove imgshack support - * Move Delay below the screen, next to Type - -1.2 / 2014-12-30 -================ - - * v1.2 release - * Add some Q_UNUSED macro - * Update changelog - * Add option for autosaving type of the last created screenshot - * Add ability for autosaving type of the last created screenshot - * Fix a warning in Core::sleep() - -1.1.1 / 2014-11-14 -================== - - * v1.1.1 - * Update .ts files - * Fix wrong 'imgur' uploading result string for bb-code with preview - * Fix regressive starting crash with 'showTrayIcon=false' settings parameter - -1.1 / 2014-11-12 -================ - - * v1.1 - * Reword help messages - * Clean up --help output - * Update 'direct link' string for Uploade::MediaCrush (made link really direct, not page with image) - * Hide "fade effect" bug on the kwin with enabled compositing. issue #48 - * Small update .ts files - * Change the "Exit" to a "Quit" button in the main window - * Updated help-file (cont.) - * Updated help-file (cont.) - * Updated help-file (cont.) - * Updated help-file (cont.) - * Updated help file (cont.) - * Fix non-reading local mimieifo.cache issue #42 - * Start update docs for 1.1 release issue #43 - * Update ChangeLog for 1.1 release - * Updated help file (cont.) - * Updated help file (cont.) - * Updated help file - * Updated ChangeLog.txt - * Fixed some typos in ChangeLog.txt - * Updated German translation - * Update ts files more - * Update translation files - * Update about.cpp - * Update configwidget.ui - * Update about.cpp - * Update core.cpp - * Update dialoguploader.cpp - * Update screengrab.desktop - * Update configwidget.cpp - * Update README.md - * Add check Debian or Ubuntu, via existing '/etc/debian_version' file (for set LIB path) - * Add hiding label and field for display preformated html and bb code with links to uploaded screenshot, when these links not were generated by uploader module. close #33 - * Fix some tooltps in the window of the result uploading. issue #33 - * Add the button for open "drect link" in the window of the result uploading. issue #33 - * Add the button for open "delete link" in the window of the result uploading. issue #33 - * Move "delete link" (in the window of the result uploading) into separate UI element issue #33 - * Add empty widget for MediaCrush uploading settings. Fixed #36 - * some typos: omage -> image Sset -> Set {A,a}utomaticaly - tically - * Add the delete url for MediaCrush uploads issue #27 - * Micro refactor in MediaCrush uploder code - * Updated readme file - * Set Qt 4.8.0 as minimum required verions of Qt - * Add uploading to MediaCrush issue #27 - * Move the clipboard setting below the default host. issue #28 - * Set active tab "Saving" in the main section on load settings dialog issue #28 - * Remove unused section in the configuration dialog issue #28 - * Move "Zoom area around mouse in selection mode" to the "Main" section, in the "Screenshot" tab issue #28 - * Move the filename clipboard copy to the Main tab, in the Saving section issue #28 - * Secyion "main" of the configuration widget were split to the two tabs issue #28 - * Disable (instead of hiding) other tray options when the tray isn't checked issue #28 - * Fixes some English strings in the settings dialo issue #28 - * Fixes some English strings in the settings dialog issue #28 - * Made "Upload" and "Edit" in as two buttons instead "Advanced" button. close #29 - * Fix detect 'lib64' dir - * Make "Help" a menu-button, with "Help" and "About" as menu items issue #29 - * Option "Always save the window size" replaced by autosave window size on exit app. issue #28 - * Started developing version 1.1 - * Refactor some win32-depend code - -1.0 / 2013-08-13 -================ - - * Release 1.0 - * Fix segfault on startup, when missing configuration file close #26 - * Update ukrainian translation - * Update translation files - * Refactor some private class members (coding style fix) - * Updated copyrights (2012 -> 2013 year), version 1.0 - * Remove unused files in ExtEdit module - * Update docs close #22 - * Change modules lib fron STATIC to SHARED (only linux) close #23 - * Enable shared linking with qkeysequencewidget library issue #23 - * Update changelog for feature, which was added in issue #20 - * Add the ability to automaticaly upload screenshot via command line "--upload" param issue #20 - * Add dummy code for shadow upload screenshot issue #20 - * Remove some old an unused code - * Refactor comand line options code close #21 - * Add public method to ModuleManager, for init modules outside Core constructor - * Add "upload" cmd line param - * Update docs - * Update changelog - * Add opening screenshot in external default viewer by double click issue #18 - * Add tooltip on screenshot view in main window issue #18 - * Add load and saving @Enable ext view@ option in gui configuration dialog issue #18 - * Add checkbox for enable disable external view option issue #18 - * Add config param for enable\disable external view on dbl click issue #18 - * Refactor code for reset to default settings in modules - * Fix non restore ImgUr as default image host by reset setings - * Refactor configwidget code for load modules configwidgets and save settings - * Remove prereserved listitem for ploader config widget in main configdialog - * Add return module by num if for cycle call all modules - * Add method for returning modules count (modulemanager) - * Add returning module name method to module interface - * Const string for path to global app linst moved outside a ExtEdit class - * Add ability to editing screenshots in external app (in Win32 platforn) close issue #10 - * Add update screenshot when it is a changed and saved in external editor. - * Changed Core::getPixmap() return value form QPixmap to QPixmap*. - * Add monitoring changes for editing screenshot in external app by QFileSystemWatcher (issue #10) - * Implemented opening screenshot in selected external app. issue #10 - * Add killing temp file after prepare screenshot for uploading - * Add core mrthod to kill temporary file - * Move method for getTempFilename from Uploader class to Core class - * Remove old unused code for module calls - * Implement base run selected external editor (without file) - * Set caption "Close" to DialogUploader->butClose in uploadDone slot - * Set caption "Close" to DialogUploader->butClose in uploadDone slot - * Refactor code for generate and display links with links on uploaded image (add delete url if it avalible) issue#17 - * Add show delete url in "imgur uploader" #17 - * Fix text labels on the uploader view (close #19) - * Temporary fix regressive crash whan display configuration dialog - * Remove some debug outputs - * make inheritance class ModuleUploader by QObject and AbstractModule and connect class action to Init() slot - * Refactor generate advansed menu in mainwindow - * Add module base interface and modulemanager basic implementation - * Add implementation for get external editors list - * Add extedit module static lib to linl on main code - * Add displaing status of SG_EXT_EDIT build variable - * ./src/common/singleapp/singleapp.cpp:94:60: error: format not a string literal and no format arguments [-Werror=format-security] ./src/common/singleapp/singleapp.cpp:100:60: error: format not a string literal and no format arguments [-Werror=format-security] cc1plus: some warnings being treated as errors - * Add module ext edit implementation - * Add license header in extedit module files - * Add menu for advanced actions and reconnect "Upload" slot to it. - * Change butUpload to butAdvanced - * Add blank code for module 'external edit' - * Fix override user set CXXFLAGS (close #14) - * Some small fix in ui and updated translation files - * added ability to run in minimized to ttray (or taskar, if tray is disabled) with "--minimized" comand line option - * Add "Previous selection" mode (issue #12) - * Micro fix code formating - * Small updates in user docs files - * Change preview image alignment in uploader dialog - * Fix incorrect scale of preview image in uploader dialog - * Fix non-selection default (first) image hosting in uploader dialog, when uploader.conf is missing - * Small fix in README filex - * Add note for building with using system version Qxt in Debian-based Linux distro (#11) - * Kill some compile warnings in uploader code - -0.9.96 / 2012-10-03 -=================== - - * v0.9.96 (1.0-rc, code and text strings are freezed to 1.0 release) - * Update translation files - * Remake about dialog - * Add layouts to "Common settings" tab in uploader config widget - * Implement selection uploader fron "defaultHost" settings param - * Add options for selectin default image hosting - * Change the text align on label for the option to select host settings (uploader config widget) - * Fix install README file problem - * Add some forgotten strings to README - * Update README file - * Add ability to build with system Qxt Lib (-DSG_USE_SYSTEM_QXT=ON) #11 - * Add FindQxt.cmake module for detecting installed Qxt Library - * Fix resizing list of configuration sections - * Remove fixed size in configuration dialog - * Some small modified ui of uploader module - * Add layout to uploaderconfigwidget_imgur - * Remove some debug and unused code - * Add autocopy to clipboard result direct url for uploaded screenshot (if it is a set as true) - * Add widget for configuration uploading to image hosts (imgshack is work, imgur is not) - * Add .gitignore file - * Add save, load and deafaults setings of uploader (base, not full settings for image hostings) - * Add widget for uploader settings - * Fix incorrect defination path to user documentation files - * Move README file to project root directory - * Added forgotten license header into some new files - * Restore functionality for umageshack.us uploader part - * Add base implementation load & save uploader config params - * Slider "Image Quality" is hiding, if selected default format not "jpg" (issue #8) - * v0.9.94 - * Some small code formating changes and remove unused code - -0.9.94 / 2012-07-27 -=================== - - * Some small code formating changes and remove unused code - * Fix non-minimize main window on @Exit@ shortcut, when use "Minimize to tray" option - * Escape key now is default shortcut to exit (issue #7) - * add ability to compile without upload feature [-DSG_EXT_UPLOADS=OFF] issue#5 - * Remaked uploader module (base functions) Add ability to upload to imgur.com (issue #4) - * Add "0" symbol before string of screenshot's number (if num < 10) - * Remove conditional compilation in get save path function [core] - * Fix regression of autosaving first screenshot, when filename includes date-time - * Add checking existing file, when filename of saving file contains date-time string - * Removed compareSavename core function - * Moved screen number variable to Config class And commit forgotten changes for area selection grabber code - * Fix crash when canceled select of screen area (by Esc key) - * Append scheenshot number (1,2,3,etc) to default screenshot name, if it is already exists (issu #6) - * Updated ChangeLog - * Add build option SG_XDG_CONFIG_SUPPORT for enable storage config files in XDG_CONFIG_JOME (issue - * [X11 only] add moving config files from old-style location ($HOME/.screengrab/) to XDG_CONFIG_HOME ($XDG_CONFIG_HOME/screengrab/) - -0.9.90 / 2012-04-06 -=================== - - * Add Spanish translation (thanks to Burjans L García D) - * Add Italian translation (thnks to speps) - * Fix for selection on dual monitor - * Updated copyrights (2011 -> 2012 year), version 0.9.90 - * Fixed wrong saving screenshot, when canceled area selection (in "Screen area" mode) - * Removed bad and deprecated code in regionselectclass - * changed applying region selection (from releasing left mouse button to double click or pressing enter) - * aligned some code lines in mainwindow.cpp - * Added disabling slider for set image qualkity, when bmp format is selected - * Added build option for manually setting name of documentation directory in unix(e.g. screengrab-1.0" - * Moved defination -DBUILD_QXT_GUI to if SG_GLOBALSHORTCUTS block - * Dixed some warnings - * Added "image quality" option for saved screenshots - * Removed overloaded method Core::writeScreen and moved his functionality to main Core::writeScreen method - * Fixed code indents in configwidget.cpp - * Modified ui for uploader doalog - * Set minimal button size of uis to 112 px - * Modified configuration dialog (tabwidget replaced by stackedwidget + listwidget) - * button text "Information" replaced with "About" - -0.9.85 / 2011-08-17 -=================== - - * Modified CMakeLists.txt - added some target for create distro (src and windows binary) - * Fixed non-saving uploader settings in windows - * Modified changelog and CMakeLists.txt v0.9.85 - * small fix ui - * v0.9.82 - * Fixed regression with non-capturing screen when runnin another instance - * Changed sizePolicy for buttons on main windows changed default width from 449 to 480 fixed issue #11 - * Fixed non-creating directory for saved screenshot, when it directory was manualy entered in config dialog (v0.9.81) changed method of creating a dev-version number (nov baed on git rev) - * Fixed non-creating directory for saved screenshot, when it directory was manualy entered in config dialog (v0.9.81) changed method of creating a dev-version number (nov baed on git rev) - -0.9.80 / 2011-05-30 -=================== - - * Added implementation uploader settings - * Added static method to get the settings storage directory - * Implement set username and password in uploading process - * Added ui elements for user's imageshack account (login|pass) - * Added connectyion between errorFail signal in uploader backend and errorFail slot in uploader giu - * Fix incorrect setting mime-type for uploaded jpeg screenshots - * Added parsing returned error messages - * Modified ui for uploader dialog (set layouts on upload page) - * Modified ui for uploader dialog (set layouts on upload page) - * Added select modes for server-side resize uploaded screenshots - * Implement uploaderdialog ui basic functionaly - * Added basic implementation of create network request for uploader - * Added overloaded function writeScreen() in Core - * Started implementation uploading - * Added overloaded function writeScreen() in Core - * added skeletons for of functions for creating upload data & http-request - * Some small changes in uploader ui - * added connect button click to uploading slot - * Cleaned uploaderdialog ui (kill deprecated concept) - * Added copying string of saved image name (file name or full path) - * Small upd some include directives - * Implementation of the autoincrement filenames when saving screenshots in maual mode (in one running session) - * Updated CmakeLists.txt - * Added build option SG_GLOBALSHORTCUTS for enable|disable global shortcuts support in compile time - * Added setup @close shortcut" on close button - * Added ui dialog item foe @close shortcut" - * Added config key and default value for shotrcut close (load & save shortcuts modified) - * Changed detecting KDE session in show savefile dialog (for display KDE-based dialog in KDE SC 4.6) - * Starting development version 1.0 - * added dir for debian-based pakcge cfgs - * Started uploader branch - -0.9.1 / 2011-01-20 -================== - - * v 0.9.1 - * Remove incorrect symbol in mai.cpp - * added debian oackage configs - * Updated ts files - * Updaded docs files - * Changed years in license headers - * Added hack for in gnome on showing window when run second instance app - * Removed double grab screen in start another instance app - * Removed executable flag from source files - * Added link to X11, for building in some rpm-based linux distro (Fedora, Mandriva, etc) - * Removed g++ warnings on some function of CmdLine class - * Added return value on assignment operator of Core class - * Close regression with not create screenshot whe run second instace app - * Added question messagebox on restore settings (replace information messagebox) - * Fix tray visible regression (hack with reimplement MainWindow::show() method ) - * Added grab screenshot in restore mainwindow on signal from anther instance app (tested in KDE SC 4.6) - * Fixed non changed "Type" combobox on restoring app window when recieved msg from another innstance - * Start dev 0.9.1 bugfix - * Changed detecting KDE session in show savefile dialog (for display KDE-based dialog in KDE SC 4.6) - -0.9 / 2010-11-14 -================ - - * v0.9 - * Updated pt_BR help file - * Removed unused debug output - * Small fx text strings - * Changed value of DEF_SHOW_TRAY from false to true - * Updated pt_BR translation - * change spacing for checkbox "Save first screen" from 14 to 16 px - * added margin in ledt for checkAutoSaveFirst - * mall string fix in core.cpp - * Modified README.txt - * Modified Russian & Ukrainian translation modified - * updated html-based user docs - * v0.8.97 - * String freeze for version 0.9 - * fixed crash when selected not avalible shortcuts in condig dialog (Windows) - * fixed non-build 0.8.95 in windows - -0.8.95.1 / 2010-10-20 -===================== - - * fixed crash by clicking on empty shortcuts treewidget - * Update changelog for 0.9 - -0.8.95 / 2010-10-17 -=================== - - * version 0.8.95 (0.9-rc) - * Added private slot for block|unblock global shortcuts in main wnd (when show config dialog) - * Renamed configwidget -> ConfigDialog & aboutWidget -> AboutDialog - * Added activation process of capturing key sequence with mouse dblClick & key enter pressed on hotkey items - * change method navigation on hotkeys treewidget - * Fixed regression incorrect displays tray messages - * Autoconnects replaced to manual connects in config dialog - * Refactored getDefaultFormatID method in Config class (ifs -> QVector.indexOf) - * added checkbox in configdialog for autosSaveFirst option - * added check of autoSaveDirst option on screenShot function - * fix forgotten loading autoSaveFirst option - * add setter & getter for aoutoSaveFirst option - -0.8.88 / 2010-09-24 -=================== - - * removed some debug code - * added small hack for block crash on grab selected area with globalshortcuts (whem main window is trayed) -- win32 only - * remove duplicate qrc file some fix on try code - * fix for build on win32 with mingw 4.4.0 - * class screengrab renamed to core - * removed some deprecated code - * added non-displayed @new screen@ message on crete first screenshot (when ScreenGrab starting) - * remove inused code; added small hack for display autosave tray message on running screengrab - * restored saving mainwindow size on exit (if it enabled) - * restored minimization on tray on close window button, when is it enabled - * replace first call screenShot from core to mainWindow (core->screenShot() ) constructor - * Test commit - * Test commit - * Test commit - * add implementation get screens on shortcuts - * add shortcuts creating in mainwindow - * add trayed flag for check minimization to systray - * implement show runned aps when run another instance app with disabled allow multiple copies - * modify showAbout & showOptions method (fix crash when mainwindow is trayed) - * change emiting nweScreen signal pos in code - * add display tray notitfications - * add block tray icon on mwe screen getting process - * add sending StateNotigyMessages from core to mainwindow fix #includes - * returned tray - * dlete backupp files, created kdevelop - * first commit diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 30cd117..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,259 +0,0 @@ -cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) -# CMP0000: Call the cmake_minimum_required() command at the beginning of the top-level -# CMakeLists.txt file even before calling the project() command. -# The cmake_minimum_required(VERSION) command implicitly invokes the cmake_policy(VERSION) -# command to specify that the current project code is written for the given range of CMake -# versions. -project(screengrab) - -include(GNUInstallDirs) -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake") - -# options -option(SG_DBUS_NOTIFY "Enable D-Bus notifications" ON) -option(SG_EXT_EDIT "Enable ability to edit screenshots in external editor" ON) -option(SG_EXT_UPLOADS "Enable upload screenshots to Imgur" ON) -option(SG_GLOBALSHORTCUTS "Enable global shortcuts" OFF) -option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF) - -# Minimum Versions -set(KF5_MINIMUM_VERSION "5.36.0") -set(QT_MINIMUM_VERSION "5.7.1") -set(QTXDG_MINIMUM_VERSION "3.3.1") - -find_package(Qt5LinguistTools ${QT_MINIMUM_VERSION} REQUIRED) -find_package(Qt5Network ${QT_MINIMUM_VERSION} REQUIRED) -find_package(Qt5Widgets ${QT_MINIMUM_VERSION} REQUIRED) -find_package(Qt5X11Extras ${QT_MINIMUM_VERSION} REQUIRED) -find_package(KF5WindowSystem ${KF5_MINIMUM_VERSION} REQUIRED) - -find_package(X11) -if (X11_FOUND) - set(HAVE_X11 1) -endif(X11_FOUND) - -find_package( - XCB MODULE COMPONENTS - XCB - SHAPE - XFIXES -) -find_package( - X11_XCB MODULE -) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTOUIC ON) -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(SCREENGRAB_VERSION "1.101") - -if (DEV_VERSION) - set(VERSION "${SCREENGRAB_VERSION}-dev (${DEV_VERSION})") -else() - set(VERSION ${SCREENGRAB_VERSION}) -endif() - -add_definitions( - -DVERSION="${VERSION}" - -DQT_NO_FOREACH -) - -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release) -endif() - -message(STATUS "Build type: " ${CMAKE_BUILD_TYPE}) -message(STATUS "Install prefix: " ${CMAKE_INSTALL_PREFIX}) - -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Woverloaded-virtual -Wall -Wextra") - -set(SG_LIBDIR "${CMAKE_INSTALL_LIBDIR}/screengrab") -set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${SG_LIBDIR}") -message(STATUS "Library path: ${CMAKE_INSTALL_RPATH}") - -# Although the names, LXQtTranslateTs and LXQtTranslateDesktop, they don't -# bring any dependency on lxqt. -include(LXQtTranslateTs) -include(LXQtTranslateDesktop) -include(Qt5TranslationLoader) - -if(SG_GLOBALSHORTCUTS) - add_definitions( -DSG_GLOBAL_SHORTCUTS="1") - - if(SG_USE_SYSTEM_QXT) - # find qxt - find_package(Qxt REQUIRED COMPONENTS QxtCore, QxtGui) - include_directories(${QXT_QXTCORE_INCLUDE_DIR} ${QXT_QXTGUI_INCLUDE_DIR}) - endif() -endif(SG_GLOBALSHORTCUTS) - -if(SG_EXT_UPLOADS) - add_definitions( -DSG_EXT_UPLOADS="1") -endif() - -if(SG_EXT_EDIT) - add_definitions( -DSG_EXT_EDIT="1") - find_package(Qt5Xdg ${QTXDG_MINIMUM_VERSION} REQUIRED) -endif() - -if(SG_DBUS_NOTIFY) - find_package(Qt5DBus ${QT_MINIMUM_VERSION} REQUIRED) - add_definitions( -DSG_DBUS_NOTIFY="1") -endif() - -message(STATUS "Global shortcuts support: " ${SG_GLOBALSHORTCUTS}) -message(STATUS "Imgur upload support: " ${SG_EXT_UPLOADS}) -message(STATUS "Editing screenshots in external editor support: " ${SG_EXT_EDIT}) -message(STATUS "Enable D-Bus notifications: " ${SG_DBUS_NOTIFY}) -message(STATUS "Use system Qxt Library: " ${SG_USE_SYSTEM_QXT}) -message(STATUS "Update source translation translations/*.ts files: " ${UPDATE_TRANSLATIONS}) - -# docs -# CMAKE_INSTALL_FULL_DOCDIR = CMAKE_INSTALL_PREFIX/CMAKE_INSTALL_DATADIR/doc/PROJECT_NAME -message(STATUS "Documentation directory: " ${CMAKE_INSTALL_FULL_DOCDIR}) -add_definitions(-DSG_DOCDIR="${CMAKE_INSTALL_FULL_DOCDIR}") - -# app icon path -add_definitions(-DSG_ICONPATH="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/pixmaps/screengrab.png") - -include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src") -add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/src/common/qkeysequencewidget") -include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/common/qkeysequencewidget/src") - -if(SG_EXT_UPLOADS) - include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/modules/uploader") - add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/src/modules/uploader") -endif() - -if (SG_EXT_EDIT) - include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/modules/extedit") - add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/src/modules/extedit") -endif() - -set(SCREENGRAB_SRC - src/core/main.cpp - src/core/singleapp.cpp - src/core/core.cpp - src/core/config.cpp - src/core/regionselect.cpp - src/core/shortcutmanager.cpp - src/core/modulemanager.cpp - src/core/ui/configwidget.cpp - src/core/ui/about.cpp - src/core/ui/mainwindow.cpp -) - -if(SG_DBUS_NOTIFY) - set(SCREENGRAB_SRC ${SCREENGRAB_SRC} src/core/dbusnotifier.cpp) -endif() - -if(X11_FOUND) - set(SCREENGRAB_SRC ${SCREENGRAB_SRC} src/core/x11utils.cpp) -endif() - -set(SCREENGRAB_HDR - src/core/singleapp.h -) - -set(SCREENGRAB_UI - src/core/ui/configwidget.ui - src/core/ui/aboutwidget.ui - src/core/ui/mainwindow.ui -) - -# Qt resource file -set(SCREENGRAB_QRC screengrab.qrc) -qt5_add_resources(QRC_SOURCES ${SCREENGRAB_QRC}) - -message(STATUS "Generating localize ...") - -set(SCREENGRAB_CONFIG_FILES - screengrab.conf -) - -set(SCREENGRAB_DESKTOP_FILES_IN - screengrab.desktop.in -) - -lxqt_translate_ts(SCREENGRAB_QMS - USE_QT5 TRUE - UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS} - SOURCES - ${SCREENGRAB_SRC} - ${SCREENGRAB_UI} - INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/translations" -) - -lxqt_translate_desktop(SCREENGRAB_DESKTOP_FILES - SOURCES ${SCREENGRAB_DESKTOP_FILES_IN} -) - -qt5_translation_loader(SCREENGRAB_QM_LOADER - "${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/translations" - ${PROJECT_NAME} -) - -# generating executable -add_executable(screengrab - ${SCREENGRAB_SRC} - ${SCREENGRAB_UI_H} - ${QRC_SOURCES} - ${SCREENGRAB_QMS} - ${SCREENGRAB_DESKTOP_FILES} - ${SCREENGRAB_QM_LOADER} -) - -if(SG_GLOBALSHORTCUTS) - if(SG_USE_SYSTEM_QXT) - target_link_libraries(screengrab ${QXT_QXTCORE_LIB_RELEASE} ${QXT_QXTGUI_LIB_RELEASE}) - else(SG_USE_SYSTEM_QXT) - target_link_libraries(screengrab qxt) - endif(SG_USE_SYSTEM_QXT) -endif() - -if(SG_EXT_UPLOADS) - target_link_libraries(screengrab uploader) -endif() - -if(SG_EXT_EDIT) - target_link_libraries(screengrab extedit) -endif() - -if(SG_DBUS_NOTIFY) - target_link_libraries(screengrab Qt5::DBus) -endif() - -if (X11_XCB_FOUND) - add_definitions( -DX11_XCB_FOUND="1") - target_link_libraries(screengrab ${X11_XCB_LIBRARIES}) -endif() - -if (XCB_XCB_FOUND) - add_definitions( -DXCB_XCB_FOUND="1") - target_link_libraries(screengrab ${XCB_XCB_LIBRARY}) -endif() - -if (XCB_SHAPE_FOUND) - add_definitions( -DXCB_SHAPE_FOUND="1") - target_link_libraries(screengrab ${XCB_SHAPE_LIBRARY}) -endif() - -if (XCB_XFIXES_FOUND) - add_definitions( -DXCB_XFOXES_FOUND="1") - target_link_libraries(screengrab ${XCB_XFIXES_LIBRARY}) -endif() - -# Link with Network and X11Extras. See pull#86. TODO: Should be optional when upload module is needed. -target_link_libraries(screengrab qkeysequencewidget Qt5::Widgets KF5::WindowSystem Qt5::X11Extras Qt5::Network ${X11_LIBRARIES}) - -# installing -install(TARGETS screengrab RUNTIME DESTINATION bin) -# install html docs -install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/docs/html" DESTINATION "${CMAKE_INSTALL_FULL_DOCDIR}") -# install config files -install(FILES ${SCREENGRAB_CONFIG_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}) -# install desktop files -install(FILES ${SCREENGRAB_DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications) -# install pixmap -install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/img/screengrab.png" DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/apps") diff --git a/COPYING b/COPYING deleted file mode 100644 index 62e1242..0000000 --- a/COPYING +++ /dev/null @@ -1,280 +0,0 @@ - GNU GENERAL PUBLIC LICENSE -Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - -GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - -NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - -END OF TERMS AND CONDITIONS diff --git a/README.md b/README.md deleted file mode 100644 index ca1343f..0000000 --- a/README.md +++ /dev/null @@ -1,69 +0,0 @@ -# ScreenGrab - -##### version 2.0-dev - -ScreenGrab - A program for fast creating screenshots, and easily publishing them on internet image hosting services. It works on Linux and Windows operating systems. ScreenGrab uses the Qt framework and thus, it is independent from any desktop environment. - -### Build requirements - - * Qt5 >= 5.2 (Qt 4.x support only 1.x branch) - * CMake >= 3.1.0 (only for building ScreenGrab from sources) - * GCC > 4.5 - * KF5WindowSystem - * [optional] Qxt Library > 0.6 (if you want to build ScreenGrab using your system Qxt version - see the "Build options" section in this file) - -### Build - -To build ScreenGrab from sources, use these commands: - - mkdir build - cd build - cmake [BUILD OPTIONS] ../ - make - make install - -### Build options - -You can use some or all of these parameters to customise your build. - - * **-DCMAKE_INSTALL_PREFIX** - Install prefix for Linux distro. Default setting: "/usr". - * **-DSG_XDG_CONFIG_SUPPORT** - Place config files into XDGC_CONFIG_HOME directory (usually - ~/.config/${app_name) ). Default setting: ON. In previous versions the config files were stored in ~/.screengrab (Set this parameter to "OFF" to store the config files here). - * **-DSG_EXT_UPLOADS** - Enable uploading screenshots to image hosting services. Default setting: ON. - * **-DSG_DBUS_NOTIFY** - Enable D-Bus notifications. - * **-DSG_GLOBALSHORTCUTS** - Enable global shortcuts for main actions to create screenshots. Default setting: ON. - * **-DSG_USE_SYSTEM_QXT** - Use system version Qxt Library for global shortcuts. Default setting: OFF. - * **-DSG_DOCDIR** - Name for the directory of user's documentation. Default setting: "screengrab". - * **-DQKSW_SHARED** - Enable shared linking with qkeysequencewidget library (in src/common/qksysekwesewidget). Default setting: OFF. - * **-DDEV_VERSION** - Set a dev-version here, maybe git describe $foo. Default not set. - -#### Build notes - -For Debian based Linux distributions please use the distribution build tools. One can get the source-code with -``` -apt source screengrab # Sources for the released package -- or - -git clone https://salsa.debian.org/lxqt-team/screengrab -``` -Build with the tools provided by `devscripts` or better with `pbuilder` or `sbuild` - -### LICENSE - -Screengrab is licensed under the GPL v2. See file LICENSE in docs directory for more information - -### Contacts - -Web homepage: https://github.com/lxqt/screengrab -Bug Tracker: https://github.com/lxqt/screengrab/issues - - -### Copyright - -(c) 2014-2018, LXQt Team -(c) 2009-2013, Artem 'DOOMer' Galichkin - - -### Translation (Weblate) - - -Translation status - diff --git a/cmake/FindQxt.cmake b/cmake/FindQxt.cmake deleted file mode 100644 index 8698fc7..0000000 --- a/cmake/FindQxt.cmake +++ /dev/null @@ -1,155 +0,0 @@ -############# -## basic FindQxt.cmake -## This is an *EXTREMELY BASIC* cmake find/config file for -## those times you have a cmake project and wish to use -## libQxt. -## -## It should be noted that at the time of writing, that -## I (mschnee) have an extremely limited understanding of the -## way Find*.cmake files work, but I have attempted to -## emulate what FindQt4.cmake and a few others do. -## -## To enable a specific component, set your QXT_USE_${modname}: -## SET(QXT_USE_QXTCORE TRUE) -## SET(QXT_USE_QXTGUI FALSE) -## Currently available components: -## QxtCore, QxtGui, QxtNetwork, QxtWeb, QxtSql -## Auto-including directories are enabled with INCLUDE_DIRECTORIES(), but -## can be accessed if necessary via ${QXT_INCLUDE_DIRS} -## -## To add the libraries to your build, TARGET_LINK_LIBRARIES(), such as... -## TARGET_LINK_LIBRARIES(YourTargetNameHere ${QXT_LIBRARIES}) -## ...or.. -## TARGET_LINK_LIBRARIES(YourTargetNameHere ${QT_LIBRARIES} ${QXT_LIBRARIES}) -################### TODO: -## The purpose of this cmake file is to find what components -## exist, regardless of how libQxt was build or configured, thus -## it should search/find all possible options. As I am not aware -## that any module requires anything special to be used, adding all -## modules to ${QXT_MODULES} below should be sufficient. -## Eventually, there should be version numbers, but -## I am still too unfamiliar with cmake to determine how to do -## version checks and comparisons. -## At the moment, this cmake returns a failure if you -## try to use a component that doesn't exist. I don't know how to -## set up warnings. -## It would be nice having a FindQxt.cmake and a UseQxt.cmake -## file like done for Qt - one to check for everything in advance - -############## - -###### setup -SET(QXT_MODULES QxtGui QxtWeb QxtZeroConf QxtNetwork QxtSql QxtBerkeley QxtCore) -SET(QXT_FOUND_MODULES) -FOREACH(mod ${QXT_MODULES}) - STRING(TOUPPER ${mod} U_MOD) - SET(QXT_${U_MOD}_INCLUDE_DIR NOTFOUND) - SET(QXT_${U_MOD}_LIB_DEBUG NOTFOUND) - SET(QXT_${U_MOD}_LIB_RELEASE NOTFOUND) - SET(QXT_FOUND_${U_MOD} FALSE) -ENDFOREACH(mod) -SET(QXT_QXTGUI_DEPENDSON QxtCore) -SET(QXT_QXTWEB_DEPENDSON QxtCore QxtNetwork) -SET(QXT_QXTZEROCONF_DEPENDSON QxtCore QxtNetwork) -SET(QXT_QXTNETWORK_DEPENDSON QxtCore) -SET(QXT_QXTQSQL_DEPENDSON QxtCore) -SET(QXT_QXTBERKELEY_DEPENDSON QxtCore) - -FOREACH(mod ${QXT_MODULES}) - STRING(TOUPPER ${mod} U_MOD) - FIND_PATH(QXT_${U_MOD}_INCLUDE_DIR ${mod} - PATH_SUFFIXES ${mod} include/${mod} Qxt/include/${mod} include/Qxt/${mod} - PATHS - ~/Library/Frameworks/ - /Library/Frameworks/ - /sw/ - /usr/local/ - /usr - /opt/local/ - /opt/csw - /opt - "C:\\" - "C:\\Program Files\\" - "C:\\Program Files(x86)\\" - NO_DEFAULT_PATH - ) - FIND_LIBRARY(QXT_${U_MOD}_LIB_RELEASE NAME ${mod} - PATH_SUFFIXES Qxt/lib64 Qxt/lib lib64 lib - PATHS - /sw - /usr/local - /usr - /opt/local - /opt/csw - /opt - "C:\\" - "C:\\Program Files" - "C:\\Program Files(x86)" - NO_DEFAULT_PATH - ) - FIND_LIBRARY(QXT_${U_MOD}_LIB_DEBUG NAME ${mod}d - PATH_SUFFIXES Qxt/lib64 Qxt/lib lib64 lib - PATHS - /sw - /usr/local - /usr - /opt/local - /opt/csw - /opt - "C:\\" - "C:\\Program Files" - "C:\\Program Files(x86)" - NO_DEFAULT_PATH - ) - IF (QXT_${U_MOD}_LIB_RELEASE) - SET(QXT_FOUND_MODULES "${QXT_FOUND_MODULES} ${mod}") - ENDIF (QXT_${U_MOD}_LIB_RELEASE) - - IF (QXT_${U_MOD}_LIB_DEBUG) - SET(QXT_FOUND_MODULES "${QXT_FOUND_MODULES} ${mod}") - ENDIF (QXT_${U_MOD}_LIB_DEBUG) -ENDFOREACH(mod) - -FOREACH(mod ${QXT_MODULES}) - STRING(TOUPPER ${mod} U_MOD) - IF(QXT_${U_MOD}_INCLUDE_DIR AND QXT_${U_MOD}_LIB_RELEASE) - SET(QXT_FOUND_${U_MOD} TRUE) - ENDIF(QXT_${U_MOD}_INCLUDE_DIR AND QXT_${U_MOD}_LIB_RELEASE) -ENDFOREACH(mod) - - -##### find and include -# To use a Qxt Library.... -# SET(QXT_FIND_COMPONENTS QxtCore, QxtGui) -# ...and this will do the rest -IF( QXT_FIND_COMPONENTS ) - FOREACH( component ${QXT_FIND_COMPONENTS} ) - STRING( TOUPPER ${component} _COMPONENT ) - SET(QXT_USE_${_COMPONENT}_COMPONENT TRUE) - ENDFOREACH( component ) -ENDIF( QXT_FIND_COMPONENTS ) - -SET(QXT_LIBRARIES "") -SET(QXT_INCLUDE_DIRS "") - -# like FindQt4.cmake, in order of dependence -FOREACH( module ${QXT_MODULES} ) - STRING(TOUPPER ${module} U_MOD) - IF(QXT_USE_${U_MOD} OR QXT_DEPENDS_${U_MOD}) - IF(QXT_FOUND_${U_MOD}) - STRING(REPLACE "QXT" "" qxt_module_def "${U_MOD}") - ADD_DEFINITIONS(-DQXT_${qxt_module_def}_LIB) - SET(QXT_INCLUDE_DIRS ${QXT_INCLUDE_DIRS} ${QXT_${U_MOD}_INCLUDE_DIR}) - INCLUDE_DIRECTORIES(${QXT_${U_MOD}_INCLUDE_DIR}) - SET(QXT_LIBRARIES ${QXT_LIBRARIES} ${QXT_${U_MOD}_LIB_RELEASE}) - ELSE(QXT_FOUND_${U_MOD}) - MESSAGE("Could not find Qxt Module ${module}") - RETURN() - ENDIF(QXT_FOUND_${U_MOD}) - FOREACH(dep ${QXT_${U_MOD}_DEPENDSON}) - STRING(TOUPPER ${dep} U_DEP) - SET(QXT_DEPENDS_${U_DEP} TRUE) - ENDFOREACH(dep) - ENDIF(QXT_USE_${U_MOD} OR QXT_DEPENDS_${U_MOD}) -ENDFOREACH(module) -MESSAGE(STATUS "Found Qxt Libraries:${QXT_FOUND_MODULES}") diff --git a/cmake/FindX11_XCB.cmake b/cmake/FindX11_XCB.cmake deleted file mode 100644 index e2c18a9..0000000 --- a/cmake/FindX11_XCB.cmake +++ /dev/null @@ -1,31 +0,0 @@ -# - Try to find libX11-xcb -# Once done this will define -# -# X11_XCB_FOUND - system has libX11-xcb -# X11_XCB_LIBRARIES - Link these to use libX11-xcb -# X11_XCB_INCLUDE_DIR - the libX11-xcb include dir -# X11_XCB_DEFINITIONS - compiler switches required for using libX11-xcb - -# Copyright (c) 2011 Fredrik Höglund -# Copyright (c) 2008 Helio Chissini de Castro, -# Copyright (c) 2007 Matthias Kretz, -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -IF (NOT WIN32) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - FIND_PACKAGE(PkgConfig) - PKG_CHECK_MODULES(PKG_X11_XCB QUIET x11-xcb) - - SET(X11_XCB_DEFINITIONS ${PKG_X11_XCB_CFLAGS}) - - FIND_PATH(X11_XCB_INCLUDE_DIR NAMES X11/Xlib-xcb.h HINTS ${PKG_X11_XCB_INCLUDE_DIRS}) - FIND_LIBRARY(X11_XCB_LIBRARIES NAMES X11-xcb HINTS ${PKG_X11_XCB_LIBRARY_DIRS}) - - include(FindPackageHandleStandardArgs) - FIND_PACKAGE_HANDLE_STANDARD_ARGS(X11_XCB DEFAULT_MSG X11_XCB_LIBRARIES X11_XCB_INCLUDE_DIR) - - MARK_AS_ADVANCED(X11_XCB_INCLUDE_DIR X11_XCB_LIBRARIES) -ENDIF (NOT WIN32) diff --git a/cmake/FindXCB.cmake b/cmake/FindXCB.cmake deleted file mode 100644 index 823d167..0000000 --- a/cmake/FindXCB.cmake +++ /dev/null @@ -1,238 +0,0 @@ -# Try to find XCB on a Unix system -# -# This will define: -# -# XCB_FOUND - True if xcb is available -# XCB_LIBRARIES - Link these to use xcb -# XCB_INCLUDE_DIRS - Include directory for xcb -# XCB_DEFINITIONS - Compiler flags for using xcb -# -# In addition the following more fine grained variables will be defined: -# -# XCB_XCB_FOUND XCB_XCB_INCLUDE_DIR XCB_XCB_LIBRARY -# XCB_UTIL_FOUND XCB_UTIL_INCLUDE_DIR XCB_UTIL_LIBRARY -# XCB_COMPOSITE_FOUND XCB_COMPOSITE_INCLUDE_DIR XCB_COMPOSITE_LIBRARY -# XCB_DAMAGE_FOUND XCB_DAMAGE_INCLUDE_DIR XCB_DAMAGE_LIBRARY -# XCB_XFIXES_FOUND XCB_XFIXES_INCLUDE_DIR XCB_XFIXES_LIBRARY -# XCB_RENDER_FOUND XCB_RENDER_INCLUDE_DIR XCB_RENDER_LIBRARY -# XCB_RANDR_FOUND XCB_RANDR_INCLUDE_DIR XCB_RANDR_LIBRARY -# XCB_SHAPE_FOUND XCB_SHAPE_INCLUDE_DIR XCB_SHAPE_LIBRARY -# XCB_DRI2_FOUND XCB_DRI2_INCLUDE_DIR XCB_DRI2_LIBRARY -# XCB_GLX_FOUND XCB_GLX_INCLUDE_DIR XCB_GLX_LIBRARY -# XCB_SHM_FOUND XCB_SHM_INCLUDE_DIR XCB_SHM_LIBRARY -# XCB_XV_FOUND XCB_XV_INCLUDE_DIR XCB_XV_LIBRARY -# XCB_SYNC_FOUND XCB_SYNC_INCLUDE_DIR XCB_SYNC_LIBRARY -# XCB_XTEST_FOUND XCB_XTEST_INCLUDE_DIR XCB_XTEST_LIBRARY -# XCB_ICCCM_FOUND XCB_ICCCM_INCLUDE_DIR XCB_ICCCM_LIBRARY -# XCB_EWMH_FOUND XCB_EWMH_INCLUDE_DIR XCB_EWMH_LIBRARY -# XCB_IMAGE_FOUND XCB_IMAGE_INCLUDE_DIR XCB_IMAGE_LIBRARY -# XCB_RENDERUTIL_FOUND XCB_RENDERUTIL_INCLUDE_DIR XCB_RENDERUTIL_LIBRARY -# XCB_KEYSYMS_FOUND XCB_KEYSYMS_INCLUDE_DIR XCB_KEYSYMS_LIBRARY -# -# Copyright (c) 2011 Fredrik Höglund -# Copyright (c) 2013 Martin Gräßlin -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -set(knownComponents XCB - COMPOSITE - DAMAGE - DRI2 - EWMH - GLX - ICCCM - IMAGE - KEYSYMS - RANDR - RENDER - RENDERUTIL - SHAPE - SHM - SYNC - UTIL - XFIXES - XTEST - XV) - -unset(unknownComponents) - -set(pkgConfigModules) -set(requiredComponents) - -if (XCB_FIND_COMPONENTS) - set(comps ${XCB_FIND_COMPONENTS}) -else() - set(comps ${knownComponents}) -endif() - -# iterate through the list of requested components, and check that we know them all. -# If not, fail. -foreach(comp ${comps}) - list(FIND knownComponents ${comp} index ) - if("${index}" STREQUAL "-1") - list(APPEND unknownComponents "${comp}") - else() - if("${comp}" STREQUAL "XCB") - list(APPEND pkgConfigModules "xcb") - elseif("${comp}" STREQUAL "COMPOSITE") - list(APPEND pkgConfigModules "xcb-composite") - elseif("${comp}" STREQUAL "DAMAGE") - list(APPEND pkgConfigModules "xcb-damage") - elseif("${comp}" STREQUAL "DRI2") - list(APPEND pkgConfigModules "xcb-dri2") - elseif("${comp}" STREQUAL "EWMH") - list(APPEND pkgConfigModules "xcb-ewmh") - elseif("${comp}" STREQUAL "GLX") - list(APPEND pkgConfigModules "xcb-glx") - elseif("${comp}" STREQUAL "ICCCM") - list(APPEND pkgConfigModules "xcb-icccm") - elseif("${comp}" STREQUAL "IMAGE") - list(APPEND pkgConfigModules "xcb-image") - elseif("${comp}" STREQUAL "KEYSYMS") - list(APPEND pkgConfigModules "xcb-keysyms") - elseif("${comp}" STREQUAL "RANDR") - list(APPEND pkgConfigModules "xcb-randr") - elseif("${comp}" STREQUAL "RENDER") - list(APPEND pkgConfigModules "xcb-render") - elseif("${comp}" STREQUAL "RENDERUTIL") - list(APPEND pkgConfigModules "xcb-renderutil") - elseif("${comp}" STREQUAL "SHAPE") - list(APPEND pkgConfigModules "xcb-shape") - elseif("${comp}" STREQUAL "SHM") - list(APPEND pkgConfigModules "xcb-shm") - elseif("${comp}" STREQUAL "SYNC") - list(APPEND pkgConfigModules "xcb-sync") - elseif("${comp}" STREQUAL "UTIL") - list(APPEND pkgConfigModules "xcb-util") - elseif("${comp}" STREQUAL "XFIXES") - list(APPEND pkgConfigModules "xcb-xfixes") - elseif("${comp}" STREQUAL "XTEST") - list(APPEND pkgConfigModules "xcb-xtest") - elseif("${comp}" STREQUAL "XV") - list(APPEND pkgConfigModules "xcb-xv") - endif() - endif() -endforeach() - - -if(DEFINED unknownComponents) - set(msgType STATUS) - if(XCB_FIND_REQUIRED) - set(msgType FATAL_ERROR) - endif() - if(NOT XCB_FIND_QUIETLY) - message(${msgType} "XCB: requested unknown components ${unknownComponents}") - endif() - return() -endif() - -macro(_XCB_HANDLE_COMPONENT _comp) - set(_header ) - set(_lib ) - if("${_comp}" STREQUAL "XCB") - set(_header "xcb/xcb.h") - set(_lib "xcb") - elseif("${_comp}" STREQUAL "COMPOSITE") - set(_header "xcb/composite.h") - set(_lib "xcb-composite") - elseif("${_comp}" STREQUAL "DAMAGE") - set(_header "xcb/damage.h") - set(_lib "xcb-damage") - elseif("${_comp}" STREQUAL "DRI2") - set(_header "xcb/dri2.h") - set(_lib "xcb-dri2") - elseif("${_comp}" STREQUAL "EWMH") - set(_header "xcb/xcb_ewmh.h") - set(_lib "xcb-ewmh") - elseif("${_comp}" STREQUAL "GLX") - set(_header "xcb/glx.h") - set(_lib "xcb-glx") - elseif("${_comp}" STREQUAL "ICCCM") - set(_header "xcb/xcb_icccm.h") - set(_lib "xcb-icccm") - elseif("${_comp}" STREQUAL "IMAGE") - set(_header "xcb/xcb_image.h") - set(_lib "xcb-image") - elseif("${_comp}" STREQUAL "KEYSYMS") - set(_header "xcb/xcb_keysyms.h") - set(_lib "xcb-keysyms") - elseif("${_comp}" STREQUAL "RANDR") - set(_header "xcb/randr.h") - set(_lib "xcb-randr") - elseif("${_comp}" STREQUAL "RENDER") - set(_header "xcb/render.h") - set(_lib "xcb-render") - elseif("${_comp}" STREQUAL "RENDERUTIL") - set(_header "xcb/xcb_renderutil.h") - set(_lib "xcb-render-util") - elseif("${_comp}" STREQUAL "SHAPE") - set(_header "xcb/shape.h") - set(_lib "xcb-shape") - elseif("${_comp}" STREQUAL "SHM") - set(_header "xcb/shm.h") - set(_lib "xcb-shm") - elseif("${_comp}" STREQUAL "SYNC") - set(_header "xcb/sync.h") - set(_lib "xcb-sync") - elseif("${_comp}" STREQUAL "UTIL") - set(_header "xcb/xcb_util.h") - set(_lib "xcb-util") - elseif("${_comp}" STREQUAL "XFIXES") - set(_header "xcb/xfixes.h") - set(_lib "xcb-xfixes") - elseif("${_comp}" STREQUAL "XTEST") - set(_header "xcb/xtest.h") - set(_lib "xcb-xtest") - elseif("${_comp}" STREQUAL "XV") - set(_header "xcb/xv.h") - set(_lib "xcb-xv") - endif() - - find_path(XCB_${_comp}_INCLUDE_DIR NAMES ${_header} HINTS ${PKG_XCB_INCLUDE_DIRS}) - find_library(XCB_${_comp}_LIBRARY NAMES ${_lib} HINTS ${PKG_XCB_LIBRARY_DIRS}) - - if(XCB_${_comp}_INCLUDE_DIR AND XCB_${_comp}_LIBRARY) - list(APPEND XCB_INCLUDE_DIRS ${XCB_${_comp}_INCLUDE_DIR}) - list(APPEND XCB_LIBRARIES ${XCB_${_comp}_LIBRARY}) - if (NOT XCB_FIND_QUIETLY) - message(STATUS "XCB[${_comp}]: Found component ${_comp}") - endif() - endif() - - if(XCB_FIND_REQUIRED_${_comp}) - list(APPEND requiredComponents XCB_${_comp}_FOUND) - endif() - - find_package_handle_standard_args(XCB_${_comp} DEFAULT_MSG XCB_${_comp}_LIBRARY XCB_${_comp}_INCLUDE_DIR) - - mark_as_advanced(XCB_${_comp}_LIBRARY XCB_${_comp}_INCLUDE_DIR) - - # compatibility for old variable naming - set(XCB_${_comp}_INCLUDE_DIRS ${XCB_${_comp}_INCLUDE_DIR}) - set(XCB_${_comp}_LIBRARIES ${XCB_${_comp}_LIBRARY}) -endmacro() - -IF (NOT WIN32) - include(FindPackageHandleStandardArgs) - # Use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) - pkg_check_modules(PKG_XCB QUIET ${pkgConfigModules}) - - set(XCB_DEFINITIONS ${PKG_XCB_CFLAGS}) - - foreach(comp ${comps}) - _xcb_handle_component(${comp}) - endforeach() - - if(XCB_INCLUDE_DIRS) - list(REMOVE_DUPLICATES XCB_INCLUDE_DIRS) - endif() - - find_package_handle_standard_args(XCB DEFAULT_MSG XCB_LIBRARIES XCB_INCLUDE_DIRS ${requiredComponents}) - - # compatibility for old variable naming - set(XCB_INCLUDE_DIR ${XCB_INCLUDE_DIRS}) - -ENDIF (NOT WIN32) diff --git a/cmake/LXQtTranslateDesktop.cmake b/cmake/LXQtTranslateDesktop.cmake deleted file mode 100644 index 5fb7c0c..0000000 --- a/cmake/LXQtTranslateDesktop.cmake +++ /dev/null @@ -1,107 +0,0 @@ -#============================================================================= -# The lxqt_translate_desktop() function was copied from the the -# LXQt LxQtTranste.cmake -# -# Original Author: Alexander Sokolov -# -# funtion lxqt_translate_desktop(_RESULT -# SOURCES -# [TRANSLATION_DIR] translation_directory -# ) -# Output: -# _RESULT The generated .desktop (.desktop) files -# -# Input: -# -# SOURCES List of input desktop files (.destktop.in) to be translated -# (merged), relative to the CMakeList.txt. -# -# TRANSLATION_DIR Optional path to the directory with the .ts files, -# relative to the CMakeList.txt. Defaults to -# "translations". -# -#============================================================================= - -function(lxqt_translate_desktop _RESULT) - # Parse arguments *************************************** - set(oneValueArgs TRANSLATION_DIR) - set(multiValueArgs SOURCES) - - cmake_parse_arguments(_ARGS "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) - - # check for unknown arguments - set(_UNPARSED_ARGS ${_ARGS_UNPARSED_ARGUMENTS}) - if (NOT ${_UNPARSED_ARGS} STREQUAL "") - MESSAGE(FATAL_ERROR - "Unknown arguments '${_UNPARSED_ARGS}'.\n" - "See lxqt_translate_desktop() documenation for more information.\n" - ) - endif() - - if (NOT DEFINED _ARGS_SOURCES) - set(${_RESULT} "" PARENT_SCOPE) - return() - else() - set(_sources ${_ARGS_SOURCES}) - endif() - - if (NOT DEFINED _ARGS_TRANSLATION_DIR) - set(_translationDir "translations") - else() - set(_translationDir ${_ARGS_TRANSLATION_DIR}) - endif() - - - get_filename_component (_translationDir ${_translationDir} ABSOLUTE) - - foreach (_inFile ${_sources}) - get_filename_component(_inFile ${_inFile} ABSOLUTE) - get_filename_component(_fileName ${_inFile} NAME_WE) - #Extract the real extension ............ - get_filename_component(_fileExt ${_inFile} EXT) - string(REPLACE ".in" "" _fileExt ${_fileExt}) - #....................................... - set(_outFile "${CMAKE_CURRENT_BINARY_DIR}/${_fileName}${_fileExt}") - - file(GLOB _translations - ${_translationDir}/${_fileName}_*${_fileExt} - ${_translationDir}/local/${_fileName}_*${_fileExt} - ) - - set(_pattern "'\\[.*]\\s*='") - if (_translations) - add_custom_command(OUTPUT ${_outFile} - COMMAND grep -v -a "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} - COMMAND grep -h -a ${_pattern} ${_translations} >> ${_outFile} - COMMENT "Generating ${_fileName}${_fileExt}" - ) - else() - add_custom_command(OUTPUT ${_outFile} - COMMAND grep -v -a "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} - COMMENT "Generating ${_fileName}${_fileExt}" - ) - endif() - - set(__result ${__result} ${_outFile}) - - - # TX file *********************************************** - set(_txFile "${CMAKE_BINARY_DIR}/tx/${_fileName}${_fileExt}.tx.sh") - string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_translationDir ${_translationDir}) - string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_inFile ${_inFile}) - string(REPLACE "." "" _fileType ${_fileExt}) - - file(WRITE ${_txFile} - "[ -f ${_inFile} ] || exit 0\n" - "echo '[lxqt.${_fileName}_${_fileType}]'\n" - "echo 'type = DESKTOP'\n" - "echo 'source_lang = en'\n" - "echo 'source_file = ${_tx_inFile}'\n" - "echo 'file_filter = ${_tx_translationDir}/${_fileName}_${_fileExt}'\n" - "echo ''\n" - ) - - endforeach() - - set(${_RESULT} ${__result} PARENT_SCOPE) -endfunction(lxqt_translate_desktop) diff --git a/cmake/LXQtTranslateTs.cmake b/cmake/LXQtTranslateTs.cmake deleted file mode 100644 index f6d3215..0000000 --- a/cmake/LXQtTranslateTs.cmake +++ /dev/null @@ -1,129 +0,0 @@ -#============================================================================= -# Copyright 2014 Luís Pereira -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# 1. Redistributions of source code must retain the copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. The name of the author may not be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#============================================================================= -# -# funtion lxqt_translate_ts(qmFiles -# [USE_QT5 [Yes | No]] -# [UPDATE_TRANSLATIONS [Yes | No]] -# SOURCES -# [TEMPLATE] translation_template -# [TRANSLATION_DIR] translation_directory -# [INSTALL_DIR] install_directory -# ) -# Output: -# qmFiles The generated compiled translations (.qm) files -# -# Input: -# USE_QT5 Optional flag to choose between Qt4 and Qt5. Defaults to Qt5 -# -# UPDATE_TRANSLATIONS Optional flag. Setting it to Yes, extracts and -# compiles the translations. Setting it No, only -# compiles them. -# -# TEMPLATE Optional translations files base name. Defaults to -# ${PROJECT_NAME}. An .ts extensions is added. -# -# TRANSLATION_DIR Optional path to the directory with the .ts files, -# relative to the CMakeList.txt. Defaults to -# "translations". -# -# INSTALL_DIR Optional destination of the file compiled files (qmFiles). -# If not present no installation is performed - - - -# CMake v2.8.3 needed to use the CMakeParseArguments module -cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR) - - -function(lxqt_translate_ts qmFiles) - set(oneValueArgs USE_QT5 UPDATE_TRANSLATIONS TEMPLATE TRANSLATION_DIR INSTALL_DIR) - set(multiValueArgs SOURCES) - cmake_parse_arguments(TR "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) - - if (NOT DEFINED TR_UPDATE_TRANSLATIONS) - set(TR_UPDATE_TRANSLATIONS "No") - endif() - - if (NOT DEFINED TR_USE_QT5) - set(TR_USE_QT5 "Yes") - endif() - - if(NOT DEFINED TR_TEMPLATE) - set(TR_TEMPLATE "${PROJECT_NAME}") - endif() - - if (NOT DEFINED TR_TRANSLATION_DIR) - set(TR_TRANSLATION_DIR "translations") - endif() - - file(GLOB tsFiles "${TR_TRANSLATION_DIR}/${TR_TEMPLATE}_*.ts") - set(templateFile "${TR_TRANSLATION_DIR}/${TR_TEMPLATE}.ts") - - if(TR_USE_QT5) - # Qt5 - if (TR_UPDATE_TRANSLATIONS) - qt5_create_translation(QMS - ${TR_SOURCES} - ${templateFile} - OPTIONS -locations absolute - ) - qt5_create_translation(QM - ${TR_SOURCES} - ${tsFiles} - OPTIONS -locations absolute - ) - else() - qt5_add_translation(QM ${tsFiles}) - endif() - else() - # Qt4 - if(TR_UPDATE_TRANSLATIONS) - qt4_create_translation(QMS - ${TR_SOURCES} - ${templateFile} - OPTIONS -locations absolute - ) - qt4_create_translation(QM - ${TR_SOURCES} - ${tsFiles} - OPTIONS -locations absolute - ) - else() - qt4_add_translation(QM ${tsFiles}) - endif() - endif() - - if(TR_UPDATE_TRANSLATIONS) - add_custom_target("update_${TR_TEMPLATE}_ts" ALL DEPENDS ${QMS}) - endif() - - if(DEFINED TR_INSTALL_DIR) - install(FILES ${QM} DESTINATION ${TR_INSTALL_DIR}) - endif() - - set(${qmFiles} ${QM} PARENT_SCOPE) -endfunction() diff --git a/cmake/Qt5TranslationLoader.cmake b/cmake/Qt5TranslationLoader.cmake deleted file mode 100644 index 24ba88d..0000000 --- a/cmake/Qt5TranslationLoader.cmake +++ /dev/null @@ -1,49 +0,0 @@ -#============================================================================= -# Copyright 2014 Luís Pereira -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# 1. Redistributions of source code must retain the copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. The name of the author may not be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#============================================================================= -# -# These functions enables "automatic" translation loading in Qt5 apps -# and libs. They generate a .cpp file that takes care of everything. The -# user doesn't have to do anything in the source code. -# -# qt5_translation_loader( ) -# -# Output: -# Appends the generated file to this variable. -# -# Input: -# Full path name to the translations dir. -# Translation catalog to be loaded. - -set(__CURRENT_DIR ${CMAKE_CURRENT_LIST_DIR}) - -function(qt5_translation_loader source_files translations_dir catalog_name) - configure_file( - ${__CURRENT_DIR}/Qt5TranslationLoader.cpp.in - Qt5TranslationLoader.cpp @ONLY - ) - set(${source_files} ${${source_files}} ${CMAKE_CURRENT_BINARY_DIR}/Qt5TranslationLoader.cpp PARENT_SCOPE) -endfunction() diff --git a/cmake/Qt5TranslationLoader.cpp.in b/cmake/Qt5TranslationLoader.cpp.in deleted file mode 100644 index ffdfcb4..0000000 --- a/cmake/Qt5TranslationLoader.cpp.in +++ /dev/null @@ -1,33 +0,0 @@ -/* This file has been generated by the CMake qt_translation_loader(). - * It loads Qt application translations. - * - * Attention: All changes will be overwritten!!! - */ - -#include -#include -#include -#include - -static void loadQtTranslation() -{ - QString locale = QLocale::system().name(); - QTranslator *qtTranslator = new QTranslator(qApp); - - if (qtTranslator->load("qt_" + locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) { - qApp->installTranslator(qtTranslator); - } else { - delete qtTranslator; - } - - QTranslator *appTranslator = new QTranslator(qApp); - if (appTranslator->load(QString("@translations_dir@/@catalog_name@_%1.qm").arg(locale))) { - QCoreApplication::installTranslator(appTranslator); - } else if (locale == QLatin1String("C") || - locale.startsWith(QLatin1String("en"))) { - // English is the default. It's translated anyway. - delete appTranslator; - } -} - -Q_COREAPP_STARTUP_FUNCTION(loadQtTranslation) diff --git a/debian/changelog b/debian/changelog index 831871e..eee9dd6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +screengrab (1.101-1ubuntu1) disco; urgency=medium + + * Lubuntuify the package. + + -- Simon Quigley Sat, 09 Mar 2019 12:22:10 -0600 + screengrab (1.101-1) unstable; urgency=medium * Cherry-picked upstream version 1.101. diff --git a/debian/control b/debian/control index 107771d..9959b6a 100644 --- a/debian/control +++ b/debian/control @@ -1,33 +1,33 @@ Source: screengrab -Maintainer: LXQt Packaging Team -Uploaders: Alf Gaida , - ChangZhuo Chen (陳昌倬) , - Andrew Lee (李健秋) +Maintainer: Lubuntu Developers +XSBC-Original-Maintainer: LXQt Packaging Team +Uploaders: Simon Quigley Section: graphics Priority: optional -Build-Depends: debhelper-compat (= 12), - cmake, +Build-Depends: cmake, + debhelper-compat (= 12), libkf5windowsystem-dev, libqt5svg5-dev, libqt5x11extras5-dev, libqt5xdg-dev (>= 3.3.1~), - libqt5xdgiconloader-dev (>= 3.3.1~) , + libqt5xdgiconloader-dev (>= 3.3.1~), libx11-dev, libx11-xcb-dev, - libxcb1-dev, libxcb-xfixes0-dev [!kfreebsd-any], + libxcb1-dev, pkg-config, qttools5-dev, qttools5-dev-tools Standards-Version: 4.3.0 -Vcs-Browser: https://salsa.debian.org/lxqt-team/screengrab -Vcs-Git: https://salsa.debian.org/lxqt-team/screengrab.git +Vcs-Browser: https://phab.lubuntu.me/source/screengrab/ +Vcs-Git: https://phab.lubuntu.me/source/screengrab.git +XS-Debian-Vcs-Browser: https://salsa.debian.org/lxqt-team/screengrab +XS-Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/screengrab.git Homepage: https://github.com/lxqt/screengrab Package: screengrab Architecture: any -Depends: ${shlibs:Depends}, - ${misc:Depends} +Depends: ${misc:Depends}, ${shlibs:Depends} Description: Crossplatform tool for getting screenshots Screengrab working in Linux and Windows. The program uses Qt and is independent of any desktop environment. diff --git a/debian/copyright b/debian/copyright index 80cbf18..04cefd7 100644 --- a/debian/copyright +++ b/debian/copyright @@ -46,13 +46,13 @@ License: BSD-3-Clause without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/docs/html/default.css b/docs/html/default.css deleted file mode 100644 index 2844492..0000000 --- a/docs/html/default.css +++ /dev/null @@ -1,142 +0,0 @@ -/** BASIC */ - -body { - text-align: justify; - font-family: Georgia, "Times New Roman", Times, serif; - color: #333333; -} - -h1, h2, h3 { - text-transform: lowercase; - color: #000099; -} - -ul { - margin-left: 0px; - padding-left: 1em; - list-style-position: inside; -} - -a { - color: #000099; -} - -a:hover { - text-decoration: none; - color: #990000; -} - -/** HEADER */ - -#header { - width: 1000px; - height: 60px; - margin: 0px auto; -} - -#header #version { -/* width: 1000px; - height: 60px; - margin: 0px auto; */ - font-weight: bolder; - float: left; - margin: 0px; - padding: 35px 0px 0px 10px; -} - - -#header h1 { - float: left; - margin: 0px; - padding: 20px 0px 0px 0px; -} - -#header h2 { - float: right; - margin: 0px; - padding: 27px 0px 0px 0px; -} - - -/** MENU */ - -#menu { - width: 1000px; - height: 1.5em; - margin: 0px auto; - border: 1px solid #000099; -} - -#menu ul { - margin: 0px; - padding: 0px; - list-style: none; - float:right; -} - -#menu li { - display: inline; -} - -#menu a { - display: block; - float: left; - padding: 3px 10px; - border-right: 1px solid #000099; - text-decoration: none; -} - -#menu a:hover { - background: #000099; - color: #FFFFFF; -} - -/** CONTENT */ - -#content { - width: 1000px; - margin: 0px auto; -} - -#content h2 { - font-weight: normal; -} - -h2 a { - font-size: 60%; - font-weight: lighter; -} - -#left { - float: left; - width: 780px; -} - -#left #center{ - text-align:center; -} - -#right { - float: right; - width: 200px; -} - -#right h2{ - text-align: right; -} - -/** FOOTER */ - -#footer { - clear: both; - width: 980px; - margin: 0px auto; - padding: 5px 10px; - border: 1px solid #000099; -} - -#footer p { - margin: 0px; - padding: 0px; - font-size: x-small; -} \ No newline at end of file diff --git a/docs/html/en/index.html b/docs/html/en/index.html deleted file mode 100644 index 0399b7d..0000000 --- a/docs/html/en/index.html +++ /dev/null @@ -1,444 +0,0 @@ - - - - - -ScreenGrab -- Fast creation of screenshots - - - - - - -
-
-

ScreenGrab - fast creation of screenshots

-

-ScreenGrab is a crossplatform application designed to quickly get screenshots. -ScreenGrab is based on the Qt Framework, which allows the program to be used in -GNU/Linux and Microsoft Windows environments. -

-

- Main features: -

-
    -
  • Supports Linux & Windows
  • -
  • Get desktop screenshots
  • -
  • Get active window screenshots
  • -
  • Get screenshots of selected desktop areas
  • -
  • Copy screenshots into the clipboard
  • -
  • Save your image files in PNG or JPEG format
  • -
  • Ability to view and edit screenshots in an external editor
  • -
  • Ability to upload screenshots to MediaCrush and imgur
  • -
  • Ability to set delay before getting screenshots -(from 1 to 90 seconds)
  • -
  • Hide the main window (with recovery) at the time of the screenshot
  • -
  • Ability to minimize ScreenGrab to the system tray, and -control it via a context menu
  • -
  • Getting screenshots using global shortcuts
  • -
  • Auto-save screenshot when captured
  • -
  • Ability to insert the current date and time in the filename when saving it
  • -
- - - -

Usage To start page

-

- It is very simple. -

-

- On the first run ScreenGrab captures the current state of your desktop. - The preview screen is displayed in the main window. - -All management of the program can be carried out through the buttons in the main window or in the context menu of ScreenGrab, which can be accessed by a right-mouse-click on the ScreenGrab icon in the notification area of the desktop. -

-

- Buttons in main window: -

-
    -
  • New Screen [Ctrl+N] -- Take a new screenshot
  • -
  • Save Screen [Ctrl+S] -- Write a captured screenshot - on your hard disk (in PNG or JPEG format).
  • -
  • Copy Screen [Ctrl+C] -- Copy a screenshot to the clipboard.
  • - -
  • Edit in ... -- Open and edit screenshots in an image editor. -
    -
    - NOTE: In the current version for Microsoft Windows only MS Paint is supported. -
    -
    -
  • -
  • Options [Ctrl+O] -- Show program options window.
  • -
  • Help [Ctrl+H] -- Access help and information about ScreenGrab, its developer and license.
  • -
  • Quit [Ctrl+Q] -- Exit ScreenGrab
  • -
-

- These buttons can be accessed via right-click on the ScreenGrab icon in the system tray menu as well. -

-

- Additional controls, located in main window. -

-
    -
  • Delay -- Delay in seconds before grabbing the screen.
  • -
  • Type -- Type of grabbing [full screen -or active window].
  • -
-

- Main settings: -

-
    -
  • Default directory -- Default directory to save screenshots
  • -
  • Default filename -- Default name of the saved file
  • -
  • Format -- Default saving image format (you can select other formats)
  • -
  • No window decoration -- Grab a screenshot of the active window without window decorations (only for Linux version).
  • -
-

- Advanced settings: -

-
    - -
  • Insert DateTime in filename -- Insert date and time in the filename to be saved -
    -
    These expressions may be used for the date part of the format string: -
    - - - - - - - - - - - - - - -
    ParameterOutput
    dDay as number without a leading zero (1 to 31)
    ddDay as number with a leading zero (01 to 31)
    dddAbbreviated localized day name (e.g. 'Mon' to 'Sun').
    ddddLong localized day name (e.g. 'Monday' to 'Sunday').
    MMonth as number without a leading zero (1-12)
    MMMonth as number with a leading zero (01-12)
    MMMAbbreviated localized month name (e.g. 'Jan' to 'Dec').
    MMMMLong localized month name (e.g. 'January' to 'December').
    yyYear as two digit number (00-99)
    yyyyYear as four digit number
    -
    -
    These expressions may be used for the time part of the format string: -
    - - - - - - - - - - - - - - - - -
    ParameterOutput
    hHour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)
    hhHour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)
    HHour without a leading zero (0 to 23, even with AM/PM display)
    HHHour with a leading zero (00 to 23, even with AM/PM display)
    mMinute without a leading zero (0 to 59)
    mmMinute with a leading zero (00 to 59)
    sSecond without a leading zero (0 to 59)
    ssSecond with a leading zero (00 to 59)
    zMilliseconds without leading zeroes (0 to 999)
    zzzMilliseconds with leading zeroes (000 to 999)
    AP or AInterpret as an AM/PM time. AP must be either "AM" or "PM".
    ap or aInterpret as an AM/PM time. ap must be either "am" or "pm".
    -
    -
  • -
  • Autosave screen -- Automatically save -the screenshot in the grab process
  • -
  • Save first screenshot -- enabled | disabled automatically saves the first screenshot, which is captured on program start
  • -
  • Filenames to clipboard on saving -- Send the name of the saved file to the clipboard . You can select these parameters:
  • -
      -
    • No copy - The name of saved file will not be transferred to the clipboard.
    • -
    • Only filename - Send only the file name to the clipboard.
    • -
    • Full path to file - Send the full path to the file to the clipboard.
    • -
    - -
  • Allow multiple copies -- Allow run multiple copies of ScreenGrab.
  • -
  • Enable external viewer -- Enable or disable the preview of the screenshot in the default image viewer (by double click on screenshot area in the main window).
  • -
-

- Display settings: -

-
    -
  • Save window size on exit -- Save the current size of main window -when exiting ScreenGrab (and restore it at next run)
  • -
  • Zoom area around mouse in selection mode -- Display the magnified area around the mouse pointer when receiving a screenshot of a selected area.
  • -
-

- System tray settings: -

-
    -
  • Use tray -- Use the notification area (system tray) of the operating system (desktop environment) for displaying messages and application management.
  • -
  • Tray messages -- Mode of displaying tray messages on grab|save events. Can be "none" -or "if hidden" or "always"
  • -
  • Time to display tray messages -- Time within a specific notification is displayed
  • -
  • Close in tray -- Minimize the main window into the system tray -by click on the close window button.
  • - -
-

- Shortcut Settings: -

-

- On the tab "Shortcuts" in the options window you can set the keyboard shortcuts, which allows you to access the application functions easily. There are two kinds of key combinations used in ScreenGrab - local and global. -

-

- Local duplicate actions performed by pressing the button in the main window. They will only work when the ScreenGrab main window is active. -

-

- Global shortcuts can be used the get a new screenshot when you have opened other application windows. -

-

- Command line parameters: -

-
    -
  • --fullscreen -- Set the fullscreen mode [default].
  • -
  • --active -- Set the active window mode.
  • -
  • --region -- Set the screen region select mode.
  • -
  • --minimized -- Open ScreenGrab minimized in the tray (or taskbar, if tray is disabled).
  • -
  • --upload -- Automatically upload a screenshot to the selected image hosting service and display the direct link to the image after completion.
  • -
  • --version -- Display version information [Linux only].
  • -
  • --help -- Display command line parameters information [Linux only].
  • -
- - - -

License To start page

-

- Copyright: -

-

- Artem 'DOOMer' Galichkin doomer3d@gmail.com -

-

-License: -

-

- ScreenGrab is a freeware licensed by GNU General Public License version 2 -

-

- Thanks to: -

- -

- Translators: -

-
    -
  • Marcio Moraes -- Brazilian Portuguese translation
  • -
  • Gennadi Motsyo -- Ukrainian translation
  • -
-

- Beta-testers: -

-
    -
  • Alexantia
  • -
  • iNight
  • -
- -

-And all those who use ScreenGrab :) -

- -

Version history To start page

-

- Version 1.2: -

-
    -
  • Added ability for autosaving type of the last created screenshot.
  • -
  • Some small fixes.
  • -
-

- Version 1.1.1: -

-
    -
  • Fixed wrong 'imgur' uploading result string for bb-code with preview.
  • -
  • Fixed segfault when exist configuration file contains "showTrayIcon=false".
  • -
-

- Version 1.1: -

-
    -
  • Added ability to upload to MediaCrush (http://mediacru.sh).
  • -
  • Option "Always save the window size" replaced by "autosave window size on exit ScreenGrab".
  • -
  • Reworked main window UI (the order of the buttons).
  • -
  • Reworked the configuration dialog (some UI elements moved between sections, and increment count of the sections).
  • -
-

- Version 1.0: -

-
    -
  • Fixed dual monitor support
  • -
  • Added XDG_CONFIG_HOME support, by a build option SG_XDG_CONFIG_SUPPORT
  • -
  • Added ability to upload to some image hosting services (imgur.com and imgshack.us)
  • -
  • Added build option for compiling without the upload feature (SG_EXT_UPLOADS build option)
  • -
  • Added "Previous selection" mode
  • -
  • Added ability to edit a screenshot in an external editor
  • -
  • Added option for preview screenshot in default image viewer by double click on screenshot area
  • -
  • Fixed non-minimize main window on "Exit" shortcut, when using "Minimize to tray" option
  • -
  • Fixed bug with cutting button text on main window
  • -
  • Fixed regression with not capture screenshot when a second instance of ScreenGrab is running
  • -
  • Fixed bug with not creating the path to autosave screenshots (when it is typed in manually in configuration dialog)
  • -
  • Added build option SG_GLOBALSHORTCUTS for turning on/off build with global shortcuts support
  • -
  • Autoincrement filenames when saving screenshots in manual mode (in one running session)
  • -
  • Added the ability to customise shortcuts to close the application
  • -
  • Added ability to run ScreenGrab minimized to tray (or taskbar, if tray is disabled) with "--minimized" command line option
  • -
  • Added ability to automatically upload the screenshot via the command line "--upload" parameter
  • -
-

- Version 0.9.1: -

-
    -
  • Fixed non-switching combo-box "Type of Screeen" when grab screenshot from signal by another instance
  • -
  • Fixed incorect grab active window screens in GNOME (when disabled "Allow multiple copies" option and run another instance)
  • -
-

- Version 0.9: -

-
    -
  • added global shortcuts
  • -
  • added option for enable|disable system tray
  • -
  • added switch to the already running instance of an application when you start a second instance (non-operating mode to allow multiple instances)
  • -
  • added autosave first screenshot which has been taken on application start (enabled | disabled optional)
  • -
  • redesign config dialog UI
  • -
- -

-

- Version 0.8.1: -

-
    -
  • [Linux] fixed incorrect selection of the default saving format in the KDE 4.4.x save file dialog
  • -
  • added de_DE translation
  • -
-

- Version 0.8: -

-
    -
  • added command line parameters - for grab modes (fullscren, active window, selection area)
  • -
  • added BMP support
  • -
  • added Brazilian Portuguese translation
  • -
  • added automatically hiding main window on grab process
  • -
  • [Linux] fixed grab active window screenshot without decorations
  • -
  • [Linux] add option "no window decoration"
  • -
  • added shortcuts for main window buttons
  • -
- -

- Version 0.6.2 [Linux only]: -

-
    -
  • fixed non-translated tray menu (closed issue #7)
  • -
-

- Version 0.6.1 [Linux only]: -

-
    -
  • fixed incorrect detection of the system language in some Linux distributions
  • -
-

- Version 0.6: -

-
    -
  • default value of hiding main window changed to true
  • -
  • added input template for inserting date-time into the saved filename
  • -
  • added zoom around mouse cursor in area selection mode
  • -
  • small modifications of the configuration dialog
  • -
  • added html help info (English & Russian)
  • -
- - -

- Version 0.5: -

-
    -
  • added inserting date|time in saving filename [optional]
  • -
  • added auto saving screenshots in grabbing process [option]
  • -
  • added option to change the time of displaying tray messages [1 - 10 sec]
  • -
  • added help info
  • -
  • added tool tips for the UI elements
  • -
  • small fixes config file syntax
  • - -
- - - -

- Version 0.4: -

-
    -
  • added grabbing selection screen area
  • -
  • added ability to copy image files into the clipboard
  • -
  • added saving size of main window on exit [default is turned off]
  • -
  • halve the memory size occupied by ScreenGrab at startup
  • -
  • [win32] fixed bug with storing the screengrab.ini file
  • -
  • change structure of some source code (work with config data)
  • -
  • change buttons tab order of main window
  • -
  • new application icon
  • -
  • some fixes
  • -
- -

- Version 0.3.1: -

-
    -
  • fixed bug with non-displayed main window icon
  • -
- -

- Version 0.3: -

-
    -
  • main window is now based on ui-file (remaked UI)
  • -
  • added grabbing active window
  • -
  • added option to allow running multiple instances of ScreenGrab
  • -
  • added option to select between minimizing to tray and closing - (by close window button).
  • -
- -

- Version 0.2: -

-
    -
  • added JPEG support
  • -
  • added options dialog
  • -
  • added option to select a default directory for saving the files
  • -
  • added option to select a default filename
  • -
  • added option to select a default image format
  • -
  • added saving options into INI-file
  • -
  • added i18n support and Russian localisation
  • -
  • some fixes and changes in code
  • -
  • now available as installer (Windows) and deb packages (Ubuntu 9.04)
  • -
-

- Version 0.1: -

-
    -
  • first public version
  • -
  • added system tray icon and menu
  • -
  • added option to hide ScreenGrab in systray
  • -
  • added option to block running a second instance of ScreenGrab
  • -
-

- Version 0.0.3: -

-
    -
  • first working build with minimal features.
  • -
- -
- - -
- - - diff --git a/docs/html/pt_BR/index.html b/docs/html/pt_BR/index.html deleted file mode 100644 index ec4d014..0000000 --- a/docs/html/pt_BR/index.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - -ScreenGrab -- programa para captura rápida de imagens - - - - - - -
-
-

ScreenGrab - rápida criação de capturas de telas

-

-Esta é uma aplicação multi-plataforma projetada para obter rapidamente capturas de telas. -O ScreenGrab foi criado usando o Framework Qt, graças a qual o programa pode trabalhar no -Microsoft Windows e GNU/Linux. -

-

- Principais características: -

-
    -
  • Funciona no Windows & Linux
  • -
  • Obtém captura de telas do desktop
  • -
  • Obtém captura de tela da janela ativa
  • -
  • Obtém captura de tela de uma região do desktop
  • -
  • Copia a captura de tela para a área de transferência
  • -
  • Salva seus arquivos de imagens no formato PNG ou JPEG
  • -
  • Ability to view and edit screenshots in an external editor
  • -
  • Ability to upload screenshots on several image hostings (mediacru.sh, imgur.com)
  • -
  • Habilidade em definir atraso ao obter as capturas de telas -(de 1 até 90 segundos)
  • -
  • Ocultando a janela principal (com recuperação) do -ScreenGrab no momento da captura de tela
  • - -
  • Habilidade para minimizar o programa para a área de notificação do sistema, e -controlá-lo via menu de contexto
  • -
  • Obtém a captura de tela usando atalhos globais
  • -
  • Salva automaticamente a captura de tela ao ser recebido
  • -
  • Habilidade de inserir data e hora no nome do arquivo e salvar
  • -
- - - -

Uso Para o início da página

-

- É muito simples. -

-

- Na primeira execução do programa, obtém-se o estado atual do seu desktop. - É mostrada a tela atual na janela principal. - -Todo o gerenciamento do programa pode ser realizado -através dos botões ou pelo menu de contexto na área de notificação do desktop. -

-

- Botões na janela principal: -

-
    -
  • Nova tela [Ctrl+N] -- obtém nova captura de tela.
  • -
  • Salvar tela [Ctrl+S] -- salva a captura da tela obtida no disco rígido (no formato PNG ou JPEG).
  • -
  • Copiar tela [Ctrl+C] -- copia tela para a área de transferência.
  • -
  • Upload - upload screenshots on several image hosting services, currently ScreenGrab supports mediacru.sh, imgur.com and imageshack.us, in the future, the list will be expanded.
  • -
  • Edit in ... - the ability to open (and edit) screenshots in an image editor. -
    -
    - NOTE: In the current version for Microsoft Windows only MS Paint is supported. -
  • -
  • Opções [Ctrl+O] -- mostra a janela de opções do programa.
  • -
  • Ajuda [Ctrl+H] -- exibe informações de ajuda e exibe informações sobre o ScreenGrab, desenvolvedor e licença.
  • -
  • Sair [Ctrl+Q] -- sai do programa.
  • -
-

- Estes botões também estão disponíveis no menu do programa na área de notficação do sistema. -

-

- Controles adicionais, localizado na janela principal. -

-
    -
  • Atraso -- atrasa em segundos antes de capturar a tela.
  • -
  • Tipo -- tipo de obtenção [tela cheia -ou janela ativa].
  • -
-

- Configurações principais: -

-
    -
  • Diretório padrão -- diretório padrão para salvar as capturas de telas.
  • -
  • Nome do arquivo padrão -- nome do arquivo salvo por padrão.
  • -
  • Formato -- padrão do formato da imagem salva (você pode selecionar outro formato ao salvar).
  • -
  • Nenhuma decoração da janela -- captura a janela ativa sem as decoraçãos da janela (only for linux version).
  • -
-

- Configurações avançadas: -

-
    -
  • Inserir Data/Hora no nome do arquivo -- inseri data e hora no nome do arquivo salvo. -
    -
    Estas expressões podem ser utilizadas como parte dos caracteres do formato da data:: -
    - - - - - - - - - - - - - - -
    Saída dasexpressões
    do dia como número sem um zero à esquerda (1 a 31)
    ddo dia como número com um zero à esquerda (01 a 31)
    dddo nome abreviado do dia localizado. (ex. 'Seg' a 'Dog')
    ddddo nome longo do dia localizado (ex. 'Segunda' a 'Domingo')
    Mo mês como número sem um zero à esquerda (1-12)
    MMo mês como número com um zero à esquerda (01-12)
    MMMo nome abrevido do mês localizado (ex. 'Jan' a 'Dez')
    MMMMo nome longo do mês localizado (ex. 'Janeiro' a 'Dezembro')
    yyo ano como número de dois dígitos (00-99)
    yyyyo ano como número de quatro dígitos
    -
    -
    Estas exepressões podem ser utilizadas como parte dos caracteres do formato da hora:: -

    - - - - - - - - - - - - - - - - -
    Saída dasexpressões
    ha hora sem um zero à esquerda (0 a 23 ou 1 a 12 se AM/PM for exibido)
    hha hora com um zero à esquerda (00 a 23 ou 01 a 12 se AM/PM for exibido)
    Ha hora sem um zero à esquerda (0 a 23, até quando AM/PM for exibido)
    HHa hora com um zero à esquerda (00 a 23, até quando AM/PM for exibido)
    mo minuto sem um zero à esquerda (0 a 59)
    mmo minuto com um zero à esquerda (00 a 59)
    so segunddo sem um zero à esquerda (0 a 59)
    sso segundo com um zero à esquerda (00 a 59)
    zos milisegundos sem unz zeros à esquerda (0 a 999)
    zzzos milisegundos com unz zeros à esquerda (000 a 999)
    AP ou Ainterpreta com uma hora AM/PM. AP deve ser um "AM" or "PM"
    ap ou ainterpreta com uma hora AM/PM. ap deve ser um "am" ou "pm"
    -
    -
  • -
  • Auto-salvar tela -- salva automaticamente capturas de telas no processo de captura.
  • -
  • Salvar a primeira captura de tela -- habilitado | desabilitado automaticamente ao salvar a primeira captura de tela, que se obtém ao executar o programa.
  • -
  • Filenames to clipboard on saving - send to the clipboard name of the saved file. You can select these params:
  • -
      -
    • No copy - the name of saved file will not be transferred to the clipboard.
    • -
    • Only filename - send to the clipboard only the file name.
    • -
    • Full path to file - send to the clipboard full path to the file.
    • -
    -
  • Permitir múltiplas instâncias -- permite executar múltiplas instâncias do ScreenGrab.
  • -
  • Enable external viewer -- enable or disable ability for preview screenshot in default image viewer (by double click on screenshot area in main window).
  • -
-

- Exibir configurações: -

-
    -
  • Salvar o tamanho da janela ao sair -- salva o tamanho da janela principal ao sair (e restaura na próxima execução).
  • -
  • Zoom da área ao redor do mouse no modo de seleção -- a capacidade de exibir a área ampliada em torno do ponteiro do mouse ao receber uma tela de área selecionada.
  • -
-

- Configurações da área de notificação dos sistema: -

-
    -
  • Usar a área de notificação -- usar a área de notificação (system tray) do sistema operacional (ambiente de trabalho) para mostrar as mensagens e gerenciar o programa. -
  • Mensagens na área de notificação -- modo de exibir as mensagens na área de notificação ao tirar|salvar os eventos. Pode ser "nenhum" ou "ocultar" ou "sempre".
  • -
  • Tempo de exibição das mensagens na área de notificação -- tempo em que as mensagens são exibidas.
  • -
  • Fechar para área de notificação -- minimiza a janela principal para a área de notificação ao clicar no botão fechar da janela.
  • -
-

- configurações dos atalhos: -

-

- Na aba "Atalhos" na janela opções, você pode definir teclas de atalho para o acesso rápido das funções do programa. Existem dois tipos de combinações de teclas usadas no Screengrab - local e global. -

-

- Local duplica as ações executadas ao pressionar o botão na janela principal. Eles só funcionam quando a janela principal do Screengrab está ativa. -

-

- Atalhos globais podem ser usados para se obter uma nova captura de tela, ao trabalhar com outra aplicação no seu sistema operacional. -

-

- Parâmetros da linha de comando: -

-
    -
  • --fullscreen -- define o modo tela cheia [padrão].
  • -
  • --active -- define o modo janela ativa.
  • -
  • --region -- define o modo selecionar área da tela.
  • -
  • --minimized -- run in minimized to the tray (or taskar, if tray is disabled).
  • -
  • --upload -- automatically uploading screenshot on selected image hosting. And display after it direct link to image.
  • -
  • --version -- exibe informações da versão {somente linux].
  • -
  • --help -- mostra informações dos parâmetros de linha de comando {somente linux].
  • -
- - - -

Licença Para o início da página

-

- Copyright: -

-

- Artem 'DOOMer' Galichkin doomer3d@gmail.com -

-

-Licença: -

-

- ScreenGrab é um freeware licenciado sob os termos da Licença Pública Geral GNU versão 2 -

-

- Agradecimentos aos:: -

- -

- Tradutores: -

-
    -
  • Márcio Moraes -- Tradução para o Português do Brasil
  • -
  • Gennadi Motsyo -- Tradução para o Ucraniano
  • -
-

- Beta-testers: -

    -
  • Alexantia
  • -
  • iNight
  • -
- -

-E a todos aqueles que utilizam ScreenGrab :) -

- -

Histórico das versões Para o início da página

-

- Versão 1.2: -

-
    -
  • Added ability for autosaving type of the last created screenshot.
  • -
  • Some small fixes.
  • -
-

- Version 1.1.1: -

-
    -
  • Fixed wrong 'imgur' uploading result string for bb-code with preview.
  • -
  • Fixed segfault when exist configuration file contains "showTrayIcon=false".
  • -
-

- Version 1.1: -

-
    -
  • Added ability to upload to MediaCrush (http://mediacru.sh).
  • -
  • Option "Always save the window size" replaced by "autosave window size on exit ScreenGrab".
  • -
  • Reworked main window UI (the order of the buttons).
  • -
  • Reworked the configuration dialog (some UI elements moved between sections, and increment count of the sections).
  • -
-

- Versão 1.0: -

-
    -
  • Fixed dual monitor support
  • -
  • Added XDG_CONFIG_HOME support, by a build option SG_XDG_CONFIG_SUPPORT
  • -
  • Added ability to upload to some image hosts (imgur.com and imgshack.us)
  • -
  • Added build option for compile without upload feature (SG_EXT_UPLOADS bulld option)
  • -
  • Added "Previous selection" mode
  • -
  • Added ability to edit screenshot in external editor
  • -
  • Added option for preview screenshot in default image viewer by double click on screenshot area
  • -
  • Fixed non-minimize main window on "Exit" shortcut, when use "Minimize to tray" option
  • -
  • Fixed bug with cut button text on mainwindow
  • -
  • Fixed regression with not capture screenshot when second instance running
  • -
  • Fixed bug with not create path to autosave screenshots (when it is typed manually in configuration dialog)
  • -
  • Added build option SG_GLOBALSHORTCUTS for turn on/off build with global shortcuts support
  • -
  • Autoincrement filenames when saving screenshots in manual mode (in one running session)
  • -
  • Added the ability to customize shortcut to close the application
  • -
  • Added ability to run in minimized to tray (or taskar, if tray is disabled) with "--minimized" comand line option
  • -
  • Added ability to automatically upload the screenshot via the command line "--upload" param
  • -
-

- Versão 0.9.1: -

-
    -
  • Corrigido a não-mudança da caixa de combinação "Tipo de Screeen" quando obtido a captura de tela a partir de um sinal por outra instância do programa.
  • -
  • Corrigida a incorreta captura de tela da janela ativa no GNOME (quando desativada a opção "Permitir múltiplas cópias" e executar outra instância do programa).
  • -
-

- Versão 0.9: -

-
    -
  • adicionados atalhos globais.
  • -
  • adicionado a opção habilitar|desabilitar na área de notificação do sistema.
  • -
  • adicionado alternar para a instância já em execução do programa quando você iniciar uma segunda instância (modo de operação não permitir múltiplas instâncias).
  • -
  • adicionado salvar automaticmente a primeira captura de tela que foi obtida no início do programa (ocional habilitar | desabilitar).
  • -
  • redesenhada a interface do diálogo de configuração.
  • -
- -

-

- Versão 0.8.1: -

-
    -
  • [Linux] corrigido a incorreta seleção padrão ao salvar o formato no KDE 4.4.x no diálogo salvar arquivo.
  • -
  • adicionada a tradução de_DE.
  • -
-

-

- Versão 0.8: -

-
    -
  • adicionado parâmetros de linha de comando - para obtenção dos modos (tela cheia, janela ativa, área da seleção).
  • -
  • adicionado o suporte a BMP.
  • -
  • adicionado a tradução para o Português do Brasil.
  • -
  • adicionado ocultando automaticamente janela principal no processo de captura.
  • -
  • {linux] corrigido obtenção da captura da janela sem decorações.
  • -
  • [linux] adicionado opção "sem decoração da janela".
  • -
  • adicionado atalhos para os botões da janela principal.
  • -
- -

- Versão 0.6.2 [Somente Linux]: -

-
    -
  • corrigido o não traduzido menu da área de notificação (publicação fechada #7).
  • -
-

- Versão 0.6.1 [Somente Linux]: -

-
    -
  • corrido a incorreta detecção do idioma do sistema em algumas distribuições Linux.
  • -
-

- Versão 0.6: -

-
    -
  • o valor padrão de "ocultar janela principal" foi alterado para true (ativado).
  • -
  • adicionado entrada modelo para inserir data-hora no nome do arquivo salvo.
  • -
  • adicionado zoom ao redor do cursor do mouse no modo de seleção de área.
  • -
  • pequena moficaição no diálogo de configuração.
  • -
  • adicionado ajuda html em (inglês & russo).
  • -
- - -

- Versão 0.5: -

-
    -
  • adicionado inserir data|hora ao salvar nome do arquivo [opcional].
  • -
  • adicionado auto salvar telas no processo de obtenção [opção].
  • -
  • adicionado alterar tempo de exibição das mensagenas na área de notificação [1 - 10 src].
  • -
  • adicionado informações de ajuda.
  • -
  • adicionado dicas de ferramentas para os elementos UI.
  • -
  • pequenas correções na sintaxe do arquivo de configuração.
  • - -
- - - -

- Versão 0.4: -

-
    -
  • adicionado obter região de uma área selecionada.
  • -
  • adicionado copiar para a área de transferência.
  • -
  • adicionado salvar tamanho da janela principal ao sair [padrão está desabilitado].
  • -
  • decrementado em 2 tempos os volumes ocupados pela memória ao iniciar.
  • -
  • [win32] falha corrigida com a localização de screengrab.ini.
  • -
  • alterada estrutura de algumas linhas do código fonte (para trabalhar com configuração de data).
  • -
  • alterada a ordem da aba dos botões da janela principal.
  • -
  • novo ícone do programa.
  • -
  • algumas correções.
  • -
- -

- Versão 0.3.1: -

-
    -
  • corrigida falha com a não exibição do ícone da janela principal.
  • -
- -

- Versão 0.3: -

-
    -
  • janela principal agora baseada no arquivo UI (recriado UI).
  • -
  • adicionado captura da janela ativa.
  • -
  • adicionado opção para permitir múltiplas instâncias do ScreenGrab.
  • -
  • adicionado opção para selecionar entre minimiizar no área de notificação e fechar (botão fechar da janela).
  • -
- -

- Versão 0.2: -

-
    -
  • adicionado suporte a JPEG.
  • -
  • adicionado diálogo de opções.
  • -
  • adicionado configurações ao salvar diretório, nome do arquivo e formato da imagem por padrão.
  • -
  • adicionado opções de salvar no arquivo INI.
  • -
  • adicionado suporte a i18n e localização Russa.
  • -
  • algumas correções e alterações no código.
  • -
  • disponível agora com um instalador (Windows) e pacotes deb (ubuntu 9.04).
  • -
-

- Versão 0.1: -

-
    -
  • primeira versão pública.
  • -
  • adicionado ícone e menu na área de notificação do sistema.
  • -
  • adicionado ocultar na área de notificação do sistema.
  • -
  • adicionado o bloqueio de uma segunda instância do programa.
  • -
-

- Versão 0.0.3: -

-
    -
  • primeira construção trabalhada com recursos mínimos.
  • -
- -
- - -
- - - diff --git a/docs/html/ru/index.html b/docs/html/ru/index.html deleted file mode 100644 index 8db19d4..0000000 --- a/docs/html/ru/index.html +++ /dev/null @@ -1,487 +0,0 @@ - - - - - -ScreenGrab -- программа для быстрого создания скриншотов - - - - - - -
-
-

ScreenGrab - быстрое создание скриншотов

-

- Данная программа является кроссплатформенным приложением, - предназначенным для быстрого получения снимков экрана -(скриншотов) . - ScreenGrab создана с использованием фреймворка Qt, за счёт -которого - достигается работоспособность приложения в операционных -системах Microsoft Windows и GNU/Linux. -

-

- Основные возможности программы: -

-
    -
  • Работа в операционных систмах Windows и Linux
  • -
  • Получение снимков рабочего стола
  • -
  • Получение снимков отдельного активного окна
  • -
  • Получение снимков выделенной области экрана
  • -
  • Копирование скриншотов в буфер обмена
  • -
  • Сохранение полученных изображений в файлы форматов PNG, PEG или BMP
  • -
  • Возможность просмотра и редактирования скриншота во внешнем редакторе
  • -
  • Ввозможность загрузки скриншотов на несколько хостингов изображений (на данный момент mediacru.sh и imgur.com)
  • -
  • Возможность установки задержки при получении скриншотов -(от 1 до 90 секнд)
  • -
  • Скрытие главного окна (с последующим восстановлением) -ScreenGrab в момент - получения скриншота
  • -
  • Возможность сворачивания приложения в системный трей, и -управление через контекстное меню
  • -
  • Получение скриншотов при помощи глобальных клавиш быстрого доступа
  • -
  • Автоматическое сохранение скриншотов при их получении
  • -
  • Возможность вставки текущей даты и времени в имя сохраняемого файла
  • -
- - - -

Использование В начало

-

- Все очень просто. -

-

- При первом запуске программы, вы получаете снимок - текущего состояния вшего рабочего стола. Вы можете увидеть это в - окне программы. - Все дальнейшее управление программой может быть осуществлено -через кнопки - или контекстное меню в области уведомлений рабочего стола. -

-

- Назначение кнопок окна программы. -

-
    -
  • Новый снимок [Ctrl+N] -- получение нового скриншота
  • -
  • Сохранить [Ctrl+S] -- запись полученного снимка на жесткий -диск, - в виде графического файла.
  • -
  • Копировать [Ctrl+C] -- Копирование скриншота в буфер обмена.
  • -
  • Опубликовать - загрузить полученный скриншот на один из поддерживаемых хостингов изображений. На данный момент поддерживаются mediacru.sh, imgur.com и imageshack.us, в дальнейшем список будет расширен
  • -
  • Открыть в ... - возможность открытия (и редактирования) полученного скриншота в одном из установленных в системе приложений для работы с изображениями. -
    - Заимечание: В версии для Microsoft Windows поддерживается только Microsoft Paint. -
  • -
  • Настройки [Ctrl+O] -- настрйоки программы
  • -
  • Справка [Ctrl+H] -- отображение справочной информации и вывод окна с информацией о -разработчике и лицензии
  • -
  • Выход [Ctrl+Q] -- выход из программы (при закрытии через -"крестик" в верхнем правом углу, - программа всего лишь свернётся в убласть -уведомлений)
  • -
-

- Все это также продублировано в контекстном меню приложения. -

-

- Дополнительные элементы управления приложением, расположенный в -главном окне. -

-
    -
  • Задержка -- величина задержки (в секундах) - перед получением нового снимка экрана.
  • -
  • Тип -- выбор типа скриншота (полный экран, -снимок отдельного активного окна или выделенная область экрана).
  • -
-

- Основные параметры: -

-

- Основные параметры разделены на две вкладки: -

-
    -
  • Каталог по умолчанию -- директория для сохранения -файлов, - открываемая в окне сохранения файлов.
  • -
  • Имя файла по умолчанию -- исходное имя файла при -сохранении..
  • -
  • Формат -- формат изображения, - который будет автоматически выбираться при сохранении. - Возможность выбра другого формата при сохранении
  • -
  • Без декораций окна -- получение скриншота активного окна без рамки и строки заголовка (только для Linux-версии).
  • -
  • Копировать имя сохранённого файла в буфер обмена - передача в буфер обмена имени сохраняемого файла. Можно выбрать следующие варианты:
  • -
      -
    • Не копировать - имя сохранённого файла не будет передано в буфер обмена.
    • -
    • Только имя файла - передать в буфер обмена только имя файла.
    • -
    • Весь путь к файлу - передать в буфер обмена полный путь к файлу.
    • -
    -
- -

- Основные параметры: -

- -

- Расширенные параметры: -

-
    -
  • Дата и время в имени файла -- возможность автоматическойй - вставки текущей даты и времени в имя сохраняемого файла -
    -
    Эти выражения могут быть использованы для форматирования вывода даты: -
    - - - - - - - - - - - - - - -
    ВыражениеВывод
    dthe day as number without a leading zero (1 to 31)
    ddдень в виде цифр, с нулем в начале, если требуется (01-31)
    dddназвание для в сокращенном виде (напр. 'Пн' или 'Вс').
    ddddполное название дня (напр. 'Понедельник').
    Mмесяц в виде цифр, без нуля в начале (1-12)
    MMмесяц в виде цифр, с нулем в начале, если требуется (01-12)
    MMMназвание месяца в сокращенном виде (напр. 'Янв').
    MMMMполное название месяца (e.g. 'Январь').
    yyгод в виде двух цифр (00-99)
    yyyyгод в виде четырех цифр (0000-9999)
    - -
    Эти выражения могут быть использованы для форматирования вывода времени: -

    - - - - - - - - - - - - - - - - -
    ВыражениеВывод
    hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)
    hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)
    Hthe hour without a leading zero (0 to 23, even with AM/PM display)
    HHthe hour with a leading zero (00 to 23, even with AM/PM display)
    mthe minute without a leading zero (0 to 59)
    mmthe minute with a leading zero (00 to 59)
    sthe second without a leading zero (0 to 59)
    ssthe second with a leading zero (00 to 59)
    zthe milliseconds without leading zeroes (0 to 999)
    zzzthe milliseconds with leading zeroes (000 to 999)
    AP or Ainterpret as an AM/PM time. AP must be either "AM" or "PM".
    ap or aInterpret as an AM/PM time. ap must be either "am" or "pm".
    -
    -
  • -
  • Автосохранение скриншотов -- автоматическое сохранение - скриншотов при их получении (можно совмещать с предыдущей настройкой)
  • -
  • Сохранять первый скриншот -- возможность автоматического сохранения скриншота, получаемого при запуске приложения
  • - - -
  • Несколько копий программы -- возможность -запуска нескольких экземпляров ScreenGrab одновременно.
  • -
  • Enable external viewer -- включить или выключить просмотр скриншота во внешней программе просмотра графических файлов (двойным кликом по скриншоту в клавном окне).
  • -
-

- Параметры отображения приложения: -

-
    -
  • Сохранять размеры окна при выходе -- сохранение размеров основного окна при выходе, с восстановлением при последующем запуске.
  • -
  • Масштабирование области курсора в режиме выбора -- возможность отображения увеличенной области вокруг курсора мыши при получении скриншота выбранной области экрана.
  • -
-

- Параметры использования области уведомлений (трей): -

-
    -
  • Использовать трей -- возможность использования области уведомлений операционной системы (десктопного окружения) для отображения сообщений и управления приложением.
  • -
  • Всплывающие уведомления -- режим отображения -всплывющих уведомлений. Имеет три вида - отображать всегда, отображать -только при свёрнутом главном окне и не отображаить никогда.
  • -
  • Время отображения уведомлений -- время (в секундах), в - течении которого будут отображяться всплывающие уведомления
  • -
  • Сворачивать в область уедомлений -- сворачивание -прпограммы в область уведомлений (трей) при назатии на кнопку закрытия (ту -что в правом верхнем углу окна).
  • - -
-

- Комбинации клавиш: -

-

- На вкладке "Комбинации клавиш" в окне настроек вы можете установить сочетания клавиш для быстрого доступа к основным функциям приложения. Существует два вида комбинаций клавиш, используемых в screenGrab -- локальные и глобальные. -

-

- Локальные дублируют действия выполняемые при нажатии на кнопки в главном окне приложения. Они работают только когда окно ScreenGrab является активным. -

-

- Глобальные комбинации клавиш позволяют воспользоваться функцией получения нового скриншота при работе с другим приложением в вашей операционной системе. -

-

- Параметры командной строки: -

-
    -
  • --fullscreen -- скриншот всего экрана [по умолчанию].
  • -
  • --active -- скриншот активного окна.
  • -
  • --region -- скриншот выделенной области экрана.
  • -
  • --minimized -- запуск с автоматическим сворачиванием в трей (или на панель задач, если тподдержка трея выключена).
  • -
  • --upload -- автоматическая загрузка скриншота на выбраный в настрйоках хостинг изображений. И отображение прямой ссылки на изображение после завершения загрузки.
  • -
  • --version -- вывод информации о версии ScreenGrab {только linux].
  • -
  • --help -- вывод информации о параметрах командной строки {только linux].
  • -
- - -

Лицензия В начало

-

- Авторские права: -

-

- Артём 'DOOMer' Галичкин doomer3d@gmail.com -

-

-Лицензия: -

-

- Программа ScreenGrab распространяется бесплатно по условиям GNU General Public License version 2 -

-

- Благодарности: -

- -

- Локализации: -

-
    -
  • Márcio Moraes -- Бразильская Португальская локализация
  • -
  • Геннадий Моцьо -- Украинская локализация
  • -
-

- Бета-тестеры -

-
    -
  • Alexantia
  • -
  • iNight
  • -
- -

- А также всем тем, кто использует ScreenGrab :) -

- -

История версий В начало

-

- версия 1.2: -

-
    -
  • Добавлена возможность запоминания типа последнего сделанного скриншота.
  • -
  • Несколько небольших исправлений.
  • -
-

- Версия 1.1.1: -

-
    -
  • Исправлена неправильная строка bb-ода с превью скриншота, загружаемого на 'imgur'.
  • -
  • справлено аварийное завершение приложения при наличии в конфигурационном файле параметра "showTrayIcon=false".
  • -
-

- Версия 1.1: -

-
    -
  • Добавлена возможность автоматической загрузки скриншота на MediaCreush (http://mediacru.sh).
  • -
  • Опция "Всегда сохранять размер окна" заменена на "Автодобавление размера окна при выходе из ScreenGrab".
  • -
  • Перервботан интерфейс главного окна (изменен некоторые кнопки).
  • -
  • Переработан диалог настроек (уменьшено число секций и некоторые настройки были перемещены между секциями).
  • -
-

- Версия 1.0: -

-
    -
  • Исправлены баги с поддержкой двух мониторов в Linux.
  • -
  • Добавлена поддержка XDG_CONFIG_HOME (конфигурационные файлы теперь хранятся в ~/.config/screengrab/), отключается опцией сборки SG_XDG_CONFIG_SUPPORT
  • -
  • Добавлена возможность загрузки скриншотов на несколько хостингов (на данный момент imgur.com and imgshack.us, в дальнейшем список будет расширен)
  • -
  • Добавлена возможность сборки без модуля загрузки скриншотов в интернет (опция сборки SG_EXT_UPLOADS)
  • -
  • Добавлен режим "Ранее выбранная область"
  • -
  • Добавлена возможность редактирования скриншота во внешнем редакторе
  • -
  • Добавлена опция просмотра скриншота во внешней программе просмотра графических файлов (двойным кликом по скриншоту)
  • -
  • Исправлена ошибка сворачивания главного окна при использовани шортката "Exit", если включена опция "Сворачивать в область уведомлений"
  • -
  • Исправлен баг с невлезанием некоторых локализаованных надписей на кнопки в главном окне.
  • -
  • Исправлена регрессия с неполучениемм скриншота при запуске второго экземпляра приложения.
  • -
  • Исправлена ошибка несоздавания несуществоввашего ранее каталога для автосохранения скриншотов (при ручном вводе имени каталога в диалоге натроек)
  • -
  • Добавлена опция сборки SG_GLOBALSHORTCUTS для возможности сборки без поддержки глобальных горячих клавиш
  • -
  • Автодобавление номеров скриншотов при сохранении, если файл с выбранным именем уже существет в данном каталоге.
  • -
  • Возможность изменить комбинацию клавиш для действия "выход"
  • -
  • Возможность запуска с автоматическим сворачиванием в трей (или на панель задач, если тподдержка трея выключена) при помощи параметра командной строки "--minimized"
  • -
  • Добавлена возможность автоматической загрузки скриншота на выбранный в настройках хотсинг изображений (парметр командной строки "--upload")
  • -
-

- Версия 0.9.1: -

-
    -
  • Исправлено не-переключение типа скриншота (в GUI) при снятии скриншота по сигналу от другого экземпляра приложения (запущенного при выключенной опции "Несколько копий приложения").
  • -
  • Исправлено некорректное получение скриншота активного окна в среде GNOME (при выключенной опции "Несколько копий приложения" и запуске второго экземпляра ScreenGrab)..
  • -
-

- Версия 0.9: -

-
    -
  • Добавлены глобальные клавиши быстрого доступа.
  • -
  • Добавлена возможность отключения трея.
  • -
  • Дабвлено активирование узе запущенной копии ScreenGrab при попытке запуска второго экземаляра приложения (при отключенной опции "Несколько копий программы").
  • -
  • Добавлено автосохранение первого скриншота, получаемого при старте приложения (в виде опции)).
  • -
  • Изменен дизайн диалога настроек.
  • -
- -

-

- Версия 0.8.1: -

-
    -
  • [Linux] Исправлен некорректный выболр формата сохраняемого файла в KDE 4.4. и выше
  • -
  • Добавлена немецкая локализация
  • -
-

- Версия 0.8: -

-
    -
  • Добавлены параметры командной строки для установки режима получения скриншотов - (весь экран, активное окно, область экрана).
  • -
  • Добавлена поддержка формата BMP.
  • -
  • Добавлена Бразильская Португальская локализация.
  • -
  • Окно программы теперь автоматически скрывается в процессе получения скриншота.
  • -
  • {linux] Исправлено не совсем корректно получение скриншотов активного окна.
  • -
  • [linux] Добавлен параметр "без декораций окна".
  • -
  • Добавлены "горячие клавиши" для кнопок главного окна.
  • -
- -

- Версия 0.6.2 [Linux only]: -

-
    -
  • Исправлена некорректная загрузка локализации для меню области уведомлений.
  • -
-

- Version 0.6.1 [Linux only]: -

-
    -
  • Исправлено некорректное определение системной локали в некоторых Linux-дистрибутивах..
  • -
- -

- Версия 0.6: -

-
    -
  • Параметр "скрывать главное окно" по умолчанию теперь включен.
  • -
  • Добавлена возможность редактировать шаблон даты И времени, -вставляемых в имя сохраняемого файла.
  • -
  • Добавлено мастабирование экранной области вокруг курсора -в режиме "область экрана".
  • -
  • Немного улучшен внешний вид диалога настроек..
  • -
  • Добавлена справочная информация в html-формате (на английском и русском языках).
  • -
- -

- Версия 0.5: -

-
    -
  • Добавлена возможность автосохранения скриншотов.
  • -
  • Добавлена возможность вставки текущей даты и времени в имя сохраняемог файла.
  • -
  • Добавлена возможность изменения времени отображения всплывающих уведомлений (1 - 10 секунд).
  • -
  • Добавлена возможность просмотра справочной информации по использованию программы.
  • -
  • Добавлены всплывающие подсказки (tool tips) ко всем элементам пользовательского интерфейса .
  • -
  • Несколько мелких исправлений в коде и конфигурационном файле.
  • - -
- - - -

- Версия 0.4: -

-
    -
  • Добавлена вохзможность захвата выделенной области экрана.
  • -
  • Добавлена возможность копирования скриншотов в буфер обмена.
  • -
  • Возможность сохранения текущих размеров окна приложения -при выходе (по умолчанию выключено).
  • -
  • Уменьшен объём оперативной памяти, занимаемой при запуске.
  • -
  • [Win32] Исправлен баг с размещением конфигурационного файла.
  • -
  • Немного оптимизирован код работы с конфигурационными параметрами.
  • -
  • Оптимизирован процесс работы с главным окном при помощи клавиатуры.
  • -
  • Новая иконка приложения.
  • -
  • Несколько мелких исправлений.
  • -
- -

- Версия 0.3.1: -

-
    -
  • Устранён баг с неотображением иконки приложения в -заголовке главного окна
  • -
- -

- Версия 0.3: -

-
    -
  • Полностью переработан интерфейс главного кона, -программмный код которого отделен от основного класса приложения.
  • -
  • Несколько других изменений в интерфейсе -пользователя.
  • -
  • Добавлена возможность получения скриншота -отдельного активного окна.
  • -
  • Добавлена опция включения возможность запуска -нескольких копий ScreenGrab.
  • -
  • Добавлена возможность выбора между сворачиванием в -область уведомлений и закрытие программы (при нажатии кнопки закрытия -окна).
  • -
- -

- Версия 0.2: -

-
    -
  • Сохранение в формат JPEG.
  • -
  • Добавлен диалог настроек.
  • -
  • Добавлены параметры для каталога сохраняемых файлов, -дефолтного - имени файла и предпочитаемого формата.
  • -
  • Сохранение настроек в INI-файл
  • -
  • Добавлена поддержка интернационализации и -ru-lang-package.
  • -
  • Немного изменений и фиксов в стурктуре кода.
  • -
  • Инстялятор для Windows-версии + пакеты для Ubuntu -9.04.
  • -
-

x - Версия 0.1: -

-
    -
  • Первая публичная версия.
  • -
  • Добавлена иконка в убластиуведомлений и контекстное -меню.
  • -
  • Возможность скрытия окна программы в область -уведомлений.
  • -
  • Запуск только одного экземпляра приложения
  • -
-

- Версия 0.0.3: -

-
    -
  • Первая работоспособная версия с минимальной -функциональностью.
  • -
- -
- - -
- - - diff --git a/img/logo.png b/img/logo.png deleted file mode 100644 index e6b70fdf6c6e92010ac8091b2a93e7424d9362df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6817 zcmV;S8eZjzP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXc4 z6fOjb0U>Gt02(1lL_t(|+U=ZqkY!hW-#@?KIrnY7OmEZb8I5M2(MY3ZW)PM@vQ&g6 z2D8WnLm=RQ<8p|T*cCeg+r$K@V5qVv$7N$G1WW~7Ax;WmL{bU6jm%~Q(rA}Pnw9CE zp6UJV_ug|({y6u&?ir0hlWJp%nlp9#^<7@ycfR-g`~H^mdjprp<#Bmj9+$`Eae4fd z4*6-F*xP^m_iAaHPUKlOmgV_W+U@GGlgGaM{V#v<+)pJyZ+QE!$)26NlHf@KzSK?A za;MWSr)hSBRdaO^4yv#Xkv-nINfn`-SVlK&;L52S98g<(3 z4l64woOtSKo_P2X@;paG$g+&3r6p!&rsd3;S*E9_*}8ojH(YnUq-px&1L&^*{9gud zzxkG_Ql+w~WXvQ+CtRLiIls6#xwtUDbAEn)V>eBArD=D_h|;JpQ!bS#mr9fpOD$2x zhbF@4-rbVegj%&qr_-TPuhVQcIX5@Q)92=Bwwh#FMxN)i+ih7`SYU2$j^*WL>Wv1X zN~KmMsL)zmp|jY)c0B`2z4Buh4F_$n%WBfq^ixVT0`3xq}TGhMAhY0_Pm{ zdY#3^Mds({nV+Ah)oPKZskGZ|(lo_6N1CQ|Ivv`b4()cEPPaq1+ojoPGJkH4yxnDd zY?P}uZf4iOBqJj`>6}|+;fYh!r{@^WpfohVhLKUmueyS%ottqhbygY+EICJ>yY*wx zCqMJquTKt^$Dcg%B*s|w?%u_gE4Q$H>sEGc+r{MMBuk5n)a!K?=I1##H^uyfaLZoBO^o_FvdfmOs+&ICe?N_n&Rl69O9H(5V;Bto#0jq-1K&4#c zTc7?*79W_$xg77^`Z35kxAMf1Bjf+}*ZvjXzyE&HG^M_<$OGr*xbHiEi*v3&X%Rt0 z$n%`JxjBv>Kh6_RJi!l6pC-@qr~%jCzzd%LGbA3unMG=I4F--Zu&o`~rJG5Pr7U;v z=kVcac3!`aiA_`NKXem^ZoL(oBqT|KDOWJoBBF={tSE?*wz_296eEhFkSHo;ykw;H zF1ZWjc}@tpbpuFL>xj^7wV0iqC4|82>@0J0=Qw-z9H(byu+~zpR4Chos!hOqlHAj6 zw-{V$v%fmdaCMlZZD`+jgnJL4V#CBJlbbei!~R3O@aEeY7#?O|aDYm!f~tWKAOx%k zq5`6*3f>3kruZ~NRZ%qrQPe0nhpItDu!%+U1k{n6l)UB0gTpybAmr-_P)k&qoSY=f zGQRZXFLC^lCmGo=%*fynTTGRZWwg)Dlcilkk}y~sVsLznJ=^y)xoMK&(NQYZN@Q4w z=A{ARybVSbqe`B3Y2`Uu>>E*nRTM!~@uG+-st(o28q^U~@x~x(KpjchqOCHh$Cn^a zQ(T(U@LinC3CQ{Zq#~&?hDxPEmSt2bRfZcmH{NhHo3>s_bzlHR@ZO^$C?F_e3`Pw` zg>I`u-pNoER1H=HH71&ZIw&Tusu=MY6B$Dy1ZU8~ghT|RLQqQ(B@_%&qo_izIn`={ zX;ul66O1PqkLzT(6c&93xxDv02NMvakGFoWgDqVHx*DrCJv*D zXcSXb?VC@0uVB<8LCKw9QDF6aP>I*8f(_s-Mgl=0VUQ3UBp}}6a{&V0IK0m(xf(t= zT%OZS)Aa;M+g1&Ep2sj=g{+g3XI%`2Obx+=xQQhw1Pzf*;t_Fp6`V#*ay_9Hht;Sr zK^0>nK%$BdQJ9?yKE!K86|d2gMUNFg!Q-ivEHo4uaEJgNLJENhssJ{#%s>c_C96eO@I9lim8oiJv zpiappg5=dBg%>j_U=*8Dz9$Y{Jsg zQgr1;>E=SWks?7b8b5f{R0D-ThgADssTa^0lOt=qmG)SnE=I*Rx^(s9DH;Ts2~9d4oyoCK&uAp9jSLX=jgQC>zd6sRShdED>0`6I+-JF zwowth3RX>j65c3Y488!t6>*9c2Sp%fR0$?B47CLHU<~2~7jlFmNQ{DpCo<58B3|*% zVvJzaVcaN!LmUJTl7L7cI7PaK5CS%}Bp6bc;k~EbSx113F)d8gpghmi|zPNP9$ zEM9HFnh2H`8yR9O!J6o;`d-KojN&DNiW-7=j2f^WO#+T+UIfJu85M{w->F5MVy#0G z#ae@O10oKwpaG<#U_6os)Pc_g?UX2sA+0rhVv90HEJg*NlQ-H>DwDf5 zEA|O1Z)I?TD&@}F$B#aGdL&Y2qFeWzzKK-F}M&J z<9!r($qlAjL0cY4K!acuv@K}afD;r?)(zOD5|wJD4^ZaTF`EZT)mWPCHqJRt|KK#5 z2wA&Jx7k60#}J>k6yOL35NrTn@3K@s%L?aEO(>U2)P|}Ij*L*QmdLVba)?87Au&qO z95I4%N}k2c+=b}o%NUF|F?mf&NY@wPR@5=)Jk~0t1`)7bkQ9c?8%WcXJkKHcbxbv^ z<^*UqSGfD`yJNKo*C?F!;!sF0~(gGFo+5BUm``FQ65DgiZuv_hd*;DR6ys`F!XyRjhW zonOCl2SHMRZl^=JT&CUWka>p|Jn2CajY0?oi&nvj|11_+1D^uoJl*9c-Fl1q>9f=Z zYK(0eM8*>as}`dM4G=N~XQ|W_Z924U(ZmB)Gz%E-5x`r6@d3Z$DQyr!DkK(MQ%D*$ z(r&ki<$_<=NIH0r^BxhQTq@zxyw4Zg2SEu1V5T?{xnl|trGIo`vc`iWfyR|1Olld% zhw&n~;OVqmw3;nkV;%{CaV#rFaV3k2;;RNl@y4P{i%97dqS0%LPcQ)-7FH}3EysX# zFoA0(;w%q_kZO7M}s;=*&~)4O!PcOmeiBu z0t~Qg%#HJ45zg+LWO@G;9J=ELTst@bKsU=svy3duNS!0gb8_eDW+{zUn|i%Ysa|Jc zd4*Q9L90;*pT}~DO(03Y7)VSJMwqy-TD-3PT}jgv>MP^S&5vUYlq)bYvW*?Pp2tT% z@g5$0;3a(Ij~==dH=nr>NDB{Ut;La@H+4`dTc^lR&aP1*?X!uI0ZzW+8lHE{AzpmT z%{1F>vOFivbF$o#x|}S_ierw9W{t(5yFTHybQA8syy! zmu1n6yu-6)r76vCOL5EL4NCZck-d%KlWS$#k`lv zhY;VWN+TV4oF{YnTn10+W{ipZ+{o~Xt!fW3D0Y3HCw{Uy;@2@xFVn#g? z0{?8=7C!d5&r%s2fVnxSRQM+^c@fXM>Pp%dDOu|evDvO_JgutH#Ed}*1t8J~O9&{! zOf6ssYW(g??%;~VBJ$(ut_c^>xZa(8v09h|PJ~>9R}EJA#b5d5SYKM0=fIBbWGJZ* zmr@UsJa|D>u*P7m#gBZRQ-0EG)0ntI-?-fD5@t6%ku zbAtne{KY-@#Hd`(7wk9w;_La;?|-0J4idaT_ad3dvujW=8H88|F5)27wPwYd6g7g> z8mh2i$BuZ-vw(9UaK6}=wQN|kzt&trEIaqNP#nDP(Z_iBzV9+IF?Qa)ym#c!(j_)E zJOHIq42_K7MCf>b36ZqWRaHC^*Ts!Nty#mMm}J;~CRRM(@S~r8JIk40S|TfA6X!jm z%J}FABjs`*hzkMn7ci%1OC4Zx;{+3vljq;ldr}_@X>tKfD!mUC!SNz=@=E~7Skopz zx7(#sE>kL%u!+SKe^>ivwp!@;p>8+?+F8blGqX%hj59Sh8kd5Kpf2~Gdb`8nGbfoG zA7{hRAR&Yz7^L5I5H17=7#$m@QmrvMHg+LhAwVwYvq&y9RS|MkGM_znfd1v{?#%!6 zGxyMJwu3Q7dKx5axL{WE^Mcdv*;JJIMw8jaMfPmDl0=mUA9;k&-*XRh3k!^F80H`T z{44pHg9owI3deqMnnso~IyTk^!(YVQdSlDZ9sKzhzQWnF=l5sUYE>3;$6(n!qajn* zz~#l@5Zoo1SP^`-IvoL`NGBE{@23m0rj95VJeRc-$wJ`i>1hsKy_Zg&^VYY%mH+ms zPr<+dRH^{H=RNP`HNWr+{OKn@$<$R>@zj$~UM zj3|i_+(mRv*8Jj4T)EBNB?F{%vsmyhl}aR~1l642>DPS}M~sY2J6Q%3&O9MznJh3KTFeo9I4$TB6uinn~ zL)WtBrt8_ZZ#SDdbrwGQQGy7a;sb;b=w=z!YL&cP=H2gmA2YMF@RFB7r&EBl3J`h5 z(RQ2PdgpKRj`x26=R7O*CZ$>}8g^I(1z81wBAw9Cca43|D8)4*{kIf>?wV#XjV9L4 zE)gJ98mJvM#*icliA~53Y~>@L_!EX~nRcT|yV<5TTtknaV_VgIZCH2qjglDkW7aMk!lMNrbWytVV6>p_dzj zhf5b}V>In~kt9hdl}nIzm^(E?xm>~)tufitM|kK>pJHI!PP`}|e*9>xM5;1>{3NsE z6D%w&LZt#rixCi)Gg7NDGPD8X9nHl>7MIQag0~XYeZi01k&u%8Puid@JNz`Bq`zZIs{MFP3bn< zxGZPWn}3!1-+Y7R;bDdf`iG(pR303_IFD|e1eYO=I@UXOZ{5m{EnAoz8NmuH&ChfE z*inu=@g(J1i8Lvbx7$=oNi3$UVUI1?vkFdR&?-1u?8h~;RkrnB3k^~QAu=dH%ehPR zVk)hqTqYD=tXwY9$WodM%Q3*qV$;&G%(MAjALRM>e~ZVprxnr0OQYi?3-h!mH?imW zH*@0Q!|d3+nFBj^aP2kMuzB-lM1?amGt_D|y4?=Btx|8bn0f3`Zu{BWIMbi_>Lg78 zgn5Sc6yRv@nlQIh;tlVlV^nxNCpQnr;if`hPmU{f0Ms>^Xu3$ImwRg+t_!_wd~ou7Zv5HBTv$9 zwK;k07$w zVvYDe!p-YaQYsM$F%Gf`b7jXz@B3>OmzG&xsbfXhwQC3ackkiI?96$=qDU-`G=@hh zFPtO4{s8az-2dfoKJ)>GhK8A#m|*vwy%=LyT3(`DF7vwIdoRmZZD;z?M|kBOw=?Tp z6jc#45StgotT8$ILY)*Eq|Y#`Xrd}T^IO9pF$6I@I=8SIg>WD~AQSVj>3Z|hzsw@gFvgJQjwDGK8yn-6Tb@UjcBxj&{aSpvoN)5wN$hg-82|-| zeLE*MZ{ztVk81$93fh0+2Gy+RY%bY%a zn(5QiwAw9hy6L9nvC#<&3|y?Tx0L0uV-K&}+~6~x|16!U&7?bbF;_0*(=H1qj&uCm z-{e8)IwDD8y>>MJW$$3~dC=4H5l^jf~RxWu<-&r;DIbA+V$ zIzsG+WR(?#U~7*##R_kaIX!La3${X1BaR_0JNx;#1gOjQZ zmItV9+JFF$wYvC5o5UC_F;)>(k{$zCH7Tn?Vhnfx-|oDE%GlFn3}wTx4rf? zbX_Qz6g!Buh=GnTuR!i`0w?OtfcHYP{zsPt(3@U#+u=`t{hJ53U$gJJZkB!H(;xfz zu^$R(tv3ABqmSWV>-*I@2?1+XwIL}Q!>vH(JWZcrP3#isfnzlG10-uT$E;z7D&PL@ zclqSqpT!tmn{xHbxt&fIM0m@cuf`S=RRJ3!VDJ9eCtzq0D%C*lgm&xK`Hg>m=90g0 z_{Q5`_yF+0bE>M3j@`=q9DntdukhlRz6|diYIOApo+q@?6MwwpirP1}{(Vs>Dvamd!`j&XGBNSr`QUrs_@meS z|E|V6-+eQx@51}t{G|K`1|lBO?-1N?^1=5lad})Gm&fICd0ZYp)#LvGmR`QM_#{y= P00000NkvXXu0mjfo-p!u diff --git a/img/screengrab.png b/img/screengrab.png deleted file mode 100644 index 12d7f37712b6061294fb0888c2773d4727103079..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1947 zcmV;M2W0q(P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXc4 z6fPcgW7rS?00$dML_t(o!|j(_h+Wkg$A9a(_t|I8naND%KFN#*ry?Q|wOVhL5(}*& z6beNs($+#j#GozMhh8Xsv4RmqAFB4DH;YhP^Uz|I($?A(kx|ZX^Eo?2iUj!A1Eo0ohk480G@sBci&iBTirA~I5cgnos~jtcFvC# zdB*agg9PuG9IP`|O*pi)6kdJ%pTb(piN(XD%{6)_TIB7NdQxL*;}}z8Q*7NZLg!G6 zKa8vu=LGos8+*Qe?PZtN7Y-g||A7NEnoaUvkD`~-IC2a!&p@R@tx{!rWJ1i1jFK*Q zm>-{KmVsspEu*)@X<{K^TNm7;Ug7!W+v#br4ieo(GCTkruu3 zoB$xwEX&9`9lEVG3Kii@iBkoo%5mC|X@gaU$XJ3=s7T?^NNw;&6O6-Hf$%vffm0G& zR_Jy+=k5W7$Xl%z!AaVU6e9{sol$5_tPO=RMA{Iv25nKXCO4XZMQeqR3>c5GH6$4* zP_B-UkoJ1#1<-3YniM@p`}hj6GB~MlQH+bCzPQqOWANId6NRp5gfn=l5s_seR!C8R z2U(HOQA9}E?M{A903F$E|H1-A)?;8+A3ud!-l zhKD1P3t|$H5SIpBSVBFaa3v*z5|4Ery*fbQ3eO#1Rs7^hcUA!J=?WoGQlcFQp)oa=Wv!Re&0C~dgOa__){q&5wJ;eI=01HrgM&E_ zKC&0B@8rI_c6|WAL{XmSIYLQ{siL(-uVow?ue1M}P0Y?zaf^#M?l_0Mj1;P+E18YJ%4qIt4N~I&s9lD<`<` z&M$G%|YWPLQs0o^M8AdAN}kp$|&NR(c!6GXZi(k9Cxj?2xHJepn!d|Ret{H zBW#=7^r3deqsNcqy(dW$>h(IeU3CRYDSq?X>s))`1?)Nv^1ZOOl4)&FrtjktiJqC{ z>P=JcOP&=4-7KSY{eB972TC9Z-aWp|jaOgEwi`ad_IvK84fKHPF5imOnobC3ZbB2; zZd|DZZH-WXM!fd`^zxjnC^)jT#Paeo^Os&qiJ&%E$E`yIz*nn$kNS~vBlFS7Zu`KLJ6cHu-tC*$c`QC`1MXgk}y}V@zckD$WZW9hlY4B zZ8hQZ_kMkSW%sKh0WSnWO44w4Crp!MfMqMWcjpsKPfzi^U;Tm>fy0ee4jo+JpyvRex@!AP5Lj(su65078f~ieqdXqfe$B z+rLEnl~;K3okh}>6CB<97NW?QEK+7hM>zUUlXu_P&D)J8N@`-Qh@>P^idd@tT%DRr zQs)U$(kb29oKR#@rNY2Km1Fx3u-IB*dG;cvixL^dOwWIeElGvjKl>T3zu`t+c>XzB za~ENp!|J|Bq!h7Ir;U1b0f!DBVWo5g?;kiLz#TVTcNo|P@anFO<#$F}eS{Lv-3tP!zWkyy=%}eIbX?cOFiS9-IeP{`jos+R4R`%x8+;h he^36=o$&uA{sm(o>AXNIK%M{q002ovPDHLkV1jZQptt}4 diff --git a/img/trayicon.png b/img/trayicon.png deleted file mode 100644 index cac2e3f96e3052ed38dbcda082a6860b4170ca5c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 764 zcmVPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXc4 z6fQbQU_8M900MkTL_t(I%f*vBOjBVPhM&`(|NQ6lw6vgrMNkk0D!R#FqE2d}j>OU1 zppiv`gW}*Vad2?K(aFTb1SS*XB|3Q@G%j8P7=bF-0=DJUwtsuhse?gGU^MX?zkGS# zeD9kV{`Y9hEr;$tXr7+>+T6Lmy`@sAv?x_<%4Ks+lgVUU1cH%s0|Q$YZgqg0L&ML# zvTDs{vrSGW!~4gNk($n{ccTQoDj{K3W09D)Yi&1=9^K3REv5rFd1v$OYu6*)8#-Cl z5GP){5>uMkDwCDaPoXr0ibrDh$j8BoW%*?Y>c6wl zN@hSJiay&eALGiYE#0CacfyvYyds^b`+_8gcEx?y~hp1r?H4MtWN741k zdDTTg$hOtwhtJhP$I-^OZ>1v=W&4?PRDF-GmNiJjpx(BrGbNHLx@j<7Qr;hcF7y#4 zz2aQv+rv-aQ~ilxaHD8zr&bCgLJ$*z;o)Is(kad!ImG=Z&u|>);__YS>t9Fa#~!M_ uhVO&tgYSVMzz0+rBK8EgZru4NZTtmKZvSlml*RA>0000 - - img/trayicon.png - img/logo.png - - diff --git a/src/common/qkeysequencewidget/CMakeLists.txt b/src/common/qkeysequencewidget/CMakeLists.txt deleted file mode 100644 index ced0544..0000000 --- a/src/common/qkeysequencewidget/CMakeLists.txt +++ /dev/null @@ -1,29 +0,0 @@ -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src) -include_directories(${Qt5Widgets_INCLUDE_DIRS}) - -add_definitions(${Qt5Widgets_DEFINITIONS}) - -OPTION (QKSW_SHARED "Use QKeysequenseWidget as shared library" OFF) - -set (QKSW_SRC - src/qkeysequencewidget.cpp) - -set (QKSW_HDR - src/qkeysequencewidget.h - src/qkeysequencewidget_p.h) - -set (QKSW_QRC - qkeysequencewidget.qrc) - -qt5_add_resources(QKSW_QRC ${QKSW_QRC}) - -if(QKSW_SHARED) - add_definitions(-DIS_SHARED="true") - add_library(qkeysequencewidget SHARED ${QKSW_SRC} ${QKSW_QRC}) - set_property(TARGET qkeysequencewidget PROPERTY SOVERSION 1.0.0) - INSTALL (TARGETS qkeysequencewidget DESTINATION ${SG_LIBDIR}) -else(QKSW_SHARED) - add_library(qkeysequencewidget STATIC ${QKSW_SRC} ${QKSW_QRC}) -endif(QKSW_SHARED) - -target_link_libraries(qkeysequencewidget Qt5::Widgets) diff --git a/src/common/qkeysequencewidget/img/delete_32.png b/src/common/qkeysequencewidget/img/delete_32.png deleted file mode 100644 index 4f1cde2ff830df6e9fc69e253394cce4dc2fedee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4479 zcmV-_5rFQAP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z000K6Nklo46FujgqCc)b%BkyF3<=q$#RLToM+K_kV-ZA9mDhqm z-&z0u>!h211uu!&_ev zzIb8u7z2QFL?Zf5@1=93n;+u#_t4=(rkj7E_tH6nfW$c>LohS+F(#Z!6a<#^UOq>< z`Dff{4;}52&hVBvC(+|c9{{LIgpl;kzCwESZ@AGOm=zlh_eif^q<8jZL`YPr=mgr! zM;fXUNr}I95jT1W2BzSKd!*Mc(mVSKB9=In=&&kC*3Z01dgC%~w2P@>3g(S)!#&a) zm+75(5g;)mQUg_CG?@MbNO~oHuvg$sEBv6ue+z@;Nd^qkTi0q}ss+?jJlrL{b)B`- zr%@vjhy9XH(bSo2ulN+)hzeB`MxaKPCbO+dC8H8Wu0LTOa&qH+%Gz-wwI- zYNyhHD{;F-vCy<=k_E|$XPTJI)WSF>hG zXb7sp{#5$&O^xsDq*W|cF;!IY?`51R@@AH>#kiI+-!3-ap9X!?B1DCTfU2Q7(*Y0i zQahRi{l%8WTie-eF*QR?QE!m?F;h@ynA0k0Rk^dBv)HnDGzt1<-bn?g!q?s%6nzt~ zgeo&5)K4CagZ|RIzIJCPN3Ec#%xo=Oz??V8%o|o1dwa*xp4WIV4*F_BsTo>33%>r| z09P8IR?wq93}w5y)ymCe=J6~X=DjzoLSlx_<_R~qS_i1slKLvK_{Q(|N(0Pq>OC~L zKM13v9haP3sR>HCQC(zIeZMl~f77qDvkO8<8`?l?T`78DM6tA9anr{UGWrx@2v|RTR6L zw=<=zhs7tMH>$`JWogO z0!Eg)*Y_!(RP$PM`AI3`y+7~;N0T_;hXmMVXUUzC{3XWNP@w8&b zWLUX#%{i1aW6_9sEKFsDhcJHZT@(OgSB zGh;f=Q8kVpF|OWU;_A*4M;8s3D^qWTsU6UWqObJ26OPPjvOfu)ybsK`ELmS37YusU zE6S}9do^P^$#J=ItPTIzUSd26;_)hn7B=rKF-?Q`%j?tkT21RuGKn|uwK>)X=Zd*zwc}WgEOSgJ zIm^xb@cTfTN&N9vo0HuDGe~Dfz+^u|opQ1paOG~BGz;Qp!}>SxwNf>q*|2_^NqpsQ zi8rQ`tjGgX@?6QLj^iESF(VQ?S&5Fr=U75?|ixaAG+CgXtt^@+c>pI*;#Q%8$aZ`bK#Fo2$if{K1(OKu{%; zfaLk!fUO6vD5KSokM49(B@P1m2kzmugSWig1_8;b&&69GgfDa+9{etN|I7+v<>iA& z0!yCn4FR}xyMr0ANU^zzd2Il(ngQZ(3`&Gp^40aj@c`fb;{)n9jTX=Z=79yE@%E|C zx1a5V=K*dE+)saVd-SJ^+d2jukk^_3p*uGy zq_&O|zj@hOenA7+XiMX>q2;xl(ON6VLyrv)#N*&&wM|q1u7H!L{dxZ10RZSe-|4B{ RFAD$w002ovPDHLkV1nU5e*FLd diff --git a/src/common/qkeysequencewidget/qkeysequencewidget.pri b/src/common/qkeysequencewidget/qkeysequencewidget.pri deleted file mode 100644 index da8adbc..0000000 --- a/src/common/qkeysequencewidget/qkeysequencewidget.pri +++ /dev/null @@ -1,7 +0,0 @@ -INCLUDEPATH += $$PWD/src -DEPENDPATH += $$PWD/src - -SOURCES += $$PWD/src/qkeysequencewidget.cpp -HEADERS += $$PWD/src/qkeysequencewidget.h \ - $$PWD/src/qkeysequencewidget_p.h -RESOURCES += $$PWD/qkeysequencewidget.qrc \ No newline at end of file diff --git a/src/common/qkeysequencewidget/qkeysequencewidget.qrc b/src/common/qkeysequencewidget/qkeysequencewidget.qrc deleted file mode 100644 index 497bd2f..0000000 --- a/src/common/qkeysequencewidget/qkeysequencewidget.qrc +++ /dev/null @@ -1,5 +0,0 @@ - - - img/delete_32.png - - diff --git a/src/common/qkeysequencewidget/src/qkeysequencewidget.cpp b/src/common/qkeysequencewidget/src/qkeysequencewidget.cpp deleted file mode 100644 index a043490..0000000 --- a/src/common/qkeysequencewidget/src/qkeysequencewidget.cpp +++ /dev/null @@ -1,578 +0,0 @@ -/****************************************************************************** -Copyright (c) 2010, Artem Galichkin -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*******************************************************************************/ - -#include -#include -#include - -#include "qkeysequencewidget_p.h" -#include "qkeysequencewidget.h" - -/*! - Creates a QKeySequenceWidget object wuth \a parent and empty \a keySequence -*/ -QKeySequenceWidget::QKeySequenceWidget(QWidget *parent) : - QWidget(parent), d_ptr(new QKeySequenceWidgetPrivate()) -{ - Q_D(QKeySequenceWidget); - d->q_ptr = this; - d->init(QKeySequence(), QString()); - - _connectingSlots(); -} - -/*! - Creates a QKeySequenceWidget object wuth \a parent and keysequence \a keySequence - and string for \a noneString -*/ -QKeySequenceWidget::QKeySequenceWidget(QKeySequence const &seq, const QString &noneString, QWidget *parent) : - QWidget(parent), d_ptr(new QKeySequenceWidgetPrivate()) -{ - Q_D(QKeySequenceWidget); - d->q_ptr = this; - d->init(seq, noneString); - _connectingSlots(); -} - -/*! - Creates a QKeySequenceWidget object wuth \a parent and keysequence \a keySequence -*/ -QKeySequenceWidget::QKeySequenceWidget(const QKeySequence &seq, QWidget *parent) : - QWidget(parent), d_ptr(new QKeySequenceWidgetPrivate()) -{ - Q_D(QKeySequenceWidget); - d->q_ptr = this; - d->init(seq, QString()); - _connectingSlots(); -} - -/*! - Creates a QKeySequenceWidget object wuth \a parent and string for \a noneString -*/ -QKeySequenceWidget::QKeySequenceWidget(const QString &noneString, QWidget *parent) : - QWidget(parent), d_ptr(new QKeySequenceWidgetPrivate()) -{ - Q_D(QKeySequenceWidget); - d->q_ptr = this; - d->init(QKeySequence(), noneString); - - _connectingSlots(); -} - -/*! - Destroy a QKeySequenceWidget object -*/ -QKeySequenceWidget::~QKeySequenceWidget() -{ - delete d_ptr; -} - -QSize QKeySequenceWidget::sizeHint() const -{ - return d_ptr->shortcutButton->sizeHint(); -} - -/*! - Setting tooltip text to sequence button - \param tip Text string -*/ -void QKeySequenceWidget::setToolTip(const QString &tip) -{ - d_ptr->setToolTip(tip); -} - -/*! - Setting mode of Clear Buttorn display. - \param show Position of clear button \a ClearButtornShow - \sa clearButtonShow -*/ -void QKeySequenceWidget::setClearButtonShow(QKeySequenceWidget::ClearButtonShow show) -{ - d_ptr->showClearButton = show; - d_ptr->updateView(); -} - -/*! - Return mode of clear button dosplay. - \param show Display mode of clear button (NoShow, ShowLeft or ShorRight) - \sa setClearButtonShow -*/ -QKeySequenceWidget::ClearButtonShow QKeySequenceWidget::clearButtonShow() const -{ - return static_cast(d_ptr->showClearButton); -} - - -/*! - Set the key sequence. - \param key Key sequence - \sa clearKeySequence - */ -void QKeySequenceWidget::setKeySequence(const QKeySequence& key) -{ - if (d_ptr->isRecording == false) - { - d_ptr->oldSequence = d_ptr->currentSequence; - } - - d_ptr->currentSequence = key; - d_ptr->doneRecording(); -} - -/*! - Get current key sequence. - \return Current key sequence - \sa setKeySequence - \sa clearKeySequence - */ -QKeySequence QKeySequenceWidget::keySequence() const -{ - return d_ptr->currentSequence; -} - -/*! - Clear key sequence. - \sa setKeySequence - */ -void QKeySequenceWidget::clearKeySequence() -{ - d_ptr->clearSequence(); -} - -/*! - * Start process capturing key sequence. - * This slot is designed for software process capturing key sequence. - */ -void QKeySequenceWidget::captureKeySequence() -{ - d_ptr->startRecording(); -} - -/*! - Set string for display when key sequence is undefined. - \param text Text string - \sa noneText - */ -void QKeySequenceWidget::setNoneText(const QString &text) -{ - d_ptr->noneSequenceText = text; - d_ptr->updateDisplayShortcut(); -} - -/*! - Get string for display when key sequence is undefined. - \return Text string - \sa setNoneText - */ -QString QKeySequenceWidget::noneText() const -{ - return d_ptr->noneSequenceText; -} - -/*! - Set custom icon for clear buttom. - \param icon QIcon object - \sa clearButtonIcon - */ -void QKeySequenceWidget::setClearButtonIcon(const QIcon &icon) -{ - d_ptr->clearButton->setIcon(icon); -} - -/*! - Get clear buttom icon. - \return QIcon object - \sa setClearButtonIcon - */ -QIcon QKeySequenceWidget::clearButtonIcon() const -{ - return d_ptr->clearButton->icon(); -} - -// connection internal signals & slots -void QKeySequenceWidget::_connectingSlots() -{ - // connect signals to slots - connect(d_ptr->clearButton, SIGNAL(clicked()), this, -SLOT(clearKeySequence())); - connect(&d_ptr->modifierlessTimeout, SIGNAL(timeout()), this, SLOT(doneRecording())); - connect(d_func()->shortcutButton, SIGNAL(clicked()), this, SLOT(captureKeySequence())); - -} - -// Private class implementation - -QKeySequenceWidgetPrivate::QKeySequenceWidgetPrivate() - : layout(nullptr), clearButton(nullptr), shortcutButton(nullptr) -{ - Q_Q(QKeySequenceWidget); - Q_UNUSED(q); -} - -QKeySequenceWidgetPrivate::~QKeySequenceWidgetPrivate() -{ - -} - -void QKeySequenceWidgetPrivate::init(const QKeySequence &keySeq, const QString &noneStr) -{ - Q_Q(QKeySequenceWidget); - Q_UNUSED(q); - layout = new QHBoxLayout(q_func()); - layout->setMargin(0); - layout->setSpacing(1); - - clearButton = new QToolButton(q_func()); - clearButton->setText("x"); - - layout->addWidget(clearButton); - - shortcutButton = new QShortcutButton(this, q_func()); - - if (noneStr.isNull() == true) - { - noneSequenceText = "..."; - } - else - { - noneSequenceText = noneStr; - } - - q_ptr->clearKeySequence(); - currentSequence = keySeq; - oldSequence = currentSequence; - - shortcutButton->setFocusPolicy(Qt::StrongFocus); - - layout->addWidget(shortcutButton); - - showClearButton = QKeySequenceWidget::ShowRight; - - clearButton->setIcon(QIcon(":/img/delete_32.png")); - - // unfocused clear button afyer created (small hack) - clearButton->setFocusPolicy(Qt::NoFocus); - - // update ui - updateDisplayShortcut(); - updateView(); -} - -// set tooltip only for seqyence button -void QKeySequenceWidgetPrivate::setToolTip(const QString &tip) -{ - shortcutButton->setToolTip(tip); - clearButton->setToolTip(""); -} - -// update the location of widgets -void QKeySequenceWidgetPrivate::updateView() -{ - switch(showClearButton) - { - case QKeySequenceWidget::ShowLeft: - clearButton->setVisible(true); - layout->setDirection(QBoxLayout::LeftToRight); - break; - case QKeySequenceWidget::ShowRight: - clearButton->setVisible(true); - layout->setDirection(QBoxLayout::RightToLeft); - break; - case QKeySequenceWidget::NoShow: - clearButton->setVisible(false); - break; - default: - layout->setDirection(QBoxLayout::LeftToRight); - } -} - -void QKeySequenceWidgetPrivate::startRecording() -{ - numKey = 0; - modifierKeys = 0; - oldSequence = currentSequence; - currentSequence = QKeySequence(); - isRecording = true; - shortcutButton->setDown(true); - - shortcutButton->grabKeyboard(); - - if (!QWidget::keyboardGrabber()) - { - qWarning() << "Failed to grab the keyboard! Most likely qt's nograb option is active"; - } - - // update Shortcut display - updateDisplayShortcut(); -} - -void QKeySequenceWidgetPrivate::doneRecording() -{ - modifierlessTimeout.stop(); - - if (isRecording == true) - { - emit q_ptr->keySequenceAccepted(currentSequence); - } - else - { - if (oldSequence.isEmpty() != true) - { - emit q_ptr->keySequenceChanged(currentSequence); - } - } - - isRecording = false; - shortcutButton->releaseKeyboard(); - shortcutButton->setDown(false); - - // if sequence is not changed - if (currentSequence == oldSequence) - { - // update Shortcut display - updateDisplayShortcut(); - - return; - } - // update Shortcut display - updateDisplayShortcut(); -} - -inline void QKeySequenceWidgetPrivate::cancelRecording() -{ - currentSequence = oldSequence; - doneRecording(); -} - -inline void QKeySequenceWidgetPrivate::clearSequence() -{ - q_ptr->setKeySequence(QKeySequence()); - emit q_ptr->keySequenceCleared(); -} - -inline void QKeySequenceWidgetPrivate::controlModifierlessTimout() -{ - if (numKey != 0 && !modifierKeys) - { - // No modifier key pressed currently. Start the timout - modifierlessTimeout.start(600); - } - else - { - // A modifier is pressed. Stop the timeout - modifierlessTimeout.stop(); - } -} - - -inline void QKeySequenceWidgetPrivate::keyNotSupported() -{ - Q_EMIT q_ptr->keyNotSupported(); -} - -void QKeySequenceWidgetPrivate::updateDisplayShortcut() -{ - // empty string if no non-modifier was pressed - QString str = currentSequence.toString(QKeySequence::NativeText); - str.replace('&', QLatin1String("&&")); // TODO -- check it - - if (isRecording == true) - { - if (modifierKeys) - { - if (str.isEmpty() == false) - str.append(","); - - if ((modifierKeys & Qt::META) ) - str += "Meta + "; - - if ((modifierKeys & Qt::CTRL) ) - str += "Ctrl + "; - - if ((modifierKeys & Qt::ALT) ) - str += "Alt + "; - - if ((modifierKeys & Qt::SHIFT) ) - str += "Shift + "; - } - - // make it clear that input is still going on - str.append("..."); - } - - // if is noting - if (str.isEmpty() == true) - { - str = noneSequenceText; - } - - shortcutButton->setText(str); -} - - -// QKeySequenceButton implementation -QSize QShortcutButton::sizeHint() const -{ - return QPushButton::sizeHint(); -} - -bool QShortcutButton::event(QEvent *e) -{ - if (d->isRecording == true && e->type() == QEvent::KeyPress) - { - keyPressEvent(static_cast(e)); - return true; - } - - if (d->isRecording && e->type() == QEvent::ShortcutOverride) - { - e->accept(); - return true; - } - - if (d->isRecording == true && e->type() == QEvent::FocusOut) - { - d->cancelRecording(); - return true; - } - - return QPushButton::event(e); -} - -void QShortcutButton::keyPressEvent(QKeyEvent *keyEvent) -{ - int keyQt = keyEvent->key(); - -// Qt sometimes returns garbage keycodes, I observed -1, -// if it doesn't know a key. -// We cannot do anything useful with those (several keys have -1, -// indistinguishable) -// and QKeySequence.toString() will also yield a garbage string. - if (keyQt == -1) - { - // keu moy supported in Qt - d->cancelRecording(); - d->keyNotSupported(); - - } - - //get modifiers key - uint newModifiers = keyEvent->modifiers() & (Qt::SHIFT | Qt::CTRL | Qt::ALT -| Qt::META); - - // block autostart capturing on key_return or key space press - if (d->isRecording == false && (keyQt == Qt::Key_Return || keyQt == Qt::Key_Space)) - { - return; - } - - // We get events even if recording isn't active. - if (d->isRecording == false) - { - return QPushButton::keyPressEvent(keyEvent); - } - - keyEvent->accept(); - d->modifierKeys = newModifiers; - - // switching key type - switch(keyQt) - { - case Qt::Key_AltGr: //or else we get unicode salad - return; - case Qt::Key_Shift: - case Qt::Key_Control: - case Qt::Key_Alt: - case Qt::Key_Meta: - case Qt::Key_Menu: //unused (yes, but why?) - // TODO - check it key - d->controlModifierlessTimout(); - d->updateDisplayShortcut(); - break; - default: - { - - } - - // We now have a valid key press. - if (keyQt) - { - if ((keyQt == Qt::Key_Backtab) && (d->modifierKeys & Qt::SHIFT)) - { - keyQt = Qt::Key_Tab | d->modifierKeys; - } - else //if (d->isShiftAsModifierAllowed(keyQt)) - { - keyQt |= d->modifierKeys; - } - - if (d->numKey == 0) - { - d->currentSequence = QKeySequence(keyQt); - } - - d->numKey++; // increment nuber of pressed keys - - if (d->numKey >= 4) - { - d->doneRecording(); - return; - } - - d->controlModifierlessTimout(); - d->updateDisplayShortcut(); - } - } -} - -void QShortcutButton::keyReleaseEvent(QKeyEvent *keyEvent) -{ - if (keyEvent->key() == -1) - { - // ignore garbage, see keyPressEvent() - return; - } - - // if not recording mode - if (d->isRecording == false) - { - return QPushButton::keyReleaseEvent(keyEvent); - } - - keyEvent->accept(); - - uint newModifiers = keyEvent->modifiers() & (Qt::SHIFT | Qt::CTRL | Qt::ALT | Qt::META); - - // if a modifier that belongs to the shortcut was released... - if ((newModifiers & d->modifierKeys) < d->modifierKeys) - { - d->modifierKeys = newModifiers; - d->controlModifierlessTimout(); - d->updateDisplayShortcut(); - } -} diff --git a/src/common/qkeysequencewidget/src/qkeysequencewidget.h b/src/common/qkeysequencewidget/src/qkeysequencewidget.h deleted file mode 100644 index 23938eb..0000000 --- a/src/common/qkeysequencewidget/src/qkeysequencewidget.h +++ /dev/null @@ -1,127 +0,0 @@ -/****************************************************************************** -Copyright (c) 2010, Artem Galichkin -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*******************************************************************************/ - -#ifndef QKEYSEQUENCEWIDGET_H -#define QKEYSEQUENCEWIDGET_H - -#include "qkeysequencewidget_p.h" - -#include -#include - -#if defined IS_SHARED -#define QKSW_EXPORT Q_DECL_EXPORT -#else -#define QKSW_EXPORT Q_DECL_IMPORT -#endif - -class QKeySequenceWidgetPrivate; - -/*! - \class QKeySequenceWidget - - \brief The QKeySequenceWidget is a widget to input a QKeySequence. - - This widget lets the user choose a QKeySequence, which is usually used as a - shortcut key. The recording is initiated by calling captureKeySequence() or - the user clicking into the widget. - - \code - // create new QKeySequenceWidget with empty sequence - QKeySequenceWidget *keyWidget = new QKeySequenceWidget; - - // Set sequence as "Ctrl+Alt+Space" - keyWidget->setJeySequence(QKeySequence("Ctrl+Alt+Space")); - - // set clear button position is left - setClearButtonShow(QKeySequenceWidget::ShowLeft); - - // set cutom clear button icon - setClearButtonIcon(QIcon("/path/to/icon.png")); - - // connecting keySequenceChanged signal to slot - connect(keyWidget, SIGNAL(keySequenceChanged(QKeySequence)), this, SLOT(slotKeySequenceChanged(QKeySequence))); - \endcode -*/ -class QKSW_EXPORT QKeySequenceWidget : public QWidget -{ - Q_OBJECT - Q_DECLARE_PRIVATE(QKeySequenceWidget); - Q_PRIVATE_SLOT(d_func(), void doneRecording()) - - Q_PROPERTY(QKeySequence keySequence READ keySequence WRITE setKeySequence) - Q_PROPERTY(QKeySequenceWidget::ClearButtonShow clearButton READ clearButtonShow WRITE setClearButtonShow) - Q_PROPERTY(QString noneText READ noneText WRITE setNoneText) - Q_PROPERTY(QIcon clearButtonIcon READ clearButtonIcon WRITE setClearButtonIcon) - -private: - QKeySequenceWidgetPrivate * const d_ptr; - void _connectingSlots(); - -public: - explicit QKeySequenceWidget(QWidget *parent = 0); - explicit QKeySequenceWidget(const QKeySequence &seq, QWidget *parent = 0); - explicit QKeySequenceWidget(const QString &noneString, QWidget *parent = 0); - explicit QKeySequenceWidget(const QKeySequence &seq, const QString &noneString, QWidget *parent = 0); - virtual ~QKeySequenceWidget(); - QSize sizeHint() const; - void setToolTip(const QString &tip); - QKeySequence keySequence() const; - QString noneText() const; - QIcon clearButtonIcon() const; - - /*! - \brief Modes of sohow ClearButton - */ - enum ClearButton { - NoShow = 0x00, /**< Hide ClearButton */ - ShowLeft = 0x01, /**< ClearButton isow is left */ - ShowRight = 0x02 /**< ClearButton isow is left */ - }; - - Q_DECLARE_FLAGS(ClearButtonShow, ClearButton); - Q_FLAGS(ClearButtonShow) - - QKeySequenceWidget::ClearButtonShow clearButtonShow() const; - -Q_SIGNALS: - void keySequenceChanged(const QKeySequence &seq); - void keySequenceAccepted(const QKeySequence &seq); - void keySequenceCleared(); - void keyNotSupported(); - -public Q_SLOTS: - void setKeySequence(const QKeySequence &key); - void clearKeySequence(); - void setNoneText(const QString &text); - void setClearButtonIcon(const QIcon& icon); - void setClearButtonShow(QKeySequenceWidget::ClearButtonShow show); - void captureKeySequence(); -}; - -#endif // QKEYSEQUENCEWIDGET_H diff --git a/src/common/qkeysequencewidget/src/qkeysequencewidget_p.h b/src/common/qkeysequencewidget/src/qkeysequencewidget_p.h deleted file mode 100644 index d150e17..0000000 --- a/src/common/qkeysequencewidget/src/qkeysequencewidget_p.h +++ /dev/null @@ -1,120 +0,0 @@ -/****************************************************************************** -Copyright (c) 2010, Artem Galichkin -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*******************************************************************************/ - -#ifndef QKEYSEQUENCEWIDGET_P_H -#define QKEYSEQUENCEWIDGET_P_H - -#include -#include -#include -#include -#include -#include -#include - -#include "qkeysequencewidget.h" - -class QShortcutButton; -class QKeySequenceWidget; - -class QKeySequenceWidgetPrivate // : public QObject -{ - //Q_OBJECT - Q_DECLARE_PUBLIC(QKeySequenceWidget); - -public: - QKeySequenceWidget * q_ptr; - - QKeySequenceWidgetPrivate(); - virtual ~QKeySequenceWidgetPrivate(); - - void init(const QKeySequence &keySeq, const QString &noneStr); - void updateView(); - - void startRecording(); - void doneRecording(); - inline void cancelRecording(); - inline void clearSequence(); - inline void controlModifierlessTimout(); - inline void keyNotSupported(); - - void updateDisplayShortcut(); - - // members - QKeySequence currentSequence; - QKeySequence oldSequence; - QString noneSequenceText; - - QTimer modifierlessTimeout; - - quint32 numKey; - quint32 modifierKeys; - - void setToolTip(const QString& tip); - - QHBoxLayout *layout; - QToolButton *clearButton; - QShortcutButton *shortcutButton; - - int showClearButton; - - bool isRecording; - -}; - -class QShortcutButton : public QPushButton -{ - Q_OBJECT - -public: - explicit QShortcutButton(QKeySequenceWidgetPrivate *p, QWidget *parent = 0) - : QPushButton(parent) - , d(p) - { - setMinimumWidth(QPushButton::minimumWidth()); - QPushButton::setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); - } - - virtual ~QShortcutButton() - { - - } - - virtual QSize sizeHint() const; - -protected: - // Reimplemented for internal reasons. - virtual bool event(QEvent *e); - virtual void keyPressEvent(QKeyEvent *keyEvent); - virtual void keyReleaseEvent(QKeyEvent *keyEvent); - -private: - QKeySequenceWidgetPrivate * const d; -}; - -#endif // QKEYSEQUENCEWIDGET_P_H diff --git a/src/core/config.cpp b/src/core/config.cpp deleted file mode 100644 index 77aa4d5..0000000 --- a/src/core/config.cpp +++ /dev/null @@ -1,603 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "src/core/config.h" -#include "core.h" - -#include -#include -#include -#include -#include -#include -#include - -#define CONFIG_FILE_DIR "screengrab" -#define CONFIG_FILE_NAME "screengrab.conf" - -#define KEY_SAVEDIR "defDir" -#define KEY_SAVENAME "defFilename" -#define KEY_SAVEFORMAT "defImgFormat" -#define KEY_DELAY "delay" -#define KEY_SCREENSHOT_TYPE_DEF "defScreenshotType" -#define KEY_IMG_QUALITY "imageQuality" -#define KEY_FILENAMEDATE "insDateTimeInFilename" -#define KEY_DATETIME_TPL "templateDateTime" -#define KEY_FILENAME_TO_CLB "CopyFilenameToClipboard" -#define KEY_AUTOSAVE "autoSave" -#define KEY_AUTOSAVE_FIRST "autoSaveFirst" - -#define KEY_SHOW_TRAY "showTrayIcon" -#define KEY_CLOSE_INTRAY "closeInTray" -#define KEY_TRAYMESSAGES "trayMessages" - -#define KEY_WND_WIDTH "windowWidth" -#define KEY_WND_HEIGHT "windowHeight" -#define KEY_ZOOMBOX "zoomAroundMouse" -#define KEY_TIME_NOTIFY "timeTrayMessages" -#define KEY_ALLOW_COPIES "AllowCopies" -#define KEY_ENABLE_EXT_VIEWER "enbaleExternalView" -#define KEY_NODECOR "noDecorations" -#define KEY_INCLUDE_CURSOR "includeCursor" -#define KEY_FIT_INSIDE "fitInside" - -#define KEY_LAST_SELECTION "lastSelection" - - -static const QLatin1String FullScreen("FullScreen"); -static const QLatin1String Window("Window"); -static const QLatin1String Area("Area"); -static const QLatin1String PreviousSelection("PreviousSelection"); - -static QString screenshotTypeToString(int v); -static int screenshotTypeFromString(const QString& str); - -static QString screenshotTypeToString(int v) -{ - QString r; - - switch(v) { - case Core::FullScreen: - r = FullScreen; - break; - case Core::Window: - r = Window; - break; - case Core::Area: - r = Area; - break; - case Core::PreviousSelection: - r = PreviousSelection; - break; - default: - r = FullScreen; - } - return r; -} - -static int screenshotTypeFromString(const QString& str) -{ - int r; - - if (str == FullScreen) - r = Core::FullScreen; - else if (str == Window) - r = Core::Window; - else if (str == Area) - r = Core::Area; - else if (str == PreviousSelection) - r = Core::PreviousSelection; - else - r = Core::FullScreen; // Default - - return r; -} - -const static QStringList _imageFormats = {"png", "jpg"}; - -Config* Config::ptrInstance = nullptr; - -// constructor -Config::Config() -{ - _settings = new Settings("screengrab", "screengrab"); - - _shortcuts = new ShortcutManager(_settings); - - _scrNum = 0; -} - -Config::~Config() -{ - delete _shortcuts; - delete _settings; -} - -Config* Config::instance() -{ - if (!ptrInstance) - ptrInstance = new Config; - - return ptrInstance; -} - -void Config::setValue(const QString &key, const QVariant &val) -{ - _confData[key] = val; -} - -QVariant Config::value(const QString &key) -{ - return _confData[key]; -} - -void Config::killInstance() -{ - if (ptrInstance) - { - delete ptrInstance; - ptrInstance = nullptr; - } -} - -QString Config::getConfigDir() -{ - QString dir = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation); - dir += QDir::separator(); - dir += CONFIG_FILE_DIR; - - QDir qdir(dir); - if (!qdir.exists()) - qdir.mkpath(dir); - - return dir; -} - -// public methods - -QString Config::getScrNumStr() -{ - QString str = QString::number(_scrNum); - - if (_scrNum < 10) - str.prepend("0"); - - return str; -} - -int Config::getScrNum() const -{ - return _scrNum; -} - -void Config::increaseScrNum() -{ - _scrNum++; -} - -void Config::resetScrNum() -{ - _scrNum = 0; -} - -void Config::updateLastSaveDate() -{ - _dateLastSaving = QDateTime::currentDateTime(); -} - -QDateTime Config::getLastSaveDate() const -{ - return _dateLastSaving; -} - -bool Config::getEnableExtView() -{ - return value(KEY_ENABLE_EXT_VIEWER).toBool(); -} - -void Config::setEnableExtView(bool val) -{ - setValue(KEY_ENABLE_EXT_VIEWER, val); -} - -bool Config::getIncludeCursor() -{ - return value(KEY_INCLUDE_CURSOR).toBool(); -} - -void Config::setIncludeCursor(bool val) -{ - setValue(KEY_INCLUDE_CURSOR, val); -} - -QString Config::getSaveDir() -{ - return value(KEY_SAVEDIR).toString(); -} - -void Config::setSaveDir(const QString &path) -{ - setValue(KEY_SAVEDIR, path); -} - -QString Config::getSaveFileName() -{ - return value(KEY_SAVENAME).toString(); -} - -void Config::setSaveFileName(const QString &fileName) -{ - setValue(KEY_SAVENAME, fileName); -} - -QString Config::getSaveFormat() -{ - return value(KEY_SAVEFORMAT).toString().toLower(); -} - -void Config::setSaveFormat(const QString &format) -{ - setValue(KEY_SAVEFORMAT, format); -} - -quint8 Config::getDelay() -{ - return value(KEY_DELAY).toInt(); -} - -void Config::setDelay(quint8 sec) -{ - setValue(KEY_DELAY, sec); -} - -int Config::getDefScreenshotType() -{ - return (value(QLatin1String(KEY_SCREENSHOT_TYPE_DEF)).toInt()); -} - -void Config::setDefScreenshotType(const int type) -{ - setValue(QLatin1String(KEY_SCREENSHOT_TYPE_DEF), type); -} - -quint8 Config::getAutoCopyFilenameOnSaving() -{ - return value(KEY_FILENAME_TO_CLB).toInt(); -} - -void Config::setAutoCopyFilenameOnSaving(quint8 val) -{ - setValue(KEY_FILENAME_TO_CLB, val); -} - - -quint8 Config::getTrayMessages() -{ - return value(KEY_TRAYMESSAGES).toInt(); -} - -void Config::setTrayMessages(quint8 type) -{ - setValue(KEY_TRAYMESSAGES, type); -} - -bool Config::getAllowMultipleInstance() -{ - return value(KEY_ALLOW_COPIES).toBool(); -} - -void Config::setAllowMultipleInstance(bool val) -{ - setValue(KEY_ALLOW_COPIES, val); -} - -bool Config::getCloseInTray() -{ - return value(KEY_CLOSE_INTRAY).toBool(); -} - -void Config::setCloseInTray(bool val) -{ - setValue(KEY_CLOSE_INTRAY, val); -} - -quint8 Config::getTimeTrayMess() -{ - return value(KEY_TIME_NOTIFY).toInt(); -} - -void Config::setTimeTrayMess(int sec) -{ - setValue(KEY_TIME_NOTIFY, sec); -} - -QSize Config::getRestoredWndSize() -{ - QSize wndSize(value(KEY_WND_WIDTH).toInt(), value(KEY_WND_HEIGHT).toInt()); - return wndSize; -} - -void Config::setRestoredWndSize(int w, int h) -{ - setValue(KEY_WND_WIDTH, w); - setValue(KEY_WND_HEIGHT, h); -} - -bool Config::getDateTimeInFilename() -{ - return value(KEY_FILENAMEDATE).toBool(); -} - -void Config::setDateTimeInFilename(bool val) -{ - setValue(KEY_FILENAMEDATE, val); -} - -bool Config::getAutoSave() -{ - return value(KEY_AUTOSAVE).toBool(); -} - -void Config::setAutoSave(bool val) -{ - setValue(KEY_AUTOSAVE, val); -} - -quint8 Config::getImageQuality() -{ - return value(KEY_IMG_QUALITY).toInt(); -} - -void Config::setImageQuality(quint8 qualuty) -{ - setValue(KEY_IMG_QUALITY, qualuty); -} - -bool Config::getAutoSaveFirst() -{ - return value(KEY_AUTOSAVE_FIRST).toBool(); -} - -void Config::setAutoSaveFirst(bool val) -{ - setValue(KEY_AUTOSAVE_FIRST, val); -} - -QString Config::getDateTimeTpl() -{ - return value(KEY_DATETIME_TPL).toString(); -} - -void Config::setDateTimeTpl(const QString &tpl) -{ - setValue(KEY_DATETIME_TPL, tpl); -} - -bool Config::getZoomAroundMouse() -{ - return value(KEY_ZOOMBOX).toBool(); -} - -void Config::setZoomAroundMouse(bool val) -{ - setValue(KEY_ZOOMBOX, val); -} - -bool Config::getShowTrayIcon() -{ - return value(KEY_SHOW_TRAY).toBool(); -} - -void Config::setShowTrayIcon(bool val) -{ - setValue(KEY_SHOW_TRAY, val); -} - -bool Config::getNoDecoration() -{ - return value(KEY_NODECOR).toBool(); -} - -void Config::setNoDecoration(bool val) -{ - setValue(KEY_NODECOR, val); -} - -bool Config::getFitInside() -{ - return value(KEY_FIT_INSIDE).toBool(); -} - -void Config::setFitInside(bool val) -{ - setValue(KEY_FIT_INSIDE, val); -} - -QRect Config::getLastSelection() -{ - return value(KEY_LAST_SELECTION).toRect(); -} - -void Config::setLastSelection(QRect rect) -{ - setValue(KEY_LAST_SELECTION, rect); -} - -void Config::saveWndSize() -{ - // saving size - _settings->beginGroup("Display"); - _settings->setValue(KEY_WND_WIDTH, getRestoredWndSize().width()); - _settings->setValue(KEY_WND_HEIGHT, getRestoredWndSize().height()); - _settings->endGroup(); -} - -// load all settings from conf file -void Config::loadSettings() -{ - _settings->beginGroup("Base"); - setSaveDir(_settings->value(KEY_SAVEDIR, getDirNameDefault()).toString() ); - setSaveFileName(_settings->value(KEY_SAVENAME,DEF_SAVE_NAME).toString()); - setSaveFormat(_settings->value(KEY_SAVEFORMAT, DEF_SAVE_FORMAT).toString()); - setDelay(_settings->value(KEY_DELAY, DEF_DELAY).toInt()); - setDefScreenshotType(screenshotTypeFromString(_settings->value(QLatin1String(KEY_SCREENSHOT_TYPE_DEF)).toString())); - setAutoCopyFilenameOnSaving(_settings->value(KEY_FILENAME_TO_CLB, DEF_FILENAME_TO_CLB).toInt()); - setDateTimeInFilename(_settings->value(KEY_FILENAMEDATE, DEF_DATETIME_FILENAME).toBool()); - setDateTimeTpl(_settings->value(KEY_DATETIME_TPL, DEF_DATETIME_TPL).toString()); - setAutoSave(_settings->value(KEY_AUTOSAVE, DEF_AUTO_SAVE).toBool()); - setAutoSaveFirst(_settings->value(KEY_AUTOSAVE_FIRST, DEF_AUTO_SAVE_FIRST).toBool()); - setNoDecoration(_settings->value(KEY_NODECOR, DEF_X11_NODECOR).toBool()); - setImageQuality(_settings->value(KEY_IMG_QUALITY, DEF_IMG_QUALITY).toInt()); - setIncludeCursor(_settings->value(KEY_INCLUDE_CURSOR, DEF_INCLUDE_CURSOR).toBool()); - _settings->endGroup(); - - _settings->beginGroup("Display"); - setTrayMessages(_settings->value(KEY_TRAYMESSAGES, DEF_TRAY_MESS_TYPE).toInt()); - setTimeTrayMess(_settings->value(KEY_TIME_NOTIFY, DEF_TIME_TRAY_MESS).toInt( )); - setZoomAroundMouse(_settings->value(KEY_ZOOMBOX, DEF_ZOOM_AROUND_MOUSE).toBool()); - setLastSelection(_settings->value(KEY_LAST_SELECTION).toRect()); - // TODO - make set windows size without hardcode values - setRestoredWndSize(_settings->value(KEY_WND_WIDTH, DEF_WND_WIDTH).toInt(), - _settings->value(KEY_WND_HEIGHT, DEF_WND_HEIGHT).toInt()); - setShowTrayIcon(_settings->value(KEY_SHOW_TRAY, DEF_SHOW_TRAY).toBool()); - _settings->endGroup(); - - _settings->beginGroup("System"); - setCloseInTray(_settings->value(KEY_CLOSE_INTRAY, DEF_CLOSE_IN_TRAY).toBool()); - setAllowMultipleInstance(_settings->value(KEY_ALLOW_COPIES, DEF_ALLOW_COPIES).toBool()); - setEnableExtView(_settings->value(KEY_ENABLE_EXT_VIEWER, DEF_ENABLE_EXT_VIEWER).toBool()); - setFitInside(_settings->value(KEY_FIT_INSIDE, DEF_FIT_INSIDE).toBool()); - _settings->endGroup(); - - _shortcuts->loadSettings(); -} - -void Config::saveSettings() -{ // save settings except for those on the main window - _settings->beginGroup("Base"); - _settings->setValue(KEY_SAVEDIR, getSaveDir()); - _settings->setValue(KEY_SAVENAME, getSaveFileName()); - _settings->setValue(KEY_SAVEFORMAT, getSaveFormat()); - _settings->setValue(KEY_FILENAME_TO_CLB, getAutoCopyFilenameOnSaving()); - _settings->setValue(KEY_FILENAMEDATE, getDateTimeInFilename()); - _settings->setValue(KEY_DATETIME_TPL, getDateTimeTpl()); - _settings->setValue(KEY_AUTOSAVE, getAutoSave()); - _settings->setValue(KEY_AUTOSAVE_FIRST, getAutoSaveFirst()); - _settings->setValue(KEY_IMG_QUALITY, getImageQuality()); - _settings->endGroup(); - - _settings->beginGroup("Display"); - _settings->setValue(KEY_TRAYMESSAGES, getTrayMessages()); - _settings->setValue(KEY_TIME_NOTIFY, getTimeTrayMess()); - _settings->setValue(KEY_SHOW_TRAY, getShowTrayIcon()); - _settings->endGroup(); - saveWndSize(); - - _settings->beginGroup("System"); - _settings->setValue(KEY_CLOSE_INTRAY, getCloseInTray()); - _settings->setValue(KEY_ALLOW_COPIES, getAllowMultipleInstance()); - _settings->setValue(KEY_ENABLE_EXT_VIEWER, getEnableExtView()); - _settings->setValue(KEY_FIT_INSIDE, getFitInside()); - _settings->endGroup(); - - _shortcuts->saveSettings(); - - resetScrNum(); -} - -void Config::saveScreenshotSettings() -{ // save the main window settings - _settings->beginGroup("Base"); - _settings->setValue(QLatin1String(KEY_SCREENSHOT_TYPE_DEF), screenshotTypeToString(getDefScreenshotType())); - _settings->setValue(KEY_NODECOR, getNoDecoration()); - _settings->setValue(KEY_INCLUDE_CURSOR, getIncludeCursor()); - _settings->setValue(KEY_DELAY, getDelay()); - _settings->endGroup(); - - _settings->beginGroup("Display"); - _settings->setValue(KEY_ZOOMBOX, getZoomAroundMouse()); - _settings->setValue(KEY_LAST_SELECTION, getLastSelection()); - _settings->endGroup(); -} - -// set default values -void Config::setDefaultSettings() -{ - setSaveDir(getDirNameDefault()); - setSaveFileName(DEF_SAVE_NAME); - setSaveFormat(DEF_SAVE_FORMAT); - setImageQuality(DEF_IMG_QUALITY); - setDateTimeInFilename(DEF_DATETIME_FILENAME); - setDateTimeTpl(DEF_DATETIME_TPL); - setAutoCopyFilenameOnSaving(DEF_FILENAME_TO_CLB); - setAutoSave(DEF_AUTO_SAVE); - setAutoSaveFirst(DEF_AUTO_SAVE_FIRST); - setTrayMessages(DEF_TRAY_MESS_TYPE); - setIncludeCursor(DEF_INCLUDE_CURSOR); - setCloseInTray(DEF_CLOSE_IN_TRAY); - setTimeTrayMess(DEF_TIME_TRAY_MESS); - setAllowMultipleInstance(DEF_ALLOW_COPIES); - // TODO - make set windows size without hardcode values - // setRestoredWndSize(DEF_WND_WIDTH, DEF_WND_HEIGHT); - setShowTrayIcon(DEF_SHOW_TRAY); - setEnableExtView(DEF_ENABLE_EXT_VIEWER); - setFitInside(DEF_FIT_INSIDE); - - _shortcuts->setDefaultSettings(); - - quint8 countModules = Core::instance()->modules()->count(); - for (int i = 0; i < countModules; ++i) - Core::instance()->modules()->getModule(i)->defaultSettings(); -} - -// get defaukt directory path -QString Config::getDirNameDefault() -{ - return QDir::homePath()+QDir::separator(); -} - -QStringList Config::getFormatIDs() const -{ - return _imageFormats; -} -// get id of default save format -int Config::getDefaultFormatID() -{ - return _imageFormats.indexOf(getSaveFormat()); -} - -QString Config::getSysLang() -{ - QByteArray lang = qgetenv("LC_ALL"); - - if (lang.isEmpty()) - lang = qgetenv("LC_MESSAGES"); - - if (lang.isEmpty()) - lang = qgetenv("LANG"); - - if (!lang.isEmpty()) - return QLocale (lang).name(); - else - return QLocale::system().name(); -} - -ShortcutManager* Config::shortcuts() -{ - return _shortcuts; -} diff --git a/src/core/config.h b/src/core/config.h deleted file mode 100644 index c9cc785..0000000 --- a/src/core/config.h +++ /dev/null @@ -1,277 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef CONFIG_H -#define CONFIG_H - -#include "shortcutmanager.h" - -#include -#include -#include -#include -#include -#include - -// default values const -const QString DEF_SAVE_NAME = "screen"; -const QString DEF_SAVE_FORMAT = "png"; -const quint8 DEF_DELAY = 0; -const bool DEF_X11_NODECOR = false; -const quint8 DEF_TRAY_MESS_TYPE = 1; -const quint8 DEF_FILENAME_TO_CLB = 0; -const quint8 DEF_IMG_QUALITY = 80; -const bool DEF_CLOSE_IN_TRAY = false; -const bool DEF_ALLOW_COPIES = true; -const bool DEF_ZOOM_AROUND_MOUSE = false; -// TODO - make set windows size without hardcode values -const int DEF_WND_WIDTH = 480; -const int DEF_WND_HEIGHT = 281; -const int DEF_TIME_TRAY_MESS = 5; -const bool DEF_DATETIME_FILENAME = false; -const bool DEF_AUTO_SAVE = false; -const bool DEF_AUTO_SAVE_FIRST = false; -const QString DEF_DATETIME_TPL = "yyyy-MM-dd-hh-mm-ss"; -const bool DEF_SHOW_TRAY = true; -const bool DEF_ENABLE_EXT_VIEWER = true; -const bool DEF_INCLUDE_CURSOR = false; -const bool DEF_FIT_INSIDE = true; - -class Settings : public QSettings // prevents redundant writings -{ - Q_OBJECT -public: - Settings(const QString &organization, const QString &application = QString(), QObject *parent = nullptr) - : QSettings (organization, application, parent) {} - - void setValue(const QString &key, const QVariant &v) { - if (value(key) == v) - return; - QSettings::setValue(key, v); - } -}; - -// class worker with conf data -class Config -{ -public: - // type of shortcut - enum Type { - globalShortcut = 0, - localShortcut = 1 - }; - - Q_DECLARE_FLAGS(ShortcutType, Type) - - // definition of shortcut - enum Actions { - shortcutFullScreen = 0, - shortcutActiveWnd = 1, - shortcutAreaSelect = 2, - shortcutNew = 3, - shortcutSave = 4, - shortcutCopy = 5, - shortcutOptions = 6, - shortcutHelp = 7, - shortcutClose = 8 - }; - - Q_DECLARE_FLAGS(ShortcutAction, Actions) - - enum AutoCopyFilename { - nameToClipboardOff = 0, - nameToClipboardFile = 1, - nameToClipboardPath = 2 - }; - - Q_DECLARE_FLAGS(FilenameToClipboard, AutoCopyFilename) - - /** - * Get current instance of configuration object - * @return Pointer on created object - */ - static Config* instance(); - - /** - * Destroy current Config object - */ - static void killInstance(); - ~Config(); - - /** - * @brief Gets the directory where to save the configuration files. - * Does not end with '/'. - */ - static QString getConfigDir(); - - /** - * Load configuration data from conf file - */ - void loadSettings(); - - /** - * Save configuration data to conf file - */ - void saveSettings(); - - /** - * Save screenshot settings to conf file - */ - void saveScreenshotSettings(); - - /** - * Reset configuration data from default values - */ - void setDefaultSettings(); - - // save dir - QString getSaveDir(); - void setSaveDir(const QString &path); - - // filename default - QString getSaveFileName(); - void setSaveFileName(const QString &fileName); - - // save format str - QString getSaveFormat(); - void setSaveFormat(const QString &format); - - quint8 getDelay(); - void setDelay(quint8 sec); - - // configured default screenshot type - int getDefScreenshotType(); - void setDefScreenshotType(const int type); - - quint8 getAutoCopyFilenameOnSaving(); - void setAutoCopyFilenameOnSaving(quint8 val); - - // trayMessages - quint8 getTrayMessages(); - void setTrayMessages(quint8 type); - - // allow multiple copies - bool getAllowMultipleInstance(); - void setAllowMultipleInstance(bool val); - - // closing in tray - bool getCloseInTray(); - void setCloseInTray(bool val); - - // tume of tray messages - quint8 getTimeTrayMess(); - void setTimeTrayMess(int src); - - bool getDateTimeInFilename(); - void setDateTimeInFilename(bool val); - - // auto save screenshot - bool getAutoSave(); - void setAutoSave(bool val); - - // umage qualuty - quint8 getImageQuality(); - void setImageQuality(quint8 qualuty); - - // aoutosave first screenshot - bool getAutoSaveFirst(); - void setAutoSaveFirst(bool val); - - // size wnd - QSize getRestoredWndSize(); - void setRestoredWndSize(int w, int h); - void saveWndSize(); - - // get image save format(s) - QStringList getFormatIDs() const; - int getDefaultFormatID(); - QString getDirNameDefault(); - - // datetime template - QString getDateTimeTpl(); - void setDateTimeTpl(const QString &tpl); - - // zoom aroundd mouse - bool getZoomAroundMouse(); - void setZoomAroundMouse(bool val); - - // show tray icon option - bool getShowTrayIcon(); - void setShowTrayIcon(bool val); - - // no decoration of window - bool getNoDecoration(); - void setNoDecoration(bool val); - - QString getScrNumStr(); - int getScrNum() const; - void increaseScrNum(); - void resetScrNum(); - - void updateLastSaveDate(); - QDateTime getLastSaveDate() const; - - bool getEnableExtView(); - void setEnableExtView(bool val); - - bool getIncludeCursor(); - void setIncludeCursor(bool val); - - bool getFitInside(); - void setFitInside(bool val); - - QRect getLastSelection(); - void setLastSelection(QRect rect); - - static QString getSysLang(); - - ShortcutManager* shortcuts(); - -private: - Config(); - Config(const Config &); - Config& operator=(const Config& ); - - static Config *ptrInstance; - - /** - * Return value on configuration parameter - * - * @param String of name key - * @return QVariant value of configuration parameter - */ - QVariant value(const QString &key); - - /** - * Set value on configuration parameter - * - * @param String of name key - * @param String of saved value - */ - void setValue(const QString& key, const QVariant &val); - - Settings *_settings; - QHash _confData; - - ShortcutManager *_shortcuts; - - int _scrNum; // screen num in session - QDateTime _dateLastSaving; -}; - -#endif // CONFIG_H diff --git a/src/core/core.cpp b/src/core/core.cpp deleted file mode 100644 index a903dcf..0000000 --- a/src/core/core.cpp +++ /dev/null @@ -1,604 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -#ifdef X11_XCB_FOUND -#include "x11utils.h" -#endif - -#include "core/core.h" - -#ifdef SG_DBUS_NOTIFY -#include "dbusnotifier.h" -#endif - -#ifdef SG_EXT_UPLOADS -#include "modules/uploader/moduleuploader.h" -#endif - -Core* Core::corePtr = nullptr; - -Core::Core() -{ - qRegisterMetaType("StateNotifyMessage"); - - _conf = Config::instance(); - _conf->loadSettings(); - _lastSelectedArea = _conf->getLastSelection(); - - _pixelMap = new QPixmap; - _selector = nullptr; - _firstScreen = true; - - _cmdLine.setApplicationDescription("ScreenGrab " + tr("is a crossplatform application for fast creating screenshots of your desktop.")); - _cmdLine.addHelpOption(); - _cmdLine.addVersionOption(); - - QCommandLineOption optFullScreen(QStringList() << "f" << "fullscreen", tr("Take a fullscreen screenshot")); - _cmdLine.addOption(optFullScreen); - _screenTypeOpts.append(optFullScreen); - - QCommandLineOption optActiveWnd(QStringList() << "a" << "active", tr("Take a screenshot of the active window")); - _cmdLine.addOption(optActiveWnd); - _screenTypeOpts.append(optActiveWnd); - - QCommandLineOption optSelectedRect(QStringList() << "r" << "region", tr("Take a screenshot of a selection of the screen")); - _cmdLine.addOption(optSelectedRect); - _screenTypeOpts.append(optSelectedRect); - - QCommandLineOption optRunMinimized(QStringList() << "m" << "minimized", tr("Run the application with a hidden main window")); - _cmdLine.addOption(optRunMinimized); - - sleep(250); - - _wnd = nullptr; -} - -Core::Core(const Core& ): QObject() -{ -} - -Core& Core::operator=(const Core &) -{ - return *this; -} - -Core* Core::instance() -{ - if (!corePtr) - corePtr = new Core; - return corePtr; -} - -Core::~Core() -{ - delete _pixelMap; - _conf->killInstance(); -} - -void Core::initWindow(const QString& ipcMessage) -{ - if (!_wnd) { - _wnd = new MainWindow; - _wnd->setConfig(_conf); - _wnd->updateModulesActions(_modules.generateModulesActions()); - _wnd->updateModulesenus(_modules.generateModulesMenus()); - - screenShot(true); // first screenshot - - _wnd->resize(_conf->getRestoredWndSize()); - - if (_wnd) { - if (runAsMinimized()) - { - if (_wnd->isTrayed()) - _wnd->windowHideShow(); - else - _wnd->showMinimized(); - } else - _wnd->show(); - } - } else { - _wnd->showWindow(ipcMessage); - screenShot(); - } -} - -void Core::sleep(int msec) -{ - QMutex mutex; - mutex.lock(); - QWaitCondition pause; - pause.wait(&mutex, msec); // def 240 - mutex.unlock(); -} - -void Core::coreQuit() -{ - _conf->setLastSelection(_lastSelectedArea); - _conf->saveScreenshotSettings(); - - if (_wnd) { - _conf->setRestoredWndSize(_wnd->width(), _wnd->height()); - _conf->saveWndSize(); - _wnd->close(); - } - - if (corePtr) - { - delete corePtr; - corePtr = nullptr; - } - - qApp->quit(); -} - -void Core::setScreen() -{ - _wnd->hideToShot(); - - // new code experimental - if (_conf->getDelay() == 0) - QTimer::singleShot(200, this, SLOT(screenShot())); - else - QTimer::singleShot(1000 * _conf->getDelay(), this, SLOT(screenShot())); - -} - - -// get screenshot -void Core::screenShot(bool first) -{ - sleep(400); // delay for hide "fade effect" bug in the KWin with compositing - _firstScreen = first; - - // Update date last crenshot, if it is a first screen - if (_firstScreen) - _conf->updateLastSaveDate(); - - switch(_conf->getDefScreenshotType()) - { - case Core::FullScreen: - { - const QList screens = qApp->screens(); - const QDesktopWidget *desktop = QApplication::desktop(); - const int screenNum = desktop->screenNumber(QCursor::pos()); - *_pixelMap = screens[screenNum]->grabWindow(desktop->winId()); - grabCursor(0, 0); - - checkAutoSave(first); - _wnd->updatePixmap(_pixelMap); - break; - } - case Core::Window: - { - getActiveWindow(); - checkAutoSave(first); - _wnd->updatePixmap(_pixelMap); - break; - } - case Core::Area: - { - _selector = new RegionSelect(_conf); - connect(_selector, &RegionSelect::processDone, this, &Core::regionGrabbed); - break; - } - case Core::PreviousSelection: - { - _selector = new RegionSelect(_conf, _lastSelectedArea); - connect(_selector, &RegionSelect::processDone, this, &Core::regionGrabbed); - break; - } - default: - *_pixelMap = QPixmap::grabWindow(QApplication::desktop()->winId()); - break; - } - - - - _wnd->updatePixmap(_pixelMap); - _wnd->restoreFromShot(); -} - -void Core::checkAutoSave(bool first) -{ - if (_conf->getAutoSave()) - { - // hack - if (first) - { - if (_conf->getAutoSaveFirst()) - QTimer::singleShot(600, this, SLOT(autoSave())); - } - else - autoSave(); - } -} - -void Core::getActiveWindow() // called only with window screenshots -{ - const QList screens = qApp->screens(); - const QDesktopWidget *desktop = QApplication::desktop(); - const int screenNum = desktop->screenNumber(QCursor::pos()); - - WId wnd = KWindowSystem::activeWindow(); - - // this window screenshot will be invalid - // if there's no active window or the active window is ours - bool invalid(!wnd || !KWindowSystem::hasWId(wnd) || (_wnd && _wnd->winId() == wnd)); - if (!invalid) - { // or if it isn't on the current desktop - KWindowInfo info(wnd, NET::WMDesktop); - invalid = info.valid() && !info.isOnDesktop(KWindowSystem::currentDesktop()); - if (!invalid) - { // or if it is a desktop or panel/dock - info = KWindowInfo(wnd, NET::WMWindowType); - QFlags flags; - flags |= NET::DesktopMask; - flags |= NET::DockMask; - invalid = info.valid() && NET::typeMatchesMask(info.windowType(NET::AllTypesMask), flags); - } - } - - // also invalid if the window is shaded/invisible - KWindowInfo info(wnd, NET::XAWMState | NET::WMFrameExtents); - if (!invalid && info.mappingState() != NET::Visible) - invalid = true; - - // if this is an invalid screenshot, take a fullscreen shot instead - if (invalid) - { - qWarning() << "Could not take a window screenshot."; - *_pixelMap = screens[screenNum]->grabWindow(desktop->winId()); - return; - } - - // no decorations option is selected - if (_conf->getNoDecoration()) - { - *_pixelMap = screens[screenNum]->grabWindow(wnd); - return; - } - - QRect geometry = info.frameGeometry(); - *_pixelMap = screens[screenNum]->grabWindow(QApplication::desktop()->winId(), - geometry.x(), - geometry.y(), - geometry.width(), - geometry.height()); - grabCursor(geometry.x(), geometry.y()); -} - -void Core::grabCursor(int offsetX, int offsetY) -{ -#ifdef XCB_XFOXES_FOUND - if (_conf->getIncludeCursor()) - X11Utils::compositePointer(offsetX, offsetY, _pixelMap); -#else - Q_UNUSED(offsetx); - Q_UNUSED(offsety); -#endif - - -} - -void Core::sendSystemNotify(const StateNotifyMessage& /*notify*/) -{ - qDebug() << "Send system notification"; -} - -QString Core::getSaveFilePath(const QString &format) -{ - QString initPath; - - do - { - QDir dir(_conf->getSaveDir()); - const QString filePath = dir.filePath(_conf->getSaveFileName()); - if (_conf->getDateTimeInFilename()) - initPath = filePath + "-" + getDateTimeFileName() + "." + format; - else - { - if (_conf->getScrNum() != 0) - initPath = filePath + _conf->getScrNumStr() + "." + format; - else - initPath = filePath + "." + format; - } - } while (checkExsistFile(initPath)); - - return initPath; -} - -bool Core::checkExsistFile(const QString &path) -{ - bool exist = QFile::exists(path); - - if (exist) - _conf->increaseScrNum(); - - return exist; -} - -QString Core::getDateTimeFileName() -{ - QString currentDateTime = QDateTime::currentDateTime().toString(_conf->getDateTimeTpl()); - - if (currentDateTime == _conf->getLastSaveDate().toString(_conf->getDateTimeTpl()) && _conf->getScrNum() != 0) - currentDateTime += "-" + _conf->getScrNumStr(); - else - _conf->resetScrNum(); - - return currentDateTime; -} - -Config *Core::config() -{ - return _conf; -} - -void Core::updatePixmap() -{ - if (QFile::exists(_tempFilename)) - { - _pixelMap->load(_tempFilename, "png"); - _wnd->updatePixmap(_pixelMap); - } -} - -QString Core::getTempFilename(const QString& format) -{ - _tempFilename = QUuid::createUuid().toString(); - int size = _tempFilename.size() - 2; - _tempFilename = _tempFilename.mid(1, size).left(8); - _tempFilename = QDir::tempPath() + QDir::separator() + "screenshot-" + _tempFilename + "." + format; - return _tempFilename; -} - -void Core::killTempFile() -{ - if (QFile::exists(_tempFilename)) - { - QFile::remove(_tempFilename); - _tempFilename.clear(); - } -} - -bool Core::writeScreen(QString& fileName, QString& format, bool tmpScreen) -{ - // adding extension format - if (!fileName.contains("." + format)) - fileName.append("." + format); - - // saving temp file (for uploader module) - if (tmpScreen) - { - if (!fileName.isEmpty()) - return _pixelMap->save(fileName, format.toLatin1(), _conf->getImageQuality()); - else - return false; - } - - // writing file - bool saved = false; - if (!fileName.isEmpty()) - { - if (format == "jpg") - saved = _pixelMap->save(fileName,format.toLatin1(), _conf->getImageQuality()); - else - saved = _pixelMap->save(fileName,format.toLatin1(), -1); - - if (saved) - { - StateNotifyMessage message(tr("Saved"), tr("Saved to ") + fileName); - - message.message = message.message + copyFileNameToCliipboard(fileName); - _conf->updateLastSaveDate(); - sendNotify(message); - } - else - qWarning() << "Error saving file " << fileName; - } - - return saved; -} - -QString Core::copyFileNameToCliipboard(QString file) -{ - QString retString = ""; - switch (_conf->getAutoCopyFilenameOnSaving()) - { - case Config::nameToClipboardFile: - { - file = file.section('/', -1); - QApplication::clipboard()->setText(file); - retString = QChar(QChar::LineSeparator) + tr("Name of saved file is copied to the clipboard"); - break; - } - case Config::nameToClipboardPath: - { - QApplication::clipboard()->setText(file); - retString = QChar(QChar::LineSeparator) + tr("Path to saved file is copied to the clipboard"); - break; - } - default: - break; - } - return retString; -} - -void Core::sendNotify(const StateNotifyMessage &message) -{ -#ifdef SG_DBUS_NOTIFY - DBusNotifier *notifier = new DBusNotifier(); - notifier->displayNotify(message); -#else - _wnd->showTrayMessage(message.header, message.message); -#endif -} - -void Core::copyScreen() -{ - QApplication::clipboard()->setPixmap(*_pixelMap, QClipboard::Clipboard); - StateNotifyMessage message(tr("Copied"), tr("Screenshot is copied to clipboard")); - sendNotify(message); -} - -void Core::openInExtViewer() -{ - if (_conf->getEnableExtView()) - { - QString format = _conf->getSaveFormat(); - if (format.isEmpty()) - format = "png"; - - QString tempFileName = getTempFilename(format); - writeScreen(tempFileName, format, true); - - QString exec; - exec = "xdg-open"; - QStringList args; - args << tempFileName; - - QProcess *execProcess = new QProcess(this); - - void (QProcess:: *signal)(int, QProcess::ExitStatus) = &QProcess::finished; - connect(execProcess, signal, this, &Core::closeExtViewer); - execProcess->start(exec, args); - } -} - -void Core::closeExtViewer(int, QProcess::ExitStatus) -{ - sender()->deleteLater(); - killTempFile(); -} - -ModuleManager* Core::modules() -{ - return &_modules; -} - -void Core::addCmdLineOption(const QCommandLineOption& option) -{ - _cmdLine.addOption(option); -} - -bool Core::checkCmdLineOption(const QCommandLineOption& option) -{ - return _cmdLine.isSet(option); -} - -bool Core::checkCmdLineOptions(const QStringList &options) -{ - for (int i = 0; i < options.count(); ++i) - if (_cmdLine.isSet(options.at(i))) - return true; - return false; -} - -void Core::processCmdLineOpts(const QStringList& arguments) -{ - _cmdLine.process(arguments); - - // Check commandline parameters and set screenshot type - for (int i=0; i < _screenTypeOpts.count(); ++i) - if (_cmdLine.isSet(_screenTypeOpts.at(i))) - _conf->setDefScreenshotType(i); - -#ifdef SG_EXT_UPLOADS - /// FIXMA - In module interface need add the mthod for geting module cmdLine options - const QString UPLOAD_CMD_PARAM = "upload"; - const QString UPLOAD_CMD_PARAM_SHORT = "u"; - QCommandLineOption u(QStringList() << UPLOAD_CMD_PARAM_SHORT << UPLOAD_CMD_PARAM); - - if (_cmdLine.isSet(u)) { - ModuleUploader *uploader = static_cast(_modules.getModule(MOD_UPLOADER)); - connect(uploader, &ModuleUploader::uploadCompleteWithQuit, qApp, &QApplication::quit); - uploader->init(); - } else - initWindow(); -#endif - -} - -bool Core::runAsMinimized() -{ - return (_cmdLine.isSet("minimized") || _cmdLine.isSet("m")); -} - -void Core::autoSave() -{ - QString format = _conf->getSaveFormat(); - QString fileName = getSaveFilePath(format); - writeScreen(fileName, format); -} - -QString Core::getVersionPrintable() -{ - QString str = "ScreenGrab: " + qApp->applicationVersion() + QString("\n"); - str += "Qt: " + QString(qVersion()) + QString("\n"); - return str; -} - -QPixmap* Core::getPixmap() -{ - return _pixelMap; -} - -QByteArray Core::getScreenData() -{ - QByteArray bytes; - QBuffer buffer(&bytes); - buffer.open(QIODevice::WriteOnly); - _pixelMap->save(&buffer, _conf->getSaveFormat().toLatin1()); - return bytes; -} - -void Core::regionGrabbed(bool grabbed) -{ - if (grabbed) - { - *_pixelMap = _selector->getSelection(); - - int x = _selector->getSelectionStartPos().x(); - int y = _selector->getSelectionStartPos().y(); - int w = _pixelMap->rect().width(); - int h = _pixelMap->rect().height(); - _lastSelectedArea.setRect(x, y, w, h); - - checkAutoSave(); - } - - _wnd->updatePixmap(_pixelMap); - _selector->deleteLater(); -} diff --git a/src/core/core.h b/src/core/core.h deleted file mode 100644 index 49cb965..0000000 --- a/src/core/core.h +++ /dev/null @@ -1,149 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ -#ifndef SCREENGRAB_H -#define SCREENGRAB_H - -#ifndef STR_PROC -#define STR_PROC "screengrab-qt" -#endif - -#include "config.h" -#include "regionselect.h" -#include "modulemanager.h" - -#include "ui/mainwindow.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -struct StateNotifyMessage { - QString header; - QString message; - - StateNotifyMessage() - { - header.clear(); - message.clear(); - }; - - StateNotifyMessage(QString h, QString m) - { - header = h; - message = m; - }; -}; - -class Core : public QObject -{ - Q_OBJECT - -public Q_SLOTS: - void coreQuit(); - void setScreen(); - - void screenShot(bool first = false); - void autoSave(); - -public: - enum ScreenshotType { - FullScreen = 0, - Window, - Area, - PreviousSelection - }; - - static Core* instance(); - ~Core(); - - void initWindow(const QString& ipcMessage = QString()); - - - void sleep(int msec = 350); - static QString getVersionPrintable(); - - QPixmap* getPixmap(); - QByteArray getScreenData(); - - void updatePixmap(); - QString getTempFilename(const QString& format); - void killTempFile(); - bool writeScreen(QString& fileName, QString& format, bool tmpScreen = false); - void copyScreen(); - void openInExtViewer(); - - ModuleManager* modules(); - void addCmdLineOption(const QCommandLineOption& option); - bool checkCmdLineOption(const QCommandLineOption& option); - bool checkCmdLineOptions(const QStringList& options); - void processCmdLineOpts(const QStringList& arguments); - - bool runAsMinimized(); - - QString getSaveFilePath(const QString &format); - QString getDateTimeFileName(); - Config* config(); - -private: - Core(); - Core(const Core &); - Core& operator=(const Core &); - - static Core *corePtr; - - void checkAutoSave(bool first = false); - - void getActiveWindow(); - void grabCursor(int offsetX, int offsetY); - void sendSystemNotify(const StateNotifyMessage& notify); - bool checkExsistFile(const QString &path); - QString copyFileNameToCliipboard(QString file); - void sendNotify(const StateNotifyMessage& message); - - QPixmap *_pixelMap; // pixel map - RegionSelect *_selector; // region grabber widget - QRect _lastSelectedArea; - - QCommandLineParser _cmdLine; - ModuleManager _modules; - QString _tempFilename; - Config *_conf; - MainWindow *_wnd; - - bool _hided; - bool _firstScreen; - - QList _screenTypeOpts; - -private Q_SLOTS: - void regionGrabbed(bool grabbed); - void closeExtViewer(int exitCode, QProcess::ExitStatus exitStatus); - -}; - -#endif // SCREENGRAB_H diff --git a/src/core/dbusnotifier.cpp b/src/core/dbusnotifier.cpp deleted file mode 100644 index d022095..0000000 --- a/src/core/dbusnotifier.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include -#include -#include -#include -#include - -#include - -#include "dbusnotifier.h" - -#include "config.h" - -#define SERVICE_FREEDESKTOP "org.freedesktop.Notifications" -#define PATH_FREEDESKTOP "/org/freedesktop/Notifications" ,"org.freedesktop.Notifications" - -#define CACHE_DIR "notify-cache" -#define CACHE_PREV "preview.jpg" - -DBusNotifier::DBusNotifier(QObject *parent) : QObject(parent) -{ - _notifier = new QDBusInterface(SERVICE_FREEDESKTOP, PATH_FREEDESKTOP, - QDBusConnection::sessionBus(), this); - if (_notifier->lastError().type() != QDBusError::NoError) { - qWarning() << "Notify: Unable to create interface."; - return; - } - - qWarning() << "Notify: DBus interfece created successfully."; - - QDir dir(Config::getConfigDir()); - if (!dir.exists(CACHE_DIR)) - dir.mkdir(CACHE_DIR); - - _previewPath = dir.absolutePath() + QDir::toNativeSeparators(QDir::separator()) + CACHE_PREV; - _appIconPath = QString(SG_ICONPATH); - - _notifyDuration = Config::instance()->getTimeTrayMess() * 1000; - -} - -DBusNotifier::~DBusNotifier() -{ - if (!_previewPath.isEmpty()) { - QDir dir(QDir::home()); - dir.remove(_previewPath); - } -} - - -void DBusNotifier::displayNotify(const StateNotifyMessage &message) -{ - QList n = prepareNotification(message); - - if (!n.isEmpty()) { - QDBusReply reply = _notifier->callWithArgumentList(QDBus::Block,"Notify",n); - } - - deleteLater(); -} - -QList DBusNotifier::prepareNotification(const StateNotifyMessage& message) -{ - QList args; - - args << "Screen Grab"; - args << QVariant(QVariant::UInt); // id - - // app-icon(path to icon on disk) - args << _appIconPath; - - // summary (notification title) - args << message.header; - - // message text - args << message.message; - - // actions is none - args << QStringList(); - - // hints - args << QVariantMap(); - - // timeout - args << _notifyDuration; - - return args; -} - diff --git a/src/core/dbusnotifier.h b/src/core/dbusnotifier.h deleted file mode 100644 index 3bb8148..0000000 --- a/src/core/dbusnotifier.h +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef DBUSNOTIFIER_H -#define DBUSNOTIFIER_H - -#include - -#include "core.h" - -class QDBusInterface; - -class DBusNotifier : public QObject -{ - Q_OBJECT -public: - explicit DBusNotifier(QObject *parent = 0); - ~DBusNotifier(); - - void displayNotify(const StateNotifyMessage& message); - -private: - QList prepareNotification(const StateNotifyMessage& message); - - QDBusInterface *_notifier; - int _notifyDuration; - QString _appIconPath; - QString _previewPath; -}; - -#endif // DBUSNOTIFIER_H diff --git a/src/core/main.cpp b/src/core/main.cpp deleted file mode 100644 index 9405f1a..0000000 --- a/src/core/main.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "singleapp.h" -#include "core/core.h" -#include "ui/mainwindow.h" - -#include - -int main(int argc, char *argv[]) -{ - SingleApp scr(argc, argv, VERSION); - scr.setApplicationVersion(VERSION); - scr.setOrganizationName(QStringLiteral("lxqt")); - scr.setOrganizationDomain(QStringLiteral("https://lxqt.org")); - scr.setApplicationName(QStringLiteral("screengrab")); - scr.setAttribute(Qt::AA_UseHighDpiPixmaps, true); - Core *ScreenGrab = Core::instance(); - ScreenGrab->modules()->initModules(); - ScreenGrab->processCmdLineOpts(scr.arguments()); - - QObject::connect(&scr, &SingleApp::messageReceived, ScreenGrab, &Core::initWindow); - - if (!ScreenGrab->config()->getAllowMultipleInstance() && scr.isRunning()) - { - QString type = QString::number(ScreenGrab->config()->getDefScreenshotType()); - scr.sendMessage("screengrab --type=" + type); - return 0; - } - - return scr.exec(); -} diff --git a/src/core/modulemanager.cpp b/src/core/modulemanager.cpp deleted file mode 100644 index c2ab1c2..0000000 --- a/src/core/modulemanager.cpp +++ /dev/null @@ -1,118 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "modulemanager.h" - -// #ifdef SG_EXT_UPLOADS -// #include "src/modules/uploader/moduleuploader.h" -// #endif - -#ifdef SG_EXT_EDIT -#include "src/modules/extedit/moduleextedit.h" -#endif - -#include - -ModuleManager::ModuleManager() -{ - _modules = new ModuleList_t(); -} - -void ModuleManager::initModules() -{ -//#ifdef SG_EXT_UPLOADS -// ModuleUploader *uploader = new ModuleUploader(); -// _modules->insert(MOD_UPLOADER , uploader); -//#endif -#ifdef SG_EXT_EDIT - ModuleExtEdit *extedit = new ModuleExtEdit(); - _modules->insert(MOD_EXT_EDIT.data(), extedit); -#endif -} - -AbstractModule* ModuleManager::getModule(const QByteArray& name) -{ - if (_modules->contains(name)) - return _modules->value(name); - return nullptr; -} - -AbstractModule* ModuleManager::getModule(const quint8 numid) -{ - if (numid < _modules->count()) - { - QByteArray key = _modules->keys().at(numid); - return _modules->value(key); - } - - return nullptr; -} - -QList ModuleManager::generateModulesMenus(const QStringList &modules) -{ - QList list; - if (modules.isEmpty() == true) - { - for (int i =0; i < _modules->keys().count(); ++i) - { - QMenu *menu = _modules->value(_modules->keys().at(i))->initModuleMenu(); - list.append(menu); - } - } - else - { - for (int i = 0; i < modules.count(); ++i) - { - QByteArray currentKey = modules.at(i).toLatin1(); - QMenu *menu = _modules->value(currentKey)->initModuleMenu(); - list.append(menu); - } - } - - return list; -} - -QList ModuleManager::generateModulesActions(const QStringList &modules) -{ - QList list; - - if (modules.isEmpty()) - { - for (int i =0; i < _modules->keys().count(); ++i) - { - QAction *action = _modules->value(_modules->keys().at(i))->initModuleAction(); - list.append(action); - } - } - else - { - for (int i = 0; i < modules.count(); ++i) - { - QByteArray currentKey = modules.at(i).toLatin1(); - QAction *action = _modules->value(currentKey)->initModuleAction(); - list.append(action); - } - } - - return list; -} - -quint8 ModuleManager::count() -{ - return _modules->count(); -} diff --git a/src/core/modulemanager.h b/src/core/modulemanager.h deleted file mode 100644 index 1bef3e6..0000000 --- a/src/core/modulemanager.h +++ /dev/null @@ -1,51 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef MODULEMANAGER_H -#define MODULEMANAGER_H - -#include "modules/abstractmodule.h" - -#include -#include -#include -#include - -#include - -const QByteArray MOD_UPLOADER = "uploader"; -const QByteArray MOD_EXT_EDIT = "extedit"; - -typedef QMap ModuleList_t; - -class ModuleManager -{ -public: - ModuleManager(); - void initModules(); - AbstractModule* getModule(const QByteArray& name); - AbstractModule* getModule(const quint8 numid); - QList generateModulesMenus(const QStringList &modules = QStringList()); - QList generateModulesActions(const QStringList &modules = QStringList()); - quint8 count(); - -private: - ModuleList_t *_modules; -}; - -#endif // MODULEMANAGER_H diff --git a/src/core/regionselect.cpp b/src/core/regionselect.cpp deleted file mode 100644 index 9cce22a..0000000 --- a/src/core/regionselect.cpp +++ /dev/null @@ -1,383 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "src/core/regionselect.h" - -#include -#include -#include - -RegionSelect::RegionSelect(Config *mainconf, QWidget *parent) - :QWidget(parent) -{ - _conf = mainconf; - sharedInit(); - - move(0, 0); - drawBackGround(); - - _processSelection = false; - _fittedSelection = false; - - show(); - - grabKeyboard(); - grabMouse(); -} - -RegionSelect::RegionSelect(Config* mainconf, const QRect& lastRect, QWidget* parent) - : QWidget(parent) -{ - _conf = mainconf; - sharedInit(); - _selectRect = lastRect; - - move(0, 0); - drawBackGround(); - - _processSelection = false; - _fittedSelection = false; - - show(); - - grabKeyboard(); - grabMouse(); -} - -RegionSelect::~RegionSelect() -{ - _conf = nullptr; - delete _conf; -} - -void RegionSelect::sharedInit() -{ - setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint); - setWindowState(Qt::WindowFullScreen); - setCursor(Qt::CrossCursor); - - _sizeDesktop = QApplication::desktop()->size(); - resize(_sizeDesktop); - - const QList screens = qApp->screens(); - const QDesktopWidget *desktop = QApplication::desktop(); - const int screenNum = desktop->screenNumber(QCursor::pos()); - - if (screenNum < screens.count()) { - _desktopPixmapBkg = screens[screenNum]->grabWindow(desktop->winId()); - } - - _desktopPixmapClr = _desktopPixmapBkg; -} - -void RegionSelect::paintEvent(QPaintEvent *event) -{ - Q_UNUSED(event) - QPainter painter(this); - - painter.drawPixmap(QPoint(0, 0), _desktopPixmapBkg); - - drawRectSelection(painter); -} - -void RegionSelect::mousePressEvent(QMouseEvent* event) -{ - if (event->button() != Qt::LeftButton && event->button() != Qt::RightButton) - return; - - _selStartPoint = event->pos(); - _processSelection = true; -} - -void RegionSelect::mouseReleaseEvent(QMouseEvent* event) -{ - _selEndPoint = event->pos(); - _processSelection = false; - if (event->button() == Qt::RightButton && !_fittedSelection) - selectFit(); -} - -void RegionSelect::mouseDoubleClickEvent(QMouseEvent* event) -{ - if (event->button() != Qt::LeftButton) - return; - - Q_EMIT processDone(true); -} - -void RegionSelect::mouseMoveEvent(QMouseEvent *event) -{ - if (_processSelection) - { - _selEndPoint = event->pos(); - _selectRect = QRect(_selStartPoint, _selEndPoint).normalized(); - _fittedSelection = false; - update(); - } -} - -void RegionSelect::keyPressEvent(QKeyEvent* event) -{ - // canceled select screen area - if (event->key() == Qt::Key_Escape) - Q_EMIT processDone(false); - // canceled select screen area - else if (event->key() == Qt::Key_Space) - selectFit(); - else if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) - Q_EMIT processDone(true); - else - event->ignore(); -} - -void RegionSelect::drawBackGround() -{ - // create painter on pixelmap of desktop - QPainter painter(&_desktopPixmapBkg); - - // set painter brush on 85% transparency - painter.setBrush(QBrush(QColor(0, 0, 0, 85), Qt::SolidPattern)); - - // draw rect of desktop size in poainter - painter.drawRect(QApplication::desktop()->rect()); - - QRect txtRect = QApplication::desktop()->screenGeometry(QApplication::desktop()->primaryScreen()); - QString txtTip = QApplication::tr("Use your mouse to draw a rectangle to screenshot or exit pressing\nany key or using the right or middle mouse buttons."); - - txtRect.setHeight(qRound((float) (txtRect.height() / 10))); // rounded val of text rect height - - painter.setPen(QPen(Qt::red)); // ste message rect border color - painter.setBrush(QBrush(QColor(255, 255, 255, 180), Qt::SolidPattern)); - QRect txtBgRect = painter.boundingRect(txtRect, Qt::AlignCenter, txtTip); - - // set height & width of bkg rect - txtBgRect.setX(txtBgRect.x() - 6); - txtBgRect.setY(txtBgRect.y() - 4); - txtBgRect.setWidth(txtBgRect.width() + 12); - txtBgRect.setHeight(txtBgRect.height() + 8); - - painter.drawRect(txtBgRect); - - // Draw the text - painter.setPen(QPen(Qt::black)); // black color pen - painter.drawText(txtBgRect, Qt::AlignCenter, txtTip); - - // set bkg to pallette widget - QPalette newPalette = palette(); - newPalette.setBrush(QPalette::Window, QBrush(_desktopPixmapBkg)); - setPalette(newPalette); -} - -void RegionSelect::drawRectSelection(QPainter &painter) -{ - painter.drawPixmap(_selectRect, _desktopPixmapClr, _selectRect); - painter.setPen(QPen(QBrush(QColor(0, 0, 0, 255)), 2)); - painter.drawRect(_selectRect); - - QString txtSize = QApplication::tr("%1 x %2 pixels ").arg(_selectRect.width()).arg(_selectRect.height()); - painter.drawText(_selectRect, Qt::AlignBottom | Qt::AlignRight, txtSize); - - if (!_selEndPoint.isNull() && _conf->getZoomAroundMouse()) - { - const quint8 zoomSide = 200; - - // create magnifer coords - QPoint zoomStart = _selEndPoint; - zoomStart -= QPoint(zoomSide/5, zoomSide/5); // 40, 40 - - QPoint zoomEnd = _selEndPoint; - zoomEnd += QPoint(zoomSide/5, zoomSide/5); - - // creating rect area for magnifer - QRect zoomRect = QRect(zoomStart, zoomEnd); - - QPixmap zoomPixmap = _desktopPixmapClr.copy(zoomRect).scaled(QSize(zoomSide, zoomSide), Qt::KeepAspectRatio); - - QPainter zoomPainer(&zoomPixmap); // create painter from pixmap maignifer - zoomPainer.setPen(QPen(QBrush(QColor(255, 0, 0, 180)), 2)); - zoomPainer.drawRect(zoomPixmap.rect()); // draw - zoomPainer.drawText(zoomPixmap.rect().center() - QPoint(4, -4), "+"); - - // position for drawing preview - QPoint zoomCenter = _selectRect.bottomRight(); - - if (zoomCenter.x() + zoomSide > _desktopPixmapClr.rect().width() - || zoomCenter.y() + zoomSide > _desktopPixmapClr.rect().height()) - zoomCenter -= QPoint(zoomSide, zoomSide); - painter.drawPixmap(zoomCenter, zoomPixmap); - } -} - -void RegionSelect::selectFit() -{ - if (_fittedSelection) - _currentFit = (_currentFit + 1) % _fitRectangles.size(); - else - { - findFit(); - _currentFit = 1; - _fittedSelection = true; - } - _selectRect = _fitRectangles[_currentFit]; - update(); -} - -void RegionSelect::findFit() -{ - QRect boundingRect; - int left = _selectRect.left(); - int top = _selectRect.top(); - int right = _selectRect.right(); - int bottom = _selectRect.bottom(); - - _fitRectangles.clear(); - _fitRectangles.push_back(_selectRect); - - // Set the rectangle in which to search for borders - if (_conf->getFitInside()) - boundingRect = _selectRect; - else - { - boundingRect.setLeft(qMax(left - fitRectExpand, 0)); - boundingRect.setTop(qMax(top - fitRectExpand, 0)); - boundingRect.setRight(qMin(right + fitRectExpand, _sizeDesktop.width() - 1)); - boundingRect.setBottom(qMin(bottom + fitRectExpand, _sizeDesktop.height() - 1)); - } - - // Find borders inside boundingRect - fitBorder(boundingRect, LEFT, left); - fitBorder(boundingRect, TOP, top); - fitBorder(boundingRect, RIGHT, right); - fitBorder(boundingRect, BOTTOM, bottom); - - const QRect fitRectangle = QRect(QPoint(left, top), QPoint(right, bottom)); - _fitRectangles.push_back(fitRectangle); -} - -void RegionSelect::fitBorder(const QRect &boundRect, enum Side side, int &border) -{ - const QImage boundImage = _desktopPixmapClr.copy(boundRect).toImage(); - - // Set the relative coordinates of a box vertex and a vector along the box side - QPoint startPoint; - QPoint directionVector; - switch(side){ - case TOP: - startPoint = QPoint(0,0); - directionVector = QPoint(1,0); - break; - case RIGHT: - startPoint = boundRect.topRight() - boundRect.topLeft(); - directionVector = QPoint(0,1); - break; - case BOTTOM: - startPoint = boundRect.bottomRight() - boundRect.topLeft(); - directionVector = QPoint(-1,0); - break; - case LEFT: - startPoint = boundRect.bottomLeft() - boundRect.topLeft(); - directionVector = QPoint(0,-1); - break; - default: - return; - } - - // Set vector normal to the box side - QPoint normalVector = QPoint(-directionVector.y(), directionVector.x()); - - // Setbox dimensions relative to the box side - int directionLength; - int normalDepth; - if (directionVector.x() == 0) - { - directionLength = boundRect.height() - 1; - normalDepth = boundRect.width() - 1; - } - else - { - directionLength = boundRect.width() - 1; - normalDepth = boundRect.height() - 1; - } - - // Set how deep in the boundingRect to search for the border - if (_conf->getFitInside()) - normalDepth = qMin(normalDepth/2 - 1, fitRectDepth); - else - normalDepth = qMin(normalDepth/2 - 1, fitRectDepth + fitRectExpand); - - QVector gradient = QVector(normalDepth, 0); - QVector preR = QVector(normalDepth + 1, 0); - QVector preG = QVector(normalDepth + 1, 0); - QVector preB = QVector(normalDepth + 1, 0); - - // Compute pixel Sobel normal gradients and add their absolute values parallel to the box side - for (int i = 1; i < directionLength; i++) - { - for (int j = 0; j <= normalDepth; j++) - { - QPoint point = startPoint + i*directionVector + j*normalVector; - QRgb pixelL = boundImage.pixel(point - directionVector); - QRgb pixelC = boundImage.pixel(point); - QRgb pixelR = boundImage.pixel(point + directionVector); - preR[j] = qRed(pixelL) + 2*qRed(pixelC) + qRed(pixelR); - preG[j] = qGreen(pixelL) + 2*qGreen(pixelC) + qGreen(pixelR); - preB[j] = qBlue(pixelL) + 2*qBlue(pixelC) + qBlue(pixelR); - } - for (int j = 1; j < normalDepth; j++) - gradient[j] += qAbs(preR[j-1] - preR[j+1]) + qAbs(preG[j-1] - preG[j+1]) + qAbs(preB[j-1] - preB[j+1]); - } - - int maxGradient = 0; - int positionMax = 0; - for (int j = 1; j < normalDepth; j++) - { - // Scale pixel normal gradients and break if drop detected - gradient[j] = 1 + gradient[j]/(60*directionLength); - if (_conf->getFitInside() && gradient[j] <= maxGradient/2) - break; - - // Keep searching for the maximum normal gradient - if (gradient[j] > maxGradient) - { - maxGradient = gradient[j]; - positionMax = j; - } - } - // If all normal gradients small, keep the original user selected border - if (maxGradient <= 1) - return; - - // Transform computed border back to original coordinates - startPoint = boundRect.topLeft() + startPoint + (positionMax + 1)*normalVector; - if (normalVector.x() == 0) - border = startPoint.y(); - else - border = startPoint.x(); -} - -QPixmap RegionSelect::getSelection() -{ - QPixmap sel; - sel = _desktopPixmapClr.copy(_selectRect); - return sel; -} - -QPoint RegionSelect::getSelectionStartPos() -{ - return _selectRect.topLeft(); -} diff --git a/src/core/regionselect.h b/src/core/regionselect.h deleted file mode 100644 index dae8cb1..0000000 --- a/src/core/regionselect.h +++ /dev/null @@ -1,92 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef REGIONSELECT_H -#define REGIONSELECT_H - -#include "config.h" - -//#include -#include - -#include -#include -#include -#include -#include - -enum Side{ - TOP, - RIGHT, - BOTTOM, - LEFT -}; - -// class RegionSelect : public QDialog -class RegionSelect : public QWidget -{ - Q_OBJECT -public: - RegionSelect(Config *mainconf, QWidget *parent = 0); - RegionSelect(Config *mainconf, const QRect& lastRect, QWidget *parent = 0); - virtual ~RegionSelect(); - QPixmap getSelection(); - QPoint getSelectionStartPos(); - -protected: - void paintEvent(QPaintEvent *event); - void mousePressEvent(QMouseEvent *event); - void mouseReleaseEvent(QMouseEvent *event); - void mouseDoubleClickEvent(QMouseEvent *event); - void mouseMoveEvent(QMouseEvent *event); - void keyPressEvent(QKeyEvent *event); - -Q_SIGNALS: - void processDone(bool grabbed); - -private: - QRect _selectRect; - QSize _sizeDesktop; - - QPoint _selStartPoint; - QPoint _selEndPoint; - - int _currentFit; - QVector _fitRectangles; - - bool _processSelection; - bool _fittedSelection; - - QPixmap _desktopPixmapBkg; - QPixmap _desktopPixmapClr; - - void sharedInit(); - void drawBackGround(); - void drawRectSelection(QPainter &painter); - void selectFit(); - void findFit(); - void fitBorder(const QRect &boundRect, enum Side side, int &border); - - Config *_conf; - - const int fitRectExpand = 20; - const int fitRectDepth = 50; - -}; - -#endif // REGIONSELECT_H diff --git a/src/core/shortcutmanager.cpp b/src/core/shortcutmanager.cpp deleted file mode 100644 index dd2fdf1..0000000 --- a/src/core/shortcutmanager.cpp +++ /dev/null @@ -1,147 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "shortcutmanager.h" -#include "src/core/config.h" - -const QString DEF_SHORTCUT_NEW = "Ctrl+N"; -const QString DEF_SHORTCUT_SAVE = "Ctrl+S"; -const QString DEF_SHORTCUT_COPY = "Ctrl+C"; -const QString DEF_SHORTCUT_OPT = "Ctrl+P"; -const QString DEF_SHORTCUT_HELP = "F1"; -const QString DEF_SHORTCUT_CLOSE = "Esc"; -const QString DEF_SHORTCUT_FULL = ""; -const QString DEF_SHORTCUT_ACTW = ""; -const QString DEF_SHORTCUT_AREA = ""; - -const QString KEY_SHORTCUT_FULL = "FullScreen"; -const QString KEY_SHORTCUT_ACTW = "ActiveWindow"; -const QString KEY_SHORTCUT_AREA = "AreaSelection"; -const QString KEY_SHORTCUT_NEW = "NewScreen"; -const QString KEY_SHORTCUT_SAVE = "SaveScreen"; -const QString KEY_SHORTCUT_COPY = "CopyScreen"; -const QString KEY_SHORTCUT_OPT = "Options"; -const QString KEY_SHORTCUT_HELP = "Help"; -const QString KEY_SHORTCUT_CLOSE = "Close"; - -ShortcutManager::ShortcutManager(QSettings *settings) : - _shortcutSettings(new QSettings) -{ - _shortcutSettings = settings; - - for (int i = Config::shortcutFullScreen; i <= Config::shortcutClose; ++i) - _listShortcuts << Shortcut(); -} - -ShortcutManager::~ShortcutManager() -{ - _shortcutSettings = nullptr; - delete _shortcutSettings; -} - -void ShortcutManager::loadSettings() -{ - _shortcutSettings->beginGroup("LocalShortcuts"); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_NEW, DEF_SHORTCUT_NEW).toString(), - Config::shortcutNew, Config::localShortcut); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_SAVE, DEF_SHORTCUT_SAVE).toString(), - Config::shortcutSave, Config::localShortcut); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_COPY, DEF_SHORTCUT_COPY).toString(), - Config::shortcutCopy, Config::localShortcut); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_OPT, DEF_SHORTCUT_OPT).toString(), - Config::shortcutOptions, Config::localShortcut); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_HELP, DEF_SHORTCUT_HELP).toString(), - Config::shortcutHelp, Config::localShortcut); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_CLOSE, DEF_SHORTCUT_CLOSE).toString(), - Config::shortcutClose, Config::localShortcut); - _shortcutSettings->endGroup(); - - _shortcutSettings->beginGroup("GlobalShortcuts"); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_FULL, DEF_SHORTCUT_FULL).toString(), - Config::shortcutFullScreen, Config::globalShortcut); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_ACTW, DEF_SHORTCUT_ACTW).toString(), - Config::shortcutActiveWnd, Config::globalShortcut); - setShortcut(_shortcutSettings->value(KEY_SHORTCUT_AREA, DEF_SHORTCUT_AREA).toString(), - Config::shortcutAreaSelect, Config::globalShortcut); - _shortcutSettings->endGroup(); -} - -void ShortcutManager::saveSettings() -{ - _shortcutSettings->beginGroup("LocalShortcuts"); - _shortcutSettings->setValue(KEY_SHORTCUT_NEW, getShortcut(Config::shortcutNew)); - _shortcutSettings->setValue(KEY_SHORTCUT_SAVE, getShortcut(Config::shortcutSave)); - _shortcutSettings->setValue(KEY_SHORTCUT_COPY, getShortcut(Config::shortcutCopy)); - _shortcutSettings->setValue(KEY_SHORTCUT_OPT, getShortcut(Config::shortcutOptions)); - _shortcutSettings->setValue(KEY_SHORTCUT_HELP, getShortcut(Config::shortcutHelp)); - _shortcutSettings->setValue(KEY_SHORTCUT_CLOSE, getShortcut(Config::shortcutClose)); - _shortcutSettings->endGroup(); - - _shortcutSettings->beginGroup("GlobalShortcuts"); - _shortcutSettings->setValue(KEY_SHORTCUT_FULL, getShortcut(Config::shortcutFullScreen)); - _shortcutSettings->setValue(KEY_SHORTCUT_ACTW, getShortcut(Config::shortcutActiveWnd)); - _shortcutSettings->setValue(KEY_SHORTCUT_AREA, getShortcut(Config::shortcutAreaSelect)); - _shortcutSettings->endGroup(); -} - -void ShortcutManager::setDefaultSettings() -{ - setShortcut(DEF_SHORTCUT_NEW,Config::shortcutNew, Config::localShortcut); - setShortcut(DEF_SHORTCUT_SAVE,Config::shortcutSave, Config::localShortcut); - setShortcut(DEF_SHORTCUT_COPY,Config::shortcutCopy, Config::localShortcut); - setShortcut(DEF_SHORTCUT_OPT,Config::shortcutOptions, Config::localShortcut); - setShortcut(DEF_SHORTCUT_HELP,Config::shortcutHelp, Config::localShortcut); - setShortcut(DEF_SHORTCUT_CLOSE,Config::shortcutClose, Config::localShortcut); - - setShortcut(DEF_SHORTCUT_FULL,Config::shortcutFullScreen, Config::globalShortcut); - setShortcut(DEF_SHORTCUT_ACTW,Config::shortcutActiveWnd, Config::globalShortcut); - setShortcut(DEF_SHORTCUT_AREA,Config::shortcutAreaSelect, Config::globalShortcut); -} - -void ShortcutManager::setShortcut(const QString &key, int action, int type) -{ - _listShortcuts[action].key = key; - _listShortcuts[action].action = action; - _listShortcuts[action].type = type; -} - -QKeySequence ShortcutManager::getShortcut(int action) -{ - return QKeySequence(_listShortcuts[action].key);; -} - -int ShortcutManager::getShortcutType(int action) -{ - return _listShortcuts[action].type; -} - -QStringList ShortcutManager::getShortcutsList(int type) -{ - QStringList retList; - for (int i = Config::shortcutFullScreen; i <= Config::shortcutClose; ++i) - { - if (_listShortcuts[i].type == type) - { - if (!_listShortcuts[i].key.isNull()) - retList << _listShortcuts[i].key; - else - retList << QString(""); - } - } - return retList; -} diff --git a/src/core/shortcutmanager.h b/src/core/shortcutmanager.h deleted file mode 100644 index eaaa84c..0000000 --- a/src/core/shortcutmanager.h +++ /dev/null @@ -1,64 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef SHORTCUTMANAGER_H -#define SHORTCUTMANAGER_H - -#include -#include -#include -#include - -struct Shortcut { - QString key; - int type; - int action; - Shortcut() {}; - Shortcut(QString k, int t, int a) - { - key = k; - type = t; - action = a; - } -}; - -Q_DECLARE_METATYPE(Shortcut) - -typedef QVector ShortcutList; - -class ShortcutManager -{ -public: - ShortcutManager(QSettings *settings); - ~ShortcutManager(); - - void loadSettings(); - void saveSettings(); - void setDefaultSettings(); - - void setShortcut(const QString &key, int action, int type); - QKeySequence getShortcut(int action); - int getShortcutType(int action); - QStringList getShortcutsList(int type); - -private: - ShortcutList _listShortcuts; - QSettings *_shortcutSettings; -}; - -#endif // SHORTCUTMANAGER_H diff --git a/src/core/singleapp.cpp b/src/core/singleapp.cpp deleted file mode 100644 index 495e18b..0000000 --- a/src/core/singleapp.cpp +++ /dev/null @@ -1,103 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include -#include - -#include -#include "singleapp.h" - -/*! - Creates of sungle application object - \param argc Nuber of command line arguments - \param argv Array of command line argwuments - \param uniqueKey String key fo unicue shared data indefier - */ -SingleApp::SingleApp(int& argc, char* argv[], const QString &keyString) : QApplication(argc, argv), uniqueKey(keyString) -{ - sharedMemory.setKey(uniqueKey); - if (sharedMemory.attach()) - runned = true; - else - { - runned = false; - // create shared memory. - if (!sharedMemory.create(1)) - { - qDebug("Unable to create single instance."); - return; - } - // create local server and listen to incomming messages from other instances. - localServer = new QLocalServer(this); - connect(localServer, SIGNAL(newConnection()), this, SLOT(receiveMessage())); - localServer->listen(uniqueKey); - } -} - -// public slots. - -void SingleApp::receiveMessage() -{ - QLocalSocket *localSocket = localServer->nextPendingConnection(); - if (!localSocket->waitForReadyRead(timeout)) - { - qDebug("%s", qPrintable(localSocket->errorString().toLatin1())); - return; - } - QByteArray byteArray = localSocket->readAll(); - QString message = QString::fromUtf8(byteArray.constData()); - emit messageReceived(message); - localSocket->disconnectFromServer(); -} - -// public functions. - -/*! - Checking instance application - \return bool Return tue is another instance running - */ -bool SingleApp::isRunning() -{ - return runned; -} - -/*1 - Sending message to another running instance of application - \param message String dended message - \tryitn bool Return status ofsending message process - */ -bool SingleApp::sendMessage(const QString &message) -{ - if (!runned) - return false; - QLocalSocket localSocket(this); - localSocket.connectToServer(uniqueKey, QIODevice::WriteOnly); - if (!localSocket.waitForConnected(timeout)) - { - qDebug("%s",qPrintable(localSocket.errorString().toLatin1())); - return false; - } - localSocket.write(message.toUtf8()); - if (!localSocket.waitForBytesWritten(timeout)) - { - qDebug("%s",qPrintable(localSocket.errorString().toLatin1())); - return false; - } - localSocket.disconnectFromServer(); - return true; -} diff --git a/src/core/singleapp.h b/src/core/singleapp.h deleted file mode 100644 index fffbee1..0000000 --- a/src/core/singleapp.h +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef SINGLEAPP_H -#define SINGLEAPP_H - -#include -#include -#include - -class SingleApp : public QApplication -{ - Q_OBJECT -public: - SingleApp(int &argc, char *argv[], const QString &keyString); - - bool isRunning(); - bool sendMessage(const QString &message); - -public Q_SLOTS: - void receiveMessage(); - -Q_SIGNALS: - void messageReceived(const QString& message); - -private: - bool runned; - QString uniqueKey; - QSharedMemory sharedMemory; - QLocalServer *localServer; - - static const int timeout = 1000; -}; - -#endif // SINGLEAPP_H diff --git a/src/core/ui/about.cpp b/src/core/ui/about.cpp deleted file mode 100644 index 017b537..0000000 --- a/src/core/ui/about.cpp +++ /dev/null @@ -1,170 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "about.h" -#include "ui_aboutwidget.h" - -#include "../core.h" -#include - -AboutDialog::AboutDialog(QWidget *parent): - QDialog(parent), - _ui(new Ui::aboutWidget) -{ - setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::WindowSystemMenuHint); - - _ui->setupUi(this); - _ui->labAppName->setText(_ui->labAppName->text() + QString(" ") + qApp->applicationVersion() + QString("")); - - _ui->labQtVer->setText(tr("using Qt ") + qVersion()); - - QTabBar *tabs = new QTabBar; - - _ui->frame->layout()->addWidget(tabs); - _ui->frame->layout()->addWidget(_ui->txtArea); - - tabs->insertTab(0, tr("About")); - tabs->insertTab(1, tr("Thanks")); - tabs->insertTab(2, tr("Help us")); - - connect(tabs, &QTabBar::currentChanged, this, &AboutDialog::changeTab); - - _ui->txtArea->setHtml(tabAbout()); -} - -AboutDialog::~AboutDialog() -{ - delete _ui; -} - -void AboutDialog::changeTab(int tabIndex) -{ - // trnder text info - switch(tabIndex) - { - case 0: - _ui->txtArea->setHtml(tabAbout()); - break; - case 1: - _ui->txtArea->setHtml(tabThanks()); - break; - case 2: - _ui->txtArea->setHtml(tabHelpUs()); - break; - default: - _ui->txtArea->setHtml(tabAbout()); - } -} - -void AboutDialog::changeEvent(QEvent *e) -{ - QDialog::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - _ui->retranslateUi(this); - break; - default: - break; - } -} - -void AboutDialog::on_butAboutQt_clicked() -{ - qApp->aboutQt(); -} - -void AboutDialog::on_butClose_clicked() -{ - accept(); -} - -QString AboutDialog::tabAbout() -{ - QString str; - str += "ScreenGrab "; - str += tr("is a crossplatform application for fast creating screenshots of your desktop."); - str += "

"; - str += tr("It is a light and powerful application, written in Qt."); - str += "

"; - - str += tr("Website")+" - "; - str += "
https://github.com/lxqt/screengrab"; - str += "

"; - - str += tr("Licensed under the "); - str += " GPL v2"; - str += "

"; - - str += tr("Copyright © 2009-2013, Artem 'DOOMer' Galichkin"); - return str; -} - -QString AboutDialog::tabHelpUs() -{ - QString str; - str += tr("You can join us and help us if you want. This is an invitation if you like this application."); - str += "

"; - - str += tr("What you can do?"); - - str += "
    "; - str += "
  • " + tr("Translate ScreenGrab to other languages") + "
  • "; - str += "
  • " + tr("Make suggestions for next releases") + "
  • "; - str += "
  • " + tr("Report bugs and issues") + "
  • "; - str += "
"; - - str += tr("Bug tracker"); - str += "
"; - str += "https://github.com/lxqt/screengrab/issues/"; - - return str; -} - -QString AboutDialog::tabThanks() -{ - QString str; - str += "" + tr("Translate:") + ""; - str += "
"; - str += tr(" Brazilian Portuguese translation") + "
"; - str += tr("Marcio Moraes") + " <marciopanto@gmail.com>
"; - str += "
"; - str += tr(" Ukrainian translation") + "
"; - str += tr("Gennadi Motsyo") + " <drool@altlinux.ru>
"; - str += "
"; - str += tr(" Spanish translation") + "
"; - str += tr("Burjans L García D") + " <burjans@gmail.com>
"; - str += "
"; - str += tr(" Italian translation") + "
"; - str += "speps <dreamspepser@yahoo.it>
"; - str += "
"; - - str += "" + tr("Testing:") + ""; - str += "
"; - str += "Jerome Leclanche - " + tr("Dual monitor support and other in Linux") + "
"; - str += "Alexander Sokolov - " + tr("Dual monitor support in Linux") + "
"; - str += "Alexantia - " + tr("win32-build [Windows XP and 7]") + "
"; - str += "iNight - " + tr("old win32-build [Windows Vista]") + "
"; - str += "burjans - " + tr("win32-build [Windows 7]") + "
"; - - return str; -} - -void AboutDialog::on_txtArea_anchorClicked(const QUrl &url) -{ - QDesktopServices::openUrl(url); -} diff --git a/src/core/ui/about.h b/src/core/ui/about.h deleted file mode 100644 index b4c0f74..0000000 --- a/src/core/ui/about.h +++ /dev/null @@ -1,55 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef ABOUT_H -#define ABOUT_H - -#include -#include -#include - - -namespace Ui { - class aboutWidget; -} - -class AboutDialog : public QDialog { - Q_OBJECT -public: - explicit AboutDialog(QWidget *parent = 0); - ~AboutDialog(); - -protected: - void changeEvent(QEvent *e); - -private: - Ui::aboutWidget *_ui; - QTabBar *_tabs; - -private slots: - void on_txtArea_anchorClicked(const QUrl & ); - void changeTab(int tabIndex); - void on_butClose_clicked(); - void on_butAboutQt_clicked(); - - QString tabAbout(); - QString tabHelpUs(); - QString tabThanks(); -}; - -#endif // ABOUT_H diff --git a/src/core/ui/aboutwidget.ui b/src/core/ui/aboutwidget.ui deleted file mode 100644 index b9bbf44..0000000 --- a/src/core/ui/aboutwidget.ui +++ /dev/null @@ -1,167 +0,0 @@ - - - aboutWidget - - - - 0 - 0 - 559 - 314 - - - - - 0 - 0 - - - - - 559 - 314 - - - - - 16777215 - 16777215 - - - - About ScreenGrab - - - - QLayout::SetDefaultConstraint - - - - - - - - 0 - 0 - - - - QFrame::Plain - - - - - - :/res/img/logo.png - - - - - - - - - <b>ScreenGrab</b> - - - Qt::AlignCenter - - - - - - - - - - Qt::AlignCenter - - - - - - - - - - Qt::AlignCenter - - - - - - - - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - false - - - false - - - - - - - - - - - - - 112 - 0 - - - - About Qt - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 112 - 0 - - - - Close - - - - - - - - - - - - - diff --git a/src/core/ui/configwidget.cpp b/src/core/ui/configwidget.cpp deleted file mode 100644 index 043e872..0000000 --- a/src/core/ui/configwidget.cpp +++ /dev/null @@ -1,489 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * -***************************************************************************/ - -#include - -#include "configwidget.h" -#include "ui_configwidget.h" -#include "../core.h" - -#ifdef SG_GLOBAL_SHORTCUTS -#include -#endif - -#include -#include -#include -#include -#include - -ConfigDialog::ConfigDialog(QWidget *parent) : - QDialog(parent), - _ui(new Ui::configwidget) -{ - _ui->setupUi(this); - conf = Config::instance(); - - connect(_ui->buttonBox->button(QDialogButtonBox::Save), &QPushButton::clicked, this, &ConfigDialog::saveSettings); - connect(_ui->buttonBrowse, &QPushButton::clicked, this, &ConfigDialog::selectDir); - connect(_ui->buttonBox->button(QDialogButtonBox::RestoreDefaults), &QPushButton::clicked, this, &ConfigDialog::restoreDefaults); - connect(_ui->checkIncDate, &QCheckBox::toggled, this, &ConfigDialog::setVisibleDateTplEdit); - connect(_ui->keyWidget, &QKeySequenceWidget::keySequenceAccepted, this, &ConfigDialog::acceptShortcut); - connect(_ui->keyWidget, &QKeySequenceWidget::keyNotSupported, this, &ConfigDialog::keyNotSupported); - connect(_ui->checkAutoSave, &QCheckBox::toggled, this, &ConfigDialog::setVisibleAutoSaveFirst); - connect(_ui->buttonBox->button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &ConfigDialog::reject); - connect(_ui->treeKeys, &QTreeWidget::expanded, _ui->treeKeys, &QTreeWidget::clearSelection); - connect(_ui->treeKeys, &QTreeWidget::collapsed, this, &ConfigDialog::collapsTreeKeys); - connect(_ui->checkShowTray, &QCheckBox::toggled, this, &ConfigDialog::toggleCheckShowTray); - connect(_ui->editDateTmeTpl, &QLineEdit::textEdited, this, &ConfigDialog::editDateTmeTpl); - - void (QSpinBox::*timeToTray)(int) = &QSpinBox::valueChanged; - connect(_ui->timeTrayMess, timeToTray, this, &ConfigDialog::changeTimeTrayMess); - - void (QComboBox::*trayMessType)(int) = &QComboBox::currentIndexChanged; - connect(_ui->cbxTrayMsg, trayMessType, this, &ConfigDialog::changeTrayMsgType); - - connect(_ui->treeKeys, &QTreeWidget::doubleClicked, this, &ConfigDialog::doubleclickTreeKeys); - connect(_ui->treeKeys, &QTreeWidget::activated, this, &ConfigDialog::doubleclickTreeKeys); - connect(_ui->treeKeys->selectionModel(), &QItemSelectionModel::currentChanged, - this, &ConfigDialog::currentItemChanged); - connect(_ui->keyWidget, &QKeySequenceWidget::keySequenceCleared, this, &ConfigDialog::clearShrtcut); - connect(_ui->listWidget, &QListWidget::currentRowChanged, _ui->stackedWidget, &QStackedWidget::setCurrentIndex); - connect(_ui->slideImgQuality, &QSlider::valueChanged, this, &ConfigDialog::changeImgQualituSlider); - - void (QComboBox::*formatChabge)(int) = &QComboBox::currentIndexChanged; - connect(_ui->cbxFormat, formatChabge, this, &ConfigDialog::changeFormatType); - - loadSettings(); - setVisibleDateTplEdit(conf->getDateTimeInFilename()); - - setVisibleAutoSaveFirst(conf->getAutoSave()); - - _ui->listWidget->setCurrentRow(0); - - editDateTmeTpl(conf->getDateTimeTpl()); - - _ui->treeKeys->expandAll(); - _ui->treeKeys->header()->setSectionResizeMode(QHeaderView::Stretch); - - // adding shortcut values in treewidge - int action = 0; - QTreeWidgetItemIterator iter(_ui->treeKeys); - while (*iter) - { - if ((*iter)->parent() != nullptr) - { - (*iter)->setData(1, Qt::DisplayRole, conf->shortcuts()->getShortcut(action)); - -#ifndef SG_GLOBAL_SHORTCUTS - if (conf->shortcuts()->getShortcutType(action) == Config::globalShortcut) - (*iter)->setHidden(true); -#endif - ++action; - } - else - { -#ifndef SG_GLOBAL_SHORTCUTS - int numGlobalShortcuts = conf->shortcuts()->getShortcutsList(Config::globalShortcut).count(); - if ((*iter)->childCount() == numGlobalShortcuts) - (*iter)->setHidden(true); -#endif - } - - ++iter; - } - - // set false visibility to edit hokey controls - _ui->labUsedShortcut->setVisible(false); - _ui->keyWidget->setVisible(false); - - // Load config widgets for modules - quint8 countModules = Core::instance()->modules()->count(); - - for (int i = 0; i < countModules; ++i) - { - AbstractModule* currentModule = Core::instance()->modules()->getModule(i); - - if (currentModule->initConfigWidget() != nullptr) - { - _ui->listWidget->addItem(currentModule->moduleName()); - QWidget *currentModWidget = currentModule->initConfigWidget(); - _ui->stackedWidget->addWidget(currentModWidget); - _moduleWidgetNames << currentModWidget->objectName(); - } - } -} - -ConfigDialog::~ConfigDialog() -{ - delete _ui; - conf = nullptr; - delete conf; -} - -void ConfigDialog::loadSettings() -{ - // main tab - _ui->editDir->setText(conf->getSaveDir()); - _ui->editFileName->setText(conf->getSaveFileName()); - - _ui->cbxFormat->addItems(conf->getFormatIDs()); - _ui->cbxFormat->setCurrentIndex(conf->getDefaultFormatID()); - - _ui->checkIncDate->setChecked(conf->getDateTimeInFilename()); - _ui->editDateTmeTpl->setText(conf->getDateTimeTpl()); - _ui->cbxCopyFileName->setCurrentIndex(conf->getAutoCopyFilenameOnSaving()); - - // display tab - _ui->cbxTrayMsg->setCurrentIndex(conf->getTrayMessages()); - changeTrayMsgType(_ui->cbxTrayMsg->currentIndex()); - _ui->timeTrayMess->setValue(conf->getTimeTrayMess()); - _ui->checkAutoSave->setChecked(conf->getAutoSave()); - _ui->checkAutoSaveFirst->setChecked(conf->getAutoSaveFirst()); - - _ui->checkInTray->setChecked(conf->getCloseInTray()); - _ui->checkAllowCopies->setChecked(conf->getAllowMultipleInstance()); - - _ui->checkShowTray->setChecked(conf->getShowTrayIcon()); - toggleCheckShowTray(conf->getShowTrayIcon()); - - _ui->slideImgQuality->setValue(conf->getImageQuality()); - _ui->cbxEnableExtView->setChecked(conf->getEnableExtView()); - - _ui->checkFitInside->setChecked(conf->getFitInside()); -} - - -void ConfigDialog::changeEvent(QEvent *e) -{ - QWidget::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - _ui->retranslateUi(this); - break; - default: - break; - } -} - -void ConfigDialog::setVisibleAutoSaveFirst(bool status) -{ - _ui->checkAutoSaveFirst->setVisible(status); -} - -void ConfigDialog::changeFormatType(int type) -{ - if (type == 1) - _ui->groupQuality->setVisible(true); - else - _ui->groupQuality->setVisible(false); -} - - -void ConfigDialog::changeImgQualituSlider(int pos) -{ - QString text = " " + QString::number(pos) + "%"; - _ui->labImgQualityCurrent->setText(text); -} - -void ConfigDialog::saveSettings() -{ - QDir screenshotDir(_ui->editDir->text()); - if (!screenshotDir.exists()) - { - QMessageBox msg; - msg.setText(tr("Directory %1 does not exist. Do you want to create it?").arg(QDir::toNativeSeparators(screenshotDir.path()) + QDir::separator())); - msg.setWindowTitle("ScreenGrab" + QString(" - ") + tr("Warning")); - msg.setIcon(QMessageBox::Question); - msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No); - - int res = msg.exec(); - - if (res == QMessageBox::No) - return; - else - { - screenshotDir.mkpath(screenshotDir.path()); - - if (!screenshotDir.path().endsWith(QDir::separator())) - { - QString updatedPath = screenshotDir.path() + QDir::separator(); - updatedPath = QDir::toNativeSeparators(updatedPath); - _ui->editDir->setText(updatedPath); - } - } - } - - // set new values of general settings - conf->setSaveDir(_ui->editDir->text()); - conf->setSaveFileName(_ui->editFileName->text()); - conf->setSaveFormat(_ui->cbxFormat->currentText()); - conf->setDateTimeInFilename(_ui->checkIncDate->isChecked()); - conf->setDateTimeTpl(_ui->editDateTmeTpl->text()); - conf->setAutoCopyFilenameOnSaving(_ui->cbxCopyFileName->currentIndex()); - conf->setAutoSave(_ui->checkAutoSave->isChecked()); - conf->setAutoSaveFirst(_ui->checkAutoSaveFirst->isChecked()); - conf->setTrayMessages(_ui->cbxTrayMsg->currentIndex()); - conf->setCloseInTray(_ui->checkInTray->isChecked()); - conf->setAllowMultipleInstance(_ui->checkAllowCopies->isChecked()); - conf->setTimeTrayMess(_ui->timeTrayMess->value()); - conf->setShowTrayIcon(_ui->checkShowTray->isChecked()); - conf->setImageQuality(_ui->slideImgQuality->value()); - conf->setEnableExtView(_ui->cbxEnableExtView->isChecked()); - conf->setFitInside(_ui->checkFitInside->isChecked()); - - // save shortcuts in shortcutmanager - int action = 0; - QTreeWidgetItemIterator iter(_ui->treeKeys); - while (*iter) - { - if ((*iter)->parent()) - { - switch((*iter)->parent()->childCount()) - { - case 3: - conf->shortcuts()->setShortcut((*iter)->data(1, Qt::DisplayRole).toString(), action, 0); - break; - case 6: - conf->shortcuts()->setShortcut((*iter)->data(1, Qt::DisplayRole).toString(), action, 1); - break; - default: - break; - } - ++action; - } - ++iter; - } - - // update values of front-end settings - conf->saveSettings(); - - // call save method on modeule's configwidgets' - for (int i = 0; i < _moduleWidgetNames.count(); ++i) - { - QString name = _moduleWidgetNames.at(i); - QWidget* currentWidget = _ui->stackedWidget->findChild(name); - if (currentWidget) - QMetaObject::invokeMethod(currentWidget, "saveSettings"); - } - - accept(); -} - -QString ConfigDialog::getFormat() -{ - switch (_ui->cbxFormat->currentIndex()) - { - case 0: return "png"; - case 1: return "jpg"; - default: return "png"; - } -} - -void ConfigDialog::selectDir() -{ - QString directory = QFileDialog::getExistingDirectory(this, trUtf8("Select directory"), - _ui->editDir->text(), QFileDialog::ShowDirsOnly); - - if (!directory.isEmpty()) { - _ui->editDir->setText(QDir::toNativeSeparators(directory)); - } -} - -void ConfigDialog::restoreDefaults() -{ - QMessageBox msg; - msg.setText(tr("Do you want to reset the settings to the defaults?")); - msg.setWindowTitle("ScreenGrab" + QString(" - ") + tr("Warning")); - msg.setIcon(QMessageBox::Question); - msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No); - - int res = msg.exec(); - - if (res == QMessageBox::Yes) - { - conf->setDefaultSettings(); - conf->saveSettings(); - QDialog::accept(); - } -} - -void ConfigDialog::changeTimeTrayMess(int sec) -{ - conf->setTimeTrayMess(sec); -} - -void ConfigDialog::changeTrayMsgType(int type) -{ - switch(type) - { - case 0: - { - _ui->labTimeTrayMess->setVisible(false); - _ui->timeTrayMess->setVisible(false); - break; - } - default: - { - _ui->labTimeTrayMess->setVisible(true); - _ui->timeTrayMess->setVisible(true); - break; - } - } -} - -void ConfigDialog::setVisibleDateTplEdit(bool checked) -{ - if (!checked) - { - _ui->editDateTmeTpl->setVisible(false); - _ui->labMask->setVisible(false); - _ui->labMaskExample->setVisible(false); - } - else - { - _ui->editDateTmeTpl->setVisible(true); - _ui->labMask->setVisible(true); - _ui->labMaskExample->setVisible(true); - } -} - -void ConfigDialog::editDateTmeTpl(const QString &str) -{ - QString currentDateTime = QDateTime::currentDateTime().toString(str); - _ui->labMaskExample->setText(tr("Example: ") + currentDateTime); -} - -void ConfigDialog::toggleCheckShowTray(bool checked) -{ - _ui->labTrayMessages->setEnabled(checked); - _ui->cbxTrayMsg->setEnabled(checked); - _ui->timeTrayMess->setEnabled(checked); - _ui->labTimeTrayMess->setEnabled(checked); - _ui->checkInTray->setEnabled(checked); -} - -void ConfigDialog::currentItemChanged(const QModelIndex c, const QModelIndex p) -{ - Q_UNUSED(p) - if (c.parent().isValid()) - { - _ui->labUsedShortcut->setVisible(true); - _ui->keyWidget->setVisible(true); - - QTreeWidgetItem *item = _ui->treeKeys->currentItem(); - _ui->keyWidget->setKeySequence(QKeySequence(item->data(1, Qt::DisplayRole).toString())); - } - else - { - _ui->labUsedShortcut->setVisible(false); - _ui->keyWidget->setVisible(false); - } -} - -void ConfigDialog::doubleclickTreeKeys(QModelIndex index) -{ - if (index.parent().isValid()) - { - connect(_ui->keyWidget, SIGNAL(keySequenceChanged(QKeySequence)), this, SLOT(changeShortcut(QKeySequence))); - _ui->keyWidget->captureKeySequence(); - } -} - -void ConfigDialog::collapsTreeKeys(QModelIndex index) -{ - if (!index.parent().isValid()) - { - _ui->labUsedShortcut->setVisible(false); - _ui->keyWidget->setVisible(false); - } -} - -void ConfigDialog::acceptShortcut(const QKeySequence& seq) -{ - if (!checkUsedShortcuts()) - { -#ifdef SG_GLOBAL_SHORTCUTS - if (avalibelGlobalShortcuts(seq)) - changeShortcut(seq); - else - showErrorMessage(tr("This key is already used in your system! Please select another.")); -#else - changeShortcut(seq); -#endif - } - else if (checkUsedShortcuts() && !seq.toString().isEmpty()) - showErrorMessage(tr("This key is already used in ScreenGrab! Please select another.")); -} - -void ConfigDialog::changeShortcut(const QKeySequence& seq) -{ - disconnect(_ui->keyWidget, SIGNAL(keySequenceChanged(QKeySequence)), this, SLOT(changeShortcut(QKeySequence))); - QTreeWidgetItem *item = _ui->treeKeys->selectedItems().first(); - item->setData(1, Qt::DisplayRole, seq.toString()); -} - -void ConfigDialog::clearShrtcut() -{ - QTreeWidgetItem *item = _ui->treeKeys->selectedItems().first(); - item->setData(1, Qt::DisplayRole, QString("")); -} - -void ConfigDialog::keyNotSupported() -{ - showErrorMessage(tr("This key is not supported on your system!")); -} - -bool ConfigDialog::checkUsedShortcuts() -{ - QTreeWidgetItem *item = _ui->treeKeys->selectedItems().first(); - QTreeWidgetItemIterator iter(_ui->treeKeys); - while (*iter) - { - if ((*iter) != item && (*iter)->data(1, Qt::DisplayRole) == _ui->keyWidget->keySequence().toString()) - return true; - ++iter; - } - return false; -} - -#ifdef SG_GLOBAL_SHORTCUTS -bool ConfigDialog::avalibelGlobalShortcuts(const QKeySequence& seq) -{ - bool ok = false; - QxtGlobalShortcut *tmpShortcut = new QxtGlobalShortcut; - if (tmpShortcut->setShortcut(QKeySequence(seq)) == true) - { - tmpShortcut->setDisabled(true); - ok = true; - } - delete tmpShortcut; - return ok; -} -#endif - -void ConfigDialog::showErrorMessage(const QString &text) -{ - _ui->keyWidget->clearKeySequence(); - QMessageBox msg; - msg.setWindowTitle(tr("Error")); - msg.setText(text); - msg.setIcon(QMessageBox::Information); - msg.setStandardButtons(QMessageBox::Ok); - msg.exec(); -} diff --git a/src/core/ui/configwidget.h b/src/core/ui/configwidget.h deleted file mode 100644 index 89bbf2a..0000000 --- a/src/core/ui/configwidget.h +++ /dev/null @@ -1,78 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef CONFIGWIDGET_H -#define CONFIGWIDGET_H - -#include "../config.h" - -#include -#include -#include -#include -#include - -namespace Ui { - class configwidget; -} -class ConfigDialog : public QDialog{ - Q_OBJECT -public: - ConfigDialog( QWidget *parent = 0); - ~ConfigDialog(); - Config *conf; - -protected: - void changeEvent(QEvent *e); - -private: - Ui::configwidget *_ui; - void loadSettings(); - QString getFormat(); - bool checkUsedShortcuts(); - void showErrorMessage(const QString &text); - - QStringList _moduleWidgetNames; - -#ifdef SG_GLOBAL_SHORTCUTS - bool avalibelGlobalShortcuts(const QKeySequence& seq); -#endif - -private slots: - void collapsTreeKeys(QModelIndex index); - void doubleclickTreeKeys(QModelIndex index); - void toggleCheckShowTray(bool checked); - void currentItemChanged(const QModelIndex c ,const QModelIndex p); - void editDateTmeTpl(const QString &str); - void setVisibleDateTplEdit(bool); - void changeTrayMsgType(int type); - void changeTimeTrayMess(int sec); - void setVisibleAutoSaveFirst(bool status); - void changeFormatType(int type); - void changeImgQualituSlider(int pos); - void saveSettings(); - void selectDir(); - void restoreDefaults(); - void acceptShortcut(const QKeySequence &seq); - void changeShortcut(const QKeySequence &seq); - void clearShrtcut(); - void keyNotSupported(); - -}; - -#endif // CONFIGWIDGET_H diff --git a/src/core/ui/configwidget.ui b/src/core/ui/configwidget.ui deleted file mode 100644 index 65ac6c3..0000000 --- a/src/core/ui/configwidget.ui +++ /dev/null @@ -1,689 +0,0 @@ - - - configwidget - - - - 0 - 0 - 770 - 335 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - Options - - - - - - - - - 0 - 0 - - - - - 100 - 0 - - - - - 160 - 16777215 - - - - - 32 - 32 - - - - Qt::ElideNone - - - false - - - QListView::Adjust - - - QListView::ListMode - - - false - - - true - - - - Main - - - - - Advanced - - - - - System tray - - - - - Shortcuts - - - - - - - - - 0 - 0 - - - - 0 - - - - - 5 - - - - - Default save directory - - - - - - Path to default selection dir for saving - - - - - - - - 112 - 0 - - - - Browse filesystem - - - Browse - - - - - - - - - - Default file - - - - - - 0 - - - - - - - Name: - - - - - - - Default filename - - - - - - - - - - - Format - - - - - - - - 112 - 0 - - - - Default saving image format - - - - - - - - - - - - - - 4 - - - - - Copy file name to the clipboard when saving - - - - - - - - 0 - 0 - - - - - Do not copy - - - - - Copy file name only - - - - - Copy full file path - - - - - - - - - - Image quality - - - - - - Image quality (1 - small file, 100 - high quality) - - - 100 - - - 1 - - - Qt::Horizontal - - - - - - - Current - - - Qt::AlignCenter - - - - - - - - - - Qt::Vertical - - - - 20 - 298 - - - - - - - - - - 5 - - - 0 - - - 0 - - - 0 - - - - - 16 - - - - - - - Inserting current date time into saved filename - - - Insert current date and time in file name - - - - - - - - - Template: - - - - - - - - 0 - 0 - - - - - 256 - 0 - - - - - - - - - - Example: - - - Qt::AlignCenter - - - - - - - Automatically saving screenshots in grabbing process - - - Autosave screenshot - - - - - - - 16 - - - - - Save first screenshot - - - - - - - - - Allow run multiplies copy of ScreenGrab - - - Allow multiple instances of ScreenGrab - - - - - - - Open in external viewer on double click - - - Enable external viewer - - - - - - - Fit to edges only inside selected screen area - - - Fit to edges inside selected area - - - - - - - Qt::Vertical - - - - 20 - 66 - - - - - - - - - - 5 - - - 0 - - - 0 - - - 0 - - - - - - - Show ScreenGrab in the system tray - - - - - - - - - Tray messages: - - - - - - - - 0 - 0 - - - - Tray messages display mode - - - - Never - - - - - Tray mode - - - - - Always - - - - - - - - - - - - Time of display tray messages - - - Qt::PlainText - - - - - - - - 0 - 0 - - - - Time to display tray messages - - - sec - - - 1 - - - 10 - - - 5 - - - - - - - - - Minimize to tray on click close button - - - Minimize to tray when closing - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - 0 - - - 0 - - - 0 - - - - - QAbstractItemView::NoEditTriggers - - - - Action - - - - - Shortcut - - - - - Global shortcuts - - - - - - - Full screen - - - - - Active window - - - - - Area select - - - - - - Local shortcuts - - - - New screen - - - - - Save screen - - - - - Copy screen - - - - - Options - - - - - Help - - - - - Quit - - - - - - - - - - - Selected shortcut: - - - - - - - Not defined - - - - - - - - - - - - - - - - - QDialogButtonBox::Cancel|QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Save - - - - - - - - - - QKeySequenceWidget - QWidget -
qkeysequencewidget.h
-
-
- - -
diff --git a/src/core/ui/mainwindow.cpp b/src/core/ui/mainwindow.cpp deleted file mode 100644 index e26dd3f..0000000 --- a/src/core/ui/mainwindow.cpp +++ /dev/null @@ -1,644 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * -***************************************************************************/ - -#include "mainwindow.h" -#include "ui_mainwindow.h" -#include "../core.h" -#include "../shortcutmanager.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), - _ui(new Ui::MainWindow), _conf(nullptr), _trayMenu(nullptr) -{ - _ui->setupUi(this); - _trayed = false; - -#ifdef SG_GLOBAL_SHORTCUTS - // signal mapper - _globalShortcutSignals = new QSignalMapper(this); - - // global shortcuts - _fullScreen = new QxtGlobalShortcut(this); - _activeWindow = new QxtGlobalShortcut(this); - _areaSelection = new QxtGlobalShortcut(this); - _globalShortcuts << _fullScreen << _activeWindow << _areaSelection; - - for (int i = 0; i < _globalShortcuts.count(); ++i ) - { - connect(_globalShortcuts[i], SIGNAL(activated()), _globalShortcutSignals, SLOT(map()) ); - _globalShortcutSignals->setMapping(_globalShortcuts[i], i); - } - - connect(_globalShortcutSignals, SIGNAL(mapped(int)), this, SLOT(globalShortcutActivate(int))); -#endif - - _trayIcon = nullptr; - _hideWnd = nullptr; - _trayMenu = nullptr; - - // create actions menu - actNew = new QAction(QIcon::fromTheme("document-new"), tr("New"), this); - actSave = new QAction(QIcon::fromTheme("document-save"), tr("Save"), this); - actCopy = new QAction(QIcon::fromTheme("edit-copy"), tr("Copy"), this); - actOptions = new QAction(QIcon::fromTheme("configure"), tr("Options"), this); - actHelp = new QAction(QIcon::fromTheme("system-help"), tr("Help"), this); - actAbout = new QAction(QIcon::fromTheme("system-about"), tr("About"), this); - actQuit = new QAction(QIcon::fromTheme("application-exit"), tr("Quit"), this); - - // connect actions to slots - Core *c = Core::instance(); - - connect(actQuit, &QAction::triggered, c, &Core::coreQuit); - connect(actNew, &QAction::triggered, c, &Core::setScreen); - connect(actSave, &QAction::triggered, this, &MainWindow::saveScreen); - connect(actCopy, &QAction::triggered, c, &Core::copyScreen); - connect(actOptions, &QAction::triggered, this, &MainWindow::showOptions); - connect(actAbout, &QAction::triggered, this, &MainWindow::showAbout); - connect(actHelp, &QAction::triggered, this, &MainWindow::showHelp); - - _ui->toolBar->addAction(actNew); - _ui->toolBar->addAction(actSave); - _ui->toolBar->addAction(actCopy); - _ui->toolBar->addAction(actOptions); - _ui->toolBar->addSeparator(); - QMenu *menuInfo = new QMenu(this); - menuInfo->addAction(actHelp); - menuInfo->addAction(actAbout); - QToolButton *help = new QToolButton(this); - help->setText(tr("Help")); - help->setPopupMode(QToolButton::InstantPopup); - help->setIcon(QIcon::fromTheme("system-help")); - help->setMenu(menuInfo); - - _ui->toolBar->addWidget(help); - - QWidget* spacer = new QWidget(); - spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - _ui->toolBar->addWidget(spacer); - - _ui->toolBar->addAction(actQuit); - - void (QSpinBox::*delayChange)(int) = &QSpinBox::valueChanged; - connect(_ui->delayBox, delayChange, this, &MainWindow::delayBoxChange); - void (QComboBox::*typeScr)(int) = &QComboBox::currentIndexChanged; - connect(_ui->cbxTypeScr, typeScr, this, &MainWindow::typeScreenShotChange); - connect(_ui->checkIncludeCursor, &QCheckBox::toggled, this, &MainWindow::checkIncludeCursor); - connect(_ui->checkNoDecoration, &QCheckBox::toggled, this, &MainWindow::checkNoDecoration); - connect(_ui->checkZommMouseArea, &QCheckBox::toggled, this, &MainWindow::checkZommMouseArea); - - appIcon = QIcon::fromTheme ("screengrab"); - if (appIcon.isNull()) - appIcon = QIcon(":/res/img/logo.png"); - - setWindowIcon(appIcon); - - QRect geometry = QApplication::desktop()->availableGeometry(QApplication::desktop()->screenNumber()); - move(geometry.width() / 2 - width() / 2, geometry.height() / 2 - height() / 2); - - _ui->scrLabel->installEventFilter(this); - _ui->delayBox->installEventFilter(this); -} - -MainWindow::~MainWindow() -{ - delete _ui; -} - -void MainWindow::changeEvent(QEvent *e) -{ - QMainWindow::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - _ui->retranslateUi(this); - break; - default: - break; - } -} - -void MainWindow::closeEvent(QCloseEvent *e) -{ - if (_conf->getCloseInTray() && _conf->getShowTrayIcon()) - { - windowHideShow(); - e->ignore(); - } - else - actQuit->activate(QAction::Trigger); -} - -// resize main window -void MainWindow::resizeEvent(QResizeEvent *event) -{ - Q_UNUSED(event) - // get size dcreen pixel map - QSize scaleSize = Core::instance()->getPixmap()->size(); // get orig size pixmap - - scaleSize.scale(_ui->scrLabel->contentsRect().size(), Qt::KeepAspectRatio); - - if (!_ui->scrLabel->pixmap() || scaleSize != _ui->scrLabel->pixmap()->size()) - updatePixmap(Core::instance()->getPixmap()); -} - -bool MainWindow::eventFilter(QObject* obj, QEvent* event) -{ - if (obj == _ui->scrLabel) - { - if (event->type() == QEvent::ToolTip) - displatScreenToolTip(); - else if (event->type() == QEvent::MouseButtonDblClick) - Core::instance()->openInExtViewer(); - } - else if (obj == _ui->delayBox && event->type() == QEvent::ShortcutOverride) - { // filter out Ctrl+C because we need it - if (QKeyEvent *keyEvent = static_cast(event)) - { - if ((keyEvent->modifiers() & Qt::ControlModifier) && keyEvent->key() == Qt::Key_C) - return true; - } - } - - return QObject::eventFilter(obj, event); -} - - -void MainWindow::updatePixmap(QPixmap *pMap) -{ - QSize lSize = _ui->scrLabel->contentsRect().size(); - // never scale up the image beyond its real size - _ui->scrLabel->setPixmap(lSize.width() < pMap->width() || lSize.height() < pMap->height() - ? pMap->scaled(lSize, Qt::KeepAspectRatio, Qt::SmoothTransformation) - : *pMap); -} - -void MainWindow::updateModulesActions(const QList &list) -{ - _ui->toolBar->insertSeparator(actOptions); - if (list.count() > 0) - { - for (int i = 0; i < list.count(); ++i) - { - QAction *action = list.at(i); - if (action) - _ui->toolBar->insertAction(actOptions, action); - } - } -} - -void MainWindow::updateModulesenus(const QList &list) -{ - if (list.count() > 0) - { - for (int i = 0; i < list.count(); ++i) - { - QMenu *menu = list.at(i); - if (menu != nullptr) - { - QToolButton* btn = new QToolButton(this); - btn->setText(menu->title()); - btn->setPopupMode(QToolButton::InstantPopup); - btn->setToolTip(menu->title()); - btn->setMenu(list.at(i)); - _ui->toolBar->insertWidget(actOptions, btn); - } - } - _ui->toolBar->insertSeparator(actOptions); - } -} - -void MainWindow::show() -{ - if (!isVisible() && !_trayed) - showNormal(); - if (_trayIcon){ - if (_conf->getShowTrayIcon()) - { - _trayIcon->blockSignals(false); - _trayIcon->setContextMenu(_trayMenu); - } - - _trayIcon->setVisible(true); - } - QMainWindow::show(); -} - -bool MainWindow::isTrayed() const -{ - return _trayIcon != nullptr; -} - -void MainWindow::showTrayMessage(const QString& header, const QString& message) -{ - if (_conf->getShowTrayIcon()) - { - switch(_conf->getTrayMessages()) - { - case 0: break; // never shown - case 1: // main window hidden - { - if (isHidden() && _trayed) - { - _trayIcon->showMessage(header, message, - QSystemTrayIcon::MessageIcon(), _conf->getTimeTrayMess()*1000 ); //5000 - } - break; - } - case 2: // always show - { - _trayIcon->showMessage(header, message, - QSystemTrayIcon::MessageIcon(), _conf->getTimeTrayMess()*1000 ); - break; - } - default: break; - } - } -} - - -void MainWindow::setConfig(Config *config) -{ - _conf = config; - updateUI(); -} - - -void MainWindow::showHelp() -{ - QString localeHelpFile; - - localeHelpFile = QString(SG_DOCDIR) + "%1html%1" + Config::getSysLang()+"%1index.html"; - localeHelpFile = localeHelpFile.arg(QString(QDir::separator())); - - if (!QFile::exists(localeHelpFile)) - { - localeHelpFile = QString(SG_DOCDIR) + "%1html%1" + Config::getSysLang().section("_", 0, 0) + "%1index.html"; - localeHelpFile = localeHelpFile.arg(QString(QDir::separator())); - - if (!QFile::exists(localeHelpFile)) - { - localeHelpFile = QString(SG_DOCDIR) + "%1html%1en%1index.html"; - localeHelpFile = localeHelpFile.arg(QString(QDir::separator())); - } - } - - // open find localize or eng help help - QDesktopServices::openUrl(QUrl::fromLocalFile(localeHelpFile)); -} - - -void MainWindow::showOptions() -{ - ConfigDialog *options = new ConfigDialog(this); -#ifdef SG_GLOBAL_SHORTCUTS - globalShortcutBlock(true); -#endif - - if (isMinimized()) - { - showNormal(); - disableTrayMenuActions(true); - if (options->exec() == QDialog::Accepted) - updateUI(); - disableTrayMenuActions(false); - if (_trayIcon) // the tray may have been removed - windowHideShow(); // hides the window in this case - } - else - { - if (options->exec() == QDialog::Accepted) - updateUI(); - } - -#ifdef SG_GLOBAL_SHORTCUTS - globalShortcutBlock(false); -#endif - delete options; -} - -void MainWindow::showAbout() -{ - AboutDialog *about = new AboutDialog(this); - - if (isMinimized()) - { - showNormal(); - disableTrayMenuActions(true); - about->exec(); - disableTrayMenuActions(false); - windowHideShow(); // hides the window in this case - } - else - about->exec(); - - delete about; -} - -void MainWindow::displatScreenToolTip() -{ - QSize pSize = Core::instance()->getPixmap()->size(); - quint16 w = pSize.width(); - quint16 h = pSize.height(); - QString toolTip = tr("Screenshot ") + QString::number(w) + "x" + QString::number(h); - if (_conf->getEnableExtView()) - { - toolTip += "\n\n"; - toolTip += tr("Double click to open screenshot in external default image viewer"); - } - - _ui->scrLabel->setToolTip(toolTip); -} - -void MainWindow::createTray() -{ - _trayed = false; - actHideShow = new QAction(tr("Hide"), this); - connect(actHideShow, &QAction::triggered, this, &MainWindow::windowHideShow); - - // create tray menu - _trayMenu = new QMenu(this); - _trayMenu->addAction(actHideShow); - _trayMenu->addSeparator(); - _trayMenu->addAction(actNew); // TODO - add icons (icon, action) - _trayMenu->addAction(actSave); - _trayMenu->addAction(actCopy); - _trayMenu->addSeparator(); - _trayMenu->addAction(actOptions); - _trayMenu->addSeparator(); - _trayMenu->addAction(actHelp); - _trayMenu->addAction(actAbout); - _trayMenu->addSeparator(); - _trayMenu->addAction(actQuit); - - _trayIcon = new QSystemTrayIcon(this); - - _trayIcon->setContextMenu(_trayMenu); - _trayIcon->setIcon(appIcon); - _trayIcon->show(); - connect(_trayIcon, &QSystemTrayIcon::activated, this, &MainWindow::trayClick); -} - -void MainWindow::disableTrayMenuActions(bool disable) -{ - // On the one hand, QSystemTrayIcon::setContextMenu() can't be used for changing/removing - // the menu. On the other hand, deleting/recreating the current menu isn't a good way of - // disabling the context menu. Instead, we disable/enable menu ACTIONS when needed. - if (_trayMenu) - { - const QList actions = _trayMenu->actions(); - for (QAction *action : actions) - action->setDisabled(disable); - } -} - -void MainWindow::killTray() -{ - // the actions should be enabled because they're shared with the main window - disableTrayMenuActions(false); - - _trayed = false; - - delete _trayMenu; - _trayMenu = nullptr; - - delete _trayIcon; - _trayIcon = nullptr; -} - -void MainWindow::delayBoxChange(int delay) -{ - _conf->setDelay(delay); -} - -void MainWindow::typeScreenShotChange(int type) -{ - _conf->setDefScreenshotType(type); - // show/hide checkboxes according to the type - _ui->checkNoDecoration->setVisible(type == 1); - _ui->checkIncludeCursor->setVisible(type < 2); - _ui->checkZommMouseArea->setVisible(type >= 2); -} - -void MainWindow::checkIncludeCursor(bool include) -{ - _conf->setIncludeCursor(include); -} - -void MainWindow::checkNoDecoration(bool noDecor) -{ - _conf->setNoDecoration(noDecor); -} - -void MainWindow::checkZommMouseArea(bool zoom) -{ - _conf->setZoomAroundMouse(zoom); -} - -// updating UI from configdata -void MainWindow::updateUI() -{ - _ui->delayBox->setValue(_conf->getDelay()); - - int type = _conf->getDefScreenshotType(); - _ui->cbxTypeScr->setCurrentIndex(type); - // show/hide checkboxes according to the type - _ui->checkNoDecoration->setVisible(type == 1); - _ui->checkIncludeCursor->setVisible(type < 2); - _ui->checkZommMouseArea->setVisible(type >= 2); - - _ui->checkZommMouseArea->setChecked(_conf->getZoomAroundMouse()); - _ui->checkNoDecoration->setChecked(_conf->getNoDecoration()); - _ui->checkIncludeCursor->setChecked(_conf->getIncludeCursor()); - - updateShortcuts(); - - // create tray object - if (_conf->getShowTrayIcon() && !_trayIcon) - createTray(); - - // kill tray object, if tray was disabled in the configuration dialog - if (!_conf->getShowTrayIcon() && _trayIcon) - killTray(); -} - -// mouse clicks on tray icom -void MainWindow::trayClick(QSystemTrayIcon::ActivationReason reason) -{ - if (findChildren().count() > 0) - { // just activate the window when there's a dialog - activateWindow(); - raise(); - return; - } - switch(reason) - { - case QSystemTrayIcon::Trigger: - windowHideShow(); - break; - default: ; - } -} - -void MainWindow::windowHideShow() -{ - if (isHidden()) - { - actHideShow->setText(tr("Hide")); - _trayed = false; - showNormal(); - activateWindow(); - } - else - { - actHideShow->setText(tr("Show")); - showMinimized(); - hide(); - _trayed = true; - } -} - -void MainWindow::hideToShot() -{ - if (_conf->getShowTrayIcon()) - { - _trayIcon->blockSignals(true); - disableTrayMenuActions(true); - } - - hide(); -} - -void MainWindow::showWindow(const QString& str) -{ - // get char of type screen (last) form received string - QString typeNum = str[str.size() - 1]; - int type = typeNum.toInt(); - - // change type scrren in config & on main window - _ui->cbxTypeScr->setCurrentIndex(type); - typeScreenShotChange(type); -} - -void MainWindow::restoreFromShot() -{ - if (_conf->getShowTrayIcon()) - { - _trayIcon->blockSignals(false); - disableTrayMenuActions(false); - } - showNormal(); -} - -void MainWindow::saveScreen() -{ - bool wasMinimized(isMinimized()); - if (wasMinimized) - { - showNormal(); - disableTrayMenuActions(true); - } - - // create initial filepath - QHash formatsAvalible; - const QStringList formatIDs = _conf->getFormatIDs(); - if (formatIDs.isEmpty()) return; - for (const QString &formatID : formatIDs) - formatsAvalible[formatID] = tr("%1 Files").arg(formatID.toUpper()); - - QString format = formatIDs.at(qBound(0, _conf->getDefaultFormatID(), formatIDs.size() - 1)); - - Core* c = Core::instance(); - QString filePath = c->getSaveFilePath(format); - - QString filterSelected; - - // create file filters - QStringList fileFilters; - QHash::const_iterator iter = formatsAvalible.constBegin(); - while (iter != formatsAvalible.constEnd()) - { - QString str = iter.value() + " (*." + iter.key() + ")"; - if (iter.key() == format) - filterSelected = str; - fileFilters << str; - ++iter; - } - - QString fileName; - fileName = QFileDialog::getSaveFileName(this, tr("Save As..."), filePath, fileFilters.join(";;"), &filterSelected); - - QRegExp rx(R"(\(\*\.[a-z]{3,4}\))"); - quint8 tmp = filterSelected.size() - rx.indexIn(filterSelected); - - filterSelected.chop(tmp + 1); - format = formatsAvalible.key(filterSelected); - - if (wasMinimized) - { - disableTrayMenuActions(false); - windowHideShow(); // hides the window in this case - } - - // if user canceled saving - if (fileName.isEmpty()) - return; - - c->writeScreen(fileName, format); -} - -void MainWindow::updateShortcuts() -{ - actNew->setShortcut(_conf->shortcuts()->getShortcut(Config::shortcutNew)); - actSave->setShortcut(_conf->shortcuts()->getShortcut(Config::shortcutSave)); - actCopy->setShortcut(_conf->shortcuts()->getShortcut(Config::shortcutCopy)); - actOptions->setShortcut(_conf->shortcuts()->getShortcut(Config::shortcutOptions)); - actHelp->setShortcut(_conf->shortcuts()->getShortcut(Config::shortcutHelp)); - actQuit->setShortcut(_conf->shortcuts()->getShortcut(Config::shortcutClose)); - -#ifdef SG_GLOBAL_SHORTCUTS - for (int i = 0; i < _globalShortcuts.count(); ++i) - _globalShortcuts[i]->setShortcut(QKeySequence(_core->conf->shortcuts()->getShortcut(i))); -#endif -} - -#ifdef SG_GLOBAL_SHORTCUTS -void MainWindow::globalShortcutBlock(bool state) -{ - for (int i = 0; i < _globalShortcuts.count(); ++i) - _globalShortcuts[i]->setDisabled(state); -} - - -void MainWindow::globalShortcutActivate(int type) -{ - _ui->cbxTypeScr->setCurrentIndex(type); - typeScreenShotChange(type); - - if (!_trayed) - hide(); - QTimer::singleShot(200, _core, SLOT(screenShot())); -} -#endif diff --git a/src/core/ui/mainwindow.h b/src/core/ui/mainwindow.h deleted file mode 100644 index e99bf81..0000000 --- a/src/core/ui/mainwindow.h +++ /dev/null @@ -1,121 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -#include "about.h" -#include "configwidget.h" - -#ifdef SG_GLOBAL_SHORTCUTS -#include -#endif - -#include -#include -#include -#include -#include -#include -#include - -namespace Ui { - class MainWindow; -} - -class MainWindow : public QMainWindow //, public screengrab -{ - Q_OBJECT -public: - MainWindow( QWidget *parent = 0); - ~MainWindow(); - void show(); - bool isTrayed() const; - void showTrayMessage(const QString& header, const QString& message); - void setConfig(Config *config); - void updatePixmap(QPixmap *pMap); - void updateModulesActions(const QList &list); - void updateModulesenus(const QList &list); - -public Q_SLOTS: - void showWindow(const QString& str); - void windowHideShow(); - void hideToShot(); - void restoreFromShot(); - -protected: - void closeEvent(QCloseEvent *e); - void changeEvent(QEvent *e); - void resizeEvent(QResizeEvent *event); // event resuze window - bool eventFilter(QObject *obj, QEvent *event); - -private: - Ui::MainWindow *_ui; - - QSystemTrayIcon *_trayIcon; - QAction *actHideShow; - QAction *actNew; - QAction *actSave; - QAction *actCopy; - QAction *actOptions; - QAction *actAbout; - QAction *actHelp; - QAction *actQuit; - Config *_conf; - QMenu *_trayMenu; - QShortcut *_hideWnd; - bool _trayed; - QIcon appIcon; - -#ifdef SG_GLOBAL_SHORTCUTS - QxtGlobalShortcut *_fullScreen; - QxtGlobalShortcut *_activeWindow; - QxtGlobalShortcut *_areaSelection; - - QVector _globalShortcuts; - QSignalMapper *_globalShortcutSignals; -#endif - - void displatScreenToolTip(); - void createTray(); - void killTray(); - void disableTrayMenuActions(bool disable); - void updateShortcuts(); - -private Q_SLOTS: - void saveScreen(); - void showHelp(); - void showOptions(); - void showAbout(); - void delayBoxChange(int); - void typeScreenShotChange(int type); - void checkIncludeCursor(bool include); - void checkNoDecoration(bool noDecor); - void checkZommMouseArea(bool zoom); - void updateUI(); - void trayClick(QSystemTrayIcon::ActivationReason reason); - -#ifdef SG_GLOBAL_SHORTCUTS - void globalShortcutActivate(int type); - void globalShortcutBlock(bool state); -#endif -}; - -#endif // MAINWINDOW_H diff --git a/src/core/ui/mainwindow.ui b/src/core/ui/mainwindow.ui deleted file mode 100644 index 7152422..0000000 --- a/src/core/ui/mainwindow.ui +++ /dev/null @@ -1,261 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 640 - 498 - - - - ScreenGrab - - - - - 0 - 0 - - - - - 5 - - - - - - 0 - 0 - - - - - 600 - 400 - - - - QFrame::StyledPanel - - - QFrame::Sunken - - - - - - Qt::AlignCenter - - - - - - - - - Qt::Horizontal - - - - 5 - 5 - - - - - - - - - 0 - 0 - - - - Type: - - - - - - - true - - - Type of screenshot - - - 0 - - - - Full screen - - - - - Window - - - - - Screen area - - - - - Last selected area - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 5 - - - - - - - - - 0 - 0 - - - - Delay: - - - - - - - - 0 - 0 - - - - Delay in seconds before taking screenshot - - - None - - - sec - - - 90 - - - - - - - Qt::Horizontal - - - - 5 - 5 - - - - - - - - - - 10 - - - - - Qt::Horizontal - - - - 5 - 5 - - - - - - - - Zoom area around mouse - - - - - - - No window decoration - - - - - - - Include mouse pointer - - - - - - - Qt::Horizontal - - - - 5 - 5 - - - - - - - - - - - - 0 - 0 - - - - toolBar - - - false - - - TopToolBarArea - - - false - - - - - - diff --git a/src/core/x11utils.cpp b/src/core/x11utils.cpp deleted file mode 100644 index bdc2c33..0000000 --- a/src/core/x11utils.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "x11utils.h" - -#include - -#include -#include - -void X11Utils::compositePointer(int offsetX, int offsetY, QPixmap *snapshot) -{ - Xcb::ScopedCPointer cursor( - xcb_xfixes_get_cursor_image_reply(Xcb::connection(), - xcb_xfixes_get_cursor_image_unchecked(Xcb::connection()), - nullptr)); - - if (cursor.isNull()) { - return; - } - - QImage qcursorimg((uchar *) xcb_xfixes_get_cursor_image_cursor_image(cursor.data()), - cursor->width, cursor->height, - QImage::Format_ARGB32_Premultiplied); - - QPainter painter(snapshot); - painter.drawImage(QPointF(cursor->x - cursor->xhot - offsetX, cursor->y - cursor ->yhot - offsetY), qcursorimg); -} diff --git a/src/core/x11utils.h b/src/core/x11utils.h deleted file mode 100644 index f30de39..0000000 --- a/src/core/x11utils.h +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef X11UTILS_H -#define X11UTILS_H - -#include -#include -#include - -#include -#include -#include - -namespace X11Utils { - void compositePointer(int offsetX, int offsetY, QPixmap *snapshot); -} - - -namespace Xcb { - template - class ScopedCPointer : public QScopedPointer - { - public: - ScopedCPointer(T *p = 0) : QScopedPointer(p) {} - }; - - inline xcb_connection_t *connection() - { - return XGetXCBConnection(QX11Info::display()); - } -} // namespace Xcb - -#endif // X11UTILS_H - diff --git a/src/modules/abstractmodule.h b/src/modules/abstractmodule.h deleted file mode 100644 index bef4723..0000000 --- a/src/modules/abstractmodule.h +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef ABSTRACTMODULE_H -#define ABSTRACTMODULE_H - -#include -#include -#include -#include - -class AbstractModule -{ -public: - AbstractModule() {}; - virtual ~AbstractModule() {}; - - // interface - virtual void init() = 0; - virtual QString moduleName() = 0; - virtual QWidget* initConfigWidget() = 0; - virtual void defaultSettings() = 0; - virtual QMenu* initModuleMenu() = 0; - virtual QAction* initModuleAction() = 0; -}; - - -#endif // ABSTRACTMODULE_H diff --git a/src/modules/extedit/CMakeLists.txt b/src/modules/extedit/CMakeLists.txt deleted file mode 100644 index 3b56ea1..0000000 --- a/src/modules/extedit/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -set (extedit_SRC - moduleextedit.cpp - extedit.cpp -) - -set (extedit_HDR - extedit.h -) - -lxqt_translate_ts(extedit_QMS - USE_QT5 TRUE - UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS} - TEMPLATE "extedit" - TRANSLATION_DIR "${CMAKE_SOURCE_DIR}/translations" - SOURCES - ${extedit_SRC} - ${extedit_HDR} - INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/translations" -) - -qt5_translation_loader(extedit_QM_LOADER - "${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/translations" - "extedit" -) - -add_library(extedit - SHARED - ${extedit_SRC} - ${extedit_QMS} - ${extedit_QM_LOADER} -) -set_property (TARGET extedit PROPERTY SOVERSION 1.0.0) -install(TARGETS extedit DESTINATION ${SG_LIBDIR}) - -target_link_libraries(extedit Qt5::Widgets Qt5::X11Extras Qt5Xdg) diff --git a/src/modules/extedit/extedit.cpp b/src/modules/extedit/extedit.cpp deleted file mode 100644 index 05074e4..0000000 --- a/src/modules/extedit/extedit.cpp +++ /dev/null @@ -1,93 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "extedit.h" -#include "core/core.h" - -#include -#include - -ExtEdit::ExtEdit(QObject *parent) : - QObject(parent), _watcherEditedFile(new QFileSystemWatcher(this)) -{ - createAppList(); - _fileIsChanged = false; - connect(_watcherEditedFile, &QFileSystemWatcher::fileChanged, this, &ExtEdit::editedFileChanged); -} - -QList ExtEdit::getActions() -{ - return _actionList; -} - -void ExtEdit::runExternalEditor() -{ - XdgAction *action = static_cast(sender()); - - Core *core = Core::instance(); - QString format = core->config()->getSaveFormat(); - if (format.isEmpty()) - format = "png"; - - _editFilename = core->getTempFilename(format); - core->writeScreen(_editFilename, format, true); - - QProcess *execProcess = new QProcess(this); - void (QProcess:: *signal)(int, QProcess::ExitStatus) = &QProcess::finished; - connect(execProcess, signal, this, &ExtEdit::closedExternalEditor); - - execProcess->start(action->desktopFile().expandExecString().first(), - QStringList() << _editFilename); - _watcherEditedFile->addPath(_editFilename); -} - -void ExtEdit::closedExternalEditor(int, QProcess::ExitStatus) -{ - Core *core = Core::instance(); - - if (_fileIsChanged == true) - core->updatePixmap(); - - _fileIsChanged = false; - _watcherEditedFile->removePath(_editFilename); - - sender()->deleteLater(); - core->killTempFile(); - _editFilename.clear(); -} - -void ExtEdit::editedFileChanged(const QString&) -{ - _fileIsChanged = true; -} - -void ExtEdit::createAppList() -{ - Core *core = Core::instance(); - QString format = core->config()->getSaveFormat(); - if (format.isEmpty()) - format = "png"; - - QString fileName = _editFilename.isEmpty() ? core->getTempFilename(format) : _editFilename; - QMimeDatabase db; - QMimeType mt = db.mimeTypeForFile(fileName); - _appList = XdgDesktopFileCache::getApps(mt.name()); - - for (XdgDesktopFile *app : qAsConst(_appList)) - _actionList << new XdgAction(app); -} diff --git a/src/modules/extedit/extedit.h b/src/modules/extedit/extedit.h deleted file mode 100644 index 41cc737..0000000 --- a/src/modules/extedit/extedit.h +++ /dev/null @@ -1,53 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef EXTEDIT_H -#define EXTEDIT_H - -#include -#include -#include -#include -#include -#include - -class ExtEdit : public QObject -{ - Q_OBJECT -public: - explicit ExtEdit(QObject *parent = 0); - QList getActions(); - -public Q_SLOTS: - void runExternalEditor(); - -private Q_SLOTS: - void closedExternalEditor(int exitCode, QProcess::ExitStatus exitStatus); - void editedFileChanged(const QString & path); - -private: - void createAppList(); - - QList _appList; - QList _actionList; - QString _editFilename; - bool _fileIsChanged; - QFileSystemWatcher *_watcherEditedFile; -}; - -#endif // EXTEDIT_H diff --git a/src/modules/extedit/moduleextedit.cpp b/src/modules/extedit/moduleextedit.cpp deleted file mode 100644 index f91831b..0000000 --- a/src/modules/extedit/moduleextedit.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * -***************************************************************************/ - -#include "moduleextedit.h" - -#include - -ModuleExtEdit::ModuleExtEdit() -{ - _extEdit = new ExtEdit(); -} - -ModuleExtEdit::~ModuleExtEdit() -{ - delete _extEdit; -} - -QString ModuleExtEdit::moduleName() -{ - return QObject::tr("External edit"); -} - - -void ModuleExtEdit::init() -{ - -} - -QMenu* ModuleExtEdit::initModuleMenu() -{ - QMenu *menu = new QMenu(QObject::tr("Edit in..."), nullptr); - const QList actionsList = _extEdit->getActions(); - - for (XdgAction *appAction : actionsList) - { - menu->addAction(appAction); - appAction->disconnect(SIGNAL(triggered())); - QObject::connect(appAction, SIGNAL(triggered()), _extEdit, SLOT(runExternalEditor())); - } - - menu->setObjectName("menuExtedit"); - return menu; -} - -QWidget* ModuleExtEdit::initConfigWidget() -{ - return nullptr; -} - -void ModuleExtEdit::defaultSettings() -{ - -} - - -QAction* ModuleExtEdit::initModuleAction() -{ - return nullptr; -} diff --git a/src/modules/extedit/moduleextedit.h b/src/modules/extedit/moduleextedit.h deleted file mode 100644 index 90f7a90..0000000 --- a/src/modules/extedit/moduleextedit.h +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef MODULEEXTEDIT_H -#define MODULEEXTEDIT_H - -#include "modules/abstractmodule.h" - -#include "extedit.h" -#include - -class ModuleExtEdit: public AbstractModule -{ -public: - ModuleExtEdit(); - virtual ~ModuleExtEdit(); - QString moduleName(); - void init(); - QMenu* initModuleMenu(); - QWidget* initConfigWidget(); - void defaultSettings(); - QAction* initModuleAction(); - -private: - ExtEdit *_extEdit; -}; - -#endif // MODULEEXTEDIT_H diff --git a/src/modules/uploader/CMakeLists.txt b/src/modules/uploader/CMakeLists.txt deleted file mode 100644 index 8e2ef79..0000000 --- a/src/modules/uploader/CMakeLists.txt +++ /dev/null @@ -1,46 +0,0 @@ -set(uploader_SRC - moduleuploader.cpp - uploader.cpp - imgur/uploader_imgur.cpp - uploaderconfig.cpp - dialoguploader.cpp - uploaderconfigwidget.cpp - imgur/uploader_imgur_widget.cpp - imgur/uploaderconfigwidget_imgur.cpp -) - -set(uploader_UI - dialoguploader.ui - uploaderconfigwidget.ui - imgur/uploader_imgur_widget.ui - imgur/uploaderconfigwidget_imgur.ui -) - -lxqt_translate_ts(uploader_QMS - USE_QT5 TRUE - UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS} - TEMPLATE "uploader" - TRANSLATION_DIR "${CMAKE_SOURCE_DIR}/translations" - SOURCES - ${uploader_SRC} - ${uploader_UI} - INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/translations" -) - -qt5_translation_loader(uploader_QM_LOADER - "${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/translations" - "uploader" -) - -add_library(uploader - SHARED - ${uploader_SRC} - ${uploader_UI} - ${uploader_QMS} - ${uploader_QM_LOADER} -) - -set_property (TARGET uploader PROPERTY SOVERSION 1.0.0) -install(TARGETS uploader DESTINATION ${SG_LIBDIR}) - -target_link_libraries(uploader Qt5::Widgets Qt5::Network Qt5::X11Extras) diff --git a/src/modules/uploader/dialoguploader.cpp b/src/modules/uploader/dialoguploader.cpp deleted file mode 100644 index dab3067..0000000 --- a/src/modules/uploader/dialoguploader.cpp +++ /dev/null @@ -1,252 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "dialoguploader.h" -#include "ui_dialoguploader.h" - -#include "uploaderconfig.h" -#include "imgur/uploader_imgur.h" -#include "imgur/uploader_imgur_widget.h" -#include - -#include -#include - -#include - -DialogUploader::DialogUploader(QWidget *parent) : - QDialog(parent), - _ui(new Ui::DialogUploader) -{ - _ui->setupUi(this); - _ui->stackedWidget->setCurrentIndex(0); - _uploader = nullptr; - _uploaderWidget = nullptr; - slotSeletHost(0); - - _ui->cbxUploaderList->addItems(UploaderConfig::labelsList()); - - UploaderConfig config; - QString defaultHost = config.loadSingleParam(QByteArray("common"), QByteArray(KEY_DEFAULT_HOST)).toString(); - - if (defaultHost.isEmpty()) - _selectedHost = 0; - else - { - _selectedHost = config.labelsList().indexOf(defaultHost); - if (_selectedHost == -1) - _selectedHost = 0; - } - - // load ishot preview - QSize imgSize = Core::instance()->getPixmap()->size(); - QString pixmapSize = tr("Size: ") + QString::number(imgSize.width()) + "x" + QString::number(imgSize.height()) + tr(" pixel"); - _ui->labImgSize->setText(pixmapSize); - - _ui->labImage->setFixedWidth(256); - _ui->labImage->setFixedHeight(192); - _ui->labImage->setPixmap(Core::instance()->getPixmap()->scaled(_ui->labImage->size(), - Qt::KeepAspectRatio, Qt::SmoothTransformation)); - - // progressbar - _ui->progressBar->setVisible(false); - _ui->progressBar->setFormat(tr("Uploaded ") + "%p%" + " (" + "%v" + " of " + "%m bytes"); - - // upload staus labelsList - _ui->labUploadStatus->setText(tr("Ready to upload")); - - connect(_ui->butClose, &QPushButton::clicked, this, &DialogUploader::close); - connect(_ui->butUpload, &QPushButton::clicked, this, &DialogUploader::slotUploadStart); - - void (QComboBox::*uploaderChnage)(int) = &QComboBox::currentIndexChanged; - connect(_ui->cbxUploaderList, uploaderChnage, this, &DialogUploader::slotSeletHost); - - _ui->cbxUploaderList->setCurrentIndex(_selectedHost); -} - -DialogUploader::~DialogUploader() -{ - qDebug() << "delete dialog upload"; - - delete _uploader; - delete _uploaderWidget; - delete _ui; -} - -void DialogUploader::changeEvent(QEvent *e) -{ - QDialog::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - _ui->retranslateUi(this); - break; - default: - break; - } -} - - -void DialogUploader::slotUploadStart() -{ - _ui->progressBar->setVisible(true); - _ui->butUpload->setEnabled(false); - _ui->labUploadStatus->setText(tr("Upload processing... Please wait")); - - switch(_selectedHost) - { - case 0: - _uploader = new Uploader_ImgUr; - break; - default: - _uploader = new Uploader_ImgUr; - } - - QVariantMap userSettings; - _uploader->getUserSettings(userSettings);; - - _uploader->startUploading(); - - connect(_uploader, &Uploader::uploadProgress, this, &DialogUploader::slotUploadProgress); - - void (Uploader::*uploadDone)() = &Uploader::uploadDone; - connect(_uploader, uploadDone, this, &DialogUploader::slotUploadDone); - connect(_uploader, &Uploader::uploadFail, this, &DialogUploader::slotUploadFail); - connect(_ui->butCopyLink, &QPushButton::clicked, this, &DialogUploader::slotCopyLink); - connect(_ui->butCopyExtCode, &QPushButton::clicked, this, &DialogUploader::slotCopyLink); - connect(_ui->butOpenDirectLink, &QPushButton::clicked, this, &DialogUploader::slotOpenDirectLink); - connect(_ui->butDeleteLink, &QPushButton::clicked, this, &DialogUploader::slotOpenDeleteLink); -} - -void DialogUploader::slotSeletHost(int type) -{ - _selectedHost = type; - - delete _uploaderWidget; - - switch(_selectedHost) - { - case 0: - _uploaderWidget = new Uploader_ImgUr_Widget(); - break; - default: - _uploaderWidget = new Uploader_ImgUr_Widget(); - } - - _ui->stackedWidget->addWidget(_uploaderWidget); - _ui->stackedWidget->setCurrentWidget(_uploaderWidget); -} - -void DialogUploader::slotUploadProgress(qint64 bytesSent, qint64 bytesTotal) -{ - _ui->progressBar->setMaximum(bytesTotal); - _ui->progressBar->setValue(bytesSent); - - if (bytesSent == bytesTotal) - _ui->progressBar->setFormat(tr("Receiving a response from the server")); -} - -void DialogUploader::slotUploadDone() -{ -qDebug() << "start dialog uploader done"; - QList links = _uploader->parsedLinksToGui(); - _ui->editDirectLink->setText(links.first().first); - _ui->editDeleteLink->setText(links.last().first); - - for (int i =1; i < links.count()-1; ++i) - { - _ui->cbxExtCode->addItem(links.at(i).second); - _resultLinks << links.at(i).first; - } - - _ui->stackedWidget->setCurrentIndex(0); - _ui->labUploadStatus->setText(tr("Upload completed")); - _ui->progressBar->setVisible(false); - _ui->cbxUploaderList->setEnabled(false); - - UploaderConfig config; - if (config.autoCopyResultLink()) - QApplication::clipboard()->setText(_ui->editDirectLink->text()); - - if (_resultLinks.count() > 0) - { - connect(_ui->cbxExtCode, SIGNAL(currentIndexChanged(int)), this, SLOT(slotChangeExtCode(int))); - _ui->cbxExtCode->setCurrentIndex(0); - _ui->editExtCode->setText(_resultLinks.at(0)); - } - else - { - _ui->editExtCode->setVisible(false); - _ui->cbxExtCode->setVisible(false); - _ui->butCopyExtCode->setVisible(false); - _ui->labExtCode_2->setVisible(false); - } - - _ui->butClose->setText(tr("Close")); -} - -void DialogUploader::slotUploadFail(const QByteArray& error) -{ - Q_UNUSED(error); - QMessageBox msg(this); - msg.setText(tr("Error uploading screenshot")); - msg.setWindowTitle(tr("Error")); - msg.setIcon(QMessageBox::Critical); - msg.exec(); - - _ui->progressBar->setVisible(false); - _ui->labUploadStatus->setText(tr("Ready to upload")); - _ui->butUpload->setEnabled(true); - _ui->butClose->setText(tr("Close")); -} - -void DialogUploader::slotChangeExtCode(int code) -{ - _ui->editExtCode->setText(_resultLinks.at(code)); -} - -void DialogUploader::slotCopyLink() -{ - QString objName = sender()->objectName(); - QString copyText; - - if (objName == "butCopyLink") - copyText = _ui->editDirectLink->text(); - - if (objName == "butCopyExtCode") - copyText = _ui->editExtCode->text(); - - qApp->clipboard()->setText(copyText); -} - -void DialogUploader::slotOpenDirectLink() -{ - QDesktopServices::openUrl(QUrl(_ui->editDirectLink->text())); -} - -void DialogUploader::slotOpenDeleteLink() -{ - QMessageBox msg(this); - msg.setText(tr("Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.")); - msg.setInformativeText(tr("Are you sure you want to continue?")); - msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No); - msg.setDefaultButton(QMessageBox::No); - int result = msg.exec(); - - if (result == QMessageBox::Yes) - QDesktopServices::openUrl(QUrl(_ui->editDeleteLink->text())); -} diff --git a/src/modules/uploader/dialoguploader.h b/src/modules/uploader/dialoguploader.h deleted file mode 100644 index 9b1c1b0..0000000 --- a/src/modules/uploader/dialoguploader.h +++ /dev/null @@ -1,64 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef DIALOGUPLOADER_H -#define DIALOGUPLOADER_H - -#include "uploader.h" - -#include - -namespace Ui { -class DialogUploader; -} - -class DialogUploader : public QDialog -{ - Q_OBJECT - -public: - explicit DialogUploader(QWidget *parent = 0); - ~DialogUploader(); - -protected: - void changeEvent(QEvent *e); - -private Q_SLOTS: - void slotUploadStart(); - void slotSeletHost(int type); - void slotUploadProgress(qint64 bytesSent, qint64 bytesTotal); - void slotUploadDone(); - void slotUploadFail(const QByteArray &error); - void slotChangeExtCode(int code); - void slotCopyLink(); - void slotOpenDirectLink(); - void slotOpenDeleteLink(); - -private: - Ui::DialogUploader *_ui; - - Uploader* _uploader; - QWidget* _uploaderWidget; - - // storage id curren selected img sho - qint8 _selectedHost; - - QStringList _resultLinks; -}; - -#endif // DIALOGUPLOADER_H diff --git a/src/modules/uploader/dialoguploader.ui b/src/modules/uploader/dialoguploader.ui deleted file mode 100644 index 0b06346..0000000 --- a/src/modules/uploader/dialoguploader.ui +++ /dev/null @@ -1,339 +0,0 @@ - - - DialogUploader - - - - 0 - 0 - 841 - 340 - - - - Upload to internet - - - - - - - - Upload to - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - - - - - - - QFrame::Panel - - - QFrame::Raised - - - - - - Qt::AlignCenter - - - - - - - - - - Qt::AlignCenter - - - - - - - - - 0 - - - - - - - Direct link: - - - - - - - - - true - - - - - - - - 112 - 0 - - - - Open this link in the default web-browser - - - Open - - - - - - - - 112 - 0 - - - - Copy this link to the clipboard - - - Copy - - - - - - - - - - - Extended preformed html or bb codes: - - - - - - - - - - - - - - true - - - - - - - - 112 - 0 - - - - Copy this link to the clipboard - - - Copy - - - - - - - - - Link to delete image: - - - - - - - - - true - - - - - - - - 112 - 0 - - - - Open this link in the default web-browser - - - Open - - - - - - - - - Qt::Vertical - - - - 20 - 34 - - - - - - labDirectLink - labDeleteLink - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 96 - 20 - - - - - - - - - - TextLabel - - - Qt::AlignCenter - - - - - - - 24 - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 96 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 112 - 0 - - - - Upload - - - - - - - - 112 - 0 - - - - Cancel - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 12 - 20 - - - - - - - - - - - diff --git a/src/modules/uploader/imgur/uploader_imgur.cpp b/src/modules/uploader/imgur/uploader_imgur.cpp deleted file mode 100644 index 73e5b7e..0000000 --- a/src/modules/uploader/imgur/uploader_imgur.cpp +++ /dev/null @@ -1,103 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "uploader_imgur.h" - -#include - -Uploader_ImgUr::Uploader_ImgUr(QObject* parent): Uploader(parent) -{ - qDebug() << " create Imgur uploader"; -} - -Uploader_ImgUr::~Uploader_ImgUr() -{ - qDebug() << " kill Imgur uploader"; -} - -/*! - * Start upload process - */ -void Uploader_ImgUr::startUploading() -{ - createData(); - createRequest(imageData, apiUrl()); - _request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded"); - - Uploader::startUploading(); -} - -/*! - * Return url for upload image - */ -QUrl Uploader_ImgUr::apiUrl() -{ - return QUrl("https://api.imgur.com/2/upload"); -} - -/*! - * Prepare image data for uploading - */ -void Uploader_ImgUr::createData(bool inBase64) -{ - inBase64 = true; - Uploader::createData(inBase64); - - // create data for upload - QByteArray uploadData; - - uploadData.append(QString("key=").toUtf8()); - uploadData.append(QUrl::toPercentEncoding("6920a141451d125b3e1357ce0e432409")); - uploadData.append(QString("&image=").toUtf8()); - uploadData.append(QUrl::toPercentEncoding(this->imageData)); - - this->imageData = uploadData; -} - -/*! - * Process server reply data - */ -void Uploader_ImgUr::replyFinished(QNetworkReply* reply) -{ - if (reply->error() == QNetworkReply::NoError) - { - QByteArray replyXmalText = reply->readAll(); - - // creating list of element names - QVector listXmlNodes; - listXmlNodes << "original" << "imgur_page" << "large_thumbnail" << "small_square" << "delete_page"; - - QMap replyXmlMap = parseResultStrings(listXmlNodes, replyXmalText); - - _uploadedStrings[UL_DIRECT_LINK].first = replyXmlMap["original"]; - _uploadedStrings[UL_HTML_CODE].first = ""; - _uploadedStrings[UL_BB_CODE].first = "[img]" + replyXmlMap["original"] +"[/img]"; - _uploadedStrings[UL_HTML_CODE_THUMB].first = ""; - _uploadedStrings[UL_BB_CODE_THUMB].first = "[url=" + replyXmlMap["original"] + "][img]"+ replyXmlMap["small_square"] +"[/img][/url]"; - _uploadedStrings[UL_DELETE_URL].first = replyXmlMap["delete_page"]; - qDebug() << "done" << _uploadedStrings[UL_DIRECT_LINK].first; - Q_EMIT uploadDoneStr(_uploadedStrings[UL_DIRECT_LINK].first); - Q_EMIT uploadDone(); - } - else - { - Q_EMIT uploadFail(reply->errorString().toLatin1()); - } - - reply->deleteLater(); -} diff --git a/src/modules/uploader/imgur/uploader_imgur.h b/src/modules/uploader/imgur/uploader_imgur.h deleted file mode 100644 index a113932..0000000 --- a/src/modules/uploader/imgur/uploader_imgur.h +++ /dev/null @@ -1,54 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef UPLOADER_IMGUR_H -#define UPLOADER_IMGUR_H - -#include - -#include - -namespace UploadImgUr { - enum Error { - ErrorFile, - ErrorNetwork, - ErrorCredits, - ErrorUpload, - ErrorCancel, - }; -}; - -class Uploader_ImgUr : public Uploader -{ - Q_OBJECT -public: - explicit Uploader_ImgUr(QObject* parent = 0); - virtual ~Uploader_ImgUr(); - - virtual void startUploading(); - -protected: - virtual QUrl apiUrl(); - virtual void createData(bool inBase64 = false); - -protected Q_SLOTS: - virtual void replyFinished(QNetworkReply* reply); -}; - -#endif // UPLOADER_IMGUR_H - diff --git a/src/modules/uploader/imgur/uploader_imgur_widget.cpp b/src/modules/uploader/imgur/uploader_imgur_widget.cpp deleted file mode 100644 index b3bf0c7..0000000 --- a/src/modules/uploader/imgur/uploader_imgur_widget.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "uploader_imgur_widget.h" -#include "ui_uploader_imgur_widget.h" - -Uploader_ImgUr_Widget::Uploader_ImgUr_Widget(QWidget *parent) : - QWidget(parent), - _ui(new Ui::Uploader_ImgUr_Widget) -{ - _ui->setupUi(this); -} - -Uploader_ImgUr_Widget::~Uploader_ImgUr_Widget() -{ - delete _ui; -} - -void Uploader_ImgUr_Widget::changeEvent(QEvent *e) -{ - QWidget::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - _ui->retranslateUi(this); - break; - default: - break; - } -} diff --git a/src/modules/uploader/imgur/uploader_imgur_widget.h b/src/modules/uploader/imgur/uploader_imgur_widget.h deleted file mode 100644 index b5e0382..0000000 --- a/src/modules/uploader/imgur/uploader_imgur_widget.h +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef UPLOADER_IMGUR_WIDGET_H -#define UPLOADER_IMGUR_WIDGET_H - -#include -#include - -namespace Ui { -class Uploader_ImgUr_Widget; -} - -class Uploader_ImgUr_Widget : public QWidget -{ - Q_OBJECT - -public: - explicit Uploader_ImgUr_Widget(QWidget *parent = 0); - ~Uploader_ImgUr_Widget(); - -protected: - void changeEvent(QEvent *e); - -private: - Ui::Uploader_ImgUr_Widget *_ui; -}; - -#endif // UPLOADER_IMGUR_WIDGET_H diff --git a/src/modules/uploader/imgur/uploader_imgur_widget.ui b/src/modules/uploader/imgur/uploader_imgur_widget.ui deleted file mode 100644 index edaad41..0000000 --- a/src/modules/uploader/imgur/uploader_imgur_widget.ui +++ /dev/null @@ -1,44 +0,0 @@ - - - Uploader_ImgUr_Widget - - - - 0 - 0 - 470 - 222 - - - - Upload to imgur.com - - - - - - Upload to Imgur - - - Qt::AlignCenter - - - - - - - Qt::Vertical - - - - 20 - 183 - - - - - - - - - diff --git a/src/modules/uploader/imgur/uploaderconfigwidget_imgur.cpp b/src/modules/uploader/imgur/uploaderconfigwidget_imgur.cpp deleted file mode 100644 index f34757a..0000000 --- a/src/modules/uploader/imgur/uploaderconfigwidget_imgur.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "uploaderconfigwidget_imgur.h" -#include "ui_uploaderconfigwidget_imgur.h" - -#include "uploaderconfig.h" - -#include - -UploaderConfigWidget_ImgUr::UploaderConfigWidget_ImgUr(QWidget *parent) : - QWidget(parent), - _ui(new Ui::UploaderConfigWidget_ImgUr) -{ - _ui->setupUi(this); - - // load settings - UploaderConfig config; - - QVariantMap loadedValues; - // TODO add imgur settings load - -} - -UploaderConfigWidget_ImgUr::~UploaderConfigWidget_ImgUr() -{ - delete _ui; -} - -void UploaderConfigWidget_ImgUr::saveSettings() -{ - UploaderConfig config; - - QVariantMap savingValues; -} - - -void UploaderConfigWidget_ImgUr::changeEvent(QEvent *e) -{ - QWidget::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - _ui->retranslateUi(this); - break; - default: - break; - } -} diff --git a/src/modules/uploader/imgur/uploaderconfigwidget_imgur.h b/src/modules/uploader/imgur/uploaderconfigwidget_imgur.h deleted file mode 100644 index a5608b6..0000000 --- a/src/modules/uploader/imgur/uploaderconfigwidget_imgur.h +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef UPLOADERCONFIGWIDGET_IMGUR_H -#define UPLOADERCONFIGWIDGET_IMGUR_H - -#include - -namespace Ui { -class UploaderConfigWidget_ImgUr; -} - -class UploaderConfigWidget_ImgUr : public QWidget -{ - Q_OBJECT - -public: - explicit UploaderConfigWidget_ImgUr(QWidget *parent = 0); - ~UploaderConfigWidget_ImgUr(); - -public Q_SLOTS: - void saveSettings(); - -protected: - void changeEvent(QEvent *e); - -private: - Ui::UploaderConfigWidget_ImgUr *_ui; -}; - -#endif // UPLOADERCONFIGWIDGET_IMGUR_H diff --git a/src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui b/src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui deleted file mode 100644 index 1f27761..0000000 --- a/src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui +++ /dev/null @@ -1,67 +0,0 @@ - - - UploaderConfigWidget_ImgUr - - - - 0 - 0 - 320 - 249 - - - - Configuration for imgur.com - - - - - - Configuration for imgur.com upload - - - Qt::AlignCenter - - - - - - - Qt::Vertical - - - - 20 - 88 - - - - - - - - No settings available right now - - - Qt::AlignCenter - - - - - - - Qt::Vertical - - - - 20 - 87 - - - - - - - - - diff --git a/src/modules/uploader/moduleuploader.cpp b/src/modules/uploader/moduleuploader.cpp deleted file mode 100644 index 3978022..0000000 --- a/src/modules/uploader/moduleuploader.cpp +++ /dev/null @@ -1,126 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "moduleuploader.h" -#include "dialoguploader.h" -#include "uploaderconfigwidget.h" -#include "uploaderconfig.h" -#include "imgur/uploader_imgur.h" - -#include "core/core.h" - -#include -#include -#include -#include - -#include - -const QString UPLOAD_CMD_PARAM = "upload"; -const QString UPLOAD_CMD_PARAM_SHORT = "u"; - -ModuleUploader::ModuleUploader(QObject *parent) : - QObject(parent), _ignoreCmdParam(false), - _optUpload(QStringList() << UPLOAD_CMD_PARAM_SHORT << UPLOAD_CMD_PARAM) -{ - QString optUploadDescr = tr("Upload the screenshot to the default image host"); - _optUpload.setDescription(optUploadDescr); - Core::instance()->addCmdLineOption(_optUpload); -} - -QString ModuleUploader::moduleName() -{ - return tr("Uploading"); -} - -void ModuleUploader::init() -{ - Core *core = Core::instance(); - - if (core->checkCmdLineOption(_optUpload) == true && _ignoreCmdParam == false) - { - UploaderConfig config; - QString selectedtHost = config.loadSingleParam(QByteArray("common"), QByteArray(KEY_DEFAULT_HOST)).toString(); - - Uploader *uploader = nullptr; - switch(config.labelsList().indexOf(selectedtHost)) - { - case 0: - uploader = new Uploader_ImgUr; - break; - default: - uploader = new Uploader_ImgUr; - } - - connect(uploader, &Uploader::uploadDoneStr, this, &ModuleUploader::shadowUploadDone); - connect(uploader, &Uploader::uploadFail, this, &ModuleUploader::shadowUploadFail); - - uploader->startUploading(); - - _ignoreCmdParam = true; - } - else - { - DialogUploader *ui = new DialogUploader(); - ui->exec(); - } -} - -QWidget* ModuleUploader::initConfigWidget() -{ - QWidget* configWidget = new UploaderConfigWidget; - return configWidget; -} - -void ModuleUploader::defaultSettings() -{ - UploaderConfig config; - config.defaultSettings(); -} - -QMenu* ModuleUploader::initModuleMenu() -{ - return nullptr; -} - -QAction* ModuleUploader::initModuleAction() -{ - QAction *act = new QAction(QObject::tr("Upload"), nullptr); - act->setObjectName("actUpload"); - connect(act, &QAction::triggered, this, &ModuleUploader::init); - return act; -} - - -void ModuleUploader::shadowUploadDone(const QString& directLink) -{ - sender()->deleteLater(); - QString str = "Upload done, direct link to image: " + directLink; - qWarning() << str; - - Q_EMIT uploadCompleteWithQuit(); -} - -void ModuleUploader::shadowUploadFail(const QByteArray& error) -{ - sender()->deleteLater(); - QString str = "Upload failed: " + error; - qWarning() << str; - - Q_EMIT uploadCompleteWithQuit(); -} diff --git a/src/modules/uploader/moduleuploader.h b/src/modules/uploader/moduleuploader.h deleted file mode 100644 index 250c704..0000000 --- a/src/modules/uploader/moduleuploader.h +++ /dev/null @@ -1,54 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef MODULEUPLOADER_H -#define MODULEUPLOADER_H - -#include "modules/abstractmodule.h" - -#include -#include -#include - -class ModuleUploader: public QObject, public AbstractModule -{ - Q_OBJECT -public: - ModuleUploader(QObject *parent = nullptr); - QString moduleName(); - QWidget* initConfigWidget(); - void defaultSettings(); - QMenu* initModuleMenu(); - QAction* initModuleAction(); - -public Q_SLOTS: - void init(); - -private Q_SLOTS: - void shadowUploadDone(const QString &directLink); - void shadowUploadFail(const QByteArray &error); - -Q_SIGNALS: - void uploadCompleteWithQuit(); - -private: - bool _ignoreCmdParam; - QCommandLineOption _optUpload; -}; - -#endif // MODULEUPLOADER_H diff --git a/src/modules/uploader/uploader.cpp b/src/modules/uploader/uploader.cpp deleted file mode 100644 index e4d3d49..0000000 --- a/src/modules/uploader/uploader.cpp +++ /dev/null @@ -1,242 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "uploader.h" -#include "core/core.h" -#include "uploaderconfig.h" - -#include -#include -#include - -#include - -Uploader::Uploader(QObject *parent) : - QObject(parent), _multipartData(nullptr) -{ - qsrand(126); - _strBoundary = "uploadbound" + QByteArray::number(qrand()); - _net = new QNetworkAccessManager(this); - _serverReply = nullptr; - initUploadedStrList(); - - UploaderConfig config; - if (config.checkExistsConfigFile() == false) - { - config.defaultSettings(); - } -} - -Uploader::~Uploader() -{ - -} - -/*! - * Create boundary string - * \param cleared -detect for str boundary line in httpRequest - */ -QByteArray Uploader::boundary(bool cleared) -{ - QByteArray retBoundary = _strBoundary; - - if (cleared == false) - { - retBoundary.append("\r\n"); - retBoundary.prepend("--"); - } - - return retBoundary; -} - -void Uploader::replyProgress(qint64 bytesSent, qint64 bytesTotal) -{ - Q_EMIT uploadProgress(bytesSent, bytesTotal); -} - -/*! - * Get user selected params from uploader widget (not from config file) - */ -void Uploader::getUserSettings(const QVariantMap& settings) -{ - _userSettings = settings; -} - -/*! - * Start uploading base class - */ -void Uploader::startUploading() -{ - connect(_net, &QNetworkAccessManager::finished, this, &Uploader::replyFinished); - - if (!_multipartData && !imageData.isEmpty()) - { - _serverReply = _net->post(_request, imageData); - } - if (_multipartData && imageData.isEmpty()) - { - _serverReply = _net->post(_request, _multipartData); - } - - connect(_serverReply, &QNetworkReply::uploadProgress, this, &Uploader::replyProgress); -} - -QMap< QByteArray, ResultString_t > Uploader::parsedLinks() -{ - return _uploadedStrings; -} - -QList Uploader::parsedLinksToGui() -{ - QList list; - ResultString_t delete_url; - ResultString_t direct_link; - - for (int i = 0; i < _uploadedStrings.count(); ++i) - { - QByteArray key = _uploadedStrings.keys().at(i); - - if (key == "delete_url") - { - delete_url = _uploadedStrings[key]; - } - else if(key == "direct_link") - { - direct_link = _uploadedStrings[key]; - } - else - { - ResultString_t val = _uploadedStrings[key]; - list.append(val); - } - } - - list.prepend(direct_link); - - if (delete_url.first.isEmpty() == false) - { - list.append(delete_url); - } - - return list; -} - - -/*! - * Return url for uploaded image - */ -QUrl Uploader::apiUrl() -{ - return QUrl(); -} - -/*! - * Prepare image data for uploading - */ -void Uploader::createData(bool inBase64) -{ - Core *core = Core::instance(); - _formatString = core->config()->getSaveFormat(); - _uploadFilename = core->getTempFilename(_formatString); - core->writeScreen(_uploadFilename, _formatString , true); - - if (inBase64 == false) - { - imageData = core->getScreenData(); - } - else - { - imageData = core->getScreenData().toBase64(); - } - core->killTempFile(); -} - -/*! - * Create request for send to server. - * this method called from subclasses. - */ -void Uploader::createRequest(const QByteArray& requestData, const QUrl &url) -{ - Q_UNUSED(requestData); - _request.setUrl(url); -} - -/*! - * Parsing server reply and get map with server returned links - * \param keytags List of tags for parsing - * \param result String wuth server reply - */ -QMap Uploader::parseResultStrings(const QVector< QByteArray >& keytags, const QByteArray& result) -{ - QMap replyMap; - - QRegExp re; - QRegExp re2; - - int inStart = 0; - int outStart = 0; - int len = 0; - - // parsing xml - for (int i = 0; i < keytags.count(); ++i) - { - // set patterns for full lenght item - re.setPattern("<"+keytags[i]+">"); // open tag - re2.setPattern(""); //close tag - - // get start pos and lenght ite in xml - inStart = re.indexIn(result); // ops open tag start - outStart = re2.indexIn(result); // pos close tag start - len = outStart - inStart + re2.matchedLength(); // length of full string - - // extract item and replace spec html symbols - QByteArray extractedText = result.mid(inStart, len); - extractedText = extractedText.replace(""","'"); - extractedText = extractedText.replace("<","<"); - extractedText = extractedText.replace(">",">"); - extractedText = extractedText.replace("<"+keytags[i]+">",""); - extractedText = extractedText.replace("",""); - - // to map - replyMap.insert(keytags[i], extractedText); - - } - - return replyMap; -} - -void Uploader::initUploadedStrList() -{ - ResultString_t strPair = qMakePair(QByteArray(), tr("Direct link")); - _uploadedStrings.insert(UL_DIRECT_LINK, strPair); - - strPair = qMakePair(QByteArray(), tr("HTML code")); - _uploadedStrings.insert(UL_HTML_CODE ,strPair); - - strPair = qMakePair(QByteArray(), tr("BB code")); - _uploadedStrings.insert(UL_BB_CODE, strPair); - - strPair = qMakePair(QByteArray(), tr("HTML code with thumb image")); - _uploadedStrings.insert(UL_HTML_CODE_THUMB ,strPair); - - strPair = qMakePair(QByteArray("bb_code_thumb"), tr("BB code with thumb image")); - _uploadedStrings.insert(UL_BB_CODE_THUMB, strPair); - - strPair = qMakePair(QByteArray(), tr("URl to delete image")); - _uploadedStrings.insert(UL_DELETE_URL ,strPair); -} diff --git a/src/modules/uploader/uploader.h b/src/modules/uploader/uploader.h deleted file mode 100644 index 4809ed2..0000000 --- a/src/modules/uploader/uploader.h +++ /dev/null @@ -1,91 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef UPLOADER_H -#define UPLOADER_H - -#include -#include -#include -#include -#include -#include -#include -#include - -typedef QPair ResultString_t; - -const QByteArray UL_DIRECT_LINK = "direct_link"; -const QByteArray UL_HTML_CODE = "html_code"; -const QByteArray UL_BB_CODE = "bb_code"; -const QByteArray UL_HTML_CODE_THUMB = "html_code_thumb"; -const QByteArray UL_BB_CODE_THUMB = "bb_code_thumb"; -const QByteArray UL_DELETE_URL = "delete_url"; - -class Uploader : public QObject -{ - Q_OBJECT -public: - explicit Uploader(QObject *parent = 0); - virtual ~Uploader(); - - // overriding methods - void getUserSettings(const QVariantMap& settings); - virtual void startUploading(); - QMap parsedLinks(); - QList parsedLinksToGui(); - -Q_SIGNALS: - void uploadStart(); - void uploadFail(const QByteArray &error); - void uploadDoneStr(const QString &directLink); - void uploadDone(); - void uploadProgress(qint64 bytesSent, qint64 bytesTotal); - -public Q_SLOTS: - -protected Q_SLOTS: - virtual void replyFinished(QNetworkReply* reply) {Q_UNUSED(reply)}; - void replyProgress(qint64 bytesSent, qint64 bytesTotal); - -protected: - // methods - QByteArray boundary(bool cleared = false); - QMap parseResultStrings(const QVector& keytags, const QByteArray& result); - - virtual QUrl apiUrl(); - virtual void createData(bool inBase64 = false); - virtual void createRequest(const QByteArray& requestData, const QUrl &url); - - // vars - QByteArray imageData; - QHttpMultiPart *_multipartData; - QString _uploadFilename; - QString _formatString; - QByteArray _strBoundary; - QMap _uploadedStrings; - QVariantMap _userSettings; - QNetworkAccessManager *_net; - QNetworkRequest _request; - QNetworkReply *_serverReply; - -private: - void initUploadedStrList(); -}; - -#endif // UPLOADER_H diff --git a/src/modules/uploader/uploaderconfig.cpp b/src/modules/uploader/uploaderconfig.cpp deleted file mode 100644 index ac792fe..0000000 --- a/src/modules/uploader/uploaderconfig.cpp +++ /dev/null @@ -1,122 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "uploaderconfig.h" -#include "core/config.h" - -#include - -#include -#include - -// common defaults -#define DEF_AUTO_COPY_RESULT_LIMK false -#define DEF_DEFAULT_HOST "Imgur" - - -QStringList UploaderConfig::_labelsList = QStringList() << "Imgur"; - -UploaderConfig::UploaderConfig() -{ - _settings = new QSettings ("screengrab", "uploader"); - _groupsList << "imgur.com" << "mediacru.sh"; -} - -UploaderConfig::~UploaderConfig() -{ - delete _settings; -} - -QStringList UploaderConfig::labelsList() -{ - return _labelsList; -} - -QVariantMap UploaderConfig::loadSettings(const QByteArray& group, QVariantMap& mapValues) -{ - QVariantMap map; - - _settings->beginGroup(group); - - QVariant defValue, iterValue; - QVariantMap::iterator iter = mapValues.begin(); - while(iter != mapValues.end()) - { - defValue = iter.value(); - iterValue = _settings->value(iter.key(), defValue); - map.insert(iter.key(), iterValue); - ++iter; - } - - _settings->endGroup(); - - return map; -} - -QVariant UploaderConfig::loadSingleParam(const QByteArray& group, const QByteArray& param) -{ - QVariant var; - - _settings->beginGroup(group); - var = _settings->value(param); - _settings->endGroup(); - - return var; -} - - -void UploaderConfig::saveSettings(const QByteArray& group, QVariantMap& mapValues) -{ - _settings->beginGroup(group); - - QVariantMap::iterator iter = mapValues.begin(); - while(iter != mapValues.end()) - { - _settings->setValue(iter.key(), iter.value()); - ++iter; - } - - _settings->endGroup(); -} - -void UploaderConfig::defaultSettings() -{ - _settings->beginGroup("common"); - _settings->setValue(KEY_AUTO_COPY_RESULT_LIMK, DEF_AUTO_COPY_RESULT_LIMK); - _settings->setValue(KEY_DEFAULT_HOST, DEF_DEFAULT_HOST); - _settings->endGroup(); - - // imgur.com settings - _settings->beginGroup(_groupsList[1]); - _settings->endGroup(); -} - -bool UploaderConfig::autoCopyResultLink() -{ - _settings->beginGroup("common"); - bool ret = _settings->value(KEY_AUTO_COPY_RESULT_LIMK, DEF_AUTO_COPY_RESULT_LIMK).toBool(); - _settings->endGroup(); - - return ret; -} - - -bool UploaderConfig::checkExistsConfigFile() const -{ - return QFile::exists(_settings->fileName()); -} diff --git a/src/modules/uploader/uploaderconfig.h b/src/modules/uploader/uploaderconfig.h deleted file mode 100644 index 1059155..0000000 --- a/src/modules/uploader/uploaderconfig.h +++ /dev/null @@ -1,54 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef UPLOADERCONFIG_H -#define UPLOADERCONFIG_H - -#include -#include -#include -#include - -// Uploader config file common keys -#define KEY_AUTO_COPY_RESULT_LIMK "autoCopyDirectLink" -#define KEY_DEFAULT_HOST "defaultHost" - -class UploaderConfig -{ - -public: - UploaderConfig(); - ~UploaderConfig(); - - static QStringList labelsList(); - - QVariantMap loadSettings(const QByteArray& group, QVariantMap& mapValues); - QVariant loadSingleParam(const QByteArray& group, const QByteArray& param); - void saveSettings(const QByteArray& group, QVariantMap& mapValues); - void defaultSettings(); - bool checkExistsConfigFile() const; - bool autoCopyResultLink(); - -private: - QSettings *_settings; - - QStringList _groupsList; - static QStringList _labelsList; -}; - -#endif // UPLOADERCONFIG_H diff --git a/src/modules/uploader/uploaderconfigwidget.cpp b/src/modules/uploader/uploaderconfigwidget.cpp deleted file mode 100644 index 62d942f..0000000 --- a/src/modules/uploader/uploaderconfigwidget.cpp +++ /dev/null @@ -1,113 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#include "uploaderconfigwidget.h" -#include "ui_uploaderconfigwidget.h" - -#include "uploaderconfig.h" - -#include - -#include - - -UploaderConfigWidget::UploaderConfigWidget(QWidget *parent) : - QWidget(parent), - _ui(new Ui::UploaderConfigWidget) -{ - _ui->setupUi(this); - - _ui->settings->setCurrentWidget(_ui->commonSettings); - - QStringList hosts = UploaderConfig::labelsList(); - _ui->cbxHosts->addItems(hosts); - _ui->cbxDefaultHost->addItems(hosts); - - loadSettings(); - - _imgur = new UploaderConfigWidget_ImgUr(this); - - _ui->stackedHosts->addWidget(_imgur); - - void (QComboBox::*hostChanged)(int) = &QComboBox::currentIndexChanged; - connect(_ui->cbxHosts, hostChanged, _ui->stackedHosts, &QStackedWidget::setCurrentIndex); - - _ui->stackedHosts->setCurrentIndex(_ui->cbxDefaultHost->currentIndex()); -} - -UploaderConfigWidget::~UploaderConfigWidget() -{ - delete _ui; -} - -void UploaderConfigWidget::loadSettings() -{ - qDebug() << "load uploder common settings"; - - UploaderConfig config; - QVariantMap loadValues; - loadValues.insert("autoCopyDirectLink", QVariant(false)); - loadValues.insert(KEY_DEFAULT_HOST, ""); - loadValues = config.loadSettings("common", loadValues); - - QString defaultHost = loadValues[KEY_DEFAULT_HOST].toString(); - if (defaultHost.isEmpty() == true) - { - _ui->cbxDefaultHost->setCurrentIndex(0); - } - else - { - qint8 index = config.labelsList().indexOf(defaultHost); - - if (index == -1) - { - index++; - } - - _ui->cbxDefaultHost->setCurrentIndex(index); - } - _ui->cbxHosts->setCurrentIndex(_ui->cbxDefaultHost->currentIndex()); - - _ui->checkAutoCopyMainLink->setChecked(loadValues["autoCopyDirectLink"].toBool()); -} - -void UploaderConfigWidget::saveSettings() -{ - UploaderConfig config; - QVariantMap savingValues; - savingValues.insert(KEY_AUTO_COPY_RESULT_LIMK, _ui->checkAutoCopyMainLink->isChecked()); - - QString defaultHost = config.labelsList().at(_ui->cbxDefaultHost->currentIndex()); - savingValues.insert(KEY_DEFAULT_HOST, defaultHost); - - config.saveSettings("common", savingValues); - - QMetaObject::invokeMethod(_imgur, "saveSettings"); -} - -void UploaderConfigWidget::changeEvent(QEvent *e) -{ - QWidget::changeEvent(e); - switch (e->type()) { - case QEvent::LanguageChange: - _ui->retranslateUi(this); - break; - default: - break; - } -} diff --git a/src/modules/uploader/uploaderconfigwidget.h b/src/modules/uploader/uploaderconfigwidget.h deleted file mode 100644 index dd10f9c..0000000 --- a/src/modules/uploader/uploaderconfigwidget.h +++ /dev/null @@ -1,52 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2009 - 2013 by Artem 'DOOMer' Galichkin * - * doomer3d@gmail.com * - * * - * 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 of the License, 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. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - -#ifndef UPLOADERCONFIGWIDGET_H -#define UPLOADERCONFIGWIDGET_H - -#include - -#include "imgur/uploaderconfigwidget_imgur.h" - -namespace Ui { -class UploaderConfigWidget; -} - -class UploaderConfigWidget : public QWidget -{ - Q_OBJECT - -public: - explicit UploaderConfigWidget(QWidget *parent = 0); - ~UploaderConfigWidget(); - -public Q_SLOTS: - void loadSettings(); - void saveSettings(); - -protected: - void changeEvent(QEvent *e); - -private: - Ui::UploaderConfigWidget *_ui; - - // services widgets - UploaderConfigWidget_ImgUr *_imgur; -}; - -#endif // UPLOADERCONFIGWIDGET_H diff --git a/src/modules/uploader/uploaderconfigwidget.ui b/src/modules/uploader/uploaderconfigwidget.ui deleted file mode 100644 index 7147a27..0000000 --- a/src/modules/uploader/uploaderconfigwidget.ui +++ /dev/null @@ -1,96 +0,0 @@ - - - UploaderConfigWidget - - - - 0 - 0 - 586 - 290 - - - - Uploader configuration - - - - - - 1 - - - - Common settings - - - - - - - - Default image host - - - - - - - - - - - - Always copy the link to the clipboard - - - - - - - Qt::Vertical - - - - 20 - 165 - - - - - - - - - Hosts settings - - - - - - - - Settings for: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - - - - - - - - - - - diff --git a/translations/screengrab.ts b/translations/screengrab.ts deleted file mode 100644 index 403c313..0000000 --- a/translations/screengrab.ts +++ /dev/null @@ -1,962 +0,0 @@ - - - - - AboutDialog - - - using Qt - - - - - About - - - - - Thanks - - - - - Help us - - - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - It is a light and powerful application, written in Qt. - - - - - Website - - - - - Licensed under the - - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - - You can join us and help us if you want. This is an invitation if you like this application. - - - - - What you can do? - - - - - Translate ScreenGrab to other languages - - - - - Make suggestions for next releases - - - - - Report bugs and issues - - - - - Bug tracker - - - - - Translate: - - - - - Brazilian Portuguese translation - - - - - Marcio Moraes - - - - - Ukrainian translation - - - - - Gennadi Motsyo - - - - - Spanish translation - - - - - Burjans L García D - - - - - Italian translation - - - - - Testing: - - - - - Dual monitor support and other in Linux - - - - - Dual monitor support in Linux - - - - - win32-build [Windows XP and 7] - - - - - old win32-build [Windows Vista] - - - - - win32-build [Windows 7] - - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - - - - - - Warning - - - - - Select directory - - - - - Do you want to reset the settings to the defaults? - - - - - Example: - - - - - This key is already used in your system! Please select another. - - - - - This key is already used in ScreenGrab! Please select another. - - - - - This key is not supported on your system! - - - - - Error - - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - Take a fullscreen screenshot - - - - - Take a screenshot of the active window - - - - - Take a screenshot of a selection of the screen - - - - - Run the application with a hidden main window - - - - - Saved - - - - - Saved to - - - - - Name of saved file is copied to the clipboard - - - - - Path to saved file is copied to the clipboard - - - - - Copied - - - - - Screenshot is copied to clipboard - - - - - DialogUploader - - - Upload to internet - - - - - Upload to - - - - - Direct link: - - - - - - Open this link in the default web-browser - - - - - - Open - - - - - - Copy this link to the clipboard - - - - - - Copy - - - - - Extended preformed html or bb codes: - - - - - Link to delete image: - - - - - Upload - - - - - Cancel - - - - - Size: - - - - - pixel - - - - - Uploaded - - - - - - Ready to upload - - - - - Upload processing... Please wait - - - - - Receiving a response from the server - - - - - Upload completed - - - - - - Close - - - - - Error uploading screenshot - - - - - Error - - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - - - - - Are you sure you want to continue? - - - - - MainWindow - - - ScreenGrab - - - - - Type: - - - - - Type of screenshot - - - - - Full screen - - - - - Window - - - - - Screen area - - - - - Last selected area - - - - - Delay: - - - - - Delay in seconds before taking screenshot - - - - - None - - - - - sec - - - - - Zoom area around mouse - - - - - No window decoration - - - - - Include mouse pointer - - - - - toolBar - - - - - New - - - - - Save - - - - - Copy - - - - - Options - - - - - - Help - - - - - About - - - - - Quit - - - - - Screenshot - - - - - Double click to open screenshot in external default image viewer - - - - - - Hide - - - - - Show - - - - - %1 Files - - - - - Save As... - - - - - ModuleUploader - - - Upload the screenshot to the default image host - - - - - Uploading - - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - - - - - %1 x %2 pixels - - - - - QObject - - - External edit - - - - - Edit in... - - - - - Upload - - - - - Uploader - - - Direct link - - - - - HTML code - - - - - BB code - - - - - HTML code with thumb image - - - - - BB code with thumb image - - - - - URl to delete image - - - - - UploaderConfigWidget - - - Common settings - - - - - Default image host - - - - - Always copy the link to the clipboard - - - - - Hosts settings - - - - - Settings for: - - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - - - - - No settings available right now - - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - - - - - aboutWidget - - - About Qt - - - - - Close - - - - - configwidget - - - - Options - - - - - Main - - - - - Advanced - - - - - System tray - - - - - Shortcuts - - - - - Default save directory - - - - - Path to default selection dir for saving - - - - - Browse filesystem - - - - - Browse - - - - - Default file - - - - - Name: - - - - - Default filename - - - - - Format - - - - - Default saving image format - - - - - Copy file name to the clipboard when saving - - - - - Do not copy - - - - - Copy file name only - - - - - Copy full file path - - - - - Image quality - - - - - Image quality (1 - small file, 100 - high quality) - - - - - Inserting current date time into saved filename - - - - - Insert current date and time in file name - - - - - Template: - - - - - Example: - - - - - Automatically saving screenshots in grabbing process - - - - - Autosave screenshot - - - - - Save first screenshot - - - - - Allow run multiplies copy of ScreenGrab - - - - - Allow multiple instances of ScreenGrab - - - - - Open in external viewer on double click - - - - - Enable external viewer - - - - - Fit to edges only inside selected screen area - - - - - Fit to edges inside selected area - - - - - Show ScreenGrab in the system tray - - - - - Tray messages: - - - - - Tray messages display mode - - - - - Never - - - - - Tray mode - - - - - Always - - - - - Time of display tray messages - - - - - Time to display tray messages - - - - - sec - - - - - Minimize to tray on click close button - - - - - Minimize to tray when closing - - - - - Action - - - - - Shortcut - - - - - Global shortcuts - - - - - Full screen - - - - - Active window - - - - - Area select - - - - - Local shortcuts - - - - - New screen - - - - - Save screen - - - - - Copy screen - - - - - Help - - - - - Quit - - - - - Selected shortcut: - - - - - Not defined - - - - diff --git a/translations/screengrab_ca.desktop b/translations/screengrab_ca.desktop deleted file mode 100644 index 0a242da..0000000 --- a/translations/screengrab_ca.desktop +++ /dev/null @@ -1,3 +0,0 @@ -Name[ca]=ScreenGrab -GenericName[ca]=Programa de captura de la pantalla -Comment[ca]=Captura de la pantalla diff --git a/translations/screengrab_ca.ts b/translations/screengrab_ca.ts deleted file mode 100644 index 37e562e..0000000 --- a/translations/screengrab_ca.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - mitjançant Qt - - - - About - Quant a - - - - Thanks - Agraïments - - - - Help us - Ajudeu-nos - - - - is a crossplatform application for fast creating screenshots of your desktop. - és una aplicació multiplataforma per a la creació ràpida de captures de pantalla del vostre escriptori. - - - - It is a light and powerful application, written in Qt. - És una aplicació lleugera i potent, escrita en Qt. - - - - Website - Lloc web - - - - Licensed under the - Llicenciat sota la - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Drets d'autor &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - You can join us and help us if you want. This is an invitation if you like this application. - Podeu unir-vos a nosaltres i ajudar-nos si voleu. Aquesta és una invitació si us agrada aquesta aplicació. - - - - What you can do? - Què podeu fer? - - - - Translate ScreenGrab to other languages - Traduir ScreenGrab a altres llengües - - - - Make suggestions for next releases - Fer suggeriments per als pròxims llançaments - - - - Report bugs and issues - Informar dels errors i de les incidències - - - - Bug tracker - Seguiment d'errors - - - - Translate: - Traducció: - - - - Brazilian Portuguese translation - Traducció al portuguès de Brasil - - - - Marcio Moraes - - - - - Ukrainian translation - Traducció a l'ucraïnès - - - - Gennadi Motsyo - - - - - Spanish translation - Traducció a l'espanyol - - - - Burjans L García D - - - - - Italian translation - Traducció a l'italià - - - - Testing: - Proves: - - - - Dual monitor support and other in Linux - Admissió de monitors duals i altres a Linux - - - - Dual monitor support in Linux - Admissió de monitors duals a Linux - - - - win32-build [Windows XP and 7] - Construcció win32 [Windows XP i 7] - - - - old win32-build [Windows Vista] - Construcció win32 antiga [Windows Vista] - - - - win32-build [Windows 7] - Construcció win32 [Windows 7] - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - No existeix el directori %1. Voleu crear-lo? - - - - - Warning - Avís - - - - Select directory - Selecciona el directori - - - - Do you want to reset the settings to the defaults? - Voleu restablir els ajusts als valors predeterminats? - - - - Example: - Exemple: - - - - This key is already used in your system! Please select another. - Aquesta tecla ja s'utilitza al vostre sistema. Seleccioneu-ne una altra. - - - - This key is already used in ScreenGrab! Please select another. - Aquesta tecla ja s'utilitza a ScreenGrab. Seleccioneu-ne una altra. - - - - This key is not supported on your system! - Aquesta tecla no està admesa al vostre sistema! - - - - Error - - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - és una aplicació multiplataforma per a la creació ràpida de captures de pantalla del vostre escriptori. - - - - Take a fullscreen screenshot - Feu captures de pantalla a pantalla completa - - - - Take a screenshot of the active window - Feu una captura de pantalla de la finestra activa - - - - Take a screenshot of a selection of the screen - Feu captures de pantalla d'una selecció de la pantalla - - - - Run the application with a hidden main window - Executeu l'aplicació amb una finestra principal oculta - - - - Saved - Desat - - - - Saved to - Desat a - - - - Name of saved file is copied to the clipboard - El nom del fitxer desat es copia al porta-retalls - - - - Path to saved file is copied to the clipboard - El camí al fitxer desat es copia al porta-retalls - - - - Copied - Copiat - - - - Screenshot is copied to clipboard - La captura de pantalla es copia al porta-retalls - - - - DialogUploader - - - Upload to internet - Pujar-ho a Internet - - - - Upload to - Pujar-ho a - - - - Direct link: - Enllaç directe: - - - - - Open this link in the default web-browser - Obre aquest enllaç al navegador web per defecte - - - - - Open - Obre - - - - - Copy this link to the clipboard - Copia aquest enllaç al porta-retalls - - - - - Copy - Copia - - - - Extended preformed html or bb codes: - Codis html o bb preformats ampliats: - - - - Link to delete image: - Enllaç per eliminar la imatge: - - - - Upload - Puja - - - - Cancel - Cancel·la - - - - Size: - Mida: - - - - pixel - píxel - - - - Uploaded - Pujat - - - - - Ready to upload - A punt per pujar - - - - Upload processing... Please wait - Processament de la pujada... Espereu - - - - Receiving a response from the server - Recepció d'una resposta del servidor - - - - Upload completed - Pujada completada - - - - - Close - Tanca - - - - Error uploading screenshot - Error en la pujada de la captura de pantalla - - - - Error - - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Obre aquest enllaç al navegador web per defecte, pot eliminar directament la imatge que heu carregat, sense cap avís. - - - - Are you sure you want to continue? - Esteu segur que voleu continuar? - - - - MainWindow - - - ScreenGrab - - - - - Type: - Tipus: - - - - Type of screenshot - Tipus de la captura de pantalla - - - - Full screen - Pantalla completa - - - - Window - Finestra - - - - Screen area - Àrea de la pantalla - - - - Last selected area - Última àrea seleccionada - - - - Delay: - Retard: - - - - Delay in seconds before taking screenshot - Retard en segons abans de prendre la captura de pantalla - - - - None - Cap - - - - sec - s - - - - Zoom area around mouse - Zoom a l'àrea al voltant del ratolí - - - - No window decoration - Sense decoració de finestra - - - - Include mouse pointer - Inclou el punter del ratolí - - - - toolBar - Barra d'eines - - - - New - Nova - - - - Save - Desa - - - - Copy - Copia - - - - Options - - - - - - Help - - - - - About - Quant a - - - - Quit - Surt - - - - Screenshot - - - - - Double click to open screenshot in external default image viewer - Doble clic per obrir la captura de pantalla al visualitzador d'imatges extern predeterminat - - - - - Hide - Oculta - - - - Show - Mostra - - - - %1 Files - %1 fitxers - - - - Save As... - Desa com... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Puja la captura de pantalla a l'amfitrió d'imatges predeterminat - - - - Uploading - Pujada - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Utilitzeu el ratolí per dibuixar un rectangle per capturar la pantalla o -sortiu prement qualsevol tecla o els botons dret o central del ratolí. - - - - %1 x %2 pixels - %1 x %2 píxels - - - - QObject - - - External edit - Edició externa - - - - Edit in... - Edita a... - - - - Upload - - - - - Uploader - - - Direct link - Enllaç directe - - - - HTML code - - - - - BB code - - - - - HTML code with thumb image - Codi HTML amb la imatge en miniatura - - - - BB code with thumb image - Codi BB amb la imatge en miniatura - - - - URl to delete image - - - - - UploaderConfigWidget - - - Common settings - Ajusts comuns - - - - Default image host - - - - - Always copy the link to the clipboard - Copia sempre l'enllaç al porta-retalls - - - - Hosts settings - Ajusts dels amfitrions - - - - Settings for: - Ajusts per: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - - - - - No settings available right now - No hi ha cap ajust disponible ara mateix - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Puja a Imgur - - - - aboutWidget - - - About Qt - Quant a Qt - - - - Close - Tanca - - - - configwidget - - - - Options - - - - - Main - Principal - - - - Advanced - Avançat - - - - System tray - Safata del sistema - - - - Shortcuts - Dreceres - - - - Default save directory - Directori de desament predeterminat - - - - Path to default selection dir for saving - Camí al directori predeterminat dels desaments per seleccionar-ne un - - - - Browse filesystem - Navega pel sistema de fitxers - - - - Browse - Navega - - - - Default file - Fitxer predeterminat - - - - Name: - Nom: - - - - Default filename - Nom de fitxer predeterminat - - - - Format - - - - - Default saving image format - Format d'imatge predeterminat de desament - - - - Copy file name to the clipboard when saving - Copia el nom del fitxer al porta-retalls quan es desa - - - - Do not copy - No ho copiïs - - - - Copy file name only - Copia només el nom del fitxer - - - - Copy full file path - Copia el camí complet al fitxer - - - - Image quality - Qualitat d'imatge - - - - Image quality (1 - small file, 100 - high quality) - Qualitat d'imatge (1 - fitxer petit, 100 - alta qualitat) - - - - Inserting current date time into saved filename - Inserció de la data actual al nom del fitxer desat - - - - Insert current date and time in file name - Insereix la data i hora actual al nom del fitxer - - - - Template: - Plantilla: - - - - Example: - Exemple: - - - - Automatically saving screenshots in grabbing process - Desament automàtic de captures de pantalla en el procés d'agafament - - - - Autosave screenshot - Desa automàticament la captura de pantalla - - - - Save first screenshot - Desa primer la captura de pantalla - - - - Allow run multiplies copy of ScreenGrab - Permet l'execució de diverses còpies de ScreenGrab - - - - Allow multiple instances of ScreenGrab - Permet diverses instàncies de ScreenGrab - - - - Open in external viewer on double click - Obre al visualitzador extern amb el doble clic - - - - Enable external viewer - Habilita el visualitzador extern - - - - Fit to edges only inside selected screen area - Ajusta a les vores només dins de l'àrea de la pantalla seleccionada - - - - Fit to edges inside selected area - Ajusta a les vores dins de l'àrea seleccionada - - - - Show ScreenGrab in the system tray - Mostra ScreenGrab a la safata del sistema - - - - Tray messages: - Missatges de la safata: - - - - Tray messages display mode - Mode de visualització dels missatges de la safata - - - - Never - Mai - - - - Tray mode - Mode safata - - - - Always - Sempre - - - - Time of display tray messages - Temps de visualització dels missatges de la safata - - - - Time to display tray messages - Temps per mostrar el missatges de la safata - - - - sec - s - - - - Minimize to tray on click close button - Minimitza a la safata amb el clic al botó de tancar - - - - Minimize to tray when closing - Minimitza a la safata quan s'està tancant - - - - Action - Acció - - - - Shortcut - Drecera - - - - Global shortcuts - Dreceres globals - - - - Full screen - Pantalla completa - - - - Active window - Finestra activa - - - - Area select - Selecció de l'àrea - - - - Local shortcuts - Dreceres locals - - - - New screen - Pantalla nova - - - - Save screen - Desa la pantalla - - - - Copy screen - Copia la pantalla - - - - Help - Ajuda - - - - Quit - Surt - - - - Selected shortcut: - Drecera seleccionada: - - - - Not defined - Sense definir - - - diff --git a/translations/screengrab_cs.desktop b/translations/screengrab_cs.desktop deleted file mode 100644 index 2aef328..0000000 --- a/translations/screengrab_cs.desktop +++ /dev/null @@ -1,2 +0,0 @@ -Comment[cs]=Pořizování snímků obrazovky -GenericName[cs]=Pořizování snímků obrazovky diff --git a/translations/screengrab_cs.ts b/translations/screengrab_cs.ts deleted file mode 100644 index 4c4c37d..0000000 --- a/translations/screengrab_cs.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - používá Qt - - - - About - O aplikaci - - - - Thanks - Poděkování - - - - Help us - Pomozte s vývojem - - - - is a crossplatform application for fast creating screenshots of your desktop. - je multiplatformní aplikace pro rychlé pořizování zachycených snímků pracovní plochy. - - - - It is a light and powerful application, written in Qt. - Je nenáročná a přitom funkcemi nabitá aplikace, naprogramovaná pomocí Qt. - - - - Website - Webové stránky - - - - Licensed under the - Licencováno za podmínek - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Autorské právo &copy; 2009-2013, Artem „DOOMer“ Galichkin - - - - You can join us and help us if you want. This is an invitation if you like this application. - Pokud chcete, můžete se k nám připojit a pomoci. Pokud se vám tato aplikace líbí, toto je pozvánka. - - - - What you can do? - Co můžete dělat? - - - - Translate ScreenGrab to other languages - Překládat ScreenGrab do ostatních jazyků - - - - Make suggestions for next releases - Navrhovat změny/vylepšení do příštích vydání - - - - Report bugs and issues - Hlásit chyby a problémy - - - - Bug tracker - Evidence hlášení chyb - - - - Translate: - Překládat: - - - - Brazilian Portuguese translation - Překlad do brazilské portugalštiny - - - - Marcio Moraes - - - - - Ukrainian translation - Překlad do ukrajinštiny - - - - Gennadi Motsyo - - - - - Spanish translation - Překlad do španělštiny - - - - Burjans L García D - - - - - Italian translation - Překlad do italštiny - - - - Testing: - Testování: - - - - Dual monitor support and other in Linux - Podpora vícero monitorů a ostatní v systému GNU/Linux - - - - Dual monitor support in Linux - Podpora vícero monitorů v GNU/Linux - - - - win32-build [Windows XP and 7] - win32 sestavení [Windows XP a 7] - - - - old win32-build [Windows Vista] - stará win32 sestavení [Windows Vista] - - - - win32-build [Windows 7] - win32 sestavení [Windows 7] - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - Složka %1 neexistuje. Chcete ji vytvořit? - - - - - Warning - Varování - - - - Select directory - Vybrat složku - - - - Do you want to reset the settings to the defaults? - Opravdu chcete vrátit nastavení do výchozích hodnot? - - - - Example: - Příklad: - - - - This key is already used in your system! Please select another. - Tato klávesa je už ve vámi používaném systému přiřazena něčemu jinému! Vyberte jinou. - - - - This key is already used in ScreenGrab! Please select another. - Tato klávesa je už ve ScreeGrab přiřazena něčemu jinému! Vyberte jinou. - - - - This key is not supported on your system! - Tato klávesa není ve vámi používaném operačním systému podporována! - - - - Error - Chyba - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - je multiplatformní aplikace pro pohotové pořizování snímků obrazovky pracovní plochy. - - - - Take a fullscreen screenshot - Pořídit snímek celé obrazovky - - - - Take a screenshot of the active window - Pořídit snímek aktivního okna - - - - Take a screenshot of a selection of the screen - Pořídit snímek vybrané části obrazovky - - - - Run the application with a hidden main window - Spustit aplikaci tak, aby její hlavní okno zůstalo skryté - - - - Saved - Uloženo - - - - Saved to - Uloženo do - - - - Name of saved file is copied to the clipboard - Název uloženého souboru je zkopírován do schránky - - - - Path to saved file is copied to the clipboard - Popis umístění uloženého souboru je zkopírován do schránky - - - - Copied - Zkopírováno - - - - Screenshot is copied to clipboard - Snímek obrazovky je zkopírován do schránky - - - - DialogUploader - - - Upload to internet - Nahrát na Internet - - - - Upload to - Nahrát na - - - - Direct link: - Přímý odkaz: - - - - - Open this link in the default web-browser - Otevřít tento odkaz ve výchozím webovém prohlížeči - - - - - Open - Otevřít - - - - - Copy this link to the clipboard - Zkopírovat tento odkaz do schránky - - - - - Copy - Zkopírovat - - - - Extended preformed html or bb codes: - Rozšířené předformátované html nebo bb kódy: - - - - Link to delete image: - Odkaz na smazání obrázku: - - - - Upload - Nahrát - - - - Cancel - Storno - - - - Size: - Velikost: - - - - pixel - - - - - Uploaded - Nahráno - - - - - Ready to upload - Připraveno k nahrání - - - - Upload processing... Please wait - Zpracovávání nahrání – čekejte… - - - - Receiving a response from the server - Získávání odpovědi ze serveru - - - - Upload completed - Nahrání dokončeno - - - - - Close - Zavřít - - - - Error uploading screenshot - Chyba při nahrávání snímku obrazovky - - - - Error - Chyba - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Otevření tohoto odkazu ve webovém prohlížeči může bez jakéhokoli varování vést ke smazání nahraného obrázku. - - - - Are you sure you want to continue? - Opravdu chcete pokračovat? - - - - MainWindow - - - ScreenGrab - - - - - Type: - Typ: - - - - Type of screenshot - Typ snímku obrazovky - - - - Full screen - Celá obrazovka - - - - Window - Okno - - - - Screen area - Oblast obrazovky - - - - Last selected area - Posledně vybraná oblast - - - - Delay: - Prodleva: - - - - Delay in seconds before taking screenshot - Prodleva (v sekundách) před pořízením snímku - - - - None - Žádná - - - - sec - sek - - - - Zoom area around mouse - Přiblížit oblast okolo ukazatele myši - - - - No window decoration - Žádná dekorace okna - - - - Include mouse pointer - Včetně ukazatele myši - - - - toolBar - pruh nástrojů - - - - New - Nový - - - - Save - Uložit - - - - Copy - Zkopírovat - - - - Options - Možnosti - - - - - Help - Nápověda - - - - About - A aplikaci - - - - Quit - Ukončit - - - - Screenshot - Snímek obrazovky - - - - Double click to open screenshot in external default image viewer - Dvojklikem snímek otevřít ve výchozím prohlížeči obrázků - - - - - Hide - Skrýt - - - - Show - Zobrazit - - - - %1 Files - %1 souborů - - - - Save As... - Uložit jako… - - - - ModuleUploader - - - Upload the screenshot to the default image host - Nahrát snímek na výchozího hostitele obrázků - - - - Uploading - Nahrávání - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Pomocí myši vymezte čtyřúhelníkovou oblast, kterou zachytit nebo -ukončete stisknutím libovolné klávesy či prostředního tlačítka myši. - - - - %1 x %2 pixels - %1 x %2 pixelů - - - - QObject - - - External edit - Upravit v jiné aplikaci - - - - Edit in... - Upravit v… - - - - Upload - Nahrát - - - - Uploader - - - Direct link - Přímý odkaz - - - - HTML code - HTML kód - - - - BB code - BB kód - - - - HTML code with thumb image - HTML kód s náhledovým obrázkem - - - - BB code with thumb image - BB kód s náhledovým obrázkem - - - - URl to delete image - URL adresa pro smazání obrázku - - - - UploaderConfigWidget - - - Common settings - Společná nastavení - - - - Default image host - Výchozí hostitel obrázků - - - - Always copy the link to the clipboard - Vždy zkopírovat obrázek do schránky - - - - Hosts settings - Nastavení hostitelů - - - - Settings for: - Nastavení pro: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Nastavení pro nahrávání na imgur.com - - - - No settings available right now - V tuto chvíli nejsou k dispozici žádná nastavení - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Nahrát na Imgur - - - - aboutWidget - - - About Qt - O Qt - - - - Close - Zavřít - - - - configwidget - - - - Options - Volby - - - - Main - Hlavní - - - - Advanced - Pokročilé - - - - System tray - Oznamovací oblast panelu - - - - Shortcuts - Zkratky - - - - Default save directory - Výchozí složka pro ukládání - - - - Path to default selection dir for saving - Popis umístění výchozí složky pro ukládání - - - - Browse filesystem - Procházet souborový systém - - - - Browse - Procházet - - - - Default file - Výchozí soubor - - - - Name: - Název: - - - - Default filename - Výchozí název souboru - - - - Format - Formát - - - - Default saving image format - Výchozí formát pro ukládání obrázků - - - - Copy file name to the clipboard when saving - Při ukládání zkopírovat název souboru do schránky - - - - Do not copy - Nekopírovat - - - - Copy file name only - Zkopírovat pouze název souboru - - - - Copy full file path - Zkopírovat úplný popis umístění souboru - - - - Image quality - Kvalita obrazu - - - - Image quality (1 - small file, 100 - high quality) - Kvalita obrazu (1 – malý soubor, 100 – vysoká kvalita) - - - - Inserting current date time into saved filename - Vkládání aktuálního data a času do názvu uloženého souboru - - - - Insert current date and time in file name - Do názvu souboru vložit aktuální datum a čas - - - - Template: - Šablona: - - - - Example: - Příklad: - - - - Automatically saving screenshots in grabbing process - Při zachycení snímek obrazovky automaticky uložit - - - - Autosave screenshot - Snímek obrazovky automaticky uložit - - - - Save first screenshot - Uložit první snímek obrazovky - - - - Allow run multiplies copy of ScreenGrab - Umožnit spuštění vícero kopií ScreenGrab - - - - Allow multiple instances of ScreenGrab - Umožnit vícenásobné spuštění ScreenGrab - - - - Open in external viewer on double click - Při dvojkliku otevřít v externím prohlížeči - - - - Enable external viewer - Používat externí prohlížeč - - - - Fit to edges only inside selected screen area - Přizpůsobit okrajům pouze uvnitř označené oblasti obrazovky - - - - Fit to edges inside selected area - Přizpůsobit okrajům v označené oblasti - - - - Show ScreenGrab in the system tray - Zobrazovat ScreenGrab v oznamovací oblasti - - - - Tray messages: - Zprávy v oznamovací oblasti: - - - - Tray messages display mode - Režim zobrazování zpráv v oznamovací oblasti - - - - Never - Nikdy - - - - Tray mode - Režim oznamovací oblasti - - - - Always - Vždy - - - - Time of display tray messages - Doba zobrazení zpráv v oznamovací oblasti - - - - Time to display tray messages - Doba k zobrazení zpráv v oznamovací oblasti - - - - sec - sek - - - - Minimize to tray on click close button - Při kliknutí na tlačítko zavření minimalizovat do oznamovací oblasti - - - - Minimize to tray when closing - Při zavření minimalizovat do oznamovací oblasti panelu - - - - Action - Akce - - - - Shortcut - Klávesová zkratka - - - - Global shortcuts - Globální klávesové zkratky - - - - Full screen - Celá obrazovka - - - - Active window - Aktivní okno - - - - Area select - Výběr oblasti - - - - Local shortcuts - Místní zkratky - - - - New screen - Nová obrazovka - - - - Save screen - Uložit obrazovku - - - - Copy screen - Zkopírovat obrazovku - - - - Help - Nápověda - - - - Quit - Ukončit - - - - Selected shortcut: - Označená klávesová zkratka: - - - - Not defined - Neurčeno - - - diff --git a/translations/screengrab_cy.ts b/translations/screengrab_cy.ts deleted file mode 100644 index b5f4c0f..0000000 --- a/translations/screengrab_cy.ts +++ /dev/null @@ -1,962 +0,0 @@ - - - - - AboutDialog - - - using Qt - - - - - About - - - - - Thanks - - - - - Help us - - - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - It is a light and powerful application, written in Qt. - - - - - Website - - - - - Licensed under the - - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - - You can join us and help us if you want. This is an invitation if you like this application. - - - - - What you can do? - - - - - Translate ScreenGrab to other languages - - - - - Make suggestions for next releases - - - - - Report bugs and issues - - - - - Bug tracker - - - - - Translate: - - - - - Brazilian Portuguese translation - - - - - Marcio Moraes - - - - - Ukrainian translation - - - - - Gennadi Motsyo - - - - - Spanish translation - - - - - Burjans L García D - - - - - Italian translation - - - - - Testing: - - - - - Dual monitor support and other in Linux - - - - - Dual monitor support in Linux - - - - - win32-build [Windows XP and 7] - - - - - old win32-build [Windows Vista] - - - - - win32-build [Windows 7] - - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - - - - - - Warning - - - - - Select directory - - - - - Do you want to reset the settings to the defaults? - - - - - Example: - - - - - This key is already used in your system! Please select another. - - - - - This key is already used in ScreenGrab! Please select another. - - - - - This key is not supported on your system! - - - - - Error - - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - Take a fullscreen screenshot - - - - - Take a screenshot of the active window - - - - - Take a screenshot of a selection of the screen - - - - - Run the application with a hidden main window - - - - - Saved - - - - - Saved to - - - - - Name of saved file is copied to the clipboard - - - - - Path to saved file is copied to the clipboard - - - - - Copied - - - - - Screenshot is copied to clipboard - - - - - DialogUploader - - - Upload to internet - - - - - Upload to - - - - - Direct link: - - - - - - Open this link in the default web-browser - - - - - - Open - - - - - - Copy this link to the clipboard - - - - - - Copy - - - - - Extended preformed html or bb codes: - - - - - Link to delete image: - - - - - Upload - - - - - Cancel - - - - - Size: - - - - - pixel - - - - - Uploaded - - - - - - Ready to upload - - - - - Upload processing... Please wait - - - - - Receiving a response from the server - - - - - Upload completed - - - - - - Close - - - - - Error uploading screenshot - - - - - Error - - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - - - - - Are you sure you want to continue? - - - - - MainWindow - - - ScreenGrab - - - - - Type: - - - - - Type of screenshot - - - - - Full screen - - - - - Window - - - - - Screen area - - - - - Last selected area - - - - - Delay: - - - - - Delay in seconds before taking screenshot - - - - - None - - - - - sec - - - - - Zoom area around mouse - - - - - No window decoration - - - - - Include mouse pointer - - - - - toolBar - - - - - New - - - - - Save - - - - - Copy - - - - - Options - - - - - - Help - - - - - About - - - - - Quit - - - - - Screenshot - - - - - Double click to open screenshot in external default image viewer - - - - - - Hide - - - - - Show - - - - - %1 Files - - - - - Save As... - - - - - ModuleUploader - - - Upload the screenshot to the default image host - - - - - Uploading - - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - - - - - %1 x %2 pixels - - - - - QObject - - - External edit - - - - - Edit in... - - - - - Upload - - - - - Uploader - - - Direct link - - - - - HTML code - - - - - BB code - - - - - HTML code with thumb image - - - - - BB code with thumb image - - - - - URl to delete image - - - - - UploaderConfigWidget - - - Common settings - - - - - Default image host - - - - - Always copy the link to the clipboard - - - - - Hosts settings - - - - - Settings for: - - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - - - - - No settings available right now - - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - - - - - aboutWidget - - - About Qt - - - - - Close - - - - - configwidget - - - - Options - - - - - Main - - - - - Advanced - - - - - System tray - - - - - Shortcuts - - - - - Default save directory - - - - - Path to default selection dir for saving - - - - - Browse filesystem - - - - - Browse - - - - - Default file - - - - - Name: - - - - - Default filename - - - - - Format - - - - - Default saving image format - - - - - Copy file name to the clipboard when saving - - - - - Do not copy - - - - - Copy file name only - - - - - Copy full file path - - - - - Image quality - - - - - Image quality (1 - small file, 100 - high quality) - - - - - Inserting current date time into saved filename - - - - - Insert current date and time in file name - - - - - Template: - - - - - Example: - - - - - Automatically saving screenshots in grabbing process - - - - - Autosave screenshot - - - - - Save first screenshot - - - - - Allow run multiplies copy of ScreenGrab - - - - - Allow multiple instances of ScreenGrab - - - - - Open in external viewer on double click - - - - - Enable external viewer - - - - - Fit to edges only inside selected screen area - - - - - Fit to edges inside selected area - - - - - Show ScreenGrab in the system tray - - - - - Tray messages: - - - - - Tray messages display mode - - - - - Never - - - - - Tray mode - - - - - Always - - - - - Time of display tray messages - - - - - Time to display tray messages - - - - - sec - - - - - Minimize to tray on click close button - - - - - Minimize to tray when closing - - - - - Action - - - - - Shortcut - - - - - Global shortcuts - - - - - Full screen - - - - - Active window - - - - - Area select - - - - - Local shortcuts - - - - - New screen - - - - - Save screen - - - - - Copy screen - - - - - Help - - - - - Quit - - - - - Selected shortcut: - - - - - Not defined - - - - diff --git a/translations/screengrab_de.desktop b/translations/screengrab_de.desktop deleted file mode 100644 index cbd3306..0000000 --- a/translations/screengrab_de.desktop +++ /dev/null @@ -1,3 +0,0 @@ -# Translations -Comment[de]=Bildschirmfotos aufnehmen und mit anderen teilen -GenericName[de]=Anwendung für Bildschirmfotos diff --git a/translations/screengrab_de.ts b/translations/screengrab_de.ts deleted file mode 100644 index 72d1616..0000000 --- a/translations/screengrab_de.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - mit Qt - - - - About - Über - - - - Thanks - Dank an - - - - It is a light and powerful application, written in Qt. - ScreenGrab ist eine einfache, aber leistungsstarke Anwendung, die auf die Qt-Bibliotheken aufsetzt. - - - - Website - Webseite - - - - Licensed under the - Lizensiert unter der - - - - Help us - Unterstützen Sie uns - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - What you can do? - Was können Sie tun? - - - - is a crossplatform application for fast creating screenshots of your desktop. - ist eine plattformunabhängige Anwendung, um Bildschirmfotos aufzunehmen. - - - - You can join us and help us if you want. This is an invitation if you like this application. - Sie können sich anschließen und mithelfen, wenn Sie wollen. Dies ist eine Einladung dazu, wenn Sie ScreenGrab mögen. - - - - Translate ScreenGrab to other languages - Übersetzen Sie ScreenGrab in andere Sprachen - - - - Make suggestions for next releases - Machen Sie Verbesserungsvorschläge für nächste Versionen - - - - Report bugs and issues - Melden Sie Problem und Fehler - - - - Bug tracker - Bug-Tracker - - - - Translate: - Übersetzung: - - - - Brazilian Portuguese translation - Portugiesisch-Brasilianische Übersetzung - - - - Marcio Moraes - Marcio Moraes - - - - Ukrainian translation - Ukrainische Übersetzung - - - - Gennadi Motsyo - Gennadi Motsyo - - - - Spanish translation - Spanische Übersetzung - - - - Burjans L García D - Burjans L García D - - - - Italian translation - Italienische Übersetzung - - - - Testing: - Tester: - - - - Dual monitor support and other in Linux - Dual-Monitor Unterstützung unter Linux und anderes - - - - Dual monitor support in Linux - Dual-Monitor Unterstützung unter Linux - - - - win32-build [Windows XP and 7] - win32-build [Windows XP and 7] - - - - old win32-build [Windows Vista] - Vorheriger win32-build [Windows Vista] - - - - win32-build [Windows 7] - win32-build [Windows 7] - - - - ConfigDialog - - - Select directory - Ordner wählen - - - - - Warning - Warnung - - - - Directory %1 does not exist. Do you want to create it? - Der Ordner %1 existiert nicht. Möchten Sie ihn erstellen? - - - - Do you want to reset the settings to the defaults? - Möchten Sie die Standardeinstellungen wieder herstellen? - - - - Example: - Beispiel: - - - - This key is already used in your system! Please select another. - Diese Tastenkombination ist bereits von Ihrem System belegt! Bitte wählen Sie eine andere. - - - - This key is already used in ScreenGrab! Please select another. - Diese Tastenkombination wird bereits von ScreenGrab verwendet! Bitte wählen Sie eine andere. - - - - This key is not supported on your system! - Diese Tastenkombination wird von Ihrem System nicht unterstützt! - - - - Error - Fehler - - - - Core - - - Saved - Gespeichert - - - - Name of saved file is copied to the clipboard - Der Name der gespeicherten Datei wird in die Zwischenablage kopiert - - - - Copied - Kopiert - - - - Saved to - Gespeichert nach - - - - is a crossplatform application for fast creating screenshots of your desktop. - ist eine plattformunabhängige Anwendung, um Bildschirmfotos aufzunehmen. - - - - Take a fullscreen screenshot - Mache einen Screenshot des gesamten Bildschirms - - - - Take a screenshot of the active window - Mache einen Screenshot des aktiven Fensters - - - - Take a screenshot of a selection of the screen - Mache einen Screenshot eines Bildschirmausschnitts - - - - Run the application with a hidden main window - Führe die Anwendung in verborgenem Hauptfenster aus - - - - Path to saved file is copied to the clipboard - Der Pfad zur gespeicherten Datei wird in die Zwischenablage kopiert - - - - Screenshot is copied to clipboard - Das Bildschirmfoto wird in die Zwischenablage kopiert - - - - DialogUploader - - - Upload to internet - Ins Internet hochladen - - - - Upload to - Hochladen nach - - - - Direct link: - Direkter Link: - - - - - Open this link in the default web-browser - Diesen Link im Standard-Browser öffnen - - - - - Open - Öffnen - - - - - Copy this link to the clipboard - Diesen Link in die Zwischenablage kopieren - - - - - Copy - Kopieren - - - - Extended preformed html or bb codes: - Erweiterte vorgeformte HTML- oder BB-Codes: - - - - Link to delete image: - Link, um das Bild zu löschen: - - - - Upload - Hochladen - - - - Cancel - Abbrechen - - - - - Close - Schließen - - - - Size: - Größe: - - - - pixel - Pixel - - - - Uploaded - Hochgeladen - - - - - Ready to upload - Bereit zum Hochladen - - - - Upload processing... Please wait - Das Hochladen wird bearbeitet...bitte warten - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Öffnen Sie diesen Link in Ihrem Standard-Web-Browser, so kann Ihr hochgeladenes Bild ohne jede Warnung gelöscht werden. - - - - Receiving a response from the server - Antwort vom Server erhalten - - - - Upload completed - Hochladen abgeschlossen - - - - Error uploading screenshot - Beim Hochladen ist ein Fehler aufgetreten - - - - Error - Fehler - - - - Are you sure you want to continue? - Möchten Sie wirklich fortfahren? - - - - MainWindow - - - ScreenGrab - ScreenGrab - - - - Type: - Typ: - - - - Type of screenshot - Art des Bildschirmfotos - - - - Full screen - Vollbild - - - - Window - Aktives Fenster - - - - Screen area - Bildschirm-Bereich - - - - Last selected area - Letzter gewählter Ausschnitt - - - - Delay: - Verzögerung: - - - - Zoom area around mouse - Bereich um die Maus zoomen - - - - No window decoration - Keine Fensterdekoration - - - - Include mouse pointer - Einschließlich Mauszeiger - - - - toolBar - Werkzeugleiste - - - - Delay in seconds before taking screenshot - Aufnahme-Verzögerung in Sekunden - - - - sec - Sek - - - - Options - Optionen - - - - - Help - Hilfe - - - - Quit - Beenden - - - - Save - Speichern - - - - New - Neu - - - - Copy - Kopieren - - - - Double click to open screenshot in external default image viewer - Doppelklicken, um das Bildschirmfoto in einem externen Bildbetrachter zu öffnen - - - - - Hide - Verbergen - - - - %1 Files - %1 Dateien - - - - About - Über - - - - Screenshot - Bildschirmfoto - - - - None - Keine - - - - Show - Anzeigen - - - - Save As... - Speichern als... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Screenshot zum standardmäßigen Image-Host hochladen - - - - Uploading - Hochladen - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Markieren Sie mit der Maus einen rechteckigen Ausschnitt oder beenden Sie den Vorgang, -indem Sie die <Esc>-Taste oder die mittlere Maustaste drücken. - - - - %1 x %2 pixels - %1 x %2 Pixel - - - - QObject - - - External edit - Externer Editor - - - - Edit in... - Bearbeiten in... - - - - Upload - Hochladen - - - - Uploader - - - Direct link - Direkter Link - - - - HTML code - HTML-Code - - - - BB code - BB-Code - - - - HTML code with thumb image - HTML-Code mit Miniaturansicht - - - - BB code with thumb image - BB-Code mit Miniaturansicht - - - - URl to delete image - URI für das Löschen des Bildes - - - - UploaderConfigWidget - - - Common settings - Allgemeine Einstellungen - - - - Default image host - Standard-Service - - - - Always copy the link to the clipboard - Den Link immer in die Zwischenablage kopieren - - - - Hosts settings - Host-Einstellungen - - - - Settings for: - Einstellungen für: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Konfiguration für <imgur.com> - - - - No settings available right now - Zur Zeit keine Einstellungen verfügbar - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Hochladen auf Imgur - - - - aboutWidget - - - About Qt - Über Qt - - - - Close - Schließen - - - - configwidget - - - - Options - Optionen - - - - Default saving image format - Standard-Bildformat - - - - Inserting current date time into saved filename - Aktuelles Datum und Uhrzeit in den Dateinamen einfügen - - - - Insert current date and time in file name - Aktuelles Datum und Uhrzeit in den Dateinamen einfügen - - - - Autosave screenshot - Foto automatisch speichern - - - - Save first screenshot - Erstes Foto speichern - - - - Image quality - Bildqualität - - - - Image quality (1 - small file, 100 - high quality) - Bildqualität (1 - kleine Datei, 100 - hohe Qualität) - - - - Allow run multiplies copy of ScreenGrab - Mehrere Instanzen von ScreenGrab zulassen - - - - Enable external viewer - Externen Bildbetrachter aktivieren - - - - Fit to edges only inside selected screen area - Nur an Rändern innerhalb des ausgwählten Bildschirmbereichs anpassen - - - - Fit to edges inside selected area - An Rändern innerhalb des ausgewählten Bildschirmbereichs anpassen - - - - Show ScreenGrab in the system tray - Screengrab im Systemtray anzeigen - - - - Minimize to tray on click close button - Beim Schließen in den Systemtray minimieren - - - - Minimize to tray when closing - Beim Beenden in den Systemtray minimieren - - - - Action - Aktion - - - - Global shortcuts - Globale Tastenkombinationen - - - - Active window - Aktives Fenster - - - - Area select - Bereich wählen - - - - Local shortcuts - Lokale Tastenkombinationen - - - - New screen - Neues Bildschirmfoto - - - - Save screen - Bildschirmfoto speichern - - - - Copy screen - Bildschirmfoto kopieren - - - - Help - Hilfe - - - - Not defined - Nicht definiert - - - - Main - Allgemein - - - - System tray - Systemtray - - - - Path to default selection dir for saving - Pfad zum Standard-Speicherordner - - - - Browse filesystem - Dateisystem durchsuchen - - - - Browse - Durchsuchen - - - - Default filename - Standard-Dateiname - - - - Format - Format - - - - Copy file name to the clipboard when saving - Dateinamen beim Speichern in die Zwischenablage kopieren - - - - Do not copy - Nicht kopieren - - - - Copy file name only - Nur den Dateinamen kopieren - - - - Copy full file path - Den vollständigen Dateipfad kopieren - - - - sec - Sek - - - - Advanced - Erweitert - - - - Default save directory - Standardmäßiges Speicherverzeichnis - - - - Default file - Standardmäßige Datei - - - - Name: - Name: - - - - Template: - Vorlage: - - - - Example: - Beispiel: - - - - Automatically saving screenshots in grabbing process - Fotos während der Aufnahme automatisch speichern - - - - Tray messages: - Symbolleisten-Meldungen: - - - - Tray messages display mode - Meldungen in der Symbolleiste anzeigen - - - - Never - Keine - - - - Tray mode - Systemtray-Modus - - - - Always - Immer - - - - Time of display tray messages - Anzeigedauer in der Symbolleiste - - - - Time to display tray messages - Anzeigedauer der Symbolleisten-Meldungen - - - - Shortcuts - Tastenkombinationen - - - - Allow multiple instances of ScreenGrab - Mehrere Instanzen von ScreenGrab zulassen - - - - Open in external viewer on double click - Bei Doppel-Klick in externem Bildbetrachter öffnen - - - - Shortcut - Tastenkürzel - - - - Full screen - Vollbild - - - - Quit - Beenden - - - - Selected shortcut: - Ausgewählte Tastenkombination: - - - diff --git a/translations/screengrab_el.ts b/translations/screengrab_el.ts deleted file mode 100644 index 7f93b29..0000000 --- a/translations/screengrab_el.ts +++ /dev/null @@ -1,962 +0,0 @@ - - - - - AboutDialog - - - using Qt - - - - - About - - - - - Thanks - - - - - Help us - - - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - It is a light and powerful application, written in Qt. - - - - - Website - - - - - Licensed under the - - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - - You can join us and help us if you want. This is an invitation if you like this application. - - - - - What you can do? - - - - - Translate ScreenGrab to other languages - - - - - Make suggestions for next releases - - - - - Report bugs and issues - - - - - Bug tracker - - - - - Translate: - - - - - Brazilian Portuguese translation - - - - - Marcio Moraes - - - - - Ukrainian translation - - - - - Gennadi Motsyo - - - - - Spanish translation - - - - - Burjans L García D - - - - - Italian translation - - - - - Testing: - - - - - Dual monitor support and other in Linux - - - - - Dual monitor support in Linux - - - - - win32-build [Windows XP and 7] - - - - - old win32-build [Windows Vista] - - - - - win32-build [Windows 7] - - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - - - - - - Warning - - - - - Select directory - - - - - Do you want to reset the settings to the defaults? - - - - - Example: - - - - - This key is already used in your system! Please select another. - - - - - This key is already used in ScreenGrab! Please select another. - - - - - This key is not supported on your system! - - - - - Error - - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - Take a fullscreen screenshot - - - - - Take a screenshot of the active window - - - - - Take a screenshot of a selection of the screen - - - - - Run the application with a hidden main window - - - - - Saved - - - - - Saved to - - - - - Name of saved file is copied to the clipboard - - - - - Path to saved file is copied to the clipboard - - - - - Copied - - - - - Screenshot is copied to clipboard - - - - - DialogUploader - - - Upload to internet - - - - - Upload to - - - - - Direct link: - - - - - - Open this link in the default web-browser - - - - - - Open - - - - - - Copy this link to the clipboard - - - - - - Copy - - - - - Extended preformed html or bb codes: - - - - - Link to delete image: - - - - - Upload - - - - - Cancel - - - - - Size: - - - - - pixel - - - - - Uploaded - - - - - - Ready to upload - - - - - Upload processing... Please wait - - - - - Receiving a response from the server - - - - - Upload completed - - - - - - Close - - - - - Error uploading screenshot - - - - - Error - - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - - - - - Are you sure you want to continue? - - - - - MainWindow - - - ScreenGrab - - - - - Type: - - - - - Type of screenshot - - - - - Full screen - - - - - Window - - - - - Screen area - - - - - Last selected area - - - - - Delay: - - - - - Delay in seconds before taking screenshot - - - - - None - - - - - sec - - - - - Zoom area around mouse - - - - - No window decoration - - - - - Include mouse pointer - - - - - toolBar - - - - - New - - - - - Save - - - - - Copy - - - - - Options - - - - - - Help - - - - - About - - - - - Quit - - - - - Screenshot - - - - - Double click to open screenshot in external default image viewer - - - - - - Hide - - - - - Show - - - - - %1 Files - - - - - Save As... - - - - - ModuleUploader - - - Upload the screenshot to the default image host - - - - - Uploading - - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - - - - - %1 x %2 pixels - - - - - QObject - - - External edit - - - - - Edit in... - - - - - Upload - - - - - Uploader - - - Direct link - - - - - HTML code - - - - - BB code - - - - - HTML code with thumb image - - - - - BB code with thumb image - - - - - URl to delete image - - - - - UploaderConfigWidget - - - Common settings - - - - - Default image host - - - - - Always copy the link to the clipboard - - - - - Hosts settings - - - - - Settings for: - - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - - - - - No settings available right now - - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - - - - - aboutWidget - - - About Qt - - - - - Close - - - - - configwidget - - - - Options - - - - - Main - - - - - Advanced - - - - - System tray - - - - - Shortcuts - - - - - Default save directory - - - - - Path to default selection dir for saving - - - - - Browse filesystem - - - - - Browse - - - - - Default file - - - - - Name: - - - - - Default filename - - - - - Format - - - - - Default saving image format - - - - - Copy file name to the clipboard when saving - - - - - Do not copy - - - - - Copy file name only - - - - - Copy full file path - - - - - Image quality - - - - - Image quality (1 - small file, 100 - high quality) - - - - - Inserting current date time into saved filename - - - - - Insert current date and time in file name - - - - - Template: - - - - - Example: - - - - - Automatically saving screenshots in grabbing process - - - - - Autosave screenshot - - - - - Save first screenshot - - - - - Allow run multiplies copy of ScreenGrab - - - - - Allow multiple instances of ScreenGrab - - - - - Open in external viewer on double click - - - - - Enable external viewer - - - - - Fit to edges only inside selected screen area - - - - - Fit to edges inside selected area - - - - - Show ScreenGrab in the system tray - - - - - Tray messages: - - - - - Tray messages display mode - - - - - Never - - - - - Tray mode - - - - - Always - - - - - Time of display tray messages - - - - - Time to display tray messages - - - - - sec - - - - - Minimize to tray on click close button - - - - - Minimize to tray when closing - - - - - Action - - - - - Shortcut - - - - - Global shortcuts - - - - - Full screen - - - - - Active window - - - - - Area select - - - - - Local shortcuts - - - - - New screen - - - - - Save screen - - - - - Copy screen - - - - - Help - - - - - Quit - - - - - Selected shortcut: - - - - - Not defined - - - - diff --git a/translations/screengrab_es.desktop b/translations/screengrab_es.desktop deleted file mode 100644 index 8f95d57..0000000 --- a/translations/screengrab_es.desktop +++ /dev/null @@ -1,3 +0,0 @@ -Name[es]=ScreenGrab -GenericName[es]=Programa para capturas de pantalla -Comment[es]=Captura la pantalla diff --git a/translations/screengrab_es.ts b/translations/screengrab_es.ts deleted file mode 100644 index 5ef0744..0000000 --- a/translations/screengrab_es.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - usando Qt - - - - About - Acerca de - - - - Thanks - Agradecimientos - - - - It is a light and powerful application, written in Qt. - Es una aplicación ligera y potente, escrita usando Qt. - - - - Website - Sitio web - - - - Licensed under the - Licenciado bajo la - - - - Help us - Ayúdenos - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - What you can do? - ¿Qué puede hacer usted? - - - - is a crossplatform application for fast creating screenshots of your desktop. - es una aplicación multiplataforma para hacer rápidamente capturas de pantalla del escritorio. - - - - You can join us and help us if you want. This is an invitation if you like this application. - Puede unirse a nosotros y ayudarnos si quiere. Es una invitación si le gusta esta aplicación. - - - - Translate ScreenGrab to other languages - Traducir ScreenGrab a otros idiomas - - - - Make suggestions for next releases - Hacer sugerencias para próximas versiones - - - - Report bugs and issues - Informar de fallos y otras cuestiones - - - - Bug tracker - Seguimiento de errores - - - - Translate: - Traducción: - - - - Brazilian Portuguese translation - traducción al portugués de Brasil - - - - Marcio Moraes - - - - - Ukrainian translation - traducción al ucraniano - - - - Gennadi Motsyo - - - - - Spanish translation - traducción al español - - - - Burjans L García D - - - - - Italian translation - traducción al italiano - - - - Testing: - Pruebas: - - - - Dual monitor support and other in Linux - Soporte para monitor doble y otros en Linux - - - - Dual monitor support in Linux - Soporte para monitor doble en Linux - - - - win32-build [Windows XP and 7] - win32-build [Windows XP y 7] - - - - old win32-build [Windows Vista] - antiguo win32-build [Windows Vista] - - - - win32-build [Windows 7] - - - - - ConfigDialog - - - Select directory - Seleccione el directorio - - - - - Warning - Aviso - - - - Directory %1 does not exist. Do you want to create it? - El directorio %1 no existe. ¿Desea crearlo? - - - - Do you want to reset the settings to the defaults? - ¿Quiere reiniciar la configuración a la predefinida? - - - - Example: - Ejemplo: - - - - This key is already used in your system! Please select another. - ¡La tecla ya está siendo usada por el sistema! Seleccione otra. - - - - This key is already used in ScreenGrab! Please select another. - ¡La tecla ya está siendo usada en ScreenGrab! Seleccione otra. - - - - This key is not supported on your system! - ¡La tecla no está permitida en su sistema! - - - - Error - Error - - - - Core - - - Saved - Guardado - - - - Name of saved file is copied to the clipboard - El nombre del archivo guardado se copia al portapapeles - - - - Copied - Copiado - - - - Saved to - Guardado en - - - - is a crossplatform application for fast creating screenshots of your desktop. - es una aplicación multiplataforma para hacer rápidamente capturas de pantalla del escritorio. - - - - Take a fullscreen screenshot - Hacer una captura de la pantalla completa - - - - Take a screenshot of the active window - Hacer una captura de pantalla de la ventana activa - - - - Take a screenshot of a selection of the screen - Hacer una captura de pantalla de un área de la pantalla - - - - Run the application with a hidden main window - Ejecutar la aplicación con la ventana principal oculta - - - - Path to saved file is copied to the clipboard - La ruta al archivo guardado se copia al portapapeles - - - - Screenshot is copied to clipboard - La captura de pantalla se copia al portapapeles - - - - DialogUploader - - - Upload to internet - Subir a internet - - - - Upload to - Subir a - - - - Direct link: - Enlace directo: - - - - - Open this link in the default web-browser - Abrir el enlace en el navegador por defecto - - - - - Open - Abrir - - - - - Copy this link to the clipboard - Copiar el enlace al portapapeles - - - - - Copy - Copiar - - - - Extended preformed html or bb codes: - Códigos html o bb preformados extendidos: - - - - Link to delete image: - Enlace para borrar la imagen: - - - - Upload - Subir - - - - Cancel - Cancelar - - - - - Close - Cerrar - - - - Uploaded - Subido - - - - Size: - Tamaño: - - - - pixel - píxel - - - - - Ready to upload - Listo para subir - - - - Upload processing... Please wait - Subida en proceso... Por favor, espere - - - - Receiving a response from the server - Recibiendo respuesta desde el servidor - - - - Upload completed - Subida completada - - - - Error uploading screenshot - Error al subir la captura de pantalla - - - - Error - Error - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Abrir el enlace en el navegador por defecto; puede borrar directamente la imagen subida, sin ningún aviso. - - - - Are you sure you want to continue? - ¿Seguro que quiere continuar? - - - - MainWindow - - - Screenshot - Captura de pantalla - - - - Quit - Salir - - - - Save - Guardar - - - - New - Nuevo - - - - Copy - Copiar - - - - Double click to open screenshot in external default image viewer - Haga doble clic para abrir la captura de pantalla en el visor de imágenes externo por defecto - - - - - Hide - Ocultar - - - - About - Acerca de - - - - Options - Opciones - - - - None - Ninguna - - - - Show - Mostrar - - - - %1 Files - %1 archivos - - - - Save As... - Guardar como... - - - - ScreenGrab - - - - - Type: - Tipo: - - - - Type of screenshot - Tipo de captura de pantalla - - - - Full screen - Pantalla completa - - - - Window - Ventana - - - - Screen area - Área de la pantalla - - - - Last selected area - Última área seleccionada - - - - Delay: - Demora: - - - - Zoom area around mouse - Ampliar el área alrededor del ratón - - - - No window decoration - Sin decoración de ventana - - - - Include mouse pointer - Incluir el puntero del ratón - - - - toolBar - Barra de herramientas - - - - Delay in seconds before taking screenshot - Demora en segundos antes hacer la captura de pantalla - - - - sec - s - - - - - Help - Ayuda - - - - ModuleUploader - - - Upload the screenshot to the default image host - Subir la captura de pantalla al sitio para imágenes por defecto - - - - Uploading - Subiendo - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Use el ratón para dibujar el rectángulo a capturar o salga pulsando -cualquier tecla o los botones derecho o central del ratón. - - - - %1 x %2 pixels - %1 x %2 píxeles - - - - QObject - - - Upload - Subir - - - - External edit - Edición externa - - - - Edit in... - Editar en... - - - - Uploader - - - Direct link - Enlace directo - - - - HTML code - Código HTML - - - - BB code - Código BB - - - - HTML code with thumb image - Código HTML con miniatura de imagen - - - - BB code with thumb image - Código BB con miniatura de imagen - - - - URl to delete image - URI para borrar la imagen - - - - UploaderConfigWidget - - - Common settings - Configuración general - - - - Default image host - Sitio de imágenes por defecto - - - - Always copy the link to the clipboard - Copiar siempre el enlace al portapapeles - - - - Hosts settings - Configuración de los servidores - - - - Settings for: - Configuración para: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Configuración para subir a imgur.com - - - - No settings available right now - No hay ajustes disponibles de momento - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Subir a Imgur - - - - aboutWidget - - - About Qt - Acerca de Qt - - - - Close - Cerrar - - - - configwidget - - - - Options - Opciones - - - - Default saving image format - Formato por defecto al guardar imágenes - - - - Inserting current date time into saved filename - Inserta la fecha y hora actuales en el nombre de archivo guardado - - - - Insert current date and time in file name - Insertar la fecha y hora actuales en el nombre de archivo - - - - Autosave screenshot - Guardar automáticamente la captura de pantalla - - - - Save first screenshot - Guardar la primera captura de pantalla - - - - Image quality - Calidad de la imagen - - - - Image quality (1 - small file, 100 - high quality) - Calidad de imagen (1 - archivo pequeño, 100 - alta calidad) - - - - Allow run multiplies copy of ScreenGrab - Permitir múltiples instancias de ScreenGrab - - - - Enable external viewer - Habilitar el visor externo - - - - Fit to edges only inside selected screen area - Ajustar a los bordes solo en el área de pantalla seleccionada - - - - Fit to edges inside selected area - Ajustar a los bordes en el área seleccionada - - - - Show ScreenGrab in the system tray - Mostrar ScreenGrab en la bandeja del sistema - - - - Minimize to tray on click close button - Minimizar a la bandeja al hacer clic en el botón de cierre - - - - Minimize to tray when closing - Minimizar a la bandeja al cerrar - - - - Action - Acción - - - - Global shortcuts - Atajos globales - - - - Active window - Ventana activa - - - - Area select - Selección del area - - - - Local shortcuts - Atajos locales - - - - New screen - Nueva pantalla - - - - Save screen - Grabar la pantalla - - - - Copy screen - Copiar la pantalla - - - - Help - Ayuda - - - - Not defined - No definido - - - - Main - Principal - - - - System tray - Bandeja del sistema - - - - Path to default selection dir for saving - Ruta al directorio seleccionado por defecto para guardar - - - - Browse filesystem - Explorar el sistema de archivos - - - - Browse - Explorar - - - - Default filename - Nombre por defecto - - - - Format - Formato - - - - Copy file name to the clipboard when saving - Copiar el nombre de archivo al portapapeles al guardar - - - - Do not copy - No copiar - - - - Copy file name only - Copiar solo el nombre del archivo - - - - Copy full file path - Copiar la ruta completa del archivo - - - - sec - s - - - - Advanced - Avanzado - - - - Default save directory - Directorio por omisión donde guardar - - - - Default file - Archivo por omisión - - - - Name: - Nombre: - - - - Template: - Plantilla: - - - - Example: - Ejemplo: - - - - Automatically saving screenshots in grabbing process - Guarda automaticamente las capturas de pantalla en un proceso de grabacion - - - - Tray messages: - Mensajes en bandeja: - - - - Tray messages display mode - Modo de presentación de mensajes en bandeja - - - - Never - Nunca - - - - Tray mode - Modo en bandeja - - - - Always - Siempre - - - - Shortcuts - Atajos de teclado - - - - Allow multiple instances of ScreenGrab - Permitir múltiples instancias de ScreenGrab - - - - Open in external viewer on double click - Abrir en el visor externo al hacer doble clic - - - - Shortcut - Atajos - - - - Full screen - Pantalla completa - - - - Quit - Salir - - - - Selected shortcut: - Atajo seleccionado: - - - - Time of display tray messages - Duración de los mensajes de bandeja - - - - Time to display tray messages - Tiempo hasta mostrar mensajes de bandeja - - - diff --git a/translations/screengrab_fr.ts b/translations/screengrab_fr.ts deleted file mode 100644 index 7a474a5..0000000 --- a/translations/screengrab_fr.ts +++ /dev/null @@ -1,962 +0,0 @@ - - - - - AboutDialog - - - using Qt - utilisant Qt - - - - About - À propos - - - - Thanks - Remerciements - - - - Help us - Aidez nous - - - - is a crossplatform application for fast creating screenshots of your desktop. - est une application multi-plateforme pour créer des captures d'écran de votre bureau. - - - - It is a light and powerful application, written in Qt. - Application légère et puissante écrite en Qt. - - - - Website - Site Web - - - - Licensed under the - Sous licence - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Droits d'auteur &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - You can join us and help us if you want. This is an invitation if you like this application. - Vous pouvez nous rejoindre et nous aider si vous appréciez cette application. - - - - What you can do? - Que pouvez vous faire ? - - - - Translate ScreenGrab to other languages - Traduire ScreenGrab dans d'autres langues - - - - Make suggestions for next releases - Faire des suggestions pour les prochaines versions - - - - Report bugs and issues - Rapporter les bugs - - - - Bug tracker - Traqueur de bogues - - - - Translate: - Traductions : - - - - Brazilian Portuguese translation - Brésilien - Portuguais - - - - Marcio Moraes - "Marcio Moraes" - - - - Ukrainian translation - Traduction ukrainienne - - - - Gennadi Motsyo - "Gennadi Motsyo" - - - - Spanish translation - Traduction espagnol - - - - Burjans L García D - "Burjans L García D" - - - - Italian translation - Traduction italienne - - - - Testing: - Test : - - - - Dual monitor support and other in Linux - Support du double écran et autres sous Linux - - - - Dual monitor support in Linux - Support du double écran sous Linux - - - - win32-build [Windows XP and 7] - win32-build [Windows XP et 7] - - - - old win32-build [Windows Vista] - ancienne version de win32-build [Windows Vista] - - - - win32-build [Windows 7] - "win32-build [Windows 7]" - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - Le répertoire %1 n'existe pas. Voulez vous le créer ? - - - - - Warning - Attention - - - - Select directory - Choisissez un répertoire - - - - Do you want to reset the settings to the defaults? - Voulez vous restaurer les paramètres par défaut ? - - - - Example: - Exemple : - - - - This key is already used in your system! Please select another. - Cette touche est déjà utilisé sur votre système! Veuillez en sélectionner une autre. - - - - This key is already used in ScreenGrab! Please select another. - Cette touche est déjà utilisé dans ScreenGrab! Veuillez en sélectionner une autre. - - - - This key is not supported on your system! - Cette touche n'est pas supportée par votre système ! - - - - Error - Erreur - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - est une application multi-plateforme pour créer des captures d'écran de votre bureau. - - - - Take a fullscreen screenshot - Prendre une capture d'écran de l'écran entier - - - - Take a screenshot of the active window - Prendre une capture d'écran de la fenêtre active - - - - Take a screenshot of a selection of the screen - Prendre une capture d'écran d'une zone sélectionnée - - - - Run the application with a hidden main window - Cacher la fenêtre principale - - - - Saved - Enregistrement - - - - Saved to - Enregistré vers - - - - Name of saved file is copied to the clipboard - Le nom du fichier a été copié dans le presse-papiers - - - - Path to saved file is copied to the clipboard - Le chemin du fichier a été copié dans le presse-papiers - - - - Copied - Copié - - - - Screenshot is copied to clipboard - La capture d'écran a été copié dans le presse-papiers - - - - DialogUploader - - - Upload to internet - Télécharger sur Internet - - - - Upload to - Télécharger sur - - - - Direct link: - Lien direct : - - - - - Open this link in the default web-browser - Ouvrir ce lien avec le navigateur par défaut - - - - - Open - Ouvrir - - - - - Copy this link to the clipboard - Copier ce lien dans le presse-papier - - - - - Copy - Copier - - - - Extended preformed html or bb codes: - Codes html ou bb préformés étendus : - - - - Link to delete image: - Lien pour effacer l'image : - - - - Upload - Télécharger - - - - Cancel - Annuler - - - - Size: - Taille: - - - - pixel - .pixel - - - - Uploaded - Téléchargé - - - - - Ready to upload - Prêt à télécharger - - - - Upload processing... Please wait - Téléchargement en cours... Merci de patienter - - - - Receiving a response from the server - Réponse du serveur en cours - - - - Upload completed - Téléchargement terminé - - - - - Close - Fermer - - - - Error uploading screenshot - Erreur lors du téléchargement de la copie d'écran - - - - Error - Erreur - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Ouvrez ce lien dans votre navigateur par défaut, cela peut effacer directement l'image téléchargée, sans le moindre avertissement. - - - - Are you sure you want to continue? - Êtes vous sûr de vouloir continuer ? - - - - MainWindow - - - ScreenGrab - "ScreenGrab" - - - - Type: - Type : - - - - Type of screenshot - Type de capture - - - - Full screen - Plein écran - - - - Window - Fenêtre active - - - - Screen area - Sélection - - - - Last selected area - Dernière zone selectionnée - - - - Delay: - Délai : - - - - Zoom area around mouse - Fait un zoom de la zone située autour de la souris - - - - No window decoration - Pas de décoration des fenêtres - - - - Delay in seconds before taking screenshot - Délai en secondes avant de faire la capture - - - - sec - seconde(s) - - - - Include mouse pointer - Inclure le pointeur de la souris - - - - toolBar - Barre d'outils - - - - New - Nouveau - - - - Save - Enregistrer - - - - Copy - Copier - - - - Options - Options - - - - - Help - Aide - - - - About - À propos - - - - Quit - Quitter - - - - Screenshot - Capture d'écran - - - - Double click to open screenshot in external default image viewer - Double cliquer pour visualiser la capture dans le lecteur externe - - - - %1 Files - - - - - - Hide - Cacher - - - - None - Aucun - - - - Show - Montrer - - - - Save As... - Enregistrer sous... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Télécharger la capture d'écran sur l'hôte d'image par défaut - - - - Uploading - Téléchargement en cours - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Utilisez la souris pour dessiner une zone rectangulaire à capture ou n'importe quelle touche, clic droit ou clic de la molette pour quitter. - - - - %1 x %2 pixels - %1 x %2 pixels - - - - QObject - - - External edit - Édition externe - - - - Edit in... - Editer avec... - - - - Upload - Télécharger - - - - Uploader - - - Direct link - Lien direct - - - - HTML code - code HTML - - - - BB code - code BB - - - - HTML code with thumb image - code HTML avec image en vignette - - - - BB code with thumb image - code BB avec image en vignette - - - - URl to delete image - URI pour effacer l'image - - - - UploaderConfigWidget - - - Common settings - Paramètres généraux - - - - Default image host - Hôte d'image par défaut - - - - Always copy the link to the clipboard - Toujours copier le lien dans le presse-papier - - - - Hosts settings - Paramètres de l'hôte - - - - Settings for: - Paramètres pour: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Configuration pour le téléchargement vers imgur.com - - - - No settings available right now - Aucun paramétrage disponible pour le moment - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Télécharger sur imgur - - - - aboutWidget - - - About Qt - À propos de Qt - - - - Close - Fermer - - - - configwidget - - - - Options - Options - - - - Main - Principal - - - - Advanced - Avancé - - - - System tray - Barre des tâches - - - - Shortcuts - Raccourcis - - - - Path to default selection dir for saving - Chemin vers le répertoire d'enregistrement par défaut - - - - Browse filesystem - Parcourir le système de fichiers - - - - Browse - Parcourir - - - - Default filename - Nom de fichier par défaut - - - - Format - Format - - - - Default saving image format - Format d'image par défaut - - - - Copy file name to the clipboard when saving - Copier le nom du fichier dans le presse-papiers lors de l'enregistrement - - - - Do not copy - Ne pas copier - - - - Copy file name only - Copier le nom du fichier seulement - - - - Copy full file path - Copier le chemin complet - - - - sec - seconde(s) - - - - Image quality - Qualité d'image - - - - Image quality (1 - small file, 100 - high quality) - Qualité d'image (1 - basse qualité, 100 - haute qualité) - - - - Default save directory - Répertoire de sauvegarde par défaut - - - - Default file - Fichier par défaut - - - - Name: - Nom : - - - - Inserting current date time into saved filename - Ajouter la date au nom de fichier - - - - Insert current date and time in file name - Ajouter la date au nom du fichier - - - - Template: - Modèle: - - - - Example: - Exemple: - - - - Automatically saving screenshots in grabbing process - Enregistrer automatiquement à la capture - - - - Autosave screenshot - Enregistrer automatiquement les captures - - - - Save first screenshot - Enregistrer la première capture - - - - Allow run multiplies copy of ScreenGrab - Autoriser plusieurs instances de ScreenGrab - - - - Allow multiple instances of ScreenGrab - Autoriser plusieurs instances de ScreenGrab - - - - Open in external viewer on double click - Ouvir dans le visualiseur externe au double clic - - - - Enable external viewer - Activer le visualiseur externe - - - - Fit to edges only inside selected screen area - Faire correspondre les bords de la sélection avec les bords de la zone rectangulaire sélectionné - - - - Fit to edges inside selected area - Faire correspondre les bords de la sélection avec les bords de la zone rectangulaire sélectionné - - - - Show ScreenGrab in the system tray - Placer ScreenGrab dans la barre des tâches - - - - Tray messages: - Notifications : - - - - Tray messages display mode - Mode d'affichage des notifications - - - - Never - Jamais - - - - Tray mode - Mode bac - - - - Always - Toujours - - - - Time of display tray messages - Temps d'affichage des notifications - - - - Time to display tray messages - Temps d'affichage des notifications - - - - Minimize to tray on click close button - Minimiser lors d'un clic sur le bouton de fermeture - - - - Minimize to tray when closing - Minimiser lors d'un clic sur le bouton de fermeture - - - - Action - Action - - - - Shortcut - Raccourci - - - - Global shortcuts - Raccourcis globaux - - - - Full screen - Plein écran - - - - Active window - Fenêtre active - - - - Area select - Sélection - - - - Local shortcuts - Raccourcis locaux - - - - New screen - Nouvelle capture - - - - Save screen - Enregistrer la capture - - - - Copy screen - Copier la capture - - - - Help - Aide - - - - Quit - Quitter - - - - Selected shortcut: - Raccourci sélectionné : - - - - Not defined - Non défini - - - diff --git a/translations/screengrab_gl.ts b/translations/screengrab_gl.ts deleted file mode 100644 index 393d6b6..0000000 --- a/translations/screengrab_gl.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - usando Qt - - - - About - Sobre - - - - Thanks - Grazas - - - - Help us - Axúdenos - - - - is a crossplatform application for fast creating screenshots of your desktop. - é unha aplicación multiplataforma para facer rapidamente capturas de pantalla do seu escritorio. - - - - It is a light and powerful application, written in Qt. - É unha aplicación lixeira e potente, escrita en Qt. - - - - Website - Sitio web - - - - Licensed under the - Licenciada baixo a - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Dereitos de autoría &copy; 2009-2013, Artem «DOOMer» Galichkin - - - - You can join us and help us if you want. This is an invitation if you like this application. - Pode unirse a nós e axudarnos se quixer. Isto é un convite se lle gusta esta aplicación. - - - - What you can do? - Que pode facer vostede? - - - - Translate ScreenGrab to other languages - Traducir ScreenGrab a outros idiomas - - - - Make suggestions for next releases - Facer suxestións para próximas versións - - - - Report bugs and issues - Informar de fallos e outras incidencias - - - - Bug tracker - Seguimento de erros - - - - Translate: - Tradución: - - - - Brazilian Portuguese translation - Tradución ao portugués do Brasil - - - - Marcio Moraes - - - - - Ukrainian translation - Tradución ao ucraíno - - - - Gennadi Motsyo - - - - - Spanish translation - Tradución ao español - - - - Burjans L García D - - - - - Italian translation - Tradución ao italiano - - - - Testing: - Probas: - - - - Dual monitor support and other in Linux - Compatibilidade para monitor dobre e outros en Linux - - - - Dual monitor support in Linux - Compatibilidade para monitor dobre en Linux - - - - win32-build [Windows XP and 7] - Construción win32 [Windows XP e 7] - - - - old win32-build [Windows Vista] - Construción win32 antigo [Windows Vista] - - - - win32-build [Windows 7] - Construción win32 [Windows 7] - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - Non existe o directorio %1. Quere crealo? - - - - - Warning - Aviso - - - - Select directory - Seleccione o directorio - - - - Do you want to reset the settings to the defaults? - Quere reiniciar os axustes predeterminados? - - - - Example: - Exemplo: - - - - This key is already used in your system! Please select another. - Esta tecla xa está en uso polo sistema! Seleccione outra. - - - - This key is already used in ScreenGrab! Please select another. - Esta tecla xa está en uso por ScreenGrab! Seleccione outra. - - - - This key is not supported on your system! - Esta tecla non está admitida no seu sistema! - - - - Error - Erro - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - é unha aplicación multiplataforma para facer rapidamente capturas de pantalla do seu escritorio. - - - - Take a fullscreen screenshot - Facer unha captura da pantalla completa - - - - Take a screenshot of the active window - Facer unha captura da xanela activa - - - - Take a screenshot of a selection of the screen - Facer unha captura dunha área da pantalla - - - - Run the application with a hidden main window - Executar a aplicación coa xanela principal agachada - - - - Saved - Gardado - - - - Saved to - Gardado en - - - - Name of saved file is copied to the clipboard - O nome do ficheiro gardado copiase no portapapeis - - - - Path to saved file is copied to the clipboard - A ruta ao ficheiro gardado copiase ao portapapeis - - - - Copied - Copiado - - - - Screenshot is copied to clipboard - A captura de pantalla copiase ao portapapeis - - - - DialogUploader - - - Upload to internet - Enviar á Internet - - - - Upload to - Enviar a - - - - Direct link: - Ligazón directa: - - - - - Open this link in the default web-browser - Abrir esta ligazón no navegador predeterminado - - - - - Open - Abrir - - - - - Copy this link to the clipboard - Copiar esta ligazón no portapapeis - - - - - Copy - Copiar - - - - Extended preformed html or bb codes: - Códigos HTML ou BB preformados estendidos: - - - - Link to delete image: - Ligazón para eliminar a imaxe: - - - - Upload - Enviar - - - - Cancel - Cancelar - - - - Size: - Tamaño: - - - - pixel - píxel - - - - Uploaded - Enviado - - - - - Ready to upload - Listo para enviar - - - - Upload processing... Please wait - Enviando... Agarde - - - - Receiving a response from the server - Recibindo a resposta do servidor - - - - Upload completed - Envío completado - - - - - Close - Pechar - - - - Error uploading screenshot - Produciuse un erro ao enviar a captura de pantalla - - - - Error - Erro - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Abrir a ligazón no navegador predeterminado; pode eliminar directamente a súa imaxe sen ningún aviso. - - - - Are you sure you want to continue? - Confirma que quere continuar? - - - - MainWindow - - - ScreenGrab - - - - - Type: - Tipo: - - - - Type of screenshot - Tipo de captura de pantalla - - - - Full screen - Pantalla completa - - - - Window - Xanela - - - - Screen area - Área da pantalla - - - - Last selected area - Última área seleccionada - - - - Delay: - Demora: - - - - Delay in seconds before taking screenshot - Demora en segundos antes facer a captura de pantalla - - - - None - Ningunha - - - - sec - seg - - - - Zoom area around mouse - Ampliar a área arredor do rato - - - - No window decoration - Sen a decoración da xanela - - - - Include mouse pointer - Incluír o punteiro do rato - - - - toolBar - BarraDeFerramentas - - - - New - Nova - - - - Save - Gardar - - - - Copy - Copiar - - - - Options - Opcións - - - - - Help - Axuda - - - - About - Sobre - - - - Quit - Saír - - - - Screenshot - Captura de pantalla - - - - Double click to open screenshot in external default image viewer - Faga dobre clic para abrir a captura de pantalla no visor de imaxes externo predeterminado - - - - - Hide - Agachar - - - - Show - Amosar - - - - %1 Files - %1 ficheiro(s) - - - - Save As... - Gardar como... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Enviar a captura de pantalla ao sitio predeterminado para as imaxes - - - - Uploading - Enviando - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Use o rato para debuxar o rectángulo a capturar ou saia premendo -calquera tecla ou os botóns dereito ou central do rato. - - - - %1 x %2 pixels - %1 x %2 píxeles - - - - QObject - - - External edit - Edición externa - - - - Edit in... - Editar con.. - - - - Upload - Enviar - - - - Uploader - - - Direct link - Ligazón directa - - - - HTML code - Código HTML - - - - BB code - Código BB - - - - HTML code with thumb image - Código HTML con miniatura de imaxe - - - - BB code with thumb image - Código BB con miniatura de imaxe - - - - URl to delete image - URI para eliminar a imaxe - - - - UploaderConfigWidget - - - Common settings - Axustes xerais - - - - Default image host - Sitio predeterminado para as imaxes - - - - Always copy the link to the clipboard - Copiar sempre a ligazón no portapapeis - - - - Hosts settings - Configuración dos servidores - - - - Settings for: - Configuración para: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Configuración para o envío a imgur.com - - - - No settings available right now - Non hai axustes dispoñíbeis polo de agora - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Enviar a Imgur - - - - aboutWidget - - - About Qt - Sobre o Qt - - - - Close - Pechar - - - - configwidget - - - - Options - Opcións - - - - Main - Principal - - - - Advanced - Avanzado - - - - System tray - Área de notificación - - - - Shortcuts - Atallos - - - - Default save directory - Directorio predeterminado onde gardar - - - - Path to default selection dir for saving - Ruta ao directorio seleccionado como predeterminado para gardar - - - - Browse filesystem - Examinar o sistema de ficheiros - - - - Browse - Examinar - - - - Default file - Ficheiro predeterminado - - - - Name: - Nome: - - - - Default filename - Nome predeterminado do ficheiro - - - - Format - Formato - - - - Default saving image format - Formato predeterminado para gardar imaxes - - - - Copy file name to the clipboard when saving - Copiar o nome do ficheiro ao portapapeis ao gardar - - - - Do not copy - Non copiar nada - - - - Copy file name only - Copiar só o nome do ficheiro - - - - Copy full file path - Copiar a ruta completa do ficheiro - - - - Image quality - Calidade da imaxe - - - - Image quality (1 - small file, 100 - high quality) - Calidade da imaxe (1 - ficheiro pequeno, 100 - alta calidade) - - - - Inserting current date time into saved filename - Inserindo a data e hora actuais no nome do ficheiro gardado - - - - Insert current date and time in file name - Inserir a data e hora actuais no nome do ficheiro - - - - Template: - Modelo: - - - - Example: - Exemplo: - - - - Automatically saving screenshots in grabbing process - Gardar automaticamente as capturas de pantalla durante o proceso de captura - - - - Autosave screenshot - Gardar automaticamente a captura de pantalla - - - - Save first screenshot - Gardar a primeira captura de pantalla - - - - Allow run multiplies copy of ScreenGrab - Permitir a execución de múltiples copias do ScreenGrab - - - - Allow multiple instances of ScreenGrab - Permitir múltiples instancias do ScreenGrab - - - - Open in external viewer on double click - Abrir no visor externo ao facer dobre clic - - - - Enable external viewer - Activar o visor externo - - - - Fit to edges only inside selected screen area - Axustar aos bordos só na área de pantalla seleccionada - - - - Fit to edges inside selected area - Axustar aos bordos dentro da área seleccionada - - - - Show ScreenGrab in the system tray - Amosar o ScreenGrab na área de notificación - - - - Tray messages: - Mensaxes na área de notificación: - - - - Tray messages display mode - Modo de presentación das mensaxes na área de notificación - - - - Never - Nunca - - - - Tray mode - Modo da área de notificación - - - - Always - Sempre - - - - Time of display tray messages - Duración das mensaxes na área de notificación - - - - Time to display tray messages - Tempo para amosar as mensaxes na área de notificación - - - - sec - seg - - - - Minimize to tray on click close button - Minimizar na área de notificación ao premer no botón de peche - - - - Minimize to tray when closing - Minimizar na área de notificación ao pechar - - - - Action - Acción - - - - Shortcut - Atallo - - - - Global shortcuts - Atallos globais - - - - Full screen - Pantalla completa - - - - Active window - Xanela activa - - - - Area select - Seleccionar área - - - - Local shortcuts - Atallos locais - - - - New screen - Pantalla nova - - - - Save screen - Gardar a pantalla - - - - Copy screen - Copiar a pantalla - - - - Help - Axuda - - - - Quit - Saír - - - - Selected shortcut: - Atallo seleccionado: - - - - Not defined - Sen definir - - - diff --git a/translations/screengrab_he.ts b/translations/screengrab_he.ts deleted file mode 100644 index ca6df74..0000000 --- a/translations/screengrab_he.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - בעזרת Qt - - - - About - על אודות - - - - Thanks - תודות - - - - Help us - לסייע לנו - - - - is a crossplatform application for fast creating screenshots of your desktop. - הוא יישום ליצירת צילומי מסך של שולחן העבודה שלך. - - - - It is a light and powerful application, written in Qt. - מדובר ביישום קטן ועצמתי, שנכתב ב־Qt. - - - - Website - אתר - - - - Licensed under the - מוגש בכפוף לרישיון - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - כל הזכויות שמורות &copy; 2009‏-2013, ארטיום ‚DOOMer’ גליצ׳קין - - - - You can join us and help us if you want. This is an invitation if you like this application. - ניתן להצטרף ולסייע לנו אם מתחשק לך. זו הזמנה לכל חובבי היישום. - - - - What you can do? - במה ניתן לסייע? - - - - Translate ScreenGrab to other languages - לתרגם את ScreenGrab לשפות נוספות - - - - Make suggestions for next releases - להציע הצעות לגרסאות הבאות - - - - Report bugs and issues - לדווח על תקלות - - - - Bug tracker - עוקב תקלות - - - - Translate: - תרגום: - - - - Brazilian Portuguese translation - תרגום לפורטוגלית ברזילאית - - - - Marcio Moraes - מרצ׳ו מוראס - - - - Ukrainian translation - תרגום לאוקראינית - - - - Gennadi Motsyo - גנאדי מוציו - - - - Spanish translation - תרגום לספרדית - - - - Burjans L García D - בורשאנס ל גרסיה ד - - - - Italian translation - תרגום לאיטלקית - - - - Testing: - בדיקה: - - - - Dual monitor support and other in Linux - תמיכה בריבוי צדים ועוד בלינוקס - - - - Dual monitor support in Linux - תמיכה בריבוי צגים בלינוקס - - - - win32-build [Windows XP and 7] - win32-build [Windows XP ו־7] - - - - old win32-build [Windows Vista] - win32-build ישנה [Windows Vista] - - - - win32-build [Windows 7] - - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - התיקייה %1 אינה קיימת. ליצור אותה? - - - - - Warning - אזהרה - - - - Select directory - נא לבחור תיקייה - - - - Do you want to reset the settings to the defaults? - לאפס את ההגדרות לבררת המחדל? - - - - Example: - דוגמה: - - - - This key is already used in your system! Please select another. - המערכת שלך כבר משתמשת במפתח הזה! נא לבחור באחד אחר. - - - - This key is already used in ScreenGrab! Please select another. - התכנית ScreenGrab כבר משתמשת במפתח זה! נא לבחור באחד אחר. - - - - This key is not supported on your system! - המערכת שלך אינה תומכת במפתח זה! - - - - Error - שגיאה - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - הוא יישום ליצירת צילומי מסך של שולחן העבודה שלך. - - - - Take a fullscreen screenshot - צילום המסך כולו - - - - Take a screenshot of the active window - צילום החלון הפעיל - - - - Take a screenshot of a selection of the screen - צילום חלק מסוים מהמסך - - - - Run the application with a hidden main window - הפעלת היישום עם חלון ראשי מוסתר - - - - Saved - נשמר - - - - Saved to - נשמר אל - - - - Name of saved file is copied to the clipboard - שם הקובץ שנשמר מועתק ללוח הגזירים - - - - Path to saved file is copied to the clipboard - הנתיב לקובץ שנשמר מועתק ללוח הגזירים - - - - Copied - הועתק - - - - Screenshot is copied to clipboard - צילום המסך מועתק ללוח הגזירים - - - - DialogUploader - - - Upload to internet - העלאה לאינטרנט - - - - Upload to - העלאה אל - - - - Direct link: - קישור ישיר: - - - - - Open this link in the default web-browser - פתיחת הקישור הזה בדפדפן בררת המחדל - - - - - Open - פתיחה - - - - - Copy this link to the clipboard - העתקת הקישור הזה אל לוח הגזירים - - - - - Copy - העתקה - - - - Extended preformed html or bb codes: - קודים של bb או html מורחב: - - - - Link to delete image: - קישור למחיקת תמונה: - - - - Upload - העלאה - - - - Cancel - ביטול - - - - Size: - גודל: - - - - pixel - פיקסלים - - - - Uploaded - הועלה - - - - - Ready to upload - מוכן להעלאה - - - - Upload processing... Please wait - ההעלאה עוברת עיבוד… נא להמתין - - - - Receiving a response from the server - מתקבלת תגובה מהשרת - - - - Upload completed - ההעלאה הושלמה - - - - - Close - סגירה - - - - Error uploading screenshot - העלאת צילום המסך נתקלה בשגיאה - - - - Error - שגיאה - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - ניתן לפתוח את הקישור הזה בדפדפן בררת המחדל שלך, הוא עשוי למחוק את התמונה שלך מיידית, ללא אזהרות. - - - - Are you sure you want to continue? - להמשיך? - - - - MainWindow - - - ScreenGrab - - - - - Type: - סוג: - - - - Type of screenshot - סוג צילום המסך - - - - Full screen - מסך מלא - - - - Window - חלון - - - - Screen area - אזור במסך - - - - Last selected area - האזור האחרון שנבחר - - - - Delay: - השהיה: - - - - Delay in seconds before taking screenshot - השהיה בשניות בטרם צילום המסך - - - - None - ללא - - - - sec - שניות - - - - Zoom area around mouse - התקרבות לאזור שמסביב לסמן - - - - No window decoration - ללא עיטור חלונות - - - - Include mouse pointer - כולל סמן העכבר - - - - toolBar - סרגל כלים - - - - New - חדש - - - - Save - שמירה - - - - Copy - העתקה - - - - Options - אפשרויות - - - - - Help - עזרה - - - - About - על אודות - - - - Quit - יציאה - - - - Screenshot - צילום מסך - - - - Double click to open screenshot in external default image viewer - יש ללחוץ לחיצה כפולה כדי לפתוח צילום מסך במציג תמונות חיצוני כבררת מחדל - - - - - Hide - הסתרה - - - - Show - הצגה - - - - %1 Files - קובצי %1 - - - - Save As... - שמירה בשם… - - - - ModuleUploader - - - Upload the screenshot to the default image host - העלאת צילום המסך למארח התמונות כבררת מחדל - - - - Uploading - מתבצעת העלאה - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - נא להשתמש בעכבר שלך כדי לצייר ריבוע לצילום או -לצאת עם כל מקש שהוא או הכפתורים הימני או האמצעי בעכבר. - - - - %1 x %2 pixels - %1 × %2 פיקסלים - - - - QObject - - - External edit - עריכה חיצונית - - - - Edit in... - עריכה עם… - - - - Upload - העלאה - - - - Uploader - - - Direct link - קישור ישיר - - - - HTML code - קוד HTML - - - - BB code - קוד BB - - - - HTML code with thumb image - קוד HTML עם תמונה מוקטנת - - - - BB code with thumb image - קוד BB עם תמונה מוקטנת - - - - URl to delete image - כתובת למחיקת תמונה - - - - UploaderConfigWidget - - - Common settings - הגדרות משותפות - - - - Default image host - מארח תמונות כבררת מחדל - - - - Always copy the link to the clipboard - תמיד להעתיק את הקישור ללוח הגזירים - - - - Hosts settings - הגדרות מארחים - - - - Settings for: - הגדרות עבור: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - הגדרות להעלאה אל imgur.com - - - - No settings available right now - אין הגדרות זמינות כרגע - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - העלאה ל־‏Imgur - - - - aboutWidget - - - About Qt - על אודות Qt - - - - Close - סגירה - - - - configwidget - - - - Options - אפשרויות - - - - Main - ראשי - - - - Advanced - מתקדם - - - - System tray - מגש מערכת - - - - Shortcuts - קיצורי דרך - - - - Default save directory - תיקיית שמירה כבררת מחדל - - - - Path to default selection dir for saving - נתיב לתיקייה הנבחרת לשמירה כבררת מחדל - - - - Browse filesystem - עיון במערכת הקבצים - - - - Browse - עיון - - - - Default file - קובץ בררת מחדל - - - - Name: - שם: - - - - Default filename - שם קובץ כבררת מחדל - - - - Format - תבנית - - - - Default saving image format - תבנית לשמירת קבצים כבררת מחדל - - - - Copy file name to the clipboard when saving - להעתיק את שם הקובץ ללוח הגזירים בעת השמירה - - - - Do not copy - לא להעתיק - - - - Copy file name only - להעתיק את שם הקובץ בלבד - - - - Copy full file path - להעתיק את הנתיב המלא לקובץ - - - - Image quality - איכות תמונה - - - - Image quality (1 - small file, 100 - high quality) - איכות תמונה (1 - קובץ קטן, 100 - איכות גבוהה) - - - - Inserting current date time into saved filename - הוספת התאריך והשעה הנוכחיים לשם של הקובץ שנשמר - - - - Insert current date and time in file name - הוספת התאריך והשעה הנוכחית לשם הקובץ - - - - Template: - תבנית: - - - - Example: - דוגמה: - - - - Automatically saving screenshots in grabbing process - שמירת צילומי מסך אוטומטית במהלך הלכידה - - - - Autosave screenshot - שמירת צילומי מסך אוטומטית - - - - Save first screenshot - שמירת צילום המסך הראשון - - - - Allow run multiplies copy of ScreenGrab - לאפשר להריץ מספר עותקים של ScreenGrab - - - - Allow multiple instances of ScreenGrab - לאפשר מספר עותקים של ScreenGrab - - - - Open in external viewer on double click - פתיחה במציג חיצוני בלחיצה כפולה - - - - Enable external viewer - הפעלת מציג חיצוני - - - - Fit to edges only inside selected screen area - התאמה לקצוות רק בתוך אזור המסך הנבחר - - - - Fit to edges inside selected area - התאמה לקצוות בתוך האזור הנבחר - - - - Show ScreenGrab in the system tray - הצגת ScreenGrab במגש המערכת - - - - Tray messages: - הודעות מגש: - - - - Tray messages display mode - מצב תצוגת הודעות מגש - - - - Never - לעולם לא - - - - Tray mode - מצב מגש - - - - Always - תמיד - - - - Time of display tray messages - מועד הצגת הודעות מגש - - - - Time to display tray messages - מועד להצגת הודעות מגש - - - - sec - שניות - - - - Minimize to tray on click close button - מזעור למגש עם לחיצה על כפתור הסגירה - - - - Minimize to tray when closing - מזעור למגש בעת סגירה - - - - Action - פעולה - - - - Shortcut - קיצור דרך - - - - Global shortcuts - קיצורי דרך גלובליים - - - - Full screen - מסך מלא - - - - Active window - חלון פעיל - - - - Area select - בחירת אזור - - - - Local shortcuts - קיצורי דרך מקומיים - - - - New screen - מסך חדש - - - - Save screen - שמירת המסך - - - - Copy screen - העתקת המסך - - - - Help - עזרה - - - - Quit - יציאה - - - - Selected shortcut: - קיצורי דרך נבחרים: - - - - Not defined - לא מוגדר - - - diff --git a/translations/screengrab_it.desktop b/translations/screengrab_it.desktop deleted file mode 100644 index 3132fc9..0000000 --- a/translations/screengrab_it.desktop +++ /dev/null @@ -1,3 +0,0 @@ -# Translations -Name[it]=Cattura schermata -Comment[it]=Applicazione per catturare schermate diff --git a/translations/screengrab_it.ts b/translations/screengrab_it.ts deleted file mode 100644 index 9aba8d4..0000000 --- a/translations/screengrab_it.ts +++ /dev/null @@ -1,965 +0,0 @@ - - - - - AboutDialog - - - using Qt - usando le librerie QT - - - - About - Informazioni - - - - Thanks - Grazie a - - - - It is a light and powerful application, written in Qt. - E' un applicazione leggera ma potente, scritto in Qt. - - - - Website - Sito Web - - - - Licensed under the - Rilasciato sotto licenza - - - - Help us - Contribuisci - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - copyright updated to 2015, ok? - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - What you can do? - Cosa puoi fare? - - - - is a crossplatform application for fast creating screenshots of your desktop. - è una applicazione per catturare velocemente schermate per tutte le piattaforme. - - - - You can join us and help us if you want. This is an invitation if you like this application. - Se ti piace questa applicazione puoi contribuire. - - - - Translate ScreenGrab to other languages - Puoi tradurre ScreenGrab in altre lingue - - - - Make suggestions for next releases - Fai proposte per le prossime versioni - - - - Report bugs and issues - Segnala problemi e bug - - - - Bug tracker - Segnala bug - - - - Translate: - Traduzioni: - - - - Brazilian Portuguese translation - ·Traduzioni in Portoghese Brasiliano - - - - Marcio Moraes - - - - - Ukrainian translation - ·Traduzioni in Ucraino - - - - Gennadi Motsyo - - - - - Spanish translation - ·Spanish translation - - - - Burjans L García D - - - - - Italian translation - Traduziona italiana - - - - Testing: - Test: - - - - Dual monitor support and other in Linux - Supporto per due monitor e altro in Linux - - - - Dual monitor support in Linux - Supporto dual monitor in Linux - - - - win32-build [Windows XP and 7] - win32-build [Windows XP and 7] - - - - old win32-build [Windows Vista] - win32-build vecchio [Windows Vista] - - - - win32-build [Windows 7] - win32-build [Windows 7] - - - - ConfigDialog - - - Select directory - Selezionare la cartella - - - - - Warning - Attenzione - - - - Directory %1 does not exist. Do you want to create it? - La cartella %1 non esiste. Vuoi crearla? - - - - Do you want to reset the settings to the defaults? - Vuoi ripristinare la configurazione iniziale? - - - - Example: - Esempio: - - - - This key is already used in your system! Please select another. - Questa scorciatoia è già in uso. Seleziona un altra per favore. - - - - This key is already used in ScreenGrab! Please select another. - Questa scorciatoia è già usata in ScreenGrab. Seleziona un altra. - - - - This key is not supported on your system! - Questa chiave non è supportata dal tuo sistema! - - - - Error - Errore - - - - Core - - - Saved - Salvata - - - - Name of saved file is copied to the clipboard - Il nome del file salvato è stato copiato negli appunti - - - - Copied - Copiata - - - - Saved to - Salvata in - - - - is a crossplatform application for fast creating screenshots of your desktop. - è una applicazione per catturare velocemente schermate per tutte le piattaforme. - - - - Take a fullscreen screenshot - Cattura lo schermo intero - - - - Take a screenshot of the active window - Cattura la finestra attiva - - - - Take a screenshot of a selection of the screen - Cattura una selezione dello schermo - - - - Run the application with a hidden main window - Avvia l''applicazione con la finestra principale nascosta - - - - Path to saved file is copied to the clipboard - Il percorso del file salvato è stato copiato negli appunti - - - - Screenshot is copied to clipboard - La schermata è stata copiata negli appunti - - - - DialogUploader - - - Upload to internet - Carica in rete - - - - Upload to - Carica a - - - - Direct link: - Collegamento diretto: - - - - - Open this link in the default web-browser - Apri questo link con il browser predefinito - - - - - Open - Apri - - - - - Copy this link to the clipboard - Copia questo link agli appunti - - - - - Copy - Copia - - - - Extended preformed html or bb codes: - Codici html o bb preformati estesi: - - - - Link to delete image: - Indirizzo per rimuovere immagine: - - - - Upload - Carica - - - - Cancel - Annulla - - - - Size: - Grandezza: - - - - pixel - pixel - - - - Uploaded - Caricato - - - - - Ready to upload - Pronto a caricare - - - - Upload processing... Please wait - Caricamento in corso... Attendere - - - - Receiving a response from the server - Ricevendo una risposta dal server - - - - Upload completed - Caricamento completato - - - - - Close - Chiudi - - - - Error uploading screenshot - Errore durante il caricamento dello screenshot - - - - Error - Errore - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Apre questo link con il tuo browser predefinito, potrebbe direttamente rimuovere la tua immagine caricata, senza alcun avvertimento. - - - - Are you sure you want to continue? - Sei sicuro di voler continuare? - - - - MainWindow - - - ScreenGrab - ScreenGrab - - - - Type: - Tipo: - - - - Type of screenshot - Tipo di cattura - - - - Full screen - Schermo intero - - - - Window - Finestra - - - - Screen area - Area dello schermo - - - - Last selected area - Ultima area selezionata - - - - Delay: - Ritardo: - - - - Zoom area around mouse - Ingrandisce area intorno al cursore - - - - No window decoration - Escludi le decorazioni delle finestre - - - - Include mouse pointer - Cattura cursore - - - - toolBar - Barra degli strumenti - - - - Delay in seconds before taking screenshot - Ritardo in secondi prima di effettuare la cattura - - - - sec - ·sec - - - - Options - Impostazioni - - - - - Help - Guida - - - - Quit - Esci - - - - Save - Salva - - - - New - Nuovo - - - - Copy - Copia - - - - Double click to open screenshot in external default image viewer - Doppio clic per aprire la cattura in un editor esterno - - - - - Hide - Nascondi - - - - %1 Files - %1 File - - - - About - Informazioni su - - - - Screenshot - Schermata - - - - None - Nessuno - - - - Show - Mostra - - - - Save As... - Salva con nome... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Carica lo screenshot al host predefinito - - - - Uploading - Caricando - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Usa il mouse per delineare un rettangolo da catturare o esci premendo -un tasto qualsiasi o usando il tasto destro o centrale del mouse. - - - - %1 x %2 pixels - %1 x %2 pixel - - - - QObject - - - External edit - Editor esterno - - - - Edit in... - Modifica con... - - - - Upload - Carica - - - - Uploader - - - Direct link - Link diretto - - - - HTML code - Codice HTML - - - - BB code - Codice BB - - - - HTML code with thumb image - Codice HTML con la miniatura - - - - BB code with thumb image - Codice BB con la miniatura - - - - URl to delete image - URl per eliminare l'immagine - - - - UploaderConfigWidget - - - Common settings - Impostazioni comuni - - - - Default image host - Host per le immagini predefinito - - - - Always copy the link to the clipboard - Copia sempre il link negli appunti - - - - Hosts settings - Impostazioni Host - - - - Settings for: - Impostazioni per: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Configurazioni per il caricamento su imgur.com - - - - No settings available right now - Nessuna impostazione disponibile al momento - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Carica su Imgur - - - - aboutWidget - - - About Qt - Informazioni su QT - - - - Close - Chiudi - - - - configwidget - - - - Options - Impostazioni - - - - Default saving image format - Formato standard di salvataggio immagine - - - - Inserting current date time into saved filename - Inserisci la data e l'orario corrente nel nome file - - - - Insert current date and time in file name - Inserisci data e ora nel nome del file - - - - Autosave screenshot - Salva la cattura automaticamente - - - - Save first screenshot - Salva la prima cattura - - - - Image quality - Qualità imagine - - - - Image quality (1 - small file, 100 - high quality) - Qualità immagine (1 -bassa, 100 massima qualità) - - - - Allow run multiplies copy of ScreenGrab - Permetti istanze multiple di ScreenGrab - - - - Enable external viewer - Abilita visualizzatore esterno - - - - Fit to edges only inside selected screen area - Looks like not present in GUI - Adatta ai bordi all'interno della selezione - - - - Fit to edges inside selected area - Adatta a bordi all'interno della selezione - - - - Show ScreenGrab in the system tray - Mostra ScreenGrab nel vassoio di sistema - - - - Minimize to tray on click close button - Minimizza nel vassoio di sistema cliccando il pulsante chiudi - - - - Minimize to tray when closing - Minimizza nel vassoio alla chiusura - - - - Action - Azione - - - - Global shortcuts - Scorciatoie globali - - - - Active window - Finestra attiva - - - - Area select - Selezione area - - - - Local shortcuts - Scorciatoie locali - - - - New screen - Nuova cattura - - - - Save screen - Salva cattura - - - - Copy screen - Copia cattura - - - - Help - Guida - - - - Not defined - Non definito - - - - Main - Generale - - - - System tray - Vassoio - - - - Path to default selection dir for saving - Percorso per i salvataggi predefinito - - - - Browse filesystem - Sfoglia le cartelle - - - - Browse - Sfoglia - - - - Default filename - Nome file predefinito - - - - Format - Formato - - - - Copy file name to the clipboard when saving - Copia nome del file negli appunti quando salvi - - - - Do not copy - Non copiare - - - - Copy file name only - Copia solo il nome del file - - - - Copy full file path - Copia il percorso completo - - - - sec - ·sec - - - - Advanced - Avanzate - - - - Default save directory - Cartella di salvataggio predefinita - - - - Default file - File predefinito - - - - Name: - Nome: - - - - Template: - Modello: - - - - Example: - Esempio: - - - - Automatically saving screenshots in grabbing process - Salva la schermata automaticamente durante la cattura - - - - Tray messages: - Messaggi nell'area di notifica: - - - - Tray messages display mode - Modalità di visualizzazione nell'area di notifica - - - - Never - Mai - - - - Tray mode - Modalità area di notifica - - - - Always - Sempre - - - - Time of display tray messages - Tempo di esposizione dei messaggi - - - - Time to display tray messages - Tempo di esposizione dei messaggi nell'area di notifica - - - - Shortcuts - Scorciatoie - - - - Allow multiple instances of ScreenGrab - Permetti istanze multiple di ScreenGrab - - - - Open in external viewer on double click - Apri la cattura in un visualizzatore esterno con doppio clic - - - - Shortcut - Scorciatoia - - - - Full screen - Schermo intero - - - - Quit - Esci - - - - Selected shortcut: - Seleziona scorciatoia: - - - diff --git a/translations/screengrab_lt.ts b/translations/screengrab_lt.ts deleted file mode 100644 index 56a5b0c..0000000 --- a/translations/screengrab_lt.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - naudoja Qt - - - - About - Apie - - - - Thanks - Padėkos - - - - Help us - Padėkite mums - - - - is a crossplatform application for fast creating screenshots of your desktop. - yra daugiaplatformė programa, skirta greitoms jūsų darbalaukio ekrano kopijoms. - - - - It is a light and powerful application, written in Qt. - Tai yra supaprastinta ir galinga programa, parašyta Qt programavimo kalba. - - - - Website - Svetainė - - - - Licensed under the - Licencijuota pagal - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Autorių teisės &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - You can join us and help us if you want. This is an invitation if you like this application. - Jeigu norite, galite prisijungti prie mūsų ir mums padėti. Šis kvietimas galioja, jeigu jums patinka ši programa. - - - - What you can do? - Ką galite daryti? - - - - Translate ScreenGrab to other languages - Versti ScreenGrab į kitas kalbas - - - - Make suggestions for next releases - Teikti pasiūlymus kitoms laidoms - - - - Report bugs and issues - Pranešti apie klaidas ir problemas - - - - Bug tracker - Klaidų sekiklis - - - - Translate: - Versti: - - - - Brazilian Portuguese translation - Brazilijos portugalų vertimas - - - - Marcio Moraes - - - - - Ukrainian translation - Ukrainiečių vertimas - - - - Gennadi Motsyo - - - - - Spanish translation - Ispanų vertimas - - - - Burjans L García D - - - - - Italian translation - Italų vertimas - - - - Testing: - Testavimas: - - - - Dual monitor support and other in Linux - Dviejų monitorių palaikymas ir kita sistemoje Linux - - - - Dual monitor support in Linux - Dviejų monitorių palaikymas sistemoje Linux - - - - win32-build [Windows XP and 7] - win32-darinys [Windows XP ir 7] - - - - old win32-build [Windows Vista] - senas win32-darinys [Windows Vista] - - - - win32-build [Windows 7] - win32-darinys [Windows 7] - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - Katalogo %1 nėra. Ar norite jį sukurti? - - - - - Warning - Įspėjimas - - - - Select directory - Pasirinkite katalogą - - - - Do you want to reset the settings to the defaults? - Ar norite atstatyti nustatymus į numatytuosius? - - - - Example: - Pavyzdys: - - - - This key is already used in your system! Please select another. - Ši klavišų kombinacija jau yra naudojama jūsų sistemoje! Pasirinkite kitą. - - - - This key is already used in ScreenGrab! Please select another. - Ši klavišų kombinacija jau yra naudojama programoje ScreenGrab! Pasirinkite kitą. - - - - This key is not supported on your system! - Ši klavišų kombinacija jūsų sistemoje nėra palaikoma! - - - - Error - Klaida - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - yra daugiaplatformė programa, skirta greitoms jūsų darbalaukio ekrano kopijoms. - - - - Take a fullscreen screenshot - Padaryti viso ekrano kopiją - - - - Take a screenshot of the active window - Padaryti aktyvaus lango ekrano kopiją - - - - Take a screenshot of a selection of the screen - Padaryti ekrano žymėjimo ekrano kopiją - - - - Run the application with a hidden main window - Paleisti programą su paslėptu pagrindiniu langu - - - - Saved - Įrašyta - - - - Saved to - Įrašyta į - - - - Name of saved file is copied to the clipboard - Įrašyto failo pavadinimas yra nukopijuotas į iškarpinę - - - - Path to saved file is copied to the clipboard - Kelias į įrašytą failą yra nukopijuotas į iškarpinę - - - - Copied - Nukopijuota - - - - Screenshot is copied to clipboard - Ekrano kopija yra nukopijuota į iškarpinę - - - - DialogUploader - - - Upload to internet - Įkelti į internetą - - - - Upload to - Įkelti į - - - - Direct link: - Tiesioginė nuoroda: - - - - - Open this link in the default web-browser - Atverti šią nuorodą numatytojoje saityno naršyklėje - - - - - Open - Atverti - - - - - Copy this link to the clipboard - Kopijuoti šią nuorodą į iškarpinę - - - - - Copy - Kopijuoti - - - - Extended preformed html or bb codes: - Išplėstiniai iš anksto suformuoti html ar bb kodai: - - - - Link to delete image: - Nuoroda paveikslo ištrynimui: - - - - Upload - Įkelti - - - - Cancel - Atsisakyti - - - - Size: - Dydis: - - - - pixel - pikselių - - - - Uploaded - Įkelta - - - - - Ready to upload - Pasiruošę įkelti - - - - Upload processing... Please wait - Vykdomas įkėlimas... Palaukite - - - - Receiving a response from the server - Gaunamas atsakymas iš serverio - - - - Upload completed - Įkėlimas užbaigtas - - - - - Close - Užverti - - - - Error uploading screenshot - Klaida, įkeliant ekrano kopiją - - - - Error - Klaida - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Atverti šią nuorodą numatytojoje saityno naršyklėje, tai gali iš karto, be jokių įspėjimų ištrinti jūsų įkeltą paveikslą. - - - - Are you sure you want to continue? - Ar tikrai norite tęsti? - - - - MainWindow - - - ScreenGrab - - - - - Type: - Tipas: - - - - Type of screenshot - Ekrano kopijos tipas - - - - Full screen - Visas ekranas - - - - Window - Langas - - - - Screen area - Ekrano sritis - - - - Last selected area - Paskutinė žymėta sritis - - - - Delay: - Delsa: - - - - Delay in seconds before taking screenshot - Delsa, sekundėmis, prieš darant ekrano kopiją - - - - None - Nėra - - - - sec - sek. - - - - Zoom area around mouse - Didinti srities aplink pelę dydį - - - - No window decoration - Be langų dekoracijų - - - - Include mouse pointer - Įtraukti pelės rodyklę - - - - toolBar - Įrankių juosta - - - - New - Nauja - - - - Save - Įrašyti - - - - Copy - Kopijuoti - - - - Options - Parinktys - - - - - Help - Žinynas - - - - About - Apie - - - - Quit - Išeiti - - - - Screenshot - Ekrano kopija - - - - Double click to open screenshot in external default image viewer - Spustelėkite du kartus, norėdami atverti ekrano kopiją numatytojoje paveikslų žiūryklėje - - - - - Hide - Slėpti - - - - Show - Rodyti - - - - %1 Files - %1 failų - - - - Save As... - Įrašyti kaip... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Įkelti ekrano kopiją į numatytąją paveikslų prieglobą - - - - Uploading - Įkeliama - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Naudokite pelę, norėdami nupiešti stačiakampį, kurio ekrano kopija bus daroma. -Paspauskite bet kurį klavišą arba dešinįjį ar vidurinį pelės mygtuką, norėdami išeiti. - - - - %1 x %2 pixels - %1 x %2 pikselių - - - - QObject - - - External edit - Išorinis redagavimas - - - - Edit in... - Redaguoti... - - - - Upload - Įkelti - - - - Uploader - - - Direct link - Tiesioginė nuoroda - - - - HTML code - HTML kodas - - - - BB code - BB kodas - - - - HTML code with thumb image - HTML kodas su miniatiūra - - - - BB code with thumb image - BB kodas su miniatiūra - - - - URl to delete image - URL skirtas ištrinti paveikslą - - - - UploaderConfigWidget - - - Common settings - Bendri nustatymai - - - - Default image host - Numatytoji paveikslų priegloba - - - - Always copy the link to the clipboard - Visada kopijuoti nuorodą į iškarpinę - - - - Hosts settings - Serverių nustatymai - - - - Settings for: - Nustatymai skirti: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - imgur.com įkelimo konfigūracija - - - - No settings available right now - Šiuo metu neprieinami jokie nustatymai - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Įkelti į Imgur - - - - aboutWidget - - - About Qt - Apie Qt - - - - Close - Užverti - - - - configwidget - - - - Options - Parinktys - - - - Main - Pagrindinės - - - - Advanced - Išplėstinės - - - - System tray - Sistemos dėklas - - - - Shortcuts - Spartieji klavišai - - - - Default save directory - Numatytasis įrašymo katalogas - - - - Path to default selection dir for saving - Kelias į numatytąjį pasirinktą katalogą, skirtą įrašymui - - - - Browse filesystem - Naršyti failų sistemą - - - - Browse - Naršyti - - - - Default file - Numatytasis failas - - - - Name: - Pavadinimas: - - - - Default filename - Numatytasis failo pavadinimas - - - - Format - Formatas - - - - Default saving image format - Numatytasis įrašomų paveikslų formatas - - - - Copy file name to the clipboard when saving - Įrašant, kopijuoti failų pavadinimą į iškarpinę - - - - Do not copy - Nekopijuoti - - - - Copy file name only - Kopijuoti tik failo pavadinimą - - - - Copy full file path - Kopijuoti pilną failo kelią - - - - Image quality - Paveikslo kokybė - - - - Image quality (1 - small file, 100 - high quality) - Paveikslo kokybė (1 - mažas failas, 100 - aukšta kokybė) - - - - Inserting current date time into saved filename - Dabartinės datos ir laiko įterpimas į įrašomo failo pavadinimą - - - - Insert current date and time in file name - Įterpti į failo pavadinimą dabartinę datą ir laiką - - - - Template: - Šablonas: - - - - Example: - Pavyzdys: - - - - Automatically saving screenshots in grabbing process - Automatinis ekrano kopijų įrašymas fotografavimo eigoje - - - - Autosave screenshot - Automatiškai įrašyti ekrano kopiją - - - - Save first screenshot - Įrašyti pirmąją ekrano kopiją - - - - Allow run multiplies copy of ScreenGrab - Leisti paleisti kelis programos ScreenGrab egzempliorius - - - - Allow multiple instances of ScreenGrab - Leisti kelis programos ScreenGrab egzempliorius - - - - Open in external viewer on double click - Du kartus spustelėjus, atverti išorinėje žiūryklėje - - - - Enable external viewer - Įjungti išorinę žiūryklę - - - - Fit to edges only inside selected screen area - Talpinti į kraštus tik pažymėtoje ekrano srityje - - - - Fit to edges inside selected area - Talpinti į kraštus pažymėtoje ekrano srityje - - - - Show ScreenGrab in the system tray - Rodyti ScreenGrab sistemos dėkle - - - - Tray messages: - Dėklo pranešimai: - - - - Tray messages display mode - Dėklo pranešimų rodymo veiksena - - - - Never - Niekada - - - - Tray mode - Dėklo veiksena - - - - Always - Visada - - - - Time of display tray messages - Dėklo pranešimų rodymo trukmė - - - - Time to display tray messages - Dėklo pranešimų rodymo trukmė - - - - sec - sek. - - - - Minimize to tray on click close button - Spustelėjus užvėrimo mygtuką, suskleisti į dėklą - - - - Minimize to tray when closing - Užvėrus, suskleisti į dėklą - - - - Action - Veiksmas - - - - Shortcut - Spartusis klavišas - - - - Global shortcuts - Visuotiniai spartieji klavišai - - - - Full screen - Visas ekranas - - - - Active window - Aktyvus langas - - - - Area select - Pažymėta sritis - - - - Local shortcuts - Vietiniai spartieji klavišai - - - - New screen - Nauja ekrano kopija - - - - Save screen - Įrašyti ekrano kopiją - - - - Copy screen - Kopijuoti ekrano kopiją - - - - Help - Žinynas - - - - Quit - Išeiti - - - - Selected shortcut: - Pasirinktas spartusis klavišas: - - - - Not defined - Neapibrėžta - - - diff --git a/translations/screengrab_nb_NO.ts b/translations/screengrab_nb_NO.ts deleted file mode 100644 index 509a8c3..0000000 --- a/translations/screengrab_nb_NO.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - bruker Qt - - - - About - Om - - - - Thanks - Takk - - - - Help us - Hjelp oss - - - - is a crossplatform application for fast creating screenshots of your desktop. - er et plattformuavhenging program for å raskt skape skjermbilder av ditt skrivebord. - - - - It is a light and powerful application, written in Qt. - Er et lettvekts og kraftfullt program skrevet med Qt. - - - - Website - Nettside - - - - Licensed under the - Lisensiert under - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Opphavsrett &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - You can join us and help us if you want. This is an invitation if you like this application. - Du kan bli med og hjelpe oss hvis du ønsker. Dette er en invitasjon til deg som liker dette programmet. - - - - What you can do? - Hva kan du gjøre? - - - - Translate ScreenGrab to other languages - Oversett ScreenGrab til andre språk - - - - Make suggestions for next releases - Kom med forslag til framtidige utgaver - - - - Report bugs and issues - Rapporter feil og problemer - - - - Bug tracker - Feilrapporterer - - - - Translate: - Oversett: - - - - Brazilian Portuguese translation - Brasilliansk Portugisisk oversettelse - - - - Marcio Moraes - - - - - Ukrainian translation - Ukrainsk oversettelse - - - - Gennadi Motsyo - - - - - Spanish translation - Spansk oversettelse - - - - Burjans L García D - - - - - Italian translation - Italiensk oversettelse - - - - Testing: - Tester: - - - - Dual monitor support and other in Linux - Flerskjermsstøtte og annet i Linux - - - - Dual monitor support in Linux - Flerskjermsstøtte i Linux - - - - win32-build [Windows XP and 7] - win32-versjon [Windows XP og 7] - - - - old win32-build [Windows Vista] - gammel win32-versjon [Windows Vista] - - - - win32-build [Windows 7] - win32-versjon [Windows 7] - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - Mappen %1 finnes ikke. Ønsker du å skape den? - - - - - Warning - Advarsel - - - - Select directory - Velg mappe - - - - Do you want to reset the settings to the defaults? - Ønsker å du å tilbakestille til forvalgte innstillinger? - - - - Example: - Eksempel: - - - - This key is already used in your system! Please select another. - Denne nøkkelen er allerede brukt på ditt system! Vennligst velg en annen. - - - - This key is already used in ScreenGrab! Please select another. - Denne nøkkelen er allerede brukt i ScreenGrab! Vennligst velg en annen. - - - - This key is not supported on your system! - Denne nøkkelen støttes ikke på ditt system! - - - - Error - Feil - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - er et plattformuavhengig program for å raskt ta skjermbilder av ditt skrivebord. - - - - Take a fullscreen screenshot - Ta et fullskjerms skjermbilde - - - - Take a screenshot of the active window - Ta et skjermbilde av det aktive vinduet - - - - Take a screenshot of a selection of the screen - Ta et skjermbilde av et utvalg på skjermen - - - - Run the application with a hidden main window - Kjør programmet med et skjult hovedvindu - - - - Saved - Lagret - - - - Saved to - Lagret til - - - - Name of saved file is copied to the clipboard - Navnet på lagret fil er kopiert til utklippsboken - - - - Path to saved file is copied to the clipboard - Filsti til lagret fil er kopiert til utklippsboken - - - - Copied - Kopiert - - - - Screenshot is copied to clipboard - Skjermbildet er kopiert til utklippsboken - - - - DialogUploader - - - Upload to internet - Last opp til internett - - - - Upload to - Last opp til - - - - Direct link: - Direkte lenke: - - - - - Open this link in the default web-browser - Åpne denne lenken i standardnettleseren - - - - - Open - Åpne - - - - - Copy this link to the clipboard - Kopier denne lenken til utklippsboken - - - - - Copy - Kopier - - - - Extended preformed html or bb codes: - Utvidede forhåndsskapte html eller bb koder: - - - - Link to delete image: - Lenke for å slette bildet: - - - - Upload - Last opp - - - - Cancel - Avbryt - - - - Size: - Størrelse: - - - - pixel - punkt - - - - Uploaded - Lastet opp - - - - - Ready to upload - Klar til opplasting - - - - Upload processing... Please wait - Laster opp... Vennligst vent - - - - Receiving a response from the server - Motta et svar fra serveren - - - - Upload completed - Opplasting fullført - - - - - Close - Lukk - - - - Error uploading screenshot - Feil ved opplasting av skjermbilde - - - - Error - Feil - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Åpne denne lenken in din standardnettleser. Det kan slette ditt opplastede bilde uten noen advarsler. - - - - Are you sure you want to continue? - Er du sikker på at du ønsker å fortsette? - - - - MainWindow - - - ScreenGrab - - - - - Type: - - - - - Type of screenshot - Type skjermbilde - - - - Full screen - Fullskjerm - - - - Window - Vindu - - - - Screen area - Skjermområde - - - - Last selected area - Sist valgte område - - - - Delay: - Forsinkelse: - - - - Delay in seconds before taking screenshot - Forsinkelse i sekunder før skjermbilde tas - - - - None - Ingen - - - - sec - sek - - - - Zoom area around mouse - Zoomområde rundt muspeker - - - - No window decoration - Ingen vindusdekorasjoner - - - - Include mouse pointer - Ta med muspeker - - - - toolBar - Verktøylinje - - - - New - Ny - - - - Save - Lagre - - - - Copy - Kopier - - - - Options - Valg - - - - - Help - Hjelp - - - - About - Om - - - - Quit - Avslutt - - - - Screenshot - Skjermbilde - - - - Double click to open screenshot in external default image viewer - Dobbelklikk for å åpne skjermbilde i ekstern standard bildeviser - - - - - Hide - Skjul - - - - Show - Vis - - - - %1 Files - %1 filer - - - - Save As... - Lagre som... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Last opp skjermbildet til standard bildelager - - - - Uploading - Laster opp - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Bruk musen til å tegne opp et rektangel for skjermbilde eller avslutt -ved å trykke en tast, høyreklikke eller midtklikke. - - - - %1 x %2 pixels - %1 x %2 punkter - - - - QObject - - - External edit - Ekstern redigering - - - - Edit in... - Rediger i.. - - - - Upload - Last opp - - - - Uploader - - - Direct link - Direkte lenke - - - - HTML code - HTML-kode - - - - BB code - BB-kode - - - - HTML code with thumb image - HTML-kode med små bilder - - - - BB code with thumb image - BB-kode med små bilder - - - - URl to delete image - URl for å slette bildet - - - - UploaderConfigWidget - - - Common settings - Vanlige innstillinger - - - - Default image host - Standard bildelager - - - - Always copy the link to the clipboard - Alltid kopier lenken til utklippsboken - - - - Hosts settings - Vertsinnstillinger - - - - Settings for: - Innstillinger for: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Konfigurasjon for imgur.com lastet opp - - - - No settings available right now - Ingen innstillinger er tilgjengelige nå - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Last opp til Imgur - - - - aboutWidget - - - About Qt - Om Qt - - - - Close - Lukk - - - - configwidget - - - - Options - Valg - - - - Main - Hoved - - - - Advanced - Avansert - - - - System tray - Systemtrau - - - - Shortcuts - Snarveier - - - - Default save directory - Standard lagringsmappe - - - - Path to default selection dir for saving - Filsti til standardmappe for lagring - - - - Browse filesystem - Se gjennom filsystem - - - - Browse - Se gjennom - - - - Default file - Standardfil - - - - Name: - Navn: - - - - Default filename - Standardfilnavn - - - - Format - - - - - Default saving image format - Standard bildeformat - - - - Copy file name to the clipboard when saving - Kopier filnavn til utklippsboken ved lagring - - - - Do not copy - Ikke kopier - - - - Copy file name only - Kopier bare filnavn - - - - Copy full file path - Kopier hele filstien - - - - Image quality - Bildekvalitet - - - - Image quality (1 - small file, 100 - high quality) - Bildekvalitet (1 - liten fil, 100 - høy kvalitet) - - - - Inserting current date time into saved filename - Legger til nåværende dato og tid til filnavnet - - - - Insert current date and time in file name - Legg til nåværende dato og tid til filnavnet - - - - Template: - Mal: - - - - Example: - Eksempel: - - - - Automatically saving screenshots in grabbing process - Automatisk lagring av skjermbilde når det tas - - - - Autosave screenshot - Autolagre skjermbilde - - - - Save first screenshot - Lagre første skjermbilde - - - - Allow run multiplies copy of ScreenGrab - Tillat å kjøre flere kopier av ScreenGrab - - - - Allow multiple instances of ScreenGrab - Tillat flere utgaver av ScreenGrab - - - - Open in external viewer on double click - Åpne i ekstern bildeviser ved dobbeltklikk - - - - Enable external viewer - Slå på ekstern bildeviser - - - - Fit to edges only inside selected screen area - Tilpass til kanter bare inne i valgte skjermområde - - - - Fit to edges inside selected area - Tilpass til kanter inne i valgte område - - - - Show ScreenGrab in the system tray - Vis ScreenGrab i systemtrauet - - - - Tray messages: - Traubeskjeder: - - - - Tray messages display mode - Traubeskjed viser modus - - - - Never - Aldri - - - - Tray mode - Traumodus - - - - Always - Alltid - - - - Time of display tray messages - Tid å vise traubeskjeder - - - - Time to display tray messages - Tid å vise traubeskjeder - - - - sec - sek - - - - Minimize to tray on click close button - Minimer til systemtrau ved klikk på lukkeknappen - - - - Minimize to tray when closing - Minimer til systemtrau ved lukking - - - - Action - Handling - - - - Shortcut - Snarvei - - - - Global shortcuts - Globale snarveier - - - - Full screen - Fullskjerm - - - - Active window - Aktivt vindu - - - - Area select - Områdevalg - - - - Local shortcuts - Lokale snarveier - - - - New screen - Ny skjerm - - - - Save screen - Lagre skjerm - - - - Copy screen - Kopier skjerm - - - - Help - Hjelp - - - - Quit - Avslutt - - - - Selected shortcut: - Valgt snarvei: - - - - Not defined - Ikke definert - - - diff --git a/translations/screengrab_pl.ts b/translations/screengrab_pl.ts deleted file mode 100644 index 7beee93..0000000 --- a/translations/screengrab_pl.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - używa Qt - - - - About - O programie - - - - Thanks - Podziękowania - - - - Help us - Pomóż nam - - - - is a crossplatform application for fast creating screenshots of your desktop. - jest wieloplatformową aplikacją pozwalającą na szybkie tworzenie zrzutów ekranu. - - - - It is a light and powerful application, written in Qt. - Jest to lekka i funkcjonalna aplikacja napisana w Qt. - - - - Website - Strona internetowa - - - - Licensed under the - Na licencji - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Prawa autorskie &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - You can join us and help us if you want. This is an invitation if you like this application. - Możesz dołączyć do nas i pomóc nam jeżeli chcesz i lubisz tę aplikację. - - - - What you can do? - Co możesz zrobić? - - - - Translate ScreenGrab to other languages - Przetłumacz ScreenGrab na inne języki - - - - Make suggestions for next releases - Podziel się sugestiami na następne wydanie - - - - Report bugs and issues - Zgłoś błędy i problemy - - - - Bug tracker - - - - - Translate: - Tłumaczenie: - - - - Brazilian Portuguese translation - Tłumaczenie na brazylijski portugalski - - - - Marcio Moraes - - - - - Ukrainian translation - Tłumaczenie ukraińskie - - - - Gennadi Motsyo - - - - - Spanish translation - Tłumaczenie hiszpańskie - - - - Burjans L García D - - - - - Italian translation - Tłumaczenie włoskie - - - - Testing: - Testowanie: - - - - Dual monitor support and other in Linux - Wsparcie wielu monitorów i inne na Linuksie - - - - Dual monitor support in Linux - Wsparcie dwóch monitorów na Linuksie - - - - win32-build [Windows XP and 7] - win32-build [Windows XP i 7] - - - - old win32-build [Windows Vista] - stary win32-build [Windows Vista] - - - - win32-build [Windows 7] - - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - Ścieżka %1 nie istnieje. Czy chcesz ją utworzyć? - - - - - Warning - Ostrzeżenie - - - - Select directory - Wybierz położenie - - - - Do you want to reset the settings to the defaults? - Czy na pewno chcesz przywrócić ustawienia do domyślnych? - - - - Example: - Przykład: - - - - This key is already used in your system! Please select another. - Ten klucz jest już używany w Twoim systemie! Wybierz inny. - - - - This key is already used in ScreenGrab! Please select another. - Ten klucz jest już używany przez ScreenGrab! Wybierz inny. - - - - This key is not supported on your system! - Ten klucz nie jest obsługiwany przez Twój system! - - - - Error - Błąd - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - jest wieloplatformową aplikacją do szybkiego tworzenia zrzutów ekranu pulpitu. - - - - Take a fullscreen screenshot - Zrób zrzut pełnego ekranu - - - - Take a screenshot of the active window - Zrób zrzut ekranu aktywnego okna - - - - Take a screenshot of a selection of the screen - Zrób zrzut zaznaczonego obszaru ekranu - - - - Run the application with a hidden main window - Uruchom aplikację z ukrytym głównym oknem - - - - Saved - Zapisano - - - - Saved to - Zapisano do - - - - Name of saved file is copied to the clipboard - Nazwa zapisanego pliku została skopiowana do schowka - - - - Path to saved file is copied to the clipboard - Ścieżka zapisanego pliku została skopiowana do schowka - - - - Copied - Skopiowano - - - - Screenshot is copied to clipboard - Zrzut ekranu został skopiowany do schowka - - - - DialogUploader - - - Upload to internet - Wyślij do Internetu - - - - Upload to - Wyślij do - - - - Direct link: - Odnośnik bezpośredni: - - - - - Open this link in the default web-browser - Otwórz odnośnik w domyślnej przeglądarce internetowej - - - - - Open - Otwórz - - - - - Copy this link to the clipboard - Skopiuj ten odnośnik do schowka - - - - - Copy - Kopiuj - - - - Extended preformed html or bb codes: - - - - - Link to delete image: - Odnośnik do usunięcia obrazu: - - - - Upload - Wyślij - - - - Cancel - Anuluj - - - - Size: - Rozmiar: - - - - pixel - pikseli - - - - Uploaded - Wysłano - - - - - Ready to upload - Gotowy do wysłania - - - - Upload processing... Please wait - Przetwarzanie wysyłania… Proszę czekać - - - - Receiving a response from the server - Otrzymywanie odpowiedzi z serwera - - - - Upload completed - Zakończono wysyłanie - - - - - Close - Zamknij - - - - Error uploading screenshot - Wystąpił błąd podczas wysyłania zrzutu ekranu - - - - Error - Błąd - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Otwórz ten link w domyślnej przeglądarce internetowej, może on usunąć wysłany obraz bez ostrzeżenia. - - - - Are you sure you want to continue? - Czy na pewno chcesz kontynuować? - - - - MainWindow - - - ScreenGrab - - - - - Type: - Rodzaj: - - - - Type of screenshot - Rodzaj zrzutu ekranu - - - - Full screen - Pełny ekran - - - - Window - Okno - - - - Screen area - Fragment ekranu - - - - Last selected area - Ostatnio zaznaczony obszar - - - - Delay: - Opóźnienie: - - - - Delay in seconds before taking screenshot - Opóźnienie w sekundach przed wykonaniem zrzutu ekranu - - - - None - Brak - - - - sec - s - - - - Zoom area around mouse - Powiększ obszar przy kursorze - - - - No window decoration - Bez dekoracji okna - - - - Include mouse pointer - Uwzględnij wskaźnik myszy - - - - toolBar - - - - - New - Nowy - - - - Save - Zapisz - - - - Copy - Kopiuj - - - - Options - Opcje - - - - - Help - Pomoc - - - - About - O programie - - - - Quit - Wyjdź - - - - Screenshot - Zrzut ekranu - - - - Double click to open screenshot in external default image viewer - Naciśnij dwukrotnie aby otworzyć zrzut ekranu w domyślnej zewnętrznej przeglądarce zdjęć - - - - - Hide - Ukryj - - - - Show - Pokaż - - - - %1 Files - %1 plików - - - - Save As... - Zapisz jako… - - - - ModuleUploader - - - Upload the screenshot to the default image host - Wyślij zrzut ekranu na domyślny hosting obrazów - - - - Uploading - Wysyłanie - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Użyj myszy aby oznaczyć prostokątny obszar zrzutu ekranu lub wyjdź -używając dowolnego klawisza lub prawego bądź środkowego przycisku myszy. - - - - %1 x %2 pixels - %1 x %2 pikseli - - - - QObject - - - External edit - Edytuj na zewnątrz - - - - Edit in... - Edytuj w… - - - - Upload - Wyślij - - - - Uploader - - - Direct link - Odnośnik bezpośredni - - - - HTML code - Kod HTML - - - - BB code - BBcode - - - - HTML code with thumb image - Kod HTML z miniaturą - - - - BB code with thumb image - BBcode z miniaturą - - - - URl to delete image - URL usuwania obrazu - - - - UploaderConfigWidget - - - Common settings - Ustawienia ogólne - - - - Default image host - Domyślny hosting obrazów - - - - Always copy the link to the clipboard - Zawsze kopiuj odnośnik do schowka - - - - Hosts settings - Ustawienia hostów - - - - Settings for: - Ustawienia dla: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Konfiguracja wysyłania na imgur.com - - - - No settings available right now - Ustawienia nie są obecnie dostępne - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Wyślij na Imgur - - - - aboutWidget - - - About Qt - O Qt - - - - Close - Zamknij - - - - configwidget - - - - Options - Opcje - - - - Main - Główne - - - - Advanced - Zaawansowane - - - - System tray - Zasobnik systemowy - - - - Shortcuts - Skróty - - - - Default save directory - Domyślny katalog zapisu - - - - Path to default selection dir for saving - Ścieżka domyślnego zapytania o miejsce zapisu - - - - Browse filesystem - Przeglądaj system plików - - - - Browse - Przeglądaj - - - - Default file - Domyślny plik - - - - Name: - Nazwa: - - - - Default filename - Domyślna nazwa pliku - - - - Format - - - - - Default saving image format - Domyślny format zapisywania obrazów - - - - Copy file name to the clipboard when saving - Kopiuj nazwę pliku do schowka po zapisaniu - - - - Do not copy - Nie kopiuj - - - - Copy file name only - Kopiuj tylko nazwę pliku - - - - Copy full file path - Kopiuj pełną ścieżkę do pliku - - - - Image quality - Jakość obrazów - - - - Image quality (1 - small file, 100 - high quality) - Jakość obrazu (1 — mały plik, 100 — wysoka jakość) - - - - Inserting current date time into saved filename - Wstawianie obecnej daty do nazwy zapisywanego pliku - - - - Insert current date and time in file name - Wstawiaj datę i godzinę w nazwę plików - - - - Template: - Szablon: - - - - Example: - Przykład: - - - - Automatically saving screenshots in grabbing process - Automatyczny zapis zrzutów ekranu w procesie przechwytywania - - - - Autosave screenshot - Automatycznie zapisuj zrzut ekranu - - - - Save first screenshot - - - - - Allow run multiplies copy of ScreenGrab - Pozwól na uruchamianie wielu kopii ScreenGrab - - - - Allow multiple instances of ScreenGrab - Pozwól na wiele instancji ScreenGrab - - - - Open in external viewer on double click - Otwieraj zewnętrzny podgląd dwukrotnym kliknięciem - - - - Enable external viewer - Włącz zewnętrzną przeglądarkę - - - - Fit to edges only inside selected screen area - - - - - Fit to edges inside selected area - - - - - Show ScreenGrab in the system tray - Pokazuj ScreenGrab w zasobniku systemowym - - - - Tray messages: - Wiadomości w zasobniku: - - - - Tray messages display mode - Tryb wyświetlania wiadomości w zasobniku - - - - Never - Nigdy - - - - Tray mode - Tryb zasobnika - - - - Always - Zawsze - - - - Time of display tray messages - Czas wyświetlania wiadomości w zasobniku - - - - Time to display tray messages - Czas wyświetlania wiadomości w zasobniku - - - - sec - s - - - - Minimize to tray on click close button - Minimalizuj do zasobnika po zamknięciu okna - - - - Minimize to tray when closing - Minimalizuj do zasobnika przy zamykaniu - - - - Action - Działanie - - - - Shortcut - Skrót - - - - Global shortcuts - Globalne skróty - - - - Full screen - Pełny ekran - - - - Active window - Aktywne okno - - - - Area select - Wybór obszaru - - - - Local shortcuts - Lokalne skróty - - - - New screen - - - - - Save screen - - - - - Copy screen - - - - - Help - Pomoc - - - - Quit - Wyjdź - - - - Selected shortcut: - Wybrany skrót: - - - - Not defined - Nie zdefiniowano - - - diff --git a/translations/screengrab_pt.ts b/translations/screengrab_pt.ts deleted file mode 100644 index 3270701..0000000 --- a/translations/screengrab_pt.ts +++ /dev/null @@ -1,962 +0,0 @@ - - - - - AboutDialog - - - using Qt - - - - - About - - - - - Thanks - - - - - Help us - - - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - It is a light and powerful application, written in Qt. - - - - - Website - - - - - Licensed under the - - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - - You can join us and help us if you want. This is an invitation if you like this application. - - - - - What you can do? - - - - - Translate ScreenGrab to other languages - - - - - Make suggestions for next releases - - - - - Report bugs and issues - - - - - Bug tracker - - - - - Translate: - - - - - Brazilian Portuguese translation - - - - - Marcio Moraes - - - - - Ukrainian translation - - - - - Gennadi Motsyo - - - - - Spanish translation - - - - - Burjans L García D - - - - - Italian translation - - - - - Testing: - - - - - Dual monitor support and other in Linux - - - - - Dual monitor support in Linux - - - - - win32-build [Windows XP and 7] - - - - - old win32-build [Windows Vista] - - - - - win32-build [Windows 7] - - - - - ConfigDialog - - - Directory %1 does not exist. Do you want to create it? - - - - - - Warning - - - - - Select directory - - - - - Do you want to reset the settings to the defaults? - - - - - Example: - - - - - This key is already used in your system! Please select another. - - - - - This key is already used in ScreenGrab! Please select another. - - - - - This key is not supported on your system! - - - - - Error - - - - - Core - - - is a crossplatform application for fast creating screenshots of your desktop. - - - - - Take a fullscreen screenshot - - - - - Take a screenshot of the active window - - - - - Take a screenshot of a selection of the screen - - - - - Run the application with a hidden main window - - - - - Saved - - - - - Saved to - - - - - Name of saved file is copied to the clipboard - - - - - Path to saved file is copied to the clipboard - - - - - Copied - - - - - Screenshot is copied to clipboard - - - - - DialogUploader - - - Upload to internet - - - - - Upload to - - - - - Direct link: - - - - - - Open this link in the default web-browser - - - - - - Open - - - - - - Copy this link to the clipboard - - - - - - Copy - - - - - Extended preformed html or bb codes: - - - - - Link to delete image: - - - - - Upload - - - - - Cancel - - - - - Size: - - - - - pixel - - - - - Uploaded - - - - - - Ready to upload - - - - - Upload processing... Please wait - - - - - Receiving a response from the server - - - - - Upload completed - - - - - - Close - - - - - Error uploading screenshot - - - - - Error - - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - - - - - Are you sure you want to continue? - - - - - MainWindow - - - ScreenGrab - - - - - Type: - - - - - Type of screenshot - - - - - Full screen - - - - - Window - - - - - Screen area - - - - - Last selected area - - - - - Delay: - - - - - Delay in seconds before taking screenshot - - - - - None - - - - - sec - - - - - Zoom area around mouse - - - - - No window decoration - - - - - Include mouse pointer - - - - - toolBar - - - - - New - - - - - Save - - - - - Copy - - - - - Options - - - - - - Help - - - - - About - - - - - Quit - - - - - Screenshot - - - - - Double click to open screenshot in external default image viewer - - - - - - Hide - - - - - Show - - - - - %1 Files - - - - - Save As... - - - - - ModuleUploader - - - Upload the screenshot to the default image host - - - - - Uploading - - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - - - - - %1 x %2 pixels - - - - - QObject - - - External edit - - - - - Edit in... - - - - - Upload - - - - - Uploader - - - Direct link - - - - - HTML code - - - - - BB code - - - - - HTML code with thumb image - - - - - BB code with thumb image - - - - - URl to delete image - - - - - UploaderConfigWidget - - - Common settings - - - - - Default image host - - - - - Always copy the link to the clipboard - - - - - Hosts settings - - - - - Settings for: - - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - - - - - No settings available right now - - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - - - - - aboutWidget - - - About Qt - - - - - Close - - - - - configwidget - - - - Options - - - - - Main - - - - - Advanced - - - - - System tray - - - - - Shortcuts - - - - - Default save directory - - - - - Path to default selection dir for saving - - - - - Browse filesystem - - - - - Browse - - - - - Default file - - - - - Name: - - - - - Default filename - - - - - Format - - - - - Default saving image format - - - - - Copy file name to the clipboard when saving - - - - - Do not copy - - - - - Copy file name only - - - - - Copy full file path - - - - - Image quality - - - - - Image quality (1 - small file, 100 - high quality) - - - - - Inserting current date time into saved filename - - - - - Insert current date and time in file name - - - - - Template: - - - - - Example: - - - - - Automatically saving screenshots in grabbing process - - - - - Autosave screenshot - - - - - Save first screenshot - - - - - Allow run multiplies copy of ScreenGrab - - - - - Allow multiple instances of ScreenGrab - - - - - Open in external viewer on double click - - - - - Enable external viewer - - - - - Fit to edges only inside selected screen area - - - - - Fit to edges inside selected area - - - - - Show ScreenGrab in the system tray - - - - - Tray messages: - - - - - Tray messages display mode - - - - - Never - - - - - Tray mode - - - - - Always - - - - - Time of display tray messages - - - - - Time to display tray messages - - - - - sec - - - - - Minimize to tray on click close button - - - - - Minimize to tray when closing - - - - - Action - - - - - Shortcut - - - - - Global shortcuts - - - - - Full screen - - - - - Active window - - - - - Area select - - - - - Local shortcuts - - - - - New screen - - - - - Save screen - - - - - Copy screen - - - - - Help - - - - - Quit - - - - - Selected shortcut: - - - - - Not defined - - - - diff --git a/translations/screengrab_pt_BR.ts b/translations/screengrab_pt_BR.ts deleted file mode 100644 index 8b68c96..0000000 --- a/translations/screengrab_pt_BR.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - usando o Qt - - - - About - Sobre - - - - Thanks - Agradecimentos - - - - It is a light and powerful application, written in Qt. - Essa é um aplicativo leve e poderoso, escrito em Qt. - - - - Website - Site - - - - Licensed under the - Licenciado sob a - - - - Help us - Ajude-nos - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - - - - - What you can do? - O que você pode fazer? - - - - is a crossplatform application for fast creating screenshots of your desktop. - é uma aplicação crossplatform para criar rapidamente screenshots. - - - - You can join us and help us if you want. This is an invitation if you like this application. - Você pode se juntar a nós e ajudar se quiser. Isso é um convite se gostar do aplicativo. - - - - Translate ScreenGrab to other languages - Traduzir o ScreenGrab para outros idiomas - - - - Make suggestions for next releases - Faça sugestões para os próximos releases - - - - Report bugs and issues - Imformar bugs e problemas - - - - Bug tracker - Bugs - - - - Translate: - Tradução: - - - - Brazilian Portuguese translation - Tradução para o Português do Brasil - - - - Marcio Moraes - Ynsano - - - - Ukrainian translation - Tradução para o Ucraniano - - - - Gennadi Motsyo - - - - - Spanish translation - Tradução para o Espanhol - - - - Burjans L García D - - - - - Italian translation - Tradução para o Italiano - - - - Testing: - Teste: - - - - Dual monitor support and other in Linux - Suporte a Monitor Duplo e outros no Linux - - - - Dual monitor support in Linux - Suporte a Monitor Duplo no Linux - - - - win32-build [Windows XP and 7] - win32-build [Windows XP e 7] - - - - old win32-build [Windows Vista] - antigo win32-build [Windows Vista] - - - - win32-build [Windows 7] - win32-build [Windows 7] - - - - ConfigDialog - - - Select directory - Selecione o diretório - - - - - Warning - Atenção - - - - Directory %1 does not exist. Do you want to create it? - Diretório %1 não existe. Deseja criar? - - - - Do you want to reset the settings to the defaults? - Quer reiniciar as configurações para o padrão? - - - - Example: - Exemplo: - - - - This key is already used in your system! Please select another. - Essa tecla está em uso pelo sistema! Por favor selecione outra. - - - - This key is already used in ScreenGrab! Please select another. - Essa tecla está em uso pelo ScreenGrab! Por favor selecione outra. - - - - This key is not supported on your system! - Essa tecla não é suportada no seu sistema! - - - - Error - Erro - - - - Core - - - Saved - Salva - - - - Name of saved file is copied to the clipboard - Nome do arquivo salvo foi copiado para área de transferência - - - - Copied - Copiada - - - - Saved to - Salva em - - - - is a crossplatform application for fast creating screenshots of your desktop. - é uma aplicação crossplatform para criar rapidamente screenshots. - - - - Take a fullscreen screenshot - Tirar um screenshot da tela completa - - - - Take a screenshot of the active window - Tirar um screenshot da janela ativa - - - - Take a screenshot of a selection of the screen - Tirar um screenshot de uma área de seleção - - - - Run the application with a hidden main window - Iniciar o aplicativo com a janela principal escondida - - - - Path to saved file is copied to the clipboard - Caminho para o arquivo salvo foi copiado para a área de transferência - - - - Screenshot is copied to clipboard - A captura de tela foi copiada para a área de transferência - - - - DialogUploader - - - Upload to internet - Fazer upload - - - - Upload to - Upload para - - - - Direct link: - Link direto: - - - - - Open this link in the default web-browser - Abrir este link no navegador padrão - - - - - Open - Abrir - - - - - Copy this link to the clipboard - Copiar este link para a área de transferência - - - - - Copy - Copiar - - - - Extended preformed html or bb codes: - Código html ou bb: - - - - Link to delete image: - Link para deletar a imagem: - - - - Upload - Upload - - - - Cancel - Cancelar - - - - Size: - Tamanho: - - - - pixel - pixel - - - - Uploaded - Enviado - - - - - Ready to upload - Pronto para enviar - - - - Upload processing... Please wait - Enviando... Aguarde - - - - Receiving a response from the server - Recebendo resposta do servidor - - - - Upload completed - Upload completo - - - - - Close - Fechar - - - - Error uploading screenshot - Erro ao enviar screenshot - - - - Error - Erro - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Abrir esse link no seu navegador padrão, pode apagar sua imagem, sem nenhum aviso. - - - - Are you sure you want to continue? - Tem certeza que quer continuar? - - - - MainWindow - - - ScreenGrab - - - - - Type: - Tipo: - - - - Type of screenshot - Tipo de captura de tela - - - - Full screen - Tela cheia - - - - Window - Janela - - - - Screen area - Área da tela - - - - Last selected area - Ultima área selecionada - - - - Delay: - Atraso: - - - - Zoom area around mouse - Dar Zoom na área em volta do mouse - - - - No window decoration - Nenhuma decoração da janela - - - - Include mouse pointer - Incluir seta do mouse - - - - toolBar - Barra de ferramentas - - - - Delay in seconds before taking screenshot - Atrasar em segundos antes de obter a captura de tela - - - - sec - seg - - - - Options - Opções - - - - - Help - Ajuda - - - - Quit - Sair - - - - Save - Salvar - - - - New - Nova - - - - Copy - Copiar - - - - Double click to open screenshot in external default image viewer - Duplo clique para abrir screenshot no visualizador de imagens padrão - - - - - Hide - Ocultar - - - - %1 Files - %1 Arquivos - - - - About - Sobre - - - - Screenshot - Screenshot - - - - None - Nenhum - - - - Show - Exibir - - - - Save As... - Salvar Como... - - - - ModuleUploader - - - Upload the screenshot to the default image host - Carregar o screenshot para o site de imagens padrão - - - - Uploading - Carregando - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Use o mouse para desenhar um retângulo na tela ou sair pressionando -qualquer tecla ou usando os botões direito ou do meio do mouse. - - - - %1 x %2 pixels - %1 x %2 pixels - - - - QObject - - - External edit - Editar - - - - Edit in... - Editar em... - - - - Upload - Enviar - - - - Uploader - - - Direct link - Link Direto - - - - HTML code - Código HTML - - - - BB code - Código BB - - - - HTML code with thumb image - Código HTML com miniatura - - - - BB code with thumb image - Código BB com miniatura - - - - URl to delete image - URL para deletar a imagem - - - - UploaderConfigWidget - - - Common settings - Configurações - - - - Default image host - Site de imagens padrão - - - - Always copy the link to the clipboard - Sempre copiar o link para a área de transferência - - - - Hosts settings - Configurações de site - - - - Settings for: - Configurações para: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Configurações para upload em imgur.com - - - - No settings available right now - Sem configurações disponíveis no momento - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Upload para Imgur - - - - aboutWidget - - - About Qt - Sobre o QT - - - - Close - Fechar - - - - configwidget - - - - Options - Opções - - - - Default saving image format - Salvando imagem no formato padrão - - - - Inserting current date time into saved filename - Inserindo data atual no nome do arquivo salvo - - - - Insert current date and time in file name - Inserir data e hora no nome do arquivo - - - - Autosave screenshot - Salvar automaticamente a captura de tela - - - - Save first screenshot - Salvar primeiro a captura de tela - - - - Image quality - Qualidade da imagem - - - - Image quality (1 - small file, 100 - high quality) - Qualidade da imagem (1 - arquivo menor, 100 - maior qualidade) - - - - Allow run multiplies copy of ScreenGrab - Permitir vários ScreenGrab rodando ao mesmo tempo - - - - Enable external viewer - Habilitar visualizador externo - - - - Fit to edges only inside selected screen area - Ajustar somente dentro da área selecionada - - - - Fit to edges inside selected area - Ajustar às bordas dentro da área selecionada - - - - Show ScreenGrab in the system tray - Mostrar ScreenGrab na bandeja do sistema - - - - Minimize to tray on click close button - Minimizar para a bandeja quando clicar em fechar - - - - Minimize to tray when closing - Minimizar para a bandeja quando fechar - - - - Action - Ação - - - - Global shortcuts - Atalhos globais - - - - Active window - Janela ativa - - - - Area select - Selecionar área - - - - Local shortcuts - Atalhos locais - - - - New screen - Nova tela - - - - Save screen - Salvar tela - - - - Copy screen - Copiar tela - - - - Help - Ajuda - - - - Not defined - Não definida - - - - Main - Principal - - - - System tray - Bandeja do sistema - - - - Path to default selection dir for saving - Caminho do diretório padrão para salvar - - - - Browse filesystem - Navegar no sistema de arquivos - - - - Browse - Procurar - - - - Default filename - Nome do arquivo padrão - - - - Format - Formato - - - - Copy file name to the clipboard when saving - Copiar nome do arquivo para área de transferência quando salvar - - - - Do not copy - Não copiar - - - - Copy file name only - Copiar somente nome do arquivo - - - - Copy full file path - Copiar caminho completo do arquivo - - - - sec - seg - - - - Advanced - Avançado - - - - Default save directory - Diretório padrão - - - - Default file - Arquivo padrão - - - - Name: - Nome: - - - - Template: - Modelo: - - - - Example: - Exemplo: - - - - Automatically saving screenshots in grabbing process - Salvar automaticamente capturas de telas no processo de captura - - - - Tray messages: - Mensagens na área de notificação: - - - - Tray messages display mode - Modo de exibição das mensagens na área de notificação - - - - Never - Nunca - - - - Tray mode - Modo da área de notificação - - - - Always - Sempre - - - - Time of display tray messages - Tempo de exibição das mensagens na área de notificação - - - - Time to display tray messages - Tempo para exibir as mensagens na área de notificação - - - - Shortcuts - Atalhos - - - - Allow multiple instances of ScreenGrab - Permitir múltiplas instâncias do ScreenGrab - - - - Open in external viewer on double click - Clique duplo abre visualizador externo - - - - Shortcut - Atalho - - - - Full screen - Tela cheia - - - - Quit - Sair - - - - Selected shortcut: - Atalho selecionado: - - - diff --git a/translations/screengrab_ru.desktop b/translations/screengrab_ru.desktop deleted file mode 100644 index 32cf956..0000000 --- a/translations/screengrab_ru.desktop +++ /dev/null @@ -1,3 +0,0 @@ -# Translations -Comment[ru]=Программа для создания снимков экрана -GenericName[ru]=Создание снимков экрана diff --git a/translations/screengrab_ru.ts b/translations/screengrab_ru.ts deleted file mode 100644 index 0b637d2..0000000 --- a/translations/screengrab_ru.ts +++ /dev/null @@ -1,964 +0,0 @@ - - - - - AboutDialog - - - using Qt - использует Qt - - - - About - О программе - - - - Thanks - Благодарности - - - - It is a light and powerful application, written in Qt. - Это легкое и мощное приложение, написанное на Qt. - - - - Website - Сайт - - - - Licensed under the - Лицензировано по - - - - Help us - Помощь проекту - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Copyright &copy; 2009-2013, Артём 'DOOMer' Галичкин - - - - What you can do? - Чем можно помочь? - - - - is a crossplatform application for fast creating screenshots of your desktop. - кроссплатформенное приложение для быстрого создания снимков вашего рабочего стола. - - - - You can join us and help us if you want. This is an invitation if you like this application. - Если хотите, вы можете присоединиться к нам и помочь. Это приглашение, если вам понравилось приложение. - - - - Translate ScreenGrab to other languages - Перевести ScreenGrab на другие языки - - - - Make suggestions for next releases - Выразить пожелания для следующих выпусков - - - - Report bugs and issues - Сообщать об ошибках в работе приложения - - - - Bug tracker - Баг-трекер - - - - Translate: - Переводы: - - - - Brazilian Portuguese translation - Бразильская Португальская локализация - - - - Marcio Moraes - - - - - Ukrainian translation - Украинская локализация - - - - Gennadi Motsyo - Геннадий Моцьо - - - - Spanish translation - Испанская локализация - - - - Burjans L García D - - - - - Italian translation - Итальянская локализация - - - - Testing: - Тестирование: - - - - Dual monitor support and other in Linux - Поддержка работы на двух мониторах и другие тесты в Linux - - - - Dual monitor support in Linux - Поддержка работы на двух мониторах в Linux - - - - win32-build [Windows XP and 7] - win32-версии [Windows XP and 7] - - - - old win32-build [Windows Vista] - Ранние win32-версии [Windows Vista] - - - - win32-build [Windows 7] - win32-версии [Windows 7] - - - - ConfigDialog - - - Select directory - Выбрать каталог - - - - - Warning - Предупреждение - - - - Directory %1 does not exist. Do you want to create it? - Каталог %1 не существует. Вы хотите создать его? - - - - Do you want to reset the settings to the defaults? - Сбросить настройки на настройки по умолчанию? - - - - Example: - Пример: - - - - This key is already used in your system! Please select another. - Эта комбинация уже используется в вашей системе! Выберите другую. - - - - This key is already used in ScreenGrab! Please select another. - Эта комбинация уже используется в ScreenGrab! Выберите другую. - - - - This key is not supported on your system! - Эта комбинация не поддерживается вашей системой! - - - - Error - Ошибка - - - - Core - - - Saved - Сохранено - - - - Name of saved file is copied to the clipboard - Имя сохранённого файла скопировано в буфер обмена - - - - Copied - Скопировано - - - - Saved to - Сохранено в - - - - is a crossplatform application for fast creating screenshots of your desktop. - кроссплатформенное приложение для быстрого создания снимков вашего рабочего стола. - - - - Take a fullscreen screenshot - Сделать снимок всего экрана - - - - Take a screenshot of the active window - Сделать снимок активного окна - - - - Take a screenshot of a selection of the screen - Сделать снимок выбранной области экрана - - - - Run the application with a hidden main window - Запустить приложение со скрытым главным окном - - - - Path to saved file is copied to the clipboard - Путь к сохранённому файлу скопирован в буфер обмена - - - - Screenshot is copied to clipboard - Скриншот скопирован в буфер обмена - - - - DialogUploader - - - Upload to internet - Загрузить в интернет - - - - Upload to - Загрузить на - - - - Direct link: - Прямая ссылка: - - - - - Open this link in the default web-browser - Открыть эту ссылку в браузере по умолчанию - - - - - Open - Открыть - - - - - Copy this link to the clipboard - Копировать эту ссылку в буфер обмена - - - - - Copy - Копировать - - - - Extended preformed html or bb codes: - Предварительно отформатированный html и bb-код: - - - - Link to delete image: - Ссылка на удаление изображения: - - - - Upload - Загрузить - - - - Cancel - Отмена - - - - - Close - Закрыть - - - - Size: - Размер: - - - - pixel - пикс - - - - Uploaded - Загружено - - - - - Ready to upload - Готово к загрузке - - - - Upload processing... Please wait - Происходит загрузка... Подождите пожалуйста - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - Открыть эту ссылку в вашем браузере по умолчанию, это может удалить загруженное вами изображение без предупреждений. - - - - Receiving a response from the server - Получение ответа от сервера - - - - Upload completed - Загрузка завершена - - - - Error uploading screenshot - Ошибка загрузки скриншота - - - - Error - Ошибка - - - - Are you sure you want to continue? - Вы действительно хотите продолжить? - - - - MainWindow - - - Screenshot - Скриншот - - - - Quit - Выход - - - - Save - Сохранить - - - - New - Новый - - - - Copy - Копировать - - - - Double click to open screenshot in external default image viewer - Двойной щелчёк откроет снимок экрана во внешнем просмотрщике - - - - - Hide - Скрыть окно - - - - About - О программе - - - - Options - Настройки - - - - None - Нет - - - - Show - Показать окно - - - - %1 Files - %1 Файлы - - - - Save As... - Сохранить как... - - - - ScreenGrab - - - - - Type: - Тип: - - - - Type of screenshot - Тип скриншота - - - - Full screen - Весь экран - - - - Window - Окно - - - - Screen area - Область экрана - - - - Last selected area - Последняя выбранная область - - - - Delay: - Задержка: - - - - Zoom area around mouse - Приблизить область вокруг мыши - - - - No window decoration - Без декораций окна - - - - Include mouse pointer - Включить указатель мыши - - - - toolBar - Панель - - - - Delay in seconds before taking screenshot - Задержка в секундах перед получением скриншота - - - - sec - сек - - - - - Help - Справка - - - - ModuleUploader - - - Upload the screenshot to the default image host - Загрузить снимок экрана в хранилище изображений по умолчанию - - - - Uploading - Загружается - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Используйте левую клавишу мыши для выделения области экрана. -Клавиатурные клавиши и правая кнопка мыши отменяют режим выделения области. - - - - %1 x %2 pixels - %1 x %2 пикс - - - - QObject - - - External edit - Внешний редактор - - - - Edit in... - Открыть в ... - - - - Upload - Загрузить - - - - Uploader - - - Direct link - Прямая ссылка - - - - HTML code - HTML-код - - - - BB code - BB-код - - - - HTML code with thumb image - HTML-код с превью-изображением - - - - BB code with thumb image - BB-код с превью-изображением - - - - URl to delete image - URL для удаления изображения - - - - UploaderConfigWidget - - - Common settings - Общие настройки - - - - Default image host - Хостинг изображений -по умолчанию - - - - Always copy the link to the clipboard - Всегда копировать ссылку в буфер обмена - - - - Hosts settings - Настройки сервисов - - - - Settings for: - Настройки для: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Настройки для загрузки на imgur.com - - - - No settings available right now - Нет доступных настроек - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - Загрузить на Imgur - - - - aboutWidget - - - About Qt - О библиотеке Qt - - - - Close - Закрыть - - - - configwidget - - - - Options - Настройки - - - - Default saving image format - Формат скриншотов по умолчанию - - - - Inserting current date time into saved filename - Вставка даты и времени в имя сохраняемого файла - - - - Insert current date and time in file name - Добавить текущую дату и время к имени файла - - - - Autosave screenshot - Австосохранение скриншота - - - - Save first screenshot - Сохранять первый скриншот - - - - Image quality - Качество изображения - - - - Image quality (1 - small file, 100 - high quality) - Качество изображения (1 - меньший размер файла, 100 - лучшее качество) - - - - Allow run multiplies copy of ScreenGrab - Разрешить запускать несколько копий ScreenGrab - - - - Enable external viewer - Использовать внешний просмотрщик - - - - Fit to edges only inside selected screen area - Если используются несколько экранов, обрезать выбранную область по краям текущего экрана - - - - Fit to edges inside selected area - Обрезать область по размерам текущего экрана - - - - Show ScreenGrab in the system tray - Показывать ScreenGrab в системном трее - - - - Minimize to tray on click close button - Сворачивает в трей по клику на кнопку закрытия - - - - Minimize to tray when closing - Сворачивать в трей при закрытии - - - - Action - Действие - - - - Global shortcuts - Глобальные комбинации - - - - Active window - Активное окно - - - - Area select - Выбранная область - - - - Local shortcuts - Внутренние комбинации - - - - New screen - Новый скриншот - - - - Save screen - Сохранить скриншот - - - - Copy screen - Копировать скриншот - - - - Help - Справка - - - - Not defined - Не определена - - - - Main - Основные - - - - System tray - Системный трей - - - - Path to default selection dir for saving - Исходный каталог для сохраняемых файлов - - - - Browse filesystem - Обзор файловой системы - - - - Browse - Обзор - - - - Default filename - Имя файла по умолчанию - - - - Format - Формат - - - - Copy file name to the clipboard when saving - Копировать имя файла в буфер обмена при сохранении - - - - Do not copy - Не копировать - - - - Copy file name only - Копировать только имя файла - - - - Copy full file path - Копировать полный путь файла - - - - sec - сек - - - - Advanced - Расширенные - - - - Default save directory - Каталог для сохранения по умолчанию - - - - Default file - Файл по умолчанию - - - - Name: - Имя: - - - - Template: - Шаблон: - - - - Example: - Пример: - - - - Automatically saving screenshots in grabbing process - Автоматическое сохранение скриншотов при их получении - - - - Tray messages: - Всплывающие уведомления: - - - - Tray messages display mode - Режим отображения всплывающих уведомлений - - - - Never - Никогда - - - - Tray mode - Если свёрнуто - - - - Always - Всегда - - - - Shortcuts - Комбинации клавиш - - - - Allow multiple instances of ScreenGrab - Разрешить несколько копий ScreenGrab - - - - Open in external viewer on double click - Открывать во внешнем просмотрщике по двойному щелчку - - - - Shortcut - Клавиши - - - - Full screen - Весь экран - - - - Quit - Выход - - - - Selected shortcut: - Выбранная комбинация: - - - - Time of display tray messages - Время отображения всплывающих уведомлений - - - - Time to display tray messages - Время отображения всплывающих уведомлений - - - diff --git a/translations/screengrab_uk.desktop b/translations/screengrab_uk.desktop deleted file mode 100644 index eb285c3..0000000 --- a/translations/screengrab_uk.desktop +++ /dev/null @@ -1,3 +0,0 @@ -# Translations -Comment[uk]=Програма для створення знімків екрану -GenericName[uk]=Створення знімків екрану diff --git a/translations/screengrab_uk.ts b/translations/screengrab_uk.ts deleted file mode 100644 index 0281ec8..0000000 --- a/translations/screengrab_uk.ts +++ /dev/null @@ -1,963 +0,0 @@ - - - - - AboutDialog - - - using Qt - використовує Qt - - - - About - Про програму - - - - Thanks - Подяки - - - - It is a light and powerful application, written in Qt. - Це легка та потужна програма, що написана на Qt. - - - - Website - Вебсайт - - - - Licensed under the - За ліцензією - - - - Help us - Допомога проекту - - - - Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin - Авторські права &copy; 2009-2013, Артем 'DOOMer' Галічкін - - - - What you can do? - Чим можна допомогти? - - - - is a crossplatform application for fast creating screenshots of your desktop. - ця мультиплатформова програма створена для швидкого отримання знімків Вашого робочого столу. - - - - You can join us and help us if you want. This is an invitation if you like this application. - Ви можете приєднатись і допомогти нам (якщо бажаєте). Відгукніться на це запрошення, якщо Вам сподобалась ця програма. - - - - Translate ScreenGrab to other languages - Перекласти ScreenGrab на інші мови - - - - Make suggestions for next releases - Надати побажання для майбутніх релізів - - - - Report bugs and issues - Повідомляти про помилки та несправну роботу - - - - Bug tracker - Баг-трекер - - - - Translate: - Переклади: - - - - Brazilian Portuguese translation - Бразильський португальський переклад - - - - Marcio Moraes - - - - - Ukrainian translation - Український переклад - - - - Gennadi Motsyo - Генадій Моцьо - - - - Spanish translation - Іспанський переклад - - - - Burjans L García D - Гарсія Бурянс Д - - - - Italian translation - Італійський переклад - - - - Testing: - Тестування: - - - - Dual monitor support and other in Linux - Двомоніторну підтримку та інші тести в Linux - - - - Dual monitor support in Linux - Двомоніторну підтримку в Linux - - - - win32-build [Windows XP and 7] - win32-версії [Windows XP and 7] - - - - old win32-build [Windows Vista] - Ранні win32-версії [Windows Vista] - - - - win32-build [Windows 7] - win32-версії [Windows 7] - - - - ConfigDialog - - - Select directory - Вибір теки - - - - - Warning - Попередження - - - - Directory %1 does not exist. Do you want to create it? - - - - - Do you want to reset the settings to the defaults? - - - - - Example: - Приклад: - - - - This key is already used in your system! Please select another. - - - - - This key is already used in ScreenGrab! Please select another. - - - - - This key is not supported on your system! - Ця комбінація не підтримується вашою системою! - - - - Error - Помилка - - - - Core - - - Saved - Збережено - - - - Name of saved file is copied to the clipboard - Ім'я збереженого файлу скопійовано в буфер обміну - - - - Copied - Скопійовано - - - - Saved to - Збережено до - - - - is a crossplatform application for fast creating screenshots of your desktop. - ця мультиплатформова програма створена для швидкого отримання знімків Вашого робочого столу. - - - - Take a fullscreen screenshot - - - - - Take a screenshot of the active window - - - - - Take a screenshot of a selection of the screen - - - - - Run the application with a hidden main window - - - - - Path to saved file is copied to the clipboard - - - - - Screenshot is copied to clipboard - Скріншот скопійовано до кишені - - - - DialogUploader - - - Upload to internet - Завантажити в інтернет - - - - Upload to - Завантажити до - - - - Direct link: - Пряме посилання: - - - - - Open this link in the default web-browser - - - - - - Open - - - - - - Copy this link to the clipboard - - - - - - Copy - Копіювати - - - - Extended preformed html or bb codes: - Попередньо відформатований html та bb-код: - - - - Link to delete image: - - - - - Upload - Завантажити - - - - Cancel - Відміна - - - - - Close - Закрити - - - - Size: - Розмір: - - - - pixel - піксель - - - - Uploaded - Завантажено - - - - - Ready to upload - Готово до завантаження - - - - Upload processing... Please wait - - - - - Receiving a response from the server - Отримання відповіді від сервера - - - - Upload completed - Завантаження завершено - - - - Error uploading screenshot - Помилка завантаження скріншота - - - - Error - Помилка - - - - Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings. - - - - - Are you sure you want to continue? - - - - - MainWindow - - - Screenshot - Скріншот - - - - Quit - Вихід - - - - Save - Зберегти - - - - New - Новий - - - - Copy - Копіювати - - - - Double click to open screenshot in external default image viewer - Двойной клик откроет скриншот во внешнем вьювере изображений - - - - - Hide - Сховати вікно - - - - About - Про програму - - - - Options - Налаштування - - - - None - Немає - - - - Show - Показати вікно - - - - %1 Files - - - - - Save As... - Зберегти як... - - - - ScreenGrab - - - - - Type: - - - - - Type of screenshot - Тип скріншоту - - - - Full screen - Весь екран - - - - Window - Вікно - - - - Screen area - Частина екрану - - - - Last selected area - - - - - Delay: - Затримка: - - - - Zoom area around mouse - - - - - No window decoration - Без декорацій вікна - - - - Include mouse pointer - - - - - toolBar - - - - - Delay in seconds before taking screenshot - Затримка в секундах перед отримання скріншоту - - - - sec - сек - - - - - Help - Довідка - - - - ModuleUploader - - - Upload the screenshot to the default image host - - - - - Uploading - - - - - QApplication - - - Use your mouse to draw a rectangle to screenshot or exit pressing -any key or using the right or middle mouse buttons. - Використовуйте ліву клавішу мишки для виділення частини екрану. -Клавіатурні клавіші і права кнопка мишки відміняють режим виділення області. - - - - %1 x %2 pixels - %1 x %2 піксел - - - - QObject - - - External edit - Зовнішнє редагування - - - - Edit in... - Редагувати в... - - - - Upload - Завантажити - - - - Uploader - - - Direct link - Пряме посилання - - - - HTML code - HTML-код - - - - BB code - BB-код - - - - HTML code with thumb image - HTML-код з попереднім переглядом - - - - BB code with thumb image - BB-код з попереднім переглядом - - - - URl to delete image - URL для видалення зображення - - - - UploaderConfigWidget - - - Common settings - Загальні налаштування - - - - Default image host - - - - - Always copy the link to the clipboard - - - - - Hosts settings - Налаштування сервісів - - - - Settings for: - Налаштування для: - - - - UploaderConfigWidget_ImgUr - - - Configuration for imgur.com upload - Налаштування для завантаження на imgur.com - - - - No settings available right now - - - - - Uploader_ImgUr_Widget - - - Upload to Imgur - - - - - aboutWidget - - - About Qt - Про Qt - - - - Close - Закрити - - - - configwidget - - - - Options - Налаштування - - - - Default saving image format - Формат зображень за замовчанням - - - - Inserting current date time into saved filename - Вставка дати та часу в ім'я файлу при збереженні - - - - Insert current date and time in file name - - - - - Autosave screenshot - Автозберігання скріншотів - - - - Save first screenshot - Зберігати перший скріншот - - - - Image quality - Якість картинки - - - - Image quality (1 - small file, 100 - high quality) - Якість картинки (1--меньшийрозмір файла, 100--найкраща якість) - - - - Allow run multiplies copy of ScreenGrab - - - - - Enable external viewer - Дозволити зовнішній переглядач - - - - Fit to edges only inside selected screen area - - - - - Fit to edges inside selected area - - - - - Show ScreenGrab in the system tray - - - - - Minimize to tray on click close button - - - - - Minimize to tray when closing - - - - - Action - Дія - - - - Global shortcuts - Глобальні - - - - Active window - Активне вікно - - - - Area select - Вибрану ділянку - - - - Local shortcuts - - - - - New screen - Новий скріншот - - - - Save screen - Зберегти скріншот - - - - Copy screen - Копіювати скріншот - - - - Help - Довідка - - - - Not defined - Не вибрана - - - - Main - Головні - - - - System tray - - - - - Path to default selection dir for saving - Шлях до теки для збереження - - - - Browse filesystem - Огляд файлової системи - - - - Browse - Огляд - - - - Default filename - Вихідне ім'я файлу - - - - Format - Формат - - - - Copy file name to the clipboard when saving - - - - - Do not copy - - - - - Copy file name only - - - - - Copy full file path - - - - - sec - сек - - - - Advanced - Розширені - - - - Default save directory - - - - - Default file - - - - - Name: - - - - - Template: - Шаблон: - - - - Example: - Приклад: - - - - Automatically saving screenshots in grabbing process - Автоматичне збереження скріншотів при їх отриманні - - - - Tray messages: - Спливаючі повідомлення: - - - - Tray messages display mode - Режим відображення спливаючих повідомлень - - - - Never - Ніколи - - - - Tray mode - Якщо згорнуто - - - - Always - Завжди - - - - Shortcuts - Комбінації клавіш - - - - Allow multiple instances of ScreenGrab - - - - - Open in external viewer on double click - - - - - Shortcut - Клавіші - - - - Full screen - Весь екран - - - - Quit - Вихід - - - - Selected shortcut: - Вибрана комбінація: - - - - Time of display tray messages - Час показу спливаючих повідомлень - - - - Time to display tray messages - Час показу спливаючих повідомлень - - -