Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.55 2001/06/18 06:00:58 nilsson Exp $ + // $Id: module.pmod,v 1.56 2001/06/19 21:30:31 nilsson Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:790:    if (!selected)    // Make an entry for the current value if it's not in the list,    // so no other value appears to be selected, and to ensure that    // the value doesn't change as a side-effect by another change.    res += " " + Roxen.make_container (    "option", (["value":_name(current), "selected": "selected"]),    sprintf(LOCALE(332,"(keep stale value %s)"),_name(current)));    return res + "</select>";    }    static void create( mixed default_value, array|mapping choices, -  int _flags, LocaleString std_name, -  LocaleString std_doc ) +  void|int _flags, void|LocaleString std_name, +  void|LocaleString std_doc )    //! Constructor.    //!    //! Choices is the list of possible choices, can be set with    //! set_choice_list at any time.    //!    //! Flags is a bitwise or of one or more of    //!    //! VAR_EXPERT Only for experts    //! VAR_MORE Only visible when more-mode is on (default on)    //! VAR_DEVELOPER Only visible when devel-mode is on (default on)
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:882:   {    inherit StringChoice;    constant type = "FontChoice";    void set_choice_list()    {    }    array get_choice_list()    {    return roxenp()->fonts->available_fonts();    } -  static void create(mixed default_value,int flags, -  LocaleString std_name,LocaleString std_doc) +  static void create(mixed default_value, void|int flags, +  void|LocaleString std_name, void|LocaleString std_doc)    //! Constructor.    //! Flags is a bitwise or of one or more of    //!    //! VAR_EXPERT Only for experts    //! VAR_MORE Only visible when more-mode is on (default on)    //! VAR_DEVELOPER Only visible when devel-mode is on (default on)    //! VAR_INITIAL Should be configured initially.    //!    //! The std_name and std_doc is the name and documentation string    //! for the default locale (always english)