78 boldFont.setBold(
true );
84 const int nLabelSpacing = 6;
95 QHBoxLayout *m_pEditorTop1_hbox =
new QHBoxLayout(
m_pEditorTop1 );
96 m_pEditorTop1_hbox->setSpacing( 0 );
97 m_pEditorTop1_hbox->setContentsMargins( 0, 0, 0, 0 );
98 m_pEditorTop1_hbox->setAlignment( Qt::AlignLeft );
100 QHBoxLayout *m_pEditorTop1_hbox_2 =
new QHBoxLayout(
m_pEditorTop2 );
101 m_pEditorTop1_hbox_2->setSpacing( 2 );
102 m_pEditorTop1_hbox_2->setContentsMargins( 0, 0, 0, 0 );
103 m_pEditorTop1_hbox_2->setAlignment( Qt::AlignLeft );
112 m_pSLlabel->setToolTip( tr(
"Loaded Soundlibrary" ) );
118 m_pSizeResol->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
122 QHBoxLayout* pSizeResolLayout =
new QHBoxLayout(
m_pSizeResol );
123 pSizeResolLayout->setContentsMargins( 2, 0, 2, 0 );
124 pSizeResolLayout->setSpacing( 2 );
140 pLabel1->resize( QSize( 20, 17 ) );
141 pLabel1->setText(
"/" );
142 pLabel1->setFont( boldFont );
143 pLabel1->setToolTip( tr(
"You can use the '/' inside the pattern size spin boxes to switch back and forth." ) );
144 pLabel1->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
145 pSizeResolLayout->addWidget( pLabel1 );
154 pSizeResolLayout->addSpacing( nLabelSpacing );
159 m_pResolutionLbl->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
166 .append( tr(
"quarter" ) ) );
168 .append( tr(
"eighth" ) ) );
170 .append( tr(
"sixteenth" ) ) );
172 .append( tr(
"thirty-second" ) ) );
174 .append( tr(
"sixty-fourth" ) ) );
177 .append( tr(
"quarter triplet" ) ) );
179 .append( tr(
"eighth triplet" ) ) );
181 .append( tr(
"sixteenth triplet" ) ) );
183 .append( tr(
"thirty-second triplet" ) ) );
193 m_pRec =
new QWidget(
nullptr );
194 m_pRec->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed );
195 m_pRec->setObjectName(
"pRec" );
197 m_pEditorTop1_hbox_2->addWidget(
m_pRec );
199 QHBoxLayout* pRecLayout =
new QHBoxLayout(
m_pRec );
200 pRecLayout->setContentsMargins( 2, 0, 2, 0 );
201 pRecLayout->setSpacing( 2 );
206 m_pHearNotesLbl->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
210 "speaker.svg",
"",
false, QSize( 15, 13 ),
211 tr(
"Hear new notes" ),
false,
true );
215 m_pHearNotesBtn->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
217 pRecLayout->addSpacing( nLabelSpacing );
227 "",
false, QSize( 15, 14 ),
228 tr(
"Quantize keyboard/midi events to grid" ),
235 pRecLayout->addSpacing( nLabelSpacing );
240 m_pShowPianoLbl->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
246 __show_drum_btn->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
249 m_pEditorTop1_hbox_2->addStretch();
267 connect( zoom_in_btn, SIGNAL( clicked() ),
this, SLOT(
zoomInBtnClicked() ) );
290 connect(
m_pRulerScrollView->horizontalScrollBar(), SIGNAL( valueChanged(
int ) ),
this,
505 QHBoxLayout *pPatternEditorHScrollBarLayout =
new QHBoxLayout();
506 pPatternEditorHScrollBarLayout->setSpacing( 0 );
507 pPatternEditorHScrollBarLayout->setContentsMargins( 0, 0, 0, 0 );
509 pPatternEditorHScrollBarLayout->addWidget( zoom_in_btn );
510 pPatternEditorHScrollBarLayout->addWidget( zoom_out_btn );
512 QWidget *pPatternEditorHScrollBarContainer =
new QWidget();
513 pPatternEditorHScrollBarContainer->setLayout( pPatternEditorHScrollBarLayout );
516 QPalette label_palette;
517 label_palette.setColor( QPalette::WindowText, QColor( 230, 230, 230 ) );
531 pPropertiesPanel->setObjectName(
"PropertiesPanel" );
532 pPropertiesPanel->
setColor( QColor( 58, 62, 72 ) );
534 pPropertiesPanel->setFixedSize( 181, 100 );
536 QVBoxLayout *pPropertiesVBox =
new QVBoxLayout( pPropertiesPanel );
537 pPropertiesVBox->setSpacing( 0 );
538 pPropertiesVBox->setContentsMargins( 0, 0, 0, 0 );
561 QWidget *pMainPanel =
new QWidget();
563 QGridLayout *pGrid =
new QGridLayout();
564 pGrid->setSpacing( 0 );
565 pGrid->setContentsMargins( 0, 0, 0, 0 );
578 pGrid->addWidget( pPatternEditorHScrollBarContainer, 10, 1 );
585 pGrid->addWidget( pPropertiesPanel, 4, 0 );
586 pGrid->setRowStretch( 2, 100 );
587 pMainPanel->setLayout( pGrid );
597 case 4: nIndex = 0;
break;
598 case 8: nIndex = 1;
break;
599 case 16: nIndex = 2;
break;
600 case 32: nIndex = 3;
break;
601 case 64: nIndex = 4;
break;
608 case 8: nIndex = 6;
break;
609 case 16: nIndex = 7;
break;
610 case 32: nIndex = 8;
break;
611 case 64: nIndex = 9;
break;
620 QVBoxLayout *pVBox =
new QVBoxLayout();
621 pVBox->setSpacing( 0 );
622 pVBox->setContentsMargins( 0, 0, 0, 0 );
623 this->setLayout( pVBox );
625 pVBox->addWidget( pMainPanel );