-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/oxygen/oxyframe.cpp | 8 | ||||
-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 15 | ||||
-rw-r--r-- | noncore/apps/oxygen/psewidget.h | 1 |
4 files changed, 22 insertions, 6 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 870ac56..70b5a6a 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -94,5 +94,5 @@ void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, b | |||
94 | if ( row%2 ) | 94 | if ( row%2 ) |
95 | colgrp.setColor( QColorGroup::Base, QColor( cyan ) ); | 95 | colgrp.setColor( QColorGroup::Base, QColor( 180,200,210 ) ); |
96 | else | 96 | else |
97 | colgrp.setColor( QColorGroup::Base, QColor( white ) ); | 97 | colgrp.setColor( QColorGroup::Base, QColor( 230,235,235 ) ); |
98 | p->save(); | 98 | p->save(); |
diff --git a/noncore/apps/oxygen/oxyframe.cpp b/noncore/apps/oxygen/oxyframe.cpp index 2d7fc84..a5f262e 100644 --- a/noncore/apps/oxygen/oxyframe.cpp +++ b/noncore/apps/oxygen/oxyframe.cpp | |||
@@ -16,6 +16,6 @@ OxyFrame::OxyFrame(QWidget *parent, const char *name) : QFrame(parent,name) | |||
16 | N = name; | 16 | N = name; |
17 | this->setFrameStyle( QFrame::Panel ); | 17 | this->setFrameStyle( QFrame::Box ); |
18 | this->setLineWidth( 2 ); | 18 | this->setLineWidth( 0 ); |
19 | this->setFrameShadow( QFrame::Raised ); | 19 | this->setMidLineWidth( 1 ); |
20 | this->setBackgroundColor( QColor( green ) ); | 20 | this->setFrameShadow( QFrame::Sunken ); |
21 | } | 21 | } |
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp index f7725e3..78e54d5 100644 --- a/noncore/apps/oxygen/psewidget.cpp +++ b/noncore/apps/oxygen/psewidget.cpp | |||
@@ -25,4 +25,8 @@ PSEWidget::PSEWidget() : QWidget() | |||
25 | int h=0, v=0; | 25 | int h=0, v=0; |
26 | |||
27 | Config configobj( "oxygendata" ); | ||
26 | for( int n = 0 ; n < 118 ; n++ ) | 28 | for( int n = 0 ; n < 118 ; n++ ) |
27 | { | 29 | { |
30 | configobj.setGroup( QString::number( n+1 )); | ||
31 | |||
28 | position( n+1,h,v ); | 32 | position( n+1,h,v ); |
@@ -32,2 +36,3 @@ PSEWidget::PSEWidget() : QWidget() | |||
32 | PSEframe.current()->setMinimumHeight( 11 ); | 36 | PSEframe.current()->setMinimumHeight( 11 ); |
37 | PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) ); | ||
33 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); | 38 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); |
@@ -42,2 +47,12 @@ PSEWidget::PSEWidget() : QWidget() | |||
42 | 47 | ||
48 | QColor PSEWidget::PSEColor( QString block ) | ||
49 | { | ||
50 | QColor c; | ||
51 | if ( block == "s" ) c.setRgb( 213 , 233 , 231 ); | ||
52 | else if ( block == "d" ) c.setRgb( 200,230,160 ); | ||
53 | else if ( block == "p" ) c.setRgb( 238,146,138 ); | ||
54 | else if ( block == "f" ) c.setRgb( 190 , 190 , 190 ); | ||
55 | return c; | ||
56 | }; | ||
57 | |||
43 | void PSEWidget::slotShowElement(QString number) | 58 | void PSEWidget::slotShowElement(QString number) |
diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h index a7a8603..f69eeb3 100644 --- a/noncore/apps/oxygen/psewidget.h +++ b/noncore/apps/oxygen/psewidget.h | |||
@@ -30,2 +30,3 @@ class PSEWidget : public QWidget | |||
30 | void position( int, int&, int& ); | 30 | void position( int, int&, int& ); |
31 | QColor PSEColor( QString ); | ||
31 | 32 | ||