summaryrefslogtreecommitdiff
authorspiralman <spiralman>2003-03-15 18:51:41 (UTC)
committer spiralman <spiralman>2003-03-15 18:51:41 (UTC)
commitf5cd1c12dbf3c112e7171e05caaa10157aa3e078 (patch) (unidiff)
treead7039bf8a26016041f936e07ec1fcbf4a1f38a9
parent53a5efb1305889820ee71f787525fe26bd2c77ab (diff)
downloadopie-f5cd1c12dbf3c112e7171e05caaa10157aa3e078.zip
opie-f5cd1c12dbf3c112e7171e05caaa10157aa3e078.tar.gz
opie-f5cd1c12dbf3c112e7171e05caaa10157aa3e078.tar.bz2
added .control file, fixed toolbar to not be movable, added app icon
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/ubrowser/mainview.cpp3
-rw-r--r--noncore/net/ubrowser/opie-ubrowser.control9
2 files changed, 12 insertions, 0 deletions
diff --git a/noncore/net/ubrowser/mainview.cpp b/noncore/net/ubrowser/mainview.cpp
index 69d6632..179fa6b 100644
--- a/noncore/net/ubrowser/mainview.cpp
+++ b/noncore/net/ubrowser/mainview.cpp
@@ -1,46 +1,49 @@
1/* 1/*
2Opie-uBrowser. a very small web browser, using on QTextBrowser for html display/parsing 2Opie-uBrowser. a very small web browser, using on QTextBrowser for html display/parsing
3Copyright (C) 2002 Thomas Stephens 3Copyright (C) 2002 Thomas Stephens
4 4
5This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public 5This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
6License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later 6License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
7version. 7version.
8 8
9This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 9This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
10implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 10implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11Public License for more details. 11Public License for more details.
12 12
13You should have received a copy of the GNU General Public License along with this program; if not, write to the Free 13You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15*/ 15*/
16 16
17 17
18#include "mainview.h" 18#include "mainview.h"
19 19
20MainView::MainView(QWidget *parent, const char *name) : QMainWindow(parent, name) 20MainView::MainView(QWidget *parent, const char *name) : QMainWindow(parent, name)
21{ 21{
22 setIcon( Resource::loadPixmap( "remote" ) );
22 setCaption("uBrowser"); 23 setCaption("uBrowser");
24
25 setToolBarsMovable( false );
23 26
24 QPEToolBar *toolbar = new QPEToolBar(this, "toolbar"); 27 QPEToolBar *toolbar = new QPEToolBar(this, "toolbar");
25 back = new QToolButton(Resource::loadPixmap("ubrowser/back"), 0, 0, 0, 0, toolbar, "back"); 28 back = new QToolButton(Resource::loadPixmap("ubrowser/back"), 0, 0, 0, 0, toolbar, "back");
26 forward = new QToolButton(Resource::loadPixmap("ubrowser/forward"), 0, 0, 0, 0, toolbar, "forward"); 29 forward = new QToolButton(Resource::loadPixmap("ubrowser/forward"), 0, 0, 0, 0, toolbar, "forward");
27 home = new QToolButton(Resource::loadPixmap("ubrowser/home"), 0, 0, 0, 0, toolbar, "home"); 30 home = new QToolButton(Resource::loadPixmap("ubrowser/home"), 0, 0, 0, 0, toolbar, "home");
28 location = new QComboBox(true, toolbar, "location"); 31 location = new QComboBox(true, toolbar, "location");
29 go = new QToolButton(Resource::loadPixmap("ubrowser/go"), 0, 0, 0, 0, toolbar, "go"); 32 go = new QToolButton(Resource::loadPixmap("ubrowser/go"), 0, 0, 0, 0, toolbar, "go");
30 33
31 toolbar->setStretchableWidget(location); 34 toolbar->setStretchableWidget(location);
32 toolbar->setHorizontalStretchable(true); 35 toolbar->setHorizontalStretchable(true);
33 36
34 addToolBar(toolbar); 37 addToolBar(toolbar);
35 38
36 browser = new QTextBrowser(this, "browser"); 39 browser = new QTextBrowser(this, "browser");
37 setCentralWidget(browser); 40 setCentralWidget(browser);
38 41
39//make the button take you to the location 42//make the button take you to the location
40 connect(go, SIGNAL(clicked()), this, SLOT(goClicked()) ); 43 connect(go, SIGNAL(clicked()), this, SLOT(goClicked()) );
41 connect(location->lineEdit(), SIGNAL(returnPressed()), this, SLOT(goClicked()) ); 44 connect(location->lineEdit(), SIGNAL(returnPressed()), this, SLOT(goClicked()) );
42 45
43//make back, forward and home do their thing (isnt QTextBrowser great?) 46//make back, forward and home do their thing (isnt QTextBrowser great?)
44 connect(back, SIGNAL(clicked()), browser, SLOT(backward()) ); 47 connect(back, SIGNAL(clicked()), browser, SLOT(backward()) );
45 connect(forward, SIGNAL(clicked()), browser, SLOT(forward()) ); 48 connect(forward, SIGNAL(clicked()), browser, SLOT(forward()) );
46 connect(home, SIGNAL(clicked()), browser, SLOT(home()) ); 49 connect(home, SIGNAL(clicked()), browser, SLOT(home()) );
diff --git a/noncore/net/ubrowser/opie-ubrowser.control b/noncore/net/ubrowser/opie-ubrowser.control
new file mode 100644
index 0000000..b60098b
--- a/dev/null
+++ b/noncore/net/ubrowser/opie-ubrowser.control
@@ -0,0 +1,9 @@
1Files: bin/ubrowser apps/Applications/ubrowser.desktop pics/ubrowser/*.png
2Priority: optional
3Section: opie/applications
4Maintainer: Thomas Stephens <spiralman@softhome.net>
5Architecture: arm
6Version: 0.0-$SUB_VERSION
7Depends: opie-base
8License: GPL
9Description: a very small web browser