Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 842:8432d2551fb2 tonioni
Update subrepos and merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 02 Sep 2014 16:23:48 +0100 |
parents | 7792b7667f74 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
826:43256b925e15 | 842:8432d2551fb2 |
---|---|
28 #include <QIcon> | 28 #include <QIcon> |
29 #include <QTabWidget> | 29 #include <QTabWidget> |
30 | 30 |
31 #include <iostream> | 31 #include <iostream> |
32 | 32 |
33 //#define DEBUG_PROPERTY_STACK 1 | 33 #define DEBUG_PROPERTY_STACK 1 |
34 | 34 |
35 PropertyStack::PropertyStack(QWidget *parent, View *client) : | 35 PropertyStack::PropertyStack(QWidget *parent, View *client) : |
36 QTabWidget(parent), | 36 QTabWidget(parent), |
37 m_client(client) | 37 m_client(client) |
38 { | 38 { |
83 PropertyStack::repopulate() | 83 PropertyStack::repopulate() |
84 { | 84 { |
85 blockSignals(true); | 85 blockSignals(true); |
86 | 86 |
87 #ifdef DEBUG_PROPERTY_STACK | 87 #ifdef DEBUG_PROPERTY_STACK |
88 SVDEBUG << "PropertyStack::repopulate" << endl; | 88 cerr << "PropertyStack[" << this << "]::repopulate" << endl; |
89 #endif | 89 #endif |
90 | 90 |
91 while (count() > 0) { | 91 while (count() > 0) { |
92 removeTab(0); | 92 removeTab(0); |
93 } | 93 } |
99 for (int i = 0; i < m_client->getPropertyContainerCount(); ++i) { | 99 for (int i = 0; i < m_client->getPropertyContainerCount(); ++i) { |
100 | 100 |
101 PropertyContainer *container = m_client->getPropertyContainer(i); | 101 PropertyContainer *container = m_client->getPropertyContainer(i); |
102 QString name = container->getPropertyContainerName(); | 102 QString name = container->getPropertyContainerName(); |
103 | 103 |
104 #ifdef DEBUG_PROPERTY_STACK | |
105 cerr << "PropertyStack[" << this << "]::repopulate: client " << m_client | |
106 << " returns container " << container << " (name " << name | |
107 << ") at position " << i << endl; | |
108 #endif | |
109 | |
104 PropertyBox *box = new PropertyBox(container); | 110 PropertyBox *box = new PropertyBox(container); |
105 | 111 |
106 connect(box, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool))); | 112 connect(box, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool))); |
107 connect(box, SIGNAL(contextHelpChanged(const QString &)), | 113 connect(box, SIGNAL(contextHelpChanged(const QString &)), |
108 this, SIGNAL(contextHelpChanged(const QString &))); | 114 this, SIGNAL(contextHelpChanged(const QString &))); |