Yes, we can integrate pyqt via kross (yes, i know, it rocks a lot :D)<br><br><div class="gmail_quote">On Sat, Jan 3, 2009 at 12:04 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On 02.01.09 22:47:02, Evgeniy Ivanov wrote:<br>
> Happy New Year folks :)<br>
><br>
> Some time ago I have found nice thing called QBzr:<br>
> <a href="http://bazaar-vcs.org/QBzr" target="_blank">http://bazaar-vcs.org/QBzr</a><br>
> AFAIK it's developed by one of K developers.<br>
> But it's a plugin and not a separate application like QGit.<br>
><br>
> It has nice UI and functionality, which is in todo for our bzr plugin.<br>
> And many things could be reused since it's a kind of a library and it's<br>
> in python.<br>
><br>
> It works in such way: bzr qCOMMAND (like commit, log, etc).<br>
><br>
> I did some small experiments:<br>
><br>
> #It will open a window as a Qt application, but AFAIK we can embed it,<br>
> but not sure<br>
> #I didn't set current dir (dir with repo), it's set by application's<br>
> active dir.<br>
> >>> from bzrlib.plugins.qbzr import cmd_qlog<br>
> >>> cmd_obj = cmd_qlog()<br>
> >>> run = cmd_obj.run_argv_aliases<br>
> >>> run([])<br>
><br>
> #It's better, since we control tree object (repo dir) and some other<br>
> things (we will not create application in KD)<br>
> >>> import sys<br>
> >>> from PyQt4 import QtGui, QtCore<br>
> >>> from bzrlib import workingtree<br>
> >>> from bzrlib.plugins.qbzr import CommitWindow<br>
> >>> tree =<br>
> workingtree.WorkingTree.open('/home/kde-devel/kdevelop-projects/bazaar')<br>
> >>> app = QtGui.QApplication(sys.argv)<br>
> >>> cm_window = CommitWindow(tree, [])<br>
> >>> cm_window.show()<br>
<br>
</div></div>Can we embed these widgets into our mainwindow? For example the log window<br>
would need to be inside a toolview, not a standalone window. </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Quite frankly, I have no idea wether this will work out or not. It<br>
basically boils down to: How much control do we have over those<br>
windows/wigets? Can we for example pre-select the file that should be<br>
committed in the commit-window? Can we limit the revisions to be shown in<br>
a log window? Does this really work with Kross (I have no idea wether PyQt4<br>
code works with C++ code via kross...)? Last but not least: Is this<br>
available in distro's? How many dependencies do we get with this?<br>
<br>
If you can play around with the code and answer the above questions, then<br>
we can make a decision wether to go down that road completely or not :)<br>
</blockquote><div>Well, I think that it will be better than nowadays code, so I'm all for it.<br><br>If you need any help just tell me. I'm having exams soon but I'd love to help.<br><br>Aleix <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>
Andreas<br>
<font color="#888888"><br>
--<br>
You will gain money by a fattening action.<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br>