[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: DCOP for konqueror
From: David Faure <faure () kde ! org>
Date: 2006-12-21 9:47:29
Message-ID: 200612211047.30203.faure () kde ! org
[Download RAW message or body]
On Thursday 21 December 2006 10:28, Krzysztof Lichota wrote:
> David Faure napisaĆ(a):
> >> Does this change also add support for getting reference to some other
> >> view than currentView()?
> >
> > No, but all views were already accessible by name - if you knew their name
> > (e.g. html-widget2, etc.)
> >
> > I have now added view(int) and part(int) (where the int is between 0 and viewCount).
> > view(int) returns a reference to the KonqViewIface which isn't really useful though
> > (and not really working right now because of a missing name it seems),
> > but part(int) is the useful stuff (at least with html pages, not so much with directories) :
> >
> > $ dcop konqueror-11150 konqueror-mainwindow\#1 part 0
> > DCOPRef(konqueror-11150,html-widget2)
> > $ dcop konqueror-11150 konqueror-mainwindow\#1 part 1
> > DCOPRef(konqueror-11150,html-widget3)
>
> Great, at least it is some kind of enumeration, I will be able to code
> my applet for searching for webpage title in Konqueror windows :).
> But providing method which returns list of views would be more intuitive
> for introspection :)
Never happy, heh? ;)
Being able to iterate between 0 and N does give you a list, semantically.
I did it that way because it's easier to use from a shell or shell scripts.
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic