From 3f67782ce1bd64e9b41c7bc3c10866a8d9057766 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Mon, 31 Jan 2011 20:35:09 +0000 Subject: [PATCH] MessageComposer: - Removed standard subject "No Title" - Corrected tabstops - Set focus to subject after asking "Do you want to send the message without a subject ?" git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4005 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/msgs/MessageComposer.cpp | 3 +- .../src/gui/msgs/MessageComposer.ui | 168 ++++++++++++------ 2 files changed, 114 insertions(+), 57 deletions(-) diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.cpp b/retroshare-gui/src/gui/msgs/MessageComposer.cpp index d3d250326..ced665691 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.cpp +++ b/retroshare-gui/src/gui/msgs/MessageComposer.cpp @@ -951,8 +951,6 @@ MessageComposer *MessageComposer::newMsg(const std::string &msgId /*= ""*/) } msgComposer->ui.msgText->document()->setModified(false); - } else { - msgComposer->insertTitleText(tr("No Title")); } msgComposer->calculateTitle(); @@ -1130,6 +1128,7 @@ bool MessageComposer::sendMessage_internal(bool bDraftbox) /* check for existing title */ if (bDraftbox == false && mi.title.empty()) { if (QMessageBox::warning(this, tr("RetroShare"), tr("Do you want to send the message without a subject ?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::No) { + ui.titleEdit->setFocus(); return false; // Don't send with an empty subject } } diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.ui b/retroshare-gui/src/gui/msgs/MessageComposer.ui index d8d117dba..ede171600 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.ui +++ b/retroshare-gui/src/gui/msgs/MessageComposer.ui @@ -7,7 +7,7 @@ 0 0 796 - 564 + 588 @@ -17,7 +17,7 @@ Compose - + :/images/folder-draft.png:/images/folder-draft.png @@ -108,6 +108,9 @@ MS Shell Dlg 2 + + Qt::NoFocus + Reset @@ -299,6 +302,9 @@ border: 1px solid #CCCCCC;} 16777215 + + Qt::ClickFocus + Paragraph @@ -349,6 +355,9 @@ border: 1px solid #CCCCCC;} 16777215 + + Qt::ClickFocus + @@ -359,6 +368,9 @@ border: 1px solid #CCCCCC;} 16777215 + + Qt::ClickFocus + Font size @@ -372,6 +384,9 @@ border: 1px solid #CCCCCC;} 1677 + + Qt::NoFocus + Increase font size @@ -379,7 +394,7 @@ border: 1px solid #CCCCCC;} - + :/images/textedit/format_font_size_more.png:/images/textedit/format_font_size_more.png @@ -401,6 +416,9 @@ border: 1px solid #CCCCCC;} 167 + + Qt::NoFocus + Decrease font size @@ -408,7 +426,7 @@ border: 1px solid #CCCCCC;} - + :/images/textedit/format_font_size_less.png:/images/textedit/format_font_size_less.png @@ -436,6 +454,9 @@ border: 1px solid #CCCCCC;} 1677 + + Qt::NoFocus + Bold @@ -443,7 +464,7 @@ border: 1px solid #CCCCCC;} - + :/images/textedit/textbold.png:/images/textedit/textbold.png @@ -460,44 +481,6 @@ border: 1px solid #CCCCCC;} - - - - - 0 - 0 - - - - - 167 - 167 - - - - Underline - - - - - - - :/images/textedit/textunder.png:/images/textedit/textunder.png - - - - 24 - 24 - - - - true - - - true - - - @@ -512,6 +495,9 @@ border: 1px solid #CCCCCC;} 167 + + Qt::NoFocus + Italic @@ -519,7 +505,7 @@ border: 1px solid #CCCCCC;} - + :/images/textedit/textitalic.png:/images/textedit/textitalic.png @@ -550,6 +536,9 @@ border: 1px solid #CCCCCC;} 167 + + Qt::NoFocus + Select Color @@ -575,6 +564,9 @@ border: 1px solid #CCCCCC;} 167 + + Qt::NoFocus + Alignment @@ -609,6 +601,9 @@ border: 1px solid #CCCCCC;} 167 + + Qt::NoFocus + Add a Image @@ -616,7 +611,7 @@ border: 1px solid #CCCCCC;} - + :/images/add_image24.png:/images/add_image24.png @@ -632,6 +627,9 @@ border: 1px solid #CCCCCC;} + + Qt::NoFocus + Sets text font to code style @@ -639,7 +637,7 @@ border: 1px solid #CCCCCC;} - + :/images/textedit/hi22-action-format-text-code.png:/images/textedit/hi22-action-format-text-code.png @@ -668,8 +666,11 @@ border: 1px solid #CCCCCC;} + + Qt::NoFocus + - + :/images/emoticons/kopete/kopete020.png:/images/emoticons/kopete/kopete020.png @@ -683,6 +684,47 @@ border: 1px solid #CCCCCC;} + + + + + 0 + 0 + + + + + 167 + 167 + + + + Qt::NoFocus + + + Underline + + + + + + + :/images/textedit/textunder.png:/images/textedit/textunder.png + + + + 24 + 24 + + + + true + + + true + + + @@ -751,6 +793,9 @@ border: 1px solid #CCCCCC;} 68 + + false + QAbstractItemView::SingleSelection @@ -919,7 +964,7 @@ border: 1px solid #CCCCCC;} - + :/images/send24.png:/images/send24.png @@ -931,7 +976,7 @@ border: 1px solid #CCCCCC;} - + :/images/replymail24.png:/images/replymail24.png @@ -940,7 +985,7 @@ border: 1px solid #CCCCCC;} - + :/images/contacts24.png:/images/contacts24.png @@ -952,7 +997,7 @@ border: 1px solid #CCCCCC;} - + :/images/save24.png:/images/save24.png @@ -964,7 +1009,7 @@ border: 1px solid #CCCCCC;} - + :/images/attach.png:/images/attach.png @@ -979,7 +1024,7 @@ border: 1px solid #CCCCCC;} true - + :/images/quote_24.png:/images/quote_24.png @@ -991,10 +1036,23 @@ border: 1px solid #CCCCCC;} - msgSendList + recipientWidget + titleEdit msgText msgFileList + filterPatternLineEdit + msgSendList + addToButton + addCcButton + addBccButton + addRecommendButton + comboSize + comboStyle + comboFont + hashBox - + + +