summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/attachdiag.cpp68
-rw-r--r--noncore/unsupported/mail2/attachdiag.h26
-rw-r--r--noncore/unsupported/mail2/mail.pro2
3 files changed, 0 insertions, 96 deletions
diff --git a/noncore/unsupported/mail2/attachdiag.cpp b/noncore/unsupported/mail2/attachdiag.cpp
deleted file mode 100644
index 446cfe5..0000000
--- a/noncore/unsupported/mail2/attachdiag.cpp
+++ b/dev/null
@@ -1,68 +0,0 @@
-#include <qmessagebox.h>
-#include <qpushbutton.h>
-#include <qlistbox.h>
-#include <qlayout.h>
-
-#include <qpe/applnk.h>
-#include <qpe/fileselector.h>
-#include <qpe/resource.h>
-
-#include <stdlib.h>
-
-#include "attachdiag.h"
-
-AttachDiag::AttachDiag(QWidget* parent = 0, const char* name = 0, bool modal, WFlags fl = 0)
- : QDialog(parent, name, modal, fl)
-{
- setCaption(tr("Attach File"));
-
- QGridLayout *layout = new QGridLayout(this);
- layout->setSpacing(3);
- layout->setMargin(4);
-
- _fileSelector = new FileSelector("*", this, "FileSelector");
- _fileSelector->setCloseVisible(false);
- _fileSelector->setNewVisible(false);
-
- layout->addMultiCellWidget(_fileSelector, 0, 0, 0, 1);
-
- QPushButton *attachButton = new QPushButton(this);
- attachButton->setText(tr("Ok"));
- attachButton->setIconSet(Resource::loadPixmap("enter"));
-
- layout->addWidget(attachButton, 1, 0);
-
- QPushButton *cancelButton = new QPushButton(this);
- cancelButton->setText(tr("Cancel"));
- cancelButton->setIconSet(Resource::loadPixmap("editdelete"));
-
- layout->addWidget(cancelButton, 1, 1);
-
- connect(attachButton, SIGNAL(clicked()), SLOT(accept()));
- connect(cancelButton, SIGNAL(clicked()), SLOT(close()));
-
- if (_fileSelector->fileCount() == 0) {
- attachButton->setEnabled(false);
- _fileSelector->setEnabled(false);
- }
-}
-
-DocLnk AttachDiag::selectedFile()
-{
- return *_fileSelector->selected();
-}
-
-DocLnk AttachDiag::getFile(QWidget *parent)
-{
- AttachDiag attach(parent, 0, true);
- attach.showMaximized();
- attach.show();
-
- if (QDialog::Accepted == attach.exec()) {
- return attach.selectedFile();
- }
-
- return DocLnk();
-}
-
-
diff --git a/noncore/unsupported/mail2/attachdiag.h b/noncore/unsupported/mail2/attachdiag.h
deleted file mode 100644
index 88686bc..0000000
--- a/noncore/unsupported/mail2/attachdiag.h
+++ b/dev/null
@@ -1,26 +0,0 @@
-#ifndef ATTACHDIAG_H
-#define ATTACHDIAG_H
-
-#include <qdialog.h>
-
-class DocLnk;
-class FileSelector;
-
-class AttachDiag : public QDialog
-{
- Q_OBJECT
-
-public:
- DocLnk selectedFile();
- static DocLnk getFile(QWidget *parent);
-
-protected:
- AttachDiag(QWidget *parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0);
-
-private:
- FileSelector *_fileSelector;
-
-};
-
-#endif
-
diff --git a/noncore/unsupported/mail2/mail.pro b/noncore/unsupported/mail2/mail.pro
index cd21d4a..c1b7a4f 100644
--- a/noncore/unsupported/mail2/mail.pro
+++ b/noncore/unsupported/mail2/mail.pro
@@ -1,46 +1,44 @@
TEMPLATE = app
CONFIG = qt warn_on debug
#CONFIG = qt warn_on release
HEADERS = accounteditor.h \
addresspicker.h \
- attachdiag.h \
composer.h \
composerbase.h \
configdiag.h \
folderwidget.h \
listviewplus.h \
mailtable.h \
mainwindow.h \
mainwindowbase.h \
opendiag.h \
rename.h \
searchdiag.h \
viewmail.h \
viewmailbase.h
SOURCES = accounteditor.cpp \
addresspicker.cpp \
- attachdiag.cpp \
composer.cpp \
composerbase.cpp \
configdiag.cpp \
folderwidget.cpp \
listviewplus.cpp \
mailtable.cpp \
main.cpp \
mainwindow.cpp \
mainwindowbase.cpp \
opendiag.cpp \
rename.cpp \
searchdiag.cpp \
viewmail.cpp \
viewmailbase.cpp
INTERFACES = accounteditorbase.ui \
addresspickerbase.ui \
configdiagbase.ui \
opendiagbase.ui \
renamebase.ui \
searchdiagbase.ui
INCLUDEPATH += $(OPIEDIR)/include libmail
LIBS += -lmail -lqpe -lopie
TARGET = mail
DESTDIR = $(OPIEDIR)/bin