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

List:       calligra-devel
Subject:    Re: Review Request 109907: Use native file dialog instead of kfiledialog, kofiledialog, etc.
From:       "C. Boemann" <cbr () boemann ! dk>
Date:       2013-07-29 9:03:04
Message-ID: 20130729090304.1388.92263 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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


yue, could you please update the patch to current master. Thanks

- C. Boemann


On April 8, 2013, 4:18 a.m., Yue Liu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109907/
> -----------------------------------------------------------
> 
> (Updated April 8, 2013, 4:18 a.m.)
> 
> 
> Review request for Calligra.
> 
> 
> Description
> -------
> 
> Currently kfiledialog and kofiledialog is widely used, this results in non-native \
> file dialog on Mac/Windows/Gnome. However, qfiledialog static methods does not \
> support modal sheet in Mac, so a KoModalFileDialog is created for window-modal file \
> dialog, such as save as or import, while other file dialog such as open will use \
> qfiledialog static methods. 
> This is a very first version which blocks save as encrypted since encrypted odf has \
> same suffix as normal odf while when using native dialog you have to use suffix to \
> distinguish different format. My idea is to create another menu item "Save As \
> Encrypted..." where encrypted odf will be saved. 
> There are still many file dialogs not touched yet, and for places where kfilewidget \
> is used, such as startup file open widget, kexi file widget, export to pdf widget, \
> it is impossible to use native dialog. My idea is redesign those widget and split \
> the configure part and file chooser part into two separate dialogs, then use native \
> file dialogs. 
> 
> Diffs
> -----
> 
> krita/plugins/extensions/bigbrother/bigbrother.cc f59e55e 
> libs/main/CMakeLists.txt d74851b 
> libs/main/KoFileDialog.h da94281 
> libs/main/KoFileDialog.cpp c5a7fc2 
> libs/main/KoMainWindow.cpp a739cbb 
> libs/main/KoModalFileDialog.h PRE-CREATION 
> libs/main/KoModalFileDialog.cpp PRE-CREATION 
> plan/workpackage/application.cpp 942d5a7 
> sheets/dialogs/CSVDialog.h 0763538 
> sheets/dialogs/CSVDialog.cpp 4d6a19d 
> 
> Diff: http://git.reviewboard.kde.org/r/109907/diff/
> 
> 
> Testing
> -------
> 
> Works fine on OS X 10.8
> 
> 
> File Attachments
> ----------------
> 
> save as dialog
> http://git.reviewboard.kde.org/media/uploaded/files/2013/04/08/Screen_Shot_2013-04-07_at_11.54.47_PM.png
>  
> 
> Thanks,
> 
> Yue Liu
> 
> 


[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/109907/">http://git.reviewboard.kde.org/r/109907/</a>
  </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">yue, could you please \
update the patch to current master. Thanks</pre>  <br />









<p>- C.</p>


<br />
<p>On April 8th, 2013, 4:18 a.m. UTC, Yue Liu wrote:</p>








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

<div>Review request for Calligra.</div>
<div>By Yue Liu.</div>


<p style="color: grey;"><i>Updated April 8, 2013, 4:18 a.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;">Currently kfiledialog and kofiledialog is widely used, this results in \
non-native file dialog on Mac/Windows/Gnome. However, qfiledialog static methods does \
not support modal sheet in Mac, so a KoModalFileDialog is created for window-modal \
file dialog, such as save as or import, while other file dialog such as open will use \
qfiledialog static methods.

This is a very first version which blocks save as encrypted since encrypted odf has \
same suffix as normal odf while when using native dialog you have to use suffix to \
distinguish different format. My idea is to create another menu item &quot;Save As \
Encrypted...&quot; where encrypted odf will be saved.

There are still many file dialogs not touched yet, and for places where kfilewidget \
is used, such as startup file open widget, kexi file widget, export to pdf widget, it \
is impossible to use native dialog. My idea is redesign those widget and split the \
configure part and file chooser part into two separate dialogs, then use native file \
dialogs.</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;">Works fine on OS X 10.8</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>krita/plugins/extensions/bigbrother/bigbrother.cc <span style="color: \
grey">(f59e55e)</span></li>

 <li>libs/main/CMakeLists.txt <span style="color: grey">(d74851b)</span></li>

 <li>libs/main/KoFileDialog.h <span style="color: grey">(da94281)</span></li>

 <li>libs/main/KoFileDialog.cpp <span style="color: grey">(c5a7fc2)</span></li>

 <li>libs/main/KoMainWindow.cpp <span style="color: grey">(a739cbb)</span></li>

 <li>libs/main/KoModalFileDialog.h <span style="color: \
grey">(PRE-CREATION)</span></li>

 <li>libs/main/KoModalFileDialog.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>

 <li>plan/workpackage/application.cpp <span style="color: grey">(942d5a7)</span></li>

 <li>sheets/dialogs/CSVDialog.h <span style="color: grey">(0763538)</span></li>

 <li>sheets/dialogs/CSVDialog.cpp <span style="color: grey">(4d6a19d)</span></li>

</ul>

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



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

<ul>

 <li><a href="http://git.reviewboard.kde.org/media/uploaded/files/2013/04/08/Screen_Shot_2013-04-07_at_11.54.47_PM.png">save \
as dialog</a></li>

</ul>





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








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



_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel


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

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