#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#---------------------------------------------------
#
# Dependencies        : main.kmm, JavaScript
# Resources           : -
# Preferences         : kmeleon.disableImage.sites,kmeleon.disablecss.sites
# Version             : 1.0
# -------------------------------------------------------------------------------------------------
$pref_OnOffLine ="kmeleon.general.offline";
OFF_ON_Line{
id(ID_OFFLINE);
&OnOff_Line_Stat;
statusbar(sub("%s",getpref(BOOL,$pref_OnOffLine)?"Work Off Line":"Work ON Line",_("%s")));
}
OnOff_Line_Stat{
pluginmsg(toolbars,"CheckButton","&Privacy Bar,macros(OFF_ON_Line),".(getpref(BOOL,$pref_OnOffLine)?1:0));
}
OnOff_line_BulidToolbar{
$info = _("Work Online/Offline.");
pluginmsg(toolbars,"AddButton","&Privacy Bar,OffOnLine,macros(OFF_ON_Line),,".$info.",64,13,ON-OFF_line.bmp[1],ON-OFF_line.bmp[0],","");


}


# ------------------------------------------------------------------------
$OnSetup=$OnSetup."OnOff_line_BulidToolbar;";
$OnLoad=$OnLoad."OnOff_Line_Stat;";
$OnInit=$OnInit."OnOff_Line_Stat;";
$OnStartup=$OnStartup."OnOff_Line_Stat;";
#----------------------------------------
$macroModules=$macroModules."OffOnLine;";

