Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9951/src/gui

Modified Files:
        wxComposeView.cpp 
Log Message:
Speed up replies to many recipients (no layout except last recipient)

Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.388
retrieving revision 1.389
diff -b -u -2 -r1.388 -r1.389
--- wxComposeView.cpp   11 Jul 2005 22:44:04 -0000      1.388
+++ wxComposeView.cpp   19 Jul 2005 08:21:05 -0000      1.389
@@ -2272,5 +2272,5 @@
 
 void
-wxComposeView::AddRecipientControls(const String& value, RecipientType rt)
+wxComposeView::AddRecipientControls(const String& value, RecipientType rt, 
bool doLayout)
 {
    // remove the place holder we had there before
@@ -2293,6 +2293,9 @@
 
    m_sizerRcpts->Prepend(sizerRcpt, 0, wxALL | wxEXPAND, LAYOUT_MARGIN / 2);
+   if (doLayout)
+   {
    m_sizerRcpts->Layout();
    m_panelRecipients->RefreshScrollbar(m_panelRecipients->GetClientSize());
+   }
 
    // adjust the indexes of all the existing controls
@@ -2335,5 +2338,5 @@
 
 void
-wxComposeView::AddRecipients(const String& address, RecipientType addrType)
+wxComposeView::AddRecipients(const String& address, RecipientType addrType, 
bool doLayout)
 {
    // if there is no address, nothing to do
@@ -2358,5 +2361,5 @@
             for ( size_t n = 0; n < count; n++ )
             {
-               AddRecipient(groups[n], Recipient_Newsgroup);
+               AddRecipient(groups[n], Recipient_Newsgroup, doLayout);
             }
          }
@@ -2384,5 +2387,5 @@
                   if ( !address.empty() )
                   {
-                     AddRecipient(address, addrType);
+                     AddRecipient(address, addrType, doLayout);
                   }
 
@@ -2415,5 +2418,5 @@
          {
             // add another folder
-            AddRecipient(address, Recipient_Fcc);
+            AddRecipient(address, Recipient_Fcc, doLayout);
          }
          break;
@@ -2426,5 +2429,5 @@
 
 void
-wxComposeView::AddRecipient(const String& addr, RecipientType addrType)
+wxComposeView::AddRecipient(const String& addr, RecipientType addrType, bool 
doLayout)
 {
    // this is a private function, AddRecipients() above is the public one and 
it
@@ -2479,5 +2482,5 @@
 
    // do add it if not found
-   AddRecipientControls(addr, addrType);
+   AddRecipientControls(addr, addrType, doLayout);
 }
 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to