author | spiralman <spiralman> | 2003-03-15 18:51:41 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2003-03-15 18:51:41 (UTC) |
commit | f5cd1c12dbf3c112e7171e05caaa10157aa3e078 (patch) (unidiff) | |
tree | ad7039bf8a26016041f936e07ec1fcbf4a1f38a9 | |
parent | 53a5efb1305889820ee71f787525fe26bd2c77ab (diff) | |
download | opie-f5cd1c12dbf3c112e7171e05caaa10157aa3e078.zip opie-f5cd1c12dbf3c112e7171e05caaa10157aa3e078.tar.gz opie-f5cd1c12dbf3c112e7171e05caaa10157aa3e078.tar.bz2 |
added .control file, fixed toolbar to not be movable, added app icon
-rw-r--r-- | noncore/net/ubrowser/mainview.cpp | 3 | ||||
-rw-r--r-- | noncore/net/ubrowser/opie-ubrowser.control | 9 |
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 | /* |
2 | Opie-uBrowser. a very small web browser, using on QTextBrowser for html display/parsing | 2 | Opie-uBrowser. a very small web browser, using on QTextBrowser for html display/parsing |
3 | Copyright (C) 2002 Thomas Stephens | 3 | Copyright (C) 2002 Thomas Stephens |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public | 5 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public |
6 | License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later | 6 | License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later |
7 | version. | 7 | version. |
8 | 8 | ||
9 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the | 9 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the |
10 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | 10 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
11 | Public License for more details. | 11 | Public License for more details. |
12 | 12 | ||
13 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free | 13 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free |
14 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 14 | Software 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 | ||
20 | MainView::MainView(QWidget *parent, const char *name) : QMainWindow(parent, name) | 20 | MainView::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 @@ | |||
1 | Files: bin/ubrowser apps/Applications/ubrowser.desktop pics/ubrowser/*.png | ||
2 | Priority: optional | ||
3 | Section: opie/applications | ||
4 | Maintainer: Thomas Stephens <spiralman@softhome.net> | ||
5 | Architecture: arm | ||
6 | Version: 0.0-$SUB_VERSION | ||
7 | Depends: opie-base | ||
8 | License: GPL | ||
9 | Description: a very small web browser | ||