-rw-r--r-- | noncore/multimedia/powerchord/fretboard.cpp | 16 | ||||
-rw-r--r-- | noncore/multimedia/powerchord/powerchordbase.cpp | 17 |
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 | |||
@@ -14,22 +14,20 @@ | |||
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 | ||
30 | void FretBoard::refresh(){ | 28 | void 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++){ |
@@ -69,20 +67,20 @@ FretBoard::FretBoard(QWidget *parent, const char *name ) | |||
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; |
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 | |||
@@ -7,20 +7,21 @@ | |||
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> |
16 | using namespace Opie::Core; | 16 | using 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> |
@@ -33,23 +34,23 @@ PowerchordBase::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()); |