summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/opie-sh.cpp
authorspiralman <spiralman>2002-05-27 00:59:37 (UTC)
committer spiralman <spiralman>2002-05-27 00:59:37 (UTC)
commitd3451ccc7191bc2f761bae12b50c7ce274647bdb (patch) (side-by-side diff)
treef96f3c210de2c91d793d999e19bbcbc81ff02a99 /noncore/tools/opie-sh/opie-sh.cpp
parent95d2a3806a39bb31c9cca38c2c6158ecb77818e9 (diff)
downloadopie-d3451ccc7191bc2f761bae12b50c7ce274647bdb.zip
opie-d3451ccc7191bc2f761bae12b50c7ce274647bdb.tar.gz
opie-d3451ccc7191bc2f761bae12b50c7ce274647bdb.tar.bz2
added help files and an icon in the Applications tab
Diffstat (limited to 'noncore/tools/opie-sh/opie-sh.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/opie-sh/opie-sh.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/noncore/tools/opie-sh/opie-sh.cpp b/noncore/tools/opie-sh/opie-sh.cpp
index a1b8035..e898cb1 100644
--- a/noncore/tools/opie-sh/opie-sh.cpp
+++ b/noncore/tools/opie-sh/opie-sh.cpp
@@ -128,13 +128,13 @@ void printusage()
printf(" -L [label] The label for the input field\n");
printf(" -F [filename] An input file (for when it makes sense) [Default = stdin]\n");
printf(" -E Makes list input editable\n");
- printf(" -g Disable fullscreen\n");
+ printf(" -g Disable fullscreen\n\0");
}
int fileviewer(QPEApplication *a, int argc, QStringList args)
{
int i;
- QString filename, title;
+ QString filename, title, icon;
bool update=false;
for(i=0; i < argc; i++)
@@ -147,12 +147,17 @@ int fileviewer(QPEApplication *a, int argc, QStringList args)
}
}
+ if(args[i] == "-I")
+ {
+ icon=args[i+1];
+ }
+
if(args[i] == "-t")
{
title = args[i+1];
}
}
- FViewer *fview = new FViewer(filename, title, 0, (QString) "fileviewer");
+ FViewer *fview = new FViewer(icon, filename, title, 0, (QString) "fileviewer");
a->setMainWidget(fview);
fview->showMaximized();
return a->exec();
@@ -193,7 +198,10 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args)
if(args[i] == "-F")
{
- filename = args[i+1];
+ if(args[i+1][0] != '-')
+ {
+ filename = args[i+1];
+ }
}
if(args[i] =="-E")