530
529
bg->setPixmap(*background);
532
531
m_qWidgetList.append(bg);
533
this->setFixedSize(background->width(),background->height()+100);
534
parent->setMinimumSize(background->width(), background->height()+100);
532
this->setFixedSize(background->width(),background->height());
533
parent->setMinimumSize(background->width(), background->height());
536
535
if (!WWidget::selectNode(node, "BgColor").isNull()) {
537
536
c.setNamedColor(WWidget::selectNodeQString(node, "BgColor"));
785
784
m_pOverviewCh2->setup(node);
786
785
m_pOverviewCh2->show();
787
} else if (WWidget::selectNodeInt(node, "Channel")==3)
789
if (m_pOverviewCh3 == 0) {
790
m_pOverviewCh3 = new WOverview("[Channel3]", this);
791
//m_qWidgetList.append(m_pOverviewCh2);
793
m_pOverviewCh3->setup(node);
794
m_pOverviewCh3->show();
935
926
else if (node.nodeName()=="SamplerView")
939
m_pSamplerPage = new QWidget(this);
940
m_pSamplerPage->resize(800,120);
941
m_pSamplerPage->move(0,590);
928
m_pSamplerWindow = new QFrame(this, Qt::Window | Qt::Tool);
929
m_pSamplerWindow->resize(800,100);
930
m_pSamplerWidget = new QWidget(m_pSamplerWindow);
931
m_pSamplerLayout = new QGridLayout(m_pSamplerWidget);
943
932
m_pSamplerLayout->setContentsMargins(0, 0, 0, 0);
944
m_pSamplerPage->setLayout(m_pSamplerLayout);
946
m_pSamplerSplitter = new QSplitter(m_pSamplerPage);
947
m_pSampler = new WSampler(m_pSamplerSplitter);
949
m_pSamplerSplitter->addWidget(m_pSampler);
950
m_pSamplerLayout->addWidget(m_pSamplerSplitter, 1, 0, 1,3,0);
952
m_pSampler->setup(node);
954
m_pSamplerPage->show();
933
m_pSamplerLayout->setSpacing(2);
934
m_pSamplerWidget->setLayout(m_pSamplerLayout);
937
QDomNode samplerNode = node.firstChild();
938
while (!samplerNode.isNull())
940
if (samplerNode.nodeName()=="PushButton")
942
WPushButton * p = new WPushButton(m_pSamplerWidget);
943
p->setup(samplerNode);
944
p->installEventFilter(m_pKeyboard);
945
m_pSamplerLayout->addWidget(p);
946
m_qWidgetList.append(p);
947
} else if (samplerNode.nodeName()=="Overview")
949
if (WWidget::selectNodeInt(samplerNode, "Channel")==3)
951
if (m_pOverviewCh3 == 0)
952
m_pOverviewCh3 = new WOverview("[Channel3]", m_pSamplerWidget);
953
m_pOverviewCh3->setup(samplerNode);
954
m_pSamplerLayout->addWidget(m_pOverviewCh3,0,2);
955
m_pOverviewCh3->show();
958
samplerNode = samplerNode.nextSibling();
961
m_pSamplerWindow->show();
956
964
// set default value (only if it changes from the standard value)
957
965
if (currentControl) {
996
1004
if (m_pSliderRateCh2) m_pSliderRateCh2->hide();
997
1005
if (m_pOverviewCh1) m_pOverviewCh1->hide();
998
1006
if (m_pOverviewCh2) m_pOverviewCh2->hide();
1007
if (m_pOverviewCh3) m_pOverviewCh3->hide();
999
1008
if (m_pLineEditSearch) m_pLineEditSearch->hide();
1000
1009
if (m_pTabWidget) m_pTabWidget->hide();
1010
if (m_pSamplerWindow) m_pSamplerWindow->hide();
1002
1012
//load the skin
1003
1013
QDomElement docElem = openSkin(qSkinPath);