kate treeview plugin
Text Editors
Score 75%
Description:

Last changelog:

9 years ago

Added bookmark support (bookmarkManager based on the filesystem plugin)

Keep the opened files selected in the treeview selectionModel (from the Batiste Bieler tree plugin)

haumann

9 years ago

This plugin should not be needed anymore. The file system browser plugin in Kate supports a tree view now, just like this example.

Report

batiste

8 years ago

"This plugin should not be needed anymore. The file system browser plugin in Kate supports a tree view now, just like this example."

Nop it's not true, this plugin is better in some way that the current tree. The possibility to have all the opened files highlited is pretty nice and unique.

Report

somekool

9 years ago

I wish I could get a package for Kubuntu.

thanks.

Report

pavonic

9 years ago

I can't compile the plugin. I tried with the following CmakeLists.txt:

Quote:
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )

# search packages used by KDE
find_package(KDE4 REQUIRED)

# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
# definitions like _GNU_SOURCE that are needed on each platform.
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} ${KDE4_KPARTS_DEFINITIONS})
include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${KDE4_KPARTS_INCLUDES})

set (katetreeviewplugin_PART_SRCS
katetreeviewplugin.cpp
katetreeview.cpp
katetreeviewtoolbar.cpp
katetreeviewbookmarkowner.cpp
)

kde4_add_plugin (katetreeviewplugin ${katetreeviewplugin_PART_SRCS})

target_link_libraries (katetreeviewplugin ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBRARY} ${KDE4_KPARTS_LIBS})

install (TARGETS katetreeviewplugin DESTINATION ${PLUGIN_INSTALL_DIR})

########### install files ###############
# install( FILES ui.rc DESTINATION ${DATA_INSTALL_DIR}/kate/plugins/kateexternaltools )
install (FILES katetreeviewplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})


and I obtain the following link error:

Quote:
$~/ftp/katetreeview$ make
Generating moc_katetreeview.cpp
Generating moc_katetreeviewbookmarkowner.cpp
Generating moc_katetreeviewplugin.cpp
Generating moc_katetreeviewtoolbar.cpp
Generating moc_katetreeview.cpp
Generating moc_katetreeviewbookmarkowner.cpp
Generating moc_katetreeviewplugin.cpp
Generating moc_katetreeviewtoolbar.cpp
[ 20%] Building CXX object CMakeFiles/katetreeviewplugin.dir/katetreeviewplugin_automoc.o
[ 40%] Building CXX object CMakeFiles/katetreeviewplugin.dir/katetreeviewplugin.o
[ 60%] Building CXX object CMakeFiles/katetreeviewplugin.dir/katetreeview.o
[ 80%] Building CXX object CMakeFiles/katetreeviewplugin.dir/katetreeviewtoolbar.o
/home/pavonic/ftp/katetreeview/katetreeviewtoolbar.cpp: In constructor ‘KateTreeViewToolbar::KateTreeViewToolbar(QWidget*, Kate::MainWindow*, KateTreeView*)’:
/home/pavonic/ftp/katetreeview/katetreeviewtoolbar.cpp:67: warning: unused variable ‘m_bookmarkMenu’
[100%] Building CXX object CMakeFiles/katetreeviewplugin.dir/katetreeviewbookmarkowner.o
make[2]: *** No rule to make target `/build/buildd/kde4libs-4.1.2/obj-i486-linux-gnu/lib/libkdecore.so', needed by `lib/katetreeviewplugin.so'. Stop.
make[1]: *** [CMakeFiles/katetreeviewplugin.dir/all] Error 2
make: *** [all] Error 2



How can I solve the problem?
Thanks,
Cristian

Report

kmswic

9 years ago

but still no luck. I read the comments for your other project, pasted a few lines into CMakeLists.txt (sorry, but why aren't they there by default?), installed kde -devel packages, and finally, it compiles, but fails to link:
Linking CXX shared module lib/katetreeviewplugin.so
CMakeFiles/katetreeviewplugin.dir/katetreeviewplugin_automoc.o: In function `KateTreeView::qt_metacall(QMetaObject::Call, int, void**)':
/home/konrad/Desktop/katetreeview/moc_katetreeview.cpp:72: undefined reference to `QTreeView::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/katetreeviewplugin.dir/katetreeviewplugin_automoc.o: In function `KateTreeView::qt_metacast(char const*)':
/home/konrad/Desktop/katetreeview/moc_katetreeview.cpp:67: undefined reference to `QTreeView::qt_metacast(char const*)'
..........
....and so on, and so on.
If you find a minute, could you give me a hint at what I'm doing wrong? I'd really love to use this plugin :) Otherwise, I think I'll use Quanta (3) just for the treeview...

Report

kmswic

9 years ago

This is exactly what I want, but it seems I don't know how to build it. Using "cmake ." returns :
CMake Error at CMakeLists.txt:8 (kde4_add_plugin):
Unknown CMake command "kde4_add_plugin".

Do I need to set up a KDE4 development environment and build KDE4 from source just to use this, or can I just build it and add it to my KDE 4.1 installation? If the latter is possible, what would be the next step? Any help would be appreciated.

Report

voonte

9 years ago

Great plugin, I prefer it over the default filesystem browser plugin.

Report

knuckles

9 years ago

This should definitely be included upstream.

Report

9 years ago

Added bookmark support (bookmarkManager based on the filesystem plugin)

Keep the opened files selected in the treeview selectionModel (from the Batiste Bieler tree plugin)

product-maker 7 33

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.1
updated May 14 2008
added May 13 2008
downloads today
0
page views today 3