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

17 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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