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

List:       kwrite-devel
Subject:    Re: Request to integrate the TreeView plugin into Kate
From:       "Ivo Anjo" <knuckles () gmail ! com>
Date:       2008-07-11 16:48:15
Message-ID: 557ea2710807110948u5aca08a5i2823951e6d5af637 () mail ! gmail ! com
[Download RAW message or body]

Hello.

So after some tips and help from Andreas Pakulat I got a patch into
kdelibs that adds two new modes to KDirOperator: a simple tree, and a
tree with details (similar to the two modes on the plugin written by
Javier Goday).
So, with current trunk you can right click on the KDirOperator widget
on the filesystem browser plugin, and the View menu will have the two
new tree-based modes.

The attached patch adds the tree modes to the config page of the
fsbrowser plugin, and to the default toolbar configuration.

Ok to commit?

Ivo

P.s.: Batiste, finally a treeview in upstream :)

On Mon, Jul 7, 2008 at 9:06 PM, Andreas Pakulat <apaku@gmx.de> wrote:
> On 07.07.08 20:36:37, Ivo Anjo wrote:
>> > On 01.07.08 17:38:09, Batiste wrote:
>> > > Hello,
>> > >
>> > > Javier Goday has written another TreeView plugin like the one I have done one
>> > > day but in a cleaner and simpler way:
>> > >
>> > > http://www.kde-apps.org/content/show.php/show.php?content=80940
>> > >
>> > > It seems pretty good. I can't test it because I gived up with compiling Kde4
>> > > by myself :-/
>> > >
>> > > Could guys test it? Maybe integrate it into Kate?
>> >
>> > I'd rather see a real treeview mode integrated into KDirOperator - maybe
>> > porting over the one from dolphin. That would benefit more applications
>> > than just kate and it would mean not having two plugins essentially
>> > doing the same.
>> >
>> > Just my 2cents as a kate user (via kdevelop).
>>
>> I was thinking exactly this. We now have two TreeView plugin proposals
>> for kate, and the one in kde-apps is pure C++ and works pretty well.
>>
>> I'm very interested in getting a TreeView into kate, so I would like
>> to ask our kate overlords: what's needed to get this one, or the one
>> Batiste wrote upstream, or A tree view plugin upstream (maybe
>> following Andreas's idea)? I'm willing to do that work and to maintain
>> it, so I just need to know what it is :)
>>
>> So, if anyone could give me some pointers, I'll get to work on it.
>
> The code for KDirOperator resides in kdelibs/kfile, I haven't looked at
> it too closely so I can't say wether it uses a standard listview
> internally and thus you'd just need to add a way to select QTreeview
> instead or wether its more involved. But thats where you need to start
> :)
>
> Andreas
>
> --
> Beware of a dark-haired man with a loud tie.
> _______________________________________________
> KWrite-Devel mailing list
> KWrite-Devel@kde.org
> https://mail.kde.org/mailman/listinfo/kwrite-devel
>

["add_tree_to_filebrowser_v2.patch" (text/x-patch)]

Index: kate/plugins/filebrowser/katefileselector.cpp
===================================================================
--- kate/plugins/filebrowser/katefileselector.cpp	(revision 830955)
+++ kate/plugins/filebrowser/katefileselector.cpp	(working copy)
@@ -329,7 +329,7 @@
   {
     // reasonable collection for default toolbar
     actions << "up" << "back" << "forward" << "home" <<
-    "short view" << "detailed view" <<
+    "short view" << "detailed view" << "tree view" <<
     "bookmarks" << "sync_dir";
   }
   QAction *ac;
@@ -808,7 +808,7 @@
   QStringList l = config.readEntry( "toolbar actions", QStringList() );
   if ( l.isEmpty() ) // default toolbar
     l << "up" << "back" << "forward" << "home" <<
-    "short view" << "detailed view" <<
+    "short view" << "detailed view" << "tree view" <<
     "bookmarks" << "sync_dir";
 
   // actions from diroperator + two of our own
@@ -817,6 +817,7 @@
   "reload" << "mkdir" << "delete" <<
   "short view" << "detailed view" /*<< "view menu" <<
                   "show hidden" << "properties"*/ <<
+  "tree view" << "detailed tree view" <<
   "bookmarks" << "sync_dir";
   QRegExp re("&(?=[^&])");
   QAction *ac;


_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


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

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