author | conber <conber> | 2002-06-19 20:34:10 (UTC) |
---|---|---|
committer | conber <conber> | 2002-06-19 20:34:10 (UTC) |
commit | dd53a68602f625e02188411d4469f2ec13e1dae8 (patch) (side-by-side diff) | |
tree | d5ac5a485c262ea3bb8aa91b46be8074a9d0eed4 /noncore/unsupported/mail2/attachdiag.cpp | |
parent | c5492c760713b3ece235a6d53008e2cb042c5cfc (diff) | |
download | opie-dd53a68602f625e02188411d4469f2ec13e1dae8.zip opie-dd53a68602f625e02188411d4469f2ec13e1dae8.tar.gz opie-dd53a68602f625e02188411d4469f2ec13e1dae8.tar.bz2 |
attachdiag is not needed anymore
Diffstat (limited to 'noncore/unsupported/mail2/attachdiag.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/attachdiag.cpp | 68 |
1 files changed, 0 insertions, 68 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(); -} - - |