view widgets/AudioFilterViewerWidget.h @ 282:d9319859a4cf tip

(none)
author benoitrigolleau
date Fri, 31 Oct 2008 11:00:24 +0000
parents bb04d9df8b41
children
line wrap: on
line source

/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */

/*   
Sound Access
EASAIER client application.
Silogic 2007. Benoit Rigolleau.

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 included with this distribution for more information.
*/

#ifndef _AUDIO_FILTER_VIEWER_WIDGET_H
#define _AUDIO_FILTER_WIDGET_H

#include "ItemContainer.h"
#include "ItemAudioFilterList.h"
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>



class AudioFilterViewerWidget : public QFrame{
	Q_OBJECT	

public:
	AudioFilterViewerWidget(QWidget *parent=0);
	void addItem(ItemAudioFilterList *item);
	void removeAllItems();
	void setCurrentIndex(int i);

	QString getCurrentFilterName();

	void removeItem(QString name);

protected slots:
	void removeFilterRequested();

signals :
	void currentChanged(int i);
	void removeFilter(QString name);
	
private:
	QPushButton *m_pushButtonCONFIG;
	QPushButton *m_pushButtonUP;
	QPushButton *m_pushButtonDOWN;
	QPushButton *m_pushButtonNEW;

	QHBoxLayout *m_layoutACTION;
	QVBoxLayout *m_layoutMAIN;

	ItemContainer *m_widgetLIST;

protected slots:
	void newItemSelected(int i);
	virtual void removeSelectedItemRequested();

};

#endif