summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp
index e3d378b..d740b6f 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp
@@ -1,86 +1,88 @@
1/* 1/*
2 * stocktickeRconfig.cpp 2 * stocktickeRconfig.cpp
3 * 3 *
4 * copyright : (c) 2002 by ljp 4 * copyright : (c) 2002 by ljp
5 * email : llornkcor@handhelds.org 5 * email : llornkcor@handhelds.org
6 * 6 *
7 */ 7 */
8/*************************************************************************** 8/***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#include "stocktickerconfig.h" 17#include "stocktickerconfig.h"
18#include <opie/todayconfigwidget.h> 18#include <opie/todayconfigwidget.h>
19 19
20#include <qpe/config.h>
20 21
21#include <qapplication.h> 22#include <qapplication.h>
22 23
24#include <qlayout.h>
23#include <qspinbox.h> 25#include <qspinbox.h>
24#include <qcheckbox.h> 26#include <qcheckbox.h>
25#include <qlineedit.h> 27#include <qlineedit.h>
26#include <qvariant.h> 28#include <qvariant.h>
27#include <qpushbutton.h> 29#include <qpushbutton.h>
28#include <qwhatsthis.h> 30#include <qwhatsthis.h>
29#include <qlabel.h> 31#include <qlabel.h>
30#include <qstringlist.h> 32#include <qstringlist.h>
31#include <qmainwindow.h> 33#include <qmainwindow.h>
32 34
33#include <stdlib.h> 35#include <stdlib.h>
34 36
35StocktickerPluginConfig::StocktickerPluginConfig( QWidget *parent, const char* name) 37StocktickerPluginConfig::StocktickerPluginConfig( QWidget *parent, const char* name)
36 : TodayConfigWidget(parent, name ) { 38 : TodayConfigWidget(parent, name ) {
37 39
38 QGridLayout *layout = new QGridLayout( this ); 40 QGridLayout *layout = new QGridLayout( this );
39 layout->setSpacing(2); 41 layout->setSpacing(2);
40 layout->setMargin( 2); 42 layout->setMargin( 2);
41 43
42 LineEdit1 = new QLineEdit( this, "LineEdit1" ); 44 LineEdit1 = new QLineEdit( this, "LineEdit1" );
43 LineEdit1->setFocus(); 45 LineEdit1->setFocus();
44// QWhatsThis::add( LineEdit1, tr("Enter the stock symbols you want to be shown here.")); 46// QWhatsThis::add( LineEdit1, tr("Enter the stock symbols you want to be shown here."));
45 47
46 layout->addMultiCellWidget( LineEdit1, 0, 0, 0, 4); 48 layout->addMultiCellWidget( LineEdit1, 0, 0, 0, 4);
47 49
48 Config cfg( "stockticker"); 50 Config cfg( "stockticker");
49 cfg.setGroup( "Symbols" ); 51 cfg.setGroup( "Symbols" );
50 QString symbollist; 52 QString symbollist;
51 symbollist = cfg.readEntry("Symbols", ""); 53 symbollist = cfg.readEntry("Symbols", "");
52 LineEdit1->setText(symbollist); 54 LineEdit1->setText(symbollist);
53 55
54 QLabel *label; 56 QLabel *label;
55 label = new QLabel(this); 57 label = new QLabel(this);
56 label->setText( tr("Enter stock symbols seperated\nby a space.")); 58 label->setText( tr("Enter stock symbols seperated\nby a space."));
57 label->setMaximumHeight(60); 59 label->setMaximumHeight(60);
58 layout->addMultiCellWidget( label, 1, 1, 0, 4); 60 layout->addMultiCellWidget( label, 1, 1, 0, 4);
59 61
60 cfg.setGroup( "Fields" ); 62 cfg.setGroup( "Fields" );
61 63
62 timeCheck= new QCheckBox ( "Time",this ); 64 timeCheck= new QCheckBox ( "Time",this );
63 timeCheck->setChecked( cfg.readBoolEntry("timeCheck",1)); 65 timeCheck->setChecked( cfg.readBoolEntry("timeCheck",1));
64 layout->addMultiCellWidget(timeCheck, 2, 2, 0, 0 ); 66 layout->addMultiCellWidget(timeCheck, 2, 2, 0, 0 );
65 QWhatsThis::add( timeCheck, tr("Toggles Time of current price field")); 67 QWhatsThis::add( timeCheck, tr("Toggles Time of current price field"));
66 68
67 dateCheck= new QCheckBox ( "Date", this ); 69 dateCheck= new QCheckBox ( "Date", this );
68 dateCheck->setChecked( cfg.readBoolEntry("dateCheck",1)); 70 dateCheck->setChecked( cfg.readBoolEntry("dateCheck",1));
69 layout->addMultiCellWidget( dateCheck, 2, 2, 1, 1 ); 71 layout->addMultiCellWidget( dateCheck, 2, 2, 1, 1 );
70 QWhatsThis::add(dateCheck, tr("Toggles date field")); 72 QWhatsThis::add(dateCheck, tr("Toggles date field"));
71 73
72 symbolCheck= new QCheckBox ( "Symbol", this ); 74 symbolCheck= new QCheckBox ( "Symbol", this );
73 symbolCheck->setChecked( cfg.readBoolEntry("symbolCheck",1)); 75 symbolCheck->setChecked( cfg.readBoolEntry("symbolCheck",1));
74 layout->addMultiCellWidget( symbolCheck, 2, 2, 2, 2 ); 76 layout->addMultiCellWidget( symbolCheck, 2, 2, 2, 2 );
75 QWhatsThis::add(symbolCheck, tr("Toggles Symbol field")); 77 QWhatsThis::add(symbolCheck, tr("Toggles Symbol field"));
76 78
77 nameCheck= new QCheckBox ( "Name", this ); 79 nameCheck= new QCheckBox ( "Name", this );
78 nameCheck->setChecked( cfg.readBoolEntry("nameCheck",1)); 80 nameCheck->setChecked( cfg.readBoolEntry("nameCheck",1));
79 layout->addMultiCellWidget( nameCheck, 3, 3, 0, 0 ); 81 layout->addMultiCellWidget( nameCheck, 3, 3, 0, 0 );
80 QWhatsThis::add(nameCheck, tr("Toggles Name of symbols owner field")); 82 QWhatsThis::add(nameCheck, tr("Toggles Name of symbols owner field"));
81 83
82 currentPriceCheck= new QCheckBox ( "Price", this ); 84 currentPriceCheck= new QCheckBox ( "Price", this );
83 currentPriceCheck->setChecked( cfg.readBoolEntry("currentPriceCheck",1)); 85 currentPriceCheck->setChecked( cfg.readBoolEntry("currentPriceCheck",1));
84 layout->addMultiCellWidget( currentPriceCheck, 3, 3, 1, 1 ); 86 layout->addMultiCellWidget( currentPriceCheck, 3, 3, 1, 1 );
85 QWhatsThis::add(currentPriceCheck, tr("Toggles current Price field")); 87 QWhatsThis::add(currentPriceCheck, tr("Toggles current Price field"));
86 88