]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/QT/QuadSplitter.h
Parameters are now part of the pipeline update process
[cpPlugins.git] / lib / cpExtensions / QT / QuadSplitter.h
1 #ifndef __CPEXTENSIONS__QT__QUADSPLITTER__H__
2 #define __CPEXTENSIONS__QT__QUADSPLITTER__H__
3
4 #include <cpExtensions/cpExtensions_Export.h>
5 #include <cpExtensions/Config.h>
6
7 #ifdef cpExtensions_Interface_QT4
8
9 /**
10  * Inspired by:
11  * https://forum.qt.io/topic/7144/quad-splitter-windows-an-implementation/2
12  */
13
14 #include <QSplitter>
15
16 namespace cpExtensions
17 {
18   namespace QT
19   {
20     /**
21      */
22     class cpExtensions_EXPORT QuadSplitter
23       : public QSplitter
24     {
25       Q_OBJECT;
26
27     public:
28       QuadSplitter( QWidget* parent = 0 );
29       virtual ~QuadSplitter( );
30
31       void addWidgets( QWidget* a, QWidget* b, QWidget* c, QWidget* d );
32
33     private slots:
34       void _SyncBottom( int a, int b );
35       void _SyncUpper( int a, int b );
36
37     protected:
38       QSplitter m_Bottom;
39       QSplitter m_Upper;
40     };
41
42   } // ecapseman
43
44 } // ecapseman
45
46 #endif // cpExtensions_Interface_QT4
47
48 #endif // __CPEXTENSIONS__QT__QUADSPLITTER__H__
49
50 // eof - $RCSfile$