author | groucho <groucho> | 2003-04-24 11:19:11 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-04-24 11:19:11 (UTC) |
commit | 9671975e21266e3bfa6f3c793a3278b67cea34b7 (patch) (side-by-side diff) | |
tree | 876c77939cfd0e00fc844b1b5af09b2978564a6d /noncore/net/mailit/writemail.cpp | |
parent | 51e782b9658de61dc02579e115a9c62f396609a3 (diff) | |
download | opie-9671975e21266e3bfa6f3c793a3278b67cea34b7.zip opie-9671975e21266e3bfa6f3c793a3278b67cea34b7.tar.gz opie-9671975e21266e3bfa6f3c793a3278b67cea34b7.tar.bz2 |
- reworked size filtering
- started reworking offline download
- better tab focus switching
- Hello "Whats this" capability
- Fixed parsing of To: header files (no more Delivered-To: and Reply-To: matches)
- Good bye Settings.txt, hello Config Objects and encrypted passwords
- Translation improvements (added trs)
- Parser optimizations
Diffstat (limited to 'noncore/net/mailit/writemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/writemail.cpp | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/noncore/net/mailit/writemail.cpp b/noncore/net/mailit/writemail.cpp index a9dcb02..0336c83 100644 --- a/noncore/net/mailit/writemail.cpp +++ b/noncore/net/mailit/writemail.cpp @@ -20,2 +20,3 @@ #include <qmessagebox.h> +#include <qwhatsthis.h> #include "writemail.h" @@ -29,3 +30,3 @@ WriteMail::WriteMail( QWidget* parent, const char* name, WFlags fl ) - addAtt = new AddAtt(0, "Add Attatchments"); + addAtt = new AddAtt(0, "Add Attachments"); } @@ -66,7 +67,8 @@ void WriteMail::init() bar = new QToolBar(this); - attatchButton = new QAction(tr("Attatchment"), Resource::loadPixmap("mailit/attach"), QString::null, 0, this, 0); - attatchButton->addTo(bar); - attatchButton->addTo(addMenu); - connect( attatchButton, SIGNAL( activated() ), this, SLOT( attatchFile() ) ); - + attachButton = new QAction(tr("Attachment"), Resource::loadPixmap("mailit/attach"), QString::null, 0, this, 0); + attachButton->addTo(bar); + attachButton->addTo(addMenu); + connect( attachButton, SIGNAL( activated() ), this, SLOT( attachFile() ) ); + attachButton->setWhatsThis(tr("Click here to attach files to your mail")); + confirmButton = new QAction(tr("Enque mail"), Resource::loadPixmap("OKButton"), QString::null, 0, this, 0); @@ -75,2 +77,3 @@ void WriteMail::init() connect( confirmButton, SIGNAL( activated() ), this, SLOT( accept() ) ); + confirmButton->setWhatsThis(tr("This button puts your mail in the send queue")); @@ -79,3 +82,4 @@ void WriteMail::init() connect( newButton, SIGNAL( activated() ), this, SLOT( newMail() ) ); - + newButton->setWhatsThis(tr("Click here to create a new mail")); + widget = new QWidget(this, "widget"); @@ -90,3 +94,2 @@ void WriteMail::init() - subjetLabel = new QLabel( widget, "subjetLabel" ); @@ -102,2 +105,3 @@ void WriteMail::init() grid->addWidget( subjectInput, 1, 1 ); + QWhatsThis::add(subjectInput,QWidget::tr("The mail subject should be entered here")); @@ -105,2 +109,3 @@ void WriteMail::init() grid->addWidget( toInput, 0, 1 ); + QWhatsThis::add(recipientsBox,QWidget::tr("Recipients can be entered here")); @@ -109,4 +114,4 @@ void WriteMail::init() grid->addWidget( ccInput, 0, 1 ); + QWhatsThis::add(ccInput,QWidget::tr("If you would like to send copies of your mail they can be entered here")); - addressButton = new QToolButton( widget, "addressButton" ); @@ -116,2 +121,3 @@ void WriteMail::init() connect(addressButton, SIGNAL(clicked()), this, SLOT(getAddress()) ); + QWhatsThis::add(addressButton,QWidget::tr("This button opens the address selector with all mail adresses from your OPIE addressbook")); @@ -119,4 +125,4 @@ void WriteMail::init() grid->addMultiCellWidget( emailInput, 2, 2, 0, 2); + QWhatsThis::add(recipientsBox,QWidget::tr("Enter your mail text here")); - addressView = new QListView( widget, "addressView"); @@ -128,3 +134,4 @@ void WriteMail::init() grid->addMultiCellWidget( addressView, 3, 3, 0, 2); - + QWhatsThis::add(recipientsBox,QWidget::tr("Chose the recipients from this list")); + okButton = new QToolButton(bar, "ok"); @@ -133,2 +140,3 @@ void WriteMail::init() connect(okButton, SIGNAL(clicked()), this, SLOT(addRecipients()) ); + QWhatsThis::add(okButton,QWidget::tr("Queue your mail by clicking here")); @@ -145,3 +153,3 @@ void WriteMail::accept() { - QStringList attatchedFiles, attatchmentsType; + QStringList attachedFiles, attachmentsType; int idCount = 0; @@ -198,9 +206,9 @@ void WriteMail::accept() - attatchedFiles = addAtt->returnAttatchedFiles(); - attatchmentsType = addAtt->returnFileTypes(); + attachedFiles = addAtt->returnattachedFiles(); + attachmentsType = addAtt->returnFileTypes(); - QStringList::Iterator itType = attatchmentsType.begin(); + QStringList::Iterator itType = attachmentsType.begin(); Enclosure e; - for ( QStringList::Iterator it = attatchedFiles.begin(); it != attatchedFiles.end(); ++it ) { + for ( QStringList::Iterator it = attachedFiles.begin(); it != attachedFiles.end(); ++it ) { e.id = idCount; @@ -238,3 +246,3 @@ void WriteMail::getAddress() -void WriteMail::attatchFile() +void WriteMail::attachFile() { @@ -258,3 +266,3 @@ void WriteMail::reply(Email replyMail, bool replyAll) pos = 0; - mail.body.insert(pos, ">>"); + mail.body.insert(pos, ">"); while (pos != -1) { |