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

180 Commits

Author SHA1 Message Date
3f39612b1e Minor formatting for c module. 2022-04-11 18:16:39 +02:00
0395af9254 Pythonize function names. 2022-04-11 18:15:38 +02:00
ba08fc6ec2 Removed trailing whitespace from c module. 2022-04-11 18:14:38 +02:00
21c9d0afeb Renamed helpers module. 2022-04-11 18:13:47 +02:00
fff744ae32 Clean up setup.py 2022-04-09 11:35:55 +02:00
7eb2042fb8 Make pywmhelpers work on python3 2022-04-09 11:35:41 +02:00
12fe776ec3 Adopt C code to python3. 2022-04-09 11:35:20 +02:00
1f9b63ffcd More cleanups 2022-04-09 11:34:15 +02:00
63f64f31ad Readme update 2022-04-08 18:03:42 +02:00
080b06c3aa Clean up repository.
Remove all non-lib related files including old CVS things, examples,
website and so on.
2022-04-08 17:55:07 +02:00
mfrasca
56908e0bc6 update contact information 2018-07-11 19:01:12 -05:00
mfrasca
e70f75cda7 quick patch, to make this program fit in a swallowed gnome applet of
arbitrary height.  actually at the moment only works for 50 <= height <= 64
2008-03-25 17:49:51 +00:00
mfrasca
dd1c8dd685 added still not working wmoo.ProgressBar 2008-03-25 17:48:04 +00:00
mfrasca
8d0689cc97 small mistake. sorry. calculateWeek is a member of the application class. 2007-07-22 08:55:29 +00:00
mfrasca
06e5448771 forgot to check if the removed functions were in use! 2007-07-11 18:07:22 +00:00
mfrasca
ea23157ceb 1751441: cleaning up the oo module
as requested, the two classes wmoo.Label and wmoo.Button, the method
wmoo.Application.addWidget.  widgets can be retrieved as dictionary
entries of the application.
2007-07-10 20:19:15 +00:00
mfrasca
bc6f7f9a53 just a typo in a comment 2007-07-08 22:45:47 +00:00
mfrasca
296bbb7333 no real change, just adapted the sources so that they show properly in emacs-cvs on macintosh. 2007-05-27 14:02:05 +00:00
mfrasca
b0c51aa5e2 forcing new version because of release. 2007-05-26 10:10:56 +00:00
mfrasca
48b67704bb 1724798: labels are not aligned
implemented the 'align' parameter to the Application.addLabel method.

the pywmhelpers.addString function now returns the x-size of the string.

moved all labels in pywmdatetime one pixel to the left.
2007-05-24 19:04:48 +00:00
mfrasca
e5a8d777b6 1723946: weekday is not updated correctly
I've almost completely rewritten the program, cleaned up most stuff which
has become useless in the object oriented framework.

the strings are not any more centered, this has not yet been programmed in the library.
2007-05-24 12:17:10 +00:00
mfrasca
7bd314e1e0 1723401: key events are not completely translated
modified the buttons, made them again a bit smaller.
moved them around, too.
added callbacks for keypresses
 j: next
 k: previous
 p: play
 m: mute
 q: stop
 space: pause

the pause button blinks while the player is paused.
2007-05-22 16:13:59 +00:00
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