<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">---------- Messaggio inoltrato ----------<br>From: Yuen Hoe Lim <<a href="mailto:yuenhoe86@gmail.com">yuenhoe86@gmail.com</a>><br>
To: plasma-devel <<a href="mailto:plasma-devel@kde.org">plasma-devel@kde.org</a>><br>Date: Fri, 6 Nov 2009 18:59:43 +0800<br>Subject: PlasMate questions<br>Yeah, it's me again >.< So I've been spending my free time hacking at PlasMate (mainly editor/previewer related atm) and have more than a couple of questions that I hope you kind people can give me a hand on :)<br>
<br>First up is a programming question. I'm trying to get the editor (katepart) to remember its size (or relative size) so that after the user adjusts the editor size once, it will be that size whenever the editor is activated. I can't do it :( I've tried the obvious - saving the width and height and attempting to restore it later - but I don't know how to restore it, resize() doesn't work, and I don't want to use setFixedSize or setMinimumSize which would prevent/limit further resizing by the user. I've also tried not deleting the kpart and reusing it everytime - but then I discovered that QMainWindow takes ownership of your widget once you set it as central widget, so eventually QMainWindow happily deletes the kpart, and plasmate crashes. Any other alternative methods I can try to achieve this? It seemed like it would be easy to do at first =(<br>
</blockquote><div><br>This is an annoying issue, but now I think it's more important to fix other bad behaviours, in my opinion ( for example, the editor should prompt the user to save the file when closing PlasMate, instead of losing unsaved changes )<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Second, I think minus some rough edges (like the abovementioned issue), the previewer+editor is mostly done (for plasmoids anyway). I'm thinking it's probably time to start making progress on the publishing widget. Do we have a mockup or something of that sitting somewhere that I can refer to to get me started? :)<br>
</blockquote><div><br>IIRC, there were rumors about using gitorious to publish the projects, but I haven't heard no one for further confirmation.<br>Regardless this point, we have to provide a way to sign/verify the projects ( using QCA ? ) accordingly with the example i wrote some time ago ( blue/green/yellow/red flags for trusting policy ).<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Third, I'm guessing that the 'New' buttons in the editor tree should not behave like they currently do. I'm guessing they should really pop up a dialog asking for a filename for the new file? I'm also thinking that this dialog should probably be the same as the one you see in dolphin/konqueror when creating a new file, so... is there a possibility of reusing some code somewhere for that?<br>
<br>Fourth, I noticed that katepart creates backup files (terminating with a '~') whenever plasmate autosaves a file, and then that backup file shows up in the editor tree and makes it look ugly :P It clearly has to go, my question is does it make more sense to just get plasmate to ignore files ending with a '~', or should I find a way to stop katepart from creating backups?<br>
</blockquote><div><br>We can also tweak this issue by filtering and skipping these files when creating the tree view; i dont really want to disable the backup feature ( what could happen if the power goes down ?)<br><br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Thanks in advance :)<br></blockquote><div><br>cheers =) <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br clear="all">----<br>
Jason "moofang" Lim Yuen Hoe<br><a href="http://yuenhoe.co.cc/" target="_blank">http://yuenhoe.co.cc/</a><br></blockquote></div><br>