|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
KIO / KIO Slave implementationHi, I need some directions on the Kdelibs code base.
I'm developing a media center that "hides" the filesystem from the user, it manage all the resources at a easy way. Part of the development is to launch the KOffice suite from my application, that's working, but when in KOffice, if the user ask to open or save a file the KFileDialog shows the default directory tree, the home user, etc.
What we look for is a way of remove the default model from KFileDialog and put a new one made by us, or by a KIO Slave, creating a new model, or by changing the KFileDialog's code "by force".
I'll be glad if someone show to this padawan the right path! Thanks in advance. --- Douglas Schmidt Undergrad Student at State University of Londrina - Brazil >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << |
|
|
Re: KIO / KIO Slave implementationLe mercredi 28 octobre 2009 19:35:31, Douglas Schmidt a écrit :
> Hi, I need some directions on the Kdelibs code base. > > I'm developing a media center that "hides" the filesystem from the user, it > manage all the resources at a easy way. > Part of the development is to launch the KOffice suite from my application, > that's working, but when in KOffice, if the user ask to open or save a file > the KFileDialog shows the default directory tree, the home user, etc. > > What we look for is a way of remove the default model from KFileDialog and > put a new one made by us, or by a KIO Slave, creating a new model, or by > changing the KFileDialog's code "by force". > > I'll be glad if someone show to this padawan the right path! Hello Writing a kioslave is quite easy. You have to implement standard methods of the KIO::SlaveBase class. Here is a quick tutorial : http://techbase.kde.org/Development/Tutorials/KIO_Slaves/Hello_World You can find the existing kioslaves at : http://websvn.kde.org/trunk/KDE/kdebase/runtime/kioslave/ http://websvn.kde.org/trunk/KDE/kdelibs/kioslave/ Regards -- Xavier Vello >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << |
|
|
Re: KIO / KIO Slave implementationOn Wednesday 28 October 2009 19:35:31 Douglas Schmidt wrote:
> Hi, I need some directions on the Kdelibs code base. > > I'm developing a media center that "hides" the filesystem from the user, it > manage all the resources at a easy way. > Part of the development is to launch the KOffice suite from my application, > that's working, but when in KOffice, if the user ask to open or save a file > the KFileDialog shows the default directory tree, the home user, etc. > > What we look for is a way of remove the default model from KFileDialog and > put a new one made by us, or by a KIO Slave, creating a new model, or by > changing the KFileDialog's code "by force". No need to force anything Look in ~/.kde4/share/apps/kfileplaces/bookmarks.xml, customise that to the entries that you want to show by default, and install that in $KDEDIR/share/apps/kfileplaces system-wide. It will be used by all new users created on the system. HTH Will >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << |
|
|
Re: KIO / KIO Slave implementationThe most simple way to show whatever virtual folders you want is to use the
nepomuk kio search slave as I do in the timeline kio slave. This allows you to have your own folder structure with arbitrary query results in them. Just an idea since I am not sure what you are trying to do... Both kio slaves can be found in kdebase/runtime/nepomuk/kioslaves Cheers, Sebastian On Wednesday 28 October 2009 19:35:31 Douglas Schmidt wrote: > Hi, I need some directions on the Kdelibs code base. > > I'm developing a media center that "hides" the filesystem from the user, it > manage all the resources at a easy way. > Part of the development is to launch the KOffice suite from my application, > that's working, but when in KOffice, if the user ask to open or save a file > the KFileDialog shows the default directory tree, the home user, etc. > > What we look for is a way of remove the default model from KFileDialog and > put a new one made by us, or by a KIO Slave, creating a new model, or by > changing the KFileDialog's code "by force". > > I'll be glad if someone show to this padawan the right path! > > Thanks in advance. > > --- > Douglas Schmidt > Undergrad Student at > State University of Londrina - Brazil > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << |
|
|
Re: KIO / KIO Slave implementationHi,
Am 28.10.2009 um 19:35 schrieb Douglas Schmidt: > Hi, I need some directions on the Kdelibs code base. > > I'm developing a media center that "hides" the filesystem from the > user, it manage all the resources at a easy way. > Part of the development is to launch the KOffice suite from my > application, that's working, but when in KOffice, if the user ask to > open or save a file the KFileDialog shows the default directory > tree, the home user, etc. > > What we look for is a way of remove the default model from > KFileDialog and put a new one made by us, or by a KIO Slave, > creating a new model, or by changing the KFileDialog's code "by > force". AFAIK Sebastian Trüg has proposed a patch which allows to change the implementation of file dialogs, see http://reviewboard.kde.org/r/1407/ This would allow you to replace KDE's file dialogs with your own ones. bye, Jonas > > I'll be glad if someone show to this padawan the right path! > > Thanks in advance. > > --- > Douglas Schmidt > Undergrad Student at > State University of Londrina - Brazil > >>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to >>> unsubscribe << >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << |
|
|
Re: KIO / KIO Slave implementationOn Friday 30 October 2009, Jonas Bähr wrote:
> Hi, > > Am 28.10.2009 um 19:35 schrieb Douglas Schmidt: > > Hi, I need some directions on the Kdelibs code base. > > > > I'm developing a media center that "hides" the filesystem from the > > user, it manage all the resources at a easy way. > > Part of the development is to launch the KOffice suite from my > > application, that's working, but when in KOffice, if the user ask to > > open or save a file the KFileDialog shows the default directory > > tree, the home user, etc. > > > > What we look for is a way of remove the default model from > > KFileDialog and put a new one made by us, or by a KIO Slave, > > creating a new model, or by changing the KFileDialog's code "by > > force". > > AFAIK Sebastian Trüg has proposed a patch which allows to change the > implementation of file dialogs, see http://reviewboard.kde.org/r/1407/ > This would allow you to replace KDE's file dialogs with your own ones. but rather embedd the widget. -- Cyrille Berger >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << |
|
|
Re: KIO / KIO Slave implementation2009/10/30 Cyrille Berger <cberger@...>
Mmh, not sure about this: I don't have my development notebook here now, but I think it works there too, at least with the smartsave dialog...
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << |
| Free embeddable forum powered by Nabble | Forum Help |