#ifndef GUICONFIG_H
#define GUICONFIG_H

#include <qobject.h>
#include "qt_version.h"
#if QT_VERSION < 0x040000
#include <qmainwindow.h>
#include <qlayout.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qgroupbox.h>
#include <qvalidator.h>
#include <qpushbutton.h>
#else
#include <QMainWindow>
#include <QGridLayout>
#include <QLineEdit>
#include <QLabel>
#include <QIntValidator>
#include <QPushButton>
#endif
#include "qt_version.h"
#include "qprofile.h"

#include "qpui.h"

class GuiConfig : public QWidget
{
	Q_OBJECT
			
	public:
		GuiConfig();
		
		void setSelectedProfile(QProfile * p);
		
		void updateProfile(QProfile * p);
		
		void setQpuiWidget(QpWindow * w){QPUI_widget=w;}
		
	public slots:
		
		void getQpuiSize();
		
	protected:
		
		QLineEdit * heightLine;
		
		QLineEdit * QpuiSizeLine;
		
		QPushButton * QpuiSizeButton;
		
		QSpinBox * fontSizeBox;
		
		QComboBox * compactUIBox;
		
		QComboBox * timeIntervalButtonBox;
		
		int qpuiHeight;
		int qpuiWidth;
		
		QpWindow *QPUI_widget; // pointer to the global QPUI_widget. Not defined as extern, else it won't compile on Windows (dll etc.).
};

#endif
