mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kioslave: copyright imagecreator to me
implemented rotation (with configuration interface), updated MIME types,
etc. for reference:
fce69c3dc4
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
311ddf7016
commit
6fcf4e8224
2 changed files with 20 additions and 18 deletions
|
@ -1,11 +1,9 @@
|
|||
/* This file is part of the KDE libraries
|
||||
Copyright (C) 2000 Carsten Pfeiffer <pfeiffer@kde.org>
|
||||
2000 Malte Starostik <malte@kde.org>
|
||||
/* This file is part of the KDE project
|
||||
Copyright (C) 2021 Ivailo Monev <xakepa10@gmail.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
License version 2, as published by the Free Software Foundation.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
|
@ -31,10 +29,14 @@ extern "C"
|
|||
{
|
||||
KDE_EXPORT ThumbCreator *new_creator()
|
||||
{
|
||||
return new ImageCreator;
|
||||
return new ImageCreator();
|
||||
}
|
||||
}
|
||||
|
||||
ImageCreator::ImageCreator()
|
||||
{
|
||||
}
|
||||
|
||||
bool ImageCreator::create(const QString &path, int width, int height, QImage &img)
|
||||
{
|
||||
// use preview from Exiv2 metadata if possible
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
/* This file is part of the KDE libraries
|
||||
Copyright (C) 2000 Malte Starostik <malte@kde.org>
|
||||
/* This file is part of the KDE project
|
||||
Copyright (C) 2021 Ivailo Monev <xakepa10@gmail.com>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
License version 2, as published by the Free Software Foundation.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
|
@ -17,19 +16,20 @@
|
|||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _IMAGECREATOR_H_
|
||||
#define _IMAGECREATOR_H_
|
||||
#ifndef IMAGECREATOR_H
|
||||
#define IMAGECREATOR_H
|
||||
|
||||
#include <kio/thumbcreator.h>
|
||||
|
||||
class ImageCreator : public ThumbCreator
|
||||
{
|
||||
public:
|
||||
ImageCreator() {}
|
||||
virtual bool create(const QString &path, int width, int height, QImage &img);
|
||||
virtual Flags flags() const;
|
||||
virtual QWidget *createConfigurationWidget();
|
||||
virtual void writeConfiguration(const QWidget *configurationWidget);
|
||||
ImageCreator();
|
||||
|
||||
bool create(const QString &path, int width, int height, QImage &img) final;
|
||||
ThumbCreator::Flags flags() const final;
|
||||
QWidget *createConfigurationWidget() final;
|
||||
void writeConfiguration(const QWidget *configurationWidget) final;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // IMAGECREATOR_H
|
||||
|
|
Loading…
Add table
Reference in a new issue