[Freeciv-Dev] Re: Technical questions (numbered tile markers )
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Jan 08, 2002 at 06:54:33PM +0200, Teemu Kurppa wrote:
> I came up with some questions, when I was implementing a patch for
> numbered tile markers.
>
> 1. GTK key events
> Numbered tile markers can be used to mark important locations (among
> other things) on the map and then jump between them. Obviously, number
> keys are good candidates for shortcut keys to markers 1-10. I chose
> shift+<num> to set a marker and ctrl+<num> to jump to a marker.
>
> However, it seems that I can't implement this kind of behavior in truly
> portable way. Xserver and thus GTK work in somewhat irritating way, when
> producing key events. For example, if I press shift+8 (or ctrl+8), GTK
> doesn't produce key event for a key code GDK_8 with SHIFT_MASK
> set. Instead it produces a key event for a key code GDK_parenleft or
> something else, if your keymap has been modified (xmodmap -pke tells
> what).
>
> Does anyone know a good solution to this problem ? If not, we have to
> implement keyboard shortcuts for some particular keymap, and inform
> players how to change their keymaps, if they differ.
I'm also in favor of ALT-n and CTRL-n.
> 4. Documentation
> I have thought some future directions for tile markers. Is there some
> standard place, where to put general descriptions and thoughts in addition
> of freeciv-dev ?
> README.tile_markers ?
Either that or in the header file (markers.h).
> And is there CVS for Freeciv manuals ? So that I could add the description
> and examples of the marker usage.
>
> 5. Code Style Guide
> Some version of style guide is needed quickly.
> It would be helpful, if recommended usage of indent is described.
grep indent freeciv_hackers_guide.txt
> In similar way, that the usage of patch and diff is described in
> "How to Contribute" section on web pages.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"The BeOS takes the best features from the major operating systems.
It's got the power and flexibility of Unix, the interface and ease
of use of the MacOS, and Minesweeper from Windows."
[Freeciv-Dev] Re: Technical questions (numbered tile markers ), Jason Short, 2002/01/08
[Freeciv-Dev] Re: Technical questions (numbered tile markers ), Daniel Sjölie, 2002/01/09
[Freeciv-Dev] Re: Technical questions (numbered tile markers ),
Raimar Falke <=
|
|