4 files changed, 0 insertions, 38 deletions
diff --git a/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp b/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp index 33dcac0..23e78f2 100644 --- a/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp +++ b/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp | |||
@@ -1,68 +1,49 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** $Id$ | 2 | ** $Id$ |
3 | ** | 3 | ** |
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. | 4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. |
5 | ** | 5 | ** |
6 | ** This file is part of an example program for Qt. This example | 6 | ** This file is part of an example program for Qt. This example |
7 | ** program may be used, distributed and modified without limitation. | 7 | ** program may be used, distributed and modified without limitation. |
8 | ** | 8 | ** |
9 | *****************************************************************************/ | 9 | *****************************************************************************/ |
10 | 10 | ||
11 | #include "helpwindow.h" | 11 | #include "helpwindow.h" |
12 | #include <qstatusbar.h> | 12 | #include <qstatusbar.h> |
13 | #include <qstringlist.h> | ||
14 | 13 | ||
15 | #include <qpixmap.h> | ||
16 | #include <qpopupmenu.h> | ||
17 | #include <qmenubar.h> | 14 | #include <qmenubar.h> |
18 | #include <qtoolbar.h> | 15 | #include <qtoolbar.h> |
19 | #include <qtoolbutton.h> | 16 | #include <qtoolbutton.h> |
20 | #include <qiconset.h> | ||
21 | #include <qfile.h> | ||
22 | #include <qtextstream.h> | ||
23 | #include <qstylesheet.h> | ||
24 | #include <qmessagebox.h> | ||
25 | #include <qfiledialog.h> | ||
26 | #include <qapplication.h> | ||
27 | #include <qcombobox.h> | 17 | #include <qcombobox.h> |
28 | #include <qevent.h> | ||
29 | #include <qlineedit.h> | ||
30 | #include <qobjectlist.h> | ||
31 | #include <qfileinfo.h> | ||
32 | #include <qfile.h> | ||
33 | #include <qdatastream.h> | ||
34 | #include <qprinter.h> | ||
35 | #include <qsimplerichtext.h> | ||
36 | #include <qpaintdevicemetrics.h> | ||
37 | 18 | ||
38 | #include <ctype.h> | 19 | #include <ctype.h> |
39 | 20 | ||
40 | HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name ) | 21 | HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name ) |
41 | : QMainWindow( parent, name, WDestructiveClose ), pathCombo( 0 ), selectedURL() | 22 | : QMainWindow( parent, name, WDestructiveClose ), pathCombo( 0 ), selectedURL() |
42 | { | 23 | { |
43 | readHistory(); | 24 | readHistory(); |
44 | readBookmarks(); | 25 | readBookmarks(); |
45 | 26 | ||
46 | browser = new QTextBrowser( this ); | 27 | browser = new QTextBrowser( this ); |
47 | QStringList Strlist; | 28 | QStringList Strlist; |
48 | Strlist.append( home_); | 29 | Strlist.append( home_); |
49 | 30 | ||
50 | browser->mimeSourceFactory()->setFilePath( Strlist ); | 31 | browser->mimeSourceFactory()->setFilePath( Strlist ); |
51 | 32 | ||
52 | browser->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 33 | browser->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
53 | 34 | ||
54 | connect( browser, SIGNAL( textChanged() ), | 35 | connect( browser, SIGNAL( textChanged() ), |
55 | 36 | ||
56 | this, SLOT( textChanged() ) ); | 37 | this, SLOT( textChanged() ) ); |
57 | 38 | ||
58 | setCentralWidget( browser ); | 39 | setCentralWidget( browser ); |
59 | 40 | ||
60 | if ( !home_.isEmpty() ) | 41 | if ( !home_.isEmpty() ) |
61 | 42 | ||
62 | //////////////////////////////// | 43 | //////////////////////////////// |
63 | browser->setSource( home_ ); | 44 | browser->setSource( home_ ); |
64 | 45 | ||
65 | //////////////////////////////// | 46 | //////////////////////////////// |
66 | connect( browser, SIGNAL( highlighted( const QString&) ), | 47 | connect( browser, SIGNAL( highlighted( const QString&) ), |
67 | statusBar(), SLOT( message( const QString&)) ); | 48 | statusBar(), SLOT( message( const QString&)) ); |
68 | 49 | ||
diff --git a/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp b/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp index 18021c2..42a3885 100644 --- a/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp +++ b/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp | |||
@@ -1,40 +1,38 @@ | |||
1 | #include "inputDialog.h" | 1 | #include "inputDialog.h" |
2 | 2 | ||
3 | #include <qapplication.h> | 3 | #include <qapplication.h> |
4 | 4 | ||
5 | #include <qcheckbox.h> | 5 | #include <qcheckbox.h> |
6 | #include <qlayout.h> | ||
7 | #include <qlineedit.h> | 6 | #include <qlineedit.h> |
8 | #include <qlayout.h> | ||
9 | #include <qvariant.h> | 7 | #include <qvariant.h> |
10 | #include <qpushbutton.h> | 8 | #include <qpushbutton.h> |
11 | #include <qwhatsthis.h> | 9 | #include <qwhatsthis.h> |
12 | #include <qlabel.h> | 10 | #include <qlabel.h> |
13 | #include <qpe/config.h> | 11 | #include <qpe/config.h> |
14 | #include <qstringlist.h> | 12 | #include <qstringlist.h> |
15 | #include <qmainwindow.h> | 13 | #include <qmainwindow.h> |
16 | #include "helpwindow.h" | 14 | #include "helpwindow.h" |
17 | 15 | ||
18 | #include <opie/oprocess.h> | 16 | #include <opie/oprocess.h> |
19 | 17 | ||
20 | #include <stdlib.h> | 18 | #include <stdlib.h> |
21 | // #include <sys/stat.h> | 19 | // #include <sys/stat.h> |
22 | // #include <unistd.h> | 20 | // #include <unistd.h> |
23 | 21 | ||
24 | InputDialog::InputDialog( ) | 22 | InputDialog::InputDialog( ) |
25 | : QMainWindow( 0x0, 0x0, WStyle_ContextHelp ) { | 23 | : QMainWindow( 0x0, 0x0, WStyle_ContextHelp ) { |
26 | setCaption( tr("Symbol Lookup")); | 24 | setCaption( tr("Symbol Lookup")); |
27 | 25 | ||
28 | QGridLayout *layout = new QGridLayout( this ); | 26 | QGridLayout *layout = new QGridLayout( this ); |
29 | layout->setSpacing(6); | 27 | layout->setSpacing(6); |
30 | layout->setMargin( 2); | 28 | layout->setMargin( 2); |
31 | 29 | ||
32 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | 30 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); |
33 | LineEdit1->setFocus(); | 31 | LineEdit1->setFocus(); |
34 | 32 | ||
35 | layout->addMultiCellWidget( LineEdit1, 0, 0, 0, 3); | 33 | layout->addMultiCellWidget( LineEdit1, 0, 0, 0, 3); |
36 | 34 | ||
37 | QLabel *label; | 35 | QLabel *label; |
38 | label = new QLabel(this); | 36 | label = new QLabel(this); |
39 | label->setText( tr("Enter something to lookup / search.")); | 37 | label->setText( tr("Enter something to lookup / search.")); |
40 | label->setMaximumHeight(60); | 38 | label->setMaximumHeight(60); |
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp index fdabd5c..e3d378b 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp | |||
@@ -1,65 +1,61 @@ | |||
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> | ||
21 | 20 | ||
22 | #include <qapplication.h> | 21 | #include <qapplication.h> |
23 | 22 | ||
24 | #include <qspinbox.h> | 23 | #include <qspinbox.h> |
25 | #include <qcheckbox.h> | 24 | #include <qcheckbox.h> |
26 | #include <qlayout.h> | ||
27 | #include <qlineedit.h> | 25 | #include <qlineedit.h> |
28 | #include <qlayout.h> | ||
29 | #include <qvariant.h> | 26 | #include <qvariant.h> |
30 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
31 | #include <qwhatsthis.h> | 28 | #include <qwhatsthis.h> |
32 | #include <qlabel.h> | 29 | #include <qlabel.h> |
33 | #include <qpe/config.h> | ||
34 | #include <qstringlist.h> | 30 | #include <qstringlist.h> |
35 | #include <qmainwindow.h> | 31 | #include <qmainwindow.h> |
36 | 32 | ||
37 | #include <stdlib.h> | 33 | #include <stdlib.h> |
38 | 34 | ||
39 | StocktickerPluginConfig::StocktickerPluginConfig( QWidget *parent, const char* name) | 35 | StocktickerPluginConfig::StocktickerPluginConfig( QWidget *parent, const char* name) |
40 | : TodayConfigWidget(parent, name ) { | 36 | : TodayConfigWidget(parent, name ) { |
41 | 37 | ||
42 | QGridLayout *layout = new QGridLayout( this ); | 38 | QGridLayout *layout = new QGridLayout( this ); |
43 | layout->setSpacing(2); | 39 | layout->setSpacing(2); |
44 | layout->setMargin( 2); | 40 | layout->setMargin( 2); |
45 | 41 | ||
46 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | 42 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); |
47 | LineEdit1->setFocus(); | 43 | LineEdit1->setFocus(); |
48 | // QWhatsThis::add( LineEdit1, tr("Enter the stock symbols you want to be shown here.")); | 44 | // QWhatsThis::add( LineEdit1, tr("Enter the stock symbols you want to be shown here.")); |
49 | 45 | ||
50 | layout->addMultiCellWidget( LineEdit1, 0, 0, 0, 4); | 46 | layout->addMultiCellWidget( LineEdit1, 0, 0, 0, 4); |
51 | 47 | ||
52 | Config cfg( "stockticker"); | 48 | Config cfg( "stockticker"); |
53 | cfg.setGroup( "Symbols" ); | 49 | cfg.setGroup( "Symbols" ); |
54 | QString symbollist; | 50 | QString symbollist; |
55 | symbollist = cfg.readEntry("Symbols", ""); | 51 | symbollist = cfg.readEntry("Symbols", ""); |
56 | LineEdit1->setText(symbollist); | 52 | LineEdit1->setText(symbollist); |
57 | 53 | ||
58 | QLabel *label; | 54 | QLabel *label; |
59 | label = new QLabel(this); | 55 | label = new QLabel(this); |
60 | label->setText( tr("Enter stock symbols seperated\nby a space.")); | 56 | label->setText( tr("Enter stock symbols seperated\nby a space.")); |
61 | label->setMaximumHeight(60); | 57 | label->setMaximumHeight(60); |
62 | layout->addMultiCellWidget( label, 1, 1, 0, 4); | 58 | layout->addMultiCellWidget( label, 1, 1, 0, 4); |
63 | 59 | ||
64 | cfg.setGroup( "Fields" ); | 60 | cfg.setGroup( "Fields" ); |
65 | 61 | ||
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp index a740b58..c3ca52d 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |||
@@ -1,64 +1,51 @@ | |||
1 | /* | 1 | /* |
2 | * stocktickerpluginwidget.cpp | 2 | * stocktickerpluginwidget.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002 by L.J. Potter | 4 | * copyright : (c) 2002 by L.J. Potter |
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 <qsocket.h> | ||
18 | #include <qvaluelist.h> | ||
19 | #include <qtl.h> | ||
20 | #include <qstring.h> | ||
21 | #include <qstringlist.h> | ||
22 | #include <qobject.h> | ||
23 | #include <qlayout.h> | 17 | #include <qlayout.h> |
24 | #include <qlineedit.h> | ||
25 | #include <qregexp.h> | ||
26 | #include <qtimer.h> | ||
27 | #include <qmessagebox.h> | ||
28 | 18 | ||
29 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
30 | #include <qpe/timestring.h> | ||
31 | #include <qpe/qcopenvelope_qws.h> | ||
32 | #include <qpe/network.h> | ||
33 | 20 | ||
34 | #include <opie/oticker.h> | 21 | #include <opie/oticker.h> |
35 | 22 | ||
36 | extern "C" { | 23 | extern "C" { |
37 | #include "libstocks/stocks.h" | 24 | #include "libstocks/stocks.h" |
38 | } | 25 | } |
39 | 26 | ||
40 | #include <pthread.h> | 27 | #include <pthread.h> |
41 | 28 | ||
42 | #include "stocktickerpluginwidget.h" | 29 | #include "stocktickerpluginwidget.h" |
43 | 30 | ||
44 | QString output; | 31 | QString output; |
45 | OTicker *stocktickerTicker; | 32 | OTicker *stocktickerTicker; |
46 | 33 | ||
47 | void getStocks(char *blah) { | 34 | void getStocks(char *blah) { |
48 | 35 | ||
49 | // stocktickerTicker->setText( "Downloading stock data."); | 36 | // stocktickerTicker->setText( "Downloading stock data."); |
50 | stock *stocks_quotes=NULL; | 37 | stock *stocks_quotes=NULL; |
51 | stock *stocks_tmp; | 38 | stock *stocks_tmp; |
52 | QCString stock_liste = blah; | 39 | QCString stock_liste = blah; |
53 | ::free ( blah ); | 40 | ::free ( blah ); |
54 | // char *stock_liste = (char *)blah->latin1(); | 41 | // char *stock_liste = (char *)blah->latin1(); |
55 | qDebug("%s", stock_liste.data() ); | 42 | qDebug("%s", stock_liste.data() ); |
56 | QString tempString; | 43 | QString tempString; |
57 | output = ""; | 44 | output = ""; |
58 | 45 | ||
59 | libstocks_return_code error; | 46 | libstocks_return_code error; |
60 | 47 | ||
61 | Config cfg( "stockticker"); | 48 | Config cfg( "stockticker"); |
62 | cfg.setGroup( "Fields" ); | 49 | cfg.setGroup( "Fields" ); |
63 | bool dotimeCheck, dodateCheck, dosymbolCheck, donameCheck; | 50 | bool dotimeCheck, dodateCheck, dosymbolCheck, donameCheck; |
64 | bool docurrentPriceCheck, dolastPriceCheck, doopenPriceCheck; | 51 | bool docurrentPriceCheck, dolastPriceCheck, doopenPriceCheck; |