Mercurial > hg > easaier-soundaccess
view widgets/AdvancedToolBox.h @ 159:685e31447355
add videoIcon and new LNF for the advanced toolbox
author | benoitrigolleau |
---|---|
date | Thu, 15 Nov 2007 14:41:11 +0000 |
parents | a5175615d153 |
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 _ADVANCED_TOOL_BOX_H #define _ADVANCED_TOOL_BOX_H #include <QPushButton> #include <QVBoxLayout> #include <QLayout> #include <QSplitter> #include <QWidget> #include <QIcon> #include "RadialLNFButton.h" class PrivateWidget : public QWidget { Q_OBJECT public : PrivateWidget(QWidget *parent=0, const QString &text="",QWidget *newWidget=0); void addWidget( const QString &text="",QWidget *newWidget=0 ); private slots: void changeSate(); private : void refreshButtonIcone(); RadialLNFButton *m_button; QWidget *m_widget; QLayout *m_layout; bool m_closed; static const int m_btnHeight = 20; }; class AdvancedToolBox : public QWidget { Q_OBJECT public: AdvancedToolBox( QWidget *parent = 0 ); void addItem( const QString &text="",QWidget *newItem=0 ); void insertItem( int index=0, const QString &text="",QWidget *newItem=0 ); void removeItem( int index=0 ); //signals: //private slots: private: QSplitter *m_splitter; }; #endif