filters
kis_raw_import.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KIS_RAW_IMPORT_H_
00021 #define KIS_RAW_IMPORT_H_
00022
00023 #include <KoFilter.h>
00024
00025 class KProcess;
00026 class KDialogBase;
00027 class WdgRawImport;
00028 class KisProfile;
00029 class QProgressDialog;
00030
00031 class KisRawImport : public KoFilter {
00032 Q_OBJECT
00033
00034 public:
00035 KisRawImport(KoFilter *parent, const char *name, const QStringList&);
00036 virtual ~KisRawImport();
00037
00038 public:
00039 virtual KoFilter::ConversionStatus convert(const QCString& from, const QCString& to);
00040
00041
00042 private slots:
00043
00044 void slotUpdatePreview();
00045 void slotFillCmbProfiles();
00046 void slotProcessDone();
00047 void slotReceivedStdout(KProcess *proc, char *buffer, int buflen);
00048 void slotReceivedStderr(KProcess *proc, char *buffer, int buflen);
00049 void incrementProgress();
00050
00051 private:
00052
00053 QStringList createArgumentList(bool forPreview = false);
00054 QSize determineSize(Q_UINT32& startOfImageData);
00055 void getImageData(QStringList arguments);
00056 KisProfile * profile();
00057 KisID getColorSpace();
00058
00059 private:
00060 QByteArray * m_data;
00061 KDialogBase * m_dialog;
00062 WdgRawImport * m_page;
00063 KisProfile * m_monitorProfile;
00064 KProcess * m_process;
00065 QProgressDialog* m_progress;
00066 };
00067
00068 #endif // KIS_RAW_IMPORT_H_
00069
|