summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-12-01 13:02:00 (UTC)
committer cniehaus <cniehaus>2002-12-01 13:02:00 (UTC)
commit5e82b4c17131cdc1b8be57e312f594d1a55520aa (patch) (side-by-side diff)
treefad787c83503127f1e1b67b743730f250f9dd6e3
parentbeb043f41e232e9dc8768e5fd619c2b80e805f73 (diff)
downloadopie-5e82b4c17131cdc1b8be57e312f594d1a55520aa.zip
opie-5e82b4c17131cdc1b8be57e312f594d1a55520aa.tar.gz
opie-5e82b4c17131cdc1b8be57e312f594d1a55520aa.tar.bz2
is that the way it should be, Holger?
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.cpp6
-rw-r--r--noncore/apps/oxygen/psewidget.h6
2 files changed, 11 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index 2fd61bc..eb4093b 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -36,13 +36,12 @@ PSEWidget::PSEWidget() : QWidget()
Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File );
for( int n = 0 ; n < 109 ; n++ )
{
configobj.setGroup( QString::number( n+1 ));
position( n+1,h,v );
- QList<OxyFrame> PSEframe;
PSEframe.append( new OxyFrame( this , QString::number(n), configobj.readEntry( "Symbol" ) ) );
grid->addWidget( PSEframe.current() , v/40+1 , h/40 );
PSEframe.current()->setMinimumHeight( 11 );
PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) );
connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) ));
}
@@ -62,12 +61,17 @@ QColor PSEWidget::PSEColor( QString block )
else if ( block == "d" ) c.setRgb( 200,230,160 );
else if ( block == "p" ) c.setRgb( 238,146,138 );
else if ( block == "f" ) c.setRgb( 190 , 190 , 190 );
return c;
};
+void PSEWidget::inverseColor( QString number )
+{
+ //foo
+}
+
void PSEWidget::slotShowElement(QString number)
{
oxyDW->setElement( number.toInt() );
};
void PSEWidget::position(int n, int& h, int& v)
diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h
index fdf838e..d8d2c5f 100644
--- a/noncore/apps/oxygen/psewidget.h
+++ b/noncore/apps/oxygen/psewidget.h
@@ -15,25 +15,31 @@
* *
**************************************************************************/
#ifndef _PSEWIDGET_H
#define _PSEWIDGET_H
#include <qwidget.h>
+#include <qlist.h>
+#include "oxyframe.h"
class QGridLayout;
class OxydataWidget;
+class PSEframe;
class PSEWidget : public QWidget
{
Q_OBJECT
public:
PSEWidget();
QGridLayout *bottom_grid;
OxydataWidget *oxyDW;
+ void inverseColor( QString );
+ QList<OxyFrame> PSEframe;
+
private:
QGridLayout *maingrid;
void position( int, int&, int& );
QColor PSEColor( QString );