summaryrefslogtreecommitdiff
path: root/noncore/todayplugins
authormouse <mouse>2004-03-31 13:33:34 (UTC)
committer mouse <mouse>2004-03-31 13:33:34 (UTC)
commit38e313e5b9d2339580614264a428a84f70f4f4c0 (patch) (unidiff)
tree36db27452496be76a6cc54d50d203f8721b1bbb7 /noncore/todayplugins
parent2a9adba9bf421aa8bddecfe3f1c1b8a7f8343c4f (diff)
downloadopie-38e313e5b9d2339580614264a428a84f70f4f4c0.zip
opie-38e313e5b9d2339580614264a428a84f70f4f4c0.tar.gz
opie-38e313e5b9d2339580614264a428a84f70f4f4c0.tar.bz2
added missed include file for QFileDialog
Diffstat (limited to 'noncore/todayplugins') (more/less context) (show whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stockticker/helpwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp b/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp
index db662e8..410d642 100644
--- a/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp
+++ b/noncore/todayplugins/stockticker/stockticker/helpwindow.cpp
@@ -1,65 +1,69 @@
1/**************************************************************************** 1/****************************************************************************
2** 2**
3** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. 3** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
4** 4**
5** This file is part of an example program for Qt. This example 5** This file is part of an example program for Qt. This example
6** program may be used, distributed and modified without limitation. 6** program may be used, distributed and modified without limitation.
7** 7**
8*****************************************************************************/ 8*****************************************************************************/
9 9
10#include "helpwindow.h" 10#include "helpwindow.h"
11#include <qstatusbar.h> 11#include <qstatusbar.h>
12 12
13#include <qmenubar.h> 13#include <qmenubar.h>
14#include <qtoolbar.h> 14#include <qtoolbar.h>
15#include <qtoolbutton.h> 15#include <qtoolbutton.h>
16#include <qcombobox.h> 16#include <qcombobox.h>
17 17
18#ifndef QT_NO_FILEDIALOG
19#include <qfiledialog.h>
20#endif
21
18#include <ctype.h> 22#include <ctype.h>
19 23
20HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name ) 24HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name )
21 : QMainWindow( parent, name, WDestructiveClose ), pathCombo( 0 ), selectedURL() 25 : QMainWindow( parent, name, WDestructiveClose ), pathCombo( 0 ), selectedURL()
22{ 26{
23 readHistory(); 27 readHistory();
24 readBookmarks(); 28 readBookmarks();
25 29
26 browser = new QTextBrowser( this ); 30 browser = new QTextBrowser( this );
27 QStringList Strlist; 31 QStringList Strlist;
28 Strlist.append( home_); 32 Strlist.append( home_);
29 33
30 browser->mimeSourceFactory()->setFilePath( Strlist ); 34 browser->mimeSourceFactory()->setFilePath( Strlist );
31 35
32 browser->setFrameStyle( QFrame::Panel | QFrame::Sunken ); 36 browser->setFrameStyle( QFrame::Panel | QFrame::Sunken );
33 37
34 connect( browser, SIGNAL( textChanged() ), 38 connect( browser, SIGNAL( textChanged() ),
35 39
36 this, SLOT( textChanged() ) ); 40 this, SLOT( textChanged() ) );
37 41
38 setCentralWidget( browser ); 42 setCentralWidget( browser );
39 43
40 if ( !home_.isEmpty() ) 44 if ( !home_.isEmpty() )
41 45
42//////////////////////////////// 46////////////////////////////////
43 browser->setSource( home_ ); 47 browser->setSource( home_ );
44 48
45//////////////////////////////// 49////////////////////////////////
46 connect( browser, SIGNAL( highlighted(const QString&) ), 50 connect( browser, SIGNAL( highlighted(const QString&) ),
47 statusBar(), SLOT( message(const QString&)) ); 51 statusBar(), SLOT( message(const QString&)) );
48 52
49 setGeometry( 0,0,236,280); 53 setGeometry( 0,0,236,280);
50 54
51 QPopupMenu* file = new QPopupMenu( this ); 55 QPopupMenu* file = new QPopupMenu( this );
52// file->insertItem( tr("&New Window"), this, SLOT( newWindow() ), ALT | Key_N ); 56// file->insertItem( tr("&New Window"), this, SLOT( newWindow() ), ALT | Key_N );
53 file->insertItem( tr("&Open File"), this, SLOT( openFile() ), ALT | Key_O ); 57 file->insertItem( tr("&Open File"), this, SLOT( openFile() ), ALT | Key_O );
54// file->insertItem( tr("&Print"), this, SLOT( print() ), ALT | Key_P ); 58// file->insertItem( tr("&Print"), this, SLOT( print() ), ALT | Key_P );
55 file->insertSeparator(); 59 file->insertSeparator();
56 file->insertItem( tr("&Close"), this, SLOT( close() ), ALT | Key_Q ); 60 file->insertItem( tr("&Close"), this, SLOT( close() ), ALT | Key_Q );
57// file->insertItem( tr("E&xit"), qApp, SLOT( closeAllWindows() ), ALT | Key_X ); 61// file->insertItem( tr("E&xit"), qApp, SLOT( closeAllWindows() ), ALT | Key_X );
58 62
59 // The same three icons are used twice each. 63 // The same three icons are used twice each.
60////F FIXME 64////F FIXME
61 QString pixs=(QDir::homeDirPath ()) +"/Applications/gutenbrowser/pix/"; 65 QString pixs=(QDir::homeDirPath ()) +"/Applications/gutenbrowser/pix/";
62 QIconSet icon_back( QPixmap(pixs+"back.png") ); 66 QIconSet icon_back( QPixmap(pixs+"back.png") );
63 QIconSet icon_forward( QPixmap(pixs+"forward.png") ); 67 QIconSet icon_forward( QPixmap(pixs+"forward.png") );
64 QIconSet icon_home( QPixmap(pixs+"home.png") ); 68 QIconSet icon_home( QPixmap(pixs+"home.png") );
65 69