Mercurial > hg > easaier-soundaccess
view widgets/AdvancedToolBox.h @ 7:a5175615d153
add easaier tab widgets, style and pass the layer characteristics in the main window (remove from panestack)
author | lbajardsilogic |
---|---|
date | Fri, 11 May 2007 14:11:19 +0000 |
parents | |
children | 685e31447355 |
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> 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(); QPushButton *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