[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kant
Subject:    Questions about the kate part
From:       Roland Krause <rokrau () yahoo ! com>
Date:       2002-01-14 6:58:46
[Download RAW message or body]

Ok experts, here are a few questions, forgive me if I am a bit naive, I
still feel lost in all the kparts stuff. 

First, what do I do to load a kate part but I dont really need a
document. As it looks like the Factory->create() call will always
return a Kate::Document, is that right? 

What do you suggest I'd do with that if I dont need it? I want the
kpart to be loaded when kdevelop starts, so that there is editor
functionality immediately. I guess I can always save the pointer to it
until I need one. I guess the alternative would be to implement some of
the menu and toolbar stuff in kdevelop itself so that it would work
right away, not such a great idea. 

What actually happens when a part is unloaded? Can I unload a part?  Is
there some sort of gc for the created actions? 

Second, how do I disable and enable KACtions that are merged into the
GUI. I.e. how do I find the pointer to a KAction "file_new" in order to
disable it when there is no project? 

More to come,
thanks in advance
Roland








__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
_______________________________________________
kde-kant mailing list
kde-kant@
http://mail.kde.org/mailman/listinfo/kde-kant
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic