22 February 2007

KDevelop4 evolution: The UI, part 2

I know I promised to blog often about KDevelop4 progress, but I did not intend to write one more post today ;) The reason I'm doing this is that someone came today to #kdevelop IRC channel and asked whether we can open more than one embedded Konsole toolview in KDevelop. Of course my answer was "no sorry" because in KDevelop3 the usual modus operandi is 1 plugin => 1 view.

But this is not the case in KDevelop4 anymore. During architecture rework that was done by yours trully and Andreas Pakulat we introduced so-called "toolview factories". So each KDevelop4 plugin now registers a toolview factory and then the shell application uses the factory to add toolviews when necessary.

Until today, factories were used by mainwindow only once and only one toolview was visible on the screenshots from my previous post. Today I though that nothing prevents me from implementing a nice dialog to add new toolviews. After several minutes of hacking (actual view creation is only 2 lines of code thanks to Sublime library, everything else I committed was the UI for the feature) I got this:




As you can see, there's no restriction anymore to the number of toolviews. You want 10 konsole's - you'll get them! Also Qt4 dockwidget management system allows to group dockwidgets in tabs so some toolviews can be nicely kept together.

Ok, that's all for today. Next time I'll leave UI and tell you about project management in KDevelop4. Stay tuned...

6 comments:

Anonymous said...

Cool stuff :)

Even cooler (yeah, never satisfied) would be if a Konsole session could be moved from a usual Konsole into an embedded Konsole and back. Same with KWrite and other KParts.

Yes, please integrate with KWin :P

Frinring

Anonymous said...

I just remembered something reading your blog: It has always been troublesome switching to/from the embedded konsole.

The preferred way would be a shortcut, but I found no other way to switch besides the mouse. I am not talking here about KDevelop, I'm talking about Kate/Konqueror.

Managing keyboard shortcuts across KParts is not very pretty.

Jos said...

There is some work going on on konsole, and maybe Robbert can make this possible... Maybe ask him ;-)

Drag'n'drop of tabs, embeding a konsole and extracting it again, and the shortcut thing with kparts - things like this might be doable... They just might not have thought about it. So ask, or even better - send a patch.

http://kdemonkey.blogspot.com/2007/01/introductions-and-future-of-konsole.html

Alexander Dymo said...

In KDevelop3.4 we went the easy way and allowed alt-number shortcuts to switch to/from toolviews. I usually have alt-0 for irb console and alt-1 for usual konsole. I think that's will go into KDevelop4 so if nothing else happens, alt-num shortcuts will still be there in KDevelop.

Anonymous said...

Domin8 MySpace with unique myspace graphics. Check out www.domin8myspace.com

Anonymous said...

Domin8 MySpace with myspace proxies.