Diffstat (limited to 'noncore/tools/opie-sh/opie-sh.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/opie-sh/opie-sh.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/noncore/tools/opie-sh/opie-sh.cpp b/noncore/tools/opie-sh/opie-sh.cpp index a353d3f..7d54a03 100644 --- a/noncore/tools/opie-sh/opie-sh.cpp +++ b/noncore/tools/opie-sh/opie-sh.cpp | |||
@@ -13,19 +13,25 @@ Public License for more details. | |||
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 | |||
18 | #include "mbox.h" | ||
19 | #include "fviewer.h" | ||
20 | #include "inputdialog.h" | ||
21 | |||
22 | /* OPIE */ | ||
23 | #include <qpe/qpeapplication.h> | ||
24 | |||
25 | /* QT */ | ||
17 | #include <qstring.h> | 26 | #include <qstring.h> |
18 | #include <qstringlist.h> | 27 | #include <qstringlist.h> |
19 | #include <qpe/qpeapplication.h> | ||
20 | #include <qmessagebox.h> | 28 | #include <qmessagebox.h> |
21 | #include <qwidget.h> | 29 | #include <qwidget.h> |
22 | 30 | ||
31 | /* STD */ | ||
23 | #include <stdio.h> | 32 | #include <stdio.h> |
24 | 33 | ||
25 | #include "mbox.h" | ||
26 | #include "fviewer.h" | ||
27 | #include "inputdialog.h" | ||
28 | 34 | ||
29 | int myMessageBox(int wi, int h, QWidget *w, int argc, QStringList args) | 35 | int myMessageBox(int wi, int h, QWidget *w, int argc, QStringList args) |
30 | { | 36 | { |
31 | int i, type=0; | 37 | int i, type=0; |
@@ -83,9 +89,9 @@ int myMessageBox(int wi, int h, QWidget *w, int argc, QStringList args) | |||
83 | MBox *mbox = new MBox(wi, h, (int)type, title, string, &button0Text, &button1Text, &button2Text, w, (QString)"messagebox"); | 89 | MBox *mbox = new MBox(wi, h, (int)type, title, string, &button0Text, &button1Text, &button2Text, w, (QString)"messagebox"); |
84 | if(full) | 90 | if(full) |
85 | { | 91 | { |
86 | w->setCaption(title); | 92 | w->setCaption(title); |
87 | w->showMaximized(); | 93 | QPEApplication::showWidget( w ); |
88 | } | 94 | } |
89 | //mbox->show(); | 95 | //mbox->show(); |
90 | switch(mbox->exec() ) | 96 | switch(mbox->exec() ) |
91 | { | 97 | { |
@@ -160,9 +166,9 @@ int fileviewer(QPEApplication *a, int argc, QStringList args) | |||
160 | } | 166 | } |
161 | } | 167 | } |
162 | FViewer *fview = new FViewer(icon, filename, title, 0, (QString) "fileviewer"); | 168 | FViewer *fview = new FViewer(icon, filename, title, 0, (QString) "fileviewer"); |
163 | a->setMainWidget(fview); | 169 | a->setMainWidget(fview); |
164 | fview->showMaximized(); | 170 | QPEApplication::showWidget( fview ); |
165 | return a->exec(); | 171 | return a->exec(); |
166 | } | 172 | } |
167 | 173 | ||
168 | int input(int wi, int h, QWidget *w, int argc, QStringList args) | 174 | int input(int wi, int h, QWidget *w, int argc, QStringList args) |
@@ -224,9 +230,9 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args) | |||
224 | InputDialog *id = new InputDialog(wi, h, type, label, title, filename, edit, w); | 230 | InputDialog *id = new InputDialog(wi, h, type, label, title, filename, edit, w); |
225 | if(full) | 231 | if(full) |
226 | { | 232 | { |
227 | w->setCaption(title); | 233 | w->setCaption(title); |
228 | w->showMaximized(); | 234 | QPEApplication::showWidget( w ); |
229 | } | 235 | } |
230 | if( id->exec() == 1) | 236 | if( id->exec() == 1) |
231 | { | 237 | { |
232 | printf("%s\n", id->getString().latin1()); | 238 | printf("%s\n", id->getString().latin1()); |