[PATCH] KNotes: geometry DCOP functions, DCOP newlines question

Michael Brade brade at kde.org
Sat Jul 8 10:41:21 BST 2006


On Wednesday 05 July 2006 21:11, Michael Brade wrote:
> here's another trivial patch to add 4 new DCOP methods I have been asked
> repeatedly to support: height(), width(), move(), and resize(). Cornelius?
> :)
"Same procedure as every year, James." huh? ;-( Who cares to answer?

> And I have another problem: is it possible to add newline characters with
> DCOP somehow? This
>   dcop knotes KNotesIface newNote "title" "line1\nline2"
> doesn't work.
>
> In a script it is possible to use two lines like this
>
> dcop knotes KNotesIface newNote "title" "line1
> line2"
>
> but is this really the only possibility?
I want to add: I have a user who reads lines from files, builds the document 
and wants to send it through DCOP to KNotes. So the above solution is not 
possible in his case. 

If there is no other way to encode a newline for DCOP I will have to add 
another method "appendText( const QString & )".

Thanks,
-- 
Rohan (Michael) Brade;         KDE Developer, Student of Computer Science
  |-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
  °--web: http://www.kde.org/people/michaelb.html

KDE 4: Beyond Your Expectations
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060708/584fac7d/attachment.sig>


More information about the kde-core-devel mailing list