This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Configuring Kate to use tree view

Tags: None
(comma "," separated)
jvedi
Registered Member
Posts
4
Karma
0
Hi all,

I'm running Debian Lenny, and I decided to install KDE 4.1 from the backports page at http://kde4.debian.net/. I noticed that in Dolphin you can use a tree view to view files, and I was hoping that that feature would be extended to Kate. I can't seem to find a way to do that, and in my searching on the internet I found this plugin for Kate:

http://www.kde-apps.org/content/show.php/kate+treeview+plugin?content=80940

I noticed in the comments that someone mentioned that that functionality is already included in KDE 4. My question is, is he referring to KDE 4.2 or 4.1? And if he is referring to 4.1, how do I configure Kate to use it?

As a side note, I already attempted to compile and install the plugin above, but ran into a snag when I was trying to compile it. Even though I have the packages kdelibs5-dev kdebase-dev and kde4-development installed, there is no kate folder in my /usr/include directory, meaning that none of the header files needed are being found by the compiler. If anyone could help me out with that question, that would be great too.

Thanks everyone!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I have this feature available in my KDE Trunk installation. Kate > Filesystem Browser > Toolbar > Tree View.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jvedi
Registered Member
Posts
4
Karma
0
bcooksley wrote:I have this feature available in my KDE Trunk installation. Kate > Filesystem Browser > Toolbar > Tree View.


I'm not sure if I understand where that setting is, are you talking about in Kate itself? In System Settings? To complicate things, I'm doing all of this using X11 forwarding over ssh, so I can't see the actual desktop in KDE. I've also never used KDE4 before today, so forgive me if these are n00b questions.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Yes, it is in Kate itself, with the "Filesystem Browser" on the Sidebar. The tree view item on the toolbar may be hidden behind ">>" which expands when clicked.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jvedi
Registered Member
Posts
4
Karma
0
Hmm, mine doesn't have that, which means that feature must have been released with 4.2. I was trying to avoid upgrading to Sid because if I want to use Debian packages, that's the only easy way to resolve the dependencies for 4.2. Oh well, thanks for the advice anyways.

Any idea how I can compile that plugin? I can configure it with cmake and then when I do make it gives me this:

Code: Select all
julian@linuxbox:~/katetreeview$ make                               
[ 20%] Building CXX object CMakeFiles/katetreeviewplugin.dir/katetreeviewplugin_automoc.o                                                   
In file included from /home/julian/katetreeview/moc_katetreeviewplugin.cpp:10,                                                             
                 from /home/julian/katetreeview/katetreeviewplugin_automoc.cpp:4:                                                           
/home/julian/katetreeview/katetreeviewplugin.h:18:34: error: kate/documentmanager.h: No such file or directory                             
/home/julian/katetreeview/katetreeviewplugin.h:19:29: error: kate/mainwindow.h: No such file or directory                                   
/home/julian/katetreeview/katetreeviewplugin.h:20:25: error: kate/plugin.h: No such file or directory                                       
In file included from /home/julian/katetreeview/moc_katetreeviewplugin.cpp:10,                                                             
                 from /home/julian/katetreeview/katetreeviewplugin_automoc.cpp:4:                                                           
/home/julian/katetreeview/katetreeviewplugin.h:29: error: ‘Kate’ has not been declared                                                     
/home/julian/katetreeview/katetreeviewplugin.h:29: error: expected `{' before ‘Plugin’
/home/julian/katetreeview/katetreeviewplugin.h:29: error: function definition does not declare parameters
/home/julian/katetreeview/katetreeviewplugin.h:42: error: ‘Kate’ has not been declared
/home/julian/katetreeview/katetreeviewplugin.h:42: error: expected `{' before ‘PluginView’
/home/julian/katetreeview/katetreeviewplugin.h:42: error: invalid type in declaration before ‘,’ token
/home/julian/katetreeview/katetreeviewplugin.h:42: error: expected unqualified-id before ‘public’
make[2]: *** [CMakeFiles/katetreeviewplugin.dir/katetreeviewplugin_automoc.o] Error 1
make[1]: *** [CMakeFiles/katetreeviewplugin.dir/all] Error 2
make: *** [all] Error 2


Like I mentioned before, I have installed kdebase-dev, kde4-development, and kdelibs5-dev, but those compiler errors still come up.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You will also need the Kate development package as well.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jvedi
Registered Member
Posts
4
Karma
0
I just bit the bullet and upgraded to Sid and added the experimental branch, so now I'm running 4.2 and I've got Tree View! Thanks for the help!
User avatar
sayakb
Administrator
Posts
1973
Karma
12
OS
Marking the thread as solved as the issue appears to be resolved.
Please click "Unsolve it" if otherwise.




Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]