summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/opie-sh.cpp
Unidiff
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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/tools/opie-sh/opie-sh.cpp b/noncore/tools/opie-sh/opie-sh.cpp
index 96b4b93..a353d3f 100644
--- a/noncore/tools/opie-sh/opie-sh.cpp
+++ b/noncore/tools/opie-sh/opie-sh.cpp
@@ -117,24 +117,25 @@ void printusage()
117 printf(" -M [message] The message to display\n"); 117 printf(" -M [message] The message to display\n");
118 printf(" -I Use information icon\n"); 118 printf(" -I Use information icon\n");
119 printf(" -w Use the warning icon\n"); 119 printf(" -w Use the warning icon\n");
120 printf(" -e Use the error icon\n"); 120 printf(" -e Use the error icon\n");
121 printf(" -0 [text] First button text [Default = OK]\n"); 121 printf(" -0 [text] First button text [Default = OK]\n");
122 printf(" -1 [text] Second button text\n"); 122 printf(" -1 [text] Second button text\n");
123 printf(" -2 [text] Third button text\n"); 123 printf(" -2 [text] Third button text\n");
124 printf(" -g Disable fullscreen\n"); 124 printf(" -g Disable fullscreen\n");
125 printf("Input Dialog options:\n"); 125 printf("Input Dialog options:\n");
126 printf(" -s A single line of input (output to console)\n"); 126 printf(" -s A single line of input (output to console)\n");
127 printf(" -l List input (newline separated list read in from file)\n"); 127 printf(" -l List input (newline separated list read in from file)\n");
128 printf(" -b A list box, enabling multiple selections (input same as -l)\n"); 128 printf(" -b A list box, enabling multiple selections (input same as -l)\n");
129 printf(" -p Password input (display '*'s)\n");
129 printf(" -L [label] The label for the input field\n"); 130 printf(" -L [label] The label for the input field\n");
130 printf(" -F [filename] An input file (for when it makes sense) [Default = stdin]\n"); 131 printf(" -F [filename] An input file (for when it makes sense) [Default = stdin]\n");
131 printf(" -E Makes list input editable\n"); 132 printf(" -E Makes list input editable\n");
132 printf(" -g Disable fullscreen\n"); 133 printf(" -g Disable fullscreen\n");
133} 134}
134 135
135int fileviewer(QPEApplication *a, int argc, QStringList args) 136int fileviewer(QPEApplication *a, int argc, QStringList args)
136{ 137{
137 int i; 138 int i;
138 QString filename, title, icon; 139 QString filename, title, icon;
139 bool update=false; 140 bool update=false;
140 141
@@ -178,24 +179,29 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args)
178 } 179 }
179 180
180 if(args[i] == "-l") 181 if(args[i] == "-l")
181 { 182 {
182 type = 1; 183 type = 1;
183 } 184 }
184 185
185 if(args[i] == "-b") 186 if(args[i] == "-b")
186 { 187 {
187 type = 2; 188 type = 2;
188 } 189 }
189 190
191 if(args[i] == "-p")
192 {
193 type = 3;
194 }
195
190 if(args[i] == "-t") 196 if(args[i] == "-t")
191 { 197 {
192 title = args[i+1]; 198 title = args[i+1];
193 } 199 }
194 200
195 if(args[i] == "-L") 201 if(args[i] == "-L")
196 { 202 {
197 label = args[i+1]; 203 label = args[i+1];
198 } 204 }
199 205
200 if(args[i] == "-F") 206 if(args[i] == "-F")
201 { 207 {