1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-19 04:20:17 +01:00
Commit Graph

208 Commits

Author SHA1 Message Date
mfrasca
b127132c3a 1723401: key events are not completely translated
added the field 'button' to key events.
the reason for calling it 'button' is so that it has the same name as mouse events.
the value is the translation as returned by XLookupString.
2007-05-22 13:01:51 +00:00
mfrasca
40f0474ce2 1723251: it is too difficult to move a button
I've added the two methods addButton and setButtonPattern to the Application class.

the area in the background has to be paintable, not transparent, or the
button will not be displayed nor be sensitive.

patterns are taken from the application and are not stored with the button.

it might be a good idea to introduce an object hierarchy for widgets,
including Labels and Buttons, maybe also flashing buttons, but as far as the
application programmer (of things like the current examples) is concerned,
this is good enough, I'd say.
2007-05-22 08:11:57 +00:00
mfrasca
f941df25af force new library version 2007-05-21 12:38:32 +00:00
mfrasca
6d70762f4a 1595052: writing strings
I've added the class pywmgeneral.Drawable, offering an interface to pixmaps.

this way a wmdocklib application can have more than one drawable: not only
the main window, but as many pixmaps as are necessary.

the first use of pywmgeneral.Drawable is to hold the graphical
representation of the labels in an application.  Labels are also new to the
library and the intention is that they substitute the putString methods.

Application.addLabel() is used to create a new named label.  the label takes
care of the specified area, or of the area necessary to show the specified
string.

Application.setLabelText() is used to specify a new text for a label.  if
necessary, a new pixmap is created.  the area taken care of by a label
cannot be modified.

during the update cycle, labels that span an area which is too small for
their text are scrolled a pixel at a time.

pywmradio.py uses this functionality.
2007-05-21 12:32:16 +00:00
mfrasca
195b5f7db6 1719983 caratteri nazionali non supportati
esteso il set 5x8 e corretta la ñ nel 6x8
2007-05-21 12:16:24 +00:00
mfrasca
f45d2f9a58 1722440 missing 'mute' button
1722442  	  stale mplayer processes

removed the 'exit' button in favour of the 'mute' one.
no more killing of the player, but communication with it.
2007-05-21 09:23:16 +00:00
mfrasca
6971f5260e 1714519: object oriented library
example pywmphoto rewritten.

modified initializer of pixmap: you can give the name of the pixmap
containing the background/patterns, so you do not need reading it in
advance.
2007-05-19 20:42:33 +00:00
mfrasca
707635c79e 1719983: caratteri nazionali non supportati
uniformati i nuovi xpm.
2007-05-19 11:41:07 +00:00
mfrasca
b05567eeef 1719983: caratteri nazionali non supportati
l'idea di separare lettera e accento non è proponibile in quanto troppo
complicata oltre che limitata.  quindi semplicemente definire la mappa dei
caratteri!  lavoro noioso e ingrato.  l'ho già fatto per il set 6x8, mentre
ho usato uxterm per copiarmi i suoi set di caratteri, ma sono quasi tutti
troppo grandi (alti).  l'unico secondo me davvero utilizzabile è il
5x8-utf-8 (già aggiunto), gli altri li sto aggiungendo ora e sono:
6x11-utf-8, 7x14-utf-8, 8x13-utf-8, 9x18-utf-8.
2007-05-19 11:27:15 +00:00
mfrasca
4dcc33dedf 1719983: caratteri nazionali non supportati
la libreria fa finta che il set di caratteri contenga tutti i caratteri possibili e immaginabili, se non ci sono, pazienza.
aggiunti due set di caratteri con tutti i caratteri fino al numero 384.
per l'Europa dovrebbe bastare.
2007-05-19 11:05:11 +00:00
mfrasca
0b29f6b597 migliorie sul feedback:
se il player muore o viene ammazzato esternamente, il programma se ne accorge.
2007-05-18 17:58:40 +00:00
mfrasca
400bc8eeed migliorie sul feedback:
se il player è messo in pausa, la barra della cache lampeggia.
2007-05-18 09:20:26 +00:00
mfrasca
809afe77cd version 1.20:
updated the pywmradio program, corrected one bug and more attractive tile.
2007-05-18 07:22:51 +00:00
mfrasca
162f042f02 migliorie sul feedback:
livello della cache: blocco alto tre linee.
 la barra di contacting/buffering si sposta più lentamente.
 scelto un rosso meno scuro.

