/* * Copyright (c) 2005 Boudewijn Rempt * * 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 class TDEProcess; class KDialogBase; class WdgRawImport; class KisProfile; class TQProgressDialog; class KisRawImport : public KoFilter { TQ_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(TDEProcess *proc, char *buffer, int buflen); void slotReceivedStderr(TDEProcess *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; TDEProcess * m_process; TQProgressDialog* m_progress; bool m_err; // Set to true when slotReceivedStderr is called }; #endif // KIS_RAW_IMPORT_H_