Blob Blame History Raw
/*
 *  qlo10k1 - GUI frontend for ld10k1
 *
 *  Copyright (c) 2004 by Peter Zubaj
 *
 *   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 TRANSFORMPATCHDIALOG_H
#define TRANSFORMPATCHDIALOG_H

#include <qstringlist.h>
#include <qvaluelist.h>
#include <qptrlist.h>
#include "dlgs/transformpatchbase.h"
#include "filecontroldialog.h"
#include "connectionwizard.h"
#include "structure.h"
#include "structure_patch.h"
#include "ld10k1file.h"

class TransformPatchDlg : public TransformPatchBase
{
	Q_OBJECT
	EMU10k1File *file;
	QString fileName;
	QStringList inputNames;
	QStringList outputNames;

	QValueList <int> ctrlFileList;
	QValueList <TranslatedCtrl> translatedList;
public:

	TransformPatchDlg(QString efileName, EMU10k1File *efile);

	QString getName(int i);
	int transformFile(LD10k1File **outFile);
public slots:
	void okClicked();
	void cancelClicked();

	void inputsDoubleClicked(QListBoxItem *item);
	void outputsDoubleClicked(QListBoxItem *item);

	void ctrlAddClicked();
	void ctrlDelClicked();

	void loadedDoubleClicked(QListBoxItem *item);
	void fileDoubleClicked(QListBoxItem *item);
};

#endif // TRANSFORMPATCHDIALOG_H