[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: Review Request: Add appmenu support to kwin
From:       Bellegarde_Cédric <gnumdk () gmail ! com>
Date:       2012-03-22 7:28:22
Message-ID: 20120322072822.8384.51229 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On March 22, 2012, 6:49 a.m., Martin Gräßlin wrote:
> > kwin/client.h, lines 594-596
> > <http://git.reviewboard.kde.org/r/104344/diff/5/?file=54066#file54066line594>
> > 
> > why is this needed? We don't have something like that for the normal menu.

We need to this to get button position when calling menu via shortcut. Window menu \
always popup on left side...

We can disable this code if you thinks it's not needed.


- Bellegarde


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104344/#review11734
-----------------------------------------------------------


On March 21, 2012, 2:50 p.m., Bellegarde Cédric wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/104344/
> -----------------------------------------------------------
> 
> (Updated March 21, 2012, 2:50 p.m.)
> 
> 
> Review request for kwin.
> 
> 
> Description
> -------
> 
> Here a patch to add appmenu support to kwin:
> - via a menu button in titlebar
> - via a global shortcut
> 
> Works by Lionel Chauvin and me, original review request: \
> https://git.reviewboard.kde.org/r/101162/ 
> It depends on:
> http://quickgit.kde.org/index.php?p=kded-appmenu.git
> 
> Kubuntu and ArchLinux packages (KDE 4.8.1 backport) availables here:
> http://kde-look.org/content/show.php/kde-workspace-appmenu?content=148583
> 
> It looks like this:
> http://www.youtube.com/watch?v=j0o1sRLRc60&hd=1
> 
> I remove ( http://kde-look.org/CONTENT/content-pre1/141254-1.png ) this way to show \
>                 menu button because:
> - It conflicts with window menu button
> - Using application name is impossible (we only have window class and sometime it's \
>                 quite ugly)
> - Using just "Menu" really looks bad
> 
> 
> Diffs
> -----
> 
> kwin/CMakeLists.txt 463692d 
> kwin/bridge.h 64108e5 
> kwin/bridge.cpp 897d432 
> kwin/client.h b394687 
> kwin/client.cpp 8ff98c6 
> kwin/clients/oxygen/oxygenbutton.h ea11717 
> kwin/clients/oxygen/oxygenbutton.cpp 28aa8b1 
> kwin/clients/oxygen/oxygenclient.cpp 7a2b021 
> kwin/clients/oxygen/oxygenfactory.h b38b097 
> kwin/clients/oxygen/oxygenfactory.cpp 827aa59 
> kwin/kcmkwin/kwindecoration/buttons.cpp 2d12244 
> kwin/kcmkwin/kwindecoration/preview.h 20ee869 
> kwin/kcmkwin/kwindecoration/preview.cpp fe802c7 
> kwin/kcmkwin/kwinoptions/windows.h 3fadf2c 
> kwin/kcmkwin/kwinoptions/windows.cpp 30c94c0 
> kwin/kwin.kcfg cf6537e 
> kwin/kwinbindings.cpp 3284cf0 
> kwin/libkdecorations/kcommondecoration.h 3fe9fcf 
> kwin/libkdecorations/kcommondecoration.cpp 02a33e9 
> kwin/libkdecorations/kdecoration.h 442d0a1 
> kwin/libkdecorations/kdecoration.cpp f26699a 
> kwin/libkdecorations/kdecorationbridge.h b7d0619 
> kwin/menubar.h PRE-CREATION 
> kwin/menubar.cpp PRE-CREATION 
> kwin/options.h c0ab6b2 
> kwin/options.cpp f17a421 
> kwin/scripting/workspace_wrapper.h 0b44b6e 
> kwin/scripting/workspace_wrapper.cpp c0de078 
> kwin/useractions.cpp dfb6fd4 
> kwin/workspace.h 1c6a831 
> kwin/workspace.cpp 66fb50c 
> 
> Diff: http://git.reviewboard.kde.org/r/104344/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Bellegarde Cédric
> 
> 


[Attachment #5 (text/html)]

<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/104344/">http://git.reviewboard.kde.org/r/104344/</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 22nd, 2012, 6:49 a.m., <b>Martin \
Gräßlin</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/104344/diff/5/?file=54066#file54066line594" \
style="color: black; font-weight: bold; text-decoration: \
underline;">kwin/client.h</a>  <span style="font-weight: normal;">

     (Diff revision 5)

    </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; \
">public:</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">594</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span \
class="kt">void</span> <span class="nf">setApplicationMenuIsLeft</span><span \
class="p">(</span><span class="k">const</span> <span class="n">bool</span> <span \
class="n">isLeft</span><span class="p">)</span> <span class="p">{</span> <span \
class="n">appMenuIsLeft</span> <span class="o">=</span> <span \
class="n">isLeft</span><span class="p">;</span> <span class="p">}</span></pre></td>  \
</tr>

  <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">595</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span \
class="n">bool</span> <span class="n">applicationMenuIsLeft</span><span \
class="p">()</span> <span class="k">const</span> <span class="p">{</span> <span \
class="k">return</span> <span class="n">appMenuIsLeft</span><span class="p">;</span> \
<span class="p">}</span></pre></td>  </tr>

  <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">596</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></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;">why is this needed? We \
don&#39;t have something like that for the normal menu.</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;">We need to \
this to get button position when calling menu via shortcut. Window menu always popup \
on left side...

We can disable this code if you thinks it&#39;s not needed.</pre>
<br />




<p>- Bellegarde</p>


<br />
<p>On March 21st, 2012, 2:50 p.m., Bellegarde Cédric wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/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 kwin.</div>
<div>By Bellegarde Cédric.</div>


<p style="color: grey;"><i>Updated March 21, 2012, 2:50 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;">Here a patch to add appmenu support to kwin:
- via a menu button in titlebar
- via a global shortcut

Works by Lionel Chauvin and me, original review request: \
https://git.reviewboard.kde.org/r/101162/

It depends on:
http://quickgit.kde.org/index.php?p=kded-appmenu.git

Kubuntu and ArchLinux packages (KDE 4.8.1 backport) availables here:
http://kde-look.org/content/show.php/kde-workspace-appmenu?content=148583

It looks like this:
http://www.youtube.com/watch?v=j0o1sRLRc60&amp;hd=1

I remove ( http://kde-look.org/CONTENT/content-pre1/141254-1.png ) this way to show \
                menu button because:
- It conflicts with window menu button
- Using application name is impossible (we only have window class and sometime \
                it&#39;s quite ugly)
- Using just &quot;Menu&quot; really looks bad</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>kwin/CMakeLists.txt <span style="color: grey">(463692d)</span></li>

 <li>kwin/bridge.h <span style="color: grey">(64108e5)</span></li>

 <li>kwin/bridge.cpp <span style="color: grey">(897d432)</span></li>

 <li>kwin/client.h <span style="color: grey">(b394687)</span></li>

 <li>kwin/client.cpp <span style="color: grey">(8ff98c6)</span></li>

 <li>kwin/clients/oxygen/oxygenbutton.h <span style="color: \
grey">(ea11717)</span></li>

 <li>kwin/clients/oxygen/oxygenbutton.cpp <span style="color: \
grey">(28aa8b1)</span></li>

 <li>kwin/clients/oxygen/oxygenclient.cpp <span style="color: \
grey">(7a2b021)</span></li>

 <li>kwin/clients/oxygen/oxygenfactory.h <span style="color: \
grey">(b38b097)</span></li>

 <li>kwin/clients/oxygen/oxygenfactory.cpp <span style="color: \
grey">(827aa59)</span></li>

 <li>kwin/kcmkwin/kwindecoration/buttons.cpp <span style="color: \
grey">(2d12244)</span></li>

 <li>kwin/kcmkwin/kwindecoration/preview.h <span style="color: \
grey">(20ee869)</span></li>

 <li>kwin/kcmkwin/kwindecoration/preview.cpp <span style="color: \
grey">(fe802c7)</span></li>

 <li>kwin/kcmkwin/kwinoptions/windows.h <span style="color: \
grey">(3fadf2c)</span></li>

 <li>kwin/kcmkwin/kwinoptions/windows.cpp <span style="color: \
grey">(30c94c0)</span></li>

 <li>kwin/kwin.kcfg <span style="color: grey">(cf6537e)</span></li>

 <li>kwin/kwinbindings.cpp <span style="color: grey">(3284cf0)</span></li>

 <li>kwin/libkdecorations/kcommondecoration.h <span style="color: \
grey">(3fe9fcf)</span></li>

 <li>kwin/libkdecorations/kcommondecoration.cpp <span style="color: \
grey">(02a33e9)</span></li>

 <li>kwin/libkdecorations/kdecoration.h <span style="color: \
grey">(442d0a1)</span></li>

 <li>kwin/libkdecorations/kdecoration.cpp <span style="color: \
grey">(f26699a)</span></li>

 <li>kwin/libkdecorations/kdecorationbridge.h <span style="color: \
grey">(b7d0619)</span></li>

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

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

 <li>kwin/options.h <span style="color: grey">(c0ab6b2)</span></li>

 <li>kwin/options.cpp <span style="color: grey">(f17a421)</span></li>

 <li>kwin/scripting/workspace_wrapper.h <span style="color: \
grey">(0b44b6e)</span></li>

 <li>kwin/scripting/workspace_wrapper.cpp <span style="color: \
grey">(c0de078)</span></li>

 <li>kwin/useractions.cpp <span style="color: grey">(dfb6fd4)</span></li>

 <li>kwin/workspace.h <span style="color: grey">(1c6a831)</span></li>

 <li>kwin/workspace.cpp <span style="color: grey">(66fb50c)</span></li>

</ul>

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




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








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



_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic