Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-06

[tip] Lazarus under KDE

10 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I've started using KDE since yesterday to try it out. I haven't used KDE for years. My first gripe was that Ctrl+F9 in Lazarus doesn't work. F9 does however. I then concluded that KDE must be grabing the keyboard shortcut before Lazarus can get hold of it. I found the problem!

Ctrl+F9 in KDE, switches to Desktop 9. In KDE's Control Panel -> Keyboard Shortcuts, I removed all 'switch to Desktop xx' shortcuts. Now Lazarus works as expected under KDE.

I just thought I would share this little tip with others...

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 13 lines
Hi, I've started using KDE since yesterday to try it out. I haven't used KDE for years. My first gripe was that Ctrl+F9 in Lazarus doesn't work. F9 does however. I then concluded that KDE must be grabing the keyboard shortcut before Lazarus can get hold of it. I found the problem! Ctrl+F9 in KDE, switches to Desktop 9. In KDE's Control Panel -> Keyboard Shortcuts, I removed all 'switch to Desktop xx' shortcuts. Now Lazarus works as expected under KDE. I just thought I would share this little tip with others...

Probably we need different different default keys for every widgetset eventually.

Mattias

Reply by email

Damien Gerard
to Mattias Gaertner

Le Jun 6, 2008 ? 2:53 PM, Mattias Gaertner a ?crit :

Show quoted text 19 lines
On Fri, 6 Jun 2008 11:25:04 +0200 "Graeme Geldenhuys" wrote: > Hi, > > I've started using KDE since yesterday to try it out. I haven't used > KDE for years. My first gripe was that Ctrl+F9 in Lazarus doesn't > work. F9 does however. I then concluded that KDE must be grabing the > keyboard shortcut before Lazarus can get hold of it. I found the > problem! > > Ctrl+F9 in KDE, switches to Desktop 9. In KDE's Control Panel -> > Keyboard Shortcuts, I removed all 'switch to Desktop xx' shortcuts. > Now Lazarus works as expected under KDE. > > I just thought I would share this little tip with others... Probably we need different different default keys for every widgetset eventually.

Yes I think. For example F9 by default under OS X is not really a good choice :) (-> Expose)

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat

Reply by email

Graeme Geldenhuys
to Mattias Gaertner: On Fri, 6 Jun 2008 11:25:04 +0200 Probably we need different different default keys for…

2008/6/6 Mattias Gaertner :

Probably we need different different default keys for every widgetset eventually.

In really for every widgetset, but rather every desktop environment. I'm running Lazarus+GTK1 under KDE now.

We could do like KDE does in the first time setup wizard. It asks what keyboard shortcut theme you would like to use:
eg KDE 3, KDE 4, Windows, Mac, UNIX, WindowMaker 3, Custom etc...

Setting up keyboard shortcuts inside the ide code is already a huge task, so I have no idea where to even start with something like Shortcut Themes!

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Damien Gerard: Le Jun 6, 2008 ? 2:53 PM, Mattias Gaertner a ?crit : Yes I think. For example F9 by…
Damien Gerard wrote 5 lines
> Probably we need different different default keys for every widgetset > eventually. Yes I think. For example F9 by default under OS X is not really a good choice :) (-> Expose)

They are configurable, and I disabled all those keys under OS X. So one needs at least two profiles:

- one as compatible as possible (which might require config changes), for an uniform feel.
- one compatible with the default OS layout.

It is btw, not just Lazarus that suffers from this, the textmode ide does too.

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner: On Fri, 6 Jun 2008 11:25:04 +0200 Probably we need different different default keys for…
Mattias Gaertner wrote
Probably we need different different default keys for every widgetset eventually.

I think it would be better if LCL would automatically do some kind of predictable transformation into impossible to use Shortcut sequences.

Another problem is that Shift+F12 is a impossible key sequence under Mac OS X, because it brings the Dashboard.

I tryed to search to see how Qt deals with this, but I see nothing in their documentation.

I started a table with problematic shortcut keys here:

