<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/100795/">http://git.reviewboard.kde.org/r/100795/</a>
     </td>
    </tr>
   </table>
   <br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On March 12th, 2011, 1:57 p.m., <b>Milian Wolff</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">please split buddy/cleanup review requests

and I'm missing the code that defines IBuddyDocumentFinder - seems to be not included in the patchset

furthermore I don't see *any* reason for putting the IBuddy stuff into sublime, make it kdevplatform interfaces and put the implementation into shell and use it in the document controller

imo for sublime the only change required is the "open view after view x"</pre>
 </blockquote>




 <p>On March 14th, 2011, 5:13 p.m., <b>Dmitry Risenberg</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">>and I'm missing the code that defines IBuddyDocumentFinder - seems to be not included in the patchset.

It actually is, the list of files in patch has a second page.</pre>
 </blockquote>








</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">>please split buddy/cleanup review requests
Done, for the "buddy documents", see https://git.reviewboard.kde.org/r/100874/ . A new diff is uploaded there.

Moved IBuddyDocumentFinder into interfaces. BuddyFinderRegistry exists no more, its functionality is directly integrated in IBuddyDocumentFinder, because the two classes were very tiny.</pre>
<br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On March 12th, 2011, 1:57 p.m., <b>Milian Wolff</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/100795/diff/2/?file=10925#file10925line434" style="color: black; font-weight: bold; text-decoration: underline;">shell/documentcontroller.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">struct DocumentControllerPrivate {</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">434</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="k">else</span> <span class="c1">// no buddy found for new document / plugin does not support buddies / buddy feature disabled</span></pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">hm you say here buddies are not applicable but there is still code using buddyFinder below?</pre>
 </blockquote>





</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This portion of code is for the following case: We have the tabs
| *foo.h* | foo.cpp | (foo.h is active).
"Open new tab after current" in uiconfig is activated. When now the user opens bar.cpp, the new tab would be placed between foo.h and foo.cpp, seperating the "buddies". So, when the "buddy document" option is enabled, we handle this case by skipping one tab and placing the new tab after foo.cpp.

Note: The "buddy documents" are only are only accounted for when openDocument() is called, afterwards the user may move the tabs as (s)he wants.</pre>
<br />

<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On March 12th, 2011, 1:57 p.m., <b>Milian Wolff</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/100795/diff/2/?file=10939#file10939line36" style="color: black; font-weight: bold; text-decoration: underline;">sublime/cleanup.h</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">class Container;</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">36</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="n">class</span> <span class="n">ICleanupStrategy</span></pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">this seems unused.

if it's supposed to be used from plugins or so it requires to be exported and put into a proper standalone icleanupstrategy.h header

anyways could you please split up the review requests? this seems unrelated to the buddy stuff above and I'd rather review it separately</pre>
 </blockquote>





</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">>this seems unrelated to the buddy stuff above and I'd rather review it separately
They're not completely unrelated, as we used the "buddy" feature to filter the list of tabs that are proposed for closing. (If foo.h is considered as outdated, but foo.cpp was recently used, then foo.h is not proposed for closing)</pre>
<br />




<p>- Martin</p>


<br />
<p>On March 10th, 2011, 7:25 p.m., Yannick Motta wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.orgrb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for KDevelop.</div>
<div>By Yannick Motta.</div>


<p style="color: grey;"><i>Updated March 10, 2011, 7:25 p.m.</i></p>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Add document buddy architecture :
Allow kdevelop language plugins to manage related documents (like foo.h and foo.cpp for cpp plugin)
Language plugins may implement IBuddyDocumentFinder to define the rules (how to know if two documents are buddies).
Language plugins that implement IBuddyDocumentFinder  must register themselves with BuddyFinderRegistry.
An option was added to open documents side by side with its buddies.

