view widgets/MultiPaneLayerContainer.h @ 96:c70c6b99d871

inform the PaneStack that a new current layer is selected in the PropertyStack
author lbajardsilogic
date Tue, 10 Jul 2007 10:08:42 +0000
parents 77e1fa5497e7
children fa034c6ae8bf
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();
		void propertyContainerSelected(View *client, PropertyContainer *container);

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


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

};

#endif