http://wiki.lazarus.freepascal.org/The_LCL_in_various_platforms#Shortcut_Keys

thanks,

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: 2008/6/6 Mattias Gaertner : In really for every widgetset, but rather every desktop…
Show quoted text 15 lines
2008/6/6 Mattias Gaertner : > > Probably we need different different default keys for every > widgetset eventually. In really for every widgetset, but rather every desktop environment. I'm running Lazarus+GTK1 under KDE now. We could do like KDE does in the first time setup wizard. It asks what keyboard shortcut theme you would like to use: eg KDE 3, KDE 4, Windows, Mac, UNIX, WindowMaker 3, Custom etc... Setting up keyboard shortcuts inside the ide code is already a huge task, so I have no idea where to even start with something like Shortcut Themes!

Don't confuse IDE shortcuts and IDE commands, menu items, etc. An IDE shortcut is setup with

  ecBuild: SetResult(VK_F9,[ssCtrl],VK_UNKNOWN,[]);

And there are already 3 shortcut themes (default, classic, macosx).

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner

2008/6/6 Mattias Gaertner :

Don't confuse IDE shortcuts and IDE commands, menu items, etc. An IDE shortcut is setup with ecBuild: SetResult(VK_F9,[ssCtrl],VK_UNKNOWN,[]);

OK, I'll try for next time... :-)

And there are already 3 shortcut themes (default, classic, macosx).

Wow, again something Lazarus has I never even knew about! :-) You guys are good!

I had to search for it, but found it in the "key mappings" tab. Now if I may give a little advice with UI designing. *Never* make a button as wide as a Form! When you do that, it doesn't look like a button anymore. To me (using GTK1 with Bluecurve theme) it looks exactly like a Panel with a caption. This is not the only screen this is done in, I observed it before.

I created 4 mockup screens with suggestions on improving the "Key Mappings" tab. My preference is between 1 & 4, but if I have to choose, it would be 4. I attached 2 images to this email, and 2 images in the next email.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mockup_1.gif
Type: image/gif
Size: 10958 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080606/bb3cb243/attachment-0002.gif -------------- next part --------------
A non-text attachment was scrubbed...
Name: mockup_2.gif
Type: image/gif
Size: 9832 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080606/bb3cb243/attachment-0003.gif

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys

2008/6/6 Graeme Geldenhuys :

I created 4 mockup screens with suggestions on improving the "Key Mappings" tab. My preference is between 1 & 4, but if I have to choose, it would be 4. I attached 2 images to this email, and 2 images in the next email.

The next two...

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mockup_3.gif
Type: image/gif
Size: 10013 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080606/dfe3a759/attachment-0002.gif -------------- next part --------------
A non-text attachment was scrubbed...
Name: mockup_4.gif
Type: image/gif
Size: 10734 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080606/dfe3a759/attachment-0003.gif

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: 2008/6/6 Mattias Gaertner : OK, I'll try for next time... :-) Wow, again something…
Show quoted text 20 lines
2008/6/6 Mattias Gaertner : > > Don't confuse IDE shortcuts and IDE commands, menu items, etc. > An IDE shortcut is setup with > ecBuild: SetResult(VK_F9,[ssCtrl],VK_UNKNOWN,[]); OK, I'll try for next time... :-) > And there are already 3 shortcut themes (default, classic, macosx). Wow, again something Lazarus has I never even knew about! :-) You guys are good! I had to search for it, but found it in the "key mappings" tab. Now if I may give a little advice with UI designing. *Never* make a button as wide as a Form! When you do that, it doesn't look like a button anymore. To me (using GTK1 with Bluecurve theme) it looks exactly like a Panel with a caption. This is not the only screen this is done in, I observed it before.

Panels with these texts don't make much sense to me.

I created 4 mockup screens with suggestions on improving the "Key Mappings" tab. My preference is between 1 & 4, but if I have to choose, it would be 4. I attached 2 images to this email, and 2 images in the next email.

I improved it a little bit.

Mattias

Reply by email