From f978777e3dfe6c02e19d7601b20e60a95d65b1e9 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Mon, 25 Mar 2002 02:55:43 +0000 Subject: moved inputDialog to fileBrowser --- (limited to 'core') 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 @@ -12,7 +12,7 @@ ** ****************************************************************************/ #include "fileBrowser.h" -#include "inputDialog.h" +//#include "inputDialog.h" #include #include @@ -553,3 +553,24 @@ void fileBrowser::fillCombo(const QString ¤tPath) { dirPathCombo->insertStringList( dirPathStringList,-1); } } + + +InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) + : QDialog( parent, name, modal, fl ) +{ + if ( !name ) + setName( "InputDialog" ); + resize( 234, 50 ); + setMaximumSize( QSize( 240, 50 ) ); + setCaption( tr(name ) ); + + LineEdit1 = new QLineEdit( this, "LineEdit1" ); + LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); +} + +InputDialog::~InputDialog() +{ + inputText= LineEdit1->text(); + +} + 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 @@ -26,6 +26,10 @@ copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com #include +#include +#include +class QLineEdit; + class QVBoxLayout; class QHBoxLayout; class QGridLayout; @@ -98,4 +102,17 @@ protected: }; + +class InputDialog : public QDialog +{ + Q_OBJECT + +public: + InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); + ~InputDialog(); + QString inputText; + QLineEdit* LineEdit1; + +}; + #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 @@ -/**************************************************************************** - inputDialog.cpp - ------------------- -** Created: Sat Mar 9 23:33:09 2002 - copyright : (C) 2002 by ljp - email : ljp@llornkcor.com - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - ***************************************************************************/ - -#include "inputDialog.h" - -#include -#include -#include -#include -#include - - -InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, fl ) -{ - if ( !name ) - setName( "InputDialog" ); - resize( 234, 50 ); - setMaximumSize( QSize( 240, 50 ) ); - setCaption( tr(name ) ); - - LineEdit1 = new QLineEdit( this, "LineEdit1" ); - LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); -} - -InputDialog::~InputDialog() -{ - inputText= LineEdit1->text(); - -} - 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 @@ -/*************************************************************************** - inputDialog.h - ------------------- -** Created: Sat Mar 9 23:33:09 2002 - copyright : (C) 2002 by ljp - email : ljp@llornkcor.com - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - ***************************************************************************/ -#ifndef INPUTDIALOG_H -#define INPUTDIALOG_H - -#include -#include -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QLineEdit; - -class InputDialog : public QDialog -{ - Q_OBJECT - -public: - InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); - ~InputDialog(); - QString inputText; - QLineEdit* LineEdit1; - -}; - -#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 @@ -2,8 +2,8 @@ TEMPLATE = app CONFIG += qt warn_on release DESTDIR = $(OPIEDIR)/bin -HEADERS = textedit.h fileBrowser.h fontDialog.h fileSaver.h filePermissions.h inputDialog.h -SOURCES = main.cpp textedit.cpp fileBrowser.cpp fontDialog.cpp fileSaver.cpp filePermissions.cpp inputDialog.cpp +HEADERS = textedit.h fileBrowser.h fontDialog.h fileSaver.h filePermissions.h +SOURCES = main.cpp textedit.cpp fileBrowser.cpp fontDialog.cpp fileSaver.cpp filePermissions.cpp INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -- cgit v0.9.0.2