Mercurial > hg > easaier-soundaccess
diff widgets/LayerViewerWidget.h @ 56:81921835ddf1
first layer list pre-version
author | benoitrigolleau |
---|---|
date | Wed, 23 May 2007 13:09:19 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/widgets/LayerViewerWidget.h Wed May 23 13:09:19 2007 +0000 @@ -0,0 +1,66 @@ + +/* -*- 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 _LAYER_VIEWER_WIDGET_H +#define _LAYER_VIEWER_WIDGET_H + +#include "ItemContainer.h" +#include "ItemLayerList.h" + +#include <QPushButton> +#include <QHBoxLayout> +#include <QVBoxLayout> +#include <QSlider> +#include <QSpinBox> +#include <QLabel> + + + +class LayerViewerWidget : public QFrame{ + Q_OBJECT + +public: + LayerViewerWidget(QWidget *parent=0); + void addItem(ItemLayerList *item); + void removeAllItems(); + void setCurrentIndex(int i); +signals : + void currentChanged(int i); + +private: + QPushButton *m_pushButtonCONFIG; + QPushButton *m_pushButtonUP; + QPushButton *m_pushButtonDOWN; + QPushButton *m_pushButtonREMOVE; + QPushButton *m_pushButtonNEW; + + QHBoxLayout *m_layoutOPACITY; + QHBoxLayout *m_layoutACTION; + QVBoxLayout *m_layoutMAIN; + + QLabel *m_labelOPACITY; + QSlider *m_sliderOPACITY; + QSpinBox *m_spinBoxOPACITY; + + ItemContainer *m_widgetLIST; + +protected slots: + void newItemSelected(int i); + virtual void removeSelectedItemRequested(); + +}; + +#endif +