ancora sul livello della cache:
 corretto errore nella espressione regolare (leggeva il carico cpu invece della cache).
 aggiunto bordino a barra della cache.
 uso dell'indicazione della configurazione per la dimensione della cache.

aggiunto metodo per mettere lo stream in pausa.

lettura del file di configurazione in utf-8.
2007-05-18 05:43:06 +00:00
mfrasca
89b2fdd9ee migliorie minime sul feedback 2007-05-16 17:25:22 +00:00
mfrasca
4b16346067 aggiunto il file di configurazione per pywmradio (che poi è in comune con
pyradio, ma quella non è un'applicazione scritta con pywmdockapps)

modificato Application.update, ora ricalcola il livello di riempimento della
cache solo una volta ogni tre cicli (ogni 0.3 secondi), questo per abbassare
il carico di lavoro sulla cpu.
2007-05-16 14:30:33 +00:00
mfrasca
39867d1e68 1719983: caratteri nazionali non supportati
rimossa l'eccezione se un carattere non rientra fra 32 e 127.
quello che succede è dipendente dall'encoding del file da cui vengono lette le stringhe.

nel test case le óńł occupano due caratteri, che vengono saltati e resta
quanto era stato scritto prima.  forse si potrebbe prevedere una separazione
"lettera"/"accento", però devo trovare il modo di definire l'accento in modo
che sia sovrapponibile alla lettera, mentre quelli che ho ora le
cancellerebbero.

alla fine dell'alfabeto potrei aggiungere gli accenti su trasparenza...
acuto (é) grave (è) tilde (ẽ) circonflesso (ê) breve (ĕ) lungo (ēħ) v (č)
punto (ż) dieresi (ë) coda-destra (ę) coda-sinistra (ç) obliquo (ł) o (å)

resterebbe il problema di caratteri quali ß æ œ ...
2007-05-16 12:53:33 +00:00
mfrasca
0baec49411 added examples pywmwet and pywmradio
added wmoo module
2007-05-16 12:33:31 +00:00
mfrasca
82c7155cf6 added examples pywmwet and pywmradio
added wmoo module
2007-05-16 11:45:11 +00:00
mfrasca
3cd1d20c66 1714519 - object oriented library
modified the regular expression, to easy the task of the matching it.
2007-05-16 11:33:22 +00:00
mfrasca
80f8aeb7da 1714519 - object oriented library
still on the second working version...
it gives a little more feedback about the running player.
2007-05-15 20:15:50 +00:00
mfrasca
1f09a177af 1714519 - object oriented library
second working version...
it gives a little more feedback about the running player.
2007-05-15 19:55:27 +00:00
mfrasca
5f5dfd16cf 1714519 - object oriented library
first working version...
it gives very little feedback about the running player.
2007-05-15 15:14:24 +00:00
mfrasca
b34c324414 1714519 - object oriented library
separated the library part from the application part.
added wmoo module.
added pywmoonop (object oriented form of the empty dock).
2007-05-15 07:31:09 +00:00
mfrasca
844eecc535 1714519 - object oriented library
added new example application, on the way to the object oriented library.

the idea is to develop this program within one single source, but clearly
separating the general from the specific.  so in this source I will have a
general 'Application' class which will contain no specific 'radio' code.
the radio code will make use of the general application class.

the program is not yet functional.
2007-05-07 19:14:54 +00:00
mfrasca
153a8b629b 1714333 - keyboard events are not notified
added KeyPress/KeyRelease and handling of focus to filtering of events.
rewritten if/else-if into a switch/case.
2007-05-07 14:15:02 +00:00
mfrasca
9dc7d952b4 1647673: program blanks out
added timeout for socket (hard coded to 4 seconds).
removed leading \n in usage string.
not modified anything else.
2007-01-31 12:15:12 +00:00
mfrasca
056bdadb6b 1642056: pywmwet.py
adding the file pywmwet.py to cvs.
also removing an unnecessary parameter in a call to wmdocklib.initPixmap.
2007-01-28 11:33:50 +00:00
mfrasca
620a8e229a adding pywmnop.py and renaming pywmPhoto.py to pywmphoto.py. 2007-01-17 17:02:51 +00:00
mfrasca
695d29b2a5 small necessary correction in 6x8 font
added the two new fonts (7seg) to MANIFEST.
2006-11-12 06:43:15 +00:00
mfrasca
f93d7269c8 *** empty log message *** 2006-11-12 06:41:48 +00:00
mfrasca
a67d4bbb7c just readability modifications... 2006-11-08 09:45:28 +00:00
mfrasca
dcc2718864 correcting the B 2006-11-01 08:16:12 +00:00
mfrasca
32a9e1aa4c cleaning up. 2006-11-01 06:27:24 +00:00
mfrasca
3c0139bb69 cleaning up. 2006-10-31 21:18:36 +00:00
mfrasca
a3b2a7ee4d cleaning up. 2006-10-31 21:11:12 +00:00
mfrasca
29d6cfc65c adding first "proportional" font.
actually just two width: normal and ',.:;
2006-10-31 16:19:27 +00:00
mfrasca
d7ea546e66 just cleaning up bits 2006-10-31 13:56:40 +00:00
mfrasca
c9c1805857 1587104: error initializing font 3x5
it really was a library problem...  it was caused inside getFont by the way
I was choosing an alternative to a clashing character code.  the correct way
is by choosing outside both the already defined characters and the
characters that the font uses.  we were creating a cascade in clashes, and
were not able to handle it correctly.  avoiding the problem is the best
cure.
2006-10-31 12:43:36 +00:00
mfrasca
092a6ff8cc adding pseudo 7segments font.
very similar to 6x8 orig.
taken from wmtz.
2006-10-31 09:57:54 +00:00
mfrasca
3af10f51f7 1584740: colours messed up
forgot to remove replacement of ' ', '%' to bg, fg.
doing it now.
2006-10-31 09:57:15 +00:00
mfrasca
41a6ead68b removing unused code 2006-10-31 09:55:51 +00:00
mfrasca
7b54548c37 1587104: error initializing font 3x5
'and' is not 'and_then'...
split a test in two parts:
if elem[c] and d2[c]... into
if elem[c] then if d2[c]...
2006-10-30 10:31:35 +00:00
mfrasca
8d1d5d6f7d added picture of new example program pywmPhoto,
added fancy font 8x8-cholo,
updated MANIFEST - contains new font,
2006-10-30 10:14:28 +00:00
mfrasca
41af5d6644 added the description for a new program. 2006-10-28 08:01:34 +00:00
mfrasca
93816ecad7 cleaning up color coding in fonts... 2006-10-28 07:30:32 +00:00
mfrasca
4530404d6c added a few smaller fonts... 2006-10-27 16:25:15 +00:00
mfrasca
55f1674d8a sample of smallest font... 2006-10-27 16:24:15 +00:00
mfrasca
8e926c53f1 adding a new program. it's a very simple clone of wmPhoto, with almost none
of its functionality.  all this program does is show a picture in the tile.
only useful to show how easy it is to use the wmdocklib library.
2006-10-27 11:52:22 +00:00
mfrasca
6ba02aff6f added samples for smallest (readable) 4x6 font 2006-10-27 06:14:40 +00:00