parent
928c6278be
commit
786123caab
@ -1,16 +0,0 @@
|
||||
Upstream author:
|
||||
Artem Galichkin <doomer3d@gmail.com>
|
||||
|
||||
Contributors:
|
||||
Tonci Antunovic <tantunovic@gmail.com>
|
||||
Stef Binde <stef.binde@riseup.net>
|
||||
Alf Gaida <agaida@siduction.org>
|
||||
Jonathan Hooverman <jonathan.hooverman@gmail.com>
|
||||
Ilya87 <yast4ik@gmail.com>
|
||||
Tsu Jan <tsujan2000@gmail.com>
|
||||
Jerome Leclanche <jerome@leclan.ch>
|
||||
Paulo Lieuthier <paulolieuthier@gmail.com>
|
||||
Peter Mattern <pmattern@arcor.de>
|
||||
Luís Pereira <luis.artur.pereira@gmail.com>
|
||||
Thibaut Quentin <thibaut.quentin@laposte.net>
|
||||
Alexander Sokolov <sokoloff.a@gmail.com>
|
@ -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
|
@ -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")
|
@ -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
|
@ -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)
|
||||
|
||||
<a href="https://weblate.lxqt.org/projects/lxqt/screengrab/">
|
||||
<img src="https://weblate.lxqt.org/widgets/lxqt/-/screengrab/multi-auto.svg" alt="Translation status" />
|
||||
</a>
|
@ -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}")
|
@ -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 <fredrik@kde.org>
|
||||
# Copyright (c) 2008 Helio Chissini de Castro, <helio@kde.org>
|
||||
# Copyright (c) 2007 Matthias Kretz, <kretz@kde.org>
|
||||
#
|
||||
# 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)
|
@ -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 <fredrik@kde.org>
|
||||
# Copyright (c) 2013 Martin Gräßlin <mgraesslin@kde.org>
|
||||
#
|
||||
# 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)
|
@ -1,107 +0,0 @@
|
||||
#=============================================================================
|
||||
# The lxqt_translate_desktop() function was copied from the the
|
||||
# LXQt LxQtTranste.cmake
|
||||
#
|
||||
# Original Author: Alexander Sokolov <sokoloff.a@gmail.com>
|
||||
#
|
||||
# funtion lxqt_translate_desktop(_RESULT
|
||||
# SOURCES <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}_<lang>${_fileExt}'\n"
|
||||
"echo ''\n"
|
||||
)
|
||||
|
||||
endforeach()
|
||||
|
||||
set(${_RESULT} ${__result} PARENT_SCOPE)
|
||||
endfunction(lxqt_translate_desktop)
|
@ -1,129 +0,0 @@
|
||||
#=============================================================================
|
||||
# Copyright 2014 Luís Pereira <luis.artur.pereira@gmail.com>
|
||||
#
|
||||
# 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 <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()
|
@ -1,49 +0,0 @@
|
||||
#=============================================================================
|
||||
# Copyright 2014 Luís Pereira <luis.artur.pereira@gmail.com>
|
||||
#
|
||||
# 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(<source_files> <translations_dir> <catalog_name>)
|
||||
#
|
||||
# Output:
|
||||
# <source_files> Appends the generated file to this variable.
|
||||
#
|
||||
# Input:
|
||||
# <translations_dir> Full path name to the translations dir.
|
||||
# <catalog_name> 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()
|
@ -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 <QCoreApplication>
|
||||
#include <QLocale>
|
||||
#include <QTranslator>
|
||||
#include <QLibraryInfo>
|
||||
|
||||
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)
|
@ -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;
|
||||
}
|
@ -1,444 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title>ScreenGrab -- Fast creation of screenshots</title>
|
||||
<link href="../default.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<a name='main'></a>
|
||||
<div id="header">
|
||||
<h1>ScreenGrab</h1> <div id="version">version 1.0</div>
|
||||
<!--<h2>By DOOMer</h2>-->
|
||||
</div>
|
||||
<div id="menu">
|
||||
<ul>
|
||||
<li><a href="#main">Description</a></li>
|
||||
<li><a href="#usage">Usage</a></li>
|
||||
<li><a href="#license">License</a></li>
|
||||
<li><a href="#versions">Version history</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div id="left">
|
||||
<h2>ScreenGrab - fast creation of screenshots</h2>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
Main features:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Supports Linux & Windows</li>
|
||||
<li>Get desktop screenshots</li>
|
||||
<li>Get active window screenshots</li>
|
||||
<li>Get screenshots of selected desktop areas</li>
|
||||
<li>Copy screenshots into the clipboard</li>
|
||||
<li>Save your image files in PNG or JPEG format</li>
|
||||
<li>Ability to view and edit screenshots in an external editor</li>
|
||||
<li>Ability to upload screenshots to MediaCrush and imgur</li>
|
||||
<li>Ability to set delay before getting screenshots
|
||||
(from 1 to 90 seconds)</li>
|
||||
<li>Hide the main window (with recovery) at the time of the screenshot</li>
|
||||
<li>Ability to minimize ScreenGrab to the system tray, and
|
||||
control it via a context menu</li>
|
||||
<li>Getting screenshots using global shortcuts</li>
|
||||
<li>Auto-save screenshot when captured</li>
|
||||
<li>Ability to insert the current date and time in the filename when saving it</li>
|
||||
</ul>
|
||||
|
||||
<a name='usage'></a>
|
||||
|
||||
<h2>Usage <a href='#main'>To start page</a></h2>
|
||||
<p>
|
||||
It is very simple.
|
||||
</p>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
Buttons in main window:
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>New Screen</b> [Ctrl+N] -- Take a new screenshot</li>
|
||||
<li><b>Save Screen</b> [Ctrl+S] -- Write a captured screenshot
|
||||
on your hard disk (in PNG or JPEG format).</li>
|
||||
<li><b>Copy Screen</b> [Ctrl+C] -- Copy a screenshot to the clipboard.</li>
|
||||
<!-- <li><b>Upload</b> - upload screenshots on several image hosting services, currently ScreenGrab supports <a href='http://mediacru.sh/' target='_blank'>mediacru.sh</a>, <a href='imgur.com/' target='_blank'>http://imgur.com</a> and <a href='http://imageshack.us/' target='_blank'>imageshack.us</a>, in the future, the list will be expanded.</li> -->
|
||||
<li><b>Edit in ...</b> -- Open and edit screenshots in an image editor.
|
||||
<br />
|
||||
<br />
|
||||
<u>NOTE:</u> In the current version for Microsoft Windows only MS Paint is supported.
|
||||
<br />
|
||||
<br />
|
||||
</li>
|
||||
<li><b>Options</b> [Ctrl+O] -- Show program options window.</li>
|
||||
<li><b>Help</b> [Ctrl+H] -- Access help and information about ScreenGrab, its developer and license.</li>
|
||||
<li><b>Quit</b> [Ctrl+Q] -- Exit ScreenGrab</li>
|
||||
</ul>
|
||||
<p>
|
||||
These buttons can be accessed via right-click on the ScreenGrab icon in the system tray menu as well.
|
||||
</p>
|
||||
<p>
|
||||
Additional controls, located in main window.
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Delay</b> -- Delay in seconds before grabbing the screen.</li>
|
||||
<li><b>Type</b> -- Type of grabbing [full screen
|
||||
or active window]. </li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>Main settings:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Default directory</b> -- Default directory to save screenshots</li>
|
||||
<li><b>Default filename</b> -- Default name of the saved file</li>
|
||||
<li><b>Format</b> -- Default saving image format (you can select other formats)</li>
|
||||
<li><b>No window decoration</b> -- Grab a screenshot of the active window without window decorations (only for Linux version).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>Advanced settings:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
|
||||
<li><b>Insert DateTime in filename</b> -- Insert date and time in the filename to be saved
|
||||
<br />
|
||||
<br />These expressions may be used for the date part of the format string:
|
||||
<br />
|
||||
<table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
|
||||
<thead><tr valign="top" class="qt-style"><th>Parameter</th><th>Output</th></tr></thead>
|
||||
<tr valign="top" class="odd"><td>d</td><td>Day as number without a leading zero (1 to 31)</td></tr>
|
||||
|
||||
<tr valign="top" class="even"><td>dd</td><td>Day as number with a leading zero (01 to 31)</td></tr>
|
||||
<tr valign="top" class="odd"><td>ddd</td><td>Abbreviated localized day name (e.g. 'Mon' to 'Sun'). </td></tr>
|
||||
<tr valign="top" class="even"><td>dddd</td><td>Long localized day name (e.g. 'Monday' to 'Sunday').</td></tr>
|
||||
<tr valign="top" class="odd"><td>M</td><td>Month as number without a leading zero (1-12)</td></tr>
|
||||
<tr valign="top" class="even"><td>MM</td><td>Month as number with a leading zero (01-12)</td></tr>
|
||||
|
||||
<tr valign="top" class="odd"><td>MMM</td><td>Abbreviated localized month name (e.g. 'Jan' to 'Dec'). </td></tr>
|
||||
<tr valign="top" class="even"><td>MMMM</td><td>Long localized month name (e.g. 'January' to 'December'). </td></tr>
|
||||
<tr valign="top" class="odd"><td>yy</td><td>Year as two digit number (00-99)</td></tr>
|
||||
<tr valign="top" class="even"><td>yyyy</td><td>Year as four digit number</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />These expressions may be used for the time part of the format string:
|
||||
<br />
|
||||
<table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
|
||||
<thead><tr valign="top" class="qt-style"><th>Parameter</th><th>Output</th></tr></thead>
|
||||
<tr valign="top" class="odd"><td>h</td><td>Hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)</td></tr>
|
||||
<tr valign="top" class="even"><td>hh</td><td>Hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)</td></tr>
|
||||
<tr valign="top" class="odd"><td>H</td><td>Hour without a leading zero (0 to 23, even with AM/PM display)</td></tr>
|
||||
|
||||
<tr valign="top" class="even"><td>HH</td><td>Hour with a leading zero (00 to 23, even with AM/PM display)</td></tr>
|
||||
<tr valign="top" class="odd"><td>m</td><td>Minute without a leading zero (0 to 59)</td></tr>
|
||||
<tr valign="top" class="even"><td>mm</td><td>Minute with a leading zero (00 to 59)</td></tr>
|
||||
<tr valign="top" class="odd"><td>s</td><td>Second without a leading zero (0 to 59)</td></tr>
|
||||
<tr valign="top" class="even"><td>ss</td><td>Second with a leading zero (00 to 59)</td></tr>
|
||||
<tr valign="top" class="odd"><td>z</td><td>Milliseconds without leading zeroes (0 to 999)</td></tr>
|
||||
|
||||
<tr valign="top" class="even"><td>zzz</td><td>Milliseconds with leading zeroes (000 to 999)</td></tr>
|
||||
<tr valign="top" class="odd"><td>AP or A</td><td>Interpret as an AM/PM time. <i>AP</i> must be either "AM" or "PM".</td></tr>
|
||||
<tr valign="top" class="even"><td>ap or a</td><td>Interpret as an AM/PM time. <i>ap</i> must be either "am" or "pm".</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
</li>
|
||||
<li><b>Autosave screen</b> -- Automatically save
|
||||
the screenshot in the grab process</li>
|
||||
<li><b>Save first screenshot</b> -- enabled | disabled automatically saves the first screenshot, which is captured on program start</li>
|
||||
<li><b>Filenames to clipboard on saving</b> -- Send the name of the saved file to the clipboard . You can select these parameters:</li>
|
||||
<ul>
|
||||
<li><b>No copy</b> - The name of saved file will not be transferred to the clipboard.</li>
|
||||
<li><b>Only filename</b> - Send only the file name to the clipboard.</li>
|
||||
<li><b>Full path to file</b> - Send the full path to the file to the clipboard.</li>
|
||||
</ul>
|
||||
|
||||
<li><b>Allow multiple copies</b> -- Allow run multiple copies of ScreenGrab.</li>
|
||||
<li><b>Enable external viewer</b> -- Enable or disable the preview of the screenshot in the default image viewer (by double click on screenshot area in the main window).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>Display settings:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Save window size on exit</b> -- Save the current size of main window
|
||||
when exiting ScreenGrab (and restore it at next run)</li>
|
||||
<li><b>Zoom area around mouse in selection mode</b> -- Display the magnified area around the mouse pointer when receiving a screenshot of a selected area.</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>System tray settings:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Use tray</b> -- Use the notification area (system tray) of the operating system (desktop environment) for displaying messages and application management.</li>
|
||||
<li><b>Tray messages</b> -- Mode of displaying tray messages on grab|save events. Can be "none"
|
||||
or "if hidden" or "always"</li>
|
||||
<li><b>Time to display tray messages</b> -- Time within a specific notification is displayed </li>
|
||||
<li><b>Close in tray</b> -- Minimize the main window into the system tray
|
||||
by click on the close window button.</li>
|
||||
|
||||
</ul>
|
||||
<p>
|
||||
<u><b>Shortcut Settings:</b></u>
|
||||
</p>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
Local duplicate actions performed by pressing the button in the main window. They will only work when the ScreenGrab main window is active.
|
||||
</p>
|
||||
<p>
|
||||
Global shortcuts can be used the get a new screenshot when you have opened other application windows.
|
||||
</p>
|
||||
<p>
|
||||
<u><b>Command line parameters:</b></u>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>--fullscreen</b> -- Set the fullscreen mode [default].</li>
|
||||
<li><b>--active</b> -- Set the active window mode.</li>
|
||||
<li><b>--region</b> -- Set the screen region select mode.</li>
|
||||
<li><b>--minimized</b> -- Open ScreenGrab minimized in the tray (or taskbar, if tray is disabled).</li>
|
||||
<li><b>--upload</b> -- Automatically upload a screenshot to the selected image hosting service and display the direct link to the image after completion.</li>
|
||||
<li><b>--version</b> -- Display version information [Linux only].</li>
|
||||
<li><b>--help</b> -- Display command line parameters information [Linux only].</li>
|
||||
</ul>
|
||||
|
||||
<a name='license'></a>
|
||||
|
||||
<h2>License <a href='#main'>To start page</a></h2>
|
||||
<p>
|
||||
<strong>Copyright:</strong>
|
||||
</p>
|
||||
<p>
|
||||
Artem 'DOOMer' Galichkin <a href=mailto:doomer3d@gmail.com>doomer3d@gmail.com</a>
|
||||
</p>
|
||||
<p>
|
||||
<strong>License:</strong>
|
||||
</p>
|
||||
<p>
|
||||
ScreenGrab is a freeware licensed by <a href=http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
target=_blank>GNU General Public License version 2</a>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Thanks to:</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Translators:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li><strong>Marcio Moraes</strong> -- Brazilian Portuguese translation</li>
|
||||
<li><strong>Gennadi Motsyo</strong> -- Ukrainian translation</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Beta-testers:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li><strong>Alexantia</strong> </li>
|
||||
<li><strong>iNight</strong> </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
And all those who use ScreenGrab :)
|
||||
</p>
|
||||
<a name='versions'></a>
|
||||
<h2>Version history <a href='#main'>To start page</a></h2>
|
||||
<p>
|
||||
<strong>Version 1.2:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Added ability for autosaving type of the last created screenshot.</li>
|
||||
<li>Some small fixes.</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 1.1.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Fixed wrong 'imgur' uploading result string for bb-code with preview.</li>
|
||||
<li>Fixed segfault when exist configuration file contains "showTrayIcon=false".</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 1.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Added ability to upload to MediaCrush (http://mediacru.sh).</li>
|
||||
<li>Option "Always save the window size" replaced by "autosave window size on exit ScreenGrab".</li>
|
||||
<li>Reworked main window UI (the order of the buttons).</li>
|
||||
<li>Reworked the configuration dialog (some UI elements moved between sections, and increment count of the sections).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 1.0:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Fixed dual monitor support</li>
|
||||
<li>Added XDG_CONFIG_HOME support, by a build option SG_XDG_CONFIG_SUPPORT</li>
|
||||
<li>Added ability to upload to some image hosting services (imgur.com and imgshack.us)</li>
|
||||
<li>Added build option for compiling without the upload feature (SG_EXT_UPLOADS build option)</li>
|
||||
<li>Added "Previous selection" mode</li>
|
||||
<li>Added ability to edit a screenshot in an external editor</li>
|
||||
<li>Added option for preview screenshot in default image viewer by double click on screenshot area</li>
|
||||
<li>Fixed non-minimize main window on "Exit" shortcut, when using "Minimize to tray" option</li>
|
||||
<li>Fixed bug with cutting button text on main window</li>
|
||||
<li>Fixed regression with not capture screenshot when a second instance of ScreenGrab is running</li>
|
||||
<li>Fixed bug with not creating the path to autosave screenshots (when it is typed in manually in configuration dialog)</li>
|
||||
<li>Added build option SG_GLOBALSHORTCUTS for turning on/off build with global shortcuts support</li>
|
||||
<li>Autoincrement filenames when saving screenshots in manual mode (in one running session)</li>
|
||||
<li>Added the ability to customise shortcuts to close the application</li>
|
||||
<li>Added ability to run ScreenGrab minimized to tray (or taskbar, if tray is disabled) with "--minimized" command line option</li>
|
||||
<li>Added ability to automatically upload the screenshot via the command line "--upload" parameter</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 0.9.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Fixed non-switching combo-box "Type of Screeen" when grab screenshot from signal by another instance</li>
|
||||
<li>Fixed incorect grab active window screens in GNOME (when disabled "Allow multiple copies" option and run another instance) </li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 0.9:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>added global shortcuts </li>
|
||||
<li>added option for enable|disable system tray </li>
|
||||
<li>added switch to the already running instance of an application when you start a second instance (non-operating mode to allow multiple instances) </li>
|
||||
<li>added autosave first screenshot which has been taken on application start (enabled | disabled optional) </li>
|
||||
<li>redesign config dialog UI </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<p>
|
||||
<strong>Version 0.8.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>[Linux] fixed incorrect selection of the default saving format in the KDE 4.4.x save file dialog </li>
|
||||
<li>added de_DE translation</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 0.8:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>added command line parameters
|
||||
for grab modes (fullscren, active window, selection area) </li>
|
||||
<li>added BMP support </li>
|
||||
<li>added Brazilian Portuguese translation </li>
|
||||
<li>added automatically hiding main window on grab process </li>
|
||||
<li>[Linux] fixed grab active window screenshot without decorations </li>
|
||||
<li>[Linux] add option "no window decoration" </li>
|
||||
<li>added shortcuts for main window buttons </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Version 0.6.2 [Linux only]:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>fixed non-translated tray menu (closed issue #7) </li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 0.6.1 [Linux only]:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>fixed incorrect detection of the system language in some Linux distributions </li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 0.6:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>default value of hiding main window changed to true </li>
|
||||
<li>added input template for inserting date-time into the saved filename </li>
|
||||
<li>added zoom around mouse cursor in area selection mode </li>
|
||||
<li>small modifications of the configuration dialog </li>
|
||||
<li>added html help info (English & Russian) </li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>
|
||||
<strong>Version 0.5:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>added inserting date|time in saving filename [optional] </li>
|
||||
<li>added auto saving screenshots in grabbing process [option] </li>
|
||||
<li>added option to change the time of displaying tray messages [1 - 10 sec] </li>
|
||||
<li>added help info </li>
|
||||
<li>added tool tips for the UI elements </li>
|
||||
<li>small fixes config file syntax </li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
<strong>Version 0.4:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>added grabbing selection screen area </li>
|
||||
<li>added ability to copy image files into the clipboard </li>
|
||||
<li>added saving size of main window on exit [default is turned off] </li>
|
||||
<li>halve the memory size occupied by ScreenGrab at startup </li>
|
||||
<li>[win32] fixed bug with storing the screengrab.ini file </li>
|
||||
<li>change structure of some source code (work with config data) </li>
|
||||
<li>change buttons tab order of main window </li>
|
||||
<li>new application icon </li>
|
||||
<li>some fixes </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Version 0.3.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>fixed bug with non-displayed main window icon </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Version 0.3:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>main window is now based on ui-file (remaked UI) </li>
|
||||
<li>added grabbing active window </li>
|
||||
<li>added option to allow running multiple instances of ScreenGrab </li>
|
||||
<li>added option to select between minimizing to tray and closing
|
||||
(by close window button).</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Version 0.2:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>added JPEG support</li>
|
||||
<li>added options dialog</li>
|
||||
<li>added option to select a default directory for saving the files </li>
|
||||
<li>added option to select a default filename </li>
|
||||
<li>added option to select a default image format </li>
|
||||
<li>added saving options into INI-file</li>
|
||||
<li>added i18n support and Russian localisation</li>
|
||||
<li>some fixes and changes in code</li>
|
||||
<li>now available as installer (Windows) and deb packages (Ubuntu 9.04)</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 0.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>first public version</li>
|
||||
<li>added system tray icon and menu</li>
|
||||
<li>added option to hide ScreenGrab in systray </li>
|
||||
<li>added option to block running a second instance of ScreenGrab</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 0.0.3:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>first working build with minimal features.</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="footer">
|
||||
<p>Copyright © 2009 - 2013, <a href="http://mapper.ru/" class="link1">DOOMer</a></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,434 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title>ScreenGrab -- programa para captura rápida de imagens</title>
|
||||
<link href="../default.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<a name='main'></a>
|
||||
<div id="header">
|
||||
<h1>ScreenGrab</h1> <div id="version">versão 1.0</div>
|
||||
<!--<h2>By DOOMer</h2>-->
|
||||
</div>
|
||||
<div id="menu">
|
||||
<ul>
|
||||
<li><a href="#main">Descrição</a></li>
|
||||
<li><a href="#usage">Uso</a></li>
|
||||
<li><a href="#license">Licença</a></li>
|
||||
<li><a href="#versions">Histórico das versões</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div id="left">
|
||||
<h2>ScreenGrab - rápida criação de capturas de telas</h2>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
Principais características:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Funciona no Windows & Linux</li>
|
||||
<li>Obtém captura de telas do desktop</li>
|
||||
<li>Obtém captura de tela da janela ativa</li>
|
||||
<li>Obtém captura de tela de uma região do desktop</li>
|
||||
<li>Copia a captura de tela para a área de transferência</li>
|
||||
<li>Salva seus arquivos de imagens no formato PNG ou JPEG</li>
|
||||
<li>Ability to view and edit screenshots in an external editor</li>
|
||||
<li>Ability to upload screenshots on several image hostings (mediacru.sh, imgur.com)</li>
|
||||
<li>Habilidade em definir atraso ao obter as capturas de telas
|
||||
(de 1 até 90 segundos)</li>
|
||||
<li>Ocultando a janela principal (com recuperação) do
|
||||
ScreenGrab no momento da captura de tela</li>
|
||||
|
||||
<li>Habilidade para minimizar o programa para a área de notificação do sistema, e
|
||||
controlá-lo via menu de contexto</li>
|
||||
<li>Obtém a captura de tela usando atalhos globais</li>
|
||||
<li>Salva automaticamente a captura de tela ao ser recebido</li>
|
||||
<li>Habilidade de inserir data e hora no nome do arquivo e salvar</li>
|
||||
</ul>
|
||||
|
||||
<a name='usage'></a>
|
||||
|
||||
<h2>Uso <a href='#main'>Para o início da página</a></h2>
|
||||
<p>
|
||||
É muito simples.
|
||||
</p>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
Botões na janela principal:
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Nova tela</b> [Ctrl+N] -- obtém nova captura de tela.</li>
|
||||
<li><b>Salvar tela</b> [Ctrl+S] -- salva a captura da tela obtida no disco rígido (no formato PNG ou JPEG).</li>
|
||||
<li><b>Copiar tela</b> [Ctrl+C] -- copia tela para a área de transferência.</li>
|
||||
<li><b>Upload</b> - upload screenshots on several image hosting services, currently ScreenGrab supports <a href='http://mediacru.sh/' target='_blank'>mediacru.sh</a>, <a href='http://imgur.com/' target='_blank'>imgur.com</a> and <a href='http://imageshack.us/' target='_blank'>imageshack.us</a>, in the future, the list will be expanded.</li>
|
||||
<li><b>Edit in ...</b> - the ability to open (and edit) screenshots in an image editor.
|
||||
<br />
|
||||
<br />
|
||||
<u>NOTE:</u> In the current version for Microsoft Windows only MS Paint is supported.
|
||||
</li>
|
||||
<li><b>Opções</b> [Ctrl+O] -- mostra a janela de opções do programa.</li>
|
||||
<li><b>Ajuda</b> [Ctrl+H] -- exibe informações de ajuda e exibe informações sobre o ScreenGrab, desenvolvedor e licença.</li>
|
||||
<li><b>Sair</b> [Ctrl+Q] -- sai do programa.</li>
|
||||
</ul>
|
||||
<p>
|
||||
Estes botões também estão disponíveis no menu do programa na área de notficação do sistema.
|
||||
</p>
|
||||
<p>
|
||||
Controles adicionais, localizado na janela principal.
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Atraso</b> -- atrasa em segundos antes de capturar a tela.</li>
|
||||
<li><b>Tipo</b> -- tipo de obtenção [tela cheia
|
||||
ou janela ativa]. </li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>Configurações principais:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Diretório padrão</b> -- diretório padrão para salvar as capturas de telas.</li>
|
||||
<li><b>Nome do arquivo padrão</b> -- nome do arquivo salvo por padrão.</li>
|
||||
<li><b>Formato</b> -- padrão do formato da imagem salva (você pode selecionar outro formato ao salvar).</li>
|
||||
<li><b>Nenhuma decoração da janela</b> -- captura a janela ativa sem as decoraçãos da janela (only for linux version).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>Configurações avançadas:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Inserir Data/Hora no nome do arquivo</b> -- inseri data e hora no nome do arquivo salvo.
|
||||
<br />
|
||||
<br />Estas expressões podem ser utilizadas como parte dos caracteres do formato da data::
|
||||
<br />
|
||||
<table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
|
||||
<thead><tr valign="top" class="qt-style"><th>Saída das</th><th>expressões</th></tr></thead>
|
||||
<tr valign="top" class="odd"><td>d</td><td>o dia como número sem um zero à esquerda (1 a 31)</td></tr>
|
||||
|
||||
<tr valign="top" class="even"><td>dd</td><td>o dia como número com um zero à esquerda (01 a 31)</td></tr>
|
||||
<tr valign="top" class="odd"><td>ddd</td><td>o nome abreviado do dia localizado. (ex. 'Seg' a 'Dog')</td></tr>
|
||||
<tr valign="top" class="even"><td>dddd</td><td>o nome longo do dia localizado (ex. 'Segunda' a 'Domingo')</td></tr>
|
||||
<tr valign="top" class="odd"><td>M</td><td>o mês como número sem um zero à esquerda (1-12)</td></tr>
|
||||
<tr valign="top" class="even"><td>MM</td><td>o mês como número com um zero à esquerda (01-12)</td></tr>
|
||||
|
||||
<tr valign="top" class="odd"><td>MMM</td><td>o nome abrevido do mês localizado (ex. 'Jan' a 'Dez')</td></tr>
|
||||
<tr valign="top" class="even"><td>MMMM</td><td>o nome longo do mês localizado (ex. 'Janeiro' a 'Dezembro')</td></tr>
|
||||
<tr valign="top" class="odd"><td>yy</td><td>o ano como número de dois dígitos (00-99)</td></tr>
|
||||
<tr valign="top" class="even"><td>yyyy</td><td>o ano como número de quatro dígitos</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />Estas exepressões podem ser utilizadas como parte dos caracteres do formato da hora::
|
||||
<br /><br />
|
||||
<table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
|
||||
<thead><tr valign="top" class="qt-style"><th>Saída das</th><th>expressões</th></tr></thead>
|
||||
<tr valign="top" class="odd"><td>h</td><td>a hora sem um zero à esquerda (0 a 23 ou 1 a 12 se AM/PM for exibido)</td></tr>
|
||||
<tr valign="top" class="even"><td>hh</td><td>a hora com um zero à esquerda (00 a 23 ou 01 a 12 se AM/PM for exibido)</td></tr>
|
||||
<tr valign="top" class="odd"><td>H</td><td>a hora sem um zero à esquerda (0 a 23, até quando AM/PM for exibido)</td></tr>
|
||||
|
||||
<tr valign="top" class="even"><td>HH</td><td>a hora com um zero à esquerda (00 a 23, até quando AM/PM for exibido)</td></tr>
|
||||
<tr valign="top" class="odd"><td>m</td><td>o minuto sem um zero à esquerda (0 a 59)</td></tr>
|
||||
<tr valign="top" class="even"><td>mm</td><td>o minuto com um zero à esquerda (00 a 59)</td></tr>
|
||||
<tr valign="top" class="odd"><td>s</td><td>o segunddo sem um zero à esquerda (0 a 59)</td></tr>
|
||||
<tr valign="top" class="even"><td>ss</td><td>o segundo com um zero à esquerda (00 a 59)</td></tr>
|
||||
<tr valign="top" class="odd"><td>z</td><td>os milisegundos sem unz zeros à esquerda (0 a 999)</td></tr>
|
||||
|
||||
<tr valign="top" class="even"><td>zzz</td><td>os milisegundos com unz zeros à esquerda (000 a 999)</td></tr>
|
||||
<tr valign="top" class="odd"><td>AP ou A</td><td>interpreta com uma hora AM/PM. <i>AP</i> deve ser um "AM" or "PM"</td></tr>
|
||||
<tr valign="top" class="even"><td>ap ou a</td><td>interpreta com uma hora AM/PM. <i>ap</i> deve ser um "am" ou "pm"</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
</li>
|
||||
<li><b>Auto-salvar tela</b> -- salva automaticamente capturas de telas no processo de captura.</li>
|
||||
<li><b>Salvar a primeira captura de tela</b> -- habilitado | desabilitado automaticamente ao salvar a primeira captura de tela, que se obtém ao executar o programa.</li>
|
||||
<li><b>Filenames to clipboard on saving</b> - send to the clipboard name of the saved file. You can select these params:</li>
|
||||
<ul>
|
||||
<li><b>No copy</b> - the name of saved file will not be transferred to the clipboard.</li>
|
||||
<li><b>Only filename</b> - send to the clipboard only the file name.</li>
|
||||
<li><b>Full path to file</b> - send to the clipboard full path to the file.</li>
|
||||
</ul>
|
||||
<li><b>Permitir múltiplas instâncias</b> -- permite executar múltiplas instâncias do ScreenGrab.</li>
|
||||
<li><b>Enable external viewer</b> -- enable or disable ability for preview screenshot in default image viewer (by double click on screenshot area in main window).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>Exibir configurações:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Salvar o tamanho da janela ao sair</b> -- salva o tamanho da janela principal ao sair (e restaura na próxima execução).</li>
|
||||
<li><b>Zoom da área ao redor do mouse no modo de seleção</b> -- a capacidade de exibir a área ampliada em torno do ponteiro do mouse ao receber uma tela de área selecionada.</li>
|
||||
</ul>
|
||||
<p>
|
||||
<b><u>Configurações da área de notificação dos sistema:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>Usar a área de notificação</b> -- usar a área de notificação (system tray) do sistema operacional (ambiente de trabalho) para mostrar as mensagens e gerenciar o programa.
|
||||
<li><b>Mensagens na área de notificação</b> -- modo de exibir as mensagens na área de notificação ao tirar|salvar os eventos. Pode ser "nenhum" ou "ocultar" ou "sempre".</li>
|
||||
<li><b>Tempo de exibição das mensagens na área de notificação</b> -- tempo em que as mensagens são exibidas.</li>
|
||||
<li><b>Fechar para área de notificação</b> -- minimiza a janela principal para a área de notificação ao clicar no botão fechar da janela.</li>
|
||||
</ul>
|
||||
<p>
|
||||
<u><b>configurações dos atalhos:</u></b>
|
||||
</p>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
Atalhos globais podem ser usados para se obter uma nova captura de tela, ao trabalhar com outra aplicação no seu sistema operacional.
|
||||
</p>
|
||||
<p>
|
||||
<u><b>Parâmetros da linha de comando:</u></b>
|
||||
</p>
|
||||
<ul>
|
||||
<li><b>--fullscreen</b> -- define o modo tela cheia [padrão].</li>
|
||||
<li><b>--active</b> -- define o modo janela ativa.</li>
|
||||
<li><b>--region</b> -- define o modo selecionar área da tela.</li>
|
||||
<li><b>--minimized</b> -- run in minimized to the tray (or taskar, if tray is disabled).</li>
|
||||
<li><b>--upload</b> -- automatically uploading screenshot on selected image hosting. And display after it direct link to image.</li>
|
||||
<li><b>--version</b> -- exibe informações da versão {somente linux].</li>
|
||||
<li><b>--help</b> -- mostra informações dos parâmetros de linha de comando {somente linux].</li>
|
||||
</ul>
|
||||
|
||||
<a name='license'></a>
|
||||
|
||||
<h2>Licença <a href='#main'>Para o início da página</a></h2>
|
||||
<p>
|
||||
<strong>Copyright:</strong>
|
||||
</p>
|
||||
<p>
|
||||
Artem 'DOOMer' Galichkin <a href=mailto:doomer3d@gmail.com>doomer3d@gmail.com</a>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Licença:</strong>
|
||||
</p>
|
||||
<p>
|
||||
ScreenGrab é um freeware licenciado sob os termos da <a href=http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
target=_blank>Licença Pública Geral GNU versão 2</a>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Agradecimentos aos:</strong>:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Tradutores:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li><strong>Márcio Moraes</strong> -- Tradução para o Português do Brasil</strong> </li>
|
||||
<li><strong>Gennadi Motsyo</strong> -- Tradução para o Ucraniano</strong> </li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Beta-testers:</strong>
|
||||
<ul>
|
||||
<li><strong>Alexantia</strong> </li>
|
||||
<li><strong>iNight</strong> </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
E a todos aqueles que utilizam ScreenGrab :)
|
||||
</p>
|
||||
<a name='versions'></a>
|
||||
<h2>Histórico das versões <a href='#main'>Para o início da página</a></h2>
|
||||
<p>
|
||||
<strong>Versão 1.2:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Added ability for autosaving type of the last created screenshot.</li>
|
||||
<li>Some small fixes.</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 1.1.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Fixed wrong 'imgur' uploading result string for bb-code with preview.</li>
|
||||
<li>Fixed segfault when exist configuration file contains "showTrayIcon=false".</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Version 1.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Added ability to upload to MediaCrush (http://mediacru.sh).</li>
|
||||
<li>Option "Always save the window size" replaced by "autosave window size on exit ScreenGrab".</li>
|
||||
<li>Reworked main window UI (the order of the buttons).</li>
|
||||
<li>Reworked the configuration dialog (some UI elements moved between sections, and increment count of the sections).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Versão 1.0:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>Fixed dual monitor support</li>
|
||||
<li>Added XDG_CONFIG_HOME support, by a build option SG_XDG_CONFIG_SUPPORT</li>
|
||||
<li>Added ability to upload to some image hosts (imgur.com and imgshack.us)</li>
|
||||
<li>Added build option for compile without upload feature (SG_EXT_UPLOADS bulld option)</li>
|
||||
<li>Added "Previous selection" mode</li>
|
||||
<li>Added ability to edit screenshot in external editor</li>
|
||||
<li>Added option for preview screenshot in default image viewer by double click on screenshot area</li>
|
||||
<li>Fixed non-minimize main window on "Exit" shortcut, when use "Minimize to tray" option</li>
|
||||
<li>Fixed bug with cut button text on mainwindow</li>
|
||||
<li>Fixed regression with not capture screenshot when second instance running</li>
|
||||
<li>Fixed bug with not create path to autosave screenshots (when it is typed manually in configuration dialog)</li>
|
||||
<li>Added build option SG_GLOBALSHORTCUTS for turn on/off build with global shortcuts support</li>
|
||||
<li>Autoincrement filenames when saving screenshots in manual mode (in one running session)</li>
|
||||
<li>Added the ability to customize shortcut to close the application</li>
|
||||
<li>Added ability to run in minimized to tray (or taskar, if tray is disabled) with "--minimized" comand line option</li>
|
||||
<li>Added ability to automatically upload the screenshot via the command line "--upload" param</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Versão 0.9.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>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.</li>
|
||||
<li>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).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Versão 0.9:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>adicionados atalhos globais. </li>
|
||||
<li>adicionado a opção habilitar|desabilitar na área de notificação do sistema. </li>
|
||||
<li>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). </li>
|
||||
<li>adicionado salvar automaticmente a primeira captura de tela que foi obtida no início do programa (ocional habilitar | desabilitar). </li>
|
||||
<li>redesenhada a interface do diálogo de configuração. </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<p>
|
||||
<strong>Versão 0.8.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>[Linux] corrigido a incorreta seleção padrão ao salvar o formato no KDE 4.4.x no diálogo salvar arquivo. </li>
|
||||
<li>adicionada a tradução de_DE. </li>
|
||||
</ul>
|
||||
<p>
|
||||
<p>
|
||||
<strong>Versão 0.8:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>adicionado parâmetros de linha de comando
|
||||
para obtenção dos modos (tela cheia, janela ativa, área da seleção). </li>
|
||||
<li>adicionado o suporte a BMP. </li>
|
||||
<li>adicionado a tradução para o Português do Brasil. </li>
|
||||
<li>adicionado ocultando automaticamente janela principal no processo de captura. </li>
|
||||
<li>{linux] corrigido obtenção da captura da janela sem decorações. </li>
|
||||
<li>[linux] adicionado opção "sem decoração da janela". </li>
|
||||
<li>adicionado atalhos para os botões da janela principal. </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Versão 0.6.2 [Somente Linux]:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>corrigido o não traduzido menu da área de notificação (publicação fechada #7). </li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Versão 0.6.1 [Somente Linux]:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>corrido a incorreta detecção do idioma do sistema em algumas distribuições Linux. </li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Versão 0.6:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>o valor padrão de "ocultar janela principal" foi alterado para true (ativado).</li>
|
||||
<li>adicionado entrada modelo para inserir data-hora no nome do arquivo salvo.</li>
|
||||
<li>adicionado zoom ao redor do cursor do mouse no modo de seleção de área.</li>
|
||||
<li>pequena moficaição no diálogo de configuração.</li>
|
||||
<li>adicionado ajuda html em (inglês & russo).</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>
|
||||
<strong>Versão 0.5:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>adicionado inserir data|hora ao salvar nome do arquivo [opcional].</li>
|
||||
<li>adicionado auto salvar telas no processo de obtenção [opção].</li>
|
||||
<li>adicionado alterar tempo de exibição das mensagenas na área de notificação [1 - 10 src].</li>
|
||||
<li>adicionado informações de ajuda.</li>
|
||||
<li>adicionado dicas de ferramentas para os elementos UI.</li>
|
||||
<li>pequenas correções na sintaxe do arquivo de configuração.</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
<strong>Versão 0.4:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>adicionado obter região de uma área selecionada.</li>
|
||||
<li>adicionado copiar para a área de transferência.</li>
|
||||
<li>adicionado salvar tamanho da janela principal ao sair [padrão está desabilitado].</li>
|
||||
<li>decrementado em 2 tempos os volumes ocupados pela memória ao iniciar.</li>
|
||||
<li>[win32] falha corrigida com a localização de screengrab.ini.</li>
|
||||
<li>alterada estrutura de algumas linhas do código fonte (para trabalhar com configuração de data).</li>
|
||||
<li>alterada a ordem da aba dos botões da janela principal.</li>
|
||||
<li>novo ícone do programa.</li>
|
||||
<li>algumas correções.</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Versão 0.3.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>corrigida falha com a não exibição do ícone da janela principal.</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Versão 0.3:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>janela principal agora baseada no arquivo UI (recriado UI).</li>
|
||||
<li>adicionado captura da janela ativa.</li>
|
||||
<li>adicionado opção para permitir múltiplas instâncias do ScreenGrab.</li>
|
||||
<li>adicionado opção para selecionar entre minimiizar no área de notificação e fechar (botão fechar da janela).</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Versão 0.2:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>adicionado suporte a JPEG.</li>
|
||||
<li>adicionado diálogo de opções.</li>
|
||||
<li>adicionado configurações ao salvar diretório, nome do arquivo e formato da imagem por padrão.</li>
|
||||
<li>adicionado opções de salvar no arquivo INI.</li>
|
||||
<li>adicionado suporte a i18n e localização Russa.</li>
|
||||
<li>algumas correções e alterações no código.</li>
|
||||
<li>disponível agora com um instalador (Windows) e pacotes deb (ubuntu 9.04).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Versão 0.1:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>primeira versão pública.</li>
|
||||
<li>adicionado ícone e menu na área de notificação do sistema.</li>
|
||||
<li>adicionado ocultar na área de notificação do sistema.</li>
|
||||
<li>adicionado o bloqueio de uma segunda instância do programa.</li>
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Versão 0.0.3:</strong>
|
||||
</p>
|
||||
<ul>
|
||||
<li>primeira construção trabalhada com recursos mínimos.</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="footer">
|
||||
<p>Copyright © 2009 - 2013, <a href="http://mapper.ru/" class="link1">DOOMer</a></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 764 B |
@ -1,23 +0,0 @@
|
||||
[Base]
|
||||
CopyFilenameToClipboard=0
|
||||
autoSave=false
|
||||
autoSaveFirst=false
|
||||
defFilename=screen
|
||||
defImgFormat=jpg
|
||||
defScreenshotType=FullScreen
|
||||
delay=0
|
||||
imageQuality=80
|
||||
|
||||
[Display]
|
||||
showTrayIcon=true
|
||||
timeTrayMessages=5
|
||||
trayMessages=1
|
||||
windowHeight=533
|
||||
windowWidth=700
|
||||
zoomAroundMouse=false
|
||||
|
||||
[System]
|
||||
AllowCopies=true
|
||||
closeInTray=false
|
||||
enbaleExternalView=true
|
||||
fitInside=true
|
@ -1,12 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=ScreenGrab
|
||||
Comment=Screen capture
|
||||
GenericName=Screen Capture Program
|
||||
Exec=screengrab
|
||||
Icon=screengrab
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Graphics;RasterGraphics;Qt;
|
||||
X-KDE-StartupNotify=false
|
||||
|
||||
#TRANSLATIONS_DIR=translations
|
@ -1,6 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/res" >
|
||||
<file>img/trayicon.png</file>
|
||||
<file>img/logo.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
@ -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)
|
Before Width: | Height: | Size: 4.4 KiB |
@ -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
|
@ -1,5 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>img/delete_32.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
@ -1,578 +0,0 @@
|
||||
/******************************************************************************
|
||||
Copyright (c) 2010, Artem Galichkin <doomer3d@gmail.com>
|
||||
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 <organization> 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 <COPYRIGHT HOLDER> 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 <QEvent>
|
||||
#include <QKeyEvent>
|
||||
#include <QIcon>
|
||||
|
||||
#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<QKeySequenceWidget::ClearButtonShow>(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<QKeyEvent*>(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();
|
||||
}
|
||||
}
|
@ -1,127 +0,0 @@
|
||||
/******************************************************************************
|
||||
Copyright (c) 2010, Artem Galichkin <doomer3d@gmail.com>
|
||||
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 <organization> 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 <COPYRIGHT HOLDER> 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 <QWidget>
|
||||
#include <QIcon>
|
||||
|
||||
#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
|
@ -1,120 +0,0 @@
|
||||
/******************************************************************************
|
||||
Copyright (c) 2010, Artem Galichkin <doomer3d@gmail.com>
|
||||
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 <organization> 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 <COPYRIGHT HOLDER> 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 <QKeySequence>
|
||||
#include <QHBoxLayout>
|
||||
#include <QToolButton>
|
||||
#include <QPushButton>
|
||||
#include <QTimer>
|
||||
#include <QDebug>
|
||||
#include <QIcon>
|
||||
|
||||
#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
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "src/core/config.h"
|
||||
#include "core.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QStandardPaths>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QLocale>
|
||||
#include <QVector>
|
||||
#include <QDebug>
|
||||
|
||||
#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;
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
#include "shortcutmanager.h"
|
||||
|
||||
#include <QSettings>
|
||||
#include <QString>
|
||||
#include <QSize>
|
||||
#include <QHash>
|
||||
#include <QVariant>
|
||||
#include <QDateTime>
|
||||
|
||||
// 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<QString, QVariant> _confData;
|
||||
|
||||
ShortcutManager *_shortcuts;
|
||||
|
||||
int _scrNum; // screen num in session
|
||||
QDateTime _dateLastSaving;
|
||||
};
|
||||
|
||||
#endif // CONFIG_H
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <QMutex>
|
||||
#include <QWaitCondition>
|
||||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
#include <QScreen>
|
||||
#include <QChar>
|
||||
#include <QBuffer>
|
||||
#include <QFile>
|
||||
#include <QDir>
|
||||
#include <QUuid>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include <KF5/KWindowSystem/KWindowSystem>
|
||||
#include <xcb/xfixes.h>
|
||||
|
||||
#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>("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<QScreen *> 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<QScreen *> 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<NET::WindowTypeMask> 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<ModuleUploader*>(_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();
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
#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 <QObject>
|
||||
#include <QTimer>
|
||||
#include <QPixmap>
|
||||
#include <QClipboard>
|
||||
#include <QTime>
|
||||
#include <QByteArray>
|
||||
#include <QRect>
|
||||
#include <QProcess>
|
||||
#include <QX11Info>
|
||||
#include <QCommandLineParser>
|
||||
#include <QCommandLineOption>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
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<QCommandLineOption> _screenTypeOpts;
|
||||
|
||||
private Q_SLOTS:
|
||||
void regionGrabbed(bool grabbed);
|
||||
void closeExtViewer(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
|
||||
};
|
||||
|
||||
#endif // SCREENGRAB_H
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDBusInterface>
|
||||
#include <QDir>
|
||||
#include <QTimer>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#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<QVariant> n = prepareNotification(message);
|
||||
|
||||
if (!n.isEmpty()) {
|
||||
QDBusReply<uint> reply = _notifier->callWithArgumentList(QDBus::Block,"Notify",n);
|
||||
}
|
||||
|
||||
deleteLater();
|
||||
}
|
||||
|
||||
QList<QVariant> DBusNotifier::prepareNotification(const StateNotifyMessage& message)
|
||||
{
|
||||
QList<QVariant> 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;
|
||||
}
|
||||
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef DBUSNOTIFIER_H
|
||||
#define DBUSNOTIFIER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#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<QVariant> prepareNotification(const StateNotifyMessage& message);
|
||||
|
||||
QDBusInterface *_notifier;
|
||||
int _notifyDuration;
|
||||
QString _appIconPath;
|
||||
QString _previewPath;
|
||||
};
|
||||
|
||||
#endif // DBUSNOTIFIER_H
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "singleapp.h"
|
||||
#include "core/core.h"
|
||||
#include "ui/mainwindow.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
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();
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#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 <QDebug>
|
||||
|
||||
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<QMenu*> ModuleManager::generateModulesMenus(const QStringList &modules)
|
||||
{
|
||||
QList<QMenu*> 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<QAction*> ModuleManager::generateModulesActions(const QStringList &modules)
|
||||
{
|
||||
QList<QAction*> 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();
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MODULEMANAGER_H
|
||||
#define MODULEMANAGER_H
|
||||
|
||||
#include "modules/abstractmodule.h"
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QHash>
|
||||
#include <QMap>
|
||||
#include <QMenu>
|
||||
|
||||
#include <QAction>
|
||||
|
||||
const QByteArray MOD_UPLOADER = "uploader";
|
||||
const QByteArray MOD_EXT_EDIT = "extedit";
|
||||
|
||||
typedef QMap<QByteArray, AbstractModule*> ModuleList_t;
|
||||
|
||||
class ModuleManager
|
||||
{
|
||||
public:
|
||||
ModuleManager();
|
||||
void initModules();
|
||||
AbstractModule* getModule(const QByteArray& name);
|
||||
AbstractModule* getModule(const quint8 numid);
|
||||
QList<QMenu*> generateModulesMenus(const QStringList &modules = QStringList());
|
||||
QList<QAction*> generateModulesActions(const QStringList &modules = QStringList());
|
||||
quint8 count();
|
||||
|
||||
private:
|
||||
ModuleList_t *_modules;
|
||||
};
|
||||
|
||||
#endif // MODULEMANAGER_H
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "src/core/regionselect.h"
|
||||
|
||||
#include <QDesktopWidget>
|
||||
#include <QApplication>
|
||||
#include <QScreen>
|
||||
|
||||
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<QScreen *> 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<int> gradient = QVector<int>(normalDepth, 0);
|
||||
QVector<int> preR = QVector<int>(normalDepth + 1, 0);
|
||||
QVector<int> preG = QVector<int>(normalDepth + 1, 0);
|
||||
QVector<int> preB = QVector<int>(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();
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef REGIONSELECT_H
|
||||
#define REGIONSELECT_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
//#include <QDialog>
|
||||
#include <QWidget>
|
||||
|
||||
#include <QMouseEvent>
|
||||
#include <QPainter>
|
||||
#include <QPixmap>
|
||||
#include <QSize>
|
||||
#include <QPoint>
|
||||
|
||||
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<QRect> _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
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#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;
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SHORTCUTMANAGER_H
|
||||
#define SHORTCUTMANAGER_H
|
||||
|
||||
#include <QSettings>
|
||||
#include <QVector>
|
||||
#include <QStringList>
|
||||
#include <QKeySequence>
|
||||
|
||||
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<Shortcut> 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
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <QTimer>
|
||||
#include <QByteArray>
|
||||
|
||||
#include <QLocalSocket>
|
||||
#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;
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SINGLEAPP_H
|
||||
#define SINGLEAPP_H
|
||||
|
||||
#include <QApplication>
|
||||
#include <QSharedMemory>
|
||||
#include <QLocalServer>
|
||||
|
||||
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
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "about.h"
|
||||
#include "ui_aboutwidget.h"
|
||||
|
||||
#include "../core.h"
|
||||
#include <QDesktopServices>
|
||||
|
||||
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(" <b>") + qApp->applicationVersion() + QString("</b>"));
|
||||
|
||||
_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 += "<b>ScreenGrab</b> ";
|
||||
str += tr("is a crossplatform application for fast creating screenshots of your desktop.");
|
||||
str += "<br><br>";
|
||||
str += tr("It is a light and powerful application, written in Qt.");
|
||||
str += "<br><br>";
|
||||
|
||||
str += tr("Website")+" - ";
|
||||
str += "<a href=\"https://github.com/lxqt/screengrab\">https://github.com/lxqt/screengrab</a>";
|
||||
str += "<br><br>";
|
||||
|
||||
str += tr("Licensed under the ");
|
||||
str += " <a href=http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>GPL v2</a>";
|
||||
str += "<br><br>";
|
||||
|
||||
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 += "<br><br>";
|
||||
|
||||
str += tr("What you can do?");
|
||||
|
||||
str += "<ul>";
|
||||
str += "<li>" + tr("Translate ScreenGrab to other languages") + "</li>";
|
||||
str += "<li>" + tr("Make suggestions for next releases") + "</li>";
|
||||
str += "<li>" + tr("Report bugs and issues") + "</li>";
|
||||
str += "</ul>";
|
||||
|
||||
str += tr("Bug tracker");
|
||||
str += "<br>";
|
||||
str += "<a href=https://github.com/lxqt/screengrab/issues>https://github.com/lxqt/screengrab/issues/</a>";
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
QString AboutDialog::tabThanks()
|
||||
{
|
||||
QString str;
|
||||
str += "<b>" + tr("Translate:") + "</b>";
|
||||
str += "<br>";
|
||||
str += tr(" Brazilian Portuguese translation") + "<br>";
|
||||
str += tr("Marcio Moraes") + " <marciopanto@gmail.com><br>";
|
||||
str += "<br>";
|
||||
str += tr(" Ukrainian translation") + "<br>";
|
||||
str += tr("Gennadi Motsyo") + " <drool@altlinux.ru><br>";
|
||||
str += "<br>";
|
||||
str += tr(" Spanish translation") + "<br>";
|
||||
str += tr("Burjans L García D") + " <burjans@gmail.com><br>";
|
||||
str += "<br>";
|
||||
str += tr(" Italian translation") + "<br>";
|
||||
str += "speps <dreamspepser@yahoo.it><br>";
|
||||
str += "<br>";
|
||||
|
||||
str += "<b>" + tr("Testing:") + "</b>";
|
||||
str += "<br>";
|
||||
str += "Jerome Leclanche - " + tr("Dual monitor support and other in Linux") + "<br>";
|
||||
str += "Alexander Sokolov - " + tr("Dual monitor support in Linux") + "<br>";
|
||||
str += "Alexantia - " + tr("win32-build [Windows XP and 7]") + "<br>";
|
||||
str += "iNight - " + tr("old win32-build [Windows Vista]") + "<br>";
|
||||
str += "burjans - " + tr("win32-build [Windows 7]") + "<br>";
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
void AboutDialog::on_txtArea_anchorClicked(const QUrl &url)
|
||||
{
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ABOUT_H
|
||||
#define ABOUT_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTabBar>
|
||||
#include <QUrl>
|
||||
|
||||
|
||||
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
|
@ -1,167 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>aboutWidget</class>
|
||||
<widget class="QDialog" name="aboutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>559</width>
|
||||
<height>314</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>559</width>
|
||||
<height>314</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">About ScreenGrab</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetDefaultConstraint</enum>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="../../../screengrab.qrc">:/res/img/logo.png</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="labAppName">
|
||||
<property name="text">
|
||||
<string notr="true"><b>ScreenGrab</b></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labVersion">
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labQtVer">
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFrame" name="frame">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="_2">
|
||||
<item>
|
||||
<widget class="QTextBrowser" name="txtArea">
|
||||
<property name="openExternalLinks">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="openLinks">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QPushButton" name="butAboutQt">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>About Qt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="butClose">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Close</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../../../screengrab.qrc"/>
|
||||
<include location="../../../screengrab.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <QKeyEvent>
|
||||
|
||||
#include "configwidget.h"
|
||||
#include "ui_configwidget.h"
|
||||
#include "../core.h"
|
||||
|
||||
#ifdef SG_GLOBAL_SHORTCUTS
|
||||
#include <QxtGui/QxtGlobalShortcut>
|
||||
#endif
|
||||
|
||||
#include <QDir>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QTreeWidgetItem>
|
||||
#include <QTreeWidgetItemIterator>
|
||||
|
||||
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<QWidget*>(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();
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef CONFIGWIDGET_H
|
||||
#define CONFIGWIDGET_H
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTextCodec>
|
||||
#include <QDateTime>
|
||||
#include <QModelIndex>
|
||||
#include <QTreeWidgetItem>
|
||||
|
||||
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
|
@ -1,689 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>configwidget</class>
|
||||
<widget class="QWidget" name="configwidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>770</width>
|
||||
<height>335</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Options</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>160</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="textElideMode">
|
||||
<enum>Qt::ElideNone</enum>
|
||||
</property>
|
||||
<property name="isWrapping" stdset="0">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>QListView::Adjust</enum>
|
||||
</property>
|
||||
<property name="viewMode">
|
||||
<enum>QListView::ListMode</enum>
|
||||
</property>
|
||||
<property name="uniformItemSizes">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Main</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Advanced</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>System tray</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Shortcuts</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QStackedWidget" name="stackedWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="page_6">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>Default save directory</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editDir">
|
||||
<property name="toolTip">
|
||||
<string>Path to default selection dir for saving</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonBrowse">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Browse filesystem</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Browse</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_1">
|
||||
<property name="title">
|
||||
<string>Default file</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_14">
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||
<item>
|
||||
<widget class="QLabel" name="labFilename">
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editFileName">
|
||||
<property name="toolTip">
|
||||
<string>Default filename</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_9">
|
||||
<item>
|
||||
<widget class="QLabel" name="labFormat">
|
||||
<property name="text">
|
||||
<string>Format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxFormat">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Default saving image format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
||||
<property name="leftMargin">
|
||||
<number>4</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="labCopyFileName">
|
||||
<property name="text">
|
||||
<string>Copy file name to the clipboard when saving</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxCopyFileName">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Do not copy</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Copy file name only</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Copy full file path</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupQuality">
|
||||
<property name="title">
|
||||
<string>Image quality</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QSlider" name="slideImgQuality">
|
||||
<property name="toolTip">
|
||||
<string>Image quality (1 - small file, 100 - high quality)</string>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labImgQualityCurrent">
|
||||
<property name="text">
|
||||
<string notr="true">Current</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>298</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page_2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<property name="spacing">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
||||
<property name="leftMargin">
|
||||
<number>16</number>
|
||||
</property>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkIncDate">
|
||||
<property name="toolTip">
|
||||
<string>Inserting current date time into saved filename</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Insert current date and time in file name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||
<item>
|
||||
<widget class="QLabel" name="labMask">
|
||||
<property name="text">
|
||||
<string>Template: </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editDateTmeTpl">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>256</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labMaskExample">
|
||||
<property name="text">
|
||||
<string>Example: </string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAutoSave">
|
||||
<property name="toolTip">
|
||||
<string>Automatically saving screenshots in grabbing process</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Autosave screenshot</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_12">
|
||||
<property name="leftMargin">
|
||||
<number>16</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAutoSaveFirst">
|
||||
<property name="text">
|
||||
<string>Save first screenshot</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAllowCopies">
|
||||
<property name="toolTip">
|
||||
<string>Allow run multiplies copy of ScreenGrab</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Allow multiple instances of ScreenGrab</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbxEnableExtView">
|
||||
<property name="toolTip">
|
||||
<string>Open in external viewer on double click</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable external viewer</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkFitInside">
|
||||
<property name="toolTip">
|
||||
<string>Fit to edges only inside selected screen area</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Fit to edges inside selected area</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>66</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page_4">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_13">
|
||||
<property name="spacing">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkShowTray">
|
||||
<property name="text">
|
||||
<string>Show ScreenGrab in the system tray</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<widget class="QLabel" name="labTrayMessages">
|
||||
<property name="text">
|
||||
<string>Tray messages:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxTrayMsg">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Tray messages display mode</string>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Never</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Tray mode</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Always</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||
<item>
|
||||
<widget class="QLabel" name="labTimeTrayMess">
|
||||
<property name="text">
|
||||
<string>Time of display tray messages</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::PlainText</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="timeTrayMess">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Time to display tray messages</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string> sec</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>5</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkInTray">
|
||||
<property name="toolTip">
|
||||
<string>Minimize to tray on click close button</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Minimize to tray when closing</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page_5">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_14">
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="treeKeys">
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Action</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Shortcut</string>
|
||||
</property>
|
||||
</column>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Global shortcuts</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Full screen</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Active window</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Area select</string>
|
||||
</property>
|
||||
</item>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Local shortcuts</string>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>New screen</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Save screen</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Copy screen</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Options</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Quit</string>
|
||||
</property>
|
||||
</item>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||
<item>
|
||||
<widget class="QLabel" name="labUsedShortcut">
|
||||
<property name="text">
|
||||
<string>Selected shortcut:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QKeySequenceWidget" name="keyWidget" native="true">
|
||||
<property name="noneText" stdset="0">
|
||||
<string>Not defined</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Save</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QKeySequenceWidget</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>qkeysequencewidget.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "../core.h"
|
||||
#include "../shortcutmanager.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QFileDialog>
|
||||
#include <QDesktopWidget>
|
||||
#include <QHash>
|
||||
#include <QHashIterator>
|
||||
#include <QRegExp>
|
||||
#include <QTimer>
|
||||
#include <QToolButton>
|
||||
#include <QMenu>
|
||||
|
||||
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<QKeyEvent*>(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<QAction *> &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<QMenu *> &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<QAction*> 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<QDialog*>().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<QString, QString> 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<QString, QString>::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
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include "about.h"
|
||||
#include "configwidget.h"
|
||||
|
||||
#ifdef SG_GLOBAL_SHORTCUTS
|
||||
#include <QxtGui/QxtGlobalShortcut>
|
||||
#endif
|
||||
|
||||
#include <QMenu>
|
||||
#include <QSystemTrayIcon>
|
||||
#include <QDesktopServices>
|
||||
#include <QCloseEvent>
|
||||
#include <QShortcut>
|
||||
#include <QUrl>
|
||||
#include <QSignalMapper>
|
||||
|
||||
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<QAction *> &list);
|
||||
void updateModulesenus(const QList<QMenu *> &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<QxtGlobalShortcut*> _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
|
@ -1,261 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="ScreenGrab">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>640</width>
|
||||
<height>498</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>ScreenGrab</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="scrLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>600</width>
|
||||
<height>400</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>5</width>
|
||||
<height>5</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labTypeScr">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Type:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxTypeScr">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Type of screenshot</string>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Full screen</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Window</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Screen area</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Last selected area</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>5</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labDelay">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Delay:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="delayBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Delay in seconds before taking screenshot</string>
|
||||
</property>
|
||||
<property name="specialValueText">
|
||||
<string>None</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string> sec</string>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>90</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>5</width>
|
||||
<height>5</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<property name="spacing">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>5</width>
|
||||
<height>5</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkZommMouseArea">
|
||||
<property name="text">
|
||||
<string>Zoom area around mouse</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkNoDecoration">
|
||||
<property name="text">
|
||||
<string>No window decoration</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkIncludeCursor">
|
||||
<property name="text">
|
||||
<string>Include mouse pointer</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>5</width>
|
||||
<height>5</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="toolBar">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
</property>
|
||||
<property name="floatable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "x11utils.h"
|
||||
|
||||
#include <xcb/xfixes.h>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QPainter>
|
||||
|
||||
void X11Utils::compositePointer(int offsetX, int offsetY, QPixmap *snapshot)
|
||||
{
|
||||
Xcb::ScopedCPointer<xcb_xfixes_get_cursor_image_reply_t> 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);
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef X11UTILS_H
|
||||
#define X11UTILS_H
|
||||
|
||||
#include <QPixmap>
|
||||
#include <QScopedPointer>
|
||||
#include <QX11Info>
|
||||
|
||||
#include <X11/Xlib-xcb.h>
|
||||
#include <fixx11h.h>
|
||||
#include <xcb/xcb.h>
|
||||
|
||||
namespace X11Utils {
|
||||
void compositePointer(int offsetX, int offsetY, QPixmap *snapshot);
|
||||
}
|
||||
|
||||
|
||||
namespace Xcb {
|
||||
template <typename T>
|
||||
class ScopedCPointer : public QScopedPointer<T, QScopedPointerPodDeleter>
|
||||
{
|
||||
public:
|
||||
ScopedCPointer(T *p = 0) : QScopedPointer<T, QScopedPointerPodDeleter>(p) {}
|
||||
};
|
||||
|
||||
inline xcb_connection_t *connection()
|
||||
{
|
||||
return XGetXCBConnection(QX11Info::display());
|
||||
}
|
||||
} // namespace Xcb
|
||||
|
||||
#endif // X11UTILS_H
|
||||
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ABSTRACTMODULE_H
|
||||
#define ABSTRACTMODULE_H
|
||||
|
||||
#include <QList>
|
||||
#include <QWidget>
|
||||
#include <QAction>
|
||||
#include <QMenu>
|
||||
|
||||
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
|
@ -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)
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "extedit.h"
|
||||
#include "core/core.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QMimeDatabase>
|
||||
|
||||
ExtEdit::ExtEdit(QObject *parent) :
|
||||
QObject(parent), _watcherEditedFile(new QFileSystemWatcher(this))
|
||||
{
|
||||
createAppList();
|
||||
_fileIsChanged = false;
|
||||
connect(_watcherEditedFile, &QFileSystemWatcher::fileChanged, this, &ExtEdit::editedFileChanged);
|
||||
}
|
||||
|
||||
QList<XdgAction*> ExtEdit::getActions()
|
||||
{
|
||||
return _actionList;
|
||||
}
|
||||
|
||||
void ExtEdit::runExternalEditor()
|
||||
{
|
||||
XdgAction *action = static_cast<XdgAction*>(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);
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTEDIT_H
|
||||
#define EXTEDIT_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
#include <QFileSystemWatcher>
|
||||
#include <QAction>
|
||||
#include <qt5xdg/XdgDesktopFile>
|
||||
#include <qt5xdg/XdgAction>
|
||||
|
||||
class ExtEdit : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ExtEdit(QObject *parent = 0);
|
||||
QList<XdgAction*> 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<XdgDesktopFile*> _appList;
|
||||
QList<XdgAction*> _actionList;
|
||||
QString _editFilename;
|
||||
bool _fileIsChanged;
|
||||
QFileSystemWatcher *_watcherEditedFile;
|
||||
};
|
||||
|
||||
#endif // EXTEDIT_H
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "moduleextedit.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
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<XdgAction*> 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;
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MODULEEXTEDIT_H
|
||||
#define MODULEEXTEDIT_H
|
||||
|
||||
#include "modules/abstractmodule.h"
|
||||
|
||||
#include "extedit.h"
|
||||
#include <QAction>
|
||||
|
||||
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
|
@ -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)
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "dialoguploader.h"
|
||||
#include "ui_dialoguploader.h"
|
||||
|
||||
#include "uploaderconfig.h"
|
||||
#include "imgur/uploader_imgur.h"
|
||||
#include "imgur/uploader_imgur_widget.h"
|
||||
#include <core/core.h>
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QDesktopServices>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
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<ResultString_t> 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()));
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef DIALOGUPLOADER_H
|
||||
#define DIALOGUPLOADER_H
|
||||
|
||||
#include "uploader.h"
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
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
|
@ -1,339 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>DialogUploader</class>
|
||||
<widget class="QDialog" name="DialogUploader">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>841</width>
|
||||
<height>340</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Upload to internet</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="labUploaderList">
|
||||
<property name="text">
|
||||
<string>Upload to</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxUploaderList"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="labImage">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::Panel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labImgSize">
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QStackedWidget" name="stackedWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="resultPage">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QLabel" name="labDirectLink">
|
||||
<property name="text">
|
||||
<string>Direct link:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editDirectLink">
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="butOpenDirectLink">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Open this link in the default web-browser</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="butCopyLink">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Copy this link to the clipboard</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||
<item>
|
||||
<widget class="QLabel" name="labExtCode_2">
|
||||
<property name="text">
|
||||
<string>Extended preformed html or bb codes:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxExtCode"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editExtCode">
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="butCopyExtCode">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Copy this link to the clipboard</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labDeleteLink">
|
||||
<property name="text">
|
||||
<string>Link to delete image:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editDeleteLink">
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="butDeleteLink">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Open this link in the default web-browser</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>34</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
<zorder>labDirectLink</zorder>
|
||||
<zorder>labDeleteLink</zorder>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Minimum</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>96</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="labUploadStatus">
|
||||
<property name="text">
|
||||
<string notr="true">TextLabel</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QProgressBar" name="progressBar">
|
||||
<property name="value">
|
||||
<number>24</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Minimum</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>96</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="butUpload">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Upload</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="butClose">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>112</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Minimum</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>12</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "uploader_imgur.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
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<QByteArray> listXmlNodes;
|
||||
listXmlNodes << "original" << "imgur_page" << "large_thumbnail" << "small_square" << "delete_page";
|
||||
|
||||
QMap<QByteArray, QByteArray> replyXmlMap = parseResultStrings(listXmlNodes, replyXmalText);
|
||||
|
||||
_uploadedStrings[UL_DIRECT_LINK].first = replyXmlMap["original"];
|
||||
_uploadedStrings[UL_HTML_CODE].first = "<img src=\"" + replyXmlMap["original"] + "\" />";
|
||||
_uploadedStrings[UL_BB_CODE].first = "[img]" + replyXmlMap["original"] +"[/img]";
|
||||
_uploadedStrings[UL_HTML_CODE_THUMB].first = "<a href=\"" + replyXmlMap["original"] + "\"><img src=\"" + replyXmlMap["small_square"] + "\" /></a>";
|
||||
_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();
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef UPLOADER_IMGUR_H
|
||||
#define UPLOADER_IMGUR_H
|
||||
|
||||
#include <uploader.h>
|
||||
|
||||
#include <QUrl>
|
||||
|
||||
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
|
||||
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#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;
|
||||
}
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef UPLOADER_IMGUR_WIDGET_H
|
||||
#define UPLOADER_IMGUR_WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QVariant>
|
||||
|
||||
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
|
@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Uploader_ImgUr_Widget</class>
|
||||
<widget class="QWidget" name="Uploader_ImgUr_Widget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>470</width>
|
||||
<height>222</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">Upload to imgur.com</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="labTitle">
|
||||
<property name="text">
|
||||
<string>Upload to Imgur</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>183</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "uploaderconfigwidget_imgur.h"
|
||||
#include "ui_uploaderconfigwidget_imgur.h"
|
||||
|
||||
#include "uploaderconfig.h"
|
||||
|
||||
#include <QVariant>
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef UPLOADERCONFIGWIDGET_IMGUR_H
|
||||
#define UPLOADERCONFIGWIDGET_IMGUR_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
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
|
@ -1,67 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>UploaderConfigWidget_ImgUr</class>
|
||||
<widget class="QWidget" name="UploaderConfigWidget_ImgUr">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>320</width>
|
||||
<height>249</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">Configuration for imgur.com</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="labTitle">
|
||||
<property name="text">
|
||||
<string>Configuration for imgur.com upload</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>88</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labImgurConfDescription">
|
||||
<property name="text">
|
||||
<string>No settings available right now</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>87</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "moduleuploader.h"
|
||||
#include "dialoguploader.h"
|
||||
#include "uploaderconfigwidget.h"
|
||||
#include "uploaderconfig.h"
|
||||
#include "imgur/uploader_imgur.h"
|
||||
|
||||
#include "core/core.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QWaitCondition>
|
||||
#include <QMutex>
|
||||
#include <QClipboard>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
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();
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MODULEUPLOADER_H
|
||||
#define MODULEUPLOADER_H
|
||||
|
||||
#include "modules/abstractmodule.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QCommandLineOption>
|
||||
#include <QWidget>
|
||||
|
||||
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
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "uploader.h"
|
||||
#include "core/core.h"
|
||||
#include "uploaderconfig.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QUuid>
|
||||
#include <QRegExp>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
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<ResultString_t> Uploader::parsedLinksToGui()
|
||||
{
|
||||
QList<ResultString_t> 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<QByteArray, QByteArray> Uploader::parseResultStrings(const QVector< QByteArray >& keytags, const QByteArray& result)
|
||||
{
|
||||
QMap<QByteArray, QByteArray> 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("</"+keytags[i]+">"); //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("</"+keytags[i]+">","");
|
||||
|
||||
// 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);
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef UPLOADER_H
|
||||
#define UPLOADER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QByteArray>
|
||||
#include <QMap>
|
||||
#include <QPair>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
#include <QHttpMultiPart>
|
||||
#include <QUrl>
|
||||
|
||||
typedef QPair<QByteArray, QString> 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<QByteArray, ResultString_t> parsedLinks();
|
||||
QList<ResultString_t> 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<QByteArray, QByteArray> parseResultStrings(const QVector<QByteArray>& 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<QByteArray, ResultString_t> _uploadedStrings;
|
||||
QVariantMap _userSettings;
|
||||
QNetworkAccessManager *_net;
|
||||
QNetworkRequest _request;
|
||||
QNetworkReply *_serverReply;
|
||||
|
||||
private:
|
||||
void initUploadedStrList();
|
||||
};
|
||||
|
||||
#endif // UPLOADER_H
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "uploaderconfig.h"
|
||||
#include "core/config.h"
|
||||
|
||||
#include <QFile>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
|
||||
// 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());
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef UPLOADERCONFIG_H
|
||||
#define UPLOADERCONFIG_H
|
||||
|
||||
#include <QSettings>
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <QMap>
|
||||
|
||||
// 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
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "uploaderconfigwidget.h"
|
||||
#include "ui_uploaderconfigwidget.h"
|
||||
|
||||
#include "uploaderconfig.h"
|
||||
|
||||
#include <QVariantMap>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef UPLOADERCONFIGWIDGET_H
|
||||
#define UPLOADERCONFIGWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#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
|
@ -1,96 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>UploaderConfigWidget</class>
|
||||
<widget class="QWidget" name="UploaderConfigWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>586</width>
|
||||
<height>290</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">Uploader configuration</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="settings">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="commonSettings">
|
||||
<attribute name="title">
|
||||
<string>Common settings</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="labDefaultHost">
|
||||
<property name="text">
|
||||
<string>Default image host</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxDefaultHost"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAutoCopyMainLink">
|
||||
<property name="text">
|
||||
<string>Always copy the link to the clipboard</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>165</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="hostsSettings">
|
||||
<attribute name="title">
|
||||
<string>Hosts settings</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="labHosts">
|
||||
<property name="text">
|
||||
<string>Settings for: </string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cbxHosts"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QStackedWidget" name="stackedHosts"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -1,962 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,3 +0,0 @@
|
||||
Name[ca]=ScreenGrab
|
||||
GenericName[ca]=Programa de captura de la pantalla
|
||||
Comment[ca]=Captura de la pantalla
|
@ -1,963 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="ca">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation>mitjançant Qt </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation>Quant a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation>Agraïments</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation>Ajudeu-nos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>és una aplicació multiplataforma per a la creació ràpida de captures de pantalla del vostre escriptori.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation>És una aplicació lleugera i potent, escrita en Qt.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation>Lloc web</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation>Llicenciat sota la </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation>Drets d'autor &copy; 2009-2013, Artem 'DOOMer' Galichkin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation>Podeu unir-vos a nosaltres i ajudar-nos si voleu. Aquesta és una invitació si us agrada aquesta aplicació.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation>Què podeu fer?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation>Traduir ScreenGrab a altres llengües</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation>Fer suggeriments per als pròxims llançaments</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation>Informar dels errors i de les incidències</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation>Seguiment d'errors</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation>Traducció:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation> Traducció al portuguès de Brasil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation> Traducció a l'ucraïnès</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation> Traducció a l'espanyol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation> Traducció a l'italià</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation>Proves:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation>Admissió de monitors duals i altres a Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation>Admissió de monitors duals a Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation>Construcció win32 [Windows XP i 7]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation>Construcció win32 antiga [Windows Vista]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation>Construcció win32 [Windows 7]</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation>No existeix el directori %1. Voleu crear-lo?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation>Avís</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation>Selecciona el directori</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation>Voleu restablir els ajusts als valors predeterminats?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation>Exemple: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation>Aquesta tecla ja s'utilitza al vostre sistema. Seleccioneu-ne una altra.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation>Aquesta tecla ja s'utilitza a ScreenGrab. Seleccioneu-ne una altra.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation>Aquesta tecla no està admesa al vostre sistema!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>és una aplicació multiplataforma per a la creació ràpida de captures de pantalla del vostre escriptori.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation>Feu captures de pantalla a pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation>Feu una captura de pantalla de la finestra activa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation>Feu captures de pantalla d'una selecció de la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation>Executeu l'aplicació amb una finestra principal oculta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation>Desat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation>Desat a </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation>El nom del fitxer desat es copia al porta-retalls</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation>El camí al fitxer desat es copia al porta-retalls</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation>Copiat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation>La captura de pantalla es copia al porta-retalls</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation>Pujar-ho a Internet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation>Pujar-ho a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation>Enllaç directe:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation>Obre aquest enllaç al navegador web per defecte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation>Obre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation>Copia aquest enllaç al porta-retalls</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation>Codis html o bb preformats ampliats:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation>Enllaç per eliminar la imatge:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation>Puja</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Cancel·la</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation>Mida: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation> píxel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation>Pujat </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation>A punt per pujar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation>Processament de la pujada... Espereu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation>Recepció d'una resposta del servidor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation>Pujada completada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation>Tanca</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation>Error en la pujada de la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation>Obre aquest enllaç al navegador web per defecte, pot eliminar directament la imatge que heu carregat, sense cap avís.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation>Esteu segur que voleu continuar?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation>Tipus:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation>Tipus de la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation>Finestra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation>Àrea de la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation>Última àrea seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation>Retard:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation>Retard en segons abans de prendre la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation>Cap</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation> s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation>Zoom a l'àrea al voltant del ratolí</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation>Sense decoració de finestra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation>Inclou el punter del ratolí</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation>Barra d'eines</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation>Nova</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation>Desa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation>Quant a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation>Surt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation>Doble clic per obrir la captura de pantalla al visualitzador d'imatges extern predeterminat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation>Oculta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation>Mostra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation>%1 fitxers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation>Desa com...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation>Puja la captura de pantalla a l'amfitrió d'imatges predeterminat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation>Pujada</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation>Utilitzeu el ratolí per dibuixar un rectangle per capturar la pantalla o
|
||||
sortiu prement qualsevol tecla o els botons dret o central del ratolí.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation>%1 x %2 píxels </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation>Edició externa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation>Edita a...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation>Enllaç directe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation>Codi HTML amb la imatge en miniatura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation>Codi BB amb la imatge en miniatura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation>Ajusts comuns</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation>Copia sempre l'enllaç al porta-retalls</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation>Ajusts dels amfitrions</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation>Ajusts per: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation>No hi ha cap ajust disponible ara mateix</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation>Puja a Imgur</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation>Quant a Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation>Tanca</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation>Principal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation>Avançat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation>Safata del sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation>Dreceres</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation>Directori de desament predeterminat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation>Camí al directori predeterminat dels desaments per seleccionar-ne un</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation>Navega pel sistema de fitxers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation>Navega</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation>Fitxer predeterminat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation>Nom:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation>Nom de fitxer predeterminat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation>Format d'imatge predeterminat de desament</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation>Copia el nom del fitxer al porta-retalls quan es desa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation>No ho copiïs</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation>Copia només el nom del fitxer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation>Copia el camí complet al fitxer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation>Qualitat d'imatge</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation>Qualitat d'imatge (1 - fitxer petit, 100 - alta qualitat)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation>Inserció de la data actual al nom del fitxer desat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation>Insereix la data i hora actual al nom del fitxer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation>Plantilla: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation>Exemple: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation>Desament automàtic de captures de pantalla en el procés d'agafament</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation>Desa automàticament la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation>Desa primer la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation>Permet l'execució de diverses còpies de ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation>Permet diverses instàncies de ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation>Obre al visualitzador extern amb el doble clic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation>Habilita el visualitzador extern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation>Ajusta a les vores només dins de l'àrea de la pantalla seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation>Ajusta a les vores dins de l'àrea seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation>Mostra ScreenGrab a la safata del sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation>Missatges de la safata:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation>Mode de visualització dels missatges de la safata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation>Mai</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation>Mode safata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation>Sempre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation>Temps de visualització dels missatges de la safata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation>Temps per mostrar el missatges de la safata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation> s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation>Minimitza a la safata amb el clic al botó de tancar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation>Minimitza a la safata quan s'està tancant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation>Acció</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation>Drecera</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation>Dreceres globals</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation>Finestra activa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation>Selecció de l'àrea</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation>Dreceres locals</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation>Pantalla nova</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation>Desa la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation>Copia la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation>Ajuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation>Surt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation>Drecera seleccionada:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation>Sense definir</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,2 +0,0 @@
|
||||
Comment[cs]=Pořizování snímků obrazovky
|
||||
GenericName[cs]=Pořizování snímků obrazovky
|
@ -1,962 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="cy">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,3 +0,0 @@
|
||||
# Translations
|
||||
Comment[de]=Bildschirmfotos aufnehmen und mit anderen teilen
|
||||
GenericName[de]=Anwendung für Bildschirmfotos
|
@ -1,963 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="de_DE">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation>mit Qt </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation>Über</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation>Dank an</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation>ScreenGrab ist eine einfache, aber leistungsstarke Anwendung, die auf die Qt-Bibliotheken aufsetzt.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation>Webseite</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation>Lizensiert unter der </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation>Unterstützen Sie uns</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation>Was können Sie tun?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>ist eine plattformunabhängige Anwendung, um Bildschirmfotos aufzunehmen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation>Sie können sich anschließen und mithelfen, wenn Sie wollen. Dies ist eine Einladung dazu, wenn Sie ScreenGrab mögen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation>Übersetzen Sie ScreenGrab in andere Sprachen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation>Machen Sie Verbesserungsvorschläge für nächste Versionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation>Melden Sie Problem und Fehler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation>Bug-Tracker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation>Übersetzung:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation> Portugiesisch-Brasilianische Übersetzung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation>Marcio Moraes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation> Ukrainische Übersetzung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation>Gennadi Motsyo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation> Spanische Übersetzung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation>Burjans L García D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation> Italienische Übersetzung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation>Tester:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation>Dual-Monitor Unterstützung unter Linux und anderes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation>Dual-Monitor Unterstützung unter Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation>win32-build [Windows XP and 7]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation>Vorheriger win32-build [Windows Vista]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation>win32-build [Windows 7]</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation>Ordner wählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation>Warnung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation>Der Ordner %1 existiert nicht. Möchten Sie ihn erstellen?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation>Möchten Sie die Standardeinstellungen wieder herstellen?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation>Beispiel: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation>Diese Tastenkombination ist bereits von Ihrem System belegt! Bitte wählen Sie eine andere.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation>Diese Tastenkombination wird bereits von ScreenGrab verwendet! Bitte wählen Sie eine andere.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation>Diese Tastenkombination wird von Ihrem System nicht unterstützt!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation>Fehler</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation>Gespeichert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation>Der Name der gespeicherten Datei wird in die Zwischenablage kopiert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation>Kopiert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation>Gespeichert nach </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>ist eine plattformunabhängige Anwendung, um Bildschirmfotos aufzunehmen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation>Mache einen Screenshot des gesamten Bildschirms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation>Mache einen Screenshot des aktiven Fensters</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation>Mache einen Screenshot eines Bildschirmausschnitts</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation>Führe die Anwendung in verborgenem Hauptfenster aus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation>Der Pfad zur gespeicherten Datei wird in die Zwischenablage kopiert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation>Das Bildschirmfoto wird in die Zwischenablage kopiert</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation>Ins Internet hochladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation>Hochladen nach</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation>Direkter Link:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation>Diesen Link im Standard-Browser öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation>Öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation>Diesen Link in die Zwischenablage kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation>Kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation>Erweiterte vorgeformte HTML- oder BB-Codes:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation>Link, um das Bild zu löschen:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation>Hochladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Abbrechen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation>Schließen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation>Größe: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation> Pixel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation>Hochgeladen </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation>Bereit zum Hochladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation>Das Hochladen wird bearbeitet...bitte warten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation>Öffnen Sie diesen Link in Ihrem Standard-Web-Browser, so kann Ihr hochgeladenes Bild ohne jede Warnung gelöscht werden.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation>Antwort vom Server erhalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation>Hochladen abgeschlossen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation>Beim Hochladen ist ein Fehler aufgetreten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation>Fehler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation>Möchten Sie wirklich fortfahren?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation>ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation>Typ:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation>Art des Bildschirmfotos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Vollbild</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation>Aktives Fenster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation>Bildschirm-Bereich</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation>Letzter gewählter Ausschnitt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation>Verzögerung:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation>Bereich um die Maus zoomen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation>Keine Fensterdekoration</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation>Einschließlich Mauszeiger</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation>Werkzeugleiste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation>Aufnahme-Verzögerung in Sekunden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation> Sek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation>Optionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation>Hilfe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation>Beenden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation>Speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation>Neu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation>Kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation>Doppelklicken, um das Bildschirmfoto in einem externen Bildbetrachter zu öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation>Verbergen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation>%1 Dateien</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation>Über</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation>Bildschirmfoto </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation>Keine</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation>Anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation>Speichern als...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation>Screenshot zum standardmäßigen Image-Host hochladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation>Hochladen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation>Markieren Sie mit der Maus einen rechteckigen Ausschnitt oder beenden Sie den Vorgang,
|
||||
indem Sie die <Esc>-Taste oder die mittlere Maustaste drücken.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation>%1 x %2 Pixel </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation>Externer Editor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation>Bearbeiten in...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation>Hochladen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation>Direkter Link</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation>HTML-Code</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation>BB-Code</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation>HTML-Code mit Miniaturansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation>BB-Code mit Miniaturansicht</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation>URI für das Löschen des Bildes</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation>Allgemeine Einstellungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation>Standard-Service</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation>Den Link immer in die Zwischenablage kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation>Host-Einstellungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation>Einstellungen für: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation>Konfiguration für <imgur.com></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation>Zur Zeit keine Einstellungen verfügbar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation>Hochladen auf Imgur</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation>Über Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation>Schließen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation>Optionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation>Standard-Bildformat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation>Aktuelles Datum und Uhrzeit in den Dateinamen einfügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation>Aktuelles Datum und Uhrzeit in den Dateinamen einfügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation>Foto automatisch speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation>Erstes Foto speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation>Bildqualität</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation>Bildqualität (1 - kleine Datei, 100 - hohe Qualität)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation>Mehrere Instanzen von ScreenGrab zulassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation>Externen Bildbetrachter aktivieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation>Nur an Rändern innerhalb des ausgwählten Bildschirmbereichs anpassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation>An Rändern innerhalb des ausgewählten Bildschirmbereichs anpassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation>Screengrab im Systemtray anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation>Beim Schließen in den Systemtray minimieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation>Beim Beenden in den Systemtray minimieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation>Aktion</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation>Globale Tastenkombinationen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation>Aktives Fenster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation>Bereich wählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation>Lokale Tastenkombinationen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation>Neues Bildschirmfoto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation>Bildschirmfoto speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation>Bildschirmfoto kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation>Hilfe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation>Nicht definiert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation>Allgemein</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation>Systemtray</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation>Pfad zum Standard-Speicherordner</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation>Dateisystem durchsuchen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation>Durchsuchen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation>Standard-Dateiname</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation>Format</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation>Dateinamen beim Speichern in die Zwischenablage kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation>Nicht kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation>Nur den Dateinamen kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation>Den vollständigen Dateipfad kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation> Sek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation>Erweitert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation>Standardmäßiges Speicherverzeichnis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation>Standardmäßige Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation>Name:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation>Vorlage: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation>Beispiel: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation>Fotos während der Aufnahme automatisch speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation>Symbolleisten-Meldungen:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation>Meldungen in der Symbolleiste anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation>Keine</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation>Systemtray-Modus</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation>Immer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation>Anzeigedauer in der Symbolleiste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation>Anzeigedauer der Symbolleisten-Meldungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation>Tastenkombinationen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation>Mehrere Instanzen von ScreenGrab zulassen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation>Bei Doppel-Klick in externem Bildbetrachter öffnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation>Tastenkürzel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Vollbild</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation>Beenden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation>Ausgewählte Tastenkombination:</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,962 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="el">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,3 +0,0 @@
|
||||
Name[es]=ScreenGrab
|
||||
GenericName[es]=Programa para capturas de pantalla
|
||||
Comment[es]=Captura la pantalla
|
@ -1,963 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="es">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation>usando Qt </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation>Acerca de</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation>Agradecimientos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation>Es una aplicación ligera y potente, escrita usando Qt.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation>Sitio web</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation>Licenciado bajo la </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation>Ayúdenos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation>¿Qué puede hacer usted?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>es una aplicación multiplataforma para hacer rápidamente capturas de pantalla del escritorio.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation>Puede unirse a nosotros y ayudarnos si quiere. Es una invitación si le gusta esta aplicación.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation>Traducir ScreenGrab a otros idiomas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation>Hacer sugerencias para próximas versiones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation>Informar de fallos y otras cuestiones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation>Seguimiento de errores</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation>Traducción:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation> traducción al portugués de Brasil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation> traducción al ucraniano</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation> traducción al español</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation> traducción al italiano</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation>Pruebas:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation>Soporte para monitor doble y otros en Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation>Soporte para monitor doble en Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation>win32-build [Windows XP y 7]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation>antiguo win32-build [Windows Vista]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation>Seleccione el directorio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation>Aviso</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation>El directorio %1 no existe. ¿Desea crearlo?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation>¿Quiere reiniciar la configuración a la predefinida?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation>Ejemplo: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation>¡La tecla ya está siendo usada por el sistema! Seleccione otra.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation>¡La tecla ya está siendo usada en ScreenGrab! Seleccione otra.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation>¡La tecla no está permitida en su sistema!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation>Error</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation>Guardado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation>El nombre del archivo guardado se copia al portapapeles</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation>Copiado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation>Guardado en </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>es una aplicación multiplataforma para hacer rápidamente capturas de pantalla del escritorio.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation>Hacer una captura de la pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation>Hacer una captura de pantalla de la ventana activa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation>Hacer una captura de pantalla de un área de la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation>Ejecutar la aplicación con la ventana principal oculta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation>La ruta al archivo guardado se copia al portapapeles</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation>La captura de pantalla se copia al portapapeles</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation>Subir a internet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation>Subir a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation>Enlace directo:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation>Abrir el enlace en el navegador por defecto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation>Abrir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation>Copiar el enlace al portapapeles</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation>Códigos html o bb preformados extendidos:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation>Enlace para borrar la imagen:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation>Subir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Cancelar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation>Cerrar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation>Subido </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation>Tamaño: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation> píxel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation>Listo para subir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation>Subida en proceso... Por favor, espere</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation>Recibiendo respuesta desde el servidor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation>Subida completada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation>Error al subir la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation>Error</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation>Abrir el enlace en el navegador por defecto; puede borrar directamente la imagen subida, sin ningún aviso.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation>¿Seguro que quiere continuar?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation>Captura de pantalla </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation>Salir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation>Guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation>Nuevo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation>Haga doble clic para abrir la captura de pantalla en el visor de imágenes externo por defecto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation>Ocultar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation>Acerca de</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation>Opciones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation>Ninguna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation>Mostrar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation>%1 archivos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation>Guardar como...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation>Tipo:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation>Tipo de captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation>Ventana</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation>Área de la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation>Última área seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation>Demora:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation>Ampliar el área alrededor del ratón</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation>Sin decoración de ventana</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation>Incluir el puntero del ratón</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation>Barra de herramientas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation>Demora en segundos antes hacer la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation> s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation>Ayuda</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation>Subir la captura de pantalla al sitio para imágenes por defecto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation>Subiendo</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation>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.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation>%1 x %2 píxeles </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation>Subir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation>Edición externa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation>Editar en...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation>Enlace directo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation>Código HTML</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation>Código BB</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation>Código HTML con miniatura de imagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation>Código BB con miniatura de imagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation>URI para borrar la imagen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation>Configuración general</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation>Sitio de imágenes por defecto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation>Copiar siempre el enlace al portapapeles</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation>Configuración de los servidores</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation>Configuración para: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation>Configuración para subir a imgur.com</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation>No hay ajustes disponibles de momento</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation>Subir a Imgur</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation>Acerca de Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation>Cerrar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation>Opciones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation>Formato por defecto al guardar imágenes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation>Inserta la fecha y hora actuales en el nombre de archivo guardado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation>Insertar la fecha y hora actuales en el nombre de archivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation>Guardar automáticamente la captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation>Guardar la primera captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation>Calidad de la imagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation>Calidad de imagen (1 - archivo pequeño, 100 - alta calidad)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation>Permitir múltiples instancias de ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation>Habilitar el visor externo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation>Ajustar a los bordes solo en el área de pantalla seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation>Ajustar a los bordes en el área seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation>Mostrar ScreenGrab en la bandeja del sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation>Minimizar a la bandeja al hacer clic en el botón de cierre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation>Minimizar a la bandeja al cerrar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation>Acción</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation>Atajos globales</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation>Ventana activa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation>Selección del area</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation>Atajos locales</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation>Nueva pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation>Grabar la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation>Copiar la pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation>Ayuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation>No definido</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation>Principal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation>Bandeja del sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation>Ruta al directorio seleccionado por defecto para guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation>Explorar el sistema de archivos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation>Explorar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation>Nombre por defecto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation>Formato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation>Copiar el nombre de archivo al portapapeles al guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation>No copiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation>Copiar solo el nombre del archivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation>Copiar la ruta completa del archivo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation> s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation>Avanzado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation>Directorio por omisión donde guardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation>Archivo por omisión</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation>Nombre:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation>Plantilla: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation>Ejemplo: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation>Guarda automaticamente las capturas de pantalla en un proceso de grabacion</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation>Mensajes en bandeja:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation>Modo de presentación de mensajes en bandeja</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation>Nunca</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation>Modo en bandeja</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation>Siempre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation>Atajos de teclado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation>Permitir múltiples instancias de ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation>Abrir en el visor externo al hacer doble clic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation>Atajos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation>Salir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation>Atajo seleccionado:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation>Duración de los mensajes de bandeja</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation>Tiempo hasta mostrar mensajes de bandeja</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,962 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="fr_FR">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation>utilisant Qt </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation>À propos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation>Remerciements</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation>Aidez nous</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>est une application multi-plateforme pour créer des captures d'écran de votre bureau.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation>Application légère et puissante écrite en Qt.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation>Site Web</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation>Sous licence </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation>Droits d'auteur &copy; 2009-2013, Artem 'DOOMer' Galichkin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation>Vous pouvez nous rejoindre et nous aider si vous appréciez cette application.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation>Que pouvez vous faire ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation>Traduire ScreenGrab dans d'autres langues</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation>Faire des suggestions pour les prochaines versions</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation>Rapporter les bugs</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation>Traqueur de bogues</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation>Traductions :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation> Brésilien - Portuguais</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation>"Marcio Moraes"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation> Traduction ukrainienne</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation>"Gennadi Motsyo"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation> Traduction espagnol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation>"Burjans L García D"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation> Traduction italienne</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation>Test :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation>Support du double écran et autres sous Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation>Support du double écran sous Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation>win32-build [Windows XP et 7]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation>ancienne version de win32-build [Windows Vista]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation>"win32-build [Windows 7]"</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation>Le répertoire %1 n'existe pas. Voulez vous le créer ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation>Attention</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation>Choisissez un répertoire</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation>Voulez vous restaurer les paramètres par défaut ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation>Exemple : </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation>Cette touche est déjà utilisé sur votre système! Veuillez en sélectionner une autre.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation>Cette touche est déjà utilisé dans ScreenGrab! Veuillez en sélectionner une autre.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation>Cette touche n'est pas supportée par votre système !</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation>Erreur</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>est une application multi-plateforme pour créer des captures d'écran de votre bureau.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation>Prendre une capture d'écran de l'écran entier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation>Prendre une capture d'écran de la fenêtre active</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation>Prendre une capture d'écran d'une zone sélectionnée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation>Cacher la fenêtre principale</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation>Enregistrement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation>Enregistré vers </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation>Le nom du fichier a été copié dans le presse-papiers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation>Le chemin du fichier a été copié dans le presse-papiers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation>Copié</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation>La capture d'écran a été copié dans le presse-papiers</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation>Télécharger sur Internet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation>Télécharger sur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation>Lien direct :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation>Ouvrir ce lien avec le navigateur par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation>Ouvrir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation>Copier ce lien dans le presse-papier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation>Codes html ou bb préformés étendus :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation>Lien pour effacer l'image :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation>Télécharger</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Annuler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation>Taille: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation> .pixel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation>Téléchargé </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation>Prêt à télécharger</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation>Téléchargement en cours... Merci de patienter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation>Réponse du serveur en cours</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation>Téléchargement terminé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation>Fermer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation>Erreur lors du téléchargement de la copie d'écran</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation>Erreur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation>Ouvrez ce lien dans votre navigateur par défaut, cela peut effacer directement l'image téléchargée, sans le moindre avertissement.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation>Êtes vous sûr de vouloir continuer ?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation>"ScreenGrab"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation>Type :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation>Type de capture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Plein écran</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation>Fenêtre active</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation>Sélection</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation>Dernière zone selectionnée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation>Délai :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation>Fait un zoom de la zone située autour de la souris</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation>Pas de décoration des fenêtres</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation>Délai en secondes avant de faire la capture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation> seconde(s)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation>Inclure le pointeur de la souris</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation>Barre d'outils</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation>Nouveau</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation>Enregistrer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation>Aide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation>À propos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation>Quitter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation>Capture d'écran </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation>Double cliquer pour visualiser la capture dans le lecteur externe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation>Cacher</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation>Aucun</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation>Montrer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation>Enregistrer sous...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation>Télécharger la capture d'écran sur l'hôte d'image par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation>Téléchargement en cours</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation>Utilisez la souris pour dessiner une zone rectangulaire à capture ou n'importe quelle touche, clic droit ou clic de la molette pour quitter.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation>%1 x %2 pixels </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation>Édition externe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation>Editer avec...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation>Télécharger</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation>Lien direct</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation>code HTML</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation>code BB</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation>code HTML avec image en vignette</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation>code BB avec image en vignette</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation>URI pour effacer l'image</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation>Paramètres généraux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation>Hôte d'image par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation>Toujours copier le lien dans le presse-papier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation>Paramètres de l'hôte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation>Paramètres pour: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation>Configuration pour le téléchargement vers imgur.com</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation>Aucun paramétrage disponible pour le moment</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation>Télécharger sur imgur</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation>À propos de Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation>Fermer</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation>Principal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation>Avancé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation>Barre des tâches</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation>Raccourcis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation>Chemin vers le répertoire d'enregistrement par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation>Parcourir le système de fichiers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation>Parcourir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation>Nom de fichier par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation>Format</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation>Format d'image par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation>Copier le nom du fichier dans le presse-papiers lors de l'enregistrement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation>Ne pas copier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation>Copier le nom du fichier seulement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation>Copier le chemin complet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation> seconde(s)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation>Qualité d'image</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation>Qualité d'image (1 - basse qualité, 100 - haute qualité)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation>Répertoire de sauvegarde par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation>Fichier par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation>Nom :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation>Ajouter la date au nom de fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation>Ajouter la date au nom du fichier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation>Modèle: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation>Exemple: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation>Enregistrer automatiquement à la capture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation>Enregistrer automatiquement les captures</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation>Enregistrer la première capture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation>Autoriser plusieurs instances de ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation>Autoriser plusieurs instances de ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation>Ouvir dans le visualiseur externe au double clic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation>Activer le visualiseur externe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation>Faire correspondre les bords de la sélection avec les bords de la zone rectangulaire sélectionné</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation>Faire correspondre les bords de la sélection avec les bords de la zone rectangulaire sélectionné</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation>Placer ScreenGrab dans la barre des tâches</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation>Notifications :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation>Mode d'affichage des notifications</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation>Jamais</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation>Mode bac</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation>Toujours</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation>Temps d'affichage des notifications</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation>Temps d'affichage des notifications</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation>Minimiser lors d'un clic sur le bouton de fermeture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation>Minimiser lors d'un clic sur le bouton de fermeture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation>Action</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation>Raccourci</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation>Raccourcis globaux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Plein écran</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation>Fenêtre active</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation>Sélection</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation>Raccourcis locaux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation>Nouvelle capture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation>Enregistrer la capture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation>Copier la capture</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation>Aide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation>Quitter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation>Raccourci sélectionné :</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation>Non défini</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,963 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="gl">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation>usando Qt </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation>Sobre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation>Grazas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation>Axúdenos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>é unha aplicación multiplataforma para facer rapidamente capturas de pantalla do seu escritorio.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation>É unha aplicación lixeira e potente, escrita en Qt.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation>Sitio web</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation>Licenciada baixo a </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translation>Dereitos de autoría &copy; 2009-2013, Artem «DOOMer» Galichkin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation>Pode unirse a nós e axudarnos se quixer. Isto é un convite se lle gusta esta aplicación.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation>Que pode facer vostede?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation>Traducir ScreenGrab a outros idiomas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation>Facer suxestións para próximas versións</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation>Informar de fallos e outras incidencias</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation>Seguimento de erros</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation>Tradución:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation> Tradución ao portugués do Brasil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation> Tradución ao ucraíno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation> Tradución ao español</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation> Tradución ao italiano</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation>Probas:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation>Compatibilidade para monitor dobre e outros en Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation>Compatibilidade para monitor dobre en Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation>Construción win32 [Windows XP e 7]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation>Construción win32 antigo [Windows Vista]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation>Construción win32 [Windows 7]</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation>Non existe o directorio %1. Quere crealo?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation>Aviso</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation>Seleccione o directorio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation>Quere reiniciar os axustes predeterminados?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation>Exemplo: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation>Esta tecla xa está en uso polo sistema! Seleccione outra.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation>Esta tecla xa está en uso por ScreenGrab! Seleccione outra.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation>Esta tecla non está admitida no seu sistema!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation>Erro</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>é unha aplicación multiplataforma para facer rapidamente capturas de pantalla do seu escritorio.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation>Facer unha captura da pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation>Facer unha captura da xanela activa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation>Facer unha captura dunha área da pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation>Executar a aplicación coa xanela principal agachada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation>Gardado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation>Gardado en </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation>O nome do ficheiro gardado copiase no portapapeis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation>A ruta ao ficheiro gardado copiase ao portapapeis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation>Copiado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation>A captura de pantalla copiase ao portapapeis</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation>Enviar á Internet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation>Enviar a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation>Ligazón directa:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation>Abrir esta ligazón no navegador predeterminado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation>Abrir</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation>Copiar esta ligazón no portapapeis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation>Códigos HTML ou BB preformados estendidos:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation>Ligazón para eliminar a imaxe:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation>Enviar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Cancelar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation>Tamaño: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation> píxel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation>Enviado </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation>Listo para enviar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation>Enviando... Agarde</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation>Recibindo a resposta do servidor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation>Envío completado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation>Pechar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation>Produciuse un erro ao enviar a captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation>Erro</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation>Abrir a ligazón no navegador predeterminado; pode eliminar directamente a súa imaxe sen ningún aviso.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation>Confirma que quere continuar?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation>Tipo:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation>Tipo de captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation>Xanela</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation>Área da pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation>Última área seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation>Demora:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation>Demora en segundos antes facer a captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation>Ningunha</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation> seg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation>Ampliar a área arredor do rato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation>Sen a decoración da xanela</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation>Incluír o punteiro do rato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation>BarraDeFerramentas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation>Nova</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation>Gardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copiar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation>Opcións</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation>Axuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation>Sobre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation>Saír</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation>Captura de pantalla </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation>Faga dobre clic para abrir a captura de pantalla no visor de imaxes externo predeterminado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation>Agachar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation>Amosar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation>%1 ficheiro(s)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation>Gardar como...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation>Enviar a captura de pantalla ao sitio predeterminado para as imaxes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation>Enviando</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation>Use o rato para debuxar o rectángulo a capturar ou saia premendo
|
||||
calquera tecla ou os botóns dereito ou central do rato.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation>%1 x %2 píxeles </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation>Edición externa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation>Editar con..</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation>Enviar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation>Ligazón directa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation>Código HTML</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation>Código BB</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation>Código HTML con miniatura de imaxe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation>Código BB con miniatura de imaxe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation>URI para eliminar a imaxe</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation>Axustes xerais</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation>Sitio predeterminado para as imaxes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation>Copiar sempre a ligazón no portapapeis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation>Configuración dos servidores</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation>Configuración para: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation>Configuración para o envío a imgur.com</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation>Non hai axustes dispoñíbeis polo de agora</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation>Enviar a Imgur</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation>Sobre o Qt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation>Pechar</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation>Opcións</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation>Principal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation>Avanzado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation>Área de notificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation>Atallos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation>Directorio predeterminado onde gardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation>Ruta ao directorio seleccionado como predeterminado para gardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation>Examinar o sistema de ficheiros</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation>Examinar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation>Ficheiro predeterminado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation>Nome:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation>Nome predeterminado do ficheiro</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation>Formato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation>Formato predeterminado para gardar imaxes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation>Copiar o nome do ficheiro ao portapapeis ao gardar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation>Non copiar nada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation>Copiar só o nome do ficheiro</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation>Copiar a ruta completa do ficheiro</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation>Calidade da imaxe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation>Calidade da imaxe (1 - ficheiro pequeno, 100 - alta calidade)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation>Inserindo a data e hora actuais no nome do ficheiro gardado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation>Inserir a data e hora actuais no nome do ficheiro</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation>Modelo: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation>Exemplo: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation>Gardar automaticamente as capturas de pantalla durante o proceso de captura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation>Gardar automaticamente a captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation>Gardar a primeira captura de pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation>Permitir a execución de múltiples copias do ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation>Permitir múltiples instancias do ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation>Abrir no visor externo ao facer dobre clic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation>Activar o visor externo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translation>Axustar aos bordos só na área de pantalla seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation>Axustar aos bordos dentro da área seleccionada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation>Amosar o ScreenGrab na área de notificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation>Mensaxes na área de notificación:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation>Modo de presentación das mensaxes na área de notificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation>Nunca</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation>Modo da área de notificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation>Sempre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation>Duración das mensaxes na área de notificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation>Tempo para amosar as mensaxes na área de notificación</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation> seg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation>Minimizar na área de notificación ao premer no botón de peche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation>Minimizar na área de notificación ao pechar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation>Acción</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation>Atallo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation>Atallos globais</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Pantalla completa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation>Xanela activa</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation>Seleccionar área</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation>Atallos locais</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation>Pantalla nova</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation>Gardar a pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation>Copiar a pantalla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation>Axuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation>Saír</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation>Atallo seleccionado:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation>Sen definir</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,3 +0,0 @@
|
||||
# Translations
|
||||
Name[it]=Cattura schermata
|
||||
Comment[it]=Applicazione per catturare schermate
|
@ -1,965 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="it">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="34"/>
|
||||
<source>using Qt </source>
|
||||
<translation>usando le librerie QT </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="41"/>
|
||||
<source>About</source>
|
||||
<translation>Informazioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="42"/>
|
||||
<source>Thanks</source>
|
||||
<translation>Grazie a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="102"/>
|
||||
<source>It is a light and powerful application, written in Qt.</source>
|
||||
<translation>E' un applicazione leggera ma potente, scritto in Qt.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="105"/>
|
||||
<source>Website</source>
|
||||
<translation>Sito Web</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="109"/>
|
||||
<source>Licensed under the </source>
|
||||
<translation>Rilasciato sotto licenza </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="43"/>
|
||||
<source>Help us</source>
|
||||
<translation>Contribuisci</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="113"/>
|
||||
<source>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</source>
|
||||
<translatorcomment>copyright updated to 2015, ok?</translatorcomment>
|
||||
<translation>Copyright &copy; 2009-2013, Artem 'DOOMer' Galichkin</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="123"/>
|
||||
<source>What you can do?</source>
|
||||
<translation>Cosa puoi fare?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="100"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>è una applicazione per catturare velocemente schermate per tutte le piattaforme.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="120"/>
|
||||
<source>You can join us and help us if you want. This is an invitation if you like this application.</source>
|
||||
<translation>Se ti piace questa applicazione puoi contribuire.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="126"/>
|
||||
<source>Translate ScreenGrab to other languages</source>
|
||||
<translation>Puoi tradurre ScreenGrab in altre lingue</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="127"/>
|
||||
<source>Make suggestions for next releases</source>
|
||||
<translation>Fai proposte per le prossime versioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="128"/>
|
||||
<source>Report bugs and issues</source>
|
||||
<translation>Segnala problemi e bug</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="131"/>
|
||||
<source>Bug tracker</source>
|
||||
<translation>Segnala bug</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="141"/>
|
||||
<source>Translate:</source>
|
||||
<translation>Traduzioni:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="143"/>
|
||||
<source> Brazilian Portuguese translation</source>
|
||||
<translation> ·Traduzioni in Portoghese Brasiliano</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="144"/>
|
||||
<source>Marcio Moraes</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="146"/>
|
||||
<source> Ukrainian translation</source>
|
||||
<translation> ·Traduzioni in Ucraino</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="147"/>
|
||||
<source>Gennadi Motsyo</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="149"/>
|
||||
<source> Spanish translation</source>
|
||||
<translation> ·Spanish translation</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="150"/>
|
||||
<source>Burjans L García D</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="152"/>
|
||||
<source> Italian translation</source>
|
||||
<translation> Traduziona italiana</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="156"/>
|
||||
<source>Testing:</source>
|
||||
<translation>Test:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="158"/>
|
||||
<source>Dual monitor support and other in Linux</source>
|
||||
<translation>Supporto per due monitor e altro in Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="159"/>
|
||||
<source>Dual monitor support in Linux</source>
|
||||
<translation>Supporto dual monitor in Linux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="160"/>
|
||||
<source>win32-build [Windows XP and 7]</source>
|
||||
<translation>win32-build [Windows XP and 7]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="161"/>
|
||||
<source>old win32-build [Windows Vista]</source>
|
||||
<translation>win32-build vecchio [Windows Vista]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/about.cpp" line="162"/>
|
||||
<source>win32-build [Windows 7]</source>
|
||||
<translation>win32-build [Windows 7]</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ConfigDialog</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="300"/>
|
||||
<source>Select directory</source>
|
||||
<translation>Selezionare la cartella</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="211"/>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="312"/>
|
||||
<source>Warning</source>
|
||||
<translation>Attenzione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="210"/>
|
||||
<source>Directory %1 does not exist. Do you want to create it?</source>
|
||||
<translation>La cartella %1 non esiste. Vuoi crearla?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="311"/>
|
||||
<source>Do you want to reset the settings to the defaults?</source>
|
||||
<translation>Vuoi ripristinare la configurazione iniziale?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="369"/>
|
||||
<source>Example: </source>
|
||||
<translation>Esempio: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="425"/>
|
||||
<source>This key is already used in your system! Please select another.</source>
|
||||
<translation>Questa scorciatoia è già in uso. Seleziona un altra per favore.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="431"/>
|
||||
<source>This key is already used in ScreenGrab! Please select another.</source>
|
||||
<translation>Questa scorciatoia è già usata in ScreenGrab. Seleziona un altra.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="449"/>
|
||||
<source>This key is not supported on your system!</source>
|
||||
<translation>Questa chiave non è supportata dal tuo sistema!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.cpp" line="484"/>
|
||||
<source>Error</source>
|
||||
<translation>Errore</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Core</name>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved</source>
|
||||
<translation>Salvata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="444"/>
|
||||
<source>Name of saved file is copied to the clipboard</source>
|
||||
<translation>Il nome del file salvato è stato copiato negli appunti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Copied</source>
|
||||
<translation>Copiata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="422"/>
|
||||
<source>Saved to </source>
|
||||
<translation>Salvata in </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="63"/>
|
||||
<source>is a crossplatform application for fast creating screenshots of your desktop.</source>
|
||||
<translation>è una applicazione per catturare velocemente schermate per tutte le piattaforme.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="67"/>
|
||||
<source>Take a fullscreen screenshot</source>
|
||||
<translation>Cattura lo schermo intero</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="71"/>
|
||||
<source>Take a screenshot of the active window</source>
|
||||
<translation>Cattura la finestra attiva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="75"/>
|
||||
<source>Take a screenshot of a selection of the screen</source>
|
||||
<translation>Cattura una selezione dello schermo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="79"/>
|
||||
<source>Run the application with a hidden main window</source>
|
||||
<translation>Avvia l''applicazione con la finestra principale nascosta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="450"/>
|
||||
<source>Path to saved file is copied to the clipboard</source>
|
||||
<translation>Il percorso del file salvato è stato copiato negli appunti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/core.cpp" line="472"/>
|
||||
<source>Screenshot is copied to clipboard</source>
|
||||
<translation>La schermata è stata copiata negli appunti</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DialogUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="14"/>
|
||||
<source>Upload to internet</source>
|
||||
<translation>Carica in rete</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="22"/>
|
||||
<source>Upload to</source>
|
||||
<translation>Carica a</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="76"/>
|
||||
<source>Direct link:</source>
|
||||
<translation>Collegamento diretto:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="98"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="189"/>
|
||||
<source>Open this link in the default web-browser</source>
|
||||
<translation>Apri questo link con il browser predefinito</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="101"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="192"/>
|
||||
<source>Open</source>
|
||||
<translation>Apri</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="114"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="155"/>
|
||||
<source>Copy this link to the clipboard</source>
|
||||
<translation>Copia questo link agli appunti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="117"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="158"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="128"/>
|
||||
<source>Extended preformed html or bb codes:</source>
|
||||
<translation>Codici html o bb preformati estesi:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="167"/>
|
||||
<source>Link to delete image:</source>
|
||||
<translation>Indirizzo per rimuovere immagine:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="300"/>
|
||||
<source>Upload</source>
|
||||
<translation>Carica</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.ui" line="313"/>
|
||||
<source>Cancel</source>
|
||||
<translation>Annulla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source>Size: </source>
|
||||
<translation>Grandezza: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="58"/>
|
||||
<source> pixel</source>
|
||||
<translation> pixel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="68"/>
|
||||
<source>Uploaded </source>
|
||||
<translation>Caricato </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="71"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="212"/>
|
||||
<source>Ready to upload</source>
|
||||
<translation>Pronto a caricare</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="108"/>
|
||||
<source>Upload processing... Please wait</source>
|
||||
<translation>Caricamento in corso... Attendere</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="160"/>
|
||||
<source>Receiving a response from the server</source>
|
||||
<translation>Ricevendo una risposta dal server</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="177"/>
|
||||
<source>Upload completed</source>
|
||||
<translation>Caricamento completato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="199"/>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="214"/>
|
||||
<source>Close</source>
|
||||
<translation>Chiudi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="206"/>
|
||||
<source>Error uploading screenshot</source>
|
||||
<translation>Errore durante il caricamento dello screenshot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="207"/>
|
||||
<source>Error</source>
|
||||
<translation>Errore</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="244"/>
|
||||
<source>Open this link in your default web-browser, it may directly delete your uploaded image, without any warnings.</source>
|
||||
<translation>Apre questo link con il tuo browser predefinito, potrebbe direttamente rimuovere la tua immagine caricata, senza alcun avvertimento.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/dialoguploader.cpp" line="245"/>
|
||||
<source>Are you sure you want to continue?</source>
|
||||
<translation>Sei sicuro di voler continuare?</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="14"/>
|
||||
<source>ScreenGrab</source>
|
||||
<translation>ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="79"/>
|
||||
<source>Type:</source>
|
||||
<translation>Tipo:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="89"/>
|
||||
<source>Type of screenshot</source>
|
||||
<translation>Tipo di cattura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="96"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Schermo intero</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="101"/>
|
||||
<source>Window</source>
|
||||
<translation>Finestra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="106"/>
|
||||
<source>Screen area</source>
|
||||
<translation>Area dello schermo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="111"/>
|
||||
<source>Last selected area</source>
|
||||
<translation>Ultima area selezionata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="141"/>
|
||||
<source>Delay:</source>
|
||||
<translation>Ritardo:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="203"/>
|
||||
<source>Zoom area around mouse</source>
|
||||
<translation>Ingrandisce area intorno al cursore</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="210"/>
|
||||
<source>No window decoration</source>
|
||||
<translation>Escludi le decorazioni delle finestre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="217"/>
|
||||
<source>Include mouse pointer</source>
|
||||
<translation>Cattura cursore</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="246"/>
|
||||
<source>toolBar</source>
|
||||
<translation>Barra degli strumenti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="154"/>
|
||||
<source>Delay in seconds before taking screenshot</source>
|
||||
<translation>Ritardo in secondi prima di effettuare la cattura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="160"/>
|
||||
<source> sec</source>
|
||||
<translation> ·sec</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="67"/>
|
||||
<source>Options</source>
|
||||
<translation>Impostazioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="68"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="92"/>
|
||||
<source>Help</source>
|
||||
<translation>Guida</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="70"/>
|
||||
<source>Quit</source>
|
||||
<translation>Esci</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="65"/>
|
||||
<source>Save</source>
|
||||
<translation>Salva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="64"/>
|
||||
<source>New</source>
|
||||
<translation>Nuovo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="66"/>
|
||||
<source>Copy</source>
|
||||
<translation>Copia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="369"/>
|
||||
<source>Double click to open screenshot in external default image viewer</source>
|
||||
<translation>Doppio clic per aprire la cattura in un editor esterno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="378"/>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="509"/>
|
||||
<source>Hide</source>
|
||||
<translation>Nascondi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="569"/>
|
||||
<source>%1 Files</source>
|
||||
<translation>%1 File</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="69"/>
|
||||
<source>About</source>
|
||||
<translation>Informazioni su</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="365"/>
|
||||
<source>Screenshot </source>
|
||||
<translation>Schermata </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.ui" line="157"/>
|
||||
<source>None</source>
|
||||
<translation>Nessuno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="516"/>
|
||||
<source>Show</source>
|
||||
<translation>Mostra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/mainwindow.cpp" line="591"/>
|
||||
<source>Save As...</source>
|
||||
<translation>Salva con nome...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ModuleUploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="41"/>
|
||||
<source>Upload the screenshot to the default image host</source>
|
||||
<translation>Carica lo screenshot al host predefinito</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="48"/>
|
||||
<source>Uploading</source>
|
||||
<translation>Caricando</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QApplication</name>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="160"/>
|
||||
<source>Use your mouse to draw a rectangle to screenshot or exit pressing
|
||||
any key or using the right or middle mouse buttons.</source>
|
||||
<translation>Usa il mouse per delineare un rettangolo da catturare o esci premendo
|
||||
un tasto qualsiasi o usando il tasto destro o centrale del mouse.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/regionselect.cpp" line="192"/>
|
||||
<source>%1 x %2 pixels </source>
|
||||
<translation>%1 x %2 pixel </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="35"/>
|
||||
<source>External edit</source>
|
||||
<translation>Editor esterno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/extedit/moduleextedit.cpp" line="46"/>
|
||||
<source>Edit in...</source>
|
||||
<translation>Modifica con...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/moduleuploader.cpp" line="103"/>
|
||||
<source>Upload</source>
|
||||
<translation>Carica</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="225"/>
|
||||
<source>Direct link</source>
|
||||
<translation>Link diretto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="228"/>
|
||||
<source>HTML code</source>
|
||||
<translation>Codice HTML</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="231"/>
|
||||
<source>BB code</source>
|
||||
<translation>Codice BB</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="234"/>
|
||||
<source>HTML code with thumb image</source>
|
||||
<translation>Codice HTML con la miniatura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="237"/>
|
||||
<source>BB code with thumb image</source>
|
||||
<translation>Codice BB con la miniatura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploader.cpp" line="240"/>
|
||||
<source>URl to delete image</source>
|
||||
<translation>URl per eliminare l'immagine</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="24"/>
|
||||
<source>Common settings</source>
|
||||
<translation>Impostazioni comuni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="32"/>
|
||||
<source>Default image host</source>
|
||||
<translation>Host per le immagini predefinito</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="44"/>
|
||||
<source>Always copy the link to the clipboard</source>
|
||||
<translation>Copia sempre il link negli appunti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="65"/>
|
||||
<source>Hosts settings</source>
|
||||
<translation>Impostazioni Host</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/uploaderconfigwidget.ui" line="73"/>
|
||||
<source>Settings for: </source>
|
||||
<translation>Impostazioni per: </translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>UploaderConfigWidget_ImgUr</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="20"/>
|
||||
<source>Configuration for imgur.com upload</source>
|
||||
<translation>Configurazioni per il caricamento su imgur.com</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploaderconfigwidget_imgur.ui" line="43"/>
|
||||
<source>No settings available right now</source>
|
||||
<translation>Nessuna impostazione disponibile al momento</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Uploader_ImgUr_Widget</name>
|
||||
<message>
|
||||
<location filename="../src/modules/uploader/imgur/uploader_imgur_widget.ui" line="20"/>
|
||||
<source>Upload to Imgur</source>
|
||||
<translation>Carica su Imgur</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>aboutWidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="128"/>
|
||||
<source>About Qt</source>
|
||||
<translation>Informazioni su QT</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/aboutwidget.ui" line="154"/>
|
||||
<source>Close</source>
|
||||
<translation>Chiudi</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>configwidget</name>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="26"/>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="627"/>
|
||||
<source>Options</source>
|
||||
<translation>Impostazioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="192"/>
|
||||
<source>Default saving image format</source>
|
||||
<translation>Formato standard di salvataggio immagine</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="316"/>
|
||||
<source>Inserting current date time into saved filename</source>
|
||||
<translation>Inserisci la data e l'orario corrente nel nome file</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="319"/>
|
||||
<source>Insert current date and time in file name</source>
|
||||
<translation>Inserisci data e ora nel nome del file</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="366"/>
|
||||
<source>Autosave screenshot</source>
|
||||
<translation>Salva la cattura automaticamente</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="378"/>
|
||||
<source>Save first screenshot</source>
|
||||
<translation>Salva la prima cattura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="245"/>
|
||||
<source>Image quality</source>
|
||||
<translation>Qualità imagine</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="251"/>
|
||||
<source>Image quality (1 - small file, 100 - high quality)</source>
|
||||
<translation>Qualità immagine (1 -bassa, 100 massima qualità)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="387"/>
|
||||
<source>Allow run multiplies copy of ScreenGrab</source>
|
||||
<translation>Permetti istanze multiple di ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="400"/>
|
||||
<source>Enable external viewer</source>
|
||||
<translation>Abilita visualizzatore esterno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="407"/>
|
||||
<source>Fit to edges only inside selected screen area</source>
|
||||
<translatorcomment>Looks like not present in GUI</translatorcomment>
|
||||
<translation>Adatta ai bordi all'interno della selezione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="410"/>
|
||||
<source>Fit to edges inside selected area</source>
|
||||
<translation>Adatta a bordi all'interno della selezione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="448"/>
|
||||
<source>Show ScreenGrab in the system tray</source>
|
||||
<translation>Mostra ScreenGrab nel vassoio di sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="533"/>
|
||||
<source>Minimize to tray on click close button</source>
|
||||
<translation>Minimizza nel vassoio di sistema cliccando il pulsante chiudi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="536"/>
|
||||
<source>Minimize to tray when closing</source>
|
||||
<translation>Minimizza nel vassoio alla chiusura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="575"/>
|
||||
<source>Action</source>
|
||||
<translation>Azione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="585"/>
|
||||
<source>Global shortcuts</source>
|
||||
<translation>Scorciatoie globali</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="597"/>
|
||||
<source>Active window</source>
|
||||
<translation>Finestra attiva</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="602"/>
|
||||
<source>Area select</source>
|
||||
<translation>Selezione area</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="608"/>
|
||||
<source>Local shortcuts</source>
|
||||
<translation>Scorciatoie locali</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="612"/>
|
||||
<source>New screen</source>
|
||||
<translation>Nuova cattura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="617"/>
|
||||
<source>Save screen</source>
|
||||
<translation>Salva cattura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="622"/>
|
||||
<source>Copy screen</source>
|
||||
<translation>Copia cattura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="632"/>
|
||||
<source>Help</source>
|
||||
<translation>Guida</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="655"/>
|
||||
<source>Not defined</source>
|
||||
<translation>Non definito</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="77"/>
|
||||
<source>Main</source>
|
||||
<translation>Generale</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="87"/>
|
||||
<source>System tray</source>
|
||||
<translation>Vassoio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="122"/>
|
||||
<source>Path to default selection dir for saving</source>
|
||||
<translation>Percorso per i salvataggi predefinito</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="135"/>
|
||||
<source>Browse filesystem</source>
|
||||
<translation>Sfoglia le cartelle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="138"/>
|
||||
<source>Browse</source>
|
||||
<translation>Sfoglia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="168"/>
|
||||
<source>Default filename</source>
|
||||
<translation>Nome file predefinito</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="179"/>
|
||||
<source>Format</source>
|
||||
<translation>Formato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="211"/>
|
||||
<source>Copy file name to the clipboard when saving</source>
|
||||
<translation>Copia nome del file negli appunti quando salvi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="225"/>
|
||||
<source>Do not copy</source>
|
||||
<translation>Non copiare</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="230"/>
|
||||
<source>Copy file name only</source>
|
||||
<translation>Copia solo il nome del file</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="235"/>
|
||||
<source>Copy full file path</source>
|
||||
<translation>Copia il percorso completo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="515"/>
|
||||
<source> sec</source>
|
||||
<translation> ·sec</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="82"/>
|
||||
<source>Advanced</source>
|
||||
<translation>Avanzate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="116"/>
|
||||
<source>Default save directory</source>
|
||||
<translation>Cartella di salvataggio predefinita</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="148"/>
|
||||
<source>Default file</source>
|
||||
<translation>File predefinito</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="161"/>
|
||||
<source>Name:</source>
|
||||
<translation>Nome:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="328"/>
|
||||
<source>Template: </source>
|
||||
<translation>Modello: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="353"/>
|
||||
<source>Example: </source>
|
||||
<translation>Esempio: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="363"/>
|
||||
<source>Automatically saving screenshots in grabbing process</source>
|
||||
<translation>Salva la schermata automaticamente durante la cattura</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="457"/>
|
||||
<source>Tray messages:</source>
|
||||
<translation>Messaggi nell'area di notifica:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="470"/>
|
||||
<source>Tray messages display mode</source>
|
||||
<translation>Modalità di visualizzazione nell'area di notifica</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="474"/>
|
||||
<source>Never</source>
|
||||
<translation>Mai</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="479"/>
|
||||
<source>Tray mode</source>
|
||||
<translation>Modalità area di notifica</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="484"/>
|
||||
<source>Always</source>
|
||||
<translation>Sempre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="496"/>
|
||||
<source>Time of display tray messages</source>
|
||||
<translation>Tempo di esposizione dei messaggi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="512"/>
|
||||
<source>Time to display tray messages</source>
|
||||
<translation>Tempo di esposizione dei messaggi nell'area di notifica</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="92"/>
|
||||
<source>Shortcuts</source>
|
||||
<translation>Scorciatoie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="390"/>
|
||||
<source>Allow multiple instances of ScreenGrab</source>
|
||||
<translation>Permetti istanze multiple di ScreenGrab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="397"/>
|
||||
<source>Open in external viewer on double click</source>
|
||||
<translation>Apri la cattura in un visualizzatore esterno con doppio clic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="580"/>
|
||||
<source>Shortcut</source>
|
||||
<translation>Scorciatoia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="592"/>
|
||||
<source>Full screen</source>
|
||||
<translation>Schermo intero</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="637"/>
|
||||
<source>Quit</source>
|
||||
<translation>Esci</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/core/ui/configwidget.ui" line="648"/>
|
||||
<source>Selected shortcut:</source>
|
||||
<translation>Seleziona scorciatoia:</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue