/*
 *  Copyright (C) 2007-2008 CMM Sigma Andrzej Chmielowiec <cmmsigma@cmmsigma.eu>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 3
 *  as published by the Free Software Foundation.
 *
 *  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.
 */

#ifndef RBG_WIDGET_H
#define RBG_WIDGET_H

#include <QtGui>

class RbgWidget: public QWidget
{
	Q_OBJECT;
	
public:
	RbgWidget(QWidget *parent = 0);
	
	static const int BinaryAsciiFmt = 1;
	static const int HexAsciiFmt = 2;
	static const int BinaryFmt = 3;
	
private slots:
	void generateSlot();
	
signals:
	void generateSig(int octets, int fmt, QString &fileName);
	
private:
	QGridLayout *mLayout;
	QSpinBox *mNum;
	QRadioButton *mBinaryAsciiFmt;
	QRadioButton *mHexAsciiFmt;
	QRadioButton *mBinaryFmt;
	QPushButton *mGenerate;
};

#endif
