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.
69 lines
2.0 KiB
69 lines
2.0 KiB
15 years ago
|
/***************************************************************************
|
||
|
encodingplugin.h - description
|
||
|
-------------------
|
||
|
begin : Tue Jul 06 2004
|
||
|
copyright : (C) 2004 by Dominik Seichter
|
||
|
email : domseichter@web.de
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* 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. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef _ENCODINGPLUGIN_H_
|
||
|
#define _ENCODINGPLUGIN_H_
|
||
|
|
||
|
#include "batchrenamer.h"
|
||
|
#include "pluginloader.h"
|
||
|
#include "plugin.h"
|
||
|
#include "helpdialog.h"
|
||
|
#include "fileoperation.h"
|
||
|
|
||
|
class KComboBox;
|
||
|
class QCheckBox;
|
||
|
|
||
|
class EncodingPlugin : public Plugin {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
const QString getName() const;
|
||
|
const QString getAccelName() const;
|
||
|
const int type() const;
|
||
|
|
||
|
bool checkError();
|
||
|
void drawInterface( QWidget* w, QVBoxLayout* l );
|
||
|
void fillStructure();
|
||
|
QString processFile( BatchRenamer*, int, QString token, int );
|
||
|
void finished();
|
||
|
|
||
|
const QPixmap getIcon() const;
|
||
|
|
||
|
private slots:
|
||
|
void enableControls();
|
||
|
|
||
|
private:
|
||
|
void setLocale( KComboBox* combo );
|
||
|
|
||
|
FileOperation fop;
|
||
|
|
||
|
QString m_input_codec;
|
||
|
QString m_output_codec;
|
||
|
QString m_locale_codec;
|
||
|
|
||
|
int mib_input;
|
||
|
int mib_output;
|
||
|
|
||
|
QCheckBox* checkInput;
|
||
|
QCheckBox* checkOutput;
|
||
|
|
||
|
KComboBox* comboInput;
|
||
|
KComboBox* comboOutput;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // _ENCODINGPLUGIN_H_
|