summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/powerchord/fretboard.cpp16
-rw-r--r--noncore/multimedia/powerchord/powerchordbase.cpp17
2 files changed, 16 insertions, 17 deletions
diff --git a/noncore/multimedia/powerchord/fretboard.cpp b/noncore/multimedia/powerchord/fretboard.cpp
index bf78e4c..2e48f26 100644
--- a/noncore/multimedia/powerchord/fretboard.cpp
+++ b/noncore/multimedia/powerchord/fretboard.cpp
@@ -1,176 +1,174 @@
1// 1//
2// FretBoard class to display interface for chord finder application 2// FretBoard class to display interface for chord finder application
3// 3//
4 4
5// Copyright (c) 2001 Camilo Mesias 5// Copyright (c) 2001 Camilo Mesias
6// camilo@mesias.co.uk 6// camilo@mesias.co.uk
7// 7//
8// This program is free software; you can redistribute it and/or 8// This program is free software; you can redistribute it and/or
9// modify it under the terms of the GNU General Public License 9// modify it under the terms of the GNU General Public License
10// as published by the Free Software Foundation; either version 2 10// as published by the Free Software Foundation; either version 2
11// of the License, or (at your option) any later version. 11// of the License, or (at your option) any later version.
12// 12//
13// This program is distributed in the hope that it will be useful, 13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of 14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details. 16// GNU General Public License for more details.
17// 17//
18// You should have received a copy of the GNU General Public License 18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software 19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 21
22//#include <FL/Fl.H>
23//#include <FL/Fl_Widget.H>
24//#include <FL/fl_draw.H>
25#include <stdio.h>
26#include <qpe/resource.h>
27#include "fretboard.h" 22#include "fretboard.h"
23
24#include <opie2/oresource.h>
25
28#include <qpainter.h> 26#include <qpainter.h>
29 27
30void FretBoard::refresh(){ 28void FretBoard::refresh(){
31 ce.calculate(); 29 ce.calculate();
32 30
33 emit nameChanged(QString(ce.label())); 31 emit nameChanged(QString(ce.label()));
34 32
35 for (int i=0;i<6;i++){ 33 for (int i=0;i<6;i++){
36 Finger(i, ce.finger(i)); 34 Finger(i, ce.finger(i));
37 // yuk 35 // yuk
38 switch (i) { 36 switch (i) {
39 case 0: 37 case 0:
40 emit s1nameChanged(QString(ce.name(i))); 38 emit s1nameChanged(QString(ce.name(i)));
41 break; 39 break;
42 case 1: 40 case 1:
43 emit s2nameChanged(QString(ce.name(i))); 41 emit s2nameChanged(QString(ce.name(i)));
44 break; 42 break;
45 case 2: 43 case 2:
46 emit s3nameChanged(QString(ce.name(i))); 44 emit s3nameChanged(QString(ce.name(i)));
47 break; 45 break;
48 case 3: 46 case 3:
49 emit s4nameChanged(QString(ce.name(i))); 47 emit s4nameChanged(QString(ce.name(i)));
50 break; 48 break;
51 case 4: 49 case 4:
52 emit s5nameChanged(QString(ce.name(i))); 50 emit s5nameChanged(QString(ce.name(i)));
53 break; 51 break;
54 case 5: 52 case 5:
55 emit s6nameChanged(QString(ce.name(i))); 53 emit s6nameChanged(QString(ce.name(i)));
56 break; 54 break;
57 } 55 }
58 } 56 }
59 57
60 update(); 58 update();
61} 59}
62 60
63FretBoard::FretBoard(QWidget *parent, const char *name ) 61FretBoard::FretBoard(QWidget *parent, const char *name )
64 : QWidget( parent, name ), ce() 62 : QWidget( parent, name ), ce()
65{ 63{
66 64
67 ce.base(9); 65 ce.base(9);
68 ce.chord(0); 66 ce.chord(0);
69 ce.fret(0); 67 ce.fret(0);
70 ce.span(1); 68 ce.span(1);
71 ce.vary(7); 69 ce.vary(7);
72 ce.tune(0); 70 ce.tune(0);
73 refresh(); 71 refresh();
74 72
75 // setPalette( QPalette( QColor( 250, 250, 200) ) ); 73 // setPalette( QPalette( QColor( 250, 250, 200) ) );
76 74
77 stringtop_pix = Resource::loadPixmap( "powerchord/stringtop_s"); 75 stringtop_pix = Opie::Core::OResource::loadPixmap( "powerchord/stringtop_s");
78 string_pix = Resource::loadPixmap( "powerchord/string_s"); 76 string_pix = Opie::Core::OResource::loadPixmap( "powerchord/string_s");
79 finger_pix = Resource::loadPixmap( "powerchord/justfing_s"); 77 finger_pix = Opie::Core::OResource::loadPixmap( "powerchord/justfing_s");
80 mute_pix = Resource::loadPixmap( "powerchord/muted_s"); 78 mute_pix = Opie::Core::OResource::loadPixmap( "powerchord/muted_s");
81 79
82 // box(FL_NO_BOX); 80 // box(FL_NO_BOX);
83 81
84 // finger[0] = OPEN; 82 // finger[0] = OPEN;
85 // finger[1] = OPEN; 83 // finger[1] = OPEN;
86 // finger[2] = OPEN; 84 // finger[2] = OPEN;
87 // finger[3] = OPEN; 85 // finger[3] = OPEN;
88 // finger[4] = OPEN; 86 // finger[4] = OPEN;
89 // finger[5] = OPEN; 87 // finger[5] = OPEN;
90 88
91 initial_fret = 0; 89 initial_fret = 0;
92 90
93 // label(FL_NORMAL_LABEL, "Chord"); 91 // label(FL_NORMAL_LABEL, "Chord");
94} 92}
95 93
96// int FretBoard::Finger(int f){ 94// int FretBoard::Finger(int f){
97// if (f < 0 || f > 5){ 95// if (f < 0 || f > 5){
98// fprintf(stderr, "Error - finger value was %d\n", f); 96// fprintf(stderr, "Error - finger value was %d\n", f);
99// return 0; 97// return 0;
100// } 98// }
101// return finger[f]; 99// return finger[f];
102// } 100// }
103 101
104void FretBoard::Finger(int f, int position){ 102void FretBoard::Finger(int f, int position){
105 if (f < 0 || f > 5){ 103 if (f < 0 || f > 5){
106 fprintf(stderr, "Error - finger2 value was %d\n", f); 104 fprintf(stderr, "Error - finger2 value was %d\n", f);
107 return; 105 return;
108 } 106 }
109 107
110 finger[f] = position; 108 finger[f] = position;
111} 109}
112 110
113// void FretBoard::draw(void) { 111// void FretBoard::draw(void) {
114// draw_box(); 112// draw_box();
115// draw_label(); 113// draw_label();
116// } 114// }
117 115
118// void FretBoard::draw_label(void) { 116// void FretBoard::draw_label(void) {
119// align(FL_ALIGN_CENTER | FL_ALIGN_TOP | FL_ALIGN_WRAP); 117// align(FL_ALIGN_CENTER | FL_ALIGN_TOP | FL_ALIGN_WRAP);
120 118
121// this->Fl_Widget::draw_label(); 119// this->Fl_Widget::draw_label();
122// } 120// }
123 121
124 122
125//void FretBoard::draw_box(void) { 123//void FretBoard::draw_box(void) {
126 124
127void FretBoard::paintEvent(QPaintEvent *){ 125void FretBoard::paintEvent(QPaintEvent *){
128 126
129 // fl_color(FL_WHITE); 127 // fl_color(FL_WHITE);
130 128
131 // Fl_Widget::draw_box(); 129 // Fl_Widget::draw_box();
132 130
133 // fl_color(FL_BLACK); 131 // fl_color(FL_BLACK);
134 132
135 QPainter p( this ); 133 QPainter p( this );
136 134
137 p.setBrush(black); 135 p.setBrush(black);
138 p.translate(0, 0); 136 p.translate(0, 0);
139 137
140 // draw each string 138 // draw each string
141 for (int f=0; f<=5; f++){ 139 for (int f=0; f<=5; f++){
142 // draw a string starting from the highest visible fret 140 // draw a string starting from the highest visible fret
143 for (int pp=0; pp<=6; pp++){ 141 for (int pp=0; pp<=6; pp++){
144 int this_fret = initial_fret + pp; 142 int this_fret = initial_fret + pp;
145 int cx = /* x() + */ 28*f; 143 int cx = /* x() + */ 28*f;
146 int cy = /* y() + */ pp*30; 144 int cy = /* y() + */ pp*30;
147 145
148 //fl_color(FL_WHITE); 146 //fl_color(FL_WHITE);
149 // fl_rectf(cx, cy, 24, 24); 147 // fl_rectf(cx, cy, 24, 24);
150 // p.setBrush(white); 148 // p.setBrush(white);
151 // p.setPen(NoPen); 149 // p.setPen(NoPen);
152 150
153 // p.drawRect( QRect(cx, cy, 24, 24) ); 151 // p.drawRect( QRect(cx, cy, 24, 24) );
154// fl_color(FL_BLACK); 152// fl_color(FL_BLACK);
155 // p.setBrush(black); 153 // p.setBrush(black);
156 154
157 // p.setPen(black); 155 // p.setPen(black);
158 156
159 // draw the string unless at top 157 // draw the string unless at top
160 if (this_fret!=0){ 158 if (this_fret!=0){
161 //fl_line(cx+12, cy, cx+12, cy+23); 159 //fl_line(cx+12, cy, cx+12, cy+23);
162 //p.drawLine(cx+12, cy, cx+12, cy+23); 160 //p.drawLine(cx+12, cy, cx+12, cy+23);
163 } 161 }
164 162
165 // draw mutes if at top 163 // draw mutes if at top
166 if (pp == 0 && 164 if (pp == 0 &&
167 finger[f] == MUTED){ 165 finger[f] == MUTED){
168 p.drawPixmap(cx,cy,mute_pix); 166 p.drawPixmap(cx,cy,mute_pix);
169 //fl_line(cx+4, cy+19, cx+19, cy+4); 167 //fl_line(cx+4, cy+19, cx+19, cy+4);
170 //p.drawLine(cx+4, cy+19, cx+19, cy+4); 168 //p.drawLine(cx+4, cy+19, cx+19, cy+4);
171 //fl_line(cx+5, cy+19, cx+20, cy+4); 169 //fl_line(cx+5, cy+19, cx+20, cy+4);
172 //p.drawLine(cx+5, cy+19, cx+20, cy+4); 170 //p.drawLine(cx+5, cy+19, cx+20, cy+4);
173 //fl_line(cx+4, cy+4, cx+19, cy+19); 171 //fl_line(cx+4, cy+4, cx+19, cy+19);
174 //p.drawLine(cx+4, cy+4, cx+19, cy+19); 172 //p.drawLine(cx+4, cy+4, cx+19, cy+19);
175 //fl_line(cx+5, cy+4, cx+20, cy+19); 173 //fl_line(cx+5, cy+4, cx+20, cy+19);
176 //p.drawLine(cx+5, cy+4, cx+20, cy+19); 174 //p.drawLine(cx+5, cy+4, cx+20, cy+19);
diff --git a/noncore/multimedia/powerchord/powerchordbase.cpp b/noncore/multimedia/powerchord/powerchordbase.cpp
index f0d1487..0efc4bd 100644
--- a/noncore/multimedia/powerchord/powerchordbase.cpp
+++ b/noncore/multimedia/powerchord/powerchordbase.cpp
@@ -1,143 +1,144 @@
1/**************************************************************************** 1/****************************************************************************
2** Form implementation generated from reading ui file 'powerchordbase.ui' 2** Form implementation generated from reading ui file 'powerchordbase.ui'
3** 3**
4** Created: Sun Jan 13 23:05:11 2002 4** Created: Sun Jan 13 23:05:11 2002
5** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
6** 6**
7** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
8****************************************************************************/ 8****************************************************************************/
9#include "powerchordbase.h" 9#include "powerchordbase.h"
10#include "fretboard.h" 10#include "fretboard.h"
11#include "vumeter.h" 11#include "vumeter.h"
12 12
13/* OPIE */ 13/* OPIE */
14#include <opie2/odebug.h> 14#include <opie2/odebug.h>
15#include <qpe/resource.h> 15#include <opie2/oresource.h>
16using namespace Opie::Core; 16using namespace Opie::Core;
17 17
18/* QT */ 18/* QT */
19#include <qbitmap.h>
19#include <qcombobox.h> 20#include <qcombobox.h>
20#include <qlabel.h> 21#include <qlabel.h>
21#include <qlistbox.h> 22#include <qlistbox.h>
22#include <qpushbutton.h> 23#include <qpushbutton.h>
23#include <qspinbox.h> 24#include <qspinbox.h>
24#include <qtabwidget.h> 25#include <qtabwidget.h>
25#include <qlayout.h> 26#include <qlayout.h>
26#include <qtooltip.h> 27#include <qtooltip.h>
27 28
28/* 29/*
29 * Constructs a PowerchordBase which is a child of 'parent', with the 30 * Constructs a PowerchordBase which is a child of 'parent', with the
30 * name 'name' and widget flags set to 'f' 31 * name 'name' and widget flags set to 'f'
31 */ 32 */
32PowerchordBase::PowerchordBase( QWidget* parent, const char* name, WFlags fl ) 33PowerchordBase::PowerchordBase( QWidget* parent, const char* name, WFlags fl )
33 : QWidget( parent, name, fl ) 34 : QWidget( parent, name, fl )
34{ 35{
35 simulation_timer = 0; 36 simulation_timer = 0;
36 audio_timer = 0; 37 audio_timer = 0;
37 38
38 // setPalette( QPalette( QColor( 232, 227, 215) ) ); 39 // setPalette( QPalette( QColor( 232, 227, 215) ) );
39 40
40 // QPixmap image0(QString("/opt/Qtopia/pics/powerchord/image0")); 41 // QPixmap image0(QString("/opt/Qtopia/pics/powerchord/image0"));
41 QPixmap image1 = Resource::loadPixmap( "powerchord/image1"); 42 QPixmap image1 = Opie::Core::OResource::loadPixmap( "powerchord/image1");
42 QPixmap image2 = Resource::loadPixmap( "powerchord/image2"); 43 QPixmap image2 = Opie::Core::OResource::loadPixmap( "powerchord/image2");
43 QPixmap image3 = Resource::loadPixmap( "powerchord/image3"); 44 QPixmap image3 = Opie::Core::OResource::loadPixmap( "powerchord/image3");
44 QPixmap image4 = Resource::loadPixmap( "powerchord/image4"); 45 QPixmap image4 = Opie::Core::OResource::loadPixmap( "powerchord/image4");
45 QPixmap image5 = Resource::loadPixmap( "powerchord/image5"); 46 QPixmap image5 = Opie::Core::OResource::loadPixmap( "powerchord/image5");
46 image6 = Resource::loadPixmap( "powerchord/image6"); 47 image6 = Opie::Core::OResource::loadPixmap( "powerchord/image6");
47 image_open = Resource::loadPixmap( "powerchord/image_open"); 48 image_open = Opie::Core::OResource::loadPixmap( "powerchord/image_open");
48 49
49 // image0.setMask(image0.createHeuristicMask()); 50 // image0.setMask(image0.createHeuristicMask());
50 image1.setMask(image1.createHeuristicMask()); 51 image1.setMask(image1.createHeuristicMask());
51 // image2.setMask(image2.createHeuristicMask()); 52 // image2.setMask(image2.createHeuristicMask());
52 // image3.setMask(image3.createHeuristicMask()); 53 // image3.setMask(image3.createHeuristicMask());
53 // image4.setMask(image4.createHeuristicMask()); 54 // image4.setMask(image4.createHeuristicMask());
54 // image5.setMask(image5.createHeuristicMask()); 55 // image5.setMask(image5.createHeuristicMask());
55 // image6->setMask(image6->createHeuristicMask()); 56 // image6->setMask(image6->createHeuristicMask());
56 // image_open->setMask(image_open->createHeuristicMask()); 57 // image_open->setMask(image_open->createHeuristicMask());
57 58
58 if ( !name ) 59 if ( !name )
59 setName( "PowerchordBase" ); 60 setName( "PowerchordBase" );
60 resize( 240, 284 ); 61 resize( 240, 284 );
61 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) ); 62 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) );
62 setMinimumSize( QSize( 240, 284 ) ); 63 setMinimumSize( QSize( 240, 284 ) );
63 setMaximumSize( QSize( 240, 284 ) ); 64 setMaximumSize( QSize( 240, 284 ) );
64 setCaption( tr( "Powerchord" ) ); 65 setCaption( tr( "Powerchord" ) );
65 66
66 tabs = new QTabWidget( this, "tabs" ); 67 tabs = new QTabWidget( this, "tabs" );
67 tabs->setEnabled( TRUE ); 68 tabs->setEnabled( TRUE );
68 tabs->setGeometry( QRect( 0, 0, 240, 286 ) ); 69 tabs->setGeometry( QRect( 0, 0, 240, 286 ) );
69 tabs->setTabPosition( QTabWidget::Bottom ); 70 tabs->setTabPosition( QTabWidget::Bottom );
70 71
71 tab = new QWidget( tabs, "tab" ); 72 tab = new QWidget( tabs, "tab" );
72 73
73 chordkey = new QComboBox( FALSE, tab, "chordkey" ); 74 chordkey = new QComboBox( FALSE, tab, "chordkey" );
74 chordkey->insertItem( tr( "maj" ) ); 75 chordkey->insertItem( tr( "maj" ) );
75 chordkey->insertItem( tr( "min" ) ); 76 chordkey->insertItem( tr( "min" ) );
76 chordkey->insertItem( tr( "7th" ) ); 77 chordkey->insertItem( tr( "7th" ) );
77 chordkey->insertItem( tr( "m7" ) ); 78 chordkey->insertItem( tr( "m7" ) );
78 chordkey->insertItem( tr( "maj7" ) ); 79 chordkey->insertItem( tr( "maj7" ) );
79 chordkey->insertItem( tr( "6th" ) ); 80 chordkey->insertItem( tr( "6th" ) );
80 chordkey->insertItem( tr( "m6th" ) ); 81 chordkey->insertItem( tr( "m6th" ) );
81 chordkey->insertItem( tr( "aug" ) ); 82 chordkey->insertItem( tr( "aug" ) );
82 chordkey->insertItem( tr( "dim" ) ); 83 chordkey->insertItem( tr( "dim" ) );
83 chordkey->insertItem( tr( "sus4" ) ); 84 chordkey->insertItem( tr( "sus4" ) );
84 chordkey->insertItem( tr( "7sus4" ) ); 85 chordkey->insertItem( tr( "7sus4" ) );
85 chordkey->insertItem( tr( "9th" ) ); 86 chordkey->insertItem( tr( "9th" ) );
86 chordkey->insertItem( tr( "add9" ) ); 87 chordkey->insertItem( tr( "add9" ) );
87 chordkey->insertItem( tr( "m9th" ) ); 88 chordkey->insertItem( tr( "m9th" ) );
88 chordkey->insertItem( tr( "maj9" ) ); 89 chordkey->insertItem( tr( "maj9" ) );
89 chordkey->insertItem( tr( "sus2" ) ); 90 chordkey->insertItem( tr( "sus2" ) );
90 chordkey->insertItem( tr( "7sus2" ) ); 91 chordkey->insertItem( tr( "7sus2" ) );
91 chordkey->insertItem( tr( "11th" ) ); 92 chordkey->insertItem( tr( "11th" ) );
92 chordkey->insertItem( tr( "m11th" ) ); 93 chordkey->insertItem( tr( "m11th" ) );
93 chordkey->insertItem( tr( "13th" ) ); 94 chordkey->insertItem( tr( "13th" ) );
94 chordkey->insertItem( tr( "m13th" ) ); 95 chordkey->insertItem( tr( "m13th" ) );
95 chordkey->insertItem( tr( "maj13" ) ); 96 chordkey->insertItem( tr( "maj13" ) );
96 chordkey->insertItem( tr( "6/9" ) ); 97 chordkey->insertItem( tr( "6/9" ) );
97 chordkey->insertItem( tr( "flat5" ) ); 98 chordkey->insertItem( tr( "flat5" ) );
98 chordkey->insertItem( tr( "7#9" ) ); 99 chordkey->insertItem( tr( "7#9" ) );
99 chordkey->insertItem( tr( QString::fromUtf8( "ø7" ) ) ); 100 chordkey->insertItem( tr( QString::fromUtf8( "ø7" ) ) );
100 chordkey->insertItem( tr( "5" ) ); 101 chordkey->insertItem( tr( "5" ) );
101 chordkey->setGeometry( QRect( 40, 0, 51, 21 ) ); 102 chordkey->setGeometry( QRect( 40, 0, 51, 21 ) );
102 103
103 chordfret = new QComboBox( FALSE, tab, "chordfret" ); 104 chordfret = new QComboBox( FALSE, tab, "chordfret" );
104 chordfret->insertItem( tr( "open" ) ); 105 chordfret->insertItem( tr( "open" ) );
105 chordfret->insertItem( tr( "1st" ) ); 106 chordfret->insertItem( tr( "1st" ) );
106 chordfret->insertItem( tr( "2nd" ) ); 107 chordfret->insertItem( tr( "2nd" ) );
107 chordfret->insertItem( tr( "3rd" ) ); 108 chordfret->insertItem( tr( "3rd" ) );
108 chordfret->insertItem( tr( "4th" ) ); 109 chordfret->insertItem( tr( "4th" ) );
109 chordfret->insertItem( tr( "5th" ) ); 110 chordfret->insertItem( tr( "5th" ) );
110 chordfret->insertItem( tr( "6th" ) ); 111 chordfret->insertItem( tr( "6th" ) );
111 chordfret->insertItem( tr( "7th" ) ); 112 chordfret->insertItem( tr( "7th" ) );
112 chordfret->insertItem( tr( "8th" ) ); 113 chordfret->insertItem( tr( "8th" ) );
113 chordfret->insertItem( tr( "9th" ) ); 114 chordfret->insertItem( tr( "9th" ) );
114 chordfret->insertItem( tr( "10th" ) ); 115 chordfret->insertItem( tr( "10th" ) );
115 chordfret->insertItem( tr( "11th" ) ); 116 chordfret->insertItem( tr( "11th" ) );
116 chordfret->insertItem( tr( "12th" ) ); 117 chordfret->insertItem( tr( "12th" ) );
117 chordfret->insertItem( tr( "13th" ) ); 118 chordfret->insertItem( tr( "13th" ) );
118 chordfret->insertItem( tr( "14th" ) ); 119 chordfret->insertItem( tr( "14th" ) );
119 chordfret->insertItem( tr( "15th" ) ); 120 chordfret->insertItem( tr( "15th" ) );
120 chordfret->insertItem( tr( "16th" ) ); 121 chordfret->insertItem( tr( "16th" ) );
121 chordfret->setGeometry( QRect( 90, 0, 55, 21 ) ); //cxm less 5 width 122 chordfret->setGeometry( QRect( 90, 0, 55, 21 ) ); //cxm less 5 width
122 123
123 chordnote = new QComboBox( FALSE, tab, "chordnote" ); 124 chordnote = new QComboBox( FALSE, tab, "chordnote" );
124 chordnote->insertItem( tr( "C" ) ); 125 chordnote->insertItem( tr( "C" ) );
125 chordnote->insertItem( tr( "C#" ) ); 126 chordnote->insertItem( tr( "C#" ) );
126 chordnote->insertItem( tr( "D" ) ); 127 chordnote->insertItem( tr( "D" ) );
127 chordnote->insertItem( tr( "Eb" ) ); 128 chordnote->insertItem( tr( "Eb" ) );
128 chordnote->insertItem( tr( "E" ) ); 129 chordnote->insertItem( tr( "E" ) );
129 chordnote->insertItem( tr( "F" ) ); 130 chordnote->insertItem( tr( "F" ) );
130 chordnote->insertItem( tr( "F#" ) ); 131 chordnote->insertItem( tr( "F#" ) );
131 chordnote->insertItem( tr( "G" ) ); 132 chordnote->insertItem( tr( "G" ) );
132 chordnote->insertItem( tr( "G#" ) ); 133 chordnote->insertItem( tr( "G#" ) );
133 chordnote->insertItem( tr( "A" ) ); 134 chordnote->insertItem( tr( "A" ) );
134 chordnote->insertItem( tr( "Bb" ) ); 135 chordnote->insertItem( tr( "Bb" ) );
135 chordnote->insertItem( tr( "B" ) ); 136 chordnote->insertItem( tr( "B" ) );
136 chordnote->setGeometry( QRect( 0, 0, 40, 21 ) ); 137 chordnote->setGeometry( QRect( 0, 0, 40, 21 ) );
137 chordnote->setCurrentItem( 9 ); 138 chordnote->setCurrentItem( 9 );
138 139
139 QWidget* privateLayoutWidget = new QWidget( tab, "Layout1" ); 140 QWidget* privateLayoutWidget = new QWidget( tab, "Layout1" );
140 privateLayoutWidget->setGeometry( QRect( 5, 232, 160, 20 ) ); 141 privateLayoutWidget->setGeometry( QRect( 5, 232, 160, 20 ) );
141 Layout1 = new QHBoxLayout( privateLayoutWidget ); 142 Layout1 = new QHBoxLayout( privateLayoutWidget );
142 Layout1->setSpacing( 6 ); 143 Layout1->setSpacing( 6 );
143 Layout1->setMargin( 0 ); 144 Layout1->setMargin( 0 );