Blame qlo10k1/src/filecontroldialog.h

Packit Service b98cfc
/*
Packit Service b98cfc
 *  qlo10k1 - GUI frontend for ld10k1
Packit Service b98cfc
 *
Packit Service b98cfc
 *  Copyright (c) 2004 by Peter Zubaj
Packit Service b98cfc
 *
Packit Service b98cfc
 *   This program is free software; you can redistribute it and/or modify
Packit Service b98cfc
 *   it under the terms of the GNU General Public License as published by
Packit Service b98cfc
 *   the Free Software Foundation; either version 2 of the License, or
Packit Service b98cfc
 *   (at your option) any later version.
Packit Service b98cfc
 *
Packit Service b98cfc
 *   This program is distributed in the hope that it will be useful,
Packit Service b98cfc
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service b98cfc
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service b98cfc
 *   GNU General Public License for more details.
Packit Service b98cfc
 *
Packit Service b98cfc
 *   You should have received a copy of the GNU General Public License
Packit Service b98cfc
 *   along with this program; if not, write to the Free Software
Packit Service b98cfc
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Packit Service b98cfc
 *
Packit Service b98cfc
 */
Packit Service b98cfc
 
Packit Service b98cfc
#ifndef FILECONTROLDIALOG_H
Packit Service b98cfc
#define FILECONTROLDIALOG_H
Packit Service b98cfc
Packit Service b98cfc
#include <qvaluelist.h>
Packit Service b98cfc
#include "dlgs/filecontroldialogbase.h"
Packit Service b98cfc
#include "ld10k1file.h"
Packit Service b98cfc
Packit Service b98cfc
class TranslatedCtrl
Packit Service b98cfc
{
Packit Service b98cfc
public:
Packit Service b98cfc
	QString name;
Packit Service b98cfc
	int index;
Packit Service b98cfc
	
Packit Service b98cfc
	enum TranslationType {None, Table100, Bass, Treble, OnOff };
Packit Service b98cfc
	TranslationType translation;
Packit Service b98cfc
	int visible;
Packit Service b98cfc
	int min;
Packit Service b98cfc
	int max;
Packit Service b98cfc
	QValueList <int> fileCtrlIdx;
Packit Service b98cfc
	QValueList <int> values;
Packit Service b98cfc
};
Packit Service b98cfc
Packit Service b98cfc
class FileControlDlg : public FileControlDialogBase
Packit Service b98cfc
{
Packit Service b98cfc
	Q_OBJECT
Packit Service b98cfc
	
Packit Service b98cfc
	QValueList <int> selected;
Packit Service b98cfc
	EMU10k1File *file;
Packit Service b98cfc
	TranslatedCtrl *translated;
Packit Service b98cfc
	unsigned int min;
Packit Service b98cfc
	unsigned int max;
Packit Service b98cfc
	QValueList <int> values;
Packit Service b98cfc
public:
Packit Service b98cfc
	FileControlDlg(QValueList <int> *eselected, EMU10k1File *efile, TranslatedCtrl *etranslated);
Packit Service b98cfc
	
Packit Service b98cfc
	QString getName(int i);
Packit Service b98cfc
public slots:
Packit Service b98cfc
	void okClicked();
Packit Service b98cfc
	void cancelClicked();
Packit Service b98cfc
	
Packit Service b98cfc
	void upClicked();
Packit Service b98cfc
	void downClicked();
Packit Service b98cfc
};
Packit Service b98cfc
Packit Service b98cfc
#endif // FILECONTROLDIALOG_H