summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/psewidget.cpp
authorcniehaus <cniehaus>2002-12-27 12:31:35 (UTC)
committer cniehaus <cniehaus>2002-12-27 12:31:35 (UTC)
commitc432e5eaca0ada1ede2b2966ae86be045e8c3f9b (patch) (unidiff)
tree621dd6cf0b3f2a69cb1693963f5f92e69d4cb7ea /noncore/apps/oxygen/psewidget.cpp
parent36c8b8ffff2c8a7a454aa1b8afbe96bd9b1535f9 (diff)
downloadopie-c432e5eaca0ada1ede2b2966ae86be045e8c3f9b.zip
opie-c432e5eaca0ada1ede2b2966ae86be045e8c3f9b.tar.gz
opie-c432e5eaca0ada1ede2b2966ae86be045e8c3f9b.tar.bz2
juhu, this should be fully translatable now :)
Diffstat (limited to 'noncore/apps/oxygen/psewidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index d8e4086..b396046 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -21,17 +21,18 @@
21#include <qlist.h> 21#include <qlist.h>
22#include "dataTable.h" 22#include "dataTable.h"
23#include "psewidget.h" 23#include "psewidget.h"
24#include "oxyframe.h" 24#include "oxyframe.h"
25 25
26 26
27PSEWidget::PSEWidget() : QWidget() 27PSEWidget::PSEWidget(const QStringList &list) : QWidget()
28{ 28{
29 this->setCaption( tr( "Periodic System" ) ); 29 this->setCaption( tr( "Periodic System" ) );
30 30
31 lastElement=1; 31 lastElement=1;
32 names = list;
32 33
33 QVBoxLayout *vlay = new QVBoxLayout( this ); 34 QVBoxLayout *vlay = new QVBoxLayout( this );
34 35
35 QGridLayout *grid = new QGridLayout( 18,10 ); 36 QGridLayout *grid = new QGridLayout( 18,10 );
36 int h=0, v=0; 37 int h=0, v=0;
37 38
@@ -46,13 +47,13 @@ PSEWidget::PSEWidget() : QWidget()
46 PSEframe.current()->setMinimumHeight( 11 ); 47 PSEframe.current()->setMinimumHeight( 11 );
47 PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) ); 48 PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) );
48 connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); 49 connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) ));
49 connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( inverseColor(QString) )); 50 connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( inverseColor(QString) ));
50 } 51 }
51 52
52 oxyDW = new OxydataWidget(this); 53 oxyDW = new OxydataWidget(this, "PSEWidget_oxyDW", names);
53 oxyDW->setElement( 0 ); 54 oxyDW->setElement( 0 );
54 oxyDW->setLayout(); 55 oxyDW->setLayout();
55 56
56 vlay->addLayout( grid ); 57 vlay->addLayout( grid );
57 vlay->addWidget( oxyDW ); 58 vlay->addWidget( oxyDW );
58} 59}