Mercurial > hg > easaier-soundaccess
comparison view/PaneStack.cpp @ 13:7a9e35f51c7a
add easaier tab widgets, style and pass the layer characteristics in the main window (remove from panestack)
author | lbajardsilogic |
---|---|
date | Mon, 14 May 2007 06:59:52 +0000 |
parents | fc9323a41f5a |
children | 429cfea499ad |
comparison
equal
deleted
inserted
replaced
12:e612e4012ca8 | 13:7a9e35f51c7a |
---|---|
73 Pane *pane = new Pane(frame); | 73 Pane *pane = new Pane(frame); |
74 pane->setViewManager(m_viewManager); | 74 pane->setViewManager(m_viewManager); |
75 layout->addWidget(pane); | 75 layout->addWidget(pane); |
76 layout->setStretchFactor(pane, 10); | 76 layout->setStretchFactor(pane, 10); |
77 | 77 |
78 QWidget *properties = 0; | |
79 if (suppressPropertyBox) { | |
80 properties = new QFrame(); | |
81 } else { | |
82 properties = new PropertyStack(frame, pane); | |
83 connect(properties, SIGNAL(propertyContainerSelected(View *, PropertyContainer *)), | |
84 this, SLOT(propertyContainerSelected(View *, PropertyContainer *))); | |
85 connect(properties, SIGNAL(viewSelected(View *)), | |
86 this, SLOT(viewSelected(View *))); | |
87 connect(properties, SIGNAL(contextHelpChanged(const QString &)), | |
88 this, SIGNAL(contextHelpChanged(const QString &))); | |
89 } | |
90 if (m_layoutStyle == PropertyStackPerPaneLayout) { | |
91 layout->addWidget(properties); | |
92 } else { | |
93 properties->setParent(m_propertyStackStack); | |
94 m_propertyStackStack->addWidget(properties); | |
95 } | |
96 layout->setStretchFactor(properties, 1); | |
97 | |
98 PaneRec rec; | 78 PaneRec rec; |
99 rec.pane = pane; | 79 rec.pane = pane; |
100 rec.propertyStack = properties; | 80 rec.propertyStack = 0; |
101 rec.currentIndicator = currentIndicator; | 81 rec.currentIndicator = currentIndicator; |
102 rec.frame = frame; | 82 rec.frame = frame; |
103 rec.layout = layout; | 83 rec.layout = layout; |
104 m_panes.push_back(rec); | 84 m_panes.push_back(rec); |
105 | 85 |