Add smart cleanup feature to allow user to easily close outdated tabs related to each tab-bar.
Outdated tabs are files that are not currently used.
This feature is configurable, user can choose the time after which smart cleanup considers an unused tab outdated.
An document is considered active if it is active at least five seconds.
Last five documents are never outdated. 
If an outdated document has an active buddy, it is immune to cleanup.
User must manually start cleanup feature on the context menu of the tab-bar.
A dialog opens and user can see which documents are considered outdated. User can remove documents from the list.
If the user clicks "ok", tabs will be close.

Add an option to hide close buttons on tabs in order to free some space.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">We have added two unit tests :
sublime-cleanuptest
shell-buddytest
both pass without error.
manual test seems also working as expected.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>interfaces/idocumentcontroller.h <span style="color: grey">(d036afa)</span></li>

 <li>shell/documentcontroller.h <span style="color: grey">(8dc3706)</span></li>

 <li>shell/documentcontroller.cpp <span style="color: grey">(bc0a3dd)</span></li>

 <li>shell/settings/uiconfig.kcfg <span style="color: grey">(60dccb2)</span></li>

 <li>shell/settings/uiconfig.kcfgc <span style="color: grey">(3c02f72)</span></li>

 <li>shell/settings/uiconfig.ui <span style="color: grey">(61f4b08)</span></li>

 <li>shell/tests/CMakeLists.txt <span style="color: grey">(b093565)</span></li>

 <li>shell/tests/documentcontrollertest.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>shell/tests/documentcontrollertest.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>shell/tests/shellbuddytest.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>shell/tests/shellbuddytest.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/CMakeLists.txt <span style="color: grey">(f9aaaeb)</span></li>

 <li>sublime/area.h <span style="color: grey">(df0e2bb)</span></li>

 <li>sublime/area.cpp <span style="color: grey">(efa8025)</span></li>

 <li>sublime/buddyfinderregistry.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/buddyfinderregistry.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/cleanup.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/cleanup.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/cleanupdialog.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/cleanupdialog.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/cleanupdialog.ui <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/container.h <span style="color: grey">(1633a9f)</span></li>

 <li>sublime/container.cpp <span style="color: grey">(f858575)</span></li>

 <li>sublime/controller.h <span style="color: grey">(e8b4794)</span></li>

 <li>sublime/controller.cpp <span style="color: grey">(a8dd38a)</span></li>

 <li>sublime/ibuddydocumentfinder.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/mainwindow.cpp <span style="color: grey">(a2d1aab)</span></li>

 <li>sublime/tests/CMakeLists.txt <span style="color: grey">(410412b)</span></li>

 <li>sublime/tests/areaoperationtest.h <span style="color: grey">(0e0f08e)</span></li>

 <li>sublime/tests/areaoperationtest.cpp <span style="color: grey">(28dbeff)</span></li>

 <li>sublime/tests/cleanuptest.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>sublime/tests/cleanuptest.cpp <span style="color: grey">(PRE-CREATION)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/100795/diff/" style="margin-left: 3em;">View Diff</a></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Screenshots </h1>

<div>

 <a href="http://git.reviewboard.kde.org/r/100795/s/90/"><img src="http://git.reviewboard.kde.org/media/uploaded/images/2011/03/04/Ui_settings_400x100.png" style="border: 1px black solid;" alt="New ui settings" /></a>

 <a href="http://git.reviewboard.kde.org/r/100795/s/91/"><img src="http://git.reviewboard.kde.org/media/uploaded/images/2011/03/04/Cleanup_dialog_400x100.png" style="border: 1px black solid;" alt="Cleanup dialog and hided close buttons" /></a>

 <a href="http://git.reviewboard.kde.org/r/100795/s/92/"><img src="http://git.reviewboard.kde.org/media/uploaded/images/2011/03/04/tab_bat_context_menu_400x100.png" style="border: 1px black solid;" alt="Tab bar context menu" /></a>

</div>


  </td>
 </tr>
</table>








  </div>
 </body>
</html>