-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 23 | ||||
-rw-r--r-- | core/apps/textedit/fileBrowser.h | 17 | ||||
-rw-r--r-- | core/apps/textedit/inputDialog.cpp | 40 | ||||
-rw-r--r-- | core/apps/textedit/inputDialog.h | 34 | ||||
-rw-r--r-- | core/apps/textedit/textedit.pro | 4 |
5 files changed, 41 insertions, 77 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index ebb78d1..f3e4e1e 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp | |||
@@ -14,3 +14,3 @@ | |||
14 | #include "fileBrowser.h" | 14 | #include "fileBrowser.h" |
15 | #include "inputDialog.h" | 15 | //#include "inputDialog.h" |
16 | 16 | ||
@@ -555 +555,22 @@ void fileBrowser::fillCombo(const QString ¤tPath) { | |||
555 | } | 555 | } |
556 | |||
557 | |||
558 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
559 | : QDialog( parent, name, modal, fl ) | ||
560 | { | ||
561 | if ( !name ) | ||
562 | setName( "InputDialog" ); | ||
563 | resize( 234, 50 ); | ||
564 | setMaximumSize( QSize( 240, 50 ) ); | ||
565 | setCaption( tr(name ) ); | ||
566 | |||
567 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | ||
568 | LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); | ||
569 | } | ||
570 | |||
571 | InputDialog::~InputDialog() | ||
572 | { | ||
573 | inputText= LineEdit1->text(); | ||
574 | |||
575 | } | ||
576 | |||
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h index bac3d2e..42f93b6 100644 --- a/core/apps/textedit/fileBrowser.h +++ b/core/apps/textedit/fileBrowser.h | |||
@@ -28,2 +28,6 @@ copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com | |||
28 | 28 | ||
29 | #include <qvariant.h> | ||
30 | #include <qdialog.h> | ||
31 | class QLineEdit; | ||
32 | |||
29 | class QVBoxLayout; | 33 | class QVBoxLayout; |
@@ -100,2 +104,15 @@ protected: | |||
100 | 104 | ||
105 | |||
106 | class InputDialog : public QDialog | ||
107 | { | ||
108 | Q_OBJECT | ||
109 | |||
110 | public: | ||
111 | InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | ||
112 | ~InputDialog(); | ||
113 | QString inputText; | ||
114 | QLineEdit* LineEdit1; | ||
115 | |||
116 | }; | ||
117 | |||
101 | #endif // FILEBROWSER_H | 118 | #endif // FILEBROWSER_H |
diff --git a/core/apps/textedit/inputDialog.cpp b/core/apps/textedit/inputDialog.cpp deleted file mode 100644 index 22205d3..0000000 --- a/core/apps/textedit/inputDialog.cpp +++ b/dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | inputDialog.cpp | ||
3 | ------------------- | ||
4 | ** Created: Sat Mar 9 23:33:09 2002 | ||
5 | copyright : (C) 2002 by ljp | ||
6 | email : ljp@llornkcor.com | ||
7 | * This program is free software; you can redistribute it and/or modify * | ||
8 | * it under the terms of the GNU General Public License as published by * | ||
9 | * the Free Software Foundation; either version 2 of the License, or * | ||
10 | * (at your option) any later version. * | ||
11 | ***************************************************************************/ | ||
12 | |||
13 | #include "inputDialog.h" | ||
14 | |||
15 | #include <qlineedit.h> | ||
16 | #include <qlayout.h> | ||
17 | #include <qvariant.h> | ||
18 | #include <qtooltip.h> | ||
19 | #include <qwhatsthis.h> | ||
20 | |||
21 | |||
22 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
23 | : QDialog( parent, name, modal, fl ) | ||
24 | { | ||
25 | if ( !name ) | ||
26 | setName( "InputDialog" ); | ||
27 | resize( 234, 50 ); | ||
28 | setMaximumSize( QSize( 240, 50 ) ); | ||
29 | setCaption( tr(name ) ); | ||
30 | |||
31 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | ||
32 | LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); | ||
33 | } | ||
34 | |||
35 | InputDialog::~InputDialog() | ||
36 | { | ||
37 | inputText= LineEdit1->text(); | ||
38 | |||
39 | } | ||
40 | |||
diff --git a/core/apps/textedit/inputDialog.h b/core/apps/textedit/inputDialog.h deleted file mode 100644 index 2cd8285..0000000 --- a/core/apps/textedit/inputDialog.h +++ b/dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | inputDialog.h | ||
3 | ------------------- | ||
4 | ** Created: Sat Mar 9 23:33:09 2002 | ||
5 | copyright : (C) 2002 by ljp | ||
6 | email : ljp@llornkcor.com | ||
7 | * This program is free software; you can redistribute it and/or modify * | ||
8 | * it under the terms of the GNU General Public License as published by * | ||
9 | * the Free Software Foundation; either version 2 of the License, or * | ||
10 | * (at your option) any later version. * | ||
11 | ***************************************************************************/ | ||
12 | #ifndef INPUTDIALOG_H | ||
13 | #define INPUTDIALOG_H | ||
14 | |||
15 | #include <qvariant.h> | ||
16 | #include <qdialog.h> | ||
17 | class QVBoxLayout; | ||
18 | class QHBoxLayout; | ||
19 | class QGridLayout; | ||
20 | class QLineEdit; | ||
21 | |||
22 | class InputDialog : public QDialog | ||
23 | { | ||
24 | Q_OBJECT | ||
25 | |||
26 | public: | ||
27 | InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | ||
28 | ~InputDialog(); | ||
29 | QString inputText; | ||
30 | QLineEdit* LineEdit1; | ||
31 | |||
32 | }; | ||
33 | |||
34 | #endif // INPUTDIALOG_H | ||
diff --git a/core/apps/textedit/textedit.pro b/core/apps/textedit/textedit.pro index 37ddf15..9b743d3 100644 --- a/core/apps/textedit/textedit.pro +++ b/core/apps/textedit/textedit.pro | |||
@@ -4,4 +4,4 @@ CONFIG += qt warn_on release | |||
4 | DESTDIR = $(OPIEDIR)/bin | 4 | DESTDIR = $(OPIEDIR)/bin |
5 | HEADERS = textedit.h fileBrowser.h fontDialog.h fileSaver.h filePermissions.h inputDialog.h | 5 | HEADERS = textedit.h fileBrowser.h fontDialog.h fileSaver.h filePermissions.h |
6 | SOURCES = main.cpp textedit.cpp fileBrowser.cpp fontDialog.cpp fileSaver.cpp filePermissions.cpp inputDialog.cpp | 6 | SOURCES = main.cpp textedit.cpp fileBrowser.cpp fontDialog.cpp fileSaver.cpp filePermissions.cpp |
7 | 7 | ||