view widgets/MultiPaneLayerContainer.h @ 68:77e1fa5497e7

MultiPaneLayerContainer (manage several panes in the layer list) is added
author benoitrigolleau
date Wed, 13 Jun 2007 09:35:02 +0000
parents
children c70c6b99d871
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 _MULTI_PANE_LAYER_CONTAINER_H
#define _MULTI_PANE_LAYER_CONTAINER_H

#include <QWidget>
#include <QVBoxLayout>
#include <QMap>

#include "PropertyStack.h"
#include "view/Pane.h"


class MultiPaneLayerContainer : public QWidget
{
	Q_OBJECT

public :
		virtual ~MultiPaneLayerContainer();
		MultiPaneLayerContainer(QWidget *parent=0);
		void addPane(Pane *pane);
		void removePane(Pane *pane);

signals:
		void removeSelectedItem();

public slots :
	void currentPaneChanged(Pane *pane);
	void paneAdded(Pane *pane);
	void paneRemoved(Pane *pane);


private :
	QMap<Pane*,PropertyStack*> *m_map;
	QVBoxLayout *m_layout; 

};

#endif