You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koffice/filters/chalk/raw/kis_raw_import.h

72 lines
2.0 KiB

/*
* Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
*
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef KIS_RAW_IMPORT_H_
#define KIS_RAW_IMPORT_H_
#include <KoFilter.h>
class KProcess;
class KDialogBase;
class WdgRawImport;
class KisProfile;
class TQProgressDialog;
class KisRawImport : public KoFilter {
Q_OBJECT
public:
KisRawImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisRawImport();
public:
virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
private slots:
void slotUpdatePreview();
void slotFillCmbProfiles();
void slotProcessDone();
void slotReceivedStdout(KProcess *proc, char *buffer, int buflen);
void slotReceivedStderr(KProcess *proc, char *buffer, int buflen);
void incrementProgress();
private:
TQStringList createArgumentList(bool forPreview = false);
TQSize determineSize(TQ_UINT32& startOfImageData);
void getImageData(TQStringList arguments);
KisProfile * profile();
KisID getColorSpace();
private:
TQByteArray * m_data;
KDialogBase * m_dialog;
WdgRawImport * m_page;
KisProfile * m_monitorProfile;
KProcess * m_process;
TQProgressDialog* m_progress;
bool m_err; // Set to true when slotReceivedStderr is called
};
#endif // KIS_RAW_IMPORT_H_