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

version» Context lines:

Roxen.git/server/modules/graphics/gbutton.pike:20:   // 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.126 2012/02/14 15:02:21 anders Exp $"; + constant cvs_version = "$Id$";   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:336:    case "frame": frame = l; break;    case "mask": mask = l; break;    }    }    };       if( args->border_image )    {    array(Image.Layer)|mapping tmp;    - #if constant(Sitebuilder) + #if constant(Sitebuilder) && constant(Sitebuilder.sb_start_use_imagecache)    // Let SiteBuilder get a chance to decode its argument data    if (Sitebuilder.sb_start_use_imagecache) {    Sitebuilder.sb_start_use_imagecache(args, id);    tmp = roxen.load_layers(args->border_image, id, opts);    Sitebuilder.sb_end_use_imagecache(args, id);    } else   #endif    {    tmp = roxen.load_layers(args->border_image, id, opts);    }       if (mappingp(tmp)) {    if (tmp->error != 401) -  report_debug("GButton: Failed to load frame image: %O (error: %O)\n", +  RXML.parse_error("Failed to load frame image: %O (error: %O)\n",    args->border_image, tmp->error);    return tmp;    }    set_image( tmp );    }          // otherwise load default images    if ( !frame && !background && !mask )    {
Roxen.git/server/modules/graphics/gbutton.pike:913:    m_delete(args, "extra-left-layers");    m_delete(args, "extra-right-layers");    m_delete(args, "extra-background-layers");    m_delete(args, "extra-mask-layers");    m_delete(args, "extra-frame-layers");       int timeout = Roxen.timeout_dequantifier(args);       if( fi ) {    new_args->stat = get_file_stat( fi, id ); - #if constant(Sitebuilder) + #if constant(Sitebuilder) && constant(Sitebuilder.sb_prepare_imagecache)    // The file we called get_file_stat() on above may be a SiteBuilder    // file. If so we need to extend the argument data with e.g.    // current language fork.    if (Sitebuilder.sb_prepare_imagecache)    new_args = Sitebuilder.sb_prepare_imagecache(new_args, fi, id);   #endif    }       if (string icn_path = new_args->icn) {    new_args->stat_icn = get_file_stat(icn_path, id); - #if constant(Sitebuilder) + #if constant(Sitebuilder) && constant(Sitebuilder.sb_prepare_imagecache)    if (Sitebuilder.sb_prepare_imagecache)    new_args = Sitebuilder.sb_prepare_imagecache(new_args, icn_path, id);   #endif    }       new_args->quant = args->quant || 128;    foreach(glob("*-*", indices(args)), string n)    new_args[n] = args[n];       //string fn;