You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegraphics/ksnapshot
Alexander Golubev 2f927acd56 ksnapshot: declare text/uri-list format when drag&dropping
This enables drag&dropping screenshots directly into a browser window.
As a side effect when drag&dropping into most file managers (into
konquerror in particular) this will also cause them to copy a png file
instead of asking a user in what format they would like to save the
image.

Besides that commit includes:
- Rework of handling of temporary files, in particular:
  - Temporary files now try to use a friendlier names with timestamps
    e.g. `snapshot-20251108-211852.png`. And fallback to use
    `mkstemp()`-style suffix if the name already in use.
  - When "Open with" is issued several times the temporary file will be
    created only once.
  - If the file was already saved by the user ksnapshot won't create an
    additional temporary one for drag&drop or "Open with", but rather
    use the saved one.
  - "Open with" temporary files are no longer removed after the process
    terminates, but are kept around until exit from ksnapshot. Removing
    the files right after process termination caused failures to open
    the file when they were passed to another (already running) instance
    of a program instead of a new one (e.g. in gimp).
- Some refactoring for code deduplocation.
- Some helper classes.

Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tdegraphics/issues/135
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
4 months ago
..
CMakeL10n.txt Desktop file translations: 6 years ago
CMakeLists.txt Desktop file translations: 6 years ago
ConfigureChecks.cmake GCC 4.7 fix. 14 years ago
Makefile.am LIB_QT -> LIB_TQT conversion to align to updated admin module 8 years ago
README Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 17 years ago
configure.in.in Additional renaming of kde to tde 15 years ago
hi16-app-ksnapshot.png Fix invalid headers in PNG files and optimize for size 10 years ago
hi22-app-ksnapshot.png Fix invalid headers in PNG files and optimize for size 10 years ago
hi32-app-ksnapshot.png Fix invalid headers in PNG files and optimize for size 10 years ago
hi48-app-ksnapshot.png Fix invalid headers in PNG files and optimize for size 10 years ago
hisc-app-ksnapshot.svgz Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 17 years ago
ksnapshot.cpp ksnapshot: declare text/uri-list format when drag&dropping 4 months ago
ksnapshot.desktop Desktop file translations: 6 years ago
ksnapshot.h ksnapshot: declare text/uri-list format when drag&dropping 4 months ago
ksnapshotiface.h ksnapshot: add setPixmap DCOP call 2 years ago
ksnapshotwidget.ui Replace Q_SIGNALS and Q_SLOTS 2 years ago
ksnapshotwidget.ui.h ksnapshot: add delay functionality to 'Region' mode. This resolves issue #71. 2 years ago
main.cpp Rename additional header files to avoid conflicts with KDE4 13 years ago
regiongrabber.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 2 years ago
regiongrabber.h Replace Q_OBJECT with TQ_OBJECT 3 years ago
uninstall.desktop Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 17 years ago
windowgrabber.cpp Replace Qt with TQt 2 years ago
windowgrabber.h Replace Q_OBJECT with TQ_OBJECT 3 years ago

README

		       KSnapshot Release Notes
		       =======================

KSnapshot is intended to be an easy to use program for making
screenshots. I can be bound to the Print Screen" key, as the program
takes a snapshot of the desktop on startup (before it displays it
window), so it's a simple way of of making snapshots.

Currently Implemented features:

- Mini Preview image
- Adjustable time delay.
- Auto hides it own window when grabbing.
- Grabs desktop or specific windows
- Save to various formats
- Auto increment filename


The original KSnapshot was implemented by Richard Moore (rich@kde.org)
for KDE1. Shortly before KDE2 I rewrote most of it to bring it a bit
closer to KDE2' higher standards.

This version is still not good, but I wanted something that doesn't
break translations and is still comfortable to old ksnapshot users.

Use Pixie if you want more functionality.

Matthias ( ettrich@kde.org)