User Tools

Site Tools


pg:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pg:start [2006/10/10 20:32] fgmpg:start [2020/11/23 17:23] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Work notes ====== +====== Work notes on PHP-GTK ======
  
 +^ Dossiers                                 ^ Pages à ce niveau                                   ^
 +| {{indexmenu>:pg:#9|js nopg tsort nsort}} | {{indexmenu>:pg:#1|js nons tsort skipfile+/start/}} |
  
 ===== Auto-creating variables from Glade files ===== ===== Auto-creating variables from Glade files =====
  
 From a suggestion by C. Weiske on irc://irc.freenode.net/php-gtk :  From a suggestion by C. Weiske on irc://irc.freenode.net/php-gtk : 
 +
   * first idea: use the DOM of the Glade file and a XPath selection on nodes to iterate on the Glade model and create variables from the results   * first idea: use the DOM of the Glade file and a XPath selection on nodes to iterate on the Glade model and create variables from the results
   * better idea: use <code>__get</code> in a class to create the members as needed, like <code php>$this->glade->get_widget_from_id($widgetname)</code>   * better idea: use <code>__get</code> in a class to create the members as needed, like <code php>$this->glade->get_widget_from_id($widgetname)</code>
     * __get is defined at http://www.php.net/manual/en/language.oop5.overloading.php     * __get is defined at http://www.php.net/manual/en/language.oop5.overloading.php
 +
 +====== Background work ======
 +
 +  * For programs needing work being done behind the scenes, without freezing the UI, using an idle-directe finite state machine can be done with the [[fsm:fsm|OSInet FSM]]
 +
 +====== Ideas to implement ======
 +
 +  * structured logging
 +    * log_source/log_sink interfaces
 +    * switchable backends: file, console, syslog, gtk label...
 +  * chrono class: 
 +    * start
 +    * stop
 +    * lap (time)
 +    * implements log_source
 +
 +
pg/start.1160512357.txt.gz · Last modified: 2020/11/23 17:23 (external edit)