/***************************************************************************
 * optionsexportascii.h: implementation of OptionsExportAscii class
 *
 * This file is part of KTabEdit, a KDE tabulature editor
 *
 * copyright (C) 2003-2006 the KTabEdit development team <mrgwen@gmail.com>
 * copyright (C) 2002-2003 the KGuitar development team <mrgwen@gmail.com>
 ***************************************************************************/

/***************************************************************************
 * 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.
 *
 * See the file COPYING for more information.
 ***************************************************************************/

#ifndef OPTIONSEXPORTASCII_H
#define OPTIONSEXPORTASCII_H

#include "optionspage.h"

class QCheckBox;
class QRadioButton;
class QSpinBox;
class QVBoxLayout;

/**
	Options page for ASCII tabulature export setup.
	Allows to set duration display (number of spaces in ASCII
	tabulature rendering) and page width.
*/
class OptionsExportAscii: public OptionsPage {
	Q_OBJECT
public:
	/**
		Inits the widget and store the config var.
	*/
	OptionsExportAscii(KConfig* config, QWidget* parent);
	
	/**
		Click on button ok.
	*/
	virtual void applyBtnClicked();
	
	/**
		Default button clicked.
	*/
	virtual void defaultBtnClicked();
private:
	QVBoxLayout* mDurationGroup;
	QRadioButton* mDuration[5];
	QSpinBox* mPageWidth;
	QCheckBox* mAlways;
};

#endif
