Roxen.git / server / modules / graphics / gbutton.pike

version» Context lines:

Roxen.git/server/modules/graphics/gbutton.pike:18:   // icon-data -- inline icon data   // align -- left|center|right text alignment   // align-icon -- left|center-before|center-after|right icon alignment   // valign-icon -- above|middle|below icon vertical alignment   // >Button text</gbutton>   //   // Alignment restriction: when text alignment is either left or right, icons   // must also be aligned left or right.       - constant cvs_version = "$Id: gbutton.pike,v 1.97 2002/11/07 15:57:53 mani Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.98 2002/11/17 17:55:44 mani Exp $";   constant thread_safe = 1;      #include <module.h>   inherit "module";      roxen.ImageCache button_cache;   int do_ext;      constant module_type = MODULE_TAG;   constant module_name = "Graphics: GButton";
Roxen.git/server/modules/graphics/gbutton.pike:182:   void start()   {    button_cache = roxen.ImageCache("gbutton", TIMER(draw_button));    do_ext = query("ext");   }      string status() {    array s=button_cache->status();    return sprintf("<b>Images in cache:</b> %d images<br />\n"    "<b>Cache size:</b> %s", -  s[0], Roxen.sizetostring(s[1])); +  s[0], String.int2size(s[1]));   }      mapping(string:function) query_action_buttons() {    return ([ "Clear cache":flush_cache ]);   }      void flush_cache() {    button_cache->flush();   }