code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
!function(e){"use strict";"function"==typeof define&&define.amd?define(["../widgets/datepicker"],e):e(jQuery.datepicker)}(function(e){"use strict";return e.regional["ar-DZ"]={closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""},e.setDefaults(e.regional["ar-DZ"]),e.regional["ar-DZ"]});
backdrop-ops/backdrop-pantheon
core/misc/ui/i18n/datepicker-ar-DZ.js
JavaScript
gpl-2.0
977
CREATE TABLE IF NOT EXISTS `#__raidplanner_character` ( `character_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `profile_id` int(10) unsigned NOT NULL DEFAULT '0', `class_id` int(10) unsigned NOT NULL DEFAULT '0', `role_id` int(10) unsigned NOT NULL DEFAULT '0', `gender_id` int(10) unsigned NOT NULL DEFAULT '0', `guild_id` int(10) unsigned NOT NULL DEFAULT '0', `race_id` int(10) unsigned NOT NULL DEFAULT '0', `char_level` int(10) unsigned NOT NULL DEFAULT '0', `char_name` varchar(45) NOT NULL DEFAULT '', `rank` int(11) NOT NULL, PRIMARY KEY (`character_id`), KEY `profile_id` (`profile_id`), KEY `char_level` (`char_level`), KEY `rank` (`rank`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__raidplanner_class` ( `class_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `class_color` varchar(45) NOT NULL DEFAULT '', `class_name` varchar(45) NOT NULL DEFAULT '', `class_css` varchar(45) NOT NULL DEFAULT '', `armory_id` int(11) NOT NULL, PRIMARY KEY (`class_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (1, '#7c5f48', 'Warrior', 1); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (2, '#cb7497', 'Paladin', 2); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (3, '#668e40', 'Hunter', 3); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (4, '#a8a556', 'Rogue', 4); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (5, '#8ca5a3', 'Priest', 5); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (6, '#b1474f', 'Death Knight', 6); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (7, '#4a71ca', 'Shaman', 7); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (8, '#60a4ba', 'Mage', 8); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (9, '#825c87', 'Warlock', 9); INSERT IGNORE INTO `#__raidplanner_class` (`class_id`, `class_color`, `class_name`, `armory_id`) VALUES (11, '#dc8043', 'Druid',11); CREATE TABLE IF NOT EXISTS `#__raidplanner_gender` ( `gender_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `gender_name` varchar(45) NOT NULL DEFAULT '', PRIMARY KEY (`gender_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT IGNORE INTO `#__raidplanner_gender` (`gender_id`, `gender_name`) VALUES (1, 'Male'); INSERT IGNORE INTO `#__raidplanner_gender` (`gender_id`, `gender_name`) VALUES (2, 'Female'); CREATE TABLE IF NOT EXISTS `#__raidplanner_groups` ( `group_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `group_name` varchar(45) NOT NULL DEFAULT '', `default` tinyint(1) NOT NULL, PRIMARY KEY (`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT IGNORE INTO `#__raidplanner_groups` (`group_id`, `group_name`, `default`) VALUES (1, 'Guest', 0); INSERT IGNORE INTO `#__raidplanner_groups` (`group_id`, `group_name`, `default`) VALUES (2, 'Registered', 1); CREATE TABLE IF NOT EXISTS `#__raidplanner_permissions` ( `permission_name` varchar(45) NOT NULL DEFAULT '', `permission_value` tinyint(1) NOT NULL DEFAULT '0', `group_id` int(10) unsigned NOT NULL DEFAULT '0', KEY `group_id` (`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__raidplanner_profile` ( `profile_id` int(10) unsigned NOT NULL, `group_id` int(10) unsigned NOT NULL DEFAULT '0', KEY `profile_id` (`profile_id`), KEY `group_id` (`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__raidplanner_race` ( `race_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `race_name` varchar(45) NOT NULL DEFAULT '', PRIMARY KEY (`race_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (1, 'Human'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (2, 'Orc'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (3, 'Dwarf'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (4, 'Nightelf'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (5, 'Undead'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (6, 'Tauren'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (7, 'Gnome'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (8, 'Troll'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (9, 'Goblin'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (10, 'Bloodelf'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (11, 'Draenei'); INSERT IGNORE INTO `#__raidplanner_race` (`race_id`, `race_name`) VALUES (22, 'Worgen'); CREATE TABLE IF NOT EXISTS `#__raidplanner_raid` ( `raid_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `status` tinyint(1) NOT NULL DEFAULT '0', `location` varchar(45) NOT NULL DEFAULT '', `raid_leader` varchar(45) NOT NULL DEFAULT '', `invite_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `description` text NOT NULL, `start_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `duration_mins` int(11) NOT NULL, `freeze_time` int(10) unsigned NOT NULL DEFAULT '0', `maximum_level` int(10) unsigned DEFAULT NULL, `minimum_level` int(10) unsigned DEFAULT NULL, `icon_name` varchar(45) NOT NULL DEFAULT '', `profile_id` int(10) unsigned NOT NULL DEFAULT '0', `is_template` tinyint(1) NOT NULL DEFAULT '0', `minimum_rank` int(11) DEFAULT NULL, `invited_group_id` int(11) DEFAULT NULL, `guild_id` int(11) DEFAULT NULL, PRIMARY KEY (`raid_id`), KEY `start_time` (`start_time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__raidplanner_role` ( `role_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role_name` varchar(255) NOT NULL DEFAULT '', `body_color` varchar(255) NOT NULL DEFAULT '', `header_color` varchar(255) NOT NULL DEFAULT '', `font_color` varchar(255) NOT NULL DEFAULT '', `icon_name` varchar(255) DEFAULT NULL, PRIMARY KEY (`role_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT IGNORE INTO `#__raidplanner_role` (`role_id`, `role_name`, `body_color`, `header_color`, `font_color`, `icon_name`) VALUES (1, 'Tank', 'white', '#93232b', 'black', 'role_tank.png'); INSERT IGNORE INTO `#__raidplanner_role` (`role_id`, `role_name`, `body_color`, `header_color`, `font_color`, `icon_name`) VALUES (2, 'Melee DPS', 'white', '#a06729', 'black', 'role_melee_dps.png'); INSERT IGNORE INTO `#__raidplanner_role` (`role_id`, `role_name`, `body_color`, `header_color`, `font_color`, `icon_name`) VALUES (3, 'Ranged DPS', 'white', '#2983a0', 'black', 'role_ranged_dps.png'); INSERT IGNORE INTO `#__raidplanner_role` (`role_id`, `role_name`, `body_color`, `header_color`, `font_color`, `icon_name`) VALUES (4, 'Healer', 'white', '#6aa64d', 'black', 'role_heal.png'); CREATE TABLE IF NOT EXISTS `#__raidplanner_signups` ( `raid_id` int(10) unsigned NOT NULL DEFAULT '0', `character_id` int(10) unsigned NOT NULL DEFAULT '0', `queue` tinyint(1) NOT NULL DEFAULT '0', `confirmed` tinyint(1) NOT NULL DEFAULT '0', `profile_id` int(10) unsigned NOT NULL DEFAULT '0', `role_id` int(10) unsigned NOT NULL DEFAULT '0', `comments` varchar(255) NOT NULL DEFAULT '', `timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `class_id` int(10) unsigned NOT NULL DEFAULT '0', KEY `raid_id` (`raid_id`), KEY `profile_id` (`profile_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__raidplanner_history` ( `raid_id` int(10) unsigned NOT NULL DEFAULT '0', `history` text NOT NULL, KEY `raid_id` (`raid_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__raidplanner_guild` ( `guild_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `guild_name` varchar(80) NOT NULL DEFAULT '', `guild_realm` varchar(80) NOT NULL DEFAULT '', `guild_region` varchar(10) NOT NULL DEFAULT '', `guild_level` int(10) NOT NULL DEFAULT '0', `lastSync` timestamp NULL DEFAULT NULL, `params` text NOT NULL, PRIMARY KEY (`guild_id`), KEY `lastSync` (`lastSync`) ) ENGINE=MYISAM DEFAULT CHARSET=utf8;
Crashkurs/Joomla
administrator/components/com_raidplanner/install/install.sql
SQL
gpl-2.0
8,540
package it.unisalento.wox; public class WoXmanager { private static WoXmanager instance; private String app_id; private String WoXserverIP = "193.204.76.186"; private String WoXserverPort = "8280"; //private String base_url="http://193.204.76.235:8080/capturingapp/rest/topicmanager/"; //193.204.76.235 private String base_url="http://193.204.76.186:8280/wox/topics/"; //193.204.76.235 public void setWoXserverAddress(String ip, String port) { WoXserverIP=ip; WoXserverPort=port; base_url="http://"+WoXserverIP+":"+WoXserverPort+"/wox/topics/"; } public String getWoXbaseURL() { return base_url; } public String getAppId() { return app_id; } public void setAppId(String app_id) { this.app_id = app_id; } public static WoXmanager getInstance() { if(instance == null) instance = new WoXmanager(); return instance; } }
robertovergallo/wox
WoX-api-java/src/it/unisalento/wox/WoXmanager.java
Java
gpl-2.0
861
<?php namespace SimpleCalendar\plugin_deps; /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return \array_replace_recursive(require __DIR__ . '/tr.php', ['weekdays_short' => ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'], 'weekdays_min' => ['Pa', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'], 'formats' => ['LT' => 'h:mm a', 'LTS' => 'h:mm:ss a', 'L' => 'D.MM.YYYY', 'LL' => 'D MMM YYYY', 'LLL' => 'D MMMM YYYY h:mm a', 'LLLL' => 'D MMMM YYYY dddd h:mm a']]);
projectestac/wordpress-gce
third-party/nesbot/carbon/src/Carbon/Lang/tr_CY.php
PHP
gpl-2.0
635
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: FileGLogger.h * Author: gedas * * Created on Pirmadienis, 2016, kovas 28, 22.32 */ #ifndef FILEGLOGGER_H #define FILEGLOGGER_H #include <fstream> #include <string> #include "LocalGLogger.h" namespace GServer { class FileGLogger : public LocalGLogger { public: // ##### Kintamieji ##### // ##### END Kintamieji ##### // ######################################################################### // ##### Metodai ##### /** FileGLOgger ** * metodas skitas sukurti objekta, kuris pranesimus raso i nurodyta * faila. * filePath- kelias iki failo, i kuri norima rasyti pranesimus * debug- jungtis kuri ijungia arba isungia derinimo inforamcijos * rasyma i pranesimu faila */ FileGLogger(std::string filePath, int debug); virtual ~FileGLogger(); /* logInfo * Metodas skirtas pranesti apie informacija */ virtual void logInfo(std::string className, std::string message); /* logError * Metodas skirtas pranesti apie klaida */ virtual void logError(std::string className, std::string message); /* logDebug * Metodas skirtas pranesti derinimo informacijai */ virtual void logDebug(std::string className, std::string message); // ##### END Metodai ##### private: // ##### Kintamieji ##### /* file_descriptor * Objektas skirtas rasyti duomensi i faila nurodyta konfiguracinaime * faile LOGGER_FILE_PATH nustatyme. * Placiau: http://www.cplusplus.com/reference/fstream/ofstream/*/ std::ofstream* logFile; // ##### END Kintamieji ##### // ######################################################################### // ##### Metodai ##### /* createFileDescriptor * Metodas skirtas nuskaityti nuskaitymus is konfiguracinio failo ir * atverti faila pranesimu rasimui nurodytu keliu. Skaityti apie * file_descriptor fielPath- kelias ini pranesimu rasymo failo*/ void openLogFile(std::string fielPath); // ##### END Metodai ##### }; } #endif /* FILEGLOGGER_H */
gedOHub/GServer
FileGLogger.h
C
gpl-2.0
2,404
/* $Id: example.css,v 1.5 2006/03/27 02:44:36 pat Exp $ */ /*-------------------------------------------------- REQUIRED to hide the non-active tab content. But do not hide them in the print stylesheet! --------------------------------------------------*/ .tabberlive .tabbertabhide { display:none; } /*-------------------------------------------------- .tabber = before the tabber interface is set up .tabberlive = after the tabber interface is set up --------------------------------------------------*/ .tabber { } .tabberlive { margin-top:1em; /* border-color: #0000FF; */ /* border-style: solid; */ } /*-------------------------------------------------- ul.tabbernav = the tab navigation list li.tabberactive = the active tab --------------------------------------------------*/ ul.tabbernav { margin: 0; padding: 0; height: 3px; font: 11px Verdana, sans-serif; width: 95%; /*border-bottom: 5px solid #bbb;*/ border-bottom: 1px solid green; list-style-type: none; //background: #e9f9ac; } ul.tabbernav li { float: left; display: block; color: #0000FF; } ul.tabbernav li a { background: #E9F9AC; color: #555; text-decoration: none; padding: 0px 5px 3px 5px; display: block; color: #0000FF; border-bottom: 3px solid #E9F9AC; } ul.tabbernav li a:link { color: #000; } ul.tabbernav li a:visited { color: #667; } ul.tabbernav li a:hover { font-weight: bold; color: #000; cursor: pointer; } ul.tabbernav li.tabberactive a { color: #000; cursor: default; font-weight: bold; border-bottom: 3px solid #E9F9AC; background: #CEE574; } ul.tabbernav li.tabberactive a:hover { // border-bottom: 3px solid #f90; } /*-------------------------------------------------- .tabbertab = the tab content Add style only after the tabber interface is set up (.tabberlive) --------------------------------------------------*/ .tabberlive .tabbertab { /* uncomment below to enable the box border for the tabbed divs padding:5px; border:1px solid #aaa; border-top:1; */ }
jdenoy/daloradius
library/tabber/tab-css2.css
CSS
gpl-2.0
2,010
MediaPi ======= UPnP media server intended for the Raspberry Pi based on the Platinum UPnP SDK Features -------- - Recursively scan directories for media content - Get content information from IMDB - Edit content presentation (e.g. directory-name, -structure) Feature wish list ----------------- - Automatically detect new content - Get content information from metadata (e.g. ID3-Tags) - Web-frontend - Highly customisable through config file(s) - Editable database Libraries --------- - SQLite: Handles database - Boost: Parses config file(s) and makes HTTP requests for IMDB
martek01/MediaPi
README.md
Markdown
gpl-2.0
582
/* * This file has been copied from commit e7ac713d^ in the GNU grep git * repository. A few small changes have been made to adapt the code to * Git. */ /* kwset.c - search for any of a set of keywords. Copyright 1989, 1998, 2000, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written August 1989 by Mike Haertel. The author may be reached (Email) at the address mike@ai.mit.edu, or (US mail) as Mike Haertel c/o Free Software Foundation. */ /* The algorithm implemented by these routines bears a startling resemblance to one discovered by Beate Commentz-Walter, although it is not identical. See "A String Matching Algorithm Fast on the Average," Technical Report, IBM-Germany, Scientific Center Heidelberg, Tiergartenstrasse 15, D-6900 Heidelberg, Germany. See also Aho, A.V., and M. Corasick, "Efficient String Matching: An Aid to Bibliographic Search," CACM June 1975, Vol. 18, No. 6, which describes the failure function used below. */ #include "cache.h" #include "kwset.h" #include "compat/obstack.h" #define NCHAR (UCHAR_MAX + 1) #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free #define U(c) ((unsigned char) (c)) /* Balanced tree of edges and labels leaving a given trie node. */ struct tree { struct tree *llink; /* Left link; MUST be first field. */ struct tree *rlink; /* Right link (to larger labels). */ struct trie *trie; /* Trie node pointed to by this edge. */ unsigned char label; /* Label on this edge. */ char balance; /* Difference in depths of subtrees. */ }; /* Node of a trie representing a set of reversed keywords. */ struct trie { unsigned int accepting; /* Word index of accepted word, or zero. */ struct tree *links; /* Tree of edges leaving this node. */ struct trie *parent; /* Parent of this node. */ struct trie *next; /* List of all trie nodes in level order. */ struct trie *fail; /* Aho-Corasick failure function. */ int depth; /* Depth of this node from the root. */ int shift; /* Shift function for search failures. */ int maxshift; /* Max shift of self and descendants. */ }; /* Structure returned opaquely to the caller, containing everything. */ struct kwset { struct obstack obstack; /* Obstack for node allocation. */ int words; /* Number of words in the trie. */ struct trie *trie; /* The trie itself. */ int mind; /* Minimum depth of an accepting node. */ int maxd; /* Maximum depth of any node. */ unsigned char delta[NCHAR]; /* Delta table for rapid search. */ struct trie *next[NCHAR]; /* Table of children of the root. */ char *target; /* Target string if there's only one. */ int mind2; /* Used in Boyer-Moore search for one string. */ unsigned char const *trans; /* Character translation table. */ }; /* Allocate and initialize a keyword set object, returning an opaque pointer to it. Return NULL if memory is not available. */ kwset_t kwsalloc (unsigned char const *trans) { struct kwset *kwset; kwset = (struct kwset *) xmalloc(sizeof (struct kwset)); obstack_init(&kwset->obstack); kwset->words = 0; kwset->trie = (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie)); if (!kwset->trie) { kwsfree((kwset_t) kwset); return NULL; } kwset->trie->accepting = 0; kwset->trie->links = NULL; kwset->trie->parent = NULL; kwset->trie->next = NULL; kwset->trie->fail = NULL; kwset->trie->depth = 0; kwset->trie->shift = 0; kwset->mind = INT_MAX; kwset->maxd = -1; kwset->target = NULL; kwset->trans = trans; return (kwset_t) kwset; } /* This upper bound is valid for CHAR_BIT >= 4 and exact for CHAR_BIT in { 4..11, 13, 15, 17, 19 }. */ #define DEPTH_SIZE (CHAR_BIT + CHAR_BIT/2) /* Add the given string to the contents of the keyword set. Return NULL for success, an error message otherwise. */ const char * kwsincr (kwset_t kws, char const *text, size_t len) { struct kwset *kwset; register struct trie *trie; register unsigned char label; register struct tree *link; register int depth; struct tree *links[DEPTH_SIZE]; enum { L, R } dirs[DEPTH_SIZE]; struct tree *t, *r, *l, *rl, *lr; kwset = (struct kwset *) kws; trie = kwset->trie; text += len; /* Descend the trie (built of reversed keywords) character-by-character, installing new nodes when necessary. */ while (len--) { label = kwset->trans ? kwset->trans[U(*--text)] : *--text; /* Descend the tree of outgoing links for this trie node, looking for the current character and keeping track of the path followed. */ link = trie->links; links[0] = (struct tree *) &trie->links; dirs[0] = L; depth = 1; while (link && label != link->label) { links[depth] = link; if (label < link->label) dirs[depth++] = L, link = link->llink; else dirs[depth++] = R, link = link->rlink; } /* The current character doesn't have an outgoing link at this trie node, so build a new trie node and install a link in the current trie node's tree. */ if (!link) { link = (struct tree *) obstack_alloc(&kwset->obstack, sizeof (struct tree)); if (!link) return "memory exhausted"; link->llink = NULL; link->rlink = NULL; link->trie = (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie)); if (!link->trie) { obstack_free(&kwset->obstack, link); return "memory exhausted"; } link->trie->accepting = 0; link->trie->links = NULL; link->trie->parent = trie; link->trie->next = NULL; link->trie->fail = NULL; link->trie->depth = trie->depth + 1; link->trie->shift = 0; link->label = label; link->balance = 0; /* Install the new tree node in its parent. */ if (dirs[--depth] == L) links[depth]->llink = link; else links[depth]->rlink = link; /* Back up the tree fixing the balance flags. */ while (depth && !links[depth]->balance) { if (dirs[depth] == L) --links[depth]->balance; else ++links[depth]->balance; --depth; } /* Rebalance the tree by pointer rotations if necessary. */ if (depth && ((dirs[depth] == L && --links[depth]->balance) || (dirs[depth] == R && ++links[depth]->balance))) { switch (links[depth]->balance) { case (char) -2: switch (dirs[depth + 1]) { case L: r = links[depth], t = r->llink, rl = t->rlink; t->rlink = r, r->llink = rl; t->balance = r->balance = 0; break; case R: r = links[depth], l = r->llink, t = l->rlink; rl = t->rlink, lr = t->llink; t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl; l->balance = t->balance != 1 ? 0 : -1; r->balance = t->balance != (char) -1 ? 0 : 1; t->balance = 0; break; default: abort (); } break; case 2: switch (dirs[depth + 1]) { case R: l = links[depth], t = l->rlink, lr = t->llink; t->llink = l, l->rlink = lr; t->balance = l->balance = 0; break; case L: l = links[depth], r = l->rlink, t = r->llink; lr = t->llink, rl = t->rlink; t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl; l->balance = t->balance != 1 ? 0 : -1; r->balance = t->balance != (char) -1 ? 0 : 1; t->balance = 0; break; default: abort (); } break; default: abort (); } if (dirs[depth - 1] == L) links[depth - 1]->llink = t; else links[depth - 1]->rlink = t; } } trie = link->trie; } /* Mark the node we finally reached as accepting, encoding the index number of this word in the keyword set so far. */ if (!trie->accepting) trie->accepting = 1 + 2 * kwset->words; ++kwset->words; /* Keep track of the longest and shortest string of the keyword set. */ if (trie->depth < kwset->mind) kwset->mind = trie->depth; if (trie->depth > kwset->maxd) kwset->maxd = trie->depth; return NULL; } /* Enqueue the trie nodes referenced from the given tree in the given queue. */ static void enqueue (struct tree *tree, struct trie **last) { if (!tree) return; enqueue(tree->llink, last); enqueue(tree->rlink, last); (*last) = (*last)->next = tree->trie; } /* Compute the Aho-Corasick failure function for the trie nodes referenced from the given tree, given the failure function for their parent as well as a last resort failure node. */ static void treefails (register struct tree const *tree, struct trie const *fail, struct trie *recourse) { register struct tree *link; if (!tree) return; treefails(tree->llink, fail, recourse); treefails(tree->rlink, fail, recourse); /* Find, in the chain of fails going back to the root, the first node that has a descendant on the current label. */ while (fail) { link = fail->links; while (link && tree->label != link->label) if (tree->label < link->label) link = link->llink; else link = link->rlink; if (link) { tree->trie->fail = link->trie; return; } fail = fail->fail; } tree->trie->fail = recourse; } /* Set delta entries for the links of the given tree such that the preexisting delta value is larger than the current depth. */ static void treedelta (register struct tree const *tree, register unsigned int depth, unsigned char delta[]) { if (!tree) return; treedelta(tree->llink, depth, delta); treedelta(tree->rlink, depth, delta); if (depth < delta[tree->label]) delta[tree->label] = depth; } /* Return true if A has every label in B. */ static int hasevery (register struct tree const *a, register struct tree const *b) { if (!b) return 1; if (!hasevery(a, b->llink)) return 0; if (!hasevery(a, b->rlink)) return 0; while (a && b->label != a->label) if (b->label < a->label) a = a->llink; else a = a->rlink; return !!a; } /* Compute a vector, indexed by character code, of the trie nodes referenced from the given tree. */ static void treenext (struct tree const *tree, struct trie *next[]) { if (!tree) return; treenext(tree->llink, next); treenext(tree->rlink, next); next[tree->label] = tree->trie; } /* Compute the shift for each trie node, as well as the delta table and next cache for the given keyword set. */ const char * kwsprep (kwset_t kws) { register struct kwset *kwset; register int i; register struct trie *curr; register unsigned char const *trans; unsigned char delta[NCHAR]; kwset = (struct kwset *) kws; /* Initial values for the delta table; will be changed later. The delta entry for a given character is the smallest depth of any node at which an outgoing edge is labeled by that character. */ memset(delta, kwset->mind < UCHAR_MAX ? kwset->mind : UCHAR_MAX, NCHAR); /* Check if we can use the simple boyer-moore algorithm, instead of the hairy commentz-walter algorithm. */ if (kwset->words == 1 && kwset->trans == NULL) { char c; /* Looking for just one string. Extract it from the trie. */ kwset->target = obstack_alloc(&kwset->obstack, kwset->mind); if (!kwset->target) return "memory exhausted"; for (i = kwset->mind - 1, curr = kwset->trie; i >= 0; --i) { kwset->target[i] = curr->links->label; curr = curr->links->trie; } /* Build the Boyer Moore delta. Boy that's easy compared to CW. */ for (i = 0; i < kwset->mind; ++i) delta[U(kwset->target[i])] = kwset->mind - (i + 1); /* Find the minimal delta2 shift that we might make after a backwards match has failed. */ c = kwset->target[kwset->mind - 1]; for (i = kwset->mind - 2; i >= 0; --i) if (kwset->target[i] == c) break; kwset->mind2 = kwset->mind - (i + 1); } else { register struct trie *fail; struct trie *last, *next[NCHAR]; /* Traverse the nodes of the trie in level order, simultaneously computing the delta table, failure function, and shift function. */ for (curr = last = kwset->trie; curr; curr = curr->next) { /* Enqueue the immediate descendants in the level order queue. */ enqueue(curr->links, &last); curr->shift = kwset->mind; curr->maxshift = kwset->mind; /* Update the delta table for the descendants of this node. */ treedelta(curr->links, curr->depth, delta); /* Compute the failure function for the descendants of this node. */ treefails(curr->links, curr->fail, kwset->trie); /* Update the shifts at each node in the current node's chain of fails back to the root. */ for (fail = curr->fail; fail; fail = fail->fail) { /* If the current node has some outgoing edge that the fail doesn't, then the shift at the fail should be no larger than the difference of their depths. */ if (!hasevery(fail->links, curr->links)) if (curr->depth - fail->depth < fail->shift) fail->shift = curr->depth - fail->depth; /* If the current node is accepting then the shift at the fail and its descendants should be no larger than the difference of their depths. */ if (curr->accepting && fail->maxshift > curr->depth - fail->depth) fail->maxshift = curr->depth - fail->depth; } } /* Traverse the trie in level order again, fixing up all nodes whose shift exceeds their inherited maxshift. */ for (curr = kwset->trie->next; curr; curr = curr->next) { if (curr->maxshift > curr->parent->maxshift) curr->maxshift = curr->parent->maxshift; if (curr->shift > curr->maxshift) curr->shift = curr->maxshift; } /* Create a vector, indexed by character code, of the outgoing links from the root node. */ for (i = 0; i < NCHAR; ++i) next[i] = NULL; treenext(kwset->trie->links, next); if ((trans = kwset->trans) != NULL) for (i = 0; i < NCHAR; ++i) kwset->next[i] = next[U(trans[i])]; else memcpy(kwset->next, next, NCHAR * sizeof(struct trie *)); } /* Fix things up for any translation table. */ if ((trans = kwset->trans) != NULL) for (i = 0; i < NCHAR; ++i) kwset->delta[i] = delta[U(trans[i])]; else memcpy(kwset->delta, delta, NCHAR); return NULL; } /* Fast boyer-moore search. */ static size_t bmexec (kwset_t kws, char const *text, size_t size) { struct kwset const *kwset; register unsigned char const *d1; register char const *ep, *sp, *tp; register int d, gc, i, len, md2; kwset = (struct kwset const *) kws; len = kwset->mind; if (len == 0) return 0; if (len > size) return -1; if (len == 1) { tp = memchr (text, kwset->target[0], size); return tp ? tp - text : -1; } d1 = kwset->delta; sp = kwset->target + len; gc = U(sp[-2]); md2 = kwset->mind2; tp = text + len; /* Significance of 12: 1 (initial offset) + 10 (skip loop) + 1 (md2). */ if (size > 12 * len) /* 11 is not a bug, the initial offset happens only once. */ for (ep = text + size - 11 * len;;) { while (tp <= ep) { d = d1[U(tp[-1])], tp += d; d = d1[U(tp[-1])], tp += d; if (d == 0) goto found; d = d1[U(tp[-1])], tp += d; d = d1[U(tp[-1])], tp += d; d = d1[U(tp[-1])], tp += d; if (d == 0) goto found; d = d1[U(tp[-1])], tp += d; d = d1[U(tp[-1])], tp += d; d = d1[U(tp[-1])], tp += d; if (d == 0) goto found; d = d1[U(tp[-1])], tp += d; d = d1[U(tp[-1])], tp += d; } break; found: if (U(tp[-2]) == gc) { for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i) ; if (i > len) return tp - len - text; } tp += md2; } /* Now we have only a few characters left to search. We carefully avoid ever producing an out-of-bounds pointer. */ ep = text + size; d = d1[U(tp[-1])]; while (d <= ep - tp) { d = d1[U((tp += d)[-1])]; if (d != 0) continue; if (U(tp[-2]) == gc) { for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i) ; if (i > len) return tp - len - text; } d = md2; } return -1; } /* Hairy multiple string search. */ static size_t cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch) { struct kwset const *kwset; struct trie * const *next; struct trie const *trie; struct trie const *accept; char const *beg, *lim, *mch, *lmch; register unsigned char c; register unsigned char const *delta; register int d; register char const *end, *qlim; register struct tree const *tree; register unsigned char const *trans; accept = NULL; /* Initialize register copies and look for easy ways out. */ kwset = (struct kwset *) kws; if (len < kwset->mind) return -1; next = kwset->next; delta = kwset->delta; trans = kwset->trans; lim = text + len; end = text; if ((d = kwset->mind) != 0) mch = NULL; else { mch = text, accept = kwset->trie; goto match; } if (len >= 4 * kwset->mind) qlim = lim - 4 * kwset->mind; else qlim = NULL; while (lim - end >= d) { if (qlim && end <= qlim) { end += d - 1; while ((d = delta[c = *end]) && end < qlim) { end += d; end += delta[U(*end)]; end += delta[U(*end)]; } ++end; } else d = delta[c = (end += d)[-1]]; if (d) continue; beg = end - 1; trie = next[c]; if (trie->accepting) { mch = beg; accept = trie; } d = trie->shift; while (beg > text) { c = trans ? trans[U(*--beg)] : *--beg; tree = trie->links; while (tree && c != tree->label) if (c < tree->label) tree = tree->llink; else tree = tree->rlink; if (tree) { trie = tree->trie; if (trie->accepting) { mch = beg; accept = trie; } } else break; d = trie->shift; } if (mch) goto match; } return -1; match: /* Given a known match, find the longest possible match anchored at or before its starting point. This is nearly a verbatim copy of the preceding main search loops. */ if (lim - mch > kwset->maxd) lim = mch + kwset->maxd; lmch = NULL; d = 1; while (lim - end >= d) { if ((d = delta[c = (end += d)[-1]]) != 0) continue; beg = end - 1; if (!(trie = next[c])) { d = 1; continue; } if (trie->accepting && beg <= mch) { lmch = beg; accept = trie; } d = trie->shift; while (beg > text) { c = trans ? trans[U(*--beg)] : *--beg; tree = trie->links; while (tree && c != tree->label) if (c < tree->label) tree = tree->llink; else tree = tree->rlink; if (tree) { trie = tree->trie; if (trie->accepting && beg <= mch) { lmch = beg; accept = trie; } } else break; d = trie->shift; } if (lmch) { mch = lmch; goto match; } if (!d) d = 1; } if (kwsmatch) { kwsmatch->index = accept->accepting / 2; kwsmatch->offset[0] = mch - text; kwsmatch->size[0] = accept->depth; } return mch - text; } /* Search through the given text for a match of any member of the given keyword set. Return a pointer to the first character of the matching substring, or NULL if no match is found. If FOUNDLEN is non-NULL store in the referenced location the length of the matching substring. Similarly, if FOUNDIDX is non-NULL, store in the referenced location the index number of the particular keyword matched. */ size_t kwsexec (kwset_t kws, char const *text, size_t size, struct kwsmatch *kwsmatch) { struct kwset const *kwset = (struct kwset *) kws; if (kwset->words == 1 && kwset->trans == NULL) { size_t ret = bmexec (kws, text, size); if (kwsmatch != NULL && ret != (size_t) -1) { kwsmatch->index = 0; kwsmatch->offset[0] = ret; kwsmatch->size[0] = kwset->mind; } return ret; } else return cwexec(kws, text, size, kwsmatch); } /* Free the components of the given keyword set. */ void kwsfree (kwset_t kws) { struct kwset *kwset; kwset = (struct kwset *) kws; obstack_free(&kwset->obstack, NULL); free(kws); }
haglerchristopher/automation
src/3rd_party/git/kwset.c
C
gpl-2.0
21,801
/* * Copyright (C) 2010-2012 Project SkyFire <http://www.projectskyfire.org/> * Copyright (C) 2010-2012 Oregon <http://www.oregoncore.com/> * Copyright (C) 2006-2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "ScriptPCH.h" #include "blackfathom_deeps.h" enum Spells { SPELL_NET = 6533 }; struct boss_gelihastAI : public ScriptedAI { boss_gelihastAI(Creature *c) : ScriptedAI(c) { instance = c->GetInstanceScript(); } uint32 uiNetTimer; ScriptedInstance *instance; void Reset() { uiNetTimer = urand(2000, 4000); if (instance) instance->SetData(TYPE_GELIHAST, NOT_STARTED); } void EnterCombat(Unit* /*who*/) { if (instance) instance->SetData(TYPE_GELIHAST, IN_PROGRESS); } void JustDied(Unit* /*killer*/) { if (instance) instance->SetData(TYPE_GELIHAST, DONE); } void UpdateAI(const uint32 diff) { if (!UpdateVictim()) return; if (uiNetTimer < diff) { DoCastVictim(SPELL_NET); uiNetTimer = urand(4000, 7000); } else uiNetTimer -= diff; DoMeleeAttackIfReady(); } }; CreatureAI* GetAI_boss_gelihast(Creature* creature) { return new boss_gelihastAI (creature); } void AddSC_boss_gelihast() { Script *newscript; newscript = new Script; newscript->Name = "boss_gelihast"; newscript->GetAI = &GetAI_boss_gelihast; newscript->RegisterSelf(); }
hlarsen/TBCPvP
src/server/scripts/Kalimdor/BlackfathomDeeps/boss_gelihast.cpp
C++
gpl-2.0
2,303
#contact_social { cursor: pointer; overflow: hidden; position: fixed; text-decoration: none !important; z-index: 9999; } #contact_social a { display: block; margin-bottom:6px; overflow:hidden; background-image: url(contact_social.png); background-repeat:no-repeat; background-color:transparent; } #contact_social a.contact-social-twitter { background-position: 0 0; } #contact_social a.contact-social-facebook { background-position: 0 -35px; } #contact_social a.contact-social-contact-us { background-position: 0 -70px; } #contact_social a.contact-social-twitter:hover { background-position: -35px 0; } #contact_social a.contact-social-facebook:hover { background-position: -35px -35px; } #contact_social a.contact-social-contact-us:hover { background-position: -35px -70px; } #contact_social img { border: none; } .contact_social-left { left: 0px; } .contact_social-right { right: 0px; }
peteainsworth/contact_social
contact_social.css
CSS
gpl-2.0
924
svg { /*border:solid 1px gray;*/ } path,rect,circle{ fill:white; stroke:black; } .Room{ fill:#F2D6AB; } .Wall { stroke-width:10px; } .OuterWall { stroke-width:25px; } .Selected { stroke:red; stroke-width:3px; } image.Selected { outline:auto; } .FoldoutSofa { fill:gray; } .FoldoutSofaOpened { fill:transparent; }
danelkhen/sketchapp
SketchApp/index.css
CSS
gpl-2.0
360
#define BOOST_TEST_MODULE "GreensFunction3DRadInf_test" #ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST # include <boost/test/unit_test.hpp> #else # define BOOST_TEST_NO_LIB # include <boost/test/included/unit_test.hpp> #endif #include "../freeFunctions.hpp" #include "../GreensFunction.hpp" #include "../GreensFunction3DRadInf.hpp" using namespace greens_functions; using namespace std; using namespace boost::test_tools; BOOST_AUTO_TEST_CASE(GF3DRadInf_constructor) { Real D( 1e-12 ), kf( 1e-8 ), r0( 5e-8 ), sigma( 1e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawTime) { Real D( 1e-12 ), kf( 1e-8 ), r0( 5e-8 ), sigma( 1e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( gf.drawTime( 0.5 ) ); BOOST_CHECK( 0.0 < t ); t = gf.drawTime( 0.0 ); BOOST_CHECK( 0.0 <= t ); t = gf.drawTime( 0.9999999 ) ; BOOST_CHECK( 0.0 < t ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawTime_r0_equal_sigma_kf_zero) { Real D( 1e-12 ), kf( 0.0 ), sigma( 1e-8 ), r0( sigma ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( gf.drawTime( 0.5 ) ); BOOST_CHECK( 0.0 <= t ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawR) { Real D( 1e-12 ), kf( 1e-8 ), r0( 2e-8 ), sigma( 1e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ); Real r( gf.drawR( 0.5, t ) ); BOOST_CHECK( sigma <= r ); Real r1( gf.drawR( 0.0, t ) ); Real r2( gf.drawR( 0.9999999, t ) ); BOOST_CHECK( sigma <= r1 ); BOOST_CHECK( sigma <= r2 ); BOOST_CHECK( fabs(r1 - sigma) <= 1e-15 ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawR_zerot) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( 2e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 0.0 ); Real r( gf.drawR( 0.5, t ) ); BOOST_CHECK_EQUAL( r0, r ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawR_smallt) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( 1.000001e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-12 ); Real r( gf.drawR( 0.5, t ) ); BOOST_CHECK( sigma <= r ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawR_r0_equal_sigma) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( sigma ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-5 ); Real r( gf.drawR( 0.5, t ) ); BOOST_CHECK( sigma <= r ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawTheta) { Real D( 1e-12 ), kf( 1e-8 ), r0( 2e-8 ), sigma( 1e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ), r( 2.1e-8 ); Real theta( gf.drawTheta( 0.5, r, t ) ); BOOST_CHECK( 0.0 <= theta && theta <= M_PI ); theta = gf.drawTheta( 0.0, r, t ); BOOST_CHECK( 0.0 <= theta && theta <= M_PI ); theta = gf.drawTheta( 0.9999999, r, t ); BOOST_CHECK( 0.0 <= theta && theta <= M_PI ); } /* ''' def test_draw_theta2(self): D = 2e-12 kf = 0 sigma = 5e-9 r0 = 5.064e-9 r = 5.05e-9 t = 1e-9 gf = mod.GreensFunction3DRadInf(D, kf, sigma) theta = gf.drawTheta(0.5, r, r0, t) self.failIf(theta < 0.0 or theta > numpy.pi) #theta = gf.drawTheta(0.0, r, r0, t) #self.failIf(theta < 0.0 or theta > numpy.pi) #theta = gf.drawTheta(0.9999999, r, r0, t) #self.failIf(theta < 0.0 or theta > numpy.pi) ''' */ BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawTheta_zerot) { Real D( 1e-12 ), kf( 1e-8 ), r0( 5e-8 ), sigma( 1e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 0.0 ); // Real t( 0.0 ), r( 5e-8 ); Real theta( gf.drawTheta( 0.5, r0, t ) ); BOOST_CHECK_EQUAL( 0.0, theta ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawTheta_smallt) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ); Real t( 1e-11 ), r, r0; Real disp( 3 * sqrt(6 * D * t) ); r = sigma + disp + disp; r0 = sigma + disp; GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real theta( gf.drawTheta( 0.5, r, t ) ); BOOST_CHECK( 0.0 <= theta && theta <= M_PI ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_DrawTheta_r0_equal_sigma) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( sigma ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ), r( r0 ); Real theta( gf.drawTheta( 0.5, r, t ) ); BOOST_CHECK( 0.0 <= theta && theta <= M_PI ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_p_int_r_at_s_is_zero) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( 2e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ); Real pintr( gf.p_int_r( sigma, t ) ); BOOST_CHECK_EQUAL( 0.0, pintr ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_p_int_r0_at_s_zerot_is_zero) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( 2e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 0.0 ); Real pintr( gf.p_int_r( sigma, t ) ); BOOST_CHECK_EQUAL( 0.0, pintr ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_p_int_r_large_is_p_survival) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( 2e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ); Real pintr( gf.p_int_r( sigma * 1e8, t ) ); Real psurv( gf.p_survival(t) ); BOOST_CHECK_CLOSE( psurv, pintr, 0.0001 );//? } /* BOOST_AUTO_TEST_CASE(GF3DRadInf_ip_theta_is_int_p_theta) { import scipy.integrate D = 1e-12 sigma = 1e-8 kf = 1e-9 t = 1e-4 r0 = sigma*1.1 gf = mod.GreensFunction3DRadInf(D, kf, r0, sigma) r = r0 ip = gf.ip_theta(0.0, r, t) self.assertEqual(0.0, ip) resolution = 10 for i in range(1, resolution): theta = i * numpy.pi / resolution ip = gf.ip_theta(theta, r, t) result = scipy.integrate.quad(gf.p_theta, 0.0, theta, args=(r, t)) np = result[0] #print 'theta, np, ip', theta, np, ip self.assertAlmostEqual(0.0, (np-ip)/ip) } */ /* BOOST_AUTO_TEST_CASE(GF3DRadInf_ip_theta_r0_is_sigma) { import scipy.integrate D = 1e-12 sigma = 1e-8 kf = 1e-8 t = 1e-3 r0 = sigma gf = mod.GreensFunction3DRadInf(D, kf, r0, sigma) r = 1.1 * r0 ip = gf.ip_theta(0.0, r, t) self.assertEqual(0.0, ip) ip = gf.ip_theta(numpy.pi, r, t) #print 'ip', ip #self.assertEqual(0.0, ip) } */ BOOST_AUTO_TEST_CASE(GF3DRadInf_ip_theta_pi_is_p_irr) { Real D( 1e-12 ), kf( 0.0 ), sigma( 1e-8 ), r0( 1.1e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ), r( r0 ); Real ip( gf.ip_theta( M_PI, r, t ) * ( 2 * M_PI * r * r ) ); Real pirr( p_irr(r, t, r0, kf, D, sigma) ); gf.p_corr(M_PI, r, t); // Real pcorr( gf.p_corr(M_PI, r, t) * ( 2 * M_PI * r * r ) ); Real pfree( gf.p_free(M_PI, r, t) * ( 2 * M_PI * r * r ) ); Real dif( fabs(pirr - pfree) ); BOOST_CHECK( dif > 1e-7 );//NotAlmostEqual BOOST_CHECK( 0.0 != ip ); BOOST_CHECK_CLOSE( ip/pirr, 1, 0.0001 ); } BOOST_AUTO_TEST_CASE(GF3DRadInf_p_theta_never_negative) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( 5e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ), r( r0 ), theta; Real pint( gf.ip_theta( M_PI, r, t ) ); Real pmin(0.0), p; int resolution(50); for(int i=0; i<resolution; i++) { theta = i * M_PI / resolution; p = gf.p_theta(theta, r, t) / pint / resolution; pmin = min(pmin, p); } BOOST_CHECK( 0.0 <= pmin ); /*python code: resolution = 50 for i in range(resolution): theta = i * numpy.pi / resolution p = gf.p_theta(theta, r, t) / pint / resolution pmin = min(pmin, p) #print 'theta: ', theta, '\tp: ', p self.failIf(pmin < 0.0, 'Negative p_theta; t= %.16g, %s' % (t, gf.dump())) */ } BOOST_AUTO_TEST_CASE(GF3DRadInf_ip_theta_never_decrese) { Real D( 1e-12 ), kf( 1e-8 ), sigma( 1e-8 ), r0( 5e-8 ); GreensFunction3DRadInf gf( D, kf, r0, sigma ); Real t( 1e-3 ), r( r0 ), theta; Real pint, pint_prev( 0.0 ); int resolution(50); for(int i=0; i<resolution; i++) { theta = i * M_PI / resolution; pint = gf.ip_theta(theta, r, t); BOOST_CHECK( pint_prev <= pint ); pint_prev = pint; } /*python code: resolution = 50 for i in range(resolution): theta = i * numpy.pi / resolution pint = gf.ip_theta(theta, r, t) #print pint self.failIf(pint < pint_prev) pint_prev = pint */ }
ecell/greens_functions
tests/GreensFunction3DRadInf_test.cpp
C++
gpl-2.0
8,406
#!/bin/bash # -- UTF 8 -- ################################################################################### # Script que obtiene información sobre las conexiones SSH recibidas, su duración y usuario. # Autor: Emanuel Malfatti # E-mail: ejmalfatti@outlook.com # Licencia: GPLv2 ################################################################################### # Esta funcion calcula el tiempo de conexion de cada usuario function calculoTiempo(){ # Se recibe como parametro la hora inicial y la hora final de los logs HORAINICIAL=$1 HORAFINAL=$2 VACIO=" " # Si la hora final es nulo o vacio, se debe a que no se puede obtener esa informacion # que el usuario este en una sesion activa, por lo tanto no hay hora de finalizacion if [ $HORAFINAL = $VACIO 2>/dev/null ];then echo "El usuario [$USERS] mantuvo una sesion SSH de: Informarcion incompleta y/o la sesion esta activa" else #Obtengo la hora, minutos y segundos de la hora inicial de la conexion HI=$(echo $HORAINICIAL | cut -d':' -f1) MI=$(echo $HORAINICIAL | cut -d':' -f2) SI=$(echo $HORAINICIAL | cut -d':' -f3) # Obtengo la hora, minutos y segundos de la hora final de la conexion HF=$(echo $HORAFINAL | cut -d':' -f1) MF=$(echo $HORAFINAL | cut -d':' -f2) SF=$(echo $HORAFINAL | cut -d':' -f3) # Realizo la resta de la hora, minutos y segundo final con los tiempo iniciales # resultado es el tiempo que estuvo conectado HH=$(expr $HF - $HI 2>/dev/null) MM=$(expr $MF - $MI 2>/dev/null) SS=$(expr $SF - $SI 2>/dev/null) # Si la hora resulta un numero negativo, le sumo 24 (horas) # resultando la hora correcta y en numero positivo if [ $HH -lt 0 ]; then HH=$(expr $HH + 24) fi # Si los minutos resultan un numero negativo, le sumo 60 (minutos) # y le resto a la hora 1 (hora) a $HH que son los 60 minutos que le sume a $MM if [ $MM -lt 0 ]; then MM=$(expr $MM + 60) HH=$(expr $HH - 1) fi # Si los segundos es negativo, le sumo 60 (segundos) # y le resto a $MM un minuto, que son los 60 segundos que le sume a $SS if [ $SS -lt 0 ]; then SS=$(expr $SS + 60) MM=$(expr $MM - 1) fi # CON ESTO LOGRO QUE EL RESULTADO EN HORAS, MINUTOS Y SEGUNDOS SEAN CORRECTOS echo "El usuario [$USERS] mantuvo una sesion SSH de $HH horas, $MM minutos y $SS segundos" fi } PID=$(cat /var/log/auth.log* | grep "sshd" | grep "Accepted" | cut -d'[' -f2 | cut -d']' -f1) for i in $PID; do USERS=$(cat /var/log/auth.log* | grep "sshd" | grep $i | grep "Accepted" | awk {'print $9'}) # Obtengo el usuario HORAINICIAL=$(cat /var/log/auth.log* | grep "sshd" | grep $i | grep "Accepted" | awk {'print $3'}) # Obtengo la hora inicial de conexion HORAFINAL=$(cat /var/log/auth.log* | grep "sshd" | grep "$i" | grep "closed" | awk {'print$3'}) # Obtengo la hora final de conexion # Llamo a la funcion que calcula el tiempo de conexion de cada usuario y le paso como argumento # la variables que contienen la hora inicial y final de cada conexion de los logs calculoTiempo $HORAINICIAL $HORAFINAL done
ejmalfatti/scriptsTP2
scripts/ejercicio_2.sh
Shell
gpl-2.0
3,110
#!/bin/sh set -ex # apt-get install libmariadbd-dev libmariadb-client-lgpl-dev libmariadb-client-lgpl-dev-compat libpam0g-dev ln -fs ../mysql_com.h /usr/include/mariadb/mysql/mysql_com.h wget -O /usr/include/mariadb/mysql/plugin.h https://raw.githubusercontent.com/MariaDB/server/10.0/include/mysql/plugin.h wget -O /usr/include/mariadb/mysql/plugin_auth.h https://raw.githubusercontent.com/MariaDB/server/10.0/include/mysql/plugin_auth.h perl -pi -e 's|^(?=#include )|//|' /usr/include/mariadb/mysql/plugin.h # https://github.com/MariaDB/server/blob/10.0/include/mysql/plugin_auth.h.pp # This is a very nasty bug which prevents from compiling correct auth plugins for MariaDB perl -pi -e 's/^#define MYSQL_USERNAME_LENGTH\s+\K48/512/' /usr/include/mariadb/mysql/plugin_auth_common.h perl -pi -e 's|^(?=#include <decimal.h>)|//|' /usr/include/mariadb/ma_dyncol.h perl -pi -e 's|^(?=#include <my_decimal_limits.h>)|//|' /usr/include/mariadb/ma_dyncol.h
folays/mysql_auth_flex
prepare_mariadb.sh
Shell
gpl-2.0
959
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.4.2_03) on Wed Jan 05 18:27:29 CET 2005 --> <TITLE> Uses of Package jcckit.graphic (JCCKit) </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="Uses of Package jcckit.graphic (JCCKit)"; } </SCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <CENTER> <H2> <B>Uses of Package<br>jcckit.graphic</B></H2> </CENTER> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> Packages that use <A HREF="../../jcckit/graphic/package-summary.html">jcckit.graphic</A></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#jcckit"><B>jcckit</B></A></TD> <TD>Application and applet classes for immediate use.&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#jcckit.graphic"><B>jcckit.graphic</B></A></TD> <TD>Classes for representing a plot or a chart in device independent coordinates.&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#jcckit.plot"><B>jcckit.plot</B></A></TD> <TD>Classes for generating plots and charts.&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#jcckit.renderer"><B>jcckit.renderer</B></A></TD> <TD>Renderer classes.&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#jcckit.transformation"><B>jcckit.transformation</B></A></TD> <TD>Classes for the transformations between data coordinates into device-independent coordinates.&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="jcckit"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> Classes in <A HREF="../../jcckit/graphic/package-summary.html">jcckit.graphic</A> used by <A HREF="../../jcckit/package-summary.html">jcckit</A></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicalElement.html#jcckit"><B>GraphicalElement</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface all graphical elements have to implement. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphPoint.html#jcckit"><B>GraphPoint</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a two-dimensional point in the device-independent coordinate system.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Renderer.html#jcckit"><B>Renderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marker interface. </TD> </TR> </TABLE> &nbsp; <P> <A NAME="jcckit.graphic"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> Classes in <A HREF="../../jcckit/graphic/package-summary.html">jcckit.graphic</A> used by <A HREF="../../jcckit/graphic/package-summary.html">jcckit.graphic</A></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Anchor.html#jcckit.graphic"><B>Anchor</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Anchor of a graphical element. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/BasicGraphicalElement.html#jcckit.graphic"><B>BasicGraphicalElement</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Abstract superclass of all basic <A HREF="../../jcckit/graphic/GraphicalElement.html" title="interface in jcckit.graphic"><CODE>GraphicalElements</CODE></A>. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/ClippingRectangle.html#jcckit.graphic"><B>ClippingRectangle</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a rectangular clipping area.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/ClippingShape.html#jcckit.graphic"><B>ClippingShape</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Defining a clipping shape applied to all <A HREF="../../jcckit/graphic/GraphicalElement.html" title="interface in jcckit.graphic"><CODE>GraphicalElements</CODE></A> of a <A HREF="../../jcckit/graphic/GraphicalComposite.html" title="class in jcckit.graphic"><CODE>GraphicalComposite</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/FillAttributes.html#jcckit.graphic"><B>FillAttributes</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface for fill attributes.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/FontStyle.html#jcckit.graphic"><B>FontStyle</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Font style constants. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicalComposite.html#jcckit.graphic"><B>GraphicalComposite</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container for <A HREF="../../jcckit/graphic/GraphicalElement.html" title="interface in jcckit.graphic"><CODE>GraphicalElements</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicalElement.html#jcckit.graphic"><B>GraphicalElement</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface all graphical elements have to implement. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicAttributes.html#jcckit.graphic"><B>GraphicAttributes</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marker interface for all types of graphic attributes of a <A HREF="../../jcckit/graphic/BasicGraphicalElement.html" title="class in jcckit.graphic"><CODE>BasicGraphicalElement</CODE></A>. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphPoint.html#jcckit.graphic"><B>GraphPoint</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a two-dimensional point in the device-independent coordinate system.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/LineAttributes.html#jcckit.graphic"><B>LineAttributes</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface for line attributes.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Oval.html#jcckit.graphic"><B>Oval</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An oval (i.e.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Polygon.html#jcckit.graphic"><B>Polygon</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A polygon or polyline.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Rectangle.html#jcckit.graphic"><B>Rectangle</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A rectangle.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Renderer.html#jcckit.graphic"><B>Renderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marker interface. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/ShapeAttributes.html#jcckit.graphic"><B>ShapeAttributes</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Basic attributes for shapes.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Text.html#jcckit.graphic"><B>Text</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A single line of text.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/TextAttributes.html#jcckit.graphic"><B>TextAttributes</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface for text attributes.</TD> </TR> </TABLE> &nbsp; <P> <A NAME="jcckit.plot"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> Classes in <A HREF="../../jcckit/graphic/package-summary.html">jcckit.graphic</A> used by <A HREF="../../jcckit/plot/package-summary.html">jcckit.plot</A></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Anchor.html#jcckit.plot"><B>Anchor</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Anchor of a graphical element. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/ClippingRectangle.html#jcckit.plot"><B>ClippingRectangle</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a rectangular clipping area.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/ClippingShape.html#jcckit.plot"><B>ClippingShape</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Defining a clipping shape applied to all <A HREF="../../jcckit/graphic/GraphicalElement.html" title="interface in jcckit.graphic"><CODE>GraphicalElements</CODE></A> of a <A HREF="../../jcckit/graphic/GraphicalComposite.html" title="class in jcckit.graphic"><CODE>GraphicalComposite</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicalComposite.html#jcckit.plot"><B>GraphicalComposite</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container for <A HREF="../../jcckit/graphic/GraphicalElement.html" title="interface in jcckit.graphic"><CODE>GraphicalElements</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicalElement.html#jcckit.plot"><B>GraphicalElement</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface all graphical elements have to implement. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicAttributes.html#jcckit.plot"><B>GraphicAttributes</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marker interface for all types of graphic attributes of a <A HREF="../../jcckit/graphic/BasicGraphicalElement.html" title="class in jcckit.graphic"><CODE>BasicGraphicalElement</CODE></A>. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphPoint.html#jcckit.plot"><B>GraphPoint</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a two-dimensional point in the device-independent coordinate system.</TD> </TR> </TABLE> &nbsp; <P> <A NAME="jcckit.renderer"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> Classes in <A HREF="../../jcckit/graphic/package-summary.html">jcckit.graphic</A> used by <A HREF="../../jcckit/renderer/package-summary.html">jcckit.renderer</A></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Anchor.html#jcckit.renderer"><B>Anchor</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Anchor of a graphical element. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/ClippingRectangle.html#jcckit.renderer"><B>ClippingRectangle</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a rectangular clipping area.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicalComposite.html#jcckit.renderer"><B>GraphicalComposite</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container for <A HREF="../../jcckit/graphic/GraphicalElement.html" title="interface in jcckit.graphic"><CODE>GraphicalElements</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphicalCompositeRenderer.html#jcckit.renderer"><B>GraphicalCompositeRenderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface of all <A HREF="../../jcckit/graphic/Renderer.html" title="interface in jcckit.graphic"><CODE>Renderers</CODE></A> who render a <A HREF="../../jcckit/graphic/GraphicalComposite.html" title="class in jcckit.graphic"><CODE>GraphicalComposite</CODE></A>. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphPoint.html#jcckit.renderer"><B>GraphPoint</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a two-dimensional point in the device-independent coordinate system.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Oval.html#jcckit.renderer"><B>Oval</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An oval (i.e.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/OvalRenderer.html#jcckit.renderer"><B>OvalRenderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface of all <A HREF="../../jcckit/graphic/Renderer.html" title="interface in jcckit.graphic"><CODE>Renderers</CODE></A> who render a <A HREF="../../jcckit/graphic/Oval.html" title="class in jcckit.graphic"><CODE>Oval</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Polygon.html#jcckit.renderer"><B>Polygon</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A polygon or polyline.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/PolygonRenderer.html#jcckit.renderer"><B>PolygonRenderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface of all <A HREF="../../jcckit/graphic/Renderer.html" title="interface in jcckit.graphic"><CODE>Renderers</CODE></A> who render an instance of <A HREF="../../jcckit/graphic/Polygon.html" title="class in jcckit.graphic"><CODE>Polygon</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Rectangle.html#jcckit.renderer"><B>Rectangle</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A rectangle.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/RectangleRenderer.html#jcckit.renderer"><B>RectangleRenderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface of all <A HREF="../../jcckit/graphic/Renderer.html" title="interface in jcckit.graphic"><CODE>Renderers</CODE></A> who render a <A HREF="../../jcckit/graphic/Rectangle.html" title="class in jcckit.graphic"><CODE>Rectangle</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Renderer.html#jcckit.renderer"><B>Renderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marker interface. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/Text.html#jcckit.renderer"><B>Text</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A single line of text.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/TextRenderer.html#jcckit.renderer"><B>TextRenderer</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface of all <A HREF="../../jcckit/graphic/Renderer.html" title="interface in jcckit.graphic"><CODE>Renderers</CODE></A> who render an instance of <A HREF="../../jcckit/graphic/Text.html" title="class in jcckit.graphic"><CODE>Text</CODE></A>.</TD> </TR> </TABLE> &nbsp; <P> <A NAME="jcckit.transformation"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> Classes in <A HREF="../../jcckit/graphic/package-summary.html">jcckit.graphic</A> used by <A HREF="../../jcckit/transformation/package-summary.html">jcckit.transformation</A></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><B><A HREF="../../jcckit/graphic/class-use/GraphPoint.html#jcckit.transformation"><B>GraphPoint</B></A></B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Immutable class of a two-dimensional point in the device-independent coordinate system.</TD> </TR> </TABLE> &nbsp; <P> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>
ekoeppen/panstamp-python
lagarto/lagarto-max/www/JCCKit/docs/WebSite/apidoc/jcckit/graphic/package-use.html
HTML
gpl-2.0
22,129
/* vim: set et ts=4 sw=4: */ /* gnss.rs * * Copyright (C) 2017 Pelagicore AB. * Copyright (C) 2017 Zeeshan Ali. * Copyright (C) 2020 Purism SPC. * * GPSShare is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. * * GPSShare is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along * with GPSShare; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Author: Zeeshan Ali <zeeshanak@gnome.org> */ use config::Config; use gps::GPS; use libudev; use std::io::BufRead; use std::io::BufReader; use std::path::Path; use std::rc::Rc; use std::fs::File; use std::fs; use std::io; pub struct GNSS { reader: BufReader<fs::File>, } impl GNSS { pub fn new(config: Rc<Config>) -> io::Result<Self> { match config.dev_path { Some(ref path) => GNSS::new_for_path(path.as_path()), None => GNSS::new_detect(), } } fn new_for_path(path: &Path) -> io::Result<Self> { let port = File::open(path.as_os_str())?; Ok(GNSS { reader: BufReader::new(port), }) } fn new_detect() -> io::Result<Self> { println!("Attempting to autodetect GNSS device..."); let context = libudev::Context::new()?; let mut enumerator = libudev::Enumerator::new(&context)?; enumerator.match_subsystem("gnss")?; let devices = enumerator.scan_devices()?; for d in devices { if let Some(p) = d.devnode().and_then(|devnode| devnode.to_str()) { let path = Path::new(p); match GNSS::new_for_path(&path) { Ok(mut gps) => { if gps.verify() { println!("Detected {} as a GPS device", p); return Ok(gps); } } Err(e) => println!("Error openning {}: {}", p, e), } } } Err(io::Error::new( io::ErrorKind::NotFound, "Failed to autodetect GNSS device", )) } fn verify(&mut self) -> bool { let mut buffer = String::new(); for _ in 1..3 { if let Ok(_) = self.read_line(&mut buffer) { if buffer.len() >= 15 && buffer.chars().nth(0) == Some('$') && buffer.chars().nth(6) == Some(',') { return true; } buffer.clear(); } else { println!("Failed to read from serial port"); } } false } } impl GPS for GNSS { fn read_line(&mut self, buffer: &mut String) -> io::Result<usize> { self.reader.read_line(buffer) } }
zeenix/gps-share
src/gnss.rs
Rust
gpl-2.0
3,228
# ConvexHull
rushabh55/ConvexHull
README.md
Markdown
gpl-2.0
13
<?php /* * Copyright (C) Vulcan Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program.If not, see <http://www.gnu.org/licenses/>. * */ /** * * @author Kai Kuehn * */ class SRFDeleteCategoryOperation extends SRFRefactoringOperation { var $category; var $options; var $totalWork; public function __construct($category, $options) { parent::__construct(); $this->category = Title::newFromText($category, NS_CATEGORY); $this->options = $options; $this->totalWork = -1; } public function getWork() { if ($this->totalWork == -1) { $this->queryAffectedPages(); } return $this->totalWork; } private function collectWorkForCategory($category, & $num, & $previewData) { $affectedPages = $this->getAffectedPagesForCategory($category); if ( $this->isOptionSet('sref_removeInstances', $this->options)) { $num += count($affectedPages['instances']); $previewData['sref_deletedInstances'] += count($affectedPages['instances']); } else { if ( $this->isOptionSet('sref_removeCategoryAnnotations', $this->options)) { $num += count($affectedPages['instances']); $previewData['sref_changedInstances'] += count($affectedPages['instances']); } } if ( $this->isOptionSet('sref_removeQueriesWithCategories', $this->options)) { $num += count($affectedPages['queries']); $previewData['sref_changedQueries'] += count($affectedPages['queries']); } if ( $this->isOptionSet('sref_removePropertyWithDomain', $this->options)) { $num += count($affectedPages['propertiesWithDomain']); $previewData['sref_deletedPropertyWithDomain'] += count($affectedPages['propertiesWithDomain']); } else if ( $this->isOptionSet('sref_removeFromDomain', $this->options)) { $num += count($affectedPages['propertiesWithDomain']); $previewData['sref_changedPropertyWithDomain'] += count($affectedPages['propertiesWithDomain']); } } public function queryAffectedPages() { if (!is_null($this->affectedPages)) return $this->affectedPages; $this->affectedPages = $this->getAffectedPagesForCategory($this->category); $this->previewData['sref_changedQueries'] = 0; $this->previewData['sref_changedInstances'] = 0; $this->previewData['sref_deletedInstances'] = 0; $this->previewData['sref_deletedPropertyWithDomain'] = 0; $this->previewData['sref_changedPropertyWithDomain'] = 0; $this->totalWork = 0; $this->collectWorkForCategory($this->category, $this->totalWork, $this->previewData); if ($this->isOptionSet('sref_includeSubcategories', $this->options)) { $subcategories = $store->getSubCategories($this->category); foreach($subcategories as $s) { $this->collectWorkForCategory($s, $this->totalWork, $this->previewData); } } return $this->affectedPages; } private function getAffectedPagesForCategory($category) { // calculate only once $store = smwfGetSemanticStore(); $instances = $store->getDirectInstances($category); $directSubcategories = $store->getDirectSubCategories($category); // get all queries $this->category is used in $queries=array(); $queryMetadataPattern = new SMWQMQueryMetadata(true); $queryMetadataPattern->instanceOccurences = array($category->getPrefixedText() => true); $queryMetadataPattern->categoryConditions = array($category->getText() => true); $qmr = SMWQMQueryManagementHandler::getInstance()->searchQueries($queryMetadataPattern); foreach($qmr as $s) { $queries[] = Title::newFromText($s->usedInArticle); } // get properties with domain and/or ranges $propertiesWithDomain = $store->getPropertiesWithDomain($category); $affectedPages = array(); $affectedPages['instances'] = $instances; $affectedPages['queries'] = $queries; $affectedPages['propertiesWithDomain'] = $propertiesWithDomain; $affectedPages['directSubcategories'] = $directSubcategories; return $affectedPages; } public function refactor($save = true, & $logMessages) { $this->queryAffectedPages(); if (array_key_exists('sref_deleteCategory', $this->options) && $this->options['sref_deleteCategory'] == "true") { $a = new Article($this->category); $deleted = true; if ($save) { $deleted = SRFTools::deleteArticle($a); } if ($deleted) { $logMessages[$this->category->getPrefixedText()][] = new SRFLog('Article deleted',$this->category); } else { $logMessages[$this->category->getPrefixedText()][] = new SRFLog('Deletion failed',$this->category); } if (!is_null($this->mBot)) $this->mBot->worked(1); } // if instances are completely removed, there is no need to remove annotations before if (array_key_exists('sref_removeInstances', $this->options) && $this->options['sref_removeInstances'] == "true") { foreach($this->affectedPages['instances'] as $i) { $a = new Article($i); $deleted = true; if ($save) { $deleted = SRFTools::deleteArticle($a); } if ($deleted) { $logMessages[$i->getPrefixedText()][] = new SRFLog('Article deleted',$i); } else { $logMessages[$i->getPrefixedText()][] = new SRFLog('Deletion failed',$i); } if (!is_null($this->mBot)) $this->mBot->worked(1); } } if (array_key_exists('sref_removeFromDomain', $this->options) && $this->options['sref_removeFromDomain'] == "true") { foreach($this->affectedPages['propertiesWithDomain'] as $i) { // if the property should be completly removed if (array_key_exists('sref_removePropertyWithDomain', $this->options) && $this->options['sref_removePropertyWithDomain'] == "true") { $deleted = true; if ($save) { $deleted = SRFTools::deleteArticle($i); } if ($deleted) { $logMessages[][] = new SRFLog('Article deleted',$i); } else { $logMessages[][] = new SRFLog('Deletion failed',$i); } continue; // continue if completely removed. } $rev = Revision::newFromTitle($i); if (is_null($rev)) continue; $wikitext = $rev->getRawText(); $wikitext = $this->removePropertyAnnotation(SMWHaloPredefinedPages::$HAS_DOMAIN_AND_RANGE->getText(), $wikitext); $logMessages[$i->getPrefixedText()][] = new SRFLog('Removed from domain and/or range',$i); if (!is_null($this->mBot)) $this->mBot->worked(1); } } $set = array_merge($this->affectedPages['queries'],$this->affectedPages['instances']); $set = SRFTools::makeTitleListUnique($set); foreach($set as $i) { $rev = Revision::newFromTitle($i); if (is_null($rev)) continue; $wikitext = $rev->getRawText(); if (array_key_exists('sref_removeCategoryAnnotations', $this->options) && $this->options['sref_removeCategoryAnnotations'] == "true" && SRFTools::containsTitle($i, $this->affectedPages['instances'])) { $wikitext = $this->removeCategoryAnnotation($wikitext); $logMessages[$i->getPrefixedText()][] = new SRFLog('Removed category annotation',$i); if (!is_null($this->mBot)) $this->mBot->worked(1); } if (array_key_exists('sref_removeQueriesWithCategories', $this->options) && $this->options['sref_removeQueriesWithCategories'] == "true" && SRFTools::containsTitle($i, $this->affectedPages['queries'])) { $wikitext = $this->removeQuery($wikitext); $logMessages[$i->getPrefixedText()][] = new SRFLog('Removed query',$i); if (!is_null($this->mBot)) $this->mBot->worked(1); } if ($save) { $status = $this->storeArticle($i, $wikitext, $rev->getRawText(), $rev->getRawComment(), $logMessages); } } if (array_key_exists('sref_includeSubcategories', $this->options) && $this->options['sref_includeSubcategories'] == "true") { foreach($this->affectedPages['directSubcategories'] as $c) { $op = new SRFDeleteCategoryOperation($c, $this->options); $op->setBot($mBot); $op->refactor($save, $logMessages); } } } private function removeQuery($wikitext) { $wom = WOMProcessor::parseToWOM($wikitext); $toDelete = array(); # iterate trough the annotations $objects = $wom->getObjectsByTypeID(WOM_TYPE_PARSERFUNCTION); foreach($objects as $o){ $results = array(); SRFTools::findObjectByID($o, WOM_TYPE_CATEGORY, $results); foreach($results as $c){ $name = $c->getName(); if ($name == $this->category->getText()) { $toDelete[] = $o->getObjectID(); } } } $toDelete = array_unique($toDelete); foreach($toDelete as $id) { $wom->removePageObject($id); } $wikitext = $wom->getWikiText(); return $wikitext; } private function removePropertyAnnotation($property, $wikitext) { $wom = WOMProcessor::parseToWOM($wikitext); $toDelete = array(); # iterate trough the annotations $objects = $wom->getObjectsByTypeID(WOM_TYPE_PROPERTY); foreach($objects as $o){ $name = $o->getPropertyName(); if ($name == $property) { $toDelete[] = $o->getObjectID(); } } $toDelete = array_unique($toDelete); foreach($toDelete as $d) { $wom->removePageObject($d); } $wikitext = $wom->getWikiText(); return $wikitext; } private function removeCategoryAnnotation($wikitext) { $wom = WOMProcessor::parseToWOM($wikitext); $toDelete = array(); # iterate trough the annotations $objects = $wom->getObjectsByTypeID(WOM_TYPE_CATEGORY); foreach($objects as $o){ $name = $o->getName(); if ($name == $this->category->getText()) { $toDelete[] = $o; } } foreach($toDelete as $d) { $wom->removePageObject($d->getObjectID()); } $wikitext = $wom->getWikiText(); return $wikitext; } }
ontoprise/HaloSMWExtension
extensions/SemanticRefactoring/includes/operations/SRF_DeleteCategory.php
PHP
gpl-2.0
10,317
namespace Caitlyn.Tools { using Common; using LeagueSharp.Common; public static class Tools { public static Menu Menu; public static void Inject() { Menu = Program.Menu.AddSubMenu(new Menu("通用", "Tools")); Manager.WriteConsole("Tools Inject!"); Potions.Inject(); Offensive.Inject(); var autoLevelMenu = Menu.AddSubMenu(new Menu("自動升級", "Auto Level")); { AutoLevel.AddToMenu(autoLevelMenu); } } } }
CjShu/Eaddon
Caitlyn/Tools/Tools.cs
C#
gpl-2.0
568
<?php /** * @file * Definition of Drupal\Core\Database\Query\Select */ namespace Drupal\Core\Database\Query; use Drupal\Core\Database\Database; use Drupal\Core\Database\Connection; /** * Query builder for SELECT statements. */ class Select extends Query implements SelectInterface { /** * The fields to SELECT. * * @var array */ protected $fields = array(); /** * The expressions to SELECT as virtual fields. * * @var array */ protected $expressions = array(); /** * The tables against which to JOIN. * * This property is a nested array. Each entry is an array representing * a single table against which to join. The structure of each entry is: * * array( * 'type' => $join_type (one of INNER, LEFT OUTER, RIGHT OUTER), * 'table' => $table, * 'alias' => $alias_of_the_table, * 'condition' => $condition_clause_on_which_to_join, * 'arguments' => $array_of_arguments_for_placeholders_in_the condition. * 'all_fields' => TRUE to SELECT $alias.*, FALSE or NULL otherwise. * ) * * If $table is a string, it is taken as the name of a table. If it is * a Select query object, it is taken as a subquery. * * @var array */ protected $tables = array(); /** * The fields by which to order this query. * * This is an associative array. The keys are the fields to order, and the value * is the direction to order, either ASC or DESC. * * @var array */ protected $order = array(); /** * The fields by which to group. * * @var array */ protected $group = array(); /** * The conditional object for the WHERE clause. * * @var Drupal\Core\Database\Query\Condition */ protected $where; /** * The conditional object for the HAVING clause. * * @var Drupal\Core\Database\Query\Condition */ protected $having; /** * Whether or not this query should be DISTINCT * * @var boolean */ protected $distinct = FALSE; /** * The range limiters for this query. * * @var array */ protected $range; /** * An array whose elements specify a query to UNION, and the UNION type. The * 'type' key may be '', 'ALL', or 'DISTINCT' to represent a 'UNION', * 'UNION ALL', or 'UNION DISTINCT' statement, respectively. * * All entries in this array will be applied from front to back, with the * first query to union on the right of the original query, the second union * to the right of the first, etc. * * @var array */ protected $union = array(); /** * Indicates if preExecute() has already been called. * @var boolean */ protected $prepared = FALSE; /** * The FOR UPDATE status */ protected $forUpdate = FALSE; public function __construct($table, $alias = NULL, Connection $connection, $options = array()) { $options['return'] = Database::RETURN_STATEMENT; parent::__construct($connection, $options); $this->where = new Condition('AND'); $this->having = new Condition('AND'); $this->addJoin(NULL, $table, $alias); } /* Implementations of Drupal\Core\Database\Query\AlterableInterface. */ public function addTag($tag) { $this->alterTags[$tag] = 1; return $this; } public function hasTag($tag) { return isset($this->alterTags[$tag]); } public function hasAllTags() { return !(boolean)array_diff(func_get_args(), array_keys($this->alterTags)); } public function hasAnyTag() { return (boolean)array_intersect(func_get_args(), array_keys($this->alterTags)); } public function addMetaData($key, $object) { $this->alterMetaData[$key] = $object; return $this; } public function getMetaData($key) { return isset($this->alterMetaData[$key]) ? $this->alterMetaData[$key] : NULL; } /* Implementations of Drupal\Core\Database\Query\ConditionInterface for the WHERE clause. */ public function condition($field, $value = NULL, $operator = NULL) { $this->where->condition($field, $value, $operator); return $this; } public function &conditions() { return $this->where->conditions(); } public function arguments() { if (!$this->compiled()) { return NULL; } $args = $this->where->arguments() + $this->having->arguments(); foreach ($this->tables as $table) { if ($table['arguments']) { $args += $table['arguments']; } // If this table is a subquery, grab its arguments recursively. if ($table['table'] instanceof SelectInterface) { $args += $table['table']->arguments(); } } foreach ($this->expressions as $expression) { if ($expression['arguments']) { $args += $expression['arguments']; } } // If there are any dependent queries to UNION, // incorporate their arguments recursively. foreach ($this->union as $union) { $args += $union['query']->arguments(); } return $args; } public function where($snippet, $args = array()) { $this->where->where($snippet, $args); return $this; } public function isNull($field) { $this->where->isNull($field); return $this; } public function isNotNull($field) { $this->where->isNotNull($field); return $this; } public function exists(SelectInterface $select) { $this->where->exists($select); return $this; } public function notExists(SelectInterface $select) { $this->where->notExists($select); return $this; } public function compile(Connection $connection, PlaceholderInterface $queryPlaceholder) { $this->where->compile($connection, $queryPlaceholder); $this->having->compile($connection, $queryPlaceholder); foreach ($this->tables as $table) { // If this table is a subquery, compile it recursively. if ($table['table'] instanceof SelectInterface) { $table['table']->compile($connection, $queryPlaceholder); } } // If there are any dependent queries to UNION, compile it recursively. foreach ($this->union as $union) { $union['query']->compile($connection, $queryPlaceholder); } } public function compiled() { if (!$this->where->compiled() || !$this->having->compiled()) { return FALSE; } foreach ($this->tables as $table) { // If this table is a subquery, check its status recursively. if ($table['table'] instanceof SelectInterface) { if (!$table['table']->compiled()) { return FALSE; } } } foreach ($this->union as $union) { if (!$union['query']->compiled()) { return FALSE; } } return TRUE; } /* Implementations of Drupal\Core\Database\Query\ConditionInterface for the HAVING clause. */ public function havingCondition($field, $value = NULL, $operator = NULL) { $this->having->condition($field, $value, $operator); return $this; } public function &havingConditions() { return $this->having->conditions(); } public function havingArguments() { return $this->having->arguments(); } public function having($snippet, $args = array()) { $this->having->where($snippet, $args); return $this; } public function havingCompile(Connection $connection) { return $this->having->compile($connection, $this); } /* Implementations of Drupal\Core\Database\Query\ExtendableInterface. */ public function extend($extender_name) { $override_class = $extender_name . '_' . $this->connection->driver(); if (class_exists($override_class)) { $extender_name = $override_class; } return new $extender_name($this, $this->connection); } public function havingIsNull($field) { $this->having->isNull($field); return $this; } public function havingIsNotNull($field) { $this->having->isNotNull($field); return $this; } public function havingExists(SelectInterface $select) { $this->having->exists($select); return $this; } public function havingNotExists(SelectInterface $select) { $this->having->notExists($select); return $this; } public function forUpdate($set = TRUE) { if (isset($set)) { $this->forUpdate = $set; } return $this; } /* Alter accessors to expose the query data to alter hooks. */ public function &getFields() { return $this->fields; } public function &getExpressions() { return $this->expressions; } public function &getOrderBy() { return $this->order; } public function &getGroupBy() { return $this->group; } public function &getTables() { return $this->tables; } public function &getUnion() { return $this->union; } public function getArguments(PlaceholderInterface $queryPlaceholder = NULL) { if (!isset($queryPlaceholder)) { $queryPlaceholder = $this; } $this->compile($this->connection, $queryPlaceholder); return $this->arguments(); } /** * Indicates if preExecute() has already been called on that object. */ public function isPrepared() { return $this->prepared; } /** * Generic preparation and validation for a SELECT query. * * @return * TRUE if the validation was successful, FALSE if not. */ public function preExecute(SelectInterface $query = NULL) { // If no query object is passed in, use $this. if (!isset($query)) { $query = $this; } // Only execute this once. if ($query->isPrepared()) { return TRUE; } // Modules may alter all queries or only those having a particular tag. if (isset($this->alterTags)) { $hooks = array('query'); foreach ($this->alterTags as $tag => $value) { $hooks[] = 'query_' . $tag; } drupal_alter($hooks, $query); } $this->prepared = TRUE; // Now also prepare any sub-queries. foreach ($this->tables as $table) { if ($table['table'] instanceof SelectInterface) { $table['table']->preExecute(); } } foreach ($this->union as $union) { $union['query']->preExecute(); } return $this->prepared; } public function execute() { // If validation fails, simply return NULL. // Note that validation routines in preExecute() may throw exceptions instead. if (!$this->preExecute()) { return NULL; } $args = $this->getArguments(); return $this->connection->query((string) $this, $args, $this->queryOptions); } public function distinct($distinct = TRUE) { $this->distinct = $distinct; return $this; } public function addField($table_alias, $field, $alias = NULL) { // If no alias is specified, first try the field name itself. if (empty($alias)) { $alias = $field; } // If that's already in use, try the table name and field name. if (!empty($this->fields[$alias])) { $alias = $table_alias . '_' . $field; } // If that is already used, just add a counter until we find an unused alias. $alias_candidate = $alias; $count = 2; while (!empty($this->fields[$alias_candidate])) { $alias_candidate = $alias . '_' . $count++; } $alias = $alias_candidate; $this->fields[$alias] = array( 'field' => $field, 'table' => $table_alias, 'alias' => $alias, ); return $alias; } public function fields($table_alias, array $fields = array()) { if ($fields) { foreach ($fields as $field) { // We don't care what alias was assigned. $this->addField($table_alias, $field); } } else { // We want all fields from this table. $this->tables[$table_alias]['all_fields'] = TRUE; } return $this; } public function addExpression($expression, $alias = NULL, $arguments = array()) { if (empty($alias)) { $alias = 'expression'; } $alias_candidate = $alias; $count = 2; while (!empty($this->expressions[$alias_candidate])) { $alias_candidate = $alias . '_' . $count++; } $alias = $alias_candidate; $this->expressions[$alias] = array( 'expression' => $expression, 'alias' => $alias, 'arguments' => $arguments, ); return $alias; } public function join($table, $alias = NULL, $condition = NULL, $arguments = array()) { return $this->addJoin('INNER', $table, $alias, $condition, $arguments); } public function innerJoin($table, $alias = NULL, $condition = NULL, $arguments = array()) { return $this->addJoin('INNER', $table, $alias, $condition, $arguments); } public function leftJoin($table, $alias = NULL, $condition = NULL, $arguments = array()) { return $this->addJoin('LEFT OUTER', $table, $alias, $condition, $arguments); } public function rightJoin($table, $alias = NULL, $condition = NULL, $arguments = array()) { return $this->addJoin('RIGHT OUTER', $table, $alias, $condition, $arguments); } public function addJoin($type, $table, $alias = NULL, $condition = NULL, $arguments = array()) { if (empty($alias)) { if ($table instanceof SelectInterface) { $alias = 'subquery'; } else { $alias = $table; } } $alias_candidate = $alias; $count = 2; while (!empty($this->tables[$alias_candidate])) { $alias_candidate = $alias . '_' . $count++; } $alias = $alias_candidate; if (is_string($condition)) { $condition = str_replace('%alias', $alias, $condition); } $this->tables[$alias] = array( 'join type' => $type, 'table' => $table, 'alias' => $alias, 'condition' => $condition, 'arguments' => $arguments, ); return $alias; } public function orderBy($field, $direction = 'ASC') { $this->order[$field] = $direction; return $this; } public function orderRandom() { $alias = $this->addExpression('RAND()', 'random_field'); $this->orderBy($alias); return $this; } public function range($start = NULL, $length = NULL) { $this->range = func_num_args() ? array('start' => $start, 'length' => $length) : array(); return $this; } public function union(SelectInterface $query, $type = '') { // Handle UNION aliasing. switch ($type) { // Fold UNION DISTINCT to UNION for better cross database support. case 'DISTINCT': case '': $type = 'UNION'; break; case 'ALL': $type = 'UNION ALL'; default: } $this->union[] = array( 'type' => $type, 'query' => $query, ); return $this; } public function groupBy($field) { $this->group[$field] = $field; return $this; } /** * Implements SelectInterface::countQuery(). */ public function countQuery() { $count = $this->prepareCountQuery(); $query = $this->connection->select($count); $query->addExpression('COUNT(*)'); return $query; } /** * Prepares a count query from the current query object. * * @return Drupal\Core\Database\Query\Select * A new query object ready to have COUNT(*) performed on it. */ protected function prepareCountQuery() { // Create our new query object that we will mutate into a count query. $count = clone($this); $group_by = $count->getGroupBy(); $having = $count->havingConditions(); if (!$count->distinct && !isset($having[0])) { // When not executing a distinct query, we can zero-out existing fields // and expressions that are not used by a GROUP BY or HAVING. Fields // listed in a GROUP BY or HAVING clause need to be present in the // query. $fields =& $count->getFields(); foreach (array_keys($fields) as $field) { if (empty($group_by[$field])) { unset($fields[$field]); } } $expressions =& $count->getExpressions(); foreach (array_keys($expressions) as $field) { if (empty($group_by[$field])) { unset($expressions[$field]); } } // Also remove 'all_fields' statements, which are expanded into tablename.* // when the query is executed. foreach ($count->tables as $alias => &$table) { unset($table['all_fields']); } } // If we've just removed all fields from the query, make sure there is at // least one so that the query still runs. $count->addExpression('1'); // Ordering a count query is a waste of cycles, and breaks on some // databases anyway. $orders = &$count->getOrderBy(); $orders = array(); if ($count->distinct && !empty($group_by)) { // If the query is distinct and contains a GROUP BY, we need to remove the // distinct because SQL99 does not support counting on distinct multiple fields. $count->distinct = FALSE; } // If there are any dependent queries to UNION, prepare each of those for // the count query also. foreach ($count->union as &$union) { $union['query'] = $union['query']->prepareCountQuery(); } return $count; } public function __toString() { // For convenience, we compile the query ourselves if the caller forgot // to do it. This allows constructs like "(string) $query" to work. When // the query will be executed, it will be recompiled using the proper // placeholder generator anyway. if (!$this->compiled()) { $this->compile($this->connection, $this); } // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComment($this->comments); // SELECT $query = $comments . 'SELECT '; if ($this->distinct) { $query .= 'DISTINCT '; } // FIELDS and EXPRESSIONS $fields = array(); foreach ($this->tables as $alias => $table) { if (!empty($table['all_fields'])) { $fields[] = $this->connection->escapeTable($alias) . '.*'; } } foreach ($this->fields as $alias => $field) { // Always use the AS keyword for field aliases, as some // databases require it (e.g., PostgreSQL). $fields[] = (isset($field['table']) ? $this->connection->escapeTable($field['table']) . '.' : '') . $this->connection->escapeField($field['field']) . ' AS ' . $this->connection->escapeAlias($field['alias']); } foreach ($this->expressions as $alias => $expression) { $fields[] = $expression['expression'] . ' AS ' . $this->connection->escapeAlias($expression['alias']); } $query .= implode(', ', $fields); // FROM - We presume all queries have a FROM, as any query that doesn't won't need the query builder anyway. $query .= "\nFROM "; foreach ($this->tables as $alias => $table) { $query .= "\n"; if (isset($table['join type'])) { $query .= $table['join type'] . ' JOIN '; } // If the table is a subquery, compile it and integrate it into this query. if ($table['table'] instanceof SelectInterface) { // Run preparation steps on this sub-query before converting to string. $subquery = $table['table']; $subquery->preExecute(); $table_string = '(' . (string) $subquery . ')'; } else { $table_string = '{' . $this->connection->escapeTable($table['table']) . '}'; } // Don't use the AS keyword for table aliases, as some // databases don't support it (e.g., Oracle). $query .= $table_string . ' ' . $this->connection->escapeTable($table['alias']); if (!empty($table['condition'])) { $query .= ' ON ' . $table['condition']; } } // WHERE if (count($this->where)) { // There is an implicit string cast on $this->condition. $query .= "\nWHERE " . $this->where; } // GROUP BY if ($this->group) { $query .= "\nGROUP BY " . implode(', ', $this->group); } // HAVING if (count($this->having)) { // There is an implicit string cast on $this->having. $query .= "\nHAVING " . $this->having; } // ORDER BY if ($this->order) { $query .= "\nORDER BY "; $fields = array(); foreach ($this->order as $field => $direction) { $fields[] = $field . ' ' . $direction; } $query .= implode(', ', $fields); } // RANGE // There is no universal SQL standard for handling range or limit clauses. // Fortunately, all core-supported databases use the same range syntax. // Databases that need a different syntax can override this method and // do whatever alternate logic they need to. if (!empty($this->range)) { $query .= "\nLIMIT " . (int) $this->range['length'] . " OFFSET " . (int) $this->range['start']; } // UNION is a little odd, as the select queries to combine are passed into // this query, but syntactically they all end up on the same level. if ($this->union) { foreach ($this->union as $union) { $query .= ' ' . $union['type'] . ' ' . (string) $union['query']; } } if ($this->forUpdate) { $query .= ' FOR UPDATE'; } return $query; } public function __clone() { // On cloning, also clone the dependent objects. However, we do not // want to clone the database connection object as that would duplicate the // connection itself. $this->where = clone($this->where); $this->having = clone($this->having); foreach ($this->union as $key => $aggregate) { $this->union[$key]['query'] = clone($aggregate['query']); } } }
dusik/realejuventudfan
core/lib/Drupal/Core/Database/Query/Select.php
PHP
gpl-2.0
21,452
# # # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. """OpCodes module This module implements the data structures which define the cluster operations - the so-called opcodes. Every operation which modifies the cluster state is expressed via opcodes. """ # this are practically structures, so disable the message about too # few public methods: # pylint: disable-msg=R0903 import logging import re import operator from ganeti import constants from ganeti import errors from ganeti import ht # Common opcode attributes #: output fields for a query operation _POutputFields = ("output_fields", ht.NoDefault, ht.TListOf(ht.TNonEmptyString), "Selected output fields") #: the shutdown timeout _PShutdownTimeout = \ ("shutdown_timeout", constants.DEFAULT_SHUTDOWN_TIMEOUT, ht.TPositiveInt, "How long to wait for instance to shut down") #: the force parameter _PForce = ("force", False, ht.TBool, "Whether to force the operation") #: a required instance name (for single-instance LUs) _PInstanceName = ("instance_name", ht.NoDefault, ht.TNonEmptyString, "Instance name") #: Whether to ignore offline nodes _PIgnoreOfflineNodes = ("ignore_offline_nodes", False, ht.TBool, "Whether to ignore offline nodes") #: a required node name (for single-node LUs) _PNodeName = ("node_name", ht.NoDefault, ht.TNonEmptyString, "Node name") #: a required node group name (for single-group LUs) _PGroupName = ("group_name", ht.NoDefault, ht.TNonEmptyString, "Group name") #: Migration type (live/non-live) _PMigrationMode = ("mode", None, ht.TOr(ht.TNone, ht.TElemOf(constants.HT_MIGRATION_MODES)), "Migration mode") #: Obsolete 'live' migration mode (boolean) _PMigrationLive = ("live", None, ht.TMaybeBool, "Legacy setting for live migration, do not use") #: Tag type _PTagKind = ("kind", ht.NoDefault, ht.TElemOf(constants.VALID_TAG_TYPES), None) #: List of tag strings _PTags = ("tags", ht.NoDefault, ht.TListOf(ht.TNonEmptyString), None) _PForceVariant = ("force_variant", False, ht.TBool, "Whether to force an unknown OS variant") _PWaitForSync = ("wait_for_sync", True, ht.TBool, "Whether to wait for the disk to synchronize") _PIgnoreConsistency = ("ignore_consistency", False, ht.TBool, "Whether to ignore disk consistency") _PStorageName = ("name", ht.NoDefault, ht.TMaybeString, "Storage name") _PUseLocking = ("use_locking", False, ht.TBool, "Whether to use synchronization") _PNameCheck = ("name_check", True, ht.TBool, "Whether to check name") _PNodeGroupAllocPolicy = \ ("alloc_policy", None, ht.TOr(ht.TNone, ht.TElemOf(constants.VALID_ALLOC_POLICIES)), "Instance allocation policy") _PGroupNodeParams = ("ndparams", None, ht.TMaybeDict, "Default node parameters for group") _PQueryWhat = ("what", ht.NoDefault, ht.TElemOf(constants.QR_VIA_OP), "Resource(s) to query for") _PIpCheckDoc = "Whether to ensure instance's IP address is inactive" #: Do not remember instance state changes _PNoRemember = ("no_remember", False, ht.TBool, "Do not remember the state change") #: Target node for instance migration/failover _PMigrationTargetNode = ("target_node", None, ht.TMaybeString, "Target node for shared-storage instances") #: OP_ID conversion regular expression _OPID_RE = re.compile("([a-z])([A-Z])") #: Utility function for L{OpClusterSetParams} _TestClusterOsList = ht.TOr(ht.TNone, ht.TListOf(ht.TAnd(ht.TList, ht.TIsLength(2), ht.TMap(ht.WithDesc("GetFirstItem")(operator.itemgetter(0)), ht.TElemOf(constants.DDMS_VALUES))))) # TODO: Generate check from constants.INIC_PARAMS_TYPES #: Utility function for testing NIC definitions _TestNicDef = ht.TDictOf(ht.TElemOf(constants.INIC_PARAMS), ht.TOr(ht.TNone, ht.TNonEmptyString)) _SUMMARY_PREFIX = { "CLUSTER_": "C_", "GROUP_": "G_", "NODE_": "N_", "INSTANCE_": "I_", } def _NameToId(name): """Convert an opcode class name to an OP_ID. @type name: string @param name: the class name, as OpXxxYyy @rtype: string @return: the name in the OP_XXXX_YYYY format """ if not name.startswith("Op"): return None # Note: (?<=[a-z])(?=[A-Z]) would be ideal, since it wouldn't # consume any input, and hence we would just have all the elements # in the list, one by one; but it seems that split doesn't work on # non-consuming input, hence we have to process the input string a # bit name = _OPID_RE.sub(r"\1,\2", name) elems = name.split(",") return "_".join(n.upper() for n in elems) def RequireFileStorage(): """Checks that file storage is enabled. While it doesn't really fit into this module, L{utils} was deemed too large of a dependency to be imported for just one or two functions. @raise errors.OpPrereqError: when file storage is disabled """ if not constants.ENABLE_FILE_STORAGE: raise errors.OpPrereqError("File storage disabled at configure time", errors.ECODE_INVAL) def RequireSharedFileStorage(): """Checks that shared file storage is enabled. While it doesn't really fit into this module, L{utils} was deemed too large of a dependency to be imported for just one or two functions. @raise errors.OpPrereqError: when shared file storage is disabled """ if not constants.ENABLE_SHARED_FILE_STORAGE: raise errors.OpPrereqError("Shared file storage disabled at" " configure time", errors.ECODE_INVAL) @ht.WithDesc("CheckFileStorage") def _CheckFileStorage(value): """Ensures file storage is enabled if used. """ if value == constants.DT_FILE: RequireFileStorage() elif value == constants.DT_SHARED_FILE: RequireSharedFileStorage() return True _CheckDiskTemplate = ht.TAnd(ht.TElemOf(constants.DISK_TEMPLATES), _CheckFileStorage) def _CheckStorageType(storage_type): """Ensure a given storage type is valid. """ if storage_type not in constants.VALID_STORAGE_TYPES: raise errors.OpPrereqError("Unknown storage type: %s" % storage_type, errors.ECODE_INVAL) if storage_type == constants.ST_FILE: RequireFileStorage() return True #: Storage type parameter _PStorageType = ("storage_type", ht.NoDefault, _CheckStorageType, "Storage type") class _AutoOpParamSlots(type): """Meta class for opcode definitions. """ def __new__(mcs, name, bases, attrs): """Called when a class should be created. @param mcs: The meta class @param name: Name of created class @param bases: Base classes @type attrs: dict @param attrs: Class attributes """ assert "__slots__" not in attrs, \ "Class '%s' defines __slots__ when it should use OP_PARAMS" % name assert "OP_ID" not in attrs, "Class '%s' defining OP_ID" % name attrs["OP_ID"] = _NameToId(name) # Always set OP_PARAMS to avoid duplicates in BaseOpCode.GetAllParams params = attrs.setdefault("OP_PARAMS", []) # Use parameter names as slots slots = [pname for (pname, _, _, _) in params] assert "OP_DSC_FIELD" not in attrs or attrs["OP_DSC_FIELD"] in slots, \ "Class '%s' uses unknown field in OP_DSC_FIELD" % name attrs["__slots__"] = slots return type.__new__(mcs, name, bases, attrs) class BaseOpCode(object): """A simple serializable object. This object serves as a parent class for OpCode without any custom field handling. """ # pylint: disable-msg=E1101 # as OP_ID is dynamically defined __metaclass__ = _AutoOpParamSlots def __init__(self, **kwargs): """Constructor for BaseOpCode. The constructor takes only keyword arguments and will set attributes on this object based on the passed arguments. As such, it means that you should not pass arguments which are not in the __slots__ attribute for this class. """ slots = self._all_slots() for key in kwargs: if key not in slots: raise TypeError("Object %s doesn't support the parameter '%s'" % (self.__class__.__name__, key)) setattr(self, key, kwargs[key]) def __getstate__(self): """Generic serializer. This method just returns the contents of the instance as a dictionary. @rtype: C{dict} @return: the instance attributes and their values """ state = {} for name in self._all_slots(): if hasattr(self, name): state[name] = getattr(self, name) return state def __setstate__(self, state): """Generic unserializer. This method just restores from the serialized state the attributes of the current instance. @param state: the serialized opcode data @type state: C{dict} """ if not isinstance(state, dict): raise ValueError("Invalid data to __setstate__: expected dict, got %s" % type(state)) for name in self._all_slots(): if name not in state and hasattr(self, name): delattr(self, name) for name in state: setattr(self, name, state[name]) @classmethod def _all_slots(cls): """Compute the list of all declared slots for a class. """ slots = [] for parent in cls.__mro__: slots.extend(getattr(parent, "__slots__", [])) return slots @classmethod def GetAllParams(cls): """Compute list of all parameters for an opcode. """ slots = [] for parent in cls.__mro__: slots.extend(getattr(parent, "OP_PARAMS", [])) return slots def Validate(self, set_defaults): """Validate opcode parameters, optionally setting default values. @type set_defaults: bool @param set_defaults: Whether to set default values @raise errors.OpPrereqError: When a parameter value doesn't match requirements """ for (attr_name, default, test, _) in self.GetAllParams(): assert test == ht.NoType or callable(test) if not hasattr(self, attr_name): if default == ht.NoDefault: raise errors.OpPrereqError("Required parameter '%s.%s' missing" % (self.OP_ID, attr_name), errors.ECODE_INVAL) elif set_defaults: if callable(default): dval = default() else: dval = default setattr(self, attr_name, dval) if test == ht.NoType: # no tests here continue if set_defaults or hasattr(self, attr_name): attr_val = getattr(self, attr_name) if not test(attr_val): logging.error("OpCode %s, parameter %s, has invalid type %s/value %s", self.OP_ID, attr_name, type(attr_val), attr_val) raise errors.OpPrereqError("Parameter '%s.%s' fails validation" % (self.OP_ID, attr_name), errors.ECODE_INVAL) class OpCode(BaseOpCode): """Abstract OpCode. This is the root of the actual OpCode hierarchy. All clases derived from this class should override OP_ID. @cvar OP_ID: The ID of this opcode. This should be unique amongst all children of this class. @cvar OP_DSC_FIELD: The name of a field whose value will be included in the string returned by Summary(); see the docstring of that method for details). @cvar OP_PARAMS: List of opcode attributes, the default values they should get if not already defined, and types they must match. @cvar WITH_LU: Boolean that specifies whether this should be included in mcpu's dispatch table @ivar dry_run: Whether the LU should be run in dry-run mode, i.e. just the check steps @ivar priority: Opcode priority for queue """ # pylint: disable-msg=E1101 # as OP_ID is dynamically defined WITH_LU = True OP_PARAMS = [ ("dry_run", None, ht.TMaybeBool, "Run checks only, don't execute"), ("debug_level", None, ht.TOr(ht.TNone, ht.TPositiveInt), "Debug level"), ("priority", constants.OP_PRIO_DEFAULT, ht.TElemOf(constants.OP_PRIO_SUBMIT_VALID), "Opcode priority"), ] def __getstate__(self): """Specialized getstate for opcodes. This method adds to the state dictionary the OP_ID of the class, so that on unload we can identify the correct class for instantiating the opcode. @rtype: C{dict} @return: the state as a dictionary """ data = BaseOpCode.__getstate__(self) data["OP_ID"] = self.OP_ID return data @classmethod def LoadOpCode(cls, data): """Generic load opcode method. The method identifies the correct opcode class from the dict-form by looking for a OP_ID key, if this is not found, or its value is not available in this module as a child of this class, we fail. @type data: C{dict} @param data: the serialized opcode """ if not isinstance(data, dict): raise ValueError("Invalid data to LoadOpCode (%s)" % type(data)) if "OP_ID" not in data: raise ValueError("Invalid data to LoadOpcode, missing OP_ID") op_id = data["OP_ID"] op_class = None if op_id in OP_MAPPING: op_class = OP_MAPPING[op_id] else: raise ValueError("Invalid data to LoadOpCode: OP_ID %s unsupported" % op_id) op = op_class() new_data = data.copy() del new_data["OP_ID"] op.__setstate__(new_data) return op def Summary(self): """Generates a summary description of this opcode. The summary is the value of the OP_ID attribute (without the "OP_" prefix), plus the value of the OP_DSC_FIELD attribute, if one was defined; this field should allow to easily identify the operation (for an instance creation job, e.g., it would be the instance name). """ assert self.OP_ID is not None and len(self.OP_ID) > 3 # all OP_ID start with OP_, we remove that txt = self.OP_ID[3:] field_name = getattr(self, "OP_DSC_FIELD", None) if field_name: field_value = getattr(self, field_name, None) if isinstance(field_value, (list, tuple)): field_value = ",".join(str(i) for i in field_value) txt = "%s(%s)" % (txt, field_value) return txt def TinySummary(self): """Generates a compact summary description of the opcode. """ assert self.OP_ID.startswith("OP_") text = self.OP_ID[3:] for (prefix, supplement) in _SUMMARY_PREFIX.items(): if text.startswith(prefix): return supplement + text[len(prefix):] return text # cluster opcodes class OpClusterPostInit(OpCode): """Post cluster initialization. This opcode does not touch the cluster at all. Its purpose is to run hooks after the cluster has been initialized. """ class OpClusterDestroy(OpCode): """Destroy the cluster. This opcode has no other parameters. All the state is irreversibly lost after the execution of this opcode. """ class OpClusterQuery(OpCode): """Query cluster information.""" class OpClusterVerifyConfig(OpCode): """Verify the cluster config. """ OP_PARAMS = [ ("verbose", False, ht.TBool, None), ("error_codes", False, ht.TBool, None), ("debug_simulate_errors", False, ht.TBool, None), ] class OpClusterVerifyGroup(OpCode): """Run verify on a node group from the cluster. @type skip_checks: C{list} @ivar skip_checks: steps to be skipped from the verify process; this needs to be a subset of L{constants.VERIFY_OPTIONAL_CHECKS}; currently only L{constants.VERIFY_NPLUSONE_MEM} can be passed """ OP_DSC_FIELD = "group_name" OP_PARAMS = [ ("group_name", ht.NoDefault, ht.TNonEmptyString, None), ("skip_checks", ht.EmptyList, ht.TListOf(ht.TElemOf(constants.VERIFY_OPTIONAL_CHECKS)), None), ("verbose", False, ht.TBool, None), ("error_codes", False, ht.TBool, None), ("debug_simulate_errors", False, ht.TBool, None), ] class OpClusterVerifyDisks(OpCode): """Verify the cluster disks. Parameters: none Result: a tuple of four elements: - list of node names with bad data returned (unreachable, etc.) - dict of node names with broken volume groups (values: error msg) - list of instances with degraded disks (that should be activated) - dict of instances with missing logical volumes (values: (node, vol) pairs with details about the missing volumes) In normal operation, all lists should be empty. A non-empty instance list (3rd element of the result) is still ok (errors were fixed) but non-empty node list means some node is down, and probably there are unfixable drbd errors. Note that only instances that are drbd-based are taken into consideration. This might need to be revisited in the future. """ class OpClusterRepairDiskSizes(OpCode): """Verify the disk sizes of the instances and fixes configuration mimatches. Parameters: optional instances list, in case we want to restrict the checks to only a subset of the instances. Result: a list of tuples, (instance, disk, new-size) for changed configurations. In normal operation, the list should be empty. @type instances: list @ivar instances: the list of instances to check, or empty for all instances """ OP_PARAMS = [ ("instances", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), None), ] class OpClusterConfigQuery(OpCode): """Query cluster configuration values.""" OP_PARAMS = [ _POutputFields ] class OpClusterRename(OpCode): """Rename the cluster. @type name: C{str} @ivar name: The new name of the cluster. The name and/or the master IP address will be changed to match the new name and its IP address. """ OP_DSC_FIELD = "name" OP_PARAMS = [ ("name", ht.NoDefault, ht.TNonEmptyString, None), ] class OpClusterSetParams(OpCode): """Change the parameters of the cluster. @type vg_name: C{str} or C{None} @ivar vg_name: The new volume group name or None to disable LVM usage. """ OP_PARAMS = [ ("vg_name", None, ht.TMaybeString, "Volume group name"), ("enabled_hypervisors", None, ht.TOr(ht.TAnd(ht.TListOf(ht.TElemOf(constants.HYPER_TYPES)), ht.TTrue), ht.TNone), "List of enabled hypervisors"), ("hvparams", None, ht.TOr(ht.TDictOf(ht.TNonEmptyString, ht.TDict), ht.TNone), "Cluster-wide hypervisor parameter defaults, hypervisor-dependent"), ("beparams", None, ht.TOr(ht.TDict, ht.TNone), "Cluster-wide backend parameter defaults"), ("os_hvp", None, ht.TOr(ht.TDictOf(ht.TNonEmptyString, ht.TDict), ht.TNone), "Cluster-wide per-OS hypervisor parameter defaults"), ("osparams", None, ht.TOr(ht.TDictOf(ht.TNonEmptyString, ht.TDict), ht.TNone), "Cluster-wide OS parameter defaults"), ("candidate_pool_size", None, ht.TOr(ht.TStrictPositiveInt, ht.TNone), "Master candidate pool size"), ("uid_pool", None, ht.NoType, "Set UID pool, must be list of lists describing UID ranges (two items," " start and end inclusive)"), ("add_uids", None, ht.NoType, "Extend UID pool, must be list of lists describing UID ranges (two" " items, start and end inclusive) to be added"), ("remove_uids", None, ht.NoType, "Shrink UID pool, must be list of lists describing UID ranges (two" " items, start and end inclusive) to be removed"), ("maintain_node_health", None, ht.TMaybeBool, "Whether to automatically maintain node health"), ("prealloc_wipe_disks", None, ht.TMaybeBool, "Whether to wipe disks before allocating them to instances"), ("nicparams", None, ht.TMaybeDict, "Cluster-wide NIC parameter defaults"), ("ndparams", None, ht.TMaybeDict, "Cluster-wide node parameter defaults"), ("drbd_helper", None, ht.TOr(ht.TString, ht.TNone), "DRBD helper program"), ("default_iallocator", None, ht.TOr(ht.TString, ht.TNone), "Default iallocator for cluster"), ("master_netdev", None, ht.TOr(ht.TString, ht.TNone), "Master network device"), ("reserved_lvs", None, ht.TOr(ht.TListOf(ht.TNonEmptyString), ht.TNone), "List of reserved LVs"), ("hidden_os", None, _TestClusterOsList, "Modify list of hidden operating systems. Each modification must have" " two items, the operation and the OS name. The operation can be" " ``%s`` or ``%s``." % (constants.DDM_ADD, constants.DDM_REMOVE)), ("blacklisted_os", None, _TestClusterOsList, "Modify list of blacklisted operating systems. Each modification must have" " two items, the operation and the OS name. The operation can be" " ``%s`` or ``%s``." % (constants.DDM_ADD, constants.DDM_REMOVE)), ] class OpClusterRedistConf(OpCode): """Force a full push of the cluster configuration. """ class OpQuery(OpCode): """Query for resources/items. @ivar what: Resources to query for, must be one of L{constants.QR_VIA_OP} @ivar fields: List of fields to retrieve @ivar filter: Query filter """ OP_PARAMS = [ _PQueryWhat, ("fields", ht.NoDefault, ht.TListOf(ht.TNonEmptyString), "Requested fields"), ("filter", None, ht.TOr(ht.TNone, ht.TListOf), "Query filter"), ] class OpQueryFields(OpCode): """Query for available resource/item fields. @ivar what: Resources to query for, must be one of L{constants.QR_VIA_OP} @ivar fields: List of fields to retrieve """ OP_PARAMS = [ _PQueryWhat, ("fields", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)), "Requested fields; if not given, all are returned"), ] class OpOobCommand(OpCode): """Interact with OOB.""" OP_PARAMS = [ ("node_names", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "List of nodes to run the OOB command against"), ("command", None, ht.TElemOf(constants.OOB_COMMANDS), "OOB command to be run"), ("timeout", constants.OOB_TIMEOUT, ht.TInt, "Timeout before the OOB helper will be terminated"), ("ignore_status", False, ht.TBool, "Ignores the node offline status for power off"), ("power_delay", constants.OOB_POWER_DELAY, ht.TPositiveFloat, "Time in seconds to wait between powering on nodes"), ] # node opcodes class OpNodeRemove(OpCode): """Remove a node. @type node_name: C{str} @ivar node_name: The name of the node to remove. If the node still has instances on it, the operation will fail. """ OP_DSC_FIELD = "node_name" OP_PARAMS = [ _PNodeName, ] class OpNodeAdd(OpCode): """Add a node to the cluster. @type node_name: C{str} @ivar node_name: The name of the node to add. This can be a short name, but it will be expanded to the FQDN. @type primary_ip: IP address @ivar primary_ip: The primary IP of the node. This will be ignored when the opcode is submitted, but will be filled during the node add (so it will be visible in the job query). @type secondary_ip: IP address @ivar secondary_ip: The secondary IP of the node. This needs to be passed if the cluster has been initialized in 'dual-network' mode, otherwise it must not be given. @type readd: C{bool} @ivar readd: Whether to re-add an existing node to the cluster. If this is not passed, then the operation will abort if the node name is already in the cluster; use this parameter to 'repair' a node that had its configuration broken, or was reinstalled without removal from the cluster. @type group: C{str} @ivar group: The node group to which this node will belong. @type vm_capable: C{bool} @ivar vm_capable: The vm_capable node attribute @type master_capable: C{bool} @ivar master_capable: The master_capable node attribute """ OP_DSC_FIELD = "node_name" OP_PARAMS = [ _PNodeName, ("primary_ip", None, ht.NoType, "Primary IP address"), ("secondary_ip", None, ht.TMaybeString, "Secondary IP address"), ("readd", False, ht.TBool, "Whether node is re-added to cluster"), ("group", None, ht.TMaybeString, "Initial node group"), ("master_capable", None, ht.TMaybeBool, "Whether node can become master or master candidate"), ("vm_capable", None, ht.TMaybeBool, "Whether node can host instances"), ("ndparams", None, ht.TMaybeDict, "Node parameters"), ] class OpNodeQuery(OpCode): """Compute the list of nodes.""" OP_PARAMS = [ _POutputFields, _PUseLocking, ("names", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Empty list to query all nodes, node names otherwise"), ] class OpNodeQueryvols(OpCode): """Get list of volumes on node.""" OP_PARAMS = [ _POutputFields, ("nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Empty list to query all nodes, node names otherwise"), ] class OpNodeQueryStorage(OpCode): """Get information on storage for node(s).""" OP_PARAMS = [ _POutputFields, _PStorageType, ("nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "List of nodes"), ("name", None, ht.TMaybeString, "Storage name"), ] class OpNodeModifyStorage(OpCode): """Modifies the properies of a storage unit""" OP_PARAMS = [ _PNodeName, _PStorageType, _PStorageName, ("changes", ht.NoDefault, ht.TDict, "Requested changes"), ] class OpRepairNodeStorage(OpCode): """Repairs the volume group on a node.""" OP_DSC_FIELD = "node_name" OP_PARAMS = [ _PNodeName, _PStorageType, _PStorageName, _PIgnoreConsistency, ] class OpNodeSetParams(OpCode): """Change the parameters of a node.""" OP_DSC_FIELD = "node_name" OP_PARAMS = [ _PNodeName, _PForce, ("master_candidate", None, ht.TMaybeBool, "Whether the node should become a master candidate"), ("offline", None, ht.TMaybeBool, "Whether the node should be marked as offline"), ("drained", None, ht.TMaybeBool, "Whether the node should be marked as drained"), ("auto_promote", False, ht.TBool, "Whether node(s) should be promoted to master candidate if necessary"), ("master_capable", None, ht.TMaybeBool, "Denote whether node can become master or master candidate"), ("vm_capable", None, ht.TMaybeBool, "Denote whether node can host instances"), ("secondary_ip", None, ht.TMaybeString, "Change node's secondary IP address"), ("ndparams", None, ht.TMaybeDict, "Set node parameters"), ("powered", None, ht.TMaybeBool, "Whether the node should be marked as powered"), ] class OpNodePowercycle(OpCode): """Tries to powercycle a node.""" OP_DSC_FIELD = "node_name" OP_PARAMS = [ _PNodeName, _PForce, ] class OpNodeMigrate(OpCode): """Migrate all instances from a node.""" OP_DSC_FIELD = "node_name" OP_PARAMS = [ _PNodeName, _PMigrationMode, _PMigrationLive, _PMigrationTargetNode, ("iallocator", None, ht.TMaybeString, "Iallocator for deciding the target node for shared-storage instances"), ] class OpNodeEvacStrategy(OpCode): """Compute the evacuation strategy for a list of nodes.""" OP_DSC_FIELD = "nodes" OP_PARAMS = [ ("nodes", ht.NoDefault, ht.TListOf(ht.TNonEmptyString), None), ("remote_node", None, ht.TMaybeString, None), ("iallocator", None, ht.TMaybeString, None), ] # instance opcodes class OpInstanceCreate(OpCode): """Create an instance. @ivar instance_name: Instance name @ivar mode: Instance creation mode (one of L{constants.INSTANCE_CREATE_MODES}) @ivar source_handshake: Signed handshake from source (remote import only) @ivar source_x509_ca: Source X509 CA in PEM format (remote import only) @ivar source_instance_name: Previous name of instance (remote import only) @ivar source_shutdown_timeout: Shutdown timeout used for source instance (remote import only) """ OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PForceVariant, _PWaitForSync, _PNameCheck, ("beparams", ht.EmptyDict, ht.TDict, "Backend parameters for instance"), ("disks", ht.NoDefault, # TODO: Generate check from constants.IDISK_PARAMS_TYPES ht.TListOf(ht.TDictOf(ht.TElemOf(constants.IDISK_PARAMS), ht.TOr(ht.TNonEmptyString, ht.TInt))), "Disk descriptions, for example ``[{\"%s\": 100}, {\"%s\": 5}]``;" " each disk definition must contain a ``%s`` value and" " can contain an optional ``%s`` value denoting the disk access mode" " (%s)" % (constants.IDISK_SIZE, constants.IDISK_SIZE, constants.IDISK_SIZE, constants.IDISK_MODE, " or ".join("``%s``" % i for i in sorted(constants.DISK_ACCESS_SET)))), ("disk_template", ht.NoDefault, _CheckDiskTemplate, "Disk template"), ("file_driver", None, ht.TOr(ht.TNone, ht.TElemOf(constants.FILE_DRIVER)), "Driver for file-backed disks"), ("file_storage_dir", None, ht.TMaybeString, "Directory for storing file-backed disks"), ("hvparams", ht.EmptyDict, ht.TDict, "Hypervisor parameters for instance, hypervisor-dependent"), ("hypervisor", None, ht.TMaybeString, "Hypervisor"), ("iallocator", None, ht.TMaybeString, "Iallocator for deciding which node(s) to use"), ("identify_defaults", False, ht.TBool, "Reset instance parameters to default if equal"), ("ip_check", True, ht.TBool, _PIpCheckDoc), ("mode", ht.NoDefault, ht.TElemOf(constants.INSTANCE_CREATE_MODES), "Instance creation mode"), ("nics", ht.NoDefault, ht.TListOf(_TestNicDef), "List of NIC (network interface) definitions, for example" " ``[{}, {}, {\"%s\": \"198.51.100.4\"}]``; each NIC definition can" " contain the optional values %s" % (constants.INIC_IP, ", ".join("``%s``" % i for i in sorted(constants.INIC_PARAMS)))), ("no_install", None, ht.TMaybeBool, "Do not install the OS (will disable automatic start)"), ("osparams", ht.EmptyDict, ht.TDict, "OS parameters for instance"), ("os_type", None, ht.TMaybeString, "Operating system"), ("pnode", None, ht.TMaybeString, "Primary node"), ("snode", None, ht.TMaybeString, "Secondary node"), ("source_handshake", None, ht.TOr(ht.TList, ht.TNone), "Signed handshake from source (remote import only)"), ("source_instance_name", None, ht.TMaybeString, "Source instance name (remote import only)"), ("source_shutdown_timeout", constants.DEFAULT_SHUTDOWN_TIMEOUT, ht.TPositiveInt, "How long source instance was given to shut down (remote import only)"), ("source_x509_ca", None, ht.TMaybeString, "Source X509 CA in PEM format (remote import only)"), ("src_node", None, ht.TMaybeString, "Source node for import"), ("src_path", None, ht.TMaybeString, "Source directory for import"), ("start", True, ht.TBool, "Whether to start instance after creation"), ("tags", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Instance tags"), ] class OpInstanceReinstall(OpCode): """Reinstall an instance's OS.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PForceVariant, ("os_type", None, ht.TMaybeString, "Instance operating system"), ("osparams", None, ht.TMaybeDict, "Temporary OS parameters"), ] class OpInstanceRemove(OpCode): """Remove an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PShutdownTimeout, ("ignore_failures", False, ht.TBool, "Whether to ignore failures during removal"), ] class OpInstanceRename(OpCode): """Rename an instance.""" OP_PARAMS = [ _PInstanceName, _PNameCheck, ("new_name", ht.NoDefault, ht.TNonEmptyString, "New instance name"), ("ip_check", False, ht.TBool, _PIpCheckDoc), ] class OpInstanceStartup(OpCode): """Startup an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PForce, _PIgnoreOfflineNodes, ("hvparams", ht.EmptyDict, ht.TDict, "Temporary hypervisor parameters, hypervisor-dependent"), ("beparams", ht.EmptyDict, ht.TDict, "Temporary backend parameters"), _PNoRemember, ] class OpInstanceShutdown(OpCode): """Shutdown an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PIgnoreOfflineNodes, ("timeout", constants.DEFAULT_SHUTDOWN_TIMEOUT, ht.TPositiveInt, "How long to wait for instance to shut down"), _PNoRemember, ] class OpInstanceReboot(OpCode): """Reboot an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PShutdownTimeout, ("ignore_secondaries", False, ht.TBool, "Whether to start the instance even if secondary disks are failing"), ("reboot_type", ht.NoDefault, ht.TElemOf(constants.REBOOT_TYPES), "How to reboot instance"), ] class OpInstanceReplaceDisks(OpCode): """Replace the disks of an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, ("mode", ht.NoDefault, ht.TElemOf(constants.REPLACE_MODES), "Replacement mode"), ("disks", ht.EmptyList, ht.TListOf(ht.TPositiveInt), "Disk indexes"), ("remote_node", None, ht.TMaybeString, "New secondary node"), ("iallocator", None, ht.TMaybeString, "Iallocator for deciding new secondary node"), ("early_release", False, ht.TBool, "Whether to release locks as soon as possible"), ] class OpInstanceFailover(OpCode): """Failover an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PShutdownTimeout, _PIgnoreConsistency, _PMigrationTargetNode, ("iallocator", None, ht.TMaybeString, "Iallocator for deciding the target node for shared-storage instances"), ] class OpInstanceMigrate(OpCode): """Migrate an instance. This migrates (without shutting down an instance) to its secondary node. @ivar instance_name: the name of the instance @ivar mode: the migration mode (live, non-live or None for auto) """ OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PMigrationMode, _PMigrationLive, _PMigrationTargetNode, ("cleanup", False, ht.TBool, "Whether a previously failed migration should be cleaned up"), ("iallocator", None, ht.TMaybeString, "Iallocator for deciding the target node for shared-storage instances"), ("allow_failover", False, ht.TBool, "Whether we can fallback to failover if migration is not possible"), ] class OpInstanceMove(OpCode): """Move an instance. This move (with shutting down an instance and data copying) to an arbitrary node. @ivar instance_name: the name of the instance @ivar target_node: the destination node """ OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PShutdownTimeout, ("target_node", ht.NoDefault, ht.TNonEmptyString, "Target node"), _PIgnoreConsistency, ] class OpInstanceConsole(OpCode): """Connect to an instance's console.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName ] class OpInstanceActivateDisks(OpCode): """Activate an instance's disks.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, ("ignore_size", False, ht.TBool, "Whether to ignore recorded size"), ] class OpInstanceDeactivateDisks(OpCode): """Deactivate an instance's disks.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PForce, ] class OpInstanceRecreateDisks(OpCode): """Deactivate an instance's disks.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, ("disks", ht.EmptyList, ht.TListOf(ht.TPositiveInt), "List of disk indexes"), ("nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "New instance nodes, if relocation is desired"), ] class OpInstanceQuery(OpCode): """Compute the list of instances.""" OP_PARAMS = [ _POutputFields, _PUseLocking, ("names", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Empty list to query all instances, instance names otherwise"), ] class OpInstanceQueryData(OpCode): """Compute the run-time status of instances.""" OP_PARAMS = [ _PUseLocking, ("instances", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Instance names"), ("static", False, ht.TBool, "Whether to only return configuration data without querying" " nodes"), ] class OpInstanceSetParams(OpCode): """Change the parameters of an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PForce, _PForceVariant, # TODO: Use _TestNicDef ("nics", ht.EmptyList, ht.TList, "List of NIC changes. Each item is of the form ``(op, settings)``." " ``op`` can be ``%s`` to add a new NIC with the specified settings," " ``%s`` to remove the last NIC or a number to modify the settings" " of the NIC with that index." % (constants.DDM_ADD, constants.DDM_REMOVE)), ("disks", ht.EmptyList, ht.TList, "List of disk changes. See ``nics``."), ("beparams", ht.EmptyDict, ht.TDict, "Per-instance backend parameters"), ("hvparams", ht.EmptyDict, ht.TDict, "Per-instance hypervisor parameters, hypervisor-dependent"), ("disk_template", None, ht.TOr(ht.TNone, _CheckDiskTemplate), "Disk template for instance"), ("remote_node", None, ht.TMaybeString, "Secondary node (used when changing disk template)"), ("os_name", None, ht.TMaybeString, "Change instance's OS name. Does not reinstall the instance."), ("osparams", None, ht.TMaybeDict, "Per-instance OS parameters"), ("wait_for_sync", True, ht.TBool, "Whether to wait for the disk to synchronize, when changing template"), ] class OpInstanceGrowDisk(OpCode): """Grow a disk of an instance.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PWaitForSync, ("disk", ht.NoDefault, ht.TInt, "Disk index"), ("amount", ht.NoDefault, ht.TInt, "Amount of disk space to add (megabytes)"), ] # Node group opcodes class OpGroupAdd(OpCode): """Add a node group to the cluster.""" OP_DSC_FIELD = "group_name" OP_PARAMS = [ _PGroupName, _PNodeGroupAllocPolicy, _PGroupNodeParams, ] class OpGroupAssignNodes(OpCode): """Assign nodes to a node group.""" OP_DSC_FIELD = "group_name" OP_PARAMS = [ _PGroupName, _PForce, ("nodes", ht.NoDefault, ht.TListOf(ht.TNonEmptyString), "List of nodes to assign"), ] class OpGroupQuery(OpCode): """Compute the list of node groups.""" OP_PARAMS = [ _POutputFields, ("names", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Empty list to query all groups, group names otherwise"), ] class OpGroupSetParams(OpCode): """Change the parameters of a node group.""" OP_DSC_FIELD = "group_name" OP_PARAMS = [ _PGroupName, _PNodeGroupAllocPolicy, _PGroupNodeParams, ] class OpGroupRemove(OpCode): """Remove a node group from the cluster.""" OP_DSC_FIELD = "group_name" OP_PARAMS = [ _PGroupName, ] class OpGroupRename(OpCode): """Rename a node group in the cluster.""" OP_PARAMS = [ _PGroupName, ("new_name", ht.NoDefault, ht.TNonEmptyString, "New group name"), ] # OS opcodes class OpOsDiagnose(OpCode): """Compute the list of guest operating systems.""" OP_PARAMS = [ _POutputFields, ("names", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Which operating systems to diagnose"), ] # Exports opcodes class OpBackupQuery(OpCode): """Compute the list of exported images.""" OP_PARAMS = [ _PUseLocking, ("nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Empty list to query all nodes, node names otherwise"), ] class OpBackupPrepare(OpCode): """Prepares an instance export. @ivar instance_name: Instance name @ivar mode: Export mode (one of L{constants.EXPORT_MODES}) """ OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, ("mode", ht.NoDefault, ht.TElemOf(constants.EXPORT_MODES), "Export mode"), ] class OpBackupExport(OpCode): """Export an instance. For local exports, the export destination is the node name. For remote exports, the export destination is a list of tuples, each consisting of hostname/IP address, port, HMAC and HMAC salt. The HMAC is calculated using the cluster domain secret over the value "${index}:${hostname}:${port}". The destination X509 CA must be a signed certificate. @ivar mode: Export mode (one of L{constants.EXPORT_MODES}) @ivar target_node: Export destination @ivar x509_key_name: X509 key to use (remote export only) @ivar destination_x509_ca: Destination X509 CA in PEM format (remote export only) """ OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, _PShutdownTimeout, # TODO: Rename target_node as it changes meaning for different export modes # (e.g. "destination") ("target_node", ht.NoDefault, ht.TOr(ht.TNonEmptyString, ht.TList), "Destination information, depends on export mode"), ("shutdown", True, ht.TBool, "Whether to shutdown instance before export"), ("remove_instance", False, ht.TBool, "Whether to remove instance after export"), ("ignore_remove_failures", False, ht.TBool, "Whether to ignore failures while removing instances"), ("mode", constants.EXPORT_MODE_LOCAL, ht.TElemOf(constants.EXPORT_MODES), "Export mode"), ("x509_key_name", None, ht.TOr(ht.TList, ht.TNone), "Name of X509 key (remote export only)"), ("destination_x509_ca", None, ht.TMaybeString, "Destination X509 CA (remote export only)"), ] class OpBackupRemove(OpCode): """Remove an instance's export.""" OP_DSC_FIELD = "instance_name" OP_PARAMS = [ _PInstanceName, ] # Tags opcodes class OpTagsGet(OpCode): """Returns the tags of the given object.""" OP_DSC_FIELD = "name" OP_PARAMS = [ _PTagKind, # Name is only meaningful for nodes and instances ("name", ht.NoDefault, ht.TMaybeString, None), ] class OpTagsSearch(OpCode): """Searches the tags in the cluster for a given pattern.""" OP_DSC_FIELD = "pattern" OP_PARAMS = [ ("pattern", ht.NoDefault, ht.TNonEmptyString, None), ] class OpTagsSet(OpCode): """Add a list of tags on a given object.""" OP_PARAMS = [ _PTagKind, _PTags, # Name is only meaningful for nodes and instances ("name", ht.NoDefault, ht.TMaybeString, None), ] class OpTagsDel(OpCode): """Remove a list of tags from a given object.""" OP_PARAMS = [ _PTagKind, _PTags, # Name is only meaningful for nodes and instances ("name", ht.NoDefault, ht.TMaybeString, None), ] # Test opcodes class OpTestDelay(OpCode): """Sleeps for a configured amount of time. This is used just for debugging and testing. Parameters: - duration: the time to sleep - on_master: if true, sleep on the master - on_nodes: list of nodes in which to sleep If the on_master parameter is true, it will execute a sleep on the master (before any node sleep). If the on_nodes list is not empty, it will sleep on those nodes (after the sleep on the master, if that is enabled). As an additional feature, the case of duration < 0 will be reported as an execution error, so this opcode can be used as a failure generator. The case of duration == 0 will not be treated specially. """ OP_DSC_FIELD = "duration" OP_PARAMS = [ ("duration", ht.NoDefault, ht.TFloat, None), ("on_master", True, ht.TBool, None), ("on_nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), None), ("repeat", 0, ht.TPositiveInt, None), ] class OpTestAllocator(OpCode): """Allocator framework testing. This opcode has two modes: - gather and return allocator input for a given mode (allocate new or replace secondary) and a given instance definition (direction 'in') - run a selected allocator for a given operation (as above) and return the allocator output (direction 'out') """ OP_DSC_FIELD = "allocator" OP_PARAMS = [ ("direction", ht.NoDefault, ht.TElemOf(constants.VALID_IALLOCATOR_DIRECTIONS), None), ("mode", ht.NoDefault, ht.TElemOf(constants.VALID_IALLOCATOR_MODES), None), ("name", ht.NoDefault, ht.TNonEmptyString, None), ("nics", ht.NoDefault, ht.TOr(ht.TNone, ht.TListOf( ht.TDictOf(ht.TElemOf([constants.INIC_MAC, constants.INIC_IP, "bridge"]), ht.TOr(ht.TNone, ht.TNonEmptyString)))), None), ("disks", ht.NoDefault, ht.TOr(ht.TNone, ht.TList), None), ("hypervisor", None, ht.TMaybeString, None), ("allocator", None, ht.TMaybeString, None), ("tags", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), None), ("memory", None, ht.TOr(ht.TNone, ht.TPositiveInt), None), ("vcpus", None, ht.TOr(ht.TNone, ht.TPositiveInt), None), ("os", None, ht.TMaybeString, None), ("disk_template", None, ht.TMaybeString, None), ("evac_nodes", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)), None), ("instances", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)), None), ("evac_mode", None, ht.TOr(ht.TNone, ht.TElemOf(constants.IALLOCATOR_NEVAC_MODES)), None), ("target_groups", None, ht.TOr(ht.TNone, ht.TListOf(ht.TNonEmptyString)), None), ] class OpTestJqueue(OpCode): """Utility opcode to test some aspects of the job queue. """ OP_PARAMS = [ ("notify_waitlock", False, ht.TBool, None), ("notify_exec", False, ht.TBool, None), ("log_messages", ht.EmptyList, ht.TListOf(ht.TString), None), ("fail", False, ht.TBool, None), ] class OpTestDummy(OpCode): """Utility opcode used by unittests. """ OP_PARAMS = [ ("result", ht.NoDefault, ht.NoType, None), ("messages", ht.NoDefault, ht.NoType, None), ("fail", ht.NoDefault, ht.NoType, None), ("submit_jobs", None, ht.NoType, None), ] WITH_LU = False def _GetOpList(): """Returns list of all defined opcodes. Does not eliminate duplicates by C{OP_ID}. """ return [v for v in globals().values() if (isinstance(v, type) and issubclass(v, OpCode) and hasattr(v, "OP_ID") and v is not OpCode)] OP_MAPPING = dict((v.OP_ID, v) for v in _GetOpList())
ekohl/ganeti
lib/opcodes.py
Python
gpl-2.0
47,432
#ifndef DIALOGS_SETTINGSDIALOG_H #define DIALOGS_SETTINGSDIALOG_H #include "../global.h" #include <QDialog> #include <memory> namespace QtUtilities { class OptionCategoryModel; class OptionCategoryFilterModel; class OptionCategory; class OptionPage; namespace Ui { class SettingsDialog; } class QT_UTILITIES_EXPORT SettingsDialog : public QDialog { Q_OBJECT Q_PROPERTY(bool tabBarAlwaysVisible READ isTabBarAlwaysVisible WRITE setTabBarAlwaysVisible) public: explicit SettingsDialog(QWidget *parent = nullptr); ~SettingsDialog() override; bool isTabBarAlwaysVisible() const; void setTabBarAlwaysVisible(bool value); OptionCategoryModel *categoryModel(); OptionCategory *category(int categoryIndex) const; OptionPage *page(int categoryIndex, int pageIndex) const; void showCategory(OptionCategory *category); void setSingleCategory(OptionCategory *singleCategory); Q_SIGNALS: void applied(); void resetted(); protected: void showEvent(QShowEvent *event) override; private Q_SLOTS: void currentCategoryChanged(const QModelIndex &index); void updateTabWidget(); bool apply(); void reset(); private: std::unique_ptr<Ui::SettingsDialog> m_ui; OptionCategoryModel *m_categoryModel; OptionCategoryFilterModel *m_categoryFilterModel; OptionCategory *m_currentCategory; bool m_tabBarAlwaysVisible; }; /*! * \brief Returns whether the tab bar is always visible. * * The tab bar is always visible by default. * * \sa SettingsDialog::setTabBarAlwaysVisible() */ inline bool SettingsDialog::isTabBarAlwaysVisible() const { return m_tabBarAlwaysVisible; } /*! * \brief Returns the category model used by the settings dialog to manage the * categories. */ inline OptionCategoryModel *SettingsDialog::categoryModel() { return m_categoryModel; } } // namespace QtUtilities #endif // DIALOGS_SETTINGSDIALOG_H
Martchus/qtutilities
settingsdialog/settingsdialog.h
C
gpl-2.0
1,916
#include "PinsParameters.h" #include "datatypes.h" #include "Arduino.h" #include <sys/time.h> #include <unistd.h> #include <iostream> #include <stdio.h> #include <PID_v1.h> // Initialize the arduino simulation: Arduino arduino("../doc/Misc/LOGGER16.CSV"); volatile uint32_t speedCounter = 0; uint32_t dirReading = 0; double PID_input, PID_setpoint, PID_output;; PID PIDcontroller(&PID_input, &PID_output, &PID_setpoint, MOTOR_M_P, MOTOR_M_I, MOTOR_M_D, DIRECT); lap_segment lap[1000]; lap_segment_hist lap_hist[10]; uint32_t seq_cnt; // Segment sequence number bool lap_found; // Indication if Lap recognised uint32_t max_seq_cnt; // Maximum number of segments sensors_event_t accel_orient; CAR_STATE state; uint32_t dirReadingOld; uint32_t speedReading, speedReadingLogged, distance; double brake_faktor; uint32_t startTime; bool bno_on; uint32_t sp, sp1, sp2, sp3, sp4; // last 4 values of speedReading bool measuring; // don't start measuring until BNO055 gives real values int dirOverflow; Adafruit_BNO055 bno(&arduino); uint32_t segment_types_speed[100]; uint32_t finish_position; // Lap length e.g. start/finish point int trackVoltReading; straight_type straight[100];// Max 100 straights can be stored uint32_t straight_cnt; // Straight counter Metro measurement_timer = Metro(LOG_INTERVAL); int main(int argc, char **argv) { while (arduino.loop()) { std::cout << arduino.matrix[arduino.row][26] << ", "; std::cout << arduino.matrix[arduino.row][27] << ", "; std::cout << arduino.matrix[arduino.row][28] << ", "; std::cout << arduino.matrix[arduino.row][29] << ", "; std::cout << std::endl; std::cout << "Speed Counter: " << speedCounter << std::endl; std::cout << "Direction: " << dirReading << std::endl; analogRead(track_volt_PIN); analogRead(engine_volt_PIN); } return 0; }
eedala/DaVinciDriver
DaVinciSimulator/main.cpp
C++
gpl-2.0
1,880
<?php /** * @package DPCalendar * @author Digital Peak http://www.digital-peak.com * @copyright Copyright (C) 2007 - 2018 Digital Peak. All rights reserved. * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ defined('_JEXEC') or die(); use CCL\Content\Element\Basic\Container; use CCL\Content\Element\Basic\Button; use CCL\Content\Element\Basic\TextBlock; use CCL\Content\Element\Component\Dropdown; use CCL\Content\Element\Component\Icon; use CCL\Content\Element\Basic\Link; // Global variables $event = $this->event; $params = $this->params; $eventRoute = DPCalendarHelperRoute::getEventRoute($event->id, $event->catid, false, true); /** @var Container $root * */ $root = $this->root->addChild(new Container('actions-container')); $root->addClass('noprint', true); $root->addClass('dp-actions-container', true); // The share container $sc = $root->addChild(new Container('share')); // Set up the share buttons DPCalendarHelper::renderLayout('share.twitter', array('params' => $params, 'root' => $sc)); DPCalendarHelper::renderLayout('share.facebook', array('params' => $params, 'root' => $sc)); DPCalendarHelper::renderLayout('share.google', array('params' => $params, 'root' => $sc)); DPCalendarHelper::renderLayout('share.linkedin', array('params' => $params, 'root' => $sc)); DPCalendarHelper::renderLayout('share.xing', array('params' => $params, 'root' => $sc)); $bc = $root->addChild(new Container('user')); // Add the print button DPCalendarHelper::renderLayout( 'content.button.print', array( 'root' => $bc, 'id' => 'print', 'selector' => 'dp-event' ) ); // Compile the url fo the email button require_once JPATH_SITE . '/components/com_mailto/helpers/mailto.php'; $uri = JUri::getInstance()->toString(array('scheme', 'host', 'port')); $url = 'index.php?option=com_mailto&tmpl=component&link=' . MailToHelper::addLink($uri . $eventRoute); // Create the email button DPCalendarHelper::renderLayout( 'content.button', array( 'type' => Icon::MAIL, 'root' => $bc, 'title' => 'JGLOBAL_EMAIL', 'onclick' => "window.open('" . $url . "','win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" ) ); if ($params->get('event_show_copy', '1')) { $d = $bc->addChild(new Dropdown('actions', ['actions'])); $b = $d->setTriggerElement(new Button('trigger', new Icon('icon', Icon::DOWNLOAD))); $b->addClass('dp-button', true); $b->addChild(new Icon('icon', Icon::DOWN, ['caret'])); // Compile the Google url $startDate = DPCalendarHelper::getDate($event->start_date, $event->all_day); $endDate = DPCalendarHelper::getDate($event->end_date, $event->all_day); $copyFormat = $event->all_day ? 'Ymd' : 'Ymd\THis'; if ($event->all_day) { $endDate->modify('+1 day'); } $url = 'http://www.google.com/calendar/render?action=TEMPLATE&text=' . urlencode($event->title); $url .= '&dates=' . $startDate->format($copyFormat, true) . '%2F' . $endDate->format($copyFormat, true); $url .= '&location=' . urlencode(\DPCalendar\Helper\Location::format($event->locations)); $url .= '&details=' . urlencode(JHtml::_('string.truncate', $event->description, 200)); $url .= '&hl=' . DPCalendarHelper::getFrLanguage() . '&ctz=' . $startDate->getTimezone()->getName(); $url .= '&sf=true&output=xml'; // Add the Google button $l = $d->addChild(new Link('google', $url, '_blank')); $l->addChild(new TextBlock('text'))->setContent(JText::_('COM_DPCALENDAR_FIELD_CONFIG_EVENT_LABEL_COPY_GOOGLE')); // Add the ics button $l = $d->addChild(new Link('ics', JRoute::_("index.php?option=com_dpcalendar&view=event&format=raw&id=" . $event->id), '_blank')); $l->addChild(new TextBlock('text'))->setContent(JText::_('COM_DPCALENDAR_FIELD_CONFIG_EVENT_LABEL_COPY_OUTLOOK')); } if (\DPCalendar\Helper\Booking::openForBooking($event) && $event->params->get('access-invite') && !DPCalendarHelper::isFree()) { // Add the invite button DPCalendarHelper::renderLayout( 'content.button', array( 'id' => 'invite', 'type' => Icon::SIGNUP, 'root' => $bc, 'text' => 'COM_DPCALENDAR_INVITE', 'onclick' => "location.href='" . DPCalendarHelperRoute::getInviteRoute($event) . "'" ) ); } if ($event->capacity != '0' && $event->params->get('access-tickets') && !DPCalendarHelper::isFree()) { // Add the tickets button DPCalendarHelper::renderLayout( 'content.button', array( 'id' => 'tickets', 'type' => Icon::SIGNUP, 'root' => $bc, 'text' => 'COM_DPCALENDAR_BOOKING_FIELD_TICKETS_LABEL', 'onclick' => "location.href='" . DPCalendarHelperRoute::getTicketsRoute(null, $event->id) . "'" ) ); } if ($event->capacity != '0' && $event->params->get('access-bookings') && !DPCalendarHelper::isFree()) { // Add the tickets button DPCalendarHelper::renderLayout( 'content.button', array( 'id' => 'bookings', 'type' => Icon::SIGNUP, 'root' => $bc, 'text' => 'COM_DPCALENDAR_BOOKINGS', 'onclick' => "location.href='" . DPCalendarHelperRoute::getBookingsRoute($event->id) . "'" ) ); } if ($event->params->get('access-edit')) { // Add a warning if ($event->checked_out && $this->user->id != $event->checked_out) { JFactory::getApplication()->enqueueMessage( JText::sprintf('COM_DPCALENDAR_VIEW_EVENT_CHECKED_OUT_BY', JFactory::getUser($event->checked_out)->name), 'warning' ); } if ($event->checked_out && $this->user->id != $event->checked_out && $this->user->authorise('core.manage', 'com_checkin')) { $url = 'index.php?option=com_dpcalendar&task=event.checkin'; $url .= '&e_id=' . $event->id; $url .= '&' . JSession::getFormToken() . '=1'; // Add the check in button DPCalendarHelper::renderLayout( 'content.button', array( 'type' => Icon::LOCK, 'root' => $bc, 'text' => JText::_('JLIB_HTML_CHECKIN'), 'onclick' => "location.href='" . $url . "'" ) ); } if (!$event->checked_out || $this->user->id == $event->checked_out) { // Add the edit button DPCalendarHelper::renderLayout( 'content.button', array( 'type' => Icon::EDIT, 'root' => $bc, 'text' => 'COM_DPCALENDAR_VIEW_FORM_BUTTON_EDIT_EVENT', 'onclick' => "location.href='" . DPCalendarHelperRoute::getFormRoute($event->id, JUri::getInstance()) . "'" ) ); } } if ($event->params->get('access-delete')) { $return = JUri::getInstance(!empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null); if ($this->input->getCmd('view', null) == 'event') { $return->setVar('layout', 'empty'); } $deleteUrl = 'index.php?option=com_dpcalendar&task=event.delete&tmpl='; $deleteUrl .= $this->input->getWord('tmpl') . '&return=' . base64_encode($return) . '&e_id='; // Add the delete button DPCalendarHelper::renderLayout( 'content.button', array( 'id' => 'delete', 'type' => Icon::DELETE, 'root' => $bc, 'text' => 'COM_DPCALENDAR_DELETE', 'onclick' => "location.href='" . JRoute::_($deleteUrl . $event->id) . "'" ) ); if ($event->original_id > 0) { // Add the series delete button DPCalendarHelper::renderLayout( 'content.button', array( 'id' => 'delete-series', 'type' => Icon::DELETE, 'root' => $bc, 'text' => 'COM_DPCALENDAR_DELETE_SERIES', 'onclick' => "location.href='" . JRoute::_($deleteUrl . $event->original_id) . "'" ) ); } }
emundus/v6
components/com_dpcalendar/views/event/tmpl/default_header.php
PHP
gpl-2.0
7,361
/*********************************************************/ /* vlaCalendar version 2.1 for mootools release 1.2 */ /*********************************************************/ var vlaCalendar = new Class({ 'slideDuration': 500, 'fadeDuration': 500, 'transition': Fx.Transitions.Quart.easeOut, 'startMonday': false, 'filePath': 'inc/', 'defaultView': 'month', 'style': '', initialize: function(_container, _options) { //Add the provided options to this object by extending if(_options) $extend(this, _options); this.loading = false; this.container = _container = $(_container); var _class = this; //Insert the base into the container and initialize elements var pars = 'defaultView='+ this.defaultView; if(this.picker) { if($type(this.prefillDate) == 'object' && this.getInputDate(this.prefillDate)) pars += '&pickedDate='+ this.getInputDate(this.prefillDate); if(this.linkWithInput) pars += '&gotoPickedDate=1'; } this.u('base', pars, function() { _class.mainLoader = _container.getElement('div[class=loaderA]'); _class.tempLoader = _container.getElement('div[class=loaderB]'); _class.label = _container.getElement('span[class=label]'); _class.arrowLeft = _container.getElement('div[class=arrowLeft]'); _class.arrowRight = _container.getElement('div[class=arrowRight]'); _class.initializeCalendarFunctions(); //Prefill/load picker date elements if(_class.picker) { if($type(_class.prefillDate) == 'object' && _class.getInputDate(_class.prefillDate)) _class.pick(_class.prefillDate); else if(_class.prefillDate == true) _class.pick(JSON.decode(_class.label.getProperty('date'))); } }, _container); }, initializeCalendarFunctions: function() { this.resetArrows(); //Retrieve data (label, timestamp etc) which are stored as a Json string in the table attribute summary var vars = JSON.decode(this.mainLoader.getElement('table').getProperty('summary')); var _class = this; //Change the label this.label.removeClass('noHover').set('html', vars.label) .onclick = vars.parent ? function() { _class.u(vars.parent, 'ts=' + vars.ts + '&parent=' + vars.current, function() { _class.fade() }) } : null; //Hide arrows if necessary and add arrow click events if(vars.hide_left_arrow) this.hideLeftArrow(); else if(vars.hide_right_arrow) this.hideRightArrow(); this.arrowLeft.onclick = function() { _class.u(vars.current, 'ts=' + vars.pr_ts, function() { _class.slideLeft() }) } this.arrowRight.onclick = function() { _class.u(vars.current, 'ts=' + vars.nx_ts, function() { _class.slideRight() }) } //Add cell click events var clickables = this.mainLoader.getElements('td'); switch(vars.current) { case 'month': if(this.picker) { clickables.each(function(_clickable) { _clickable.onclick = function() { _class.pick(JSON.decode(_clickable.getProperty('date'))); _class.mainLoader.getElements('td').each(function(_clickable) { _clickable.removeClass('selected') }); this.addClass('selected'); } }); } break; case 'year': clickables.each(function(_clickable) { _clickable.onclick = function() { _class.u('month', 'ts=' + _clickable.getProperty('ts'), function() { _class.fade() }) } }); break; case 'decade': this.label.addClass('noHover'); clickables.each(function(_clickable) { _clickable.onclick = function() { _class.u('year', 'ts=' + _clickable.getProperty('ts') + '&m_ts=' + _clickable.getProperty('m_ts'), function() { _class.fade() }) } }); break; } }, //Ajax updater function which handles all requests u: function(_url, _pars, _onComplete, _id) { if(!this.loading && !this.transitioning) { var _class = this; this.loading = true; var element = $(_id ? _id : this.tempLoader); _pars += '&picker=' + (this.picker ? 1 : 0) + '&startMonday=' + (this.startMonday ? 1 : 0) + '&style=' + this.style; if(this.picker && this.getInputDate()) _pars += '&pickedDate='+ this.getInputDate(); new Request({ method: 'post', url: this.filePath + _url + '.php', onComplete: function(data) { element.set('html', data); _onComplete(); _class.loading = false; } }).send(_pars); } }, slideLeft: function() { var _class = this; this.transitioning = true; this.tempLoader.setStyle('opacity', 1).set('tween', { duration: this.slideDuration, transition: this.transition }).tween('margin-left', [-164, 0]); this.mainLoader.setStyle('opacity', 1).set('tween', { duration: this.slideDuration, transition: this.transition, onComplete: function() { _class.transitioning = false } }) .tween('margin-left', [0, 164]); this.switchLoaders(); }, slideRight: function() { var _class = this; this.transitioning = true; this.mainLoader.setStyle('opacity', 1).set('tween', { duration: this.slideDuration, transition: this.transition }).tween('margin-left', [0, -164]); this.tempLoader.setStyle('opacity', 1).set('tween', { duration: this.slideDuration, transition: this.transition, onComplete: function() { _class.transitioning = false } }) .tween('margin-left', [164, 0]); this.switchLoaders(); }, fade: function(overRuleTrans) { var _class = this; this.transitioning = overRuleTrans ? false : true; this.tempLoader.setStyles({'opacity': 0, 'margin-left': 0}); this.mainLoader.set('tween', { duration: this.fadeDuration, transition: this.transition}).fade('out'); this.tempLoader.set('tween', { duration: this.fadeDuration, transition: this.transition, onComplete: function() { _class.tempLoader.setStyles({'opacity': 1, 'margin-left': -999}); _class.transitioning = false; } }).fade('in'); this.switchLoaders(); }, switchLoaders: function() { this.mainLoader = this.mainLoader.className == 'loaderA' ? this.container.getElement('div[class=loaderB]') : this.container.getElement('div[class=loaderA]'); this.tempLoader = this.tempLoader.className == 'loaderA' ? this.container.getElement('div[class=loaderB]') : this.container.getElement('div[class=loaderA]'); this.initializeCalendarFunctions(); }, resetArrows: function() { this.arrowLeft.setStyle('visibility', 'visible'); this.arrowRight.setStyle('visibility', 'visible'); }, hideLeftArrow: function() { this.arrowLeft.setStyle('visibility', 'hidden'); }, hideRightArrow: function() { this.arrowRight.setStyle('visibility', 'hidden'); } }); var vlaDatePicker = new Class({ Extends: vlaCalendar, 'separateInput': false, 'prefillDate': true, 'linkWithInput': true, 'leadingZero': true, 'twoDigitYear': false, 'separator': '/', 'format': 'd/m/y', 'openWith': null, 'alignX': 'right', 'alignY': 'inputTop', 'offset': { 'x': 0, 'y': 0 }, 'style': '', 'ieTransitionColor' : '#ffffff', 'toggleDuration': 350, initialize: function(_element, _options) { //Add the provided options to this object by extending if(_options) $extend(this, _options); this.element = $(_element); if(!this.element) throw 'No (existing) element to create a datepicker for specified: new vlaDatePicker(ELEMENT, [options])'; //Check if the user wants multiple input if(this.separateInput) { this.element.day = this.element.getElement('input[name='+ this.separateInput.day +']'); this.element.month = this.element.getElement('input[name='+ this.separateInput.month +']'); this.element.year = this.element.getElement('input[name='+ this.separateInput.year +']'); } //Create the picker and calendar and inject in in the body this.picker = new Element('div', { 'class': 'vlaCalendarPicker' + (this.style != '' ? ' ' + this.style : '') }).injectTop($(document.body)); this.pickerContent = new Element('div', { 'class': 'pickerBackground' }).injectTop(this.picker); this.parent(this.pickerContent); //Add events for showing and hiding the picker var calFocus = false; var _class = this; (this.openWith ? $(this.openWith) : this.element) .addEvent('focus', function() { _class.show(); }) .addEvent('click', function() { _class.openWith ? _class.toggle() : _class.show() }) .addEvent('change', function() { _class.hide(); }); //If the datepicker is visible an outside click makes it hide document.addEvent('mousedown', function(e) { if(_class.outsideHide && _class.outsideClick(e, _class.picker)) _class.hide() }); //linkWithInput if(this.linkWithInput) { if(this.separateInput) { this.element.day.addEvent('keyup', function() { _class.linkedUpdate() }); this.element.month.addEvent('keyup', function() { _class.linkedUpdate() }); this.element.year.addEvent('keyup', function() { _class.linkedUpdate() }); } else { this.element.addEvent('keyup', function() { _class.linkedUpdate() }); } } this.visible = false; this.outsideHide = false; }, //Position the picker position: function() { var top, left; switch(this.alignX) { case 'left': left = this.element.getLeft(); break; case 'center': var pickerMiddle = this.pickerContent.getStyle('width').toInt() / 2; if(pickerMiddle == 0) pickerMiddle = 83; left = this.element.getLeft() + (this.element.getSize().x / 2) - pickerMiddle - ((parseInt(this.pickerContent.getStyle('padding-left')) + parseInt(this.pickerContent.getStyle('padding-right'))) / 2); break; case 'right': default: left = this.element.getLeft() + this.element.getSize().x; break; } switch(this.alignY) { case 'bottom': top = this.getPos(this.element).y + this.element.getSize().y; break; case 'top': top = this.getPos(this.element).y - parseInt(this.pickerContent.getStyle('height')) - (parseInt(this.pickerContent.getStyle('padding-top')) + parseInt(this.pickerContent.getStyle('padding-bottom'))); break; case 'inputTop': default: top = this.getPos(this.element).y; } if(this.isNumber(this.offset.x)) left += this.offset.x; if(this.isNumber(this.offset.y)) top += this.offset.y; this.picker.setStyles({ 'top': top, 'left': left }); }, show: function() { this.position(); if(!this.visible) { this.visible = true; var _class = this; this.picker.setStyles({ 'opacity': 0, 'display': 'inline' }); if(Browser.Engine.trident5) this.picker.setStyle('background-color', this.ieTransitionColor); //Ugly transition fix for IE7 this.picker.set('tween', { onComplete: function() { if(Browser.Engine.trident5) _class.picker.setStyle('background-color', 'transparent'); _class.outsideHide = true; }, duration: this.toggleDuration }).fade('in'); } }, hide: function() { if(this.visible) { this.visible = false; var _class = this; if(Browser.Engine.trident5) this.picker.setStyle('background-color', this.ieTransitionColor); //Ugly transition fix for IE7 this.picker.set('tween', { onComplete: function() { _class.picker.setStyle('display', 'none'); _class.outsideHide = false; }, duration: this.toggleDuration }).fade('out'); } }, toggle: function() { if(this.visible) this.hide(); else this.show(); }, pick: function(_date) { if(this.leadingZero) { if(_date.day < 10) _date.day = '0' + _date.day; if(_date.month < 10) _date.month = '0' + _date.month; } if(this.twoDigitYear) _date.year = _date.year.toString().substring(2, 4); if(this.separateInput) { if(this.element.day) this.element.day.set('value', _date.day); if(this.element.month) this.element.month.set('value', _date.month); if(this.element.year) this.element.year.set('value', _date.year); this.hide(); } else { switch(this.format) { case "m/d/y": this.element.set('value', _date.month + this.separator + _date.day + this.separator + _date.year); break; case "y/m/d": this.element.set('value', _date.year + this.separator + _date.month + this.separator + _date.day); break; case "y/d/m": this.element.set('value', _date.year + this.separator + _date.day + this.separator + _date.month); break; case "d/m/y": default: this.element.set('value', _date.day + this.separator + _date.month + this.separator + _date.year); } this.hide(); } }, getInputDate: function(_date) { var day, month, year; if(_date) { day = _date.day; month = _date.month; year = _date.year; } else if(this.separateInput) { day = this.element.day.get('value').toInt(); month = this.element.month.get('value').toInt(); year = this.element.year.get('value').toInt(); } else { var date = this.element.get('value').split(this.separator); if(date.length != 3) return null; switch(this.format) { case "m/d/y": day = date[1]; month = date[0]; year = date[2]; break; case "y/m/d": day = date[2]; month = date[1]; year = date[0]; break; case "y/d/m": day = date[1]; month = date[2]; year = date[0]; break; case "d/m/y": default: day = date[0]; month = date[1]; year = date[2]; } } if( !this.isNumber(day) || !this.isNumber(month) || !this.isNumber(year) || day == 0 || month == 0 || year == '0' || (this.twoDigitYear && year > 99) || (!this.twoDigitYear && year < 1979) || (!this.twoDigitYear && year > 2030) || month > 12 || day > 31 ) return null; if(this.twoDigitYear && this.isNumber(year) && year < 100) { year = year.toInt(); if(year < 10) year = '200'+ year; else if(year < 70) year = '20'+ year; else if(year > 69) year = '19'+ year; else year = new Date().getFullYear(); } return day +'/'+ month +'/'+ year; }, //This function is being called on keyup event if linkWithInput is set to true and when a date is picked //If the full date is inserted the picker will change itself to that specific date (month view) linkedUpdate: function() { var _class = this; var date = this.getInputDate(); if(date && this.pickedDate != date) { this.u('month', 'gotoPickedDate=1', function() { _class.fade(true) }); this.pickedDate = date; } }, outsideClick: function(_event, _element) { var mousePos = this.getMousePos(_event); var elementData = _element.getCoordinates(); return (mousePos.x > elementData.left && mousePos.x < (elementData.left + elementData.width)) && (mousePos.y > elementData.top && mousePos.y < (elementData.top + elementData.height)) ? false : true; }, getMousePos: function(_event) { if(document.all) { return { 'x': window.event.clientX + window.getScrollLeft(), 'y': window.event.clientY + window.getScrollTop() }; } else { return { 'x': _event.page['x'], 'y': _event.page['y'] }; } }, isNumber: function(_number) { if(_number == '') return false; return (_number >= 0) || (_number < 0) ? true : false; }, //Retrieving positition funtions (like getCoordinates, getTop etc) don't seem to return correct values in some situations in mootools 1.2; //Opera returns wrong values, IE returns too small values. This function returns the correct coordinates. getPos: function(_element) { var x, y = 0; if(_element.offsetParent) { do { x += _element.offsetLeft; y += _element.offsetTop; } while(_element = _element.offsetParent); } else if(_element.x) { x += _element.x; y += _element.y; } return { 'x': x, 'y': y }; } });
wr/bionichippo.com
old/admin/calendar/jslib/vlaCal-v2.1.js
JavaScript
gpl-2.0
15,630
<?php echo drupal_render($form); ?>
pietromalerba/ShowCase-Drupal-Test-project
sites/all/themes/camp/form-node-news.tpl.php
PHP
gpl-2.0
37
/* * JFwknop is developed primarily by the people listed in the file 'AUTHORS'. * Copyright (C) 2016 JFwknop developers and contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.cipherdyne.gui.components; /** * * @author franck */ public class JFwknopArgs extends JFwknopTextField { private boolean verbosityEnabled; private boolean testEnabled; private String args; public JFwknopArgs(String val) { super(val); this.setEditable(false); this.args = val; } public void setVerbose(boolean enable) { this.verbosityEnabled = enable; buildArgs(); } public void setTest(boolean enable) { this.testEnabled = enable; buildArgs(); } public void setArgs(String args) { this.args = args; buildArgs(); } private void buildArgs() { StringBuilder sb = new StringBuilder(); sb.append(this.args); if (this.verbosityEnabled) { sb.append(" --verbose"); } if (this.testEnabled) { sb.append(" --test"); } this.setText(sb.toString().trim()); } }
fjoncourt/jfwknop
src/main/java/com/cipherdyne/gui/components/JFwknopArgs.java
Java
gpl-2.0
1,888
#---------------------------------------------------------------------------- # Fichero: Crawler/LogManager/App/Email.pm # Descripcion: #---------------------------------------------------------------------------- package Crawler::LogManager::App::Email; use Crawler::LogManager::App; use lib '/cfg/modules/'; @ISA=qw(Crawler::LogManager::App); $VERSION='1.00'; use strict; use POSIX ":sys_wait_h"; use Digest::MD5 qw(md5_hex); use Data::Dumper; use Time::HiRes; use File::Basename; use JSON; use YAML; use Time::Local; use IO::CaptureOutput qw/capture/; use Net::IMAP::Simple; use MIME::Parser; use HTML::TableExtract; use HTML::Strip; #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- use constant STAT_BAJA => 1; use constant STAT_MANT => 2; use constant STAT_ERASE => 3; #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # Funcion: Constructor # Descripcion: Crea un objeto del tipo Crawler::App #---------------------------------------------------------------------------- sub new { my ($class,%arg) =@_; my $self=$class->SUPER::new(%arg); $self->{_cfg} = $arg{cfg} || 0; $self->{_mail_dir} = $arg{mail_dir} || '/home/cnm/correos'; $self->{_save_mail} = $arg{save_mail} || 0; return $self; } #---------------------------------------------------------------------------- # cfg #---------------------------------------------------------------------------- sub cfg { my ($self,$cfg) = @_; if (defined $cfg) { $self->{_cfg}=$cfg; } else { return $self->{_cfg}; } } #---------------------------------------------------------------------------- # mail_dir #---------------------------------------------------------------------------- sub mail_dir { my ($self,$mail_dir) = @_; if (defined $mail_dir) { $self->{_mail_dir}=$mail_dir; } else { return $self->{_mail_dir}; } } #---------------------------------------------------------------------------- # save_mail # Be careful when storing mails to disk !!! # Command to remove files older than 30 days. # find /home/cnm/correos/ -type f -name '*.msg' -mtime +30 -exec rm {} \; #---------------------------------------------------------------------------- sub save_mail { my ($self,$save_mail) = @_; if (defined $save_mail) { $self->{_save_mail}=$save_mail; } else { return $self->{_save_mail}; } } #------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------ # CORE IMAP4 #------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------- my %HEAD=(); my ($TXT,$HTML) = ('',''); my @MAIL_FILES = (); #------------------------------------------------------------------------------------------ # CORE-IMAP4 >> app-get-mail-imap4 # Obtiene correos por IMAP4 # Utiliza un fichero JSON con las credenciales y datos de conexion. # Resultado: \@RESULT con lineas formadas por: ts,$app_id,$app_name,source_line #------------------------------------------------------------------------------------------ sub core_imap_get_app_data { my ($self,$task_cfg_file)=@_; my @RESULT = (); my $save_mail = $self->save_mail(); my $mail_dir = $self->mail_dir(); # Debe existir el fichero de configuracion de la APP if ((! defined $task_cfg_file) && (! -f $task_cfg_file)) { $self->log('warning',"core-imap4:: **ERROR** SIN FICHERO DE CONFIGURACION DE LA APP"); return \@RESULT; } $self->log('info',"core-imap4:: $task_cfg_file"); my $app=$self->get_json_config($task_cfg_file); # Debe existir el fichero de credenciales IMAP if ((! exists $app->[0]->{'credentials'}) && (! -f $app->[0]->{'credentials'})) { $self->log('warning',"core-imap4:: **ERROR** SIN CREDENCIALES DE ACCESO"); return \@RESULT; } $self->log('info',"core-imap4:: $app->[0]->{'credentials'}"); my $x=$self->get_json_config($app->[0]->{'credentials'}); my $json = JSON->new(); $json = $json->canonical([1]); # Recorre las cuentas de correo definidas foreach my $h (@$x) { if (! exists $h->{'imap_host'}) { next; } if (! exists $h->{'imap_user'}) { next; } if (! exists $h->{'imap_pwd'}) { next; } my $port = (exists $h->{'imap_port'}) ? $h->{'imap_port'} : 143; my $timeout = (exists $h->{'imap_timeout'}) ? $h->{'imap_timeout'} : 2; my $use_ssl = (exists $h->{'imap_secure'}) ? $h->{'imap_secure'} : 0; my $mailbox = (exists $h->{'imap_mailbox'}) ? $h->{'imap_mailbox'} : 'INBOX'; my $imap = new Net::IMAP::Simple($h->{'imap_host'}, Timeout=>$timeout , ResvPort=>$port, use_ssl=>$use_ssl); if (!defined $imap) { $self->log('warning',"core-imap4:: **ERROR** EN CONEXION IMAP $h->{'imap_host'}/$port (use_ssl=$use_ssl)"); return \@RESULT; } my $r=$imap->login($h->{'imap_user'},$h->{'imap_pwd'}); if (! defined $r) { $self->log('warning',"core-imap4:: **ERROR** EN LOGIN IMAP $h->{'imap_user'}/xxxxxxxx | $h->{'imap_host'}/$port (use_ssl=$use_ssl)"); return \@RESULT; } my $nm=$imap->select($mailbox); $self->log('info',"core-imap4:: IMAP CONEX OK $nm MSGs in $mailbox"); my $parser = new MIME::Parser; #$parser->output_to_core(1); my $FROM_MAIL_FILES_DIR = '/var/www/html/onm/user/files/from_mail'; if (! -d $FROM_MAIL_FILES_DIR) { mkdir $FROM_MAIL_FILES_DIR; } $parser->output_dir($FROM_MAIL_FILES_DIR); for(my $i = 1; $i <= $nm; $i++){ my $ts=time(); my $seen = $imap->seen($i); my $msize = $imap->list($i); my $msg = $imap->get( $i ) or die $imap->errstr; # Necesario para que parse_data interprete un string $msg = "$msg"; if ($save_mail) { open (F, ">$mail_dir/$ts.msg"); print F "$msg\n"; close F; } %HEAD=(); ($TXT,$HTML) = ('',''); @MAIL_FILES=(); my $prefix = int(rand(100000000)); $parser->output_prefix($prefix); my $entity = $parser->parse_data($msg); if (! $entity) { $self->log('warning',"core-imap4::app_get_mail_imap4:: **ERROR** en MIME PARSE ($i|$nm)"); next; } $self->dump_entity($entity); my %line = (); $line{'Subject'} = $HEAD{'Subject'}; $line{'From'} = $HEAD{'From'}; $line{'From'} =~ s/.+?<(.+)>/$1/; $line{'From'} =~ s/<(.+)>/$1/; # Por si acaso el From solo tiene <email> (sin nombre) $line{'Date'} = $HEAD{'Date'}; $line{'ts'} = $ts; # Necesario para que cambie el hash md5 que identifica el mensaje $self->log('debug',"core-imap4:: LEIDO MSG $i|$nm (size=$msize leido=$seen) >> From=$line{'From'} | Subject=$line{'Subject'}"); #$line{'Message-ID'} = $HEAD{'Message-ID'}; #$line{'cnt'} = $i; $line{'body'} = ''; if ($TXT ne '') { $line{'body'} = $TXT; } elsif ($HTML ne '') { $line{'body'} = $HTML; } $line{'body'} =~ s/\n/ /g; # Elimina RC $line{'body'} =~ s/\r/ /g; # Elimina LF $line{'body'} =~ s/\t/ /g; # Elimina TABS $line{'body'} =~ s/ +/ /g; # Elimina exceso de espacios #-------------------------------------- # a. app_id identification # b. variable detection if defined (S1,B1) my ($app_id,$app_name) = $self->mail_app_mapper($app,\%line); #-------------------------------------- # c. extrafile detection my $APP_FILES_DIR = '/var/www/html/onm/user/files/'.$app_name; if (! -d $APP_FILES_DIR) { mkdir $APP_FILES_DIR; } my $j=1; foreach my $fpath (@MAIL_FILES) { my $f = ''; if ($fpath=~/$FROM_MAIL_FILES_DIR\/(.+)$/) { $f = $prefix.'-'.$1; } $f=~s/\s+//g; `mv \"$fpath\" $APP_FILES_DIR/$f`; $self->log('info',"core-imap4::***DEBUG mv [$j]*** mv $fpath $APP_FILES_DIR"); my $k = '0extrafile'.$j; #my $f = ''; # if ($fpath=~/$FROM_MAIL_FILES_DIR\/(.+)$/) { $f = $1; } $line{$k} = "<html><a href=user/files/$app_name/$f target=\"popup\">$k</a></html>"; $self->log('debug',"core-imap4::***DEBUG [$j]*** $k >> $line{$k}"); $j++ } #-------------------------------------- my %MSG = (); $MSG{'source_line'} = $json->encode(\%line); $MSG{'ts'} = $ts; $MSG{'source_line'} =~ s/","/", "/g; push @RESULT, join (',',$MSG{'ts'},$app_id,$app_name,$MSG{'source_line'}); #-------------------------------------- $imap->delete($i); } if ($nm>0) { my $expunged = $imap->expunge_mailbox($mailbox); } $imap->quit(); undef $imap; } # foreach my $l (@RESULT) { # print "$l\n"; # } return \@RESULT; } #------------------------------------------------------------------------------------------ # test_msg_flow #------------------------------------------------------------------------------------------ sub test_msg_flow { my ($self,$task_cfg_file,$file_msg)=@_; my @RESULT=(); my $app=$self->get_json_config($task_cfg_file); my $parser = new MIME::Parser; my $FROM_MAIL_FILES_DIR = '/var/www/html/onm/user/files/from_mail'; if (! -d $FROM_MAIL_FILES_DIR) { mkdir $FROM_MAIL_FILES_DIR; } $parser->output_dir($FROM_MAIL_FILES_DIR); my $msg = $self->slurp_file($file_msg); %HEAD=(); ($TXT,$HTML) = ('',''); @MAIL_FILES=(); my $prefix = int(rand(100000000)); $parser->output_prefix($prefix); my $entity = $parser->parse_data($msg); if (! $entity) { $self->log('warning',"core-imap4::test_msg_flow:: **ERROR** en MIME PARSE ($file_msg)"); return; } $self->dump_entity($entity); my %line = (); my $ts=time(); $line{'Subject'} = $HEAD{'Subject'}; $line{'From'} = $HEAD{'From'}; $line{'From'} =~ s/.+?<(.+)>/$1/; $line{'From'} =~ s/<(.+)>/$1/; # Por si acaso el From solo tiene <email> (sin nombre) $line{'Date'} = $HEAD{'Date'}; $line{'ts'} = $ts; # Necesario para que cambie el hash md5 que identifica el mensaje $self->log('debug',"core-imap4:: LEIDO MSG ($file_msg) >> From=$line{'From'} | Subject=$line{'Subject'}"); $line{'body'} = ''; if ($TXT ne '') { $line{'body'} = $TXT; } elsif ($HTML ne '') { $line{'body'} = $HTML; } $line{'body'} =~ s/\n/ /g; # Elimina RC $line{'body'} =~ s/\r/ /g; # Elimina LF $line{'body'} =~ s/\t/ /g; # Elimina TABS $line{'body'} =~ s/ +/ /g; # Elimina exceso de espacios #-------------------------------------- # a. app_id identification # b. variable detection if defined (S1,B1) my ($app_id,$app_name) = $self->mail_app_mapper($app,\%line); #-------------------------------------- # c. extrafile detection my $APP_FILES_DIR = '/var/www/html/onm/user/files/'.$app_name; if (! -d $APP_FILES_DIR) { mkdir $APP_FILES_DIR; } my $j=1; foreach my $fpath (@MAIL_FILES) { my $f = ''; if ($fpath=~/$FROM_MAIL_FILES_DIR\/(.+)$/) { $f = $prefix.'-'.$1; } $f=~s/\s+//g; `mv \"$fpath\" $APP_FILES_DIR/$f`; $self->log('info',"core-imap4::***DEBUG mv [$j]*** mv $fpath $APP_FILES_DIR"); my $k = '0extrafile'.$j; $line{$k} = "<html><a href=user/files/$app_name/$f target=\"popup\">$k</a></html>"; $self->log('debug',"core-imap4::***DEBUG [$j]*** $k >> $line{$k}"); $j++ } #-------------------------------------- my $json = JSON->new(); $json = $json->canonical([1]); my %MSG = (); $MSG{'source_line'} = $json->encode(\%line); $MSG{'ts'} = $ts; $MSG{'source_line'} =~ s/","/", "/g; push @RESULT, join (',',$MSG{'ts'},$app_id,$app_name,$MSG{'source_line'}); #-------------------------------------- return \@RESULT; } #------------------------------------------------------------------------------------------- # CORE-IMAP4 >> mail_app_mapper # Asigna los datos recibidos por correo a una app_id # (Siempre se asigna a una app_id. Si no matchea -> default) #------------------------------------------------------------------------------------------- # { # "333333000008" : { # "B1" : "(?i)Application\\s+\\:\\s+(\\S+)", # "From" : "info@s30labs.com", # "Subject" : "ERROR xyz", # "app_name" : "my-App" # "body_format" : "txt" # "host" : "my-host" # } # }, # # B1: Permite extraer una parte del body como la variable B1 en el json de la linea. # S1: Permite extraer una parte del asunto como la variable S1 en el json de la linea. # From: Indica el criterio basado en el From para identificar la app # Subject: Indica el criterio basado en el Subject para identificar la app # body_format: Formato del body almacenado en source_line. Si no existe es el que tenga por defecto # segun el content-type. Si vale 'txt', se eliminan los tags html # app_name: Nombre de la app #------------------------------------------------------------------------------------------- sub mail_app_mapper { my ($self,$app,$line) = @_; my ($ok,$app_id,$app_name,$app_cfg) = (1,'','',{}); #---------------------------------------------------------------------------------------- # a. app_id detection #---------------------------------------------------------------------------------------- foreach my $h (@{$app->[0]->{'mapper'}}) { my @k = keys %$h; $app_id = $k[0]; $ok=1; # Hay que validar From if (exists $h->{$app_id}->{'From'}) { $self->log('info',"core-imap4::mail_app_mapper:: check_from: $app_id >> in rule: $h->{$app_id}->{'From'} rx: $line->{'From'}--"); if ($line->{'From'} ne $h->{$app_id}->{'From'}) { $ok=0; $self->log('debug',"core-imap4::mail_app_mapper:: check_from: $app_id >> ok=$ok >> END"); next; } } # Hay que validar subject if (exists $h->{$app_id}->{'Subject'}) { $self->log('info',"core-imap4::mail_app_mapper:: check_subject: $app_id >> in rule: $h->{$app_id}->{'Subject'} rx: $line->{'Subject'}--"); my $rule_subject = $h->{$app_id}->{'Subject'}; if ($line->{'Subject'} !~ /$rule_subject/) { $ok=0; $self->log('debug',"core-imap4::mail_app_mapper:: check_subject: $app_id >> ok=$ok >> END"); next; } } if ($ok) { $app_name = $h->{$app_id}->{'app_name'}; $app_cfg = $h->{$app_id}; last; } } if (! $ok) { $app_cfg = $app->[0]->{'default'}; ($app_id,$app_name) = ($app->[0]->{'default'}->{'app_id'}, $app->[0]->{'default'}->{'app_name'}); $self->log('info',"core-imap4::mail_app_mapper:: MAIL-MAPPED TO default app_id=$app_id | app_name=$app_name"); } else { $self->log('info',"core-imap4::mail_app_mapper:: MAIL-MAPPED TO app_id=$app_id | app_name=$app_name"); } #---------------------------------------------------------------------------------------- # b. variable detection #---------------------------------------------------------------------------------------- #my $kk=Dumper($app_cfg); #$kk=~s/\n/ /g; #$self->log('debug',"core-imap4::mail_app_mapper:: **DEBUGVAR** ----$kk----"); $line->{'S1'} = ''; if (exists $app_cfg->{'S1'}){ my $exp=$app_cfg->{'S1'}; if ($line->{'Subject'}=~/$exp/g) { $line->{'S1'} = $1; $self->log('info',"core-imap4::mail_app_mapper:: **VAR FOUND** S1=$line->{'S1'} | app_id=$app_id | app_name=$app_name"); } $self->log('debug',"core-imap4::mail_app_mapper:: **DEBUGVAR** S1 exp=$exp | RES=$line->{'S1'} | Subject=$line->{'Subject'} | app_id=$app_id | app_name=$app_name"); } $line->{'B1'} = ''; if (exists $app_cfg->{'B1'}){ my $exp=$app_cfg->{'B1'}; if ($line->{'body'}=~/$exp/g) { $line->{'B1'} = $1; $self->log('info',"core-imap4::mail_app_mapper:: **VAR FOUND** B1=$line->{'B1'} | app_id=$app_id | app_name=$app_name"); } $self->log('debug',"core-imap4::mail_app_mapper:: **DEBUGVAR** B1 exp=$exp | RES=$line->{'B1'} | body=$line->{'body'} | app_id=$app_id | app_name=$app_name"); } #---------------------------------------------------------------------------------------- # c. Convert HTML body to TXT if exists body_format = 'txt' #---------------------------------------------------------------------------------------- if ( (exists $app_cfg->{'body_format'}) && ($app_cfg->{'body_format'}=~/txt/i) ) { my $hs = HTML::Strip->new(); my $body = $line->{'body'}; $line->{'body'} = $hs->parse($body); $hs->eof; } return ($app_id,$app_name); } #------------------------------------------------------------------------------------------- # CORE-IMAP4 >> dump_entity #------------------------------------------------------------------------------------------- sub dump_entity { my ($self,$entity, $name) = @_; if (! defined($name)) { $name = "'anonymous'"; $HEAD{'Subject'} = $entity->head->get('Subject'); $HEAD{'From'} = $entity->head->get('From'); $HEAD{'To'} = $entity->head->get('To'); $HEAD{'Return-Path'} = $entity->head->get('Return-Path'); $HEAD{'Received'} = $entity->head->get('Received'); $HEAD{'Date'} = $entity->head->get('Date'); $HEAD{'Message-ID'} = $entity->head->get('Message-ID'); chomp $HEAD{'Subject'}; chomp $HEAD{'From'}; chomp $HEAD{'To'}; chomp $HEAD{'Return-Path'}; chomp $HEAD{'Received'}; chomp $HEAD{'Date'}; chomp $HEAD{'Message-ID'}; } # Output the body: my @parts = $entity->parts; if (@parts) { # multipart... my $i; foreach $i (0 .. $#parts) { # dump each part... $self->dump_entity($parts[$i], ("$name, part ".(1+$i))); } } else { # single part... # Get MIME type, and display accordingly... my ($type, $subtype) = split('/', $entity->head->mime_type); my $body = $entity->bodyhandle; my $path = $body->path(); # my $path_new = $path; # if ($path_new=~/\s+/) { # $path_new=~s/\s+/_/g; # `mv \"$path\" $path_new`; # $self->log('info',"core-imap4::dump_entity:: ****DEBUG**** mv \"$path\" $path_new"); # } # push @MAIL_FILES, $path_new; push @MAIL_FILES, $path; #Content-Type: text/plain #Content-Type: text/html if ($type =~ /^(text|message)$/) { # text: display it... #print '-'x80,"\n"; #print $entity->head->get('Content-type')."\n"; #print '-'x80,"\n"; #print $body->as_string(); #print '-'x80,"\n"; my $ctype=$entity->head->get('Content-type'); if ($ctype =~ /text\/plain/) { $TXT = $body->as_string(); } elsif ($ctype =~ /text\/html/) { $HTML = $body->as_string(); } else { $self->log('info',"core-imap4::dump_entity:: Content-type DESCONOCIDO ($ctype)"); } } } } 1; __END__
s30labs/cnm
crawler/bin/Crawler/LogManager/App/Email.pm
Perl
gpl-2.0
19,621
<?php /** Indonesian (Bahasa Indonesia) * * See MessagesQqq.php for message documentation incl. usage of parameters * To improve a translation please visit http://translatewiki.net * * @ingroup Language * @file * * @author -iNu- * @author Albertus Aditya * @author Aldnonymous * @author Anakmalaysia * @author ArdWar * @author Bawoor * @author Bennylin * @author Borgx * @author Dosmiin Barsbold * @author Farras * @author Gombang * @author Irwangatot * @author IvanLanin * @author Iwan Novirion * @author J Subhi * @author Kaganer * @author Kenrick95 * @author Mahali syarifuddin * @author McDutchie * @author Meursault2004 * @author Naval Scene * @author Remember the dot * @author Rex * @author Urhixidur * @author לערי ריינהארט */ $separatorTransformTable = array( ',' => '.', '.' => ',' ); $namespaceNames = array( NS_MEDIA => 'Media', NS_SPECIAL => 'Istimewa', NS_TALK => 'Pembicaraan', NS_USER => 'Pengguna', NS_USER_TALK => 'Pembicaraan_Pengguna', NS_PROJECT_TALK => 'Pembicaraan_$1', NS_FILE => 'Berkas', NS_FILE_TALK => 'Pembicaraan_Berkas', NS_MEDIAWIKI => 'MediaWiki', NS_MEDIAWIKI_TALK => 'Pembicaraan_MediaWiki', NS_TEMPLATE => 'Templat', NS_TEMPLATE_TALK => 'Pembicaraan_Templat', NS_HELP => 'Bantuan', NS_HELP_TALK => 'Pembicaraan_Bantuan', NS_CATEGORY => 'Kategori', NS_CATEGORY_TALK => 'Pembicaraan_Kategori', ); $namespaceAliases = array( 'Gambar_Pembicaraan' => NS_FILE_TALK, 'MediaWiki_Pembicaraan' => NS_MEDIAWIKI_TALK, 'Templat_Pembicaraan' => NS_TEMPLATE_TALK, 'Bantuan_Pembicaraan' => NS_HELP_TALK, 'Kategori_Pembicaraan' => NS_CATEGORY_TALK, 'Gambar' => NS_FILE, 'Pembicaraan_Gambar' => NS_FILE_TALK, 'Bicara' => NS_TALK, 'Bicara_Pengguna' => NS_USER_TALK, ); $bookstoreList = array( 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN', 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1', 'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1', 'Bhinneka.com bookstore' => 'http://www.bhinneka.com/Buku/Engine/search.asp?fisbn=$1', 'Gramedia Cyberstore (via Google)' => 'http://www.google.com/search?q=%22ISBN+:+$1%22+%22product_detail%22+site:www.gramediacyberstore.com+OR+site:www.gramediaonline.com+OR+site:www.kompas.com&hl=id', 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1', ); $magicWords = array( 'redirect' => array( '0', '#ALIH', '#REDIRECT' ), 'notoc' => array( '0', '__TANPADAFTARISI__', '__NIRDASI__', '__NOTOC__' ), 'nogallery' => array( '0', '__TANPAGALERI__', '__NIRGAL__', '__NOGALLERY__' ), 'forcetoc' => array( '0', '__PAKSADAFTARISI__', '__PAKSADASI__', '__FORCETOC__' ), 'toc' => array( '0', '__DAFTARISI__', '__DASI__', '__TOC__' ), 'noeditsection' => array( '0', '__TANPASUNTINGANBAGIAN__', '__NIRSUBA__', '__NOEDITSECTION__' ), 'currentmonth' => array( '1', 'BULANKINI', 'BULANKINI2', 'BUKIN', 'BUKIN2', 'CURRENTMONTH', 'CURRENTMONTH2' ), 'currentmonth1' => array( '1', 'BULANKINI1', 'BUKIN1', 'CURRENTMONTH1' ), 'currentmonthname' => array( '1', 'NAMABULANKINI', 'NAMBUKIN', 'CURRENTMONTHNAME' ), 'currentmonthnamegen' => array( '1', 'NAMAJENDERBULANKINI', 'NAMJENBUKIN', 'CURRENTMONTHNAMEGEN' ), 'currentmonthabbrev' => array( '1', 'NAMASINGKATBULANKINI', 'BULANINISINGKAT', 'NAMSINGBUKIN', 'CURRENTMONTHABBREV' ), 'currentday' => array( '1', 'HARIKINI', 'HARKIN', 'CURRENTDAY' ), 'currentday2' => array( '1', 'HARIKINI2', 'HARKIN2', 'CURRENTDAY2' ), 'currentdayname' => array( '1', 'NAMAHARIKINI', 'NAMHARKIN', 'CURRENTDAYNAME' ), 'currentyear' => array( '1', 'TAHUNKINI', 'TAKIN', 'CURRENTYEAR' ), 'currenttime' => array( '1', 'WAKTUKINI', 'WAKIN', 'CURRENTTIME' ), 'currenthour' => array( '1', 'JAMKINI', 'JAKIN', 'CURRENTHOUR' ), 'localmonth' => array( '1', 'BULANLOKAL', 'BULANLOKAL2', 'BULOK', 'BULOK2', 'LOCALMONTH', 'LOCALMONTH2' ), 'localmonth1' => array( '1', 'BULANLOKAL1', 'BULOK1', 'LOCALMONTH1' ), 'localmonthname' => array( '1', 'NAMABULANLOKAL', 'NAMBULOK', 'LOCALMONTHNAME' ), 'localmonthnamegen' => array( '1', 'NAMAJENDERBULANLOKAL', 'NAMJENBULOK', 'LOCALMONTHNAMEGEN' ), 'localmonthabbrev' => array( '1', 'NAMASINGKATBULANLOKAL', 'NAMSINGBULOK', 'LOCALMONTHABBREV' ), 'localday' => array( '1', 'HARILOKAL', 'HALOK', 'LOCALDAY' ), 'localday2' => array( '1', 'HARILOKAL2', 'HALOK2', 'LOCALDAY2' ), 'localdayname' => array( '1', 'NAMAHARILOKAL', 'NAMHALOK', 'LOCALDAYNAME' ), 'localyear' => array( '1', 'TAHUNLOKAL', 'TALOK', 'LOCALYEAR' ), 'localtime' => array( '1', 'WAKTULOKAL', 'WALOK', 'LOCALTIME' ), 'localhour' => array( '1', 'JAMLOKAL', 'JALOK', 'LOCALHOUR' ), 'numberofpages' => array( '1', 'JUMLAHHALAMAN', 'JUMMAN', 'NUMBEROFPAGES' ), 'numberofarticles' => array( '1', 'JUMLAHARTIKEL', 'JUMKEL', 'NUMBEROFARTICLES' ), 'numberoffiles' => array( '1', 'JUMLAHBERKAS', 'JUMKAS', 'NUMBEROFFILES' ), 'numberofusers' => array( '1', 'JUMLAHPENGGUNA', 'JUMPENG', 'NUMBEROFUSERS' ), 'numberofactiveusers' => array( '1', 'JUMLAHPENGGUNAAKTIF', 'JUMPENGTIF', 'NUMBEROFACTIVEUSERS' ), 'numberofedits' => array( '1', 'JUMLAHSUNTINGAN', 'JUMTING', 'NUMBEROFEDITS' ), 'numberofviews' => array( '1', 'JUMLAHTAMPILAN', 'JUMTAM', 'NUMBEROFVIEWS' ), 'pagename' => array( '1', 'NAMAHALAMAN', 'NAMMAN', 'PAGENAME' ), 'pagenamee' => array( '1', 'NAMAHALAMANE', 'NAMMANE', 'PAGENAMEE' ), 'namespace' => array( '1', 'RUANGNAMA', 'RUNAM', 'NAMESPACE' ), 'namespacee' => array( '1', 'RUANGNAMAE', 'RUNAME', 'NAMESPACEE' ), 'talkspace' => array( '1', 'RUANGBICARA', 'RUBIR', 'TALKSPACE' ), 'talkspacee' => array( '1', 'RUANGBICARAE', 'RUBIRE', 'TALKSPACEE' ), 'subjectspace' => array( '1', 'RUANGUTAMA', 'RUANGARTIKEL', 'RUTAMA', 'RUTIKEL', 'SUBJECTSPACE', 'ARTICLESPACE' ), 'subjectspacee' => array( '1', 'RUANGUTAMAE', 'RUANGARTIKELE', 'RUTAMAE', 'RUKELE', 'SUBJECTSPACEE', 'ARTICLESPACEE' ), 'fullpagename' => array( '1', 'NAMAHALAMANLENGKAP', 'NAMALENGKAPHALAMAN', 'NAMMANKAP', 'FULLPAGENAME' ), 'fullpagenamee' => array( '1', 'AMAHALAMANLENGKAPE', 'NAMALENGKAPHALAMANE', 'NAMMANKAPE', 'FULLPAGENAMEE' ), 'subpagename' => array( '1', 'NAMASUBHALAMAN', 'NAMAUPAHALAMAN', 'NAMUMAN', 'SUBPAGENAME' ), 'subpagenamee' => array( '1', 'NAMASUBHALAMANE', 'NAMAUPAHALAMANE', 'NAMUMANE', 'SUBPAGENAMEE' ), 'basepagename' => array( '1', 'NAMAHALAMANDASAR', 'NAMADASARHALAMAN', 'NAMMANSAR', 'BASEPAGENAME' ), 'basepagenamee' => array( '1', 'NAMAHALAMANDASARE', 'NAMADASARHALAMANE', 'NAMMANSARE', 'BASEPAGENAMEE' ), 'talkpagename' => array( '1', 'NAMAHALAMANBICARA', 'NAMMANBIR', 'TALKPAGENAME' ), 'talkpagenamee' => array( '1', 'NAMAHALAMANBICARAE', 'NAMMANBIRE', 'TALKPAGENAMEE' ), 'subjectpagename' => array( '1', 'NAMAHALAMANUTAMA', 'NAMAHALAMANARTIKEL', 'NAMMANTAMA', 'NAMMANTIKEL', 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ), 'subjectpagenamee' => array( '1', 'NAMAHALAMANUTAMAE', 'NAMAHALAMANARTIKELE', 'NAMMANTAMAE', 'NAMMANTIKELE', 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ), 'msg' => array( '0', 'PSN:', 'PESAN:', 'MSG:' ), 'subst' => array( '0', 'GNT:', 'GANTI:', 'SUBST:' ), 'msgnw' => array( '0', 'TPL:', 'MSGNW:' ), 'img_thumbnail' => array( '1', 'jmpl', 'jempol', 'mini', 'miniatur', 'thumbnail', 'thumb' ), 'img_manualthumb' => array( '1', 'jmpl=$1', 'jempol=$1', 'mini=$1', 'miniatur=$1', 'thumbnail=$1', 'thumb=$1' ), 'img_right' => array( '1', 'ka', 'kanan', 'right' ), 'img_left' => array( '1', 'ki', 'kiri', 'left' ), 'img_none' => array( '1', 'nir', 'tanpa', 'none' ), 'img_center' => array( '1', 'pus', 'pusat', 'center', 'centre' ), 'img_framed' => array( '1', 'bing', 'bingkai', 'framed', 'enframed', 'frame' ), 'img_frameless' => array( '1', 'nirbing', 'tanpabingkai', 'frameless' ), 'img_page' => array( '1', 'hal=$1', 'halaman=$1', 'hal $1', 'halaman $1', 'page=$1', 'page $1' ), 'img_upright' => array( '1', 'lurus', 'lurus=$1', 'lurus $1', 'tegak', 'tegak=$1', 'tegak $1', 'upright', 'upright=$1', 'upright $1' ), 'img_border' => array( '1', 'tepi', 'batas', 'border' ), 'img_baseline' => array( '1', 'gada', 'garis_dasar', 'baseline' ), 'img_sub' => array( '1', 'upa', 'sub' ), 'img_top' => array( '1', 'atas', 'top' ), 'img_text_top' => array( '1', 'atek', 'atas-teks', 'text-top' ), 'img_middle' => array( '1', 'tengah', 'middle' ), 'img_bottom' => array( '1', 'bawah', 'bottom' ), 'img_text_bottom' => array( '1', 'batek', 'bawah-teks', 'text-bottom' ), 'img_link' => array( '1', 'pra=$1', 'pranala=$1', 'link=$1' ), 'img_alt' => array( '1', 'al=$1', 'alternatif=$1', 'alt=$1' ), 'sitename' => array( '1', 'NAMASITUS', 'NAMSIT', 'SITENAME' ), 'ns' => array( '0', 'RN:', 'RUNAM:', 'NS:' ), 'localurl' => array( '0', 'URLLOKAL', 'LOCALURL:' ), 'localurle' => array( '0', 'URLLOKALE', 'LOCALURLE:' ), 'server' => array( '0', 'PELADEN', 'SERVER' ), 'servername' => array( '0', 'NAMAPELADEN', 'NAMASERVER', 'NAMPEL', 'SERVERNAME' ), 'scriptpath' => array( '0', 'LOKASISKRIP', 'SCRIPTPATH' ), 'grammar' => array( '0', 'TATABAHASA', 'TASA', 'GRAMMAR:' ), 'gender' => array( '0', 'JANTINA', 'GENDER:' ), 'notitleconvert' => array( '0', '__TANPAKONVERSIJUDUL__', '__NIRKODUL__', '__NOTITLECONVERT__', '__NOTC__' ), 'nocontentconvert' => array( '0', '__TANPAKONVERSIISI__', '__NIRKOSI__', '__NOCONTENTCONVERT__', '__NOCC__' ), 'currentweek' => array( '1', 'MINGGUKINI', 'MIKIN', 'CURRENTWEEK' ), 'currentdow' => array( '1', 'HARIDALAMMINGGU', 'HADAMI', 'CURRENTDOW' ), 'localweek' => array( '1', 'MINGGULOKAL', 'MIKAL', 'LOCALWEEK' ), 'localdow' => array( '1', 'HARIDALAMMINGGULOKAL', 'HADAMIKAL', 'LOCALDOW' ), 'revisionid' => array( '1', 'IDREVISI', 'IREV', 'REVISIONID' ), 'revisionday' => array( '1', 'HARIREVISI', 'HAREV', 'REVISIONDAY' ), 'revisionday2' => array( '1', 'HARIREVISI2', 'HAREV2', 'REVISIONDAY2' ), 'revisionmonth' => array( '1', 'BULANREVISI', 'BUREV', 'REVISIONMONTH' ), 'revisionmonth1' => array( '1', 'BULANREVISI1', 'REVISIONMONTH1' ), 'revisionyear' => array( '1', 'TAHUNREVISI', 'TAREV', 'REVISIONYEAR' ), 'revisiontimestamp' => array( '1', 'STEMPELWAKTUREVISI', 'REKAMWAKTUREVISI', 'REVISIONTIMESTAMP' ), 'revisionuser' => array( '1', 'PENGGUNAREVISI', 'REVISIONUSER' ), 'plural' => array( '0', 'JAMAK:', 'PLURAL:' ), 'fullurl' => array( '0', 'URLLENGKAP:', 'FULLURL:' ), 'fullurle' => array( '0', 'URLLENGKAPE', 'FULLURLE:' ), 'lcfirst' => array( '0', 'AKC:', 'AWALKECIL:', 'LCFIRST:' ), 'ucfirst' => array( '0', 'ABS:', 'AWALBESAR:', 'UCFIRST:' ), 'lc' => array( '0', 'KC:', 'KECIL:', 'HURUFKECIL:', 'LC:' ), 'uc' => array( '0', 'BS:', 'BESAR:', 'HURUFBESAR:', 'UC:' ), 'raw' => array( '0', 'MENTAH:', 'RAW:' ), 'displaytitle' => array( '1', 'JUDULTAMPILAN', 'JUTAM', 'DISPLAYTITLE' ), 'rawsuffix' => array( '1', 'M', 'R' ), 'newsectionlink' => array( '1', '__PRANALABAGIANBARU__', '__PRABABA__', '__NEWSECTIONLINK__' ), 'nonewsectionlink' => array( '1', '_TANPAPRANALABAGIANBARU__', '__NIRPRABABA__', '__NONEWSECTIONLINK__' ), 'currentversion' => array( '1', 'VERSIKINI', 'VERKIN', 'CURRENTVERSION' ), 'urlencode' => array( '0', 'KODEURL:', 'KODU:', 'URLENCODE:' ), 'anchorencode' => array( '0', 'KODEJANGKAR', 'KOJANG', 'ANCHORENCODE' ), 'currenttimestamp' => array( '1', 'STEMPELWAKTUKINI', 'STEMWAKIN', 'CURRENTTIMESTAMP' ), 'localtimestamp' => array( '1', 'STEMPELWAKTULOKAL', 'STEMWAKAL', 'LOCALTIMESTAMP' ), 'directionmark' => array( '1', 'MARKAARAH', 'MARRAH', 'DIRECTIONMARK', 'DIRMARK' ), 'language' => array( '0', '#BAHASA:', '#BHS:', '#LANGUAGE:' ), 'contentlanguage' => array( '1', 'BAHASAISI', 'BHSISI', 'BASI', 'CONTENTLANGUAGE', 'CONTENTLANG' ), 'pagesinnamespace' => array( '1', 'HALAMANDIRUANGNAMA:', 'HALDIRN', 'PAGESINNAMESPACE:', 'PAGESINNS:' ), 'numberofadmins' => array( '1', 'JUMLAHADMIN', 'JUMLAHPENGURUS', 'JUMAD', 'JURUS', 'NUMBEROFADMINS' ), 'formatnum' => array( '0', 'FORMATANGKA', 'FORANG', 'FORMATNUM' ), 'padleft' => array( '0', 'ISIKIRI', 'IKI', 'PADLEFT' ), 'padright' => array( '0', 'ISIKANAN', 'IKA', 'PADRIGHT' ), 'special' => array( '0', 'istimewa', 'spesial', 'special' ), 'defaultsort' => array( '1', 'URUTANBAKU:', 'UBUR:', 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ), 'filepath' => array( '0', 'LOKASIBERKAS:', 'LOBER:', 'FILEPATH:' ), 'tag' => array( '0', 'kata_kunci', 'takun', 'tag' ), 'hiddencat' => array( '1', '__KATEGORITERSEMBUNYI__', '__KATSEM__', '__HIDDENCAT__' ), 'pagesincategory' => array( '1', 'HALAMANDIKATEGORI', 'HALDIKAT', 'PAGESINCATEGORY', 'PAGESINCAT' ), 'pagesize' => array( '1', 'BESARHALAMAN', 'BESMAN', 'PAGESIZE' ), 'index' => array( '1', '__INDEKS__', '__INDEX__' ), 'noindex' => array( '1', '__TANPAINDEKS__', '__NIRDEKS__', '__NOINDEX__' ), 'numberingroup' => array( '1', 'JUMLAHDIKELOMPOK', 'JULDIPOK', 'NUMBERINGROUP', 'NUMINGROUP' ), 'staticredirect' => array( '1', '__PENGALIHANSTATIK__', '__PENGALIHANSTATIS__', '__PETIK__', '__PETIS__', '__STATICREDIRECT__' ), 'protectionlevel' => array( '1', 'TINGKATPERLINDUNGAN', 'TIPER', 'PROTECTIONLEVEL' ), 'formatdate' => array( '0', 'formattanggal', 'formatdate', 'dateformat' ), ); $specialPageAliases = array( 'Activeusers' => array( 'Pengguna_aktif', 'PenggunaAktif' ), 'Allmessages' => array( 'Pesan_sistem', 'PesanSistem' ), 'Allpages' => array( 'Daftar_halaman', 'DaftarHalaman' ), 'Ancientpages' => array( 'Halaman_lama', 'HalamanLama' ), 'Badtitle' => array( 'Judul_yang_buruk' ), 'Blankpage' => array( 'Halaman_kosong', 'HalamanKosong' ), 'Block' => array( 'Blokir_pengguna', 'BlokirPengguna' ), 'Blockme' => array( 'Blokir_saya', 'BlokirSaya' ), 'Booksources' => array( 'Sumber_buku', 'SumberBuku' ), 'BrokenRedirects' => array( 'Pengalihan_rusak', 'PengalihanRusak' ), 'Categories' => array( 'Daftar_kategori', 'DaftarKategori', 'Kategori' ), 'ChangeEmail' => array( 'Ganti_surel', 'GantiSurel' ), 'ChangePassword' => array( 'Ganti_sandi', 'GantiSandi' ), 'ComparePages' => array( 'Bandingkan_halaman', 'BandingkanHalaman' ), 'Confirmemail' => array( 'Konfirmasi_surel', 'KonfirmasiSurel' ), 'Contributions' => array( 'Kontribusi_pengguna', 'KontribusiPengguna', 'Kontribusi' ), 'CreateAccount' => array( 'Buat_akun', 'BuatAkun' ), 'Deadendpages' => array( 'Halaman_buntu', 'HalamanBuntu' ), 'DeletedContributions' => array( 'Kontribusi_yang_dihapus', 'KontribusiDihapus' ), 'Disambiguations' => array( 'Disambiguasi' ), 'DoubleRedirects' => array( 'Pengalihan_ganda', 'PengalihanGanda' ), 'EditWatchlist' => array( 'Sunting_daftar_pantauan' ), 'Emailuser' => array( 'Surel_pengguna', 'SurelPengguna' ), 'Export' => array( 'Ekspor_halaman', 'Ekspor' ), 'Fewestrevisions' => array( 'Perubahan_tersedikit', 'PerubahanTersedikit' ), 'FileDuplicateSearch' => array( 'Pencarian_berkas_duplikat', 'PencarianBerkasDuplikat' ), 'Filepath' => array( 'Lokasi_berkas', 'Lokasi_arsip', 'LokasiArsip' ), 'Import' => array( 'Impor_halaman', 'Impor' ), 'Invalidateemail' => array( 'Batalkan_validasi_surel', 'BatalkanValidasiSurel' ), 'BlockList' => array( 'Daftar_pemblokiran', 'DaftarPemblokiran' ), 'LinkSearch' => array( 'Pranala_luar', 'PranalaLuar', 'Pencarian_pranala', 'PencarianPranala' ), 'Listadmins' => array( 'Daftar_pengurus', 'DaftarPengurus' ), 'Listbots' => array( 'Daftar_bot', 'DaftarBot' ), 'Listfiles' => array( 'Daftar_berkas', 'DaftarBerkas' ), 'Listgrouprights' => array( 'Daftar_hak_kelompok', 'DaftarHakKelompok', 'DaftarHak' ), 'Listredirects' => array( 'Daftar_pengalihan', 'DaftarPengalihan' ), 'Listusers' => array( 'Daftar_pengguna', 'DaftarPengguna' ), 'Lockdb' => array( 'Kunci_basis_data', 'KunciBasisData' ), 'Log' => array( 'Catatan' ), 'Lonelypages' => array( 'Halaman_yatim', 'Halaman_tak_bertuan', 'HalamanYatim', 'HalamanTakBertuan' ), 'Longpages' => array( 'Halaman_panjang', 'HalamanPanjang' ), 'MergeHistory' => array( 'Riwayat_penggabungan', 'RiwayatPenggabungan' ), 'MIMEsearch' => array( 'Pencarian_MIME', 'PencarianMIME' ), 'Mostcategories' => array( 'Kategori_terbanyak', 'KategoriTerbanyak' ), 'Mostimages' => array( 'Berkas_paling_digunakan', 'BerkasPalingDigunakan' ), 'Mostinterwikis' => array( 'Interwiki_terbanyak', 'InterwikiTerbanyak' ), 'Mostlinked' => array( 'Halaman_paling_digunakan', 'HalamanPalingDigunakan' ), 'Mostlinkedcategories' => array( 'Kategori_paling_digunakan', 'KategoriPalingDigunakan' ), 'Mostlinkedtemplates' => array( 'Templat_paling_digunakan', 'TemplatPalingDigunakan' ), 'Mostrevisions' => array( 'Perubahan_terbanyak', 'PerubahanTerbanyak' ), 'Movepage' => array( 'Pindahkan_halaman', 'PindahkanHalaman' ), 'Mycontributions' => array( 'Kontribusi_saya', 'KontribusiSaya' ), 'Mypage' => array( 'Halaman_saya', 'HalamanSaya' ), 'Mytalk' => array( 'Pembicaraan_saya', 'PembicaraanSaya' ), 'Myuploads' => array( 'Unggahan_saya' ), 'Newimages' => array( 'Berkas_baru', 'BerkasBaru' ), 'Newpages' => array( 'Halaman_baru', 'HalamanBaru' ), 'PasswordReset' => array( 'Reset_sandi', 'ResetSandi' ), 'PermanentLink' => array( 'Pranala_permanen' ), 'Popularpages' => array( 'Halaman_populer', 'HalamanPopuler' ), 'Preferences' => array( 'Preferensi' ), 'Prefixindex' => array( 'Indeks_awalan', 'IndeksAwalan' ), 'Protectedpages' => array( 'Halaman_yang_dilindungi', 'HalamanDilindungi' ), 'Protectedtitles' => array( 'Judul_yang_dilindungi', 'JudulDilindungi' ), 'Randompage' => array( 'Halaman_sembarang', 'HalamanSembarang' ), 'Randomredirect' => array( 'Pengalihan_sembarang', 'PengalihanSembarang' ), 'Recentchanges' => array( 'Perubahan_terbaru', 'PerubahanTerbaru', 'RC', 'PT' ), 'Recentchangeslinked' => array( 'Perubahan_terkait', 'PerubahanTerkait' ), 'Revisiondelete' => array( 'Hapus_revisi', 'HapusRevisi' ), 'Search' => array( 'Pencarian', 'Cari' ), 'Shortpages' => array( 'Halaman_pendek', 'HalamanPendek' ), 'Specialpages' => array( 'Halaman_istimewa', 'HalamanIstimewa' ), 'Statistics' => array( 'Statistik' ), 'Tags' => array( 'Tag' ), 'Unblock' => array( 'Pembatalan_pemblokiran', 'PembatalanPemblokiran' ), 'Uncategorizedcategories' => array( 'Kategori_tak_terkategori', 'KategoriTakTerkategori' ), 'Uncategorizedimages' => array( 'Berkas_tak_terkategori', 'BerkasTakTerkategori' ), 'Uncategorizedpages' => array( 'Halaman_tak_terkategori', 'HalamanTakTerkategori' ), 'Uncategorizedtemplates' => array( 'Templat_tak_terkategori', 'TemplatTakTerkategori' ), 'Undelete' => array( 'Pembatalan_penghapusan', 'PembatalanPenghapusan' ), 'Unlockdb' => array( 'Buka_kunci_basis_data', 'BukaKunciBasisData' ), 'Unusedcategories' => array( 'Kategori_kosong', 'KategoriKosong', 'Kategori_tak_terpakai', 'KategoriTakTerpakai' ), 'Unusedimages' => array( 'Berkas_tak_terpakai', 'BerkasTakTerpakai', 'Berkas_tak_digunakan', 'BerkasTakDigunakan' ), 'Unusedtemplates' => array( 'Templat_tak_terpakai', 'TemplatTakTerpakai' ), 'Unwatchedpages' => array( 'Halaman_tak_terpantau', 'HalamanTakTerpantau' ), 'Upload' => array( 'Pengunggahan', 'Pemuatan', 'Unggah' ), 'Userlogin' => array( 'Masuk_log', 'MasukLog' ), 'Userlogout' => array( 'Keluar_log', 'KeluarLog' ), 'Userrights' => array( 'Hak_pengguna', 'HakPengguna' ), 'Version' => array( 'Versi' ), 'Wantedcategories' => array( 'Kategori_yang_diinginkan', 'KategoriDiinginkan' ), 'Wantedfiles' => array( 'Berkas_yang_diinginkan', 'BerkasDiinginkan' ), 'Wantedpages' => array( 'Halaman_yang_diinginkan', 'HalamanDiinginkan' ), 'Wantedtemplates' => array( 'Templat_yang_diinginkan', 'TemplatDiinginkan' ), 'Watchlist' => array( 'Daftar_pantauan', 'DaftarPantauan' ), 'Whatlinkshere' => array( 'Pranala_balik', 'PranalaBalik' ), 'Withoutinterwiki' => array( 'Tanpa_interwiki', 'TanpaInterwiki' ), ); $datePreferences = array( 'default', 'dmy', 'ymd', 'ISO 8601', ); $defaultDateFormat = 'dmy'; $dateFormats = array( 'dmy time' => 'H.i', 'dmy date' => 'j F Y', 'dmy both' => 'j F Y H.i', 'ymd time' => 'H.i', 'ymd date' => 'Y F j', 'ymd both' => 'Y F j H.i', ); $messages = array( # User preference toggles 'tog-underline' => 'Garis bawahi pranala:', 'tog-justify' => 'Ratakan paragraf', 'tog-hideminor' => 'Sembunyikan suntingan kecil di perubahan terbaru', 'tog-hidepatrolled' => 'Sembunyikan suntingan terpatroli di perubahan terbaru', 'tog-newpageshidepatrolled' => 'Sembunyikan halaman terpatroli dari daftar halaman baru', 'tog-extendwatchlist' => 'Kembangkan daftar pantauan untuk menunjukkan semua perubahan, tidak hanya yang terbaru', 'tog-usenewrc' => 'Gunakan tampilan perubahan terbaru tingkat lanjut (memerlukan JavaScript)', 'tog-numberheadings' => 'Beri nomor judul secara otomatis', 'tog-showtoolbar' => 'Perlihatkan bilah alat penyuntingan', 'tog-editondblclick' => 'Sunting halaman dengan klik ganda (JavaScript)', 'tog-editsection' => 'Fungsikan penyuntingan subbagian melalui pranala [sunting]', 'tog-editsectiononrightclick' => 'Fungsikan penyuntingan subbagian dengan mengeklik kanan pada judul bagian (JavaScript)', 'tog-showtoc' => 'Perlihatkan daftar isi (untuk halaman yang mempunyai lebih dari 3 subbagian)', 'tog-rememberpassword' => 'Ingat kata sandi saya di peramban ini (selama $1 {{PLURAL:$1|hari}})', 'tog-watchcreations' => 'Tambahkan halaman yang saya buat ke daftar pantauan', 'tog-watchdefault' => 'Tambahkan halaman yang saya sunting ke daftar pantauan', 'tog-watchmoves' => 'Tambahkan halaman yang saya pindahkan ke daftar pantauan', 'tog-watchdeletion' => 'Tambahkan halaman yang saya hapus ke daftar pantauan', 'tog-minordefault' => 'Tandai semua suntingan sebagai suntingan kecil secara baku', 'tog-previewontop' => 'Perlihatkan pratayang sebelum kotak sunting dan tidak sesudahnya', 'tog-previewonfirst' => 'Perlihatkan pratayang pada suntingan pertama', 'tog-nocache' => 'Nonaktifkan penyinggahan halaman peramban', 'tog-enotifwatchlistpages' => 'Kirimkan saya surel jika suatu halaman yang saya pantau berubah', 'tog-enotifusertalkpages' => 'Kirimkan saya surel jika halaman pembicaraan saya berubah', 'tog-enotifminoredits' => 'Kirimkan saya surel juga pada perubahan kecil', 'tog-enotifrevealaddr' => 'Tampilkan alamat surel saya pada surel notifikasi', 'tog-shownumberswatching' => 'Tunjukkan jumlah pemantau', 'tog-oldsig' => 'Tanda tangan sekarang:', 'tog-fancysig' => 'Perlakukan tanda tangan sebagai teks wiki (tanpa suatu pranala otomatis)', 'tog-showjumplinks' => 'Aktifkan pranala pembantu "langsung ke"', 'tog-uselivepreview' => 'Gunakan pratayang langsung (JavaScript) (eksperimental)', 'tog-forceeditsummary' => 'Ingatkan saya bila kotak ringkasan suntingan masih kosong', 'tog-watchlisthideown' => 'Sembunyikan suntingan saya di daftar pantauan', 'tog-watchlisthidebots' => 'Sembunyikan suntingan bot di daftar pantauan', 'tog-watchlisthideminor' => 'Sembunyikan suntingan kecil di daftar pantauan', 'tog-watchlisthideliu' => 'Sembunyikan suntingan pengguna masuk log di daftar pantauan', 'tog-watchlisthideanons' => 'Sembunyikan suntingan pengguna anonim di daftar pantauan', 'tog-watchlisthidepatrolled' => 'Sembunyikan suntingan terpatroli di daftar pantauan', 'tog-ccmeonemails' => 'Kirimkan saya salinan surel yang saya kirimkan ke orang lain', 'tog-diffonly' => 'Jangan tampilkan isi halaman di bawah perbedaan suntingan', 'tog-showhiddencats' => 'Tampilkan kategori tersembunyi', 'tog-noconvertlink' => 'Matikan konversi judul pranala', 'tog-norollbackdiff' => 'Jangan tampilkan perbedaan setelah melakukan pengembalian', 'tog-useeditwarning' => 'Ingatkan saya bila meninggalkan halaman penyuntingan sebelum menyimpan perubahan', 'underline-always' => 'Selalu', 'underline-never' => 'Tidak pernah', 'underline-default' => 'Kulit atau penjelajah bawaan', # Font style option in Special:Preferences 'editfont-style' => 'Gaya tulisan komputer pada kotak penyuntingan:', 'editfont-default' => 'Bawaan penjelajah web', 'editfont-monospace' => 'Tulisan Monospace', 'editfont-sansserif' => 'Tulisan Sans-serif', 'editfont-serif' => 'Tulisan Serif', # Dates 'sunday' => 'Minggu', 'monday' => 'Senin', 'tuesday' => 'Selasa', 'wednesday' => 'Rabu', 'thursday' => 'Kamis', 'friday' => 'Jumat', 'saturday' => 'Sabtu', 'sun' => 'Min', 'mon' => 'Sen', 'tue' => 'Sel', 'wed' => 'Rab', 'thu' => 'Kam', 'fri' => 'Jum', 'sat' => 'Sab', 'january' => 'Januari', 'february' => 'Februari', 'march' => 'Maret', 'april' => 'April', 'may_long' => 'Mei', 'june' => 'Juni', 'july' => 'Juli', 'august' => 'Agustus', 'september' => 'September', 'october' => 'Oktober', 'november' => 'November', 'december' => 'Desember', 'january-gen' => 'Januari', 'february-gen' => 'Februari', 'march-gen' => 'Maret', 'april-gen' => 'April', 'may-gen' => 'Mei', 'june-gen' => 'Juni', 'july-gen' => 'Juli', 'august-gen' => 'Agustus', 'september-gen' => 'September', 'october-gen' => 'Oktober', 'november-gen' => 'November', 'december-gen' => 'Desember', 'jan' => 'Jan', 'feb' => 'Feb', 'mar' => 'Mar', 'apr' => 'Apr', 'may' => 'Mei', 'jun' => 'Jun', 'jul' => 'Jul', 'aug' => 'Ags', 'sep' => 'Sep', 'oct' => 'Okt', 'nov' => 'Nov', 'dec' => 'Des', 'january-date' => '$1 Januari', 'february-date' => '$1 Februari', 'march-date' => '$1 Maret', 'april-date' => '$1 April', 'may-date' => '$1 Mei', 'june-date' => '$1 Juni', 'july-date' => '$1 Juli', 'august-date' => '$1 Agustus', 'september-date' => '$1 September', 'october-date' => '$1 Oktober', 'november-date' => '$1 November', 'december-date' => '$1 Desember', # Categories related messages 'pagecategories' => '{{PLURAL:$1|Kategori}}', 'category_header' => 'Halaman dalam kategori "$1"', 'subcategories' => 'Subkategori', 'category-media-header' => 'Media dalam kategori "$1"', 'category-empty' => "''Saat ini, tidak terdapat halaman ataupun media dalam kategori ini.''", 'hidden-categories' => '{{PLURAL:$1|Kategori tersembunyi}}', 'hidden-category-category' => 'Kategori tersembunyi', 'category-subcat-count' => '{{PLURAL:$2|Kategori ini memiliki {{PLURAL:$1|$1 subkategori}} berikut, dari total $2.}}', 'category-subcat-count-limited' => 'Kategori ini memiliki {{PLURAL:$1|$1 subkategori}} berikut.', 'category-article-count' => '{{PLURAL:$2|Kategori ini memiliki {{PLURAL:$1|$1 halaman}}, dari total $2.}}', 'category-article-count-limited' => 'Kategori ini memiliki {{PLURAL:$1|$1 halaman}} berikut.', 'category-file-count' => '{{PLURAL:$2|Kategori ini memiliki {{PLURAL:$1|$1 berkas}} berikut, dari total $2.}}', 'category-file-count-limited' => 'Kategori ini memiliki {{PLURAL:$1|$1 berkas}} berikut.', 'listingcontinuesabbrev' => 'samb.', 'index-category' => 'Halaman yang diindeks', 'noindex-category' => 'Halaman yang tidak diindeks', 'broken-file-category' => 'Halaman dengan gambar rusak', 'categoryviewer-pagedlinks' => '($1) ($2)', 'linkprefix' => '/^(.*?)([a-zA-Z\\x80-\\xff]+)$/sD', 'about' => 'Tentang', 'article' => 'Halaman isi', 'newwindow' => '(buka di jendela baru)', 'cancel' => 'Batalkan', 'moredotdotdot' => 'Lainnya...', 'morenotlisted' => 'Selanjutnya...', 'mypage' => 'Halaman', 'mytalk' => 'Pembicaraan', 'anontalk' => 'Pembicaraan IP ini', 'navigation' => 'Navigasi', 'and' => '&#32;dan', # Cologne Blue skin 'qbfind' => 'Pencarian', 'qbbrowse' => 'Navigasi', 'qbedit' => 'Sunting', 'qbpageoptions' => 'Halaman ini', 'qbmyoptions' => 'Halaman saya', 'qbspecialpages' => 'Halaman istimewa', 'faq' => 'FAQ', 'faqpage' => 'Project:FAQ', # Vector skin 'vector-action-addsection' => 'Bagian baru', 'vector-action-delete' => 'Hapus', 'vector-action-move' => 'Pindahkan', 'vector-action-protect' => 'Lindungi', 'vector-action-undelete' => 'Pembatalan penghapusan', 'vector-action-unprotect' => 'Ubah perlindungan', 'vector-simplesearch-preference' => 'Aktifkan bilah pencarian sederhana (hanya kulit Vector)', 'vector-view-create' => 'Buat', 'vector-view-edit' => 'Sunting', 'vector-view-history' => 'Versi terdahulu', 'vector-view-view' => 'Baca', 'vector-view-viewsource' => 'Lihat sumber', 'actions' => 'Tindakan', 'namespaces' => 'Ruang nama', 'variants' => 'Varian', 'navigation-heading' => 'Menu navigasi', 'errorpagetitle' => 'Kesalahan', 'returnto' => 'Kembali ke $1.', 'tagline' => 'Dari {{SITENAME}}', 'help' => 'Bantuan', 'search' => 'Pencarian', 'searchbutton' => 'Cari', 'go' => 'Tuju ke', 'searcharticle' => 'Tuju ke', 'history' => 'Riwayat halaman', 'history_short' => 'Versi terdahulu', 'updatedmarker' => 'diubah sejak kunjungan terakhir saya', 'printableversion' => 'Versi cetak', 'permalink' => 'Pranala permanen', 'print' => 'Cetak', 'view' => 'Baca', 'edit' => 'Sunting', 'create' => 'Buat', 'editthispage' => 'Sunting halaman ini', 'create-this-page' => 'Buat halaman ini', 'delete' => 'Hapus', 'deletethispage' => 'Hapus halaman ini', 'undelete_short' => 'Batal hapus {{PLURAL:$1|$1 suntingan}}', 'viewdeleted_short' => 'Lihat {{PLURAL:$1|$1 suntingan}} yang dihapus', 'protect' => 'Lindungi', 'protect_change' => 'ubah', 'protectthispage' => 'Lindungi halaman ini', 'unprotect' => 'Ubah perlindungan', 'unprotectthispage' => 'Ubah perlindungan halaman ini', 'newpage' => 'Halaman baru', 'talkpage' => 'Bicarakan halaman ini', 'talkpagelinktext' => 'Bicara', 'specialpage' => 'Halaman istimewa', 'personaltools' => 'Peralatan pribadi', 'postcomment' => 'Bagian baru', 'articlepage' => 'Lihat halaman isi', 'talk' => 'Pembicaraan', 'views' => 'Tampilan', 'toolbox' => 'Peralatan', 'userpage' => 'Lihat halaman pengguna', 'projectpage' => 'Lihat halaman proyek', 'imagepage' => 'Lihat halaman berkas', 'mediawikipage' => 'Lihat halaman pesan sistem', 'templatepage' => 'Lihat halaman templat', 'viewhelppage' => 'Lihat halaman bantuan', 'categorypage' => 'Lihat halaman kategori', 'viewtalkpage' => 'Lihat halaman pembicaran', 'otherlanguages' => 'Bahasa lain', 'redirectedfrom' => '(Dialihkan dari $1)', 'redirectpagesub' => 'Halaman pengalihan', 'lastmodifiedat' => 'Halaman ini terakhir diubah pada $2, $1.', 'viewcount' => 'Halaman ini telah diakses sebanyak {{PLURAL:$1|$1 kali}}.<br />', 'protectedpage' => 'Halaman yang dilindungi', 'jumpto' => 'Langsung ke:', 'jumptonavigation' => 'navigasi', 'jumptosearch' => 'cari', 'view-pool-error' => 'Maaf, server sedang sibuk pada saat ini. Terlalu banyak pengguna berusaha melihat halaman ini. Tunggu sebentar sebelum Anda mencoba lagi mengakses halaman ini. $1', 'pool-timeout' => 'Lewat waktu menunggu kunci', 'pool-queuefull' => 'Kumpulan antrean penuh', 'pool-errorunknown' => 'Kesalahan yang tidak diketahui', # All link text and link target definitions of links into project namespace that get used by other message strings, with the exception of user group pages (see grouppage) and the disambiguation template definition (see disambiguations). 'aboutsite' => 'Tentang {{SITENAME}}', 'aboutpage' => 'Project:Perihal', 'copyright' => 'Seluruh teks tersedia sesuai dengan $1.', 'copyrightpage' => '{{ns:project}}:Hak cipta', 'currentevents' => 'Peristiwa terkini', 'currentevents-url' => 'Project:Peristiwa terkini', 'disclaimers' => 'Penyangkalan', 'disclaimerpage' => 'Project:Penyangkalan umum', 'edithelp' => 'Bantuan penyuntingan', 'edithelppage' => 'Help:Penyuntingan', 'helppage' => 'Help:Isi', 'mainpage' => 'Halaman Utama', 'mainpage-description' => 'Halaman Utama', 'policy-url' => 'Project:Kebijakan', 'portal' => 'Portal komunitas', 'portal-url' => 'Project:Portal komunitas', 'privacy' => 'Kebijakan privasi', 'privacypage' => 'Project:Kebijakan privasi', 'badaccess' => 'Kesalahan hak akses', 'badaccess-group0' => 'Anda tidak diizinkan untuk melakukan tindakan yang Anda minta.', 'badaccess-groups' => 'Tindakan yang Anda minta dibatasi untuk pengguna dalam {{PLURAL:$2|kelompok}}: $1.', 'versionrequired' => 'Dibutuhkan MediaWiki versi $1', 'versionrequiredtext' => 'MediaWiki versi $1 dibutuhkan untuk menggunakan halaman ini. Lihat [[Special:Version|halaman versi]]', 'ok' => 'OK', 'pagetitle' => '$1 - {{SITENAME}}', 'pagetitle-view-mainpage' => '{{SITENAME}}', 'backlinksubtitle' => '← $1', 'retrievedfrom' => 'Diperoleh dari "$1"', 'youhavenewmessages' => 'Anda mempunyai $1 ($2).', 'newmessageslink' => 'pesan baru', 'newmessagesdifflink' => 'perubahan terakhir', 'youhavenewmessagesfromusers' => 'Anda memiliki $1 dari {{PLURAL:$3|$3 pengguna lain}} ($2).', 'youhavenewmessagesmanyusers' => 'Anda memiliki $1 dari pengguna lain ($2).', 'newmessageslinkplural' => '{{PLURAL:$1|pesan baru}}', 'newmessagesdifflinkplural' => '{{PLURAL:$1|perubahan}} terakhir', 'youhavenewmessagesmulti' => 'Anda mendapat pesan baru pada $1', 'editsection' => 'sunting', 'editsection-brackets' => '[$1]', 'editold' => 'sunting', 'viewsourceold' => 'lihat sumber', 'editlink' => 'sunting', 'viewsourcelink' => 'lihat sumber', 'editsectionhint' => 'Sunting bagian: $1', 'toc' => 'Daftar isi', 'showtoc' => 'tampilkan', 'hidetoc' => 'sembunyikan', 'collapsible-collapse' => 'Ciutkan', 'collapsible-expand' => 'Kembangkan', 'thisisdeleted' => 'Lihat atau kembalikan $1?', 'viewdeleted' => 'Lihat $1?', 'restorelink' => '{{PLURAL:$1|$1 suntingan}} yang telah dihapus', 'feedlinks' => 'Umpan:', 'feed-invalid' => 'Tipe permintaan umpan tidak tepat.', 'feed-unavailable' => 'Umpan sindikasi tidak tersedia', 'site-rss-feed' => 'Umpan RSS $1', 'site-atom-feed' => 'Umpan Atom $1', 'page-rss-feed' => 'Umpan RSS "$1"', 'page-atom-feed' => 'Umpan Atom "$1"', 'feed-atom' => 'Atom', 'feed-rss' => 'RSS', 'red-link-title' => '$1 (halaman belum tersedia)', 'sort-descending' => 'Urutkan menurun', 'sort-ascending' => 'Urutkan menaik', # Short words for each namespace, by default used in the namespace tab in monobook 'nstab-main' => 'Halaman', 'nstab-user' => 'Pengguna', 'nstab-media' => 'Media', 'nstab-special' => 'Istimewa', 'nstab-project' => 'Proyek', 'nstab-image' => 'Berkas', 'nstab-mediawiki' => 'Pesan', 'nstab-template' => 'Templat', 'nstab-help' => 'Bantuan', 'nstab-category' => 'Kategori', # Main script and global functions 'nosuchaction' => 'Tidak ada tindakan tersebut', 'nosuchactiontext' => 'Tindakan yang diminta oleh URL tersebut tidak valid. Anda mungkin salah mengetikkan URL, atau mengikuti suatu pranala yang tak benar. Hal ini juga mungkin mengindikasikan suatu bug pada perangkat lunak yang digunakan oleh {{SITENAME}}.', 'nosuchspecialpage' => 'Tidak ada halaman istimewa tersebut', 'nospecialpagetext' => '<strong>Anda meminta halaman istimewa yang tidak sah.</strong> Daftar halaman istimewa yang sah dapat dilihat di [[Special:SpecialPages|{{int:specialpages}}]].', # General errors 'error' => 'Kesalahan', 'databaseerror' => 'Kesalahan basis data', 'dberrortext' => 'Ada kesalahan sintaks pada permintaan basis data. Kesalahan ini mungkin menandakan adanya sebuah \'\'bug\'\' dalam perangkat lunak. Permintaan basis data yang terakhir adalah: <blockquote><code>$1</code></blockquote> dari dalam fungsi "<code>$2</code>". Basis data menghasilkan kesalahan "<samp>$3: $4</samp>".', 'dberrortextcl' => 'Ada kesalahan sintaks pada permintaan basis data. Permintaan basis data yang terakhir adalah: "$1" dari dalam fungsi "$2". Basis data menghasilkan kesalahan "$3: $4".', 'laggedslavemode' => 'Peringatan: Halaman mungkin tidak berisi perubahan terbaru.', 'readonly' => 'Basis data dikunci', 'enterlockreason' => 'Masukkan alasan penguncian, termasuk perkiraan kapan kunci akan dibuka', 'readonlytext' => 'Basis data sedang dikunci terhadap masukan baru. Pengurus yang melakukan penguncian memberikan penjelasan sebagai berikut: <p>$1', 'missing-article' => 'Basis data tidak dapat menemukan teks dari halaman yang seharusnya ada, yaitu "$1" $2. Hal ini biasanya disebabkan oleh pranala usang ke revisi terdahulu halaman yang telah dihapuskan. Jika bukan ini penyebabnya, Anda mungkin telah menemukan sebuah bug dalam perangkat lunak. Silakan laporkan hal ini kepada salah seorang [[Special:ListUsers/sysop|Pengurus]], dengan menyebutkan alamat URL yang dituju.', 'missingarticle-rev' => '(revisi#: $1)', 'missingarticle-diff' => '(Beda: $1, $2)', 'readonly_lag' => 'Basis data telah dikunci otomatis selagi basis data sekunder melakukan sinkronisasi dengan basis data utama', 'internalerror' => 'Kesalahan internal', 'internalerror_info' => 'Kesalahan internal: $1', 'fileappenderrorread' => 'Tidak dapat membaca "$1" saat penambahan.', 'fileappenderror' => 'Tidak dapat memasukkan "$1" ke "$2".', 'filecopyerror' => 'Tidak dapat menyalin berkas "$1" ke "$2".', 'filerenameerror' => 'Tidak dapat mengubah nama berkas "$1" menjadi "$2".', 'filedeleteerror' => 'Tidak dapat menghapus berkas "$1".', 'directorycreateerror' => 'Tidak dapat membuat direktori "$1".', 'filenotfound' => 'Tidak dapat menemukan berkas "$1".', 'fileexistserror' => 'Tidak dapat menulis berkas "$1": berkas sudah ada', 'unexpected' => 'Nilai di luar jangkauan: "$1"="$2".', 'formerror' => 'Kesalahan: Tidak dapat mengirimkan formulir', 'badarticleerror' => 'Tindakan ini tidak dapat dilaksanakan di halaman ini.', 'cannotdelete' => 'Halaman atau berkas "$1" tidak dapat dihapus. Mungkin telah dihapus oleh orang lain.', 'cannotdelete-title' => 'Tidak dapat menghapus halaman "$1"', 'delete-hook-aborted' => 'Penghapusan dibatalkan oleh kait parser. Tidak ada keterangan.', 'badtitle' => 'Judul tidak sah', 'badtitletext' => 'Judul halaman yang diminta tidak sah, kosong, atau judul antarbahasa atau antarwiki yang salah sambung.', 'perfcached' => 'Data berikut ini diambil dari singgahan dan mungkin bukan data mutakhir. {{PLURAL:$1||}}$1 hasil maksimal tersedia di tembolok.', 'perfcachedts' => 'Data berikut ini diambil dari singgahan dan terakhir diperbarui pada $1. {{PLURAL:$1||}}$1 hasil maksimal tersedia di tembolok.', 'querypage-no-updates' => 'Pemutakhiran dari halaman ini sedang dimatikan. Data yang ada di sini saat ini tidak akan dimuat ulang.', 'wrong_wfQuery_params' => 'Parameter salah ke wfQuery()<br />Fungsi: $1<br />Permintaan: $2', 'viewsource' => 'Lihat sumber', 'viewsource-title' => 'Lihat sumber untuk $1', 'actionthrottled' => 'Tindakan dibatasi', 'actionthrottledtext' => 'Anda dibatasi untuk melakukan tindakan ini terlalu banyak dalam waktu pendek. Silakan mencoba lagi setelah beberapa menit.', 'protectedpagetext' => 'Halaman ini telah dikunci untuk menghindari penyuntingan atau tindakan lain.', 'viewsourcetext' => 'Anda dapat melihat atau menyalin sumber halaman ini:', 'viewyourtext' => "Anda dapat melihat atau menyalin sumber dari '''suntingan Anda''' ke halaman ini:", 'protectedinterface' => 'Halaman ini memuat teks antarmuka untuk perangkat lunak pada wiki ini, dan dilindungi terhadap penyalahgunaan. Untuk menambah atau mengubah terjemahan pada semua wiki, harap gunakan [//translatewiki.net/ translatewiki.net], proyek pelokalan MediaWiki.', 'editinginterface' => "'''Peringatan:''' Anda menyunting suatu halaman yang digunakan untuk menyediakan teks antarmuka untuk perangkat lunak situs ini. Perubahan teks ini akan memengaruhi tampilan pada antarmuka pengguna untuk pengguna lain di wiki ini. Untuk menambah atau mengubahterjemahan untuk semua wiki, harap gunakan [//translatewiki.net/ translatewiki.net], proyek pelokalan MediaWiki.", 'sqlhidden' => '(Permintaan SQL disembunyikan)', 'cascadeprotected' => 'Halaman ini telah dilindungi dari penyuntingan karena disertakan di {{PLURAL:$1|halaman|halaman-halaman}} berikut yang telah dilindungi dengan opsi "runtun": $2', 'namespaceprotected' => "Anda tak memiliki hak akses untuk menyunting halaman di ruang nama '''$1'''.", 'customcssprotected' => 'Anda tidak memiliki izin untuk menyunting halaman CSS ini, karena berisi pengaturan pribadi pengguna lain.', 'customjsprotected' => 'Anda tidak memiliki izin untuk menyunting halaman JavaScript ini, karena berisi pengaturan pribadi pengguna lain.', 'ns-specialprotected' => 'Halaman pada ruang nama {{ns:special}} tidak dapat disunting.', 'titleprotected' => "Judul ini dilindungi dari pembuatan oleh [[User:$1|$1]]. Alasan yang diberikan adalah ''$2''.", 'filereadonlyerror' => 'Tidak dapat memodifikasi file " $1 " karena file repositori " $2 " adalah pada mode baca-saja. Administrator yang terkunci menawarkan penjelasan ini: " $3 ".', 'invalidtitle-knownnamespace' => 'Judul yang tidak sah dengan ruangnama "$2" dan teks "$3"', 'invalidtitle-unknownnamespace' => 'Judul yang tidak sah dengan nomor ruang nama tidak diketahui $1 dan teks "$2"', 'exception-nologin' => 'Belum masuk log', 'exception-nologin-text' => 'Halaman atau tindakan ini mengharuskan Anda masuk log di wiki ini.', # Virus scanner 'virus-badscanner' => "Kesalahan konfigurasi: pemindai virus tidak dikenal: ''$1''", 'virus-scanfailed' => 'Pemindaian gagal (kode $1)', 'virus-unknownscanner' => 'Antivirus tidak dikenal:', # Login and logout pages 'logouttext' => "'''Anda telah keluar log dari sistem.''' Anda dapat terus menggunakan {{SITENAME}} secara anonim, atau Anda dapat <span class='plainlinks'>[$1 masuk log lagi]</span> sebagai pengguna yang sama atau pengguna yang lain. Perhatikan bahwa beberapa halaman mungkin masih terus menunjukkan bahwa Anda masih masuk log sampai Anda membersihkan singgahan penjelajah web Anda", 'welcomeuser' => 'Selamat datang, $1 !', 'welcomecreation-msg' => 'Akun Anda telah dibuat. Jangan lupa mengatur konfigurasi [[Special:Preferences|preferensi {{SITENAME}}]] Anda.', 'yourname' => 'Nama pengguna:', 'userlogin-yourname' => 'Nama pengguna', 'userlogin-yourname-ph' => 'Masukkan nama pengguna Anda', 'yourpassword' => 'Kata sandi:', 'userlogin-yourpassword' => 'Kata sandi', 'userlogin-yourpassword-ph' => 'Masukkan kata sandi', 'createacct-yourpassword-ph' => 'Masukkan kata sandi', 'yourpasswordagain' => 'Ulangi kata sandi:', 'createacct-yourpasswordagain' => 'Konfirmasi kata sandi', 'createacct-yourpasswordagain-ph' => 'Masukkan lagi kata sandi', 'remembermypassword' => 'Ingat kata sandi saya di komputer ini (selama $1 {{PLURAL:$1|hari|hari}})', 'userlogin-remembermypassword' => 'Biarkan saya tetap masuk', 'userlogin-signwithsecure' => 'Gunakan server aman', 'securelogin-stick-https' => 'Tetap terhubung ke HTTPS setelah masuk', 'yourdomainname' => 'Domain Anda:', 'password-change-forbidden' => 'Anda tidak dapat mengubah kata sandi pada wiki ini.', 'externaldberror' => 'Telah terjadi kesalahan otentikasi basis data eksternal atau Anda tidak diizinkan melakukan kemaskini terhadap akun eksternal Anda.', 'login' => 'Masuk log', 'nav-login-createaccount' => 'Masuk log / buat akun', 'loginprompt' => "Anda harus mengaktifkan ''cookies'' untuk dapat masuk log ke {{SITENAME}}.", 'userlogin' => 'Masuk log / buat akun', 'userloginnocreate' => 'Masuk log', 'logout' => 'Keluar log', 'userlogout' => 'Keluar log', 'notloggedin' => 'Belum masuk log', 'userlogin-noaccount' => 'Belum punya akun?', 'userlogin-joinproject' => 'Join {{SITENAME}}', 'nologin' => "Belum mempunyai akun? '''$1'''.", 'nologinlink' => 'Daftarkan akun baru', 'createaccount' => 'Buat akun baru', 'gotaccount' => "Sudah terdaftar sebagai pengguna? '''$1'''.", 'gotaccountlink' => 'Masuk log', 'userlogin-resetlink' => 'Lupa detail info masuk Anda?', 'userlogin-resetpassword-link' => 'Buat ulang kata sandi', 'helplogin-url' => 'Help:Masuk log', 'userlogin-helplink' => '[[{{MediaWiki:helplogin-url}}|Bantuan masuk log]]', 'createacct-join' => 'Masukkan informasi Anda di bawah ini.', 'createacct-emailrequired' => 'Alamat surel', 'createacct-emailoptional' => 'Alamat surel (opsional)', 'createacct-email-ph' => 'Masukkan alamat surel Anda', 'createaccountmail' => 'Gunakan kata sandi acak sementara dan kirimkan ke surel yang tercantum di bawah', 'createacct-realname' => 'Nama asli (opsional)', 'createaccountreason' => 'Alasan:', 'createacct-reason' => 'Alasan', 'createacct-reason-ph' => 'Mengapa Anda membuat akun lain', 'createacct-captcha' => 'Pemeriksaan keamanan', 'createacct-imgcaptcha-ph' => 'Masukkan teks yang Anda lihat di atas', 'createacct-submit' => 'Buat akun Anda', 'createacct-benefit-heading' => '{{SITENAME}} dibuat oleh orang-orang seperti Anda.', 'createacct-benefit-body1' => '{{PLURAL:$1|suntingan}}', 'createacct-benefit-body2' => '{{PLURAL:$1|halaman}}', 'createacct-benefit-body3' => '{{PLURAL:$1|kontributor}} terakhir', 'badretype' => 'Kata sandi yang Anda masukkan salah.', 'userexists' => 'Nama pengguna yang dimasukkan telah digunakan. Silakan tentukan nama yang lain.', 'loginerror' => 'Kesalahan masuk log', 'createacct-error' => 'Pembuatan akun gagal', 'createaccounterror' => 'Tidak dapat membuat akun: $1', 'nocookiesnew' => "Akun pengguna telah dibuat, tetapi Anda belum masuk log. {{SITENAME}} menggunakan ''cookies'' untuk log pengguna. ''Cookies'' pada penjelajah web Anda dimatikan. Silakan aktifkan dan masuk log kembali dengan nama pengguna dan kata sandi Anda.", 'nocookieslogin' => "{{SITENAME}} menggunakan ''cookies'' untuk log penggunanya. ''Cookies'' pada penjelajah web Anda dimatikan. Silakan aktifkan dan coba lagi.", 'nocookiesfornew' => 'Akun pengguna tidak dibuat karena kami tidak dapat memastikan sumbernya. Pastikan Anda telah mengaktifkan kuki, lalu muat ulang halaman ini dan coba lagi.', 'nocookiesforlogin' => '{{int:nocookieslogin}}', 'noname' => 'Nama pengguna yang Anda masukkan tidak sah.', 'loginsuccesstitle' => 'Berhasil masuk log', 'loginsuccess' => "'''Anda sekarang masuk log di {{SITENAME}} sebagai \"\$1\".'''", 'nosuchuser' => 'Tidak ada pengguna dengan nama "$1". Nama pengguna membedakan kapitalisasi. Periksa kembali ejaan Anda, atau [[Special:UserLogin/signup|buat akun baru]].', 'nosuchusershort' => 'Tidak ada pengguna dengan nama "$1". Silakan periksa kembali ejaan Anda.', 'nouserspecified' => 'Anda harus memasukkan nama pengguna.', 'login-userblocked' => 'Pengguna ini diblokir. Tidak diizinkan/diperbolehkan untuk masuk log.', 'wrongpassword' => 'Kata sandi yang Anda masukkan salah. Silakan coba lagi.', 'wrongpasswordempty' => 'Anda tidak memasukkan kata sandi. Silakan coba lagi.', 'passwordtooshort' => 'Kata sandi paling tidak harus terdiri dari {{PLURAL:$1|1 karakter|$1 karakter}}.', 'password-name-match' => 'Kata sandi Anda harus berbeda dari nama pengguna Anda.', 'password-login-forbidden' => 'Penggunaan nama pengguna dan sandi ini telah dilarang.', 'mailmypassword' => 'Kirim kata sandi baru', 'passwordremindertitle' => 'Peringatan kata sandi dari {{SITENAME}}', 'passwordremindertext' => 'Seseorang (mungkin Anda, dari alamat IP $1) meminta kata sandi baru untuk {{SITENAME}} ($4). Kata sandi sementara untuk pengguna "$2" telah dibuatkan dan diset menjadi "$3". Jika memang Anda yang mengajukan permintaan ini, Anda perlu masuk log dan memilih kata sandi baru sekarang. Kata sandi sementara Anda akan kedaluwarsa dalam waktu {{PLURAL:$5|satu hari|$5 hari}}. Jika orang lain yang melakukan permintaan ini, atau jika Anda telah mengingat kata sandi Anda dan akan tetap menggunakan kata sandi tersebut, silakan abaikan pesan ini dan tetap gunakan kata sandi lama Anda.', 'noemail' => 'Tidak ada alamat surel yang tercatat untuk pengguna "$1".', 'noemailcreate' => 'Anda perlu menyediakan alamat surel yang sah', 'passwordsent' => 'Kata sandi baru telah dikirimkan ke alamat surel yang didaftarkan untuk "$1". Silakan masuk log kembali setelah menerima surel tersebut.', 'blocked-mailpassword' => 'Alamat IP Anda diblokir dari penyuntingan dan karenanya tidak diizinkan menggunakan fungsi pengingat kata sandi untuk mencegah penyalahgunaan.', 'eauthentsent' => 'Sebuah surel untuk konfirmasi telah dikirim ke alamat surel. Anda harus mengikuti instruksi di dalam surel tersebut untuk melakukan konfirmasi bahwa alamat tersebut adalah benar kepunyaan Anda. {{SITENAME}} tidak akan mengaktifkan fitur surel jika langkah ini belum dilakukan.', 'throttled-mailpassword' => 'Suatu pengingat kata sandi telah dikirimkan dalam {{PLURAL:$1|$1 jam}} terakhir. Untuk menghindari penyalahgunaan, hanya satu kata sandi yang akan dikirimkan setiap {{PLURAL:$1|$1 jam}}.', 'mailerror' => 'Kesalahan dalam mengirimkan surel: $1', 'acct_creation_throttle_hit' => 'Pengunjung wiki ini dengan alamat IP yang sama dengan Anda telah membuat {{PLURAL:$1|1 akun|$1 akun}} dalam satu hari terakhir, hingga jumlah maksimum yang diijinkan. Karenanya, pengunjung dengan alamat IP ini tidak dapat lagi membuat akun lain untuk sementara.', 'emailauthenticated' => 'Alamat surel Anda telah dikonfirmasi pada $3, $2.', 'emailnotauthenticated' => 'Alamat surel Anda belum dikonfirmasi. Sebelum dikonfirmasi Anda tidak bisa menggunakan fitur surel.', 'noemailprefs' => 'Anda harus memasukkan alamat surel di preferensi Anda untuk dapat menggunakan fitur-fitur ini.', 'emailconfirmlink' => 'Konfirmasikan alamat surel Anda', 'invalidemailaddress' => 'Alamat surel ini tidak dapat diterima karena formatnya tidak sesuai. Harap masukkan alamat surel dalam format yang benar atau kosongkan isian tersebut.', 'cannotchangeemail' => 'Alamat surel akun tidak dapat diubah di wiki ini.', 'emaildisabled' => 'Situs ini tidak dapat mengirim surel.', 'accountcreated' => 'Akun dibuat', 'accountcreatedtext' => 'Akun pengguna untuk $1 telah dibuat.', 'createaccount-title' => 'Pembuatan akun untuk {{SITENAME}}', 'createaccount-text' => 'Seseorang telah membuat sebuah akun untuk alamat surel Anda di {{SITENAME}} ($4) dengan nama "$2" dan kata sandi "$3". Anda dianjurkan untuk masuk log dan mengganti kata sandi Anda sekarang. Anda dapat mengabaikan pesan ini jika akun ini dibuat karena suatu kesalahan.', 'usernamehasherror' => 'Nama pengguna tidak bisa mengandung tanda pagar', 'login-throttled' => 'Anda telah berkali-kali mencoba masuk log. Silakan menunggu sebelum mencoba lagi.', 'login-abort-generic' => 'Proses masuk Anda tidak berhasil - Dibatalkan', 'loginlanguagelabel' => 'Bahasa: $1', 'suspicious-userlogout' => 'Permintaan Anda untuk keluar log ditolak karena tampaknya dikirim oleh penjelajah yang rusak atau proksi penyinggah.', # Email sending 'php-mail-error-unknown' => 'Kesalahan yang tidak dikenal dalam fungsi mail() PHP', 'user-mail-no-addy' => 'Mencoba mengirimkan surel tanpa alamat surel.', 'user-mail-no-body' => 'Mencoba untuk mengirim surel kosong atau terlalu pendek.', # Change password dialog 'resetpass' => 'Ganti kata sandi', 'resetpass_announce' => 'Anda telah masuk log dengan kode sementara yang dikirim melalui surel. Untuk melanjutkan, Anda harus memasukkan kata sandi baru di sini:', 'resetpass_text' => '<!-- Tambahkan teks di sini -->', 'resetpass_header' => 'Ganti kata sandi akun', 'oldpassword' => 'Kata sandi lama:', 'newpassword' => 'Kata sandi baru:', 'retypenew' => 'Ketik ulang kata sandi baru:', 'resetpass_submit' => 'Atur kata sandi dan masuk log', 'resetpass_success' => 'Kata sandi Anda telah berhasil diubah! Sekarang memproses masuk log Anda...', 'resetpass_forbidden' => 'Kata sandi tidak dapat diubah', 'resetpass-no-info' => 'Anda harus masuk log untuk mengakses halaman ini secara langsung.', 'resetpass-submit-loggedin' => 'Ganti kata sandi', 'resetpass-submit-cancel' => 'Batalkan', 'resetpass-wrong-oldpass' => 'Kata sandi tidak sah. Anda mungkin telah berhasil mengganti kata sandi Anda atau telah meminta kata sandi sementara yang baru.', 'resetpass-temp-password' => 'Kata sandi sementara:', 'resetpass-abort-generic' => 'Perubahan kata sandi telah dibatalkan oleh ekstensi.', # Special:PasswordReset 'passwordreset' => 'Setel ulang sandi', 'passwordreset-legend' => 'Setel ulang sandi', 'passwordreset-disabled' => 'Penyetelan ulang sandi telah dimatikan di wiki ini.', 'passwordreset-emaildisabled' => 'Fitur surel telah dinonaktifkan pada wiki ini.', 'passwordreset-username' => 'Nama pengguna:', 'passwordreset-domain' => 'Domain:', 'passwordreset-capture' => 'Lihat surel yang dihasilkan?', 'passwordreset-capture-help' => 'Jika Anda mencentang kotak ini, surel (dengan kata sandi sementara) akan ditampilkan ke Anda dan juga dikirim ke pengguna.', 'passwordreset-email' => 'Alamat surel:', 'passwordreset-emailtitle' => 'Detail akun di {{SITENAME}}', 'passwordreset-emailtext-ip' => 'Seseorang (mungkin Anda, dari alamat IP $1) meminta pengingat detail akun untuk {{SITENAME}} ($4). {{PLURAL:$3|Akun|Akun-akun}} berikut terkait dengan alamat surel ini: $2 {{PLURAL:$3|Sandi sementara}} berikut akan kedaluwarsa dalam {{PLURAL:$5|$5 hari}}. Anda harus masuk dan memilih sandi baru sekarang. Jika orang lain membuat permintaan ini atau jika Anda ingat sandi asli dan tidak lagi ingin mengubahnya, Anda dapat mengabaikan pesan ini dan terus menggunakan sandi lama.', 'passwordreset-emailtext-user' => 'Seseorang (mungkin Anda, dari alamat IP $1) meminta pengingat detail akun untuk {{SITENAME}} ($4). {{PLURAL:$3|Akun|Akun-akun}} berikut terkait dengan alamat surel ini: $2 {{PLURAL:$3|Sandi sementara}} berikut akan kedaluwarsa dalam {{PLURAL:$5|$5 hari}}. Anda harus masuk dan memilih sandi baru sekarang. Jika orang lain membuat permintaan ini atau jika Anda ingat sandi asli dan tidak lagi ingin mengubahnya, Anda dapat mengabaikan pesan ini dan terus menggunakan sandi lama.', 'passwordreset-emailelement' => 'Nama pengguna: $1 Sandi sementara: $2', 'passwordreset-emailsent' => 'Surel setel ulang kata sandi telah dikirimkan.', 'passwordreset-emailsent-capture' => 'Surel setel ulang kata sandi telah dikirim, yang ditampilkan di bawah.', 'passwordreset-emailerror-capture' => 'Surel setel ulang kata sandi telah dibuat, yang ditampilkan di bawah, namun pengiriman pada {{GENDER:$2|pengguna}} gagal: $1', # Special:ChangeEmail 'changeemail' => 'Ubah alamat surel', 'changeemail-header' => 'Ubah alamat surel akun', 'changeemail-text' => 'Selesaikan formulir ini untuk mengubah alamat surel Anda. Anda perlu memasukkan sandi untuk mengkonfirmasi perubahan ini.', 'changeemail-no-info' => 'Anda harus masuk log untuk mengakses halaman ini secara langsung.', 'changeemail-oldemail' => 'Alamat surel saat ini:', 'changeemail-newemail' => 'Alamat surel baru:', 'changeemail-none' => '(tidak ada)', 'changeemail-password' => 'Sandi {{SITENAME}} Anda:', 'changeemail-submit' => 'Ubah surel', 'changeemail-cancel' => 'Batalkan', # Edit page toolbar 'bold_sample' => 'Teks ini akan dicetak tebal', 'bold_tip' => 'Teks tebal', 'italic_sample' => 'Teks ini akan dicetak miring', 'italic_tip' => 'Teks miring', 'link_sample' => 'Judul pranala', 'link_tip' => 'Pranala internal', 'extlink_sample' => 'http://www.example.com judul pranala', 'extlink_tip' => 'Pranala luar (jangan lupa awalan http:// )', 'headline_sample' => 'Teks judul', 'headline_tip' => 'Subbagian tingkat 1', 'nowiki_sample' => 'Masukkan teks yang tidak akan diformat di sini', 'nowiki_tip' => 'Abaikan pemformatan wiki', 'image_sample' => 'Contoh.jpg', 'image_tip' => 'Cantumkan berkas', 'media_sample' => 'Contoh.ogg', 'media_tip' => 'Pranala berkas media', 'sig_tip' => 'Tanda tangan Anda dengan tanda waktu', 'hr_tip' => 'Garis horisontal', # Edit pages 'summary' => 'Ringkasan:', 'subject' => 'Subjek/judul:', 'minoredit' => 'Ini adalah suntingan kecil.', 'watchthis' => 'Pantau halaman ini', 'savearticle' => 'Simpan halaman', 'preview' => 'Pratayang', 'showpreview' => 'Lihat pratayang', 'showlivepreview' => 'Pratayang langsung', 'showdiff' => 'Lihat perubahan', 'anoneditwarning' => "'''Peringatan:''' Anda tidak terdaftar masuk. Alamat IP Anda akan tercatat dalam sejarah (versi terdahulu) halaman ini.", 'anonpreviewwarning' => "''Anda belum masuk log. Menyimpan halaman akan menyebabkan alamat IP Anda tercatat pada riwayat suntingan laman ini.''", 'missingsummary' => "'''Peringatan:''' Anda tidak memasukkan ringkasan penyuntingan. Jika Anda kembali menekan tombol Simpan, suntingan Anda akan disimpan tanpa ringkasan penyuntingan.", 'missingcommenttext' => 'Harap masukkan komentar di bawah ini.', 'missingcommentheader' => "''Peringatan:''' Anda belum memberikan subjek atau judul untuk komentar Anda. Jika Anda kembali menekan \"{{int:savearticle}}\", suntingan Anda akan disimpan tanpa komentar tersebut.", 'summary-preview' => 'Pratayang ringkasan:', 'subject-preview' => 'Pratayang subyek/tajuk:', 'blockedtitle' => 'Pengguna diblokir', 'blockedtext' => "'''Nama pengguna atau alamat IP Anda telah diblokir.''' Blokir dilakukan oleh $1. Alasan yang diberikan adalah ''$2''. * Diblokir sejak: $8 * Blokir kedaluwarsa pada: $6 * Sasaran pemblokiran: $7 Anda dapat menghubungi $1 atau [[{{MediaWiki:Grouppage-sysop}}|pengurus lainnya]] untuk membicarakan hal ini. Anda tidak dapat menggunakan fitur 'Kirim surel ke pengguna ini' kecuali Anda telah memasukkan alamat surel yang sah di [[Special:Preferences|preferensi akun]] dan Anda tidak diblokir untuk menggunakannya. Alamat IP Anda adalah $3, dan ID pemblokiran adalah $5. Tolong sertakan salah satu atau kedua informasi ini pada setiap pertanyaan yang Anda buat.", 'autoblockedtext' => 'Alamat IP Anda telah terblokir secara otomatis karena digunakan oleh pengguna lain, yang diblokir oleh $1. Pemblokiran dilakukan atas alasan: :\'\'$2\'\' * Diblokir sejak: $8 * Blokir kedaluwarsa pada: $6 * Sasaran pemblokiran: $7 Anda dapat menghubungi $1 atau [[{{MediaWiki:Grouppage-sysop}}|pengurus lainnya]] untuk membicarakan hal ini. Anda tidak dapat menggunakan fitur "kirim surel ke pengguna ini" kecuali Anda telah memasukkan alamat surel yang sah di [[Special:Preferences|preferensi akun]] Anda dan Anda tidak diblokir untuk menggunakannya. Alamat IP Anda saat ini adalah $3, dan ID pemblokiran adalah #$5. Tolong sertakan informasi-informasi ini dalam setiap pertanyaan Anda.', 'blockednoreason' => 'tidak ada alasan yang diberikan', 'whitelistedittext' => 'Anda harus $1 untuk dapat menyunting halaman.', 'confirmedittext' => 'Anda harus mengkonfirmasikan dulu alamat surel Anda sebelum menyunting halaman. Harap masukkan dan validasikan alamat surel Anda melalui [[Special:Preferences|halaman preferensi pengguna]] Anda.', 'nosuchsectiontitle' => 'Bagian tidak ditemukan', 'nosuchsectiontext' => 'Anda mencoba menyunting suatu subbagian yang tidak ada. Subbagian ini mungkin dipindahkan atau dihapus ketika Anda membukanya.', 'loginreqtitle' => 'Harus masuk log', 'loginreqlink' => 'masuk log', 'loginreqpagetext' => 'Anda harus $1 untuk dapat melihat halaman lainnya.', 'accmailtitle' => 'Kata sandi telah terkirim.', 'accmailtext' => "Sebuah kata sandi acak untuk [[User talk:$1|$1]] telah dibuat dan dikirimkan ke $2. Kata sandi untuk akun baru ini dapat diubah di halaman ''[[Special:ChangePassword|pengubahan kata sandi]]'' setelah masuk log.", 'newarticle' => '(Baru)', 'newarticletext' => "Anda mengikuti pranala ke halaman yang belum tersedia. Untuk membuat halaman tersebut, ketiklah isi halaman di kotak di bawah ini (lihat [[{{MediaWiki:Helppage}}|halaman bantuan]] untuk informasi lebih lanjut). Jika Anda tanpa sengaja sampai ke halaman ini, klik tombol '''back''' di penjelajah web Anda.", 'anontalkpagetext' => "----''Ini adalah halaman pembicaraan seorang pengguna anonim yang belum membuat akun atau tidak menggunakannya. Dengan demikian, kami terpaksa harus memakai alamat IP yang bersangkutan untuk mengidentifikasikannya. Alamat IP seperti ini mungkin dipakai bersama oleh beberapa pengguna yang berbeda. Jika Anda adalah seorang pengguna anonim dan merasa mendapatkan komentar-komentar yang tidak relevan yang ditujukan langsung kepada Anda, silakan [[Special:UserLogin/signup|membuat akun]] atau [[Special:UserLogin|masuk log]] untuk menghindari kerancuan dengan pengguna anonim lainnya di lain waktu.''", 'noarticletext' => 'Saat ini tidak ada teks di halaman ini. Anda dapat [[Special:Search/{{PAGENAME}}|melakukan pencarian untuk judul halaman ini]] di halaman-halaman lain, <span class="plainlinks">[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} mencari log terkait], atau [{{fullurl:{{FULLPAGENAME}}|action=edit}} menyunting halaman ini]</span>.', 'noarticletext-nopermission' => '!Saat ini tidak ada teks di halaman ini. Anda dapat [[Special:Search/{{PAGENAME}}|melakukan pencarian untuk judul halaman ini]] di halaman-halaman lain, atau <span class="plainlinks">[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} mencari log terkait]</span>, tapi Anda tidak memiliki izin untuk membuat halaman ini', 'missing-revision' => 'Revisi #$1 halaman berjudul "{{PAGENAME}}" tidak eksks. Hal ini biasanya disebabkan oleh tautan versi terdahulu menuju halaman yang sudah dihapus. Rinciannya dapat ditemukan di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan].', 'userpage-userdoesnotexist' => 'Akun pengguna "<nowiki>$1</nowiki>" tidak terdaftar.', 'userpage-userdoesnotexist-view' => 'Pengguna "$1" tidak terdaftar.', 'blocked-notice-logextract' => 'Pengguna ini sedang diblokir. Entri log pemblokiran terakhir tersedia di bawah ini sebagai rujukan.', 'clearyourcache' => "'''Catatan:''' Setelah menyimpan, Anda mungkin harus memintas singgahan peramban Anda untuk melihat perubahan. * '''Firefox / Safari:''' Tahan ''Shift'' sambil mengeklik ''Reload'', atau tekan ''Ctrl-F5'' atau ''Ctrl-R'' (''⌘-R'' di Mac) * '''Google Chrome:''' Tekan ''Ctrl-Shift-R'' (''⌘-Shift-R'' di Mac) * '''Internet Explorer:''' Tahan ''Ctrl'' sambl mengeklik ''Refresh'', atau tekan ''Ctrl-F5'' * '''Opera:''' Bersihkan tembolok di ''Tools → Preferences''", 'usercssyoucanpreview' => "'''Tips:''' Gunakan tombol \"{{int:showpreview}}\" untuk menguji CSS baru Anda sebelum menyimpannya.", 'userjsyoucanpreview' => "'''Tips:''' Gunakan tombol \"{{int:showpreview}}\" untuk menguji JS baru Anda sebelum menyimpannya.", 'usercsspreview' => "'''Ingatlah bahwa Anda sedang menampilkan pratayang dari CSS Anda. Pratayang ini belum disimpan!'''", 'userjspreview' => "'''Ingatlah bahwa yang Anda lihat hanyalah pratayang JavaScript Anda, dan bahwa pratayang tersebut belum disimpan!'''", 'sitecsspreview' => "'''Ingatlah bahwa Anda hanya menampilkan pratayang dari CSS ini.''' '''Perubahan belum disimpan!'''", 'sitejspreview' => "'''Ingatlah bahwa Anda hanya menampilkan pratayang dari kode JavaScript ini.''' '''Perubahan belum disimpan!'''", 'userinvalidcssjstitle' => "'''Peringatan:''' Kulit \"\$1\" tidak ditemukan. Harap diingat bahwa halaman .css dan .js menggunakan huruf kecil, contoh {{ns:user}}:Foo/vector.css dan bukannya {{ns:user}}:Foo/Vector.css.", 'updated' => '(Diperbarui)', 'note' => "'''Catatan:'''", 'previewnote' => "'''Ingatlah bahwa ini hanya pratayang.''' Perubahan Anda belum disimpan!", 'continue-editing' => 'Lanjutkan penyuntingan', 'previewconflict' => 'Pratayang ini mencerminkan teks pada bagian atas kotak suntingan teks sebagaimana akan terlihat bila Anda menyimpannya.', 'session_fail_preview' => "'''Maaf, kami tidak dapat mengolah suntingan Anda akibat terhapusnya data sesi. Silakan coba sekali lagi. Jika masih tidak berhasil, cobalah [[Special:UserLogout|keluar lo]]g dan masuk log kembali.'''", 'session_fail_preview_html' => "'''Kami tidak dapat memproses suntingan Anda karena hilangnya data sesi.''' ''Karena {{SITENAME}} mengizinkan penggunaan HTML mentah, pratayang telah disembunyikan sebagai pencegahan terhadap serangan JavaScript.'' '''Jika ini merupakan upaya suntingan yang sahih, silakan coba lagi. Jika masih tetap tidak berhasil, cobalah [[Special:UserLogout|keluar log]] dan masuk kembali.'''", 'token_suffix_mismatch' => "'''Suntingan Anda ditolak karena aplikasi klien Anda mengubah karakter tanda baca pada suntingan.''' Suntingan tersebut ditolak untuk mencegah kesalahan pada teks halaman. Hal ini kadang terjadi jika Anda menggunakan layanan proxy anonim berbasis web yang bermasalah.", 'edit_form_incomplete' => "'''Beberapa bagian dari formulir suntingan tidak mencapai server; periksa ulang apakah suntingan Anda tetap utuh dan coba lagi.'''", 'editing' => 'Menyunting $1', 'creating' => 'Membuat $1', 'editingsection' => 'Menyunting $1 (bagian)', 'editingcomment' => 'Menyunting $1 (bagian baru)', 'editconflict' => 'Konflik penyuntingan: $1', 'explainconflict' => "Orang lain telah menyunting halaman ini sejak Anda mulai menyuntingnya. Bagian atas teks ini mengandung teks halaman saat ini. Perubahan yang Anda lakukan ditunjukkan pada bagian bawah teks. Anda hanya perlu menggabungkan perubahan Anda dengan teks yang telah ada. '''Hanya''' teks pada bagian atas halamanlah yang akan disimpan apabila Anda menekan \"{{int:savearticle}}\".", 'yourtext' => 'Teks Anda', 'storedversion' => 'Versi tersimpan', 'nonunicodebrowser' => "'''Peringatan: Penjelajah web Anda tidak mendukung unicode.''' Telah terdapat sebuah solusi agar Anda dapat menyunting halaman dengan aman: karakter non-ASCII akan muncul dalam kotak edit sebagai kode heksadesimal.", 'editingold' => "'''Peringatan: Anda menyunting revisi lama suatu halaman. Jika Anda menyimpannya, perubahan-perubahan yang dibuat sejak revisi ini akan hilang.'''", 'yourdiff' => 'Perbedaan', 'copyrightwarning' => "Perhatikan bahwa semua kontribusi terhadap {{SITENAME}} dianggap dilisensikan sesuai dengan $2 (lihat $1 untuk informasi lebih lanjut). Jika Anda tidak ingin tulisan Anda disunting dan disebarkan ke halaman web yang lain, jangan kirimkan ke sini.<br />Anda juga berjanji bahwa ini adalah hasil karya Anda sendiri, atau disalin dari sumber milik umum atau sumber bebas yang lain. '''JANGAN KIRIMKAN KARYA YANG DILINDUNGI HAK CIPTA TANPA IZIN!'''", 'copyrightwarning2' => "Perhatikan bahwa semua kontribusi terhadap {{SITENAME}} dapat disunting, diubah, atau dihapus oleh penyumbang lainnya. Jika Anda tidak ingin tulisan Anda disunting orang lain, jangan kirimkan ke sini.<br />Anda juga berjanji bahwa ini adalah hasil karya Anda sendiri, atau disalin dari sumber milik umum atau sumber bebas yang lain (lihat $1 untuk informasi lebih lanjut). '''JANGAN KIRIMKAN KARYA YANG DILINDUNGI HAK CIPTA TANPA IZIN!'''", 'longpageerror' => "'''KESALAHAN: Teks yang Anda kirimkan sebesar $1 kilobita, yang berarti lebih besar daripada jumlah maksimum $2 kilobita. Teks tidak dapat disimpan.'''", 'readonlywarning' => "'''PERINGATAN: Basis data sedang dikunci karena pemeliharaan, sehingga saat ini Anda tidak dapat menyimpan hasil suntingan Anda.''' Anda mungkin perlu menyalin teks suntingan Anda ini dan menyimpannya ke sebuah berkas teks dan memuatkannya lagi kemudian. Pengurus yang mengunci basis data memberikan penjelasan berikut: $1", 'protectedpagewarning' => "'''Peringatan: Halaman ini sedang dilindungi sehingga hanya pengguna dengan hak akses pengurus yang dapat menyuntingnya.''' Entri catatan terakhir disediakan di bawah untuk referensi:", 'semiprotectedpagewarning' => "'''Catatan:''' Halaman ini sedang dilindungi, sehingga hanya pengguna terdaftar yang bisa menyuntingnya. Entri catatan terakhir disediakan di bawah untuk referensi:", 'cascadeprotectedwarning' => "'''PERINGATAN:''' Halaman ini sedang dilindungi sehingga hanya pengguna dengan hak akses pengurus saja yang dapat menyuntingnya karena disertakan dalam {{PLURAL:$1|halaman|halaman-halaman}} berikut yang telah dilindungi dengan opsi 'pelindungan runtun':", 'titleprotectedwarning' => "'''Peringatan: Halaman ini telah dilindungi sehingga diperlukan [[Special:ListGroupRights|hak khusus]] untuk membuatnya.''' Entri catatan terakhir disediakan di bawah untuk referensi:", 'templatesused' => '{{PLURAL:$1|Templat|Templat}} yang digunakan di halaman ini:', 'templatesusedpreview' => '{{PLURAL:$1|Templat|Templat}} yang digunakan di pratayang ini:', 'templatesusedsection' => '{{PLURAL:$1|Templat|Templat}} yang digunakan di bagian ini:', 'template-protected' => '(dilindungi)', 'template-semiprotected' => '(pelindungan semi)', 'hiddencategories' => 'Halaman ini adalah anggota dari {{PLURAL:$1|1 kategori tersembunyi|$1 kategori tersembunyi}}:', 'edittools' => '<!-- Teks di sini akan dimunculkan di bawah isian suntingan dan pemuatan.-->', 'edittools-upload' => '-', 'nocreatetext' => '{{SITENAME}} telah membatasi pembuatan halaman-halaman baru. Anda dapat kembali dan menyunting halaman yang telah ada, atau silakan [[Special:UserLogin|masuk log atau membuat akun]].', 'nocreate-loggedin' => 'Anda tak memiliki hak akses untuk membuat halaman baru.', 'sectioneditnotsupported-title' => 'Penyuntingan bagian tidak didukung', 'sectioneditnotsupported-text' => 'Penyuntingan bagian tidak didukung di halaman sunting ini.', 'permissionserrors' => 'Kesalahan Hak Akses', 'permissionserrorstext' => 'Anda tak memiliki hak untuk melakukan hal itu karena {{PLURAL:$1|alasan|alasan-alasan}} berikut:', 'permissionserrorstext-withaction' => 'Anda tidak memiliki hak akses untuk $2, karena {{PLURAL:$1|alasan|alasan}} berikut:', 'recreate-moveddeleted-warn' => "'''Peringatan: Anda membuat ulang suatu halaman yang sudah pernah dihapus.''' Harap pertimbangkan apakah layak untuk melanjutkan suntingan Anda. Berikut adalah log penghapusan dan pemindahan dari halaman ini:", 'moveddeleted-notice' => 'Halaman ini telah dihapus. Sebagai referensi, berikut adalah log penghapusan dan pemindahan halaman ini.', 'log-fulllog' => 'Lihat seluruh log', 'edit-hook-aborted' => 'Suntingan dibatalkan oleh kait parser tanpa ada keterangan.', 'edit-gone-missing' => 'Tidak dapat memperbaharui halaman. Halaman kemungkinan telah dihapus.', 'edit-conflict' => 'Konflik penyuntingan.', 'edit-no-change' => 'Suntingan diabaikan, karena Anda tidak melakukan perubahan atas teks.', 'postedit-confirmation' => 'Suntingan Anda tersimpan.', 'edit-already-exists' => 'Tidak dapat membuat halaman baru karena telah ada.', 'defaultmessagetext' => 'Teks baku', 'content-failed-to-parse' => 'Gagal menjabarkan konten $2 untuk model $1: $3', 'invalid-content-data' => 'Data konten tidak sah', 'content-not-allowed-here' => 'Konten "$1" tidak diizinkan di halaman [[$2]]', 'editwarning-warning' => 'Meninggalkan halaman ini dapat menyebabkan semua perubahan yang belum tersimpan hilang. Jika Anda telah masuk log, Anda dapat mematikan peringatan ini lewat bagian "Penyuntingan" pada halaman preferensi Anda.', # Content models 'content-model-wikitext' => 'teks wiki', 'content-model-text' => 'teks polos', 'content-model-javascript' => 'JavaScript', 'content-model-css' => 'CSS', # Parser/template warnings 'expensive-parserfunction-warning' => 'Peringatan: Halaman ini mengandung terlalu banyak panggilan fungsi parser. Saat ini terdapat {{PLURAL:$1|$1 panggilan|$1 panggilan}}, seharusnya kurang dari $2 {{PLURAL:$2|panggilan|panggilan}}.', 'expensive-parserfunction-category' => 'Halaman dengan terlalu banyak panggilan fungsi parser', 'post-expand-template-inclusion-warning' => 'Peringatan: Ukuran templat yang digunakan terlalu besar. Beberapa templat akan diabaikan.', 'post-expand-template-inclusion-category' => 'Halaman dengan ukuran templat yang melebihi batas', 'post-expand-template-argument-warning' => 'Peringatan: Halaman ini mengandung setidaknya satu argumen templat dengan ukuran ekspansi yang terlalu besar. Argumen-argumen tersebut telah diabaikan.', 'post-expand-template-argument-category' => 'Halaman dengan argumen templat yang diabaikan', 'parser-template-loop-warning' => 'Hubungan berulang templat terdeteksi: [[$1]]', 'parser-template-recursion-depth-warning' => 'Limit kedalaman hubungan berulang templat terlampaui ($1)', 'language-converter-depth-warning' => 'Batas kedalaman pengonversi bahasa terlampaui ($1)', 'node-count-exceeded-category' => 'Halaman dimana hitungan-node terlampaui', 'node-count-exceeded-warning' => 'Page exceeded the node-count', 'expansion-depth-exceeded-category' => 'Pages where expansion depth is exceeded', 'expansion-depth-exceeded-warning' => 'Page exceeded the expansion depth', 'parser-unstrip-loop-warning' => 'Unstrip loop detected', 'parser-unstrip-recursion-limit' => 'Unstrip recursion limit exceeded ($1)', 'converter-manual-rule-error' => 'Kesalahan terdeteksi di aturan manual konversi bahasa', # "Undo" feature 'undo-success' => 'Suntingan ini dapat dibalikkan. Silakan periksa perbandingan di bawah untuk meyakinkan bahwa benar itu yang Anda ingin lakukan, lalu simpan perubahan tersebut untuk menyelesaikan pembalikkan suntingan.', 'undo-failure' => 'Suntingan ini tidak dapat dibalikkan karena konflik penyuntingan antara.', 'undo-norev' => 'Suntingan ini tidak dapat dibalikkan karena halaman tidak ditemukan atau telah dihapuskan.', 'undo-summary' => 'Membalikkan revisi $1 oleh [[Special:Contributions/$2|$2]] ([[User talk:$2|bicara]])', # Account creation failure 'cantcreateaccounttitle' => 'Akun tak dapat dibuat', 'cantcreateaccount-text' => "Pembuatan akun dari alamat IP ini (<strong>$1</strong>) telah diblokir oleh [[User:$3|$3]]. Alasan yang diberikan oleh $3 adalah ''$2''", # History pages 'viewpagelogs' => 'Lihat log halaman ini', 'nohistory' => 'Tidak ada sejarah penyuntingan untuk halaman ini', 'currentrev' => 'Revisi terkini', 'currentrev-asof' => 'Revisi terkini pada $1', 'revisionasof' => 'Revisi per $1', 'revision-info' => 'Revisi per $1; $2', 'previousrevision' => '←Revisi sebelumnya', 'nextrevision' => 'Revisi selanjutnya→', 'currentrevisionlink' => 'Revisi terkini', 'cur' => 'skr', 'next' => 'selanjutnya', 'last' => 'sebelum', 'page_first' => 'pertama', 'page_last' => 'terakhir', 'histlegend' => "Pilih dua tombol radio lalu tekan tombol ''bandingkan'' untuk membandingkan versi. Klik suatu tanggal untuk melihat versi halaman pada tanggal tersebut.<br />(skr) = perbedaan dengan versi sekarang, (akhir) = perbedaan dengan versi sebelumnya, '''k''' = suntingan kecil, '''b''' = suntingan bot, → = suntingan bagian, ← = ringkasan otomatis", 'history-fieldset-title' => 'Menjelajah versi terdahulu', 'history-show-deleted' => 'Hanya yang dihapus', 'histfirst' => 'Terlama', 'histlast' => 'Terbaru', 'historysize' => '($1 {{PLURAL:$1|bita|bita}})', 'historyempty' => '(kosong)', # Revision feed 'history-feed-title' => 'Riwayat revisi', 'history-feed-description' => 'Riwayat revisi halaman ini di wiki', 'history-feed-item-nocomment' => '$1 pada $2', 'history-feed-empty' => 'Halaman yang diminta tak ditemukan. Kemungkinan telah dihapus dari wiki, atau diberi nama baru. Coba [[Special:Search|lakukan pencarian di wiki]] untuk halaman baru yang relevan.', # Revision deletion 'rev-deleted-comment' => '(ringkasan suntingan dihapus)', 'rev-deleted-user' => '(nama pengguna dihapus)', 'rev-deleted-event' => '(isi dihapus)', 'rev-deleted-user-contribs' => '[nama pengguna atau alamat IP dihapus - suntingan disembunyikan pada daftar kontribusi]', 'rev-deleted-text-permission' => "Revisi halaman ini telah '''dihapus'''. Rinciannya mungkin tersedia di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan]", 'rev-deleted-text-unhide' => "Revisi ini telah '''dihapus'''. Rinciannya mungkin tersedia di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan]. Sebagai seorang pengurus Anda masih dapat [$1 melihat revisi ini] jika Anda mau.", 'rev-suppressed-text-unhide' => "Revisi halaman ini telah '''disupresi'''. Rinciannya mungkin tersedia di [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} log supresi]. Sebagai seorang pengurus, Anda masih dapat [$1 melihat revisi ini] jika Anda mau.", 'rev-deleted-text-view' => "Revisi ini telah '''dihapus'''. Sebagai seorang pengurus, Anda dapat melihatnya; rinciannya mungkin tersedia di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan].", 'rev-suppressed-text-view' => "Revisi halaman ini telah '''disupresi'''. Sebagai seorang pengurus, Anda masih dapat melihatnya; rinciannya mungkin tersedia di [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} log supresi].", 'rev-deleted-no-diff' => "Anda tidak dapat melihat perbedaan ini karena salah satu dari revisinya telah '''dihapus'''. Rinciannya mungkin tersedia di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan].", 'rev-suppressed-no-diff' => "Anda tidak dapat melihat perubahan ini karena salah satu dari revisi telah '''dihapus'''.", 'rev-deleted-unhide-diff' => "Salah satu revisi pada tampilan perbedaan ini telah '''dihapus'''. Rinciannya mungkin tersedia di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan]. Sebagai seorang pengurus, Anda masih dapat [$1 melihat perbedaan ini] jika Anda ingin.", 'rev-suppressed-unhide-diff' => "Salah satu perbedaan revisi telah di '''tekan'''. Penjelasan mungkin terdapat di [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} log penekanan]. Sebagai pengurus anda masih dapat [$1 melihat perbedaan ini] jika anda ingin melanjutkan.", 'rev-deleted-diff-view' => "Salah satu revisi perbedaan ini telah '''dihapus'''. Sebagai seorang pengurus, Anda dapat melihat perbedaan ini; detail mungkin tersedia di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan].", 'rev-suppressed-diff-view' => "Salah satu revisi perbedaan ini telah '''disembunyikan'''. Sebagai seorang pengurus, Anda dapat melihat perbedaan ini; detail mungkin tersedia di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penyembunyian].", 'rev-delundel' => 'tampilkan/sembunyikan', 'rev-showdeleted' => 'tampilkan', 'revisiondelete' => 'Hapus/batal hapus revisi', 'revdelete-nooldid-title' => 'Target revisi tak ditemukan', 'revdelete-nooldid-text' => 'Anda belum memberikan target revisi untuk menjalankan fungsi ini.', 'revdelete-nologtype-title' => 'Tipe log tak diberikan', 'revdelete-nologtype-text' => 'Anda tidak memberikan suatu tipe log untuk menerapkan tindakan ini.', 'revdelete-nologid-title' => 'Entri log tak valid', 'revdelete-nologid-text' => 'Anda mungkin tidak menyebutkan suatu log target peristiwa untuk menjalankan fungsi ini atau entri yang dimaksud tidak ditemukan.', 'revdelete-no-file' => 'Berkas yang dituju tidak ditemukan.', 'revdelete-show-file-confirm' => 'Apakah Anda yakin ingin melihat revisi yang telah dihapus dari berkas "<nowiki>$1</nowiki>" per $3, $2?', 'revdelete-show-file-submit' => 'Ya', 'revdelete-selected' => "'''{{PLURAL:$2|Revisi|Revisi-revisi}} pilihan dari '''$1''''''", 'logdelete-selected' => "'''{{PLURAL:$1|Log|Log-log}} pilihan untuk:'''", 'revdelete-text' => "'''Revisi dan tindakan yang telah dihapus akan tetap muncul di versi terdahulu dan log halaman, tapi bagian dari isinya tidak bisa diakses publik.''' Pengurus {{SITENAME}} lain akan tetap dapat mengakses isi yang tersembunyi ini dan dapat membatalkan penghapusannya menggunakan antarmuka yang sama, kecuali ada pembatasan lain yang dibuat oleh operator situs.", 'revdelete-confirm' => 'Tolong konfirmasi bahwa Anda memang bermaksud melakukan ini, memahami konsekuensinya, dan bahwa Anda melakukannya sesuai dengan [[{{MediaWiki:Policy-url}}|kebijakan]].', 'revdelete-suppress-text' => "Penyembunyian revisi '''hanya''' boleh digunakan untuk kasus-kasus berikut: * Informasi pribadi yang tak sepantasnya *: ''alamat rumah dan nomor telepon, nomor kartu identitas, dan lain-lain.''", 'revdelete-legend' => 'Atur batasan:', 'revdelete-hide-text' => 'Sembunyikan teks revisi', 'revdelete-hide-image' => 'Sembunyikan isi berkas', 'revdelete-hide-name' => 'Sembunyikan tindakan dan target', 'revdelete-hide-comment' => 'Sembunyikan ringkasan suntingan', 'revdelete-hide-user' => 'Sembunyikan nama pengguna/IP penyunting', 'revdelete-hide-restricted' => 'Sembunyikan data dari opsis juga', 'revdelete-radio-same' => '(jangan diubah)', 'revdelete-radio-set' => 'Ya', 'revdelete-radio-unset' => 'Tidak', 'revdelete-suppress' => 'Sembunyikan juga dari pengurus', 'revdelete-unsuppress' => 'Hapus batasan pada revisi yang dikembalikan', 'revdelete-log' => 'Alasan:', 'revdelete-submit' => 'Terapkan pada {{PLURAL:$1|revisi|revisi}} terpilih', 'revdelete-success' => "'''Keterlihatan revisi berhasil diperbarui.'''", 'revdelete-failure' => "'''Keterlihatan revisi tak dapat diperbarui:''' $1", 'logdelete-success' => 'Aturan penyembunyian tindakan berhasil diterapkan.', 'logdelete-failure' => "'''Aturan penyembunyian tidak dapat diterapkan:''' $1", 'revdel-restore' => 'Ubah tampilan', 'revdel-restore-deleted' => 'Suntingan yang telah dihapus', 'revdel-restore-visible' => 'tampilan revisi', 'pagehist' => 'Versi terdahulu halaman', 'deletedhist' => 'Sejarah yang dihapus', 'revdelete-hide-current' => 'Gagal menyembunyikan revisi tertanggal $2, $1: ini adalah revisi terkini. Revisi ini tidak dapat disembunyikan.', 'revdelete-show-no-access' => 'Gagal menampilkan revisi tertanggal $2, $1: revisi ini telah ditandai "terbatas". Anda tidak memiliki akses ke revisi ini.', 'revdelete-modify-no-access' => 'Gagal mengubah revisi tertanggal $2, $1: revisi ini telah ditandai "terbatas". Anda tidak memiliki akses ke revisi ini.', 'revdelete-modify-missing' => 'Gagal mengubah revisi ID $1: revisi ini tidak ditemukan di basis data!', 'revdelete-no-change' => "'''Peringatan:''' revisi per $2, $1 telah memiliki aturan penyembunyian tersebut.", 'revdelete-concurrent-change' => 'Gagal mengubah revisi per $2, $1: statusnya kemungkinan telah diubah oleh pengguna lain bersamaan dengan Anda. Silakan periksa catatan log.', 'revdelete-only-restricted' => 'Kesalahan sewaktu menyembunyikan butir bertanggal $2, $1: Anda tidak dapat menyembunyikan butir dari pengurus tanpa memilih juga salah satu opsi penyembunyian lainnya.', 'revdelete-reason-dropdown' => '*Alasan penghapusan yang umum ** Pelanggaran hak cipta ** Komentar atau informasi pribadi yang tidak pantas ** Nama pengguna yang tidak pantas ** Berpotensi mencemarkan nama baik', 'revdelete-otherreason' => 'Alasan lain/tambahan:', 'revdelete-reasonotherlist' => 'Alasan lain', 'revdelete-edit-reasonlist' => 'Alasan penghapusan suntingan', 'revdelete-offender' => 'Revisi penulis:', # Suppression log 'suppressionlog' => 'Log penyembunyian', 'suppressionlogtext' => 'Berikut adalah daftar penghapusan dan pemblokiran, termasuk konten yang disembunyikan dari para pengurus. Lihat [[Special:BlockList|daftar pemblokiran]] untuk daftar terkininya.', # History merging 'mergehistory' => 'Gabung sejarah halaman', 'mergehistory-header' => 'Halaman ini memperbolehkan Anda untuk menggabungkan revisi-revisi dari satu halaman sumber ke halaman yang lebih baru. Pastikan bahwa perubahan ini tetap mempertahankan kontinuitas versi terdahulu halaman.', 'mergehistory-box' => 'Gabung revisi-revisi dari dua halaman:', 'mergehistory-from' => 'Halaman sumber:', 'mergehistory-into' => 'Halaman tujuan:', 'mergehistory-list' => 'Mergeable edit history', 'mergehistory-merge' => 'Revisi-revisi berikut dari [[:$1]] dapat digabungkan ke [[:$2]]. Gunakan tombol radio untuk menggabungkan revisi-revisi yang dibuat sebelum waktu tertentu. Perhatikan, menggunakan pranala navigasi akan mengeset ulang kolom.', 'mergehistory-go' => 'Tampilkan suntingan-suntingan yang dapat digabung', 'mergehistory-submit' => 'Gabung revisi', 'mergehistory-empty' => 'Tidak ada revisi yang dapat digabung.', 'mergehistory-success' => '$3 {{PLURAL:$3|revisi|revisi}} dari [[:$1]] berhasil digabungkan ke [[:$2]].', 'mergehistory-fail' => 'Tidak dapat melakukan penggabungan, harap periksa kembali halaman dan parameter waktu.', 'mergehistory-no-source' => 'Halaman sumber $1 tidak ada.', 'mergehistory-no-destination' => 'Halaman tujuan $1 tidak ada.', 'mergehistory-invalid-source' => 'Judul halaman sumber haruslah judul yang berlaku.', 'mergehistory-invalid-destination' => 'Judul halaman tujuan haruslah judul yang valid.', 'mergehistory-autocomment' => '[[:$1]] telah digabungkan ke [[:$2]]', 'mergehistory-comment' => '[[:$1]] telah digabungkan ke [[:$2]]: $3', 'mergehistory-same-destination' => 'Nama halaman sumber dan tujuan tidak boleh sama', 'mergehistory-reason' => 'Alasan:', 'mergehistory-revisionrow' => '$1 ($2) $3 . . $4 $5 $6', # Merge log 'mergelog' => 'Log penggabungan', 'pagemerge-logentry' => 'menggabungkan [[$1]] ke [[$2]] (revisi sampai dengan $3)', 'revertmerge' => 'Batal penggabungan', 'mergelogpagetext' => 'Di bawah ini adalah daftar penggabungan sejarah halaman ke halaman yang lain.', # Diffs 'history-title' => 'Riwayat revisi dari "$1"', 'difference-title' => '$1: Perbedaan revisi', 'difference-title-multipage' => 'Perbedaan antara halaman "$1" dan "$2"', 'difference-multipage' => '(Perbedaan antarhalaman)', 'lineno' => 'Baris $1:', 'compareselectedversions' => 'Bandingkan versi terpilih', 'showhideselectedversions' => 'Tampilkan/sembunyikan versi terpilih', 'editundo' => 'balikkan', 'diff-multi' => '({{PLURAL:$1|Satu|$1}} revisi antara oleh {{PLURAL:$2|satu|$2}} pengguna tak ditampilkan)', 'diff-multi-manyusers' => '({{PLURAL:$1|Satu|$1}} revisi antara oleh lebih dari $2 {{PLURAL:$2|satu|$2}} pengguna tak ditampilkan)', 'difference-missing-revision' => '{{PLURAL:$2|Satu revisi|$2 revisi}} dari perbedaan ini ($1) {{PLURAL:$2|tidak|tidak}} ditemukan. Hal ini biasanya disebabkan oleh tautan diff yang kedaluwarsa ke halaman yang sudah dihapus. Rinciannya dapat ditemukan di [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} log penghapusan].', # Search results 'searchresults' => 'Hasil pencarian', 'searchresults-title' => 'Hasil pencarian untuk "$1"', 'searchresulttext' => 'Untuk informasi lebih lanjut tentang pencarian di {{SITENAME}}, lihat [[{{MediaWiki:Helppage}}|halaman bantuan]].', 'searchsubtitle' => 'Anda mencari \'\'\'[[:$1]]\'\'\' ([[Special:Prefixindex/$1|semua halaman yang dimulai dengan "$1"]]{{int:pipe-separator}}[[Special:WhatLinksHere/$1|semua halaman yang terpaut ke "$1"]])', 'searchsubtitleinvalid' => "Anda mencari '''$1'''", 'toomanymatches' => 'Pencarian menghasilkan terlalu banyak hasil, silakan masukkan kueri lain', 'titlematches' => 'Judul halaman yang sama', 'notitlematches' => 'Tidak ada judul halaman yang cocok', 'textmatches' => 'Teks halaman yang cocok', 'notextmatches' => 'Tidak ada teks halaman yang cocok', 'prevn' => '{{PLURAL:$1|$1}} sebelumnya', 'nextn' => '{{PLURAL:$1|$1}} selanjutnya', 'prevn-title' => '$1 {{PLURAL:$1|hasil|hasil}} sebelumnya', 'nextn-title' => '$1 {{PLURAL:$1|hasil|hasil}} selanjutnya', 'shown-title' => 'Tampilkan $1 {{PLURAL:$1|hasil|hasil}} per halaman', 'viewprevnext' => 'Lihat ($1 {{int:pipe-separator}} $2) ($3)', 'searchmenu-legend' => 'Opsi pencarian', 'searchmenu-exists' => "* Halaman '''[[$1]]'''", 'searchmenu-new' => "'''Buat halaman \"[[:\$1]]\" di wiki ini!'''", 'searchhelp-url' => 'Help:Isi', 'searchmenu-prefix' => '[[Special:PrefixIndex/$1|Lihat daftar halaman dengan awalan ini]]', 'searchprofile-articles' => 'Halaman isi', 'searchprofile-project' => 'Halaman Bantuan dan Proyek', 'searchprofile-images' => 'Berkas Multimedia', 'searchprofile-everything' => 'Semua', 'searchprofile-advanced' => 'Lanjutan', 'searchprofile-articles-tooltip' => 'Pencarian di $1', 'searchprofile-project-tooltip' => 'Pencarian di $1', 'searchprofile-images-tooltip' => 'Pencarian berkas', 'searchprofile-everything-tooltip' => 'Pencarian di seluruh situs (termasuk halaman pembicaraan)', 'searchprofile-advanced-tooltip' => 'Pencarian di ruang nama tertentu', 'search-result-size' => '$1 ({{PLURAL:$2|1 kata|$2 kata}})', 'search-result-category-size' => '{{PLURAL:$1|1 anggota|$1 anggota}} ({{PLURAL:$2|1 subkategori|$2 subkategori}}, {{PLURAL:$3|1 berkas|$3 berkas}})', 'search-result-score' => 'Relevansi: $1%', 'search-redirect' => '(pengalihan $1)', 'search-section' => '(bagian $1)', 'search-suggest' => 'Mungkin maksud Anda adalah: $1', 'search-interwiki-caption' => 'Proyek lain', 'search-interwiki-default' => 'Hasil $1:', 'search-interwiki-more' => '(selanjutnya)', 'search-relatedarticle' => 'Berkaitan', 'mwsuggest-disable' => 'Non-aktifkan saran pencarian', 'searcheverything-enable' => 'Cari di semua ruang nama', 'searchrelated' => 'berkaitan', 'searchall' => 'semua', 'showingresults' => "Di bawah ini ditampilkan hingga {{PLURAL:$1|'''1''' hasil|'''$1''' hasil}}, dimulai dari #'''$2'''.", 'showingresultsnum' => "Di bawah ini ditampilkan {{PLURAL:$3|'''1'''|'''$3'''}} hasil, dimulai dari #'''$2'''.", 'showingresultsheader' => "{{PLURAL:$5|Hasil '''$1''' dari '''$3'''|Hasil '''$1 - $2''' dari '''$3'''}} untuk '''$4'''", 'nonefound' => "'''Catatan''': Hanya beberapa ruang nama yang secara baku dimasukkan dalam pencarian. Coba awali permintaan Anda dengan ''all:'' untuk mencari semua isi (termasuk halaman pembicaraan, templat, dll), atau gunakan ruang nama yang diinginkan sebagai awalan.", 'search-nonefound' => 'Tidak ada hasil yang sesuai dengan kriteria.', 'powersearch' => 'Pencarian lanjut', 'powersearch-legend' => 'Pencarian lanjut', 'powersearch-ns' => 'Mencari di ruang nama:', 'powersearch-redir' => 'Daftar pengalihan', 'powersearch-field' => 'Mencari', 'powersearch-togglelabel' => 'Pilih:', 'powersearch-toggleall' => 'Semua', 'powersearch-togglenone' => 'Tidak ada', 'search-external' => 'Pencarian eksternal', 'searchdisabled' => 'Pencarian {{SITENAME}} sementara dimatikan. Anda dapat mencari melalui Google untuk sementara waktu. Perlu diingat bahwa indeks Google untuk konten {{SITENAME}} mungkin belum mencakup perubahan-perubahan terakhir.', 'search-error' => 'Kesalahan terjadi saat mencari: $1', # Preferences page 'preferences' => 'Preferensi', 'mypreferences' => 'Preferensi', 'prefs-edits' => 'Jumlah suntingan:', 'prefsnologin' => 'Belum masuk log', 'prefsnologintext' => 'Anda harus <span class="plainlinks">[{{fullurl:{{#Special:UserLogin}}|returnto=$1}} masuk log]</span> untuk mengeset preferensi Anda.', 'changepassword' => 'Ganti kata sandi', 'prefs-skin' => 'Kulit', 'skin-preview' => 'Pratayang', 'datedefault' => 'Tak ada preferensi', 'prefs-beta' => 'Fitur Beta', 'prefs-datetime' => 'Tanggal dan waktu', 'prefs-labs' => 'Fitur Labs', 'prefs-user-pages' => 'Halaman pengguna', 'prefs-personal' => 'Profil', 'prefs-rc' => 'Perubahan terbaru', 'prefs-watchlist' => 'Pemantauan', 'prefs-watchlist-days' => 'Jumlah hari maksimum yang ditampilkan di daftar pantauan:', 'prefs-watchlist-days-max' => 'Maksimum $1 {{PLURAL:$1|hari|hari}}', 'prefs-watchlist-edits' => 'Jumlah suntingan maksimum yang ditampilkan di daftar pantauan yang lebih lengkap:', 'prefs-watchlist-edits-max' => 'Nilai maksimum: 1000', 'prefs-watchlist-token' => 'Token pantauan:', 'prefs-misc' => 'Lain-lain', 'prefs-resetpass' => 'Ganti kata sandi', 'prefs-changeemail' => 'Ubah surel', 'prefs-setemail' => 'Atur alamat surel', 'prefs-email' => 'Opsi surel', 'prefs-rendering' => 'Tampilan', 'saveprefs' => 'Simpan', 'resetprefs' => 'Batalkan perubahan', 'restoreprefs' => 'Kembalikan semua setelan bawaan', 'prefs-editing' => 'Penyuntingan', 'prefs-edit-boxsize' => 'Ukuran kotak penyuntingan.', 'rows' => 'Baris:', 'columns' => 'Kolom:', 'searchresultshead' => 'Cari', 'resultsperpage' => 'Hasil per halaman:', 'stub-threshold' => 'Ambang batas untuk format <a href="#" class="stub">pranala rintisan</a>:', 'stub-threshold-disabled' => 'Dinonaktifkan', 'recentchangesdays' => 'Jumlah hari yang ditampilkan di perubahan terbaru:', 'recentchangesdays-max' => '(maksimum $1 {{PLURAL:$1|hari|hari}})', 'recentchangescount' => 'Standar jumlah suntingan yang ditampilkan:', 'prefs-help-recentchangescount' => 'Opsi ini berlaku untuk perubahan terbaru, versi terdahulu halaman, dan log.', 'prefs-help-watchlist-token' => 'Mengisi kotak ini dengan kunci rahasia (PIN) akan menghasilkan sindikasi RSS untuk daftar pantauan Anda. Siapa pun yang mengetahui kunci ini dapat membaca daftar pantauan Anda, jadi pilihlah nilainya dengan hati-hati Berikut ini adalah nilai acak yang dapat Anda gunakan: $1', 'savedprefs' => 'Preferensi Anda telah disimpan', 'timezonelegend' => 'Zona waktu:', 'localtime' => 'Waktu setempat:', 'timezoneuseserverdefault' => 'Gunakan bawaan wiki ($1)', 'timezoneuseoffset' => 'Lainnya (tentukan perbedaannya)', 'timezoneoffset' => 'Perbedaan¹:', 'servertime' => 'Waktu server:', 'guesstimezone' => 'Isikan dari penjelajah web', 'timezoneregion-africa' => 'Afrika', 'timezoneregion-america' => 'Amerika', 'timezoneregion-antarctica' => 'Antarktika', 'timezoneregion-arctic' => 'Arktik', 'timezoneregion-asia' => 'Asia', 'timezoneregion-atlantic' => 'Samudera Atlantik', 'timezoneregion-australia' => 'Australia', 'timezoneregion-europe' => 'Eropa', 'timezoneregion-indian' => 'Samudera Hindia', 'timezoneregion-pacific' => 'Samudera Pasifik', 'allowemail' => 'Izinkan pengguna lain mengirim surel', 'prefs-searchoptions' => 'Cari', 'prefs-namespaces' => 'Ruang nama', 'defaultns' => 'Atau cari dalam ruang-ruang nama berikut:', 'default' => 'baku', 'prefs-files' => 'Berkas', 'prefs-custom-css' => 'CSS pribadi', 'prefs-custom-js' => 'JS pribadi', 'prefs-common-css-js' => 'CSS/JS berbagi untuk semua kulit:', 'prefs-reset-intro' => 'Anda dapat menggunakan halaman ini untuk mengembalikan preferensi Anda ke setelan baku situs. Pengembalian preferensi tidak dapat dibatalkan.', 'prefs-emailconfirm-label' => 'Konfirmasi surel:', 'prefs-textboxsize' => 'Ukuran kotak suntingan', 'youremail' => 'Surel:', 'username' => '{{GENDER:$1|Nama pengguna}}:', 'uid' => 'ID {{GENDER:$1|pengguna}}:', 'prefs-memberingroups' => '{{GENDER:$2|Anggota}} {{PLURAL:$1|kelompok|kelompok}}:', 'prefs-memberingroups-type' => '$1', 'prefs-registration' => 'Waktu pendaftaran:', 'prefs-registration-date-time' => '$1', 'yourrealname' => 'Nama asli:', 'yourlanguage' => 'Bahasa:', 'yourvariant' => 'Varian bahasa isi:', 'prefs-help-variant' => 'Varian atau ortografi pilihan Anda untuk menampilkan isi halaman wiki ini.', 'yournick' => 'Tanda tangan:', 'prefs-help-signature' => 'Komentar pada halaman pembicaraan perlu ditandatangani dengan "<nowiki>~~~~</nowiki>" yang akan diubah menjadi tanda tangan Anda dan waktu saat ini.', 'badsig' => 'Tanda tangan mentah tak sah; periksa tag HTML.', 'badsiglength' => 'Tanda tangan Anda terlalu panjang. Jangan lebih dari $1 {{PLURAL:$1|karakter|karakter}}.', 'yourgender' => 'Jenis kelamin:', 'gender-unknown' => 'Tak dinyatakan', 'gender-male' => 'Laki-laki', 'gender-female' => 'Perempuan', 'prefs-help-gender' => 'Opsional: digunakan untuk perbaikan penyebutan gender oleh perangkat lunak. Informasi ini akan terbuka untuk umum.', 'email' => 'Surel', 'prefs-help-realname' => 'Nama asli bersifat opsional. Jika Anda memberikannya, nama asli Anda akan digunakan untuk memberi pengenalan atas hasil kerja Anda.', 'prefs-help-email' => 'Alamat surel bersifat opsional, namun diperlukan untuk menyetel ulang sandi jika Anda lupa.', 'prefs-help-email-others' => 'Anda juga dapat memilih untuk mengizinkan orang lain menghubungi Anda melalui halaman pengguna atau pembicaraan tanpa perlu membongkar identitas Anda.', 'prefs-help-email-required' => 'Alamat surel wajib diisi.', 'prefs-info' => 'Informasi dasar', 'prefs-i18n' => 'Internasionalisasi', 'prefs-signature' => 'Tanda tangan', 'prefs-dateformat' => 'Format tanggal', 'prefs-timeoffset' => 'Format waktu', 'prefs-advancedediting' => 'Opsi lanjutan', 'prefs-advancedrc' => 'Opsi lanjutan', 'prefs-advancedrendering' => 'Opsi lanjutan', 'prefs-advancedsearchoptions' => 'Opsi lanjutan', 'prefs-advancedwatchlist' => 'Opsi lanjutan', 'prefs-displayrc' => 'Pilihan tampilan', 'prefs-displaysearchoptions' => 'Pilihan tampilan', 'prefs-displaywatchlist' => 'Pilihan tampilan', 'prefs-diffs' => 'Beda', # User preference: email validation using jQuery 'email-address-validity-valid' => 'Alamat surel tampaknya sah', 'email-address-validity-invalid' => 'Masukkan alamat surel yang sah', # User rights 'userrights' => 'Manajemen hak pengguna', 'userrights-lookup-user' => 'Mengatur kelompok pengguna', 'userrights-user-editname' => 'Masukkan nama pengguna:', 'editusergroup' => 'Sunting kelompok pengguna', 'editinguser' => "Mengganti hak akses pengguna '''[[User:$1|$1]]''' $2", 'userrights-editusergroup' => 'Sunting kelompok pengguna', 'saveusergroups' => 'Simpan kelompok pengguna', 'userrights-groupsmember' => 'Anggota dari:', 'userrights-groupsmember-auto' => 'Anggota implisit dari:', 'userrights-groupsmember-type' => '$1', 'userrights-groups-help' => 'Anda dapat mengubah kelompok pengguna ini: * Kotak dengan tanda cek merupakan kelompok pengguna yang bersangkutan * Kotak tanpa tanda cek berarti pengguna ini bukan anggota kelompok tersebut * Tanda * menandai bahwa Anda tidak dapat membatalkan kelompok tersebut bila Anda telah menambahkannya, atau sebaliknya.', 'userrights-reason' => 'Alasan:', 'userrights-no-interwiki' => 'Anda tidak memiliki hak untuk mengubah hak pengguna di wiki yang lain.', 'userrights-nodatabase' => 'Basis data $1 tidak ada atau bukan lokal.', 'userrights-nologin' => 'Anda harus [[Special:UserLogin|masuk log]] dengan menggunakan akun pengurus untuk dapat mengubah hak pengguna.', 'userrights-notallowed' => 'Akun Anda tidak berhak untuk menambahkan atau membuang hak pengguna.', 'userrights-changeable-col' => 'Kelompok yang dapat Anda ubah', 'userrights-unchangeable-col' => 'Kelompok yang tidak dapat Anda ubah', 'userrights-irreversible-marker' => '$1*', 'userrights-conflict' => 'Konflik hak pengguna! Silakan ubah kembali.', # Groups 'group' => 'Kelompok:', 'group-user' => 'Pengguna', 'group-autoconfirmed' => 'Pengguna terkonfirmasi otomatis', 'group-bot' => 'Bot', 'group-sysop' => 'Pengurus', 'group-bureaucrat' => 'Birokrat', 'group-suppress' => 'Pengawas', 'group-all' => '(semua)', 'group-user-member' => '{{GENDER:$1| pengguna}}', 'group-autoconfirmed-member' => '{{GENDER:$1|pengguna terkonfimasi otomatis}}', 'group-bot-member' => '{{GENDER:$1|bot}}', 'group-sysop-member' => '{{GENDER:$1|pengurus}}', 'group-bureaucrat-member' => '{{GENDER:$1|birokrat}}', 'group-suppress-member' => '{{GENDER:$1|pengawas}}', 'grouppage-user' => '{{ns:project}}:Pengguna', 'grouppage-autoconfirmed' => '{{ns:project}}:Pengguna terkonfirmasi otomatis', 'grouppage-bot' => '{{ns:project}}:Bot', 'grouppage-sysop' => '{{ns:project}}:Pengurus', 'grouppage-bureaucrat' => '{{ns:project}}:Birokrat', 'grouppage-suppress' => '{{ns:project}}:Pengawas', # Rights 'right-read' => 'Membaca halaman', 'right-edit' => 'Menyunting halaman', 'right-createpage' => 'Membuat halaman baru (yang bukan halaman pembicaraan)', 'right-createtalk' => 'Membuat halaman pembicaraan', 'right-createaccount' => 'Membuat akun baru', 'right-minoredit' => 'Menandai suntingan sebagai minor', 'right-move' => 'Memindahkan halaman', 'right-move-subpages' => 'Memindahkan halaman dengan seluruh subhalamannya', 'right-move-rootuserpages' => 'Memindahkan halaman utama pengguna', 'right-movefile' => 'Memindahkan berkas', 'right-suppressredirect' => 'Tidak membuat pengalihan dari nama lama ketika memindahkan halaman', 'right-upload' => 'Memuat berkas', 'right-reupload' => 'Menimpa berkas yang sudah ada', 'right-reupload-own' => 'Menimpa berkas yang sudah ada yang dimuat oleh pengguna yang sama', 'right-reupload-shared' => 'Menolak berkas-berkas pada penyimpanan media lokal bersama', 'right-upload_by_url' => 'Memuatkan berkas dari sebuah alamat URL', 'right-purge' => 'Menghapus singgahan suatu halaman tanpa halaman konfirmasi', 'right-autoconfirmed' => 'Menyunting halaman yang semidilindungi', 'right-bot' => 'Diperlakukan sebagai sebuah proses otomatis', 'right-nominornewtalk' => 'Ketiadaan suntingan kecil di halaman pembicaraan memicu tampilan pesan baru', 'right-apihighlimits' => 'Menggunakan batasan yang lebih tinggi dalam kueri API', 'right-writeapi' => 'Menggunakan API penulisan', 'right-delete' => 'Menghapus halaman', 'right-bigdelete' => 'Menghapus halaman dengan banyak versi terdahulu', 'right-deletelogentry' => 'Hapus dan batalkan penghapusan entri log tertentu', 'right-deleterevision' => 'Menghapus dan membatalkan penghapusan revisi tertentu suatu halaman', 'right-deletedhistory' => 'Melihat entri-entri revisi yang dihapus, tanpa teks yang berhubungan', 'right-deletedtext' => 'Melihat teks yang dihapus dan perubahan antara revisi yang dihapus', 'right-browsearchive' => 'Mencari halaman yang telah dihapus', 'right-undelete' => 'Mengembalikan halaman yang telah dihapus', 'right-suppressrevision' => 'Memeriksa dan mengembalikan revisi-revisi yang disembunyikan dari Opsis', 'right-suppressionlog' => 'Melihat log privat', 'right-block' => 'Memblokir penyuntingan oleh pengguna lain', 'right-blockemail' => 'Memblokir pengiriman surel oleh pengguna', 'right-hideuser' => 'Memblokir nama pengguna dan menyembunyikannya dari publik', 'right-ipblock-exempt' => 'Mengabaikan pemblokiran IP, pemblokiran otomatis, dan rentang pemblokiran', 'right-proxyunbannable' => 'Mengabaikan pemblokiran otomatis atas proksi', 'right-unblockself' => 'Melepaskan blokir diri sendiri', 'right-protect' => 'Mengubah tingkat pelindungan dan menyunting halaman yang dilindungi', 'right-editprotected' => 'Menyunting halaman yang dilindungi (tanpa pelindungan runtun)', 'right-editinterface' => 'Menyunting antarmuka pengguna', 'right-editusercssjs' => 'Menyunting arsip CSS dan JS pengguna lain', 'right-editusercss' => 'Menyunting berkas CSS pengguna lain', 'right-edituserjs' => 'Menyunting berkas JS pengguna lain', 'right-rollback' => 'Mengembalikan dengan cepat suntingan-suntingan pengguna terakhir yang menyunting halaman tertentu', 'right-markbotedits' => 'Menandai pengembalian revisi sebagai suntingan bot', 'right-noratelimit' => 'Tidak dipengaruhi oleh pembatasan jumlah suntingan', 'right-import' => 'Mengimpor halaman dari wiki lain', 'right-importupload' => 'Mengimpor halaman dari sebuah berkas yang dimuatkan', 'right-patrol' => 'Menandai suntingan pengguna lain sebagai terpatroli', 'right-autopatrol' => 'Menyunting dengan status suntingan secara otomatis ditandai terpantau', 'right-patrolmarks' => 'Melihat penandaan patroli perubahan terbaru', 'right-unwatchedpages' => 'Melihat daftar halaman-halaman yang tidak dipantau', 'right-mergehistory' => 'Menggabungkan versi terdahulu halaman-halaman', 'right-userrights' => 'Menyunting seluruh hak pengguna', 'right-userrights-interwiki' => 'Menyunting hak para pengguna di wiki lain', 'right-siteadmin' => 'Mengunci dan membuka kunci basis data', 'right-override-export-depth' => 'Ekspor halaman termasuk halaman-halaman terkait hingga kedalaman 5', 'right-sendemail' => 'Mengirim surel ke pengguna lain', 'right-passwordreset' => 'Lihat surel pengaturulangan kata sandi', # Special:Log/newusers 'newuserlogpage' => 'Log pengguna baru', 'newuserlogpagetext' => 'Di bawah ini adalah log pendaftaran pengguna baru', # User rights log 'rightslog' => 'Log perubahan hak akses', 'rightslogtext' => 'Di bawah ini adalah log perubahan terhadap hak-hak pengguna.', # Associated actions - in the sentence "You do not have permission to X" 'action-read' => 'membaca halaman ini', 'action-edit' => 'menyunting halaman ini', 'action-createpage' => 'membuat halaman baru', 'action-createtalk' => 'membuat halaman pembicaraan baru', 'action-createaccount' => 'membuat akun pengguna ini', 'action-minoredit' => 'menandai sebagai suntingan kecil', 'action-move' => 'memindahkan halaman ini', 'action-move-subpages' => 'memindahkan halaman ini, dan semua sub-halamannya', 'action-move-rootuserpages' => 'memindahkan halaman utama pengguna', 'action-movefile' => 'pindahkan berkas ini', 'action-upload' => 'memuatkan berkas ini', 'action-reupload' => 'menimpa berkas yang telah ada', 'action-reupload-shared' => 'menimpa berkas yang telah ada di tempat penyimpanan berkas bersama', 'action-upload_by_url' => 'memuatkan berkas ini dari sebuah alamat URL', 'action-writeapi' => 'menggunakan API penulisan', 'action-delete' => 'menghapus halaman ini', 'action-deleterevision' => 'menghapus revisi ini', 'action-deletedhistory' => 'melihat versi terdahulu halaman yang telah dihapus ini', 'action-browsearchive' => 'mencari halaman-halaman yang telah dihapus', 'action-undelete' => 'membatalkan penghapusan halaman ini', 'action-suppressrevision' => 'meninjau dan mengembalikan revisi yang disembunyikan ini', 'action-suppressionlog' => 'melihat log privat ini', 'action-block' => 'memblokir pengguna ini dari menyunting', 'action-protect' => 'mengganti tingkat pelindungan halaman ini', 'action-rollback' => 'mengembalikan dengan cepat suntingan-suntingan pengguna terakhir yang menyunting halaman tertentu', 'action-import' => 'mengimpor halaman ini dari wiki lain', 'action-importupload' => 'mengimpor halaman ini dari pemuatan berkas', 'action-patrol' => 'menandai suntingan pengguna lain sebagai terpatroli', 'action-autopatrol' => 'menandai suntingan Anda sendiri sebagai terpatroli', 'action-unwatchedpages' => 'melihat daftar halaman yang tidak dipantau', 'action-mergehistory' => 'menggabungkan revisi-revisi terdahulu halaman ini', 'action-userrights' => 'menyunting semua hak pengguna', 'action-userrights-interwiki' => 'menyunting hak akses dari pengguna di wiki lain', 'action-siteadmin' => 'mengunci atau membuka kunci basis data', 'action-sendemail' => 'kirim surel', # Recent changes 'nchanges' => '$1 {{PLURAL:$1|perubahan|perubahan}}', 'recentchanges' => 'Perubahan terbaru', 'recentchanges-legend' => 'Opsi perubahan terbaru', 'recentchanges-summary' => "Temukan perubahan terbaru dalam wiki di halaman ini. Keterangan: (beda) = perubahan, (versi) = sejarah revisi, '''B''' = halaman baru, '''k''' = suntingan kecil, '''b''' = suntingan bot, (± ''bita'') = jumlah penambahan/pengurangan isi, → = suntingan bagian, ← = ringkasan otomatis. ----", 'recentchanges-feed-description' => 'Temukan perubahan terbaru dalam wiki di umpan ini.', 'recentchanges-label-newpage' => 'Suntingan ini membuat halaman baru', 'recentchanges-label-minor' => 'Ini adalah suntingan kecil', 'recentchanges-label-bot' => 'Suntingan ini dilakukan oleh bot', 'recentchanges-label-unpatrolled' => 'Suntingan ini belum terpatroli', 'rcnote' => "Berikut adalah {{PLURAL:$1|'''1'''|'''$1'''}} perubahan terbaru dalam {{PLURAL:$2|'''1''' hari|'''$2''' hari}} terakhir, sampai $4 pukul $5.", 'rcnotefrom' => 'Di bawah ini adalah perubahan sejak <strong>$2</strong> (ditampilkan sampai <strong>$1</strong> perubahan).', 'rclistfrom' => 'Perlihatkan perubahan terbaru sejak $1', 'rcshowhideminor' => '$1 suntingan kecil', 'rcshowhidebots' => '$1 bot', 'rcshowhideliu' => '$1 pengguna masuk log', 'rcshowhideanons' => '$1 pengguna anon', 'rcshowhidepatr' => '$1 suntingan terpatroli', 'rcshowhidemine' => '$1 suntingan saya', 'rclinks' => 'Perlihatkan $1 perubahan terbaru dalam $2 hari terakhir<br />$3', 'diff' => 'beda', 'hist' => 'versi', 'hide' => 'Sembunyikan', 'show' => 'Tampilkan', 'minoreditletter' => 'k', 'newpageletter' => 'B', 'boteditletter' => 'b', 'unpatrolledletter' => '!', 'number_of_watching_users_pageview' => '[$1 {{PLURAL:$1|pemantau|pemantau}}]', 'rc_categories' => 'Batasi sampai kategori (dipisah dengan "|")', 'rc_categories_any' => 'Apa pun', 'rc-change-size' => '$1', 'rc-change-size-new' => '$1 {{PLURAL:$1|bita|bita}} setelah perubahan', 'newsectionsummary' => '/* $1 */ bagian baru', 'rc-enhanced-expand' => 'Tampilkan rincian (memerlukan JavaScript)', 'rc-enhanced-hide' => 'Sembunyikan rincian', 'rc-old-title' => 'awalnya dibuat sebagai "$1"', # Recent changes linked 'recentchangeslinked' => 'Perubahan terkait', 'recentchangeslinked-feed' => 'Perubahan terkait', 'recentchangeslinked-toolbox' => 'Perubahan terkait', 'recentchangeslinked-title' => 'Perubahan yang terkait dengan "$1"', 'recentchangeslinked-noresult' => 'Tidak terjadi perubahan pada halaman-halaman terkait selama periode yang telah ditentukan.', 'recentchangeslinked-summary' => "Halaman istimewa ini memberikan daftar perubahan terakhir pada halaman-halaman terkait. Halaman yang Anda pantau ditandai dengan '''cetak tebal'''.", 'recentchangeslinked-page' => 'Nama halaman:', 'recentchangeslinked-to' => 'Perlihatkan perubahan dari halaman-halaman yang terhubung dengan halaman yang disajikan', # Upload 'upload' => 'Unggah berkas', 'uploadbtn' => 'Muatkan berkas', 'reuploaddesc' => 'Kembali ke formulir pemuatan', 'upload-tryagain' => 'Kirim perubahan keterangan berkas', 'uploadnologin' => 'Belum masuk log', 'uploadnologintext' => 'Anda harus [[Special:UserLogin|masuk log]] untuk dapat memuatkan berkas.', 'upload_directory_missing' => 'Direktori pemuatan ($1) tidak ditemukan dan tidak dapat dibuat oleh server web.', 'upload_directory_read_only' => 'Direktori pemuatan ($1) tidak dapat ditulis oleh server web.', 'uploaderror' => 'Kesalahan pemuatan', 'upload-recreate-warning' => "'''Peringatan: Berkas dengan nama itu telah dihapus atau dipindahkan.''' Log penghapusan dan pemindahan laman ini adalah sebagai berikut:", 'uploadtext' => "Gunakan formulir di bawah untuk mengunggah berkas. Untuk menampilkan atau mencari berkas yang sebelumnya dimuat, gunakan [[Special:FileList|daftar berkas]]. Pengunggahan (ulang) juga tercatat dalam [[Special:Log/upload|log pengunggahan]], sementara penghapusan tercatat dalam [[Special:Log/delete|log penghapusan]]. Untuk menampilkan atau menyertakan berkas di dalam suatu halaman, gunakan pranala dengan salah satu format di bawah ini: * '''<code><nowiki>[[</nowiki>{{ns:file}}<nowiki>:Berkas.jpg]]</nowiki></code>''' untuk menampilkan berkas dalam ukuran aslinya * '''<code><nowiki>[[</nowiki>{{ns:file}}<nowiki>:Berkas.png|200px|thumb|left|teks alternatif]]</nowiki></code>''' untuk menampilkan berkas dengan lebar 200px dalam sebuah kotak di kiri halaman dengan 'teks alternatif' sebagai keterangan gambar * '''<code><nowiki>[[</nowiki>{{ns:media}}<nowiki>:Berkas.ogg]]</nowiki></code>''' sebagai pranala langsung ke berkas yang dimaksud tanpa menampilkan berkas tersebut melalui wiki", 'upload-permitted' => 'Jenis berkas yang diperbolehkan: $1.', 'upload-preferred' => 'Jenis berkas yang disarankan: $1.', 'upload-prohibited' => 'Jenis berkas yang dilarang: $1.', 'uploadlog' => 'log pengunggahan', 'uploadlogpage' => 'Log pengunggahan', 'uploadlogpagetext' => 'Berikut adalah daftar unggahan berkas terbaru. Lihat [[Special:NewFiles|galeri berkas baru]] untuk tampilan visual.', 'filename' => 'Nama berkas', 'filedesc' => 'Ringkasan', 'fileuploadsummary' => 'Ringkasan:', 'filereuploadsummary' => 'Perubahan berkas:', 'filestatus' => 'Status hak cipta:', 'filesource' => 'Sumber:', 'uploadedfiles' => 'Berkas yang telah dimuat', 'ignorewarning' => 'Abaikan peringatan dan langsung simpan berkas.', 'ignorewarnings' => 'Abaikan peringatan apa pun', 'minlength1' => 'Nama berkas paling tidak harus terdiri dari satu huruf.', 'illegalfilename' => 'Nama berkas "$1" mengandung aksara yang tidak diperbolehkan ada dalam judul halaman. Silakan ubah nama berkas tersebut dan cobalah memuatkannya kembali.', 'filename-toolong' => 'Nama berkas tidak boleh lebih panjang dari 240 bita.', 'badfilename' => 'Nama berkas telah diubah menjadi "$1".', 'filetype-mime-mismatch' => 'Ekstensi berkas ".$1" tidak cocok dengan jenis MIME yang terdeteksi dari berkas ($2).', 'filetype-badmime' => 'Berkas dengan tipe MIME "$1" tidak diperkenankan untuk dimuat.', 'filetype-bad-ie-mime' => 'Tidak dapat memuat berkas ini karena Internet Explorer mendeteksinya sebagai "$1", yang tak diizinkan dan merupakan tipe berkas yang memiliki potensi bahaya.', 'filetype-unwanted-type' => "'''\".\$1\"''' termasuk jenis berkas yang tidak diijinkan. {{PLURAL:\$3|Jenis berkas yang disarankan adalah|Jenis berkas yang disarankan adalah}} \$2.", 'filetype-banned-type' => '\'\'\'".$1"\'\'\' {{PLURAL:$4|adalah ekstensi berkas yang tidak diizinkan|adalah ekstensi berkas yang tidak diizinkan}}. {{PLURAL:$3|Jenis berkas yang diperolehkan adalah|Jenis berkas yang diperolehkan adalah}} $2.', 'filetype-missing' => 'Berkas tak memiliki ekstensi (misalnya ".jpg").', 'empty-file' => 'Berkas yang Anda kirim kosong.', 'file-too-large' => 'Ukuran berkas yang Anda muat terlalu besar.', 'filename-tooshort' => 'Nama berkas terlalu pendek.', 'filetype-banned' => 'Jenis berkas ini dilarang.', 'verification-error' => 'Berkas ini tidak lulus verifikasi.', 'hookaborted' => 'Modifikasi yang coba Anda lakukan dibatalkan oleh suatu kaitan ekstensi.', 'illegal-filename' => 'Nama berkas tidak diperbolehkan.', 'overwrite' => 'Tidak diizinkan untuk menimpa berkas yang telah ada.', 'unknown-error' => 'Terjadi sebuah kesalahan yang tidak diketahui.', 'tmp-create-error' => 'Tidak dapat membuat berkas sementara.', 'tmp-write-error' => 'Kesalahan sewaktu menulis berkas sementara.', 'large-file' => 'Ukuran berkas disarankan untuk tidak melebihi $1 bita; berkas ini berukuran $2 bita.', 'largefileserver' => 'Berkas ini lebih besar dari pada yang diizinkan server.', 'emptyfile' => 'Berkas yang Anda muatkan kelihatannya kosong. Hal ini mungkin disebabkan karena adanya kesalahan ketik pada nama berkas. Silakan pastikan apakah Anda benar-benar ingin memuatkan berkas ini.', 'windows-nonascii-filename' => 'Wiki ini tidak mendukung nama berkas dengan karakter istimewa.', 'fileexists' => 'Suatu berkas dengan nama tersebut telah ada, harap periksa <strong>[[:$1]]</strong> jika Anda tidak yakin untuk mengubahnya. [[$1|thumb]]', 'filepageexists' => 'Halaman deskripsi untuk berkas ini telah dibuat di <strong>[[:$1]]</strong>, tapi saat ini tak ditemukan berkas dengan nama tersebut. Ringkasan yang Anda masukkan tidak akan tampil pada halaman deskripsi. Untuk memunculkannya, Anda perlu untuk menyuntingnya secara manual. [[$1|thumb]]', 'fileexists-extension' => 'Berkas dengan nama serupa telah ada: [[$2|thumb]] * Nama berkas yang akan dimuat: <strong>[[:$1]]</strong> * Nama berkas yang telah ada: <strong>[[:$2]]</strong> Mohon gunakan nama yang berbeda.', 'fileexists-thumbnail-yes' => "Berkas ini tampaknya merupakan gambar yang ukurannya diperkecil ''(miniatur)''. [[$1|thumb]] Harap periksa berkas <strong>[[:$1]]</strong> tersebut. Jika berkas tersebut memang merupakan gambar dalam ukuran aslinya, Anda tidak perlu untuk memuat kembali miniatur lainnya.", 'file-thumbnail-no' => "Nama berkas dimulai dengan <strong>$1</strong>. Tampaknya berkas ini merupakan gambar dengan ukuran diperkecil ''(miniatur)''. Jika Anda memiliki versi resolusi penuh dari gambar ini, harap muatkan berkas tersebut. Jika tidak, harap ubah nama berkas ini.", 'fileexists-forbidden' => 'Suatu berkas dengan nama ini telah ada dan tak dapat ditimpa. Jika Anda masih ingin memuat berkas Anda, silakan kembali dan gunakan nama baru. [[File:$1|thumb|center|$1]]', 'fileexists-shared-forbidden' => 'Ditemukan berkas lain dengan nama yang sama di repositori bersama. Jika Anda tetap ingin memuatkan berkas Anda, harap kembali dan gunakan nama lain. [[File:$1|thumb|center|$1]]', 'file-exists-duplicate' => 'Berkas ini berduplikasi dengan {{PLURAL:$1|berkas|berkas-berkas}} berikut:', 'file-deleted-duplicate' => 'Sebuah berkas yang identik dengan berkas ini ([[:$1]]) sudah pernah dihapuskan sebelumnya. Anda harus memeriksa sejarah penghapusan berkas tersebut sebelum melanjutkan memuat ulang berkas ini.', 'uploadwarning' => 'Peringatan pemuatan', 'uploadwarning-text' => 'Mohon perbaiki keterangan berkas di bawah dan coba lagi.', 'savefile' => 'Simpan berkas', 'uploadedimage' => 'memuat "[[$1]]"', 'overwroteimage' => 'memuat versi baru dari "[[$1]]"', 'uploaddisabled' => 'Maaf, fasilitas pemuatan dimatikan.', 'copyuploaddisabled' => 'Pengunggahan dengan URL dimatikan.', 'uploadfromurl-queued' => 'Pengunggahan Anda telah terantri.', 'uploaddisabledtext' => 'Pemuatan berkas tidak diizinkan.', 'php-uploaddisabledtext' => 'Pemuatan berkas dimatikan di PHP. Silakan cek pengaturan file_uploads.', 'uploadscripted' => 'Berkas ini mengandung HTML atau kode yang dapat diinterpretasikan dengan keliru oleh penjelajah web.', 'uploadvirus' => 'Berkas tersebut mengandung virus! Rincian: $1', 'uploadjava' => 'Berkas ini adalah berkas ZIP yang mengnadung berkas .class Java. Penggunggahan berkas Java tidak diperbolehkan karena dapat menyebabkan pengabaian batasan keamanan.', 'upload-source' => 'Berkas sumber', 'sourcefilename' => 'Nama berkas sumber:', 'sourceurl' => 'URL sumber:', 'destfilename' => 'Nama berkas tujuan:', 'upload-maxfilesize' => 'Ukuran berkas maksimum: $1', 'upload-description' => 'Keterangan berkas', 'upload-options' => 'Opsi pengunggahan', 'watchthisupload' => 'Pantau berkas ini', 'filewasdeleted' => 'Suatu berkas dengan nama ini pernah dimuat dan selanjutnya dihapus. Harap cek $1 sebelum memuat lagi berkas tersebut.', 'filename-bad-prefix' => "Nama berkas yang Anda muat diawali dengan '''\"\$1\"''', yang merupakan nama non-deskriptif yang biasanya diberikan secara otomatis oleh kamera digital. Harap pilih nama lain yang lebih deskriptif untuk berkas Anda.", 'filename-prefix-blacklist' => ' #<!-- biarkan baris ini seperti adanya --> <pre> # Contohnya sebagai berikut: # * Semuanya dari karekter "#" sampai akhir baris ini adalah komentar # * Setiap garis "_" adalah awalan untuk nama file khas yang diberikan secara otomatis oleh kamera digital CIMG # Casio DSC_ # Nikon DSCF # Fuji DSCN # Nikon DUW # beberapa model telpon seluler IMG # generik JD # Jenoptik MGP # Pentax PICT # lainnya. #</pre> <!-- biarkan baris ini seperti adanya -->', 'upload-success-subj' => 'Berhasil dimuat', 'upload-success-msg' => 'Pengunggahan Anda dari [$2] berhasil. Hasilnya tersedia di sini: [[:{{ns:file}}:$1]]', 'upload-failure-subj' => 'Masalah pengunggahan', 'upload-failure-msg' => 'Ada masalah dengan unggahan Anda dari [$2]: $1', 'upload-warning-subj' => 'Peringatan pemuatan', 'upload-warning-msg' => 'Terjadi masalah dengan unggahan Anda dari [$2]. Anda dapat kembali ke [[Special:Upload/stash/$1|formulir pengunggahan]] untuk memerbaiki masalah ini.', 'upload-proto-error' => 'Protokol tak tepat', 'upload-proto-error-text' => 'Pemuatan jarak jauh membutuhkan URL yang diawali dengan <code>http://</code> atau <code>ftp://</code>.', 'upload-file-error' => 'Kesalahan internal', 'upload-file-error-text' => 'Terjadi kesalahan internal sewaktu mencoba membuat berkas sementara di server. Silakan hubungi salah seorang [[Special:ListUsers/sysop|pengurus]].', 'upload-misc-error' => 'Kesalahan pemuatan yang tak dikenal', 'upload-misc-error-text' => 'Suatu kesalahan yang tak dikenal terjadi sewaktu pemuatan. Harap pastikan bahwa URL tersebut valid dan dapat diakses dan silakan coba lagi. Jika masalah ini tetap terjadi, kontak administrator sistem.', 'upload-too-many-redirects' => 'URL mengandung terlalu banyak pengalihan', 'upload-unknown-size' => 'Ukuran tidak diketahui', 'upload-http-error' => 'Kesalahan HTTP terjadi: $1', 'upload-copy-upload-invalid-domain' => 'Unggahan salinan tidak tersedia dari domain ini.', # File backend 'backend-fail-stream' => 'Tidak bisa mengalikan berkas $1.', 'backend-fail-backup' => 'Tidak dapat mencadangkan berkas $1.', 'backend-fail-notexists' => 'Berkas $1 tidak ada.', 'backend-fail-hashes' => 'Tidak bisa mendapatkan hash berkas sebagai perbandingan.', 'backend-fail-notsame' => 'Berkas nonidentik telah ada di $1.', 'backend-fail-invalidpath' => '$1 bukanlah lintasan penyimpanan yang valid.', 'backend-fail-delete' => 'Tidak dapat menghapus berkas $1.', 'backend-fail-describe' => 'Gagal mengubah metadata untuk berkas "$1".', 'backend-fail-alreadyexists' => 'Berkas $1 sudah ada.', 'backend-fail-store' => 'Tidak dapat menyimpan berkas $1 di $2.', 'backend-fail-copy' => 'Tidak dapat menyalin berkas $1 ke $2.', 'backend-fail-move' => 'Tidak dapat memindahkan berkas $1 ke $2.', 'backend-fail-opentemp' => 'Tidak dapat membuka berkas sementara.', 'backend-fail-writetemp' => 'Tidak dapat menulis ke berkas sementara.', 'backend-fail-closetemp' => 'Tidak dapat menutup berkas sementara.', 'backend-fail-read' => 'Tidak dapat membaca berkas $1.', 'backend-fail-create' => 'Tidak dapat membuat berkas $1.', 'backend-fail-maxsize' => 'Tidak dapat membuat berkas $1 karena ukurannya lebih besar dari {{PLURAL:$2||}}$2 bita.', 'backend-fail-readonly' => 'Backend penyimpanan "$1" ini saat ini hanya bisa dibaca. Alasan yang diberikan adalah: "\'\'$2\'\'"', 'backend-fail-synced' => 'Berkas "$1" dalam keadaan yang tidak konsisten dalam backends penyimpanan internal', 'backend-fail-connect' => 'Tidak dapat menyambung ke penyimpanan backend "$1".', 'backend-fail-internal' => 'Kesalahan yang tidak dikenal terjadi di backend penyimpanan "$1".', 'backend-fail-contenttype' => 'Tidak dapat menentukan tipe konten dari berkas yang disimpan di "$1".', 'backend-fail-batchsize' => 'Penyimpanan backend diberikan batch $1 berkas {{PLURAL:$1||}}operasi; batasnya adalah $2 {{PLURAL:$2||}}operasi.', 'backend-fail-usable' => 'Tidak dapat membaca atau menulis berkas "$1" karena izin tidak memadai atau direktori/kontainer hilang.', # File journal errors 'filejournal-fail-dbconnect' => 'Tidak dapat menyambung ke database jurnal untuk penyimpanan backend "$1".', 'filejournal-fail-dbquery' => 'Tidak bisa update database jurnal untuk penyimpanan backend "$1".', # Lock manager 'lockmanager-notlocked' => 'Tidak bisa membuka kunci "$1" karena "$1" tidak terkunci.', 'lockmanager-fail-closelock' => 'Tidak dapat menutup penguncian berkas untuk "$1".', 'lockmanager-fail-deletelock' => 'Tidak dapat menghapus penguncian berkas untuk "$1".', 'lockmanager-fail-acquirelock' => 'Tidak dapat mendapatkan penguncian untuk "$1"', 'lockmanager-fail-openlock' => 'Tidak dapat membuka penguncian berkas untuk "$1".', 'lockmanager-fail-releaselock' => 'Tidak dapat melepaskan penguncian untuk "$1"', 'lockmanager-fail-db-bucket' => 'Tidak bisa menghubungi database kunci yang mencukupi dalam ember $1.', 'lockmanager-fail-db-release' => 'Tidak dapat melepaskan penguncian pada basis data $1.', 'lockmanager-fail-svr-acquire' => 'Gagal memperoleh kunci di server $1.', 'lockmanager-fail-svr-release' => 'Tidak dapat melepaskan penguncian pada server $1.', # ZipDirectoryReader 'zip-file-open-error' => 'Timbul galat saat membuka berkas untuk pengecekan ZIP.', 'zip-wrong-format' => 'Berkas yang diberikan bukanlah berkas ZIP.', 'zip-bad' => 'Berkas adalah berkas ZIP yang rusak atau tidak terbaca. Berkas tersebut tidak dapat diperiksa keamanannya dengan baik.', 'zip-unsupported' => 'Berkas ini adalah berkas ZIP yang menggunakan fitur ZIP yang tidak didukung oleh MediaWiki. Berkas tersebut tidak dapat diperiksa keamanannya dengan baik.', # Special:UploadStash 'uploadstash' => 'Simpanan unggahan', 'uploadstash-summary' => 'Halaman ini memberikan akses terhadap berkas yang diunggah (atau dalam proses pengunggahan), namun belum diterbitkan ke wiki. Berkas-berkas ini tidak dapat dilihat oleh siapa pun kecuali pengunggahnya.', 'uploadstash-clear' => 'Hapus berkas simpanan', 'uploadstash-nofiles' => 'Anda tidak memiliki berkas simpanan.', 'uploadstash-badtoken' => 'Pelaksanaan tindakan tersebut gagal. Mungkin karena hak penyuntingan Anda telah kedaluwarsa. Coba lagi.', 'uploadstash-errclear' => 'Penghapusan berkas gagal.', 'uploadstash-refresh' => 'Segarkan daftar berkas.', 'invalid-chunk-offset' => 'Ofset potongan tidak valid', # img_auth script messages 'img-auth-accessdenied' => 'Akses ditolak', 'img-auth-nopathinfo' => 'PATH_INFO hilang. Server Anda tidak diatur untuk melewatkan informasi ini. Server tersebut mungkin berbasis CGI dan tidak dapat mendukung img_auth. Lihat https://www.mediawiki.org/wiki/Manual:Image_Authorization.', 'img-auth-notindir' => 'Alur yang diminta tidak diatur dalam direktori ungahan.', 'img-auth-badtitle' => 'Tidak dapat membangun judul yang sah dari "$1".', 'img-auth-nologinnWL' => 'Anda tidak masuk log dan "$1" tidak dalam daftar putih.', 'img-auth-nofile' => 'Berkas "$1" tidak ada.', 'img-auth-isdir' => 'Anda mencoba mengakses direktori "$1". Hanya akses berkas di bolehkan.', 'img-auth-streaming' => 'Streaming "$1".', 'img-auth-public' => 'Fungsi dari img_auth.php adalah mengeluarkan berkas dari wiki pribadi. Wiki ini di atur sebagai wiki umum. Untuk pilihan keamanan, img_auth.php dinonaktifkan.', 'img-auth-noread' => 'Pengguna tidak memiliki akses untuk membaca "$1".', 'img-auth-bad-query-string' => 'URL memiliki string kueri yang tidak sah.', # HTTP errors 'http-invalid-url' => 'URL tidak sah: $1', 'http-invalid-scheme' => 'URL dengan skema "$1" tidak didukung.', 'http-request-error' => 'Permintaan HTTP gagal karena kesalahan yang tidak diketahui.', 'http-read-error' => 'Kesalahan pembacaan HTTP', 'http-timed-out' => 'Permintaan HTTP lewat tenggat.', 'http-curl-error' => 'Kesalahan saat mengambil URL: $1', 'http-bad-status' => 'Ada masalah saat permintaan halaman HTTP: $1 $2', # Some likely curl errors. More could be added from <http://curl.haxx.se/libcurl/c/libcurl-errors.html> 'upload-curl-error6' => 'URL tidak dapat dihubungi', 'upload-curl-error6-text' => 'URL yang diberikan tak dapat dihubungi. Harap periksa ulang bahwa URL tersebut tepat dan situs itu sedang aktif.', 'upload-curl-error28' => 'Pemuatan lewat waktu', 'upload-curl-error28-text' => 'Situs yang dituju terlalu lambat merespon. Tolong cek apakah situs tersebut aktif, tunggu sebentar, dan coba lagi. Mungkin Anda perlu mencobanya di saat yang lebih longgar.', 'license' => 'Jenis lisensi:', 'license-header' => 'Jenis lisensi', 'nolicense' => 'Tidak ada yang dipilih', 'license-nopreview' => '(Pratayang tak tersedia)', 'upload_source_url' => ' (suatu URL valid yang dapat diakses publik)', 'upload_source_file' => ' (suatu berkas di komputer Anda)', # Special:ListFiles 'listfiles-summary' => 'Halaman istimewa ini menampilkan semua berkas yang telah diunggah. Ketika disaring oleh pengguna, hanya vesi berkas terbaru dari berkas yang pengguna unggah yang ditampilkan.', 'listfiles_search_for' => 'Cari nama berkas:', 'imgfile' => 'berkas', 'listfiles' => 'Daftar berkas', 'listfiles_thumb' => 'Miniatur', 'listfiles_date' => 'Tanggal', 'listfiles_name' => 'Nama', 'listfiles_user' => 'Pengguna', 'listfiles_size' => 'Ukuran', 'listfiles_description' => 'Deskripsi', 'listfiles_count' => 'Versi', # File description page 'file-anchor-link' => 'Berkas', 'filehist' => 'Riwayat berkas', 'filehist-help' => 'Klik pada tanggal/waktu untuk melihat berkas ini pada saat tersebut.', 'filehist-deleteall' => 'hapus semua', 'filehist-deleteone' => 'hapus', 'filehist-revert' => 'batalkan', 'filehist-current' => 'terkini', 'filehist-datetime' => 'Tanggal/Waktu', 'filehist-thumb' => 'Miniatur', 'filehist-thumbtext' => 'Miniatur untuk versi per $1', 'filehist-nothumb' => 'Miniatur tidak tersedia', 'filehist-user' => 'Pengguna', 'filehist-dimensions' => 'Dimensi', 'filehist-filesize' => 'Besar berkas', 'filehist-comment' => 'Komentar', 'filehist-missing' => 'Berkas tidak ditemukan', 'imagelinks' => 'Pranala berkas', 'linkstoimage' => '{{PLURAL:$1||}}$1 halaman berikut memiliki pranala ke berkas ini:', 'linkstoimage-more' => 'Lebih dari $1 {{PLURAL:$1|halaman|halaman}} memiliki pranala ke berkas ini. Daftar berikut menampilkan {{PLURAL:$1|halaman dengan pranala langsung|$1 halaman dengan pranala langsung}} ke berkas ini. Juga tersedia [[Special:WhatLinksHere/$2|daftar selengkapnya]].', 'nolinkstoimage' => 'Tidak ada halaman yang memiliki pranala ke berkas ini.', 'morelinkstoimage' => 'Lihat [[Special:WhatLinksHere/$1|pranala lainnya]] ke berkas ini.', 'linkstoimage-redirect' => '$1 (pengalihan berkas) $2', 'duplicatesoffile' => '{{PLURAL:$1|Ada satu berkas yang|Sebanyak $1 berkas berikut}} merupakan duplikat dari berkas ini ([[Special:FileDuplicateSearch/$2|rincian lebih lanjut]]):', 'sharedupload' => 'Berkas ini berasal dari $1 dan mungkin digunakan oleh proyek-proyek lain.', 'sharedupload-desc-there' => 'Berkas ini berasal dari $1 dan mungkin digunakan oleh proyek-proyek lain. Silakan lihat [$2 halaman deskripsi berkas] untuk informasi lebih lanjut.', 'sharedupload-desc-here' => 'Berkas ini berasal dari $1 dan mungkin digunakan oleh proyek-proyek lain. Deskripsi dari [$2 halaman deskripsinya] ditunjukkan di bawah ini.', 'sharedupload-desc-edit' => 'Berkas ini berasal dari $1 dan mungkin digunakan oleh proyek lain. Mungkin Anda ingin menyunting keterangan pada [$2 halaman deskripsi berkas] di sana.', 'sharedupload-desc-create' => 'Berkas ini berasal dari $1 dan mungkin digunakan oleh proyek lain. Mungkin Anda ingin menyunting keterangan pada [$2 halaman deskripsi berkas] di sana.', 'filepage-nofile' => 'Tidak ada berkas dengan nama ini.', 'filepage-nofile-link' => 'Tidak ada berkas dengan nama ini, tetapi Anda dapat [$1 mengunggahnya].', 'uploadnewversion-linktext' => 'Muatkan versi yang lebih baru dari berkas ini', 'shared-repo-from' => 'dari $1', 'shared-repo' => 'suatu repositori bersama', 'shared-repo-name-wikimediacommons' => 'Wikimedia Commons', 'filepage.css' => '/* CSS yang ditempatkan di sini disertakan pada halaman deskripsi berkas, juga disertakan pada klien wiki lain */', 'upload-disallowed-here' => 'Anda tidak bisa menimpa berkas ini.', # File reversion 'filerevert' => 'Batalkan $1', 'filerevert-legend' => 'Batalkan berkas', 'filerevert-intro' => "Anda membatalkan '''[[Media:$1|$1]]''' ke versi [$4 pada $3, $2].", 'filerevert-comment' => 'Alasan:', 'filerevert-defaultcomment' => 'Dibatalkan ke versi pada $2, $1', 'filerevert-submit' => 'Batalkan', 'filerevert-success' => "'''[[Media:$1|$1]]''' telah dibatalkan ke versi [$4 pada $3, $2]", 'filerevert-badversion' => 'Tidak ada versi lokal terdahulu dari berkas ini dengan stempel waktu yang dimaksud.', # File deletion 'filedelete' => 'Menghapus $1', 'filedelete-legend' => 'Menghapus berkas', 'filedelete-intro' => "Anda akan menghapus berkas '''[[Media:$1|$1]]''' berikut semua riwayatnya.", 'filedelete-intro-old' => '<span class="plainlinks">Anda menghapus versi \'\'\'[[Media:$1|$1]]\'\'\' hingga [$4 $3, $2].</span>', 'filedelete-comment' => 'Alasan:', 'filedelete-submit' => 'Hapus', 'filedelete-success' => "'''$1''' telah dihapus.", 'filedelete-success-old' => "Berkas '''[[Media:$1|$1]]''' versi $3, $2 telah dihapus.", 'filedelete-nofile' => "'''$1''' tak ditemukan.", 'filedelete-nofile-old' => "Tak ditemukan arsip versi dari '''$1''' dengan atribut yang diberikan.", 'filedelete-otherreason' => 'Alasan lain/tambahan:', 'filedelete-reason-otherlist' => 'Alasan lain', 'filedelete-reason-dropdown' => '*Alasan penghapusan ** Pelanggaran hak cipta ** Berkas duplikat', 'filedelete-edit-reasonlist' => 'Alasan penghapusan suntingan', 'filedelete-maintenance' => 'Penghapusan dan pengembalian berkas sementara dinonaktifkan selama perawatan.', 'filedelete-maintenance-title' => 'Tidak dapat menghapus berkas', # MIME search 'mimesearch' => 'Pencarian MIME', 'mimesearch-summary' => 'Halaman ini menyediakan fasilitas menyaring berkas berdasarkan tipe MIME-nya. Masukkan: contenttype/subtype, misalnya <code>image/jpeg</code>.', 'mimetype' => 'Tipe MIME:', 'download' => 'unduh', # Unwatched pages 'unwatchedpages' => 'Halaman yang tak dipantau', # List redirects 'listredirects' => 'Daftar pengalihan', # Unused templates 'unusedtemplates' => 'Templat yang tak digunakan', 'unusedtemplatestext' => 'Daftar berikut adalah semua halaman pada ruang nama {{ns:template}} yang tidak dipakai di halaman mana pun. Cek dahulu pranala lain ke templat tersebut sebelum menghapusnya.', 'unusedtemplateswlh' => 'pranala lain', # Random page 'randompage' => 'Halaman sembarang', 'randompage-nopages' => 'Tidak ada halaman pada {{PLURAL:$2||}}ruang nama berikut: $1.', # Random redirect 'randomredirect' => 'Pengalihan sembarang', 'randomredirect-nopages' => 'Tak terdapat pengalihan pada ruang nama "$1".', # Statistics 'statistics' => 'Statistik', 'statistics-header-pages' => 'Statistik halaman', 'statistics-header-edits' => 'Statistik suntingan', 'statistics-header-views' => 'Statistik penampilan', 'statistics-header-users' => 'Statistik pengguna', 'statistics-header-hooks' => 'Statistik lainnya', 'statistics-articles' => 'Halaman konten', 'statistics-pages' => 'Jumlah halaman', 'statistics-pages-desc' => 'Semua halaman di wiki ini, termasuk halaman pembicaraan, pengalihan, dan lain-lain.', 'statistics-files' => 'Berkas yang dimuatkan', 'statistics-edits' => 'Jumlah suntingan sejak {{SITENAME}} dimulai', 'statistics-edits-average' => 'Rata-rata suntingan per halaman', 'statistics-views-total' => 'Jumlah penampilan halaman', 'statistics-views-total-desc' => 'Tampilan ke halaman yang tidak ada dan halaman khusus yang tidak dimasukkan', 'statistics-views-peredit' => 'Jumlah penampilan per suntingan', 'statistics-users' => 'Jumlah [[Special:ListUsers|pengguna terdaftar]]', 'statistics-users-active' => 'Jumlah pengguna aktif', 'statistics-users-active-desc' => 'Pengguna yang telah melakukan suatu aktivitas dalam {{PLURAL:$1|sehari|$1 hari}} terakhir.', 'statistics-mostpopular' => 'Halaman yang paling banyak ditampilkan', 'disambiguations' => 'Halaman yang terhubung ke halaman disambiguasi', 'disambiguationspage' => 'Template:Disambig', 'disambiguations-text' => "Halaman-halaman berikut memiliki pranala ke suatu '''halaman disambiguasi'''. Halaman-halaman tersebut seharusnya berpaut ke topik-topik yang sesuai.<br /> Suatu halaman dianggap sebagai halaman disambiguasi apabila halaman tersebut menggunakan templat yang terhubung ke [[MediaWiki:Disambiguationspage]].", 'pageswithprop' => 'Halaman dengan halaman properti', 'pageswithprop-legend' => 'Halaman dengan halaman properti', 'pageswithprop-text' => 'Halaman ini berisi daftar halaman yang menggunakan properti halaman tertentu.', 'pageswithprop-prop' => 'Nama properti:', 'pageswithprop-submit' => 'Lanjut', 'doubleredirects' => 'Pengalihan ganda', 'doubleredirectstext' => 'Halaman ini memuat daftar halaman yang dialihkan ke halaman pengalihan yang lain. Setiap baris memuat pranala ke pengalihan pertama dan pengalihan kedua serta target dari pengalihan kedua yang umumnya adalah halaman yang "sebenarnya". Halaman peralihan pertama seharusnya dialihkan ke halaman yang bukan merupakan halaman peralihan. Nama yang telah <del>dicoret</del> berarti telah dibetulkan.', 'double-redirect-fixed-move' => '[[$1]] telah dipindahkan menjadi halaman peralihan ke [[$2]]', 'double-redirect-fixed-maintenance' => 'Memperbaiki pengalihan ganda dari [[$1]] ke [[$2]].', 'double-redirect-fixer' => 'Revisi pengalihan', 'brokenredirects' => 'Pengalihan rusak', 'brokenredirectstext' => 'Pengalihan-pengalihan berikut merujuk pada halaman yang tidak ada:', 'brokenredirects-edit' => 'sunting', 'brokenredirects-delete' => 'hapus', 'withoutinterwiki' => 'Halaman tanpa interwiki', 'withoutinterwiki-summary' => 'Halaman-halaman berikut tidak memiliki interwiki ke versi bahasa lain.', 'withoutinterwiki-legend' => 'Prefiks', 'withoutinterwiki-submit' => 'Tampilkan', 'fewestrevisions' => 'Halaman dengan perubahan tersedikit', # Miscellaneous special pages 'nbytes' => '$1 {{PLURAL:$1|bita|bita}}', 'ncategories' => '$1 {{PLURAL:$1|kategori|kategori}}', 'ninterwikis' => '$1 {{PLURAL:$1|interwiki|interwiki}}', 'nlinks' => '$1 {{PLURAL:$1|pranala|pranala}}', 'nmembers' => '$1 {{PLURAL:$1|isi|isi}}', 'nrevisions' => '$1 {{PLURAL:$1|revisi|revisi}}', 'nviews' => 'dilihat $1 {{PLURAL:$1|kali|kali}}', 'nimagelinks' => 'Digunakan pada $1 {{PLURAL:$1|halaman|halaman}}', 'ntransclusions' => 'digunakan pada $1 {{PLURAL:$1|halaman|halaman}}', 'specialpage-empty' => 'Tak ada yang perlu dilaporkan.', 'lonelypages' => 'Halaman tanpa pranala balik', 'lonelypagestext' => 'Halaman-halaman berikut tidak memiliki pranala dari atau ditransklusikan ke halaman mana pun di {{SITENAME}}.', 'uncategorizedpages' => 'Halaman yang tak terkategori', 'uncategorizedcategories' => 'Kategori yang tak terkategori', 'uncategorizedimages' => 'Berkas yang tak terkategori', 'uncategorizedtemplates' => 'Templat yang tak terkategori', 'unusedcategories' => 'Kategori yang tak digunakan', 'unusedimages' => 'Berkas yang tak digunakan', 'popularpages' => 'Halaman populer', 'wantedcategories' => 'Kategori yang diinginkan', 'wantedpages' => 'Halaman yang diinginkan', 'wantedpages-badtitle' => 'Judul tak valid dalam himpunan hasil: $1', 'wantedfiles' => 'Berkas yang diinginkan', 'wantedfiletext-cat' => 'Berkas-berkas berikut digunakan tetapi tidak ada. Berkas dari repositori asing mungkin tercantum meskipun ada. Setiap "false positive" akan <del>dicoret</del>. Selain itu, halaman yang menggunakan berkas yang tidak ada akan dicantumkan dalam [[:$1]].', 'wantedfiletext-nocat' => 'Berkas-berkas berikut digunakan tetapi tidak ada. Berkas dari repositori asing mungkin tercantum meskipun ada. Setiap "false positive" akan <del>dicoret</del>.', 'wantedtemplates' => 'Templat yang diinginkan', 'mostlinked' => 'Halaman yang tersering dituju', 'mostlinkedcategories' => 'Kategori yang tersering digunakan', 'mostlinkedtemplates' => 'Templat yang tersering digunakan', 'mostcategories' => 'Halaman dengan kategori terbanyak', 'mostimages' => 'Berkas yang tersering digunakan', 'mostinterwikis' => 'Halaman dengan interwiki terbanyak', 'mostrevisions' => 'Halaman dengan perubahan terbanyak', 'prefixindex' => 'Semua halaman dengan awalan', 'prefixindex-namespace' => 'Semua halaman dengan awalan (ruang nama $1)', 'shortpages' => 'Halaman pendek', 'longpages' => 'Halaman panjang', 'deadendpages' => 'Halaman buntu', 'deadendpagestext' => 'Halaman-halaman berikut tidak memiliki pranala ke halaman mana pun di wiki ini.', 'protectedpages' => 'Halaman yang dilindungi', 'protectedpages-indef' => 'Hanya untuk pelindungan dengan jangka waktu tak terbatas', 'protectedpages-cascade' => 'Hanya pelindungan runtun', 'protectedpagestext' => 'Halaman-halaman berikut dilindungi dari pemindahan atau penyuntingan.', 'protectedpagesempty' => 'Saat ini tidak ada halaman yang sedang dilindungi dengan parameter-parameter tersebut.', 'protectedtitles' => 'Judul yang dilindungi', 'protectedtitlestext' => 'Judul berikut ini dilindungi dari pembuatan', 'protectedtitlesempty' => 'Tidak ada judul yang dilindungi.', 'listusers' => 'Daftar pengguna', 'listusers-editsonly' => 'Tampilkan hanya pengguna yang memiliki kontribusi', 'listusers-creationsort' => 'Urutkan menurut tanggal pendaftaran', 'usereditcount' => '$1 {{PLURAL:$1|suntingan|suntingan}}', 'usercreated' => '{{GENDER:$3|Dibuat}} pada $1 pukul $2', 'newpages' => 'Halaman baru', 'newpages-username' => 'Nama pengguna:', 'ancientpages' => 'Halaman terlama', 'move' => 'Pindahkan', 'movethispage' => 'Pindahkan halaman ini', 'unusedimagestext' => 'Berkas berikut ada tapi tidak disertakan di halaman mana pun. Harap perhatikan bahwa situs web lain mungkin memiliki pranala ke suatu berkas dengan URL langsung, dan karenanya masih terdaftar di sini meskipun sudah tidak digunakan aktif.', 'unusedcategoriestext' => 'Kategori berikut ada, walaupun tidak ada halaman atau kategori lain yang menggunakannya.', 'notargettitle' => 'Tidak ada sasaran', 'notargettext' => 'Anda tidak menentukan halaman atau pengguna tujuan fungsi ini.', 'nopagetitle' => 'Halaman tujuan tidak ditemukan', 'nopagetext' => 'Halaman yang Anda tuju tidak ditemukan.', 'pager-newer-n' => '{{PLURAL:$1|1 lebih baru|$1 lebih baru}}', 'pager-older-n' => '{{PLURAL:$1|1 lebih lama|$1 lebih lama}}', 'suppress' => 'Pengawas', 'querypage-disabled' => 'Halaman istimewa ini dinonaktifkan demi alasan kinerja.', # Book sources 'booksources' => 'Sumber buku', 'booksources-search-legend' => 'Cari di sumber buku', 'booksources-isbn' => 'ISBN:', 'booksources-go' => 'Tuju ke', 'booksources-text' => 'Di bawah ini adalah daftar pranala ke situs lain yang menjual buku baru dan bekas, dan mungkin juga mempunyai informasi lebih lanjut mengenai buku yang sedang Anda cari:', 'booksources-invalid-isbn' => 'ISBN yang diberikan tampaknya tidak valid; periksa kesalahan penyalinan dari sumber asli.', # Special:Log 'specialloguserlabel' => 'Pengguna:', 'speciallogtitlelabel' => 'Target (judul atau pengguna):', 'log' => 'Log', 'all-logs-page' => 'Semua log publik', 'alllogstext' => 'Gabungan tampilan semua log yang tersedia di {{SITENAME}}. Anda dapat melakukan pembatasan tampilan dengan memilih jenis log, nama pengguna (sensitif kapitalisasi), atau judul halaman (juga sensitif kapitalisasi).', 'logempty' => 'Tidak ditemukan entri log yang sesuai.', 'log-title-wildcard' => 'Cari judul yang diawali dengan teks tersebut', 'showhideselectedlogentries' => 'Tampilkan/sembunyikan entri log terpilih', # Special:AllPages 'allpages' => 'Semua halaman', 'alphaindexline' => '$1 hingga $2', 'nextpage' => 'Halaman selanjutnya ($1)', 'prevpage' => 'Halaman sebelumnya ($1)', 'allpagesfrom' => 'Tampilkan halaman mulai dari:', 'allpagesto' => 'Tampilkan halaman hingga:', 'allarticles' => 'Semua halaman', 'allinnamespace' => 'Daftar halaman (ruang nama $1)', 'allnotinnamespace' => 'Daftar halaman (bukan ruang nama $1)', 'allpagesprev' => 'Sebelumnya', 'allpagesnext' => 'Selanjutnya', 'allpagessubmit' => 'Lanjut', 'allpagesprefix' => 'Tampilkan halaman dengan awalan:', 'allpagesbadtitle' => 'Judul halaman yang diberikan tidak sah atau memiliki awalan antar-bahasa atau antar-wiki. Judul tersebut mungkin juga mengandung satu atau lebih aksara yang tidak dapat digunakan dalam judul.', 'allpages-bad-ns' => '{{SITENAME}} tidak memiliki ruang nama "$1".', 'allpages-hide-redirects' => 'Sembunyikan pengalihan', # SpecialCachedPage 'cachedspecial-viewing-cached-ttl' => 'Anda melihat versi tembolok halaman ini, yang mungkin sudah berumur $1.', 'cachedspecial-viewing-cached-ts' => 'Anda melihat versi tembolok halaman ini, yang mungkin tidak akan benar-benar aktual.', 'cachedspecial-refresh-now' => 'Lihat versi terbaru.', # Special:Categories 'categories' => 'Kategori', 'categoriespagetext' => '{{PLURAL:$1|Kategori berikut|Kategori-kategori berikut}} memiliki isi halaman atau media. [[Special:UnusedCategories|Kategori yang tak digunakan]] tidak ditampilkan di sini. Lihat pula [[Special:WantedCategories|kategori yang diinginkan]].', 'categoriesfrom' => 'Tampilkan kategori-kategori dimulai dengan:', 'special-categories-sort-count' => 'urutkan menurut jumlah', 'special-categories-sort-abc' => 'urutkan menurut abjad', # Special:DeletedContributions 'deletedcontributions' => 'Kontribusi yang dihapus', 'deletedcontributions-title' => 'Kontribusi yang dihapus', 'sp-deletedcontributions-contribs' => 'kontribusi', # Special:LinkSearch 'linksearch' => 'Pencarian pranala luar', 'linksearch-pat' => 'Pola pencarian:', 'linksearch-ns' => 'Ruang nama:', 'linksearch-ok' => 'Cari', 'linksearch-text' => 'Tanda bintang seperti "*.wikipedia.org" dapat digunakan. Perlu sedikitnya satu domain tingkat atas, misalnya "*.org".<br /> {{PLURAL:$2|Protokol|Protokol}} yang didukung: <code>$1</code> (menggunakan http:// bila protokol tidak ditentukan)', 'linksearch-line' => '$1 memiliki pranala dari $2', 'linksearch-error' => "''Wildcards'' hanya dapat digunakan di bagian awal dari nama host.", # Special:ListUsers 'listusersfrom' => 'Tampilkan pengguna mulai dari:', 'listusers-submit' => 'Tampilkan', 'listusers-noresult' => 'Pengguna tidak ditemukan.', 'listusers-blocked' => '(diblokir)', # Special:ActiveUsers 'activeusers' => 'Daftar pengguna aktif', 'activeusers-intro' => 'Berikut adalah daftar pengguna yang memiliki suatu bentuk aktivitas selama paling tidak $1 {{PLURAL:$1|hari|hari}} terakhir.', 'activeusers-count' => '$1 {{PLURAL:$1|aktivitas|aktivitas}} dalam {{PLURAL:$3|1 hari|$3 hari}} terakhir', 'activeusers-from' => 'Tampilkan pengguna mulai dari:', 'activeusers-hidebots' => 'Sembunyikan bot', 'activeusers-hidesysops' => 'Sembunyikan pengurus', 'activeusers-noresult' => 'Pengguna tidak ditemukan.', # Special:ListGroupRights 'listgrouprights' => 'Daftar kelompok pengguna', 'listgrouprights-summary' => 'Berikut adalah daftar kelompok pengguna yang terdapat di wiki ini, dengan daftar hak akses mereka masing-masing. Informasi lebih lanjut mengenai hak masing-masing dapat ditemukan di [[{{MediaWiki:Listgrouprights-helppage}}|halaman bantuan hak pengguna]].', 'listgrouprights-key' => '* <span class="listgrouprights-granted">Hak yang berlaku</span> * <span class="listgrouprights-revoked">Hak yang dicabut</span>', 'listgrouprights-group' => 'Kelompok', 'listgrouprights-rights' => 'Hak', 'listgrouprights-helppage' => 'Help:Hak akses', 'listgrouprights-members' => '(daftar anggota)', 'listgrouprights-right-display' => '<span class="listgrouprights-granted">$1 <code>($2)</code></span>', 'listgrouprights-right-revoked' => '<span class="listgrouprights-revoked">$1 <code>($2)</code></span>', 'listgrouprights-addgroup' => 'Menambahkan {{PLURAL:$2|kelompok}}: $1', 'listgrouprights-removegroup' => 'Menghapus {{PLURAL:$2|kelompok|kelompok}}: $1', 'listgrouprights-addgroup-all' => 'Menambahkan semua kelompok', 'listgrouprights-removegroup-all' => 'Menghapus semua kelompok', 'listgrouprights-addgroup-self' => 'Dapat menambahkan {{PLURAL:$2|grup| grup}} ke akun sendiri: $1', 'listgrouprights-removegroup-self' => 'Menghapus {{PLURAL:$2|kelompok|kelompok}} dari akun sendiri: $1', 'listgrouprights-addgroup-self-all' => 'Dapat menambahkan semua grup ke akun sendiri', 'listgrouprights-removegroup-self-all' => 'Menghapus semua kelompok dari akun sendiri', # Email user 'mailnologin' => 'Tidak ada alamat surel', 'mailnologintext' => 'Anda harus [[Special:UserLogin|masuk log]] dan mempunyai alamat surel yang sah di dalam [[Special:Preferences|preferensi]] untuk mengirimkan surel kepada pengguna lain.', 'emailuser' => 'Surel pengguna', 'emailuser-title-target' => 'Kirim surel ke {{GENDER:$1|pengguna}} ini', 'emailuser-title-notarget' => 'Kirim surel', 'emailpage' => 'Kirim surel ke pengguna ini', 'emailpagetext' => 'Anda dapat menggunakan formulir di bawah ini untuk mengirimkan surel ke {{GENDER:$1|pengguna}} ini. Alamat surel yang Anda masukkan di [[Special:Preferences|preferensi akun Anda]] akan muncul sebagai alamat "Dari" dalam surel tersebut, sehingga penerima dapat langsung membalas kepada Anda.', 'usermailererror' => 'Kesalahan objek surat:', 'defemailsubject' => 'Surel {{SITENAME}} dari pengguna "$1"', 'usermaildisabled' => 'Surel pengguna dinonaktifkan', 'usermaildisabledtext' => 'Anda tidak dapat mengirim surel pada pengguna lain di wiki ini', 'noemailtitle' => 'Tidak ada alamat surel', 'noemailtext' => 'Pengguna ini tidak memberikan suatu alamat surel yang valid.', 'nowikiemailtitle' => 'Surel tak diizinkan', 'nowikiemailtext' => 'Pengguna ini telah memilih untuk tidak menerima surel dari pengguna lain.', 'emailnotarget' => 'Nama pengguna penerima tidak ada atau tidak sah.', 'emailtarget' => 'Masukkan nama pengguna penerima', 'emailusername' => 'Nama pengguna:', 'emailusernamesubmit' => 'Kirim', 'email-legend' => 'Kirim surel ke pengguna {{SITENAME}} lainnya', 'emailfrom' => 'Dari:', 'emailto' => 'Untuk:', 'emailsubject' => 'Perihal:', 'emailmessage' => 'Pesan:', 'emailsend' => 'Kirim', 'emailccme' => 'Kirimkan saya salinan pesan saya.', 'emailccsubject' => 'Salinan pesan Anda untuk $1: $2', 'emailsent' => 'Surel terkirim', 'emailsenttext' => 'Surel Anda telah dikirimkan.', 'emailuserfooter' => 'Surel ini dikirimkan oleh $1 kepada $2 menggunakan fungsi "Suratepengguna" di {{SITENAME}}.', # User Messenger 'usermessage-summary' => 'Tinggalkan pesan sistem.', 'usermessage-editor' => 'Penyampai pesan sistem', 'usermessage-template' => 'MediaWiki:UserMessage', # Watchlist 'watchlist' => 'Daftar pantauan', 'mywatchlist' => 'Daftar pantauan', 'watchlistfor2' => 'Untuk $1 $2', 'nowatchlist' => 'Daftar pantauan Anda kosong.', 'watchlistanontext' => 'Silakan $1 untuk melihat atau menyunting daftar pantauan Anda.', 'watchnologin' => 'Belum masuk log', 'watchnologintext' => 'Anda harus [[Special:UserLogin|masuk log]] untuk mengubah daftar pantauan Anda.', 'addwatch' => 'Tambahkan ke daftar pantauan', 'addedwatchtext' => 'Halaman "[[:$1]]" telah ditambahkan ke [[Special:Watchlist|daftar pantauan]] Anda. Perubahan-perubahan berikutnya pada halaman tersebut dan halaman pembicaraan terkaitnya akan tercantum di sini.', 'removewatch' => 'Hapus dari daftar pantauan', 'removedwatchtext' => 'Halaman "[[:$1]]" telah dihapus dari [[Special:Watchlist|daftar pantauan]] Anda.', 'watch' => 'Pantau', 'watchthispage' => 'Pantau halaman ini', 'unwatch' => 'Batal pantau', 'unwatchthispage' => 'Batal pantau halaman ini', 'notanarticle' => 'Bukan sebuah halaman isi', 'notvisiblerev' => 'Revisi telah dihapus', 'watchnochange' => 'Tak ada halaman pantauan Anda yang telah berubah dalam jangka waktu yang dipilih.', 'watchlist-details' => 'Terdapat {{PLURAL:$1|$1 halaman|$1 halaman}} di daftar pantauan Anda, tidak termasuk halaman pembicaraan.', 'wlheader-enotif' => 'Notifikasi surel diaktifkan.', 'wlheader-showupdated' => "Halaman-halaman yang telah berubah sejak kunjungan terakhir Anda ditampilkan dengan '''huruf tebal'''.", 'watchmethod-recent' => 'periksa daftar perubahan terbaru terhadap halaman yang dipantau', 'watchmethod-list' => 'periksa halaman yang dipantau terhadap perubahan terbaru', 'watchlistcontains' => 'Daftar pantauan Anda berisi $1 {{PLURAL:$1|halaman|halaman}}.', 'iteminvalidname' => "Ada masalah dengan '$1', namanya tidak sah...", 'wlnote' => "Di bawah ini adalah {{PLURAL:$1|perubahan|'''$1''' perubahan}} terakhir dalam '''$2''' jam terakhir, per $3, $4.", 'wlshowlast' => 'Tampilkan $1 jam $2 hari terakhir $3', 'watchlist-options' => 'Opsi daftar pantauan', # Displayed when you click the "watch" button and it is in the process of watching 'watching' => 'Memantau...', 'unwatching' => 'Menghilangkan pemantauan...', 'watcherrortext' => 'Terjadi kesalahan saat mengubah preferensi daftar pantauan Anda untuk " $1 ".', 'enotif_mailer' => 'Pengirim Notifikasi {{SITENAME}}', 'enotif_reset' => 'Tandai semua halaman sebagai telah dikunjungi', 'enotif_impersonal_salutation' => 'Pengguna {{SITENAME}}', 'enotif_subject_deleted' => 'Halaman $1 di {{SITENAME}} telah dihapus oleh {{gender:$2|$2}}', 'enotif_subject_created' => 'Halaman $1 di {{SITENAME}} telah dibuat oleh {{gender:$2|$2}}', 'enotif_subject_moved' => 'Halaman $1 di {{SITENAME}} telah dipindahkan oleh {{gender:$2|$2}}', 'enotif_subject_restored' => 'Halaman $1 di {{SITENAME}} telah dikembalikan oleh {{gender:$2|$2}}', 'enotif_subject_changed' => 'Halaman $1 di {{SITENAME}} telah diubah oleh {{gender:$2|$2}}', 'enotif_body_intro_deleted' => 'Halaman $1 di {{SITENAME}} telah dihapus pada $PAGEEDITDATE oleh {{gender:$2|$2}}, lihat $3.', 'enotif_body_intro_created' => 'Halaman $1 di {{SITENAME}} telah dibuat pada $PAGEEDITDATE oleh {{gender:$2|$2}}, lihat $3 untuk revisi terkini.', 'enotif_body_intro_moved' => 'Halaman $1 di {{SITENAME}} telah dipindahkan pada $PAGEEDITDATE oleh {{gender:$2|$2}}, lihat $3 untuk revisi terkini.', 'enotif_body_intro_restored' => 'Halaman $1 di {{SITENAME}} telah dikembalikan pada $PAGEEDITDATE oleh {{gender:$2|$2}}, lihat $3 untuk revisi terkini.', 'enotif_body_intro_changed' => 'Halaman $1 di {{SITENAME}} telah diubah pada $PAGEEDITDATE oleh {{gender:$2|$2}}, lihat $3 untuk revisi terkini.', 'enotif_lastvisited' => 'Lihat $1 untuk semua perubahan sejak kunjungan terakhir Anda.', 'enotif_lastdiff' => 'Kunjungi $1 untuk melihat perubahan ini.', 'enotif_anon_editor' => 'pengguna anonim $1', 'enotif_body' => 'Halo $WATCHINGUSERNAME, $PAGEINTRO $NEWPAGE Ringkasan suntingan: $PAGESUMMARY $PAGEMINOREDIT Hubungi penyunting: surel: $PAGEEDITOR_EMAIL wiki: $PAGEEDITOR_WIKI Kami tidak akan mengirim pemberitahuan lain bila ada perubahan lebih lanjut sampai Anda mengunjungi halaman ini. Anda juga dapat menyetel ulang tanda pemberitahuan untuk semua halaman pantauan pada daftar pantauan Anda. Sistem pemberitahuan situs {{SITENAME}} -- Untuk mengubah setelan pemberitahuan surel, kunjungi {{canonicalurl:{{#special:Preferences}}}} Untuk mengubah setelan daftar pantauan, kunjungi {{canonicalurl:{{#special:EditWatchlist}}}} Untuk menghapus halaman dari daftar pantauan, kunjungi $UNWATCHURL Umpan balik dan bantuan lebih lanjut: {{canonicalurl:{{MediaWiki:Helppage}}}}', 'created' => 'dibuat', 'changed' => 'diubah', # Delete 'deletepage' => 'Hapus halaman', 'confirm' => 'Konfirmasi', 'excontent' => "isi sebelumnya: '$1'", 'excontentauthor' => "isinya hanya berupa: '$1' (dan satu-satunya penyumbang adalah '[[Special:Contributions/$2|$2]]')", 'exbeforeblank' => "isi sebelum dikosongkan: '$1'", 'exblank' => 'halaman kosong', 'delete-confirm' => 'Hapus "$1"', 'delete-legend' => 'Hapus', 'historywarning' => "'''Peringatan:''' Halaman yang akan Anda hapus mempunyai sejarah dengan $1 {{PLURAL:$1|revisi|revisi}}:", 'confirmdeletetext' => 'Anda akan menghapus halaman atau berkas ini secara permanen berikut semua sejarahnya dari basis data. Pastikan bahwa Anda memang ingin melakukannya, mengetahui segala akibatnya, dan apa yang Anda lakukan ini adalah sejalan dengan [[{{MediaWiki:Policy-url}}|kebijakan {{SITENAME}}]].', 'actioncomplete' => 'Proses selesai', 'actionfailed' => 'Eksekusi gagal', 'deletedtext' => '"$1" telah dihapus. Lihat $2 untuk log terkini halaman yang telah dihapus.', 'dellogpage' => 'Log penghapusan', 'dellogpagetext' => 'Di bawah ini adalah log penghapusan halaman. Semua waktu yang ditunjukkan adalah waktu server.', 'deletionlog' => 'log penghapusan', 'reverted' => 'Dibatalkan ke revisi sebelumnya', 'deletecomment' => 'Alasan:', 'deleteotherreason' => 'Alasan lain/tambahan:', 'deletereasonotherlist' => 'Alasan lain', 'deletereason-dropdown' => '*Alasan penghapusan ** Permintaan pengguna ** Pelanggaran hak cipta ** Vandalisme', 'delete-edit-reasonlist' => 'Alasan penghapusan suntingan', 'delete-toobig' => 'Halaman ini memiliki sejarah penyuntingan yang panjang, melebihi {{PLURAL:$1|revisi|revisi}}. Penghapusan halaman dengan sejarah penyuntingan yang panjang tidak diperbolehkan untuk mencegah kerusakan di {{SITENAME}}.', 'delete-warning-toobig' => 'Halaman ini memiliki sejarah penyuntingan yang panjang, melebihi {{PLURAL:$1|revisi|revisi}}. Menghapus halaman ini dapat menyebabkan masalah dalam operasional basis data {{SITENAME}}.', # Rollback 'rollback' => 'Kembalikan suntingan', 'rollback_short' => 'Kembalikan', 'rollbacklink' => 'kembalikan', 'rollbacklinkcount' => 'kembalikan $1 {{PLURAL:$1|suntingan|suntingan}}', 'rollbacklinkcount-morethan' => 'kembalikan lebih dari $1 {{PLURAL:$1|suntingan|suntingan}}', 'rollbackfailed' => 'Pengembalian gagal dilakukan', 'cantrollback' => 'Tidak dapat membatalkan suntingan; kontributor terakhir adalah satu-satunya penulis halaman ini.', 'alreadyrolled' => 'Tidak dapat melakukan pengembalian ke revisi terakhir [[:$1]] oleh [[User:$2|$2]] ([[User talk:$2|bicara]]{{int:pipe-separator}}[[Special:Contributions/$2|{{int:contribslink}}]]); pengguna lain telah menyunting atau melakukan pengembalian terhadap halaman ini. Suntingan terakhir dilakukan oleh [[User:$3|$3]] ([[User talk:$3|bicara]]{{int:pipe-separator}}[[Special:Contributions/$3|{{int:contribslink}}]]).', 'editcomment' => "Komentar penyuntingan adalah: \"''\$1''\".", 'revertpage' => '←Suntingan [[Special:Contributions/$2|$2]] ([[User talk:$2|bicara]]) dibatalkan ke versi terakhir oleh [[User:$1|$1]]', 'revertpage-nouser' => 'Pengembalian suntingan oleh (pengguna dihapus) ke suntingan terakhir oleh [[User:$1|$1]]', 'rollback-success' => 'Pembatalan suntingan oleh $1; dibatalkan ke versi terakhir oleh $2.', # Edit tokens 'sessionfailure-title' => 'Kegagalan sesi', 'sessionfailure' => 'Sepertinya ada masalah dengan sesi log Anda; log Anda telah dibatalkan untuk mencegah pembajakan. Silakan tekan tombol "kembali" dan muat kembali halaman sebelum Anda masuk, lalu coba lagi.', # Protect 'protectlogpage' => 'Log pelindungan', 'protectlogtext' => 'Di bawah ini adalah daftar perubahan terhadap perlindungan halaman. Lihat [[Special:ProtectedPages|daftar halaman terlindungi]] untuk daftar perlindungan halaman terkini.', 'protectedarticle' => 'melindungi "[[$1]]"', 'modifiedarticleprotection' => 'mengubah tingkat pelindungan "[[$1]]"', 'unprotectedarticle' => 'menghilangkan perlindungan dari "[[$1]]"', 'movedarticleprotection' => 'memindahkan pengaturan proteksi dari "[[$2]]" ke "[[$1]]"', 'protect-title' => 'Melindungi "$1"', 'protect-title-notallowed' => 'Lihat tingkat perlindungan dari "$1"', 'prot_1movedto2' => '[[$1]] dipindahkan ke [[$2]]', 'protect-badnamespace-title' => 'Ruang nama yang tidak dapat dilindungi', 'protect-badnamespace-text' => 'Halaman dalam ruang nama ini tidak dapat dilindungi.', 'protect-norestrictiontypes-text' => 'Halaman ini tidak dapat dilindungi karena tidak ada tipe pembatasan yang tersedia.', 'protect-norestrictiontypes-title' => 'Halaman tak-dilindungi', 'protect-legend' => 'Konfirmasi pelindungan', 'protectcomment' => 'Alasan:', 'protectexpiry' => 'Kedaluwarsa:', 'protect_expiry_invalid' => 'Waktu kedaluwarsa tidak sah.', 'protect_expiry_old' => 'Waktu kedaluwarsa adalah pada masa lampau.', 'protect-unchain-permissions' => 'Aktifkan opsi pelindungan lanjutan', 'protect-text' => "Anda dapat melihat atau mengganti tingkatan pelindungan untuk halaman '''$1''' di sini.", 'protect-locked-blocked' => "Anda tak dapat mengganti tingkat pelindungan selagi diblokir. Berikut adalah konfigurasi saat ini untuk halaman '''$1''':", 'protect-locked-dblock' => "Tingkat pelindungan tak dapat diganti karena aktifnya penguncian basis data. Berikut adalah konfigurasi saat ini untuk halaman '''$1''':", 'protect-locked-access' => "Akun Anda tidak dapat memiliki hak untuk mengganti tingkat pelindungan halaman. Berikut adalah konfigurasi saat ini untuk halaman '''$1''':", 'protect-cascadeon' => 'Halaman ini sedang dilindungi karena disertakan dalam {{PLURAL:$1|halaman|halaman-halaman}} berikut yang telah dilindungi dengan pilihan pelindungan runtun diaktifkan. Anda dapat mengganti tingkat pelindungan untuk halaman ini, tapi hal tersebut tidak akan mempengaruhi pelindungan runtun.', 'protect-default' => 'Izinkan semua pengguna', 'protect-fallback' => 'Hanya untuk pengguna dengan izin "$1"', 'protect-level-autoconfirmed' => 'Hanya untuk pengguna terdaftar otomatis', 'protect-level-sysop' => 'Hanya untuk pengurus', 'protect-summary-desc' => '[$1=$2] ($3)', 'protect-summary-cascade' => 'runtun', 'protect-expiring' => 'kedaluwarsa $1 (UTC)', 'protect-expiring-local' => 'kedaluwarsa $1', 'protect-expiry-indefinite' => 'selamanya', 'protect-cascade' => 'Lindungi semua halaman yang termasuk dalam halaman ini (pelindungan runtun)', 'protect-cantedit' => 'Anda tidak dapat mengubah tingkatan pelindungan halaman ini karena Anda tidak memiliki hak untuk itu.', 'protect-othertime' => 'Waktu lain:', 'protect-othertime-op' => 'waktu lain', 'protect-existing-expiry' => 'Waktu kedaluwarsa saat ini: $2 $3', 'protect-otherreason' => 'Alasan lain/tambahan:', 'protect-otherreason-op' => 'Alasan lain', 'protect-dropdown' => '*Alasan umum pelindungan ** Vandalisme berulang ** Spam berulang ** Perang suntingan ** Halaman dengan lalu-lintas tinggi', 'protect-edit-reasonlist' => 'Sunting alasan pelindungan', 'protect-expiry-options' => '1 jam:1 hour,1 hari:1 day,1 minggu:1 week,2 minggu:2 weeks,1 bulan:1 month,3 bulan:3 months,6 bulan:6 months,1 tahun:1 year,selamanya:infinite', 'restriction-type' => 'Pelindungan:', 'restriction-level' => 'Tingkatan:', 'minimum-size' => 'Ukuran minimum', 'maximum-size' => 'Ukuran maksimum', 'pagesize' => '(bita)', # Restrictions (nouns) 'restriction-edit' => 'Sunting', 'restriction-move' => 'Pindahkan', 'restriction-create' => 'Buat', 'restriction-upload' => 'Unggah', # Restriction levels 'restriction-level-sysop' => 'pelindungan penuh', 'restriction-level-autoconfirmed' => 'pelindungan semi', 'restriction-level-all' => 'semua tingkatan', # Undelete 'undelete' => 'Pembatalan penghapusan', 'undeletepage' => 'Pembatalan penghapusan', 'undeletepagetitle' => "'''Berikut daftar revisi yang dihapus dari [[:$1]]'''.", 'viewdeletedpage' => 'Pembatalan penghapusan', 'undeletepagetext' => '{{PLURAL:$1|Halaman berikut|Sejumlah $1 halaman}} telah dihapus tapi masih ada di dalam arsip dan dapat dikembalikan. Arsip tersebut mungkin akan dibersihkan secara berkala.', 'undelete-fieldset-title' => 'Mengembalikan revisi', 'undeleteextrahelp' => "Untuk mengembalikan seluruh versi terdahulu halaman, biarkan semua kotak cek tidak terpilih dan klik '''''{{int:undeletebtn}}'''''. Untuk melakukan pengembalian selektif, cek kotak revisi yang sesuai dengan revisi yang ingin dikembalikan, dan klik '''''{{int:undeletebtn}}'''''.", 'undeleterevisions' => '$1 {{PLURAL:$1|revisi|revisi}} diarsipkan', 'undeletehistory' => 'Jika Anda mengembalikan halaman tersebut, semua revisi juga akan dikembalikan ke dalam daftar versi terdahulu halaman. Jika sebuah halaman baru dengan nama yang sama telah dibuat sejak penghapusan, revisi-revisi yang dikembalikan tersebut akan ditampilkan dalam daftar versi terdahulu.', 'undeleterevdel' => 'Pembatalan penghapusan tidak akan dilakukan jika hal tersebut akan mengakibatkan revisi terkini halaman terhapus sebagian. Pada kondisi tersebut, Anda harus menghilangkan cek atau menghilangkan penyembunyian revisi yang dihapus terakhir. Revisi berkas yang tidak dapat Anda lihat tidak akan dipulihkan.', 'undeletehistorynoadmin' => 'Halaman ini telah dihapus. Alasan penghapusan diberikan pada ringkasan di bawah ini, berikut rincian pengguna yang telah melakukan penyuntingan pada halaman ini sebelum dihapus. Isi terakhir dari revisi yang telah dihapus ini hanya tersedia untuk pengurus.', 'undelete-revision' => 'Revisi yang telah dihapus dari $1 (pada $5, $4) oleh $3:', 'undeleterevision-missing' => 'Revisi salah atau tak ditemukan. Anda mungkin mengikuti pranala yang salah, atau revisi tersebut telah dipulihkan atau dibuang dari arsip.', 'undelete-nodiff' => 'Tidak ada revisi yang lebih lama.', 'undeletebtn' => 'Kembalikan', 'undeletelink' => 'lihat/kembalikan', 'undeleteviewlink' => 'lihat', 'undeletereset' => 'Reset', 'undeleteinvert' => 'Balikkan pilihan', 'undeletecomment' => 'Alasan:', 'undeletedrevisions' => '$1 {{PLURAL:$1|revisi|revisi}} telah dikembalikan', 'undeletedrevisions-files' => '$1 {{PLURAL:$1|revisi|revisi}} and $2 berkas dikembalikan', 'undeletedfiles' => '$1 {{PLURAL:$1|berkas|berkas}} dikembalikan', 'cannotundelete' => 'Pembatalan penghapusan gagal: $1', 'undeletedpage' => "'''$1 berhasil dikembalikan''' Lihat [[Special:Log/delete|log penghapusan]] untuk data penghapusan dan pengembalian.", 'undelete-header' => 'Lihat [[Special:Log/delete|log penghapusan]] untuk daftar halaman yang baru dihapus.', 'undelete-search-title' => 'Cari halaman yang dihapus', 'undelete-search-box' => 'Cari halaman yang dihapus', 'undelete-search-prefix' => 'Tampilkan halaman dimulai dari:', 'undelete-search-submit' => 'Cari', 'undelete-no-results' => 'Tidak ditemukan halaman yang sesuai di arsip penghapusan.', 'undelete-filename-mismatch' => 'Tidak dapat membatalkan penghapusan revisi berkas dengan tanda waktu $1: nama berkas tak sesuai', 'undelete-bad-store-key' => 'Tidak dapat membatalkan penghapusan revisi berkas dengan tanda waktu $1: berkas hilang sebelum dihapus.', 'undelete-cleanup-error' => 'Kesalahan sewaktu menghapus arsip berkas "$1" yang tak digunakan.', 'undelete-missing-filearchive' => 'Tidak dapat mengembalikan arsip berkas dengan ID $1 karena tak ada di basis data. Berkas tersebut mungkin telah dihapus..', 'undelete-error' => 'Kesalahan mengembalikan halaman', 'undelete-error-short' => 'Kesalahan membatalkan penghapusan: $1', 'undelete-error-long' => 'Terjadi kesalahan sewaktu membatalkan penghapusan berkas: $1', 'undelete-show-file-confirm' => 'Apakah Anda yakin ingin melihat revisi yang telah dihapus dari berkas "<nowiki>$1</nowiki>" per $3, $2?', 'undelete-show-file-submit' => 'Ya', 'undelete-revisionrow' => '$1 $2 ($3) $4 . . $5 $6 $7', # Namespace form on various pages 'namespace' => 'Ruang nama:', 'invert' => 'Balikkan pilihan', 'tooltip-invert' => 'Centang kotak ini untuk menyembunyikan perubahan halaman dalam ruang nama yang dipilih (dan ruang nama terkait jika dicentang)', 'namespace_association' => 'Ruangnama terkait', 'tooltip-namespace_association' => 'Centang halaman ini untuk menyertakan ruang nama pembicaraan atau subjek yang terkait dengan ruang nama terpilih', 'blanknamespace' => '(Utama)', # Contributions 'contributions' => 'Kontribusi {{GENDER:$1|pengguna}}', 'contributions-title' => 'Kontribusi pengguna untuk $1', 'mycontris' => 'Kontribusi', 'contribsub2' => 'Untuk $1 ($2)', 'nocontribs' => 'Tidak ada perubahan yang sesuai dengan kriteria tersebut.', 'uctop' => ' (atas)', 'month' => 'Sejak bulan (dan sebelumnya):', 'year' => 'Sejak tahun (dan sebelumnya):', 'sp-contributions-newbies' => 'Hanya dari para pengguna baru', 'sp-contributions-newbies-sub' => 'Untuk pengguna baru', 'sp-contributions-newbies-title' => 'Kontribusi pengguna baru', 'sp-contributions-blocklog' => 'Log pemblokiran', 'sp-contributions-deleted' => 'kontribusi pengguna yang dihapus', 'sp-contributions-uploads' => 'unggahan', 'sp-contributions-logs' => 'log', 'sp-contributions-talk' => 'bicara', 'sp-contributions-userrights' => 'pengelolaan hak pengguna', 'sp-contributions-blocked-notice' => 'Pengguna ini sedang di blok. log pemblokiran terakhir ditampilkan berikut untuk referensi:', 'sp-contributions-blocked-notice-anon' => 'Alamat IP ini diblokir pada saat ini. Catatan log pemblokiran terakhir tersedia di bawah ini sebagai rujukan:', 'sp-contributions-search' => 'Cari kontribusi', 'sp-contributions-username' => 'Alamat IP atau nama pengguna:', 'sp-contributions-toponly' => 'Tampilkan hanya revisi teratas', 'sp-contributions-submit' => 'Cari', # What links here 'whatlinkshere' => 'Pranala balik', 'whatlinkshere-title' => 'Halaman yang memiliki pranala ke "$1"', 'whatlinkshere-page' => 'Halaman:', 'linkshere' => "Halaman-halaman berikut ini memiliki pranala ke '''[[:$1]]''':", 'nolinkshere' => "Tidak ada halaman yang memiliki pranala ke '''[[:$1]]'''.", 'nolinkshere-ns' => "Tidak ada halaman yang memiliki pranala ke '''[[:$1]]''' pada ruang nama yang dipilih.", 'isredirect' => 'halaman pengalihan', 'istemplate' => 'dengan templat', 'isimage' => 'pranala berkas', 'whatlinkshere-prev' => '$1 {{PLURAL:$1|sebelumnya|sebelumnya}}', 'whatlinkshere-next' => '$1 {{PLURAL:$1|selanjutnya|selanjutnya}}', 'whatlinkshere-links' => '← pranala', 'whatlinkshere-hideredirs' => '$1 pengalihan', 'whatlinkshere-hidetrans' => '$1 transklusi', 'whatlinkshere-hidelinks' => '$1 pranala', 'whatlinkshere-hideimages' => '$1 pranala berkas', 'whatlinkshere-filters' => 'Penyaring', # Block/unblock 'autoblockid' => 'Blokir otomatis #$1', 'block' => 'Blokir pengguna', 'unblock' => 'Buka blokir pengguna', 'blockip' => 'Blokir pengguna', 'blockip-title' => 'Blokir pengguna', 'blockip-legend' => 'Blokir pengguna', 'blockiptext' => 'Gunakan formulir di bawah untuk memblokir akses penulisan dari sebuah alamat IP atau pengguna tertentu. Ini hanya boleh dilakukan untuk mencegah vandalisme, dan sejalan dengan [[{{MediaWiki:Policy-url}}|kebijakan]]. Masukkan alasan Anda di bawah (contoh, menuliskan nama halaman yang telah divandalisasi).', 'ipadressorusername' => 'Alamat IP atau nama pengguna:', 'ipbexpiry' => 'Kedaluwarsa:', 'ipbreason' => 'Alasan:', 'ipbreasonotherlist' => 'Alasan lain', 'ipbreason-dropdown' => '*Alasan umum ** Vandalisme ** Memberikan informasi palsu ** Menghilangkan isi halaman ** Spam pranala ke situs luar ** Memasukkan omong kosong ke halaman ** Perilaku intimidasi/pelecehan ** Menyalahgunakan beberapa akun ** Nama pengguna tak layak', 'ipb-hardblock' => 'Cegah pengguna terdaftar untuk menyunting dari alamat IP ini', 'ipbcreateaccount' => 'Cegah pembuatan akun', 'ipbemailban' => 'Cegah pengguna mengirimkan surel', 'ipbenableautoblock' => 'Blokir alamat IP terakhir yang digunakan pengguna ini secara otomatis, dan semua alamat berikutnya yang mereka coba gunakan untuk menyunting.', 'ipbsubmit' => 'Blokir pengguna ini', 'ipbother' => 'Waktu lain:', 'ipboptions' => '2 jam:2 hours,1 hari:1 day,3 hari:3 days,1 minggu:1 week,2 minggu:2 weeks,1 bulan:1 month,3 bulan:3 months,6 bulan:6 months,1 tahun:1 year,selamanya:infinite', 'ipbotheroption' => 'lainnya', 'ipbotherreason' => 'Alasan lain/tambahan:', 'ipbhidename' => 'Sembunyikan nama pengguna dari suntingan dan daftar', 'ipbwatchuser' => 'Pantau halaman pengguna dan pembicaraan pengguna ini', 'ipb-disableusertalk' => 'Cegah pengguna ini untuk menyunting halaman pembicaraannya saat diblokir', 'ipb-change-block' => 'Blokir kembali pengguna dengan set konfigurasi berikut', 'ipb-confirm' => 'Konfirmasi blokir', 'badipaddress' => 'Format alamat IP atau nama pengguna salah.', 'blockipsuccesssub' => 'Pemblokiran sukses', 'blockipsuccesstext' => '[[Special:Contributions/$1|$1]] telah diblokir.<br /> Lihat [[Special:BlockList|daftar pemblokiran]] untuk meninjau kembali pemblokiran.', 'ipb-blockingself' => 'Anda akan memblokir diri sendiri! Apakah Anda yakin akan melakukannya?', 'ipb-confirmhideuser' => 'Anda akan memblokir pengguna dengan mengaktifkan "sembunyikan pengguna" diaktifkan. Ini akan menyembunyikan nama pengguna pada semua daftar dan entri log. Apakah Anda yakin ingin melakukannya?', 'ipb-edit-dropdown' => 'Sunting alasan pemblokiran', 'ipb-unblock-addr' => 'Hilangkan blokir $1', 'ipb-unblock' => 'Hilangkan blokir seorang pengguna atau suatu alamat IP', 'ipb-blocklist' => 'Lihat blokir yang diterapkan', 'ipb-blocklist-contribs' => 'Kontribusi untuk $1', 'unblockip' => 'Hilangkan blokir terhadap alamat IP atau pengguna', 'unblockiptext' => 'Gunakan formulir di bawah untuk mengembalikan kemampuan menulis sebuah alamat IP atau pengguna yang sebelumnya telah diblokir.', 'ipusubmit' => 'Hilangkan blokir ini', 'unblocked' => 'Blokir terhadap [[User:$1|$1]] telah dicabut', 'unblocked-range' => '$1 telah diblokir', 'unblocked-id' => 'Blokir $1 telah dicabut', 'blocklist' => 'Pengguna terblokir', 'ipblocklist' => 'Pengguna terblokir', 'ipblocklist-legend' => 'Cari pengguna yang diblokir', 'blocklist-userblocks' => 'Sembunyikan pemblokiran akun', 'blocklist-tempblocks' => 'Sembunyikan pemblokiran sementara', 'blocklist-addressblocks' => 'Sembunyikan pemblokiran IP tunggal', 'blocklist-rangeblocks' => 'Menyembunyikan jangkauan blokir (http://www.mediawiki.org/wiki/Help:Range_blocks)', 'blocklist-timestamp' => 'Stempel waktu', 'blocklist-target' => 'Target', 'blocklist-expiry' => 'Kedaluwarsa', 'blocklist-by' => 'Admin pemblokir', 'blocklist-params' => 'Parameter pemblokiran', 'blocklist-reason' => 'Alasan', 'ipblocklist-submit' => 'Cari', 'ipblocklist-localblock' => 'Blok lokal', 'ipblocklist-otherblocks' => '{{PLURAL:$1|pemblokiran|pemblokiran}} lain', 'infiniteblock' => 'tak terbatas', 'expiringblock' => 'kedaluwarsa pada $1 $2', 'anononlyblock' => 'hanya pengguna anonim', 'noautoblockblock' => 'pemblokiran otomatis dimatikan', 'createaccountblock' => 'pembuatan akun diblokir', 'emailblock' => 'surel diblokir', 'blocklist-nousertalk' => 'tidak dapat menyunting halaman pembicaraan sendiri', 'ipblocklist-empty' => 'Daftar pemblokiran kosong.', 'ipblocklist-no-results' => 'alamat IP atau pengguna yang diminta tidak diblokir.', 'blocklink' => 'blokir', 'unblocklink' => 'hilangkan blokir', 'change-blocklink' => 'ubah blokir', 'contribslink' => 'kontrib', 'emaillink' => 'kirim surel', 'autoblocker' => 'Diblokir secara otomatis karena alamat IP Anda digunakan oleh "[[User:$1|$1]]". Alasan yang diberikan untuk pemblokiran $1 adalah: "$2"', 'blocklogpage' => 'Log pemblokiran', 'blocklog-showlog' => 'Pengguna ini telah diblokir sebelumnya. Log pemblokiran disediakan di bawah untuk referensi:', 'blocklog-showsuppresslog' => 'Pengguna ini telah diblokir dan disembunyikan sebelumnya. Log supresi disediakan di bawah untuk referensi:', 'blocklogentry' => 'memblokir [[$1]] dengan waktu kedaluwarsa $2 $3', 'reblock-logentry' => 'mengubah pemblokiran [[$1]] dengan waktu kedaluwarsa $2 $3', 'blocklogtext' => 'Di bawah ini adalah log pemblokiran dan pembukaan blokir terhadap pengguna. Alamat IP yang diblokir secara otomatis tidak terdapat di dalam daftar ini. Lihat [[Special:BlockList|daftar pemblokiran]] untuk semua pengguna yang saat ini diblokir.', 'unblocklogentry' => 'menghilangkan blokir "$1"', 'block-log-flags-anononly' => 'hanya pengguna anonim', 'block-log-flags-nocreate' => 'pembuatan akun dimatikan', 'block-log-flags-noautoblock' => 'pemblokiran otomatis dimatikan', 'block-log-flags-noemail' => 'surel diblokir', 'block-log-flags-nousertalk' => 'tidak dapat menyunting halaman pembicaraan sendiri', 'block-log-flags-angry-autoblock' => 'peningkatan sistem pemblokiran otomatis telah diaktifkan', 'block-log-flags-hiddenname' => 'nama pengguna tersembunyi', 'range_block_disabled' => 'Kemampuan pengurus dalam membuat blokir blok IP dimatikan.', 'ipb_expiry_invalid' => 'Waktu kedaluwarsa tidak sah.', 'ipb_expiry_temp' => 'Pemblokiran atas nama pengguna yang disembunyikan harus permanen.', 'ipb_hide_invalid' => 'Tak dapat menutup akun ini; mungkin akun tersebut memiliki terlalu banyak suntingan.', 'ipb_already_blocked' => '"$1" telah diblokir', 'ipb-needreblock' => '$1 sudah diblokir. Apakah Anda ingin mengubah set pemblokiran yang bersangkutan?', 'ipb-otherblocks-header' => '{{PLURAL:$1|Blok|Blok}} lain', 'unblock-hideuser' => 'Anda tidak dapat membuka blokir pengguna ini karena nama pengguna mereka telah disembunyikan.', 'ipb_cant_unblock' => 'Kesalahan: Blokir dengan ID $1 tidak ditemukan. Blokir tersebut kemungkinan telah dibuka.', 'ipb_blocked_as_range' => 'Kesalahan: IP $1 tidak diblok secara langsung dan tidak dapat dilepaskan. IP $1 diblok sebagai bagian dari pemblokiran kelompok IP $2, yang dapat dilepaskan.', 'ip_range_invalid' => 'Blok IP tidak sah.', 'ip_range_toolarge' => 'Rentang blok lebih besar dari /$1 tidak diperbolehkan.', 'blockme' => 'Blokir saya', 'proxyblocker' => 'Pemblokir proxy', 'proxyblocker-disabled' => 'Fitur ini sedang tidak diakfifkan.', 'proxyblockreason' => 'Alamat IP Anda telah diblokir karena alamat IP Anda adalah proxy terbuka. Silakan hubungi penyedia jasa internet Anda atau dukungan teknis dan beritahukan mereka masalah keamanan serius ini.', 'proxyblocksuccess' => 'Selesai.', 'sorbs' => 'DNSBL', 'sorbsreason' => 'Alamat IP anda terdaftar sebagai proxy terbuka di DNSBL.', 'sorbs_create_account_reason' => 'Alamat IP anda terdaftar sebagai proxy terbuka di DNSBL. Anda tidak dapat membuat akun.', 'xffblockreason' => 'Sebuah alamat IP di kepala X-Forwarded-For, entah milik Anda atau server proxy yang Anda pakai, telah diblokir. Alasan pemblokirannya adalah: $1', 'cant-block-while-blocked' => 'Anda tidak dapat memblokir pengguna lain ketika Anda sendiri sedang diblokir.', 'cant-see-hidden-user' => 'Pengguna yang anda coba blokir telah di blokir dan di sembunyikan. Selama anda tidak memiliki hak sembunyikan pengguna, anda tidak dapat melihat atau menyunting pemblokiran pengguna ini.', 'ipbblocked' => 'Anda tidak dapat memblokir atau membuka blokir pengguna lain, karena anda sendiri diblokir', 'ipbnounblockself' => 'Anda tidak diizinkan untuk membuka blokir sendiri', # Developer tools 'lockdb' => 'Kunci basis data', 'unlockdb' => 'Buka kunci basis data', 'lockdbtext' => 'Mengunci basis data akan menghentikan kemampuan semua pengguna dalam menyunting halaman, mengubah preferensi pengguna, menyunting daftar pantauan mereka, dan hal-hal lain yang memerlukan perubahan terhadap basis data. Pastikan bahwa ini adalah yang ingin Anda lakukan, dan bahwa Anda akan membuka kunci basis data setelah pemeliharaan selesai.', 'unlockdbtext' => 'Membuka kunci basis data akan mengembalikan kemampuan semua pengguna dalam menyunting halaman, mengubah preferensi pengguna, menyunting daftar pantauan mereka, dan hal-hal lain yang memerlukan perubahan terhadap basis data. Pastikan bahwa ini adalah yang ingin Anda lakukan.', 'lockconfirm' => 'Ya, saya memang ingin mengunci basis data.', 'unlockconfirm' => 'Ya, saya memang ingin membuka kunci basis data.', 'lockbtn' => 'Kunci basis data', 'unlockbtn' => 'Buka kunci basis data', 'locknoconfirm' => 'Anda tidak memberikan tanda cek pada kotak konfirmasi.', 'lockdbsuccesssub' => 'Penguncian basis data berhasil', 'unlockdbsuccesssub' => 'Pembukaan kunci basis data berhasil', 'lockdbsuccesstext' => 'Basis data telah dikunci.<br /> Pastikan Anda [[Special:UnlockDB|membuka kuncinya]] setelah pemeliharaan selesai.', 'unlockdbsuccesstext' => 'Kunci basis data telah dibuka.', 'lockfilenotwritable' => 'Berkas kunci basis data tidak dapat ditulis. Untuk mengunci atau membuka basis data, berkas ini harus dapat ditulis oleh server web.', 'databasenotlocked' => 'Basis data tidak terkunci.', 'lockedbyandtime' => '(oleh $1 pada $2 $3)', # Move page 'move-page' => 'Pindahkan $1', 'move-page-legend' => 'Pindahkan halaman', 'movepagetext' => "Menggunakan formulir di bawah ini akan mengubah nama suatu halaman dan memindahkan semua data sejarah ke nama baru. Judul lama akan menjadi halaman pengalihan ke judul baru. Anda dapat memperbarui pengalihan yang menuju ke judul asli secara otomatis. Jika Anda memilih tidak, pastikan untuk memeriksa [[Special:DoubleRedirects|pengalihan ganda]] atau [[Special:BrokenRedirects|pengalihan rusak]]. Anda bertanggung jawab untuk memastikan bahwa pranala terhubung ke tempat seharusnya. Perhatikan bahwa halaman '''tidak''' akan dipindah apabila telah ada halaman pada judul yang baru, kecuali bila halaman peralihan dan tidak mempunyai sejarah penyuntingan. Ini berarti Anda dapat mengubah kembali nama halaman seperti semula apabila Anda membuat kesalahan, dan Anda tidak dapat menimpa halaman yang telah ada. '''Peringatan:''' Ini dapat mengakibatkan perubahan drastis dan tak terduga bagi halaman yang populer; pastikan Anda mengerti konsekuensinya sebelum melanjutkan.", 'movepagetext-noredirectfixer' => "Formulir di bawah ini digunakan untuk mengubah nama suatu halaman dan memindahkan semua data sejarah ke nama baru. Judul yang lama akan menjadi halaman peralihan menuju judul yang baru. Pastikan untuk memeriksa pengalihan [[Special:DoubleRedirects|ganda]] atau [[Special:BrokenRedirects|rusak]]. Anda bertanggung jawab untuk memastikan bahwa pranala terus menyambung ke halaman yang seharusnya. Perhatikan bahwa halaman '''tidak''' akan dipindah apabila telah ada halaman yang menggunakan judul yang baru, kecuali bila halaman tersebut kosong atau merupakan halaman peralihan dan tidak mempunyai sejarah penyuntingan. Ini berarti Anda dapat mengubah nama halaman kembali seperti semula apabila Anda membuat kesalahan, dan Anda tidak dapat menimpa halaman yang telah ada. '''Peringatan:''' Hal ini dapat mengakibatkan perubahan yang tak terduga dan drastis bagi halaman yang populer; Pastikan Anda mengerti konsekuensi dari perbuatan ini sebelum melanjutkan.", 'movepagetalktext' => "Halaman pembicaraan yang berkaitan juga akan dipindahkan secara otomatis '''kecuali apabila:''' *Sebuah halaman pembicaraan yang tidak kosong telah ada di bawah judul baru, atau *Anda tidak memberi tanda cek pada kotak di bawah ini Dalam kasus tersebut, apabila diinginkan, Anda dapat memindahkan atau menggabungkan halaman secara manual.", 'movearticle' => 'Pindahkan halaman:', 'moveuserpage-warning' => "'''Peringatan:''' Anda tengah memindahkan halaman pengguna. Perlu diketahui bahwa hanya halaman yang akan dipindahkan namun pengguna ''tidak akan'' berganti nama.", 'movenologin' => 'Belum masuk log', 'movenologintext' => 'Anda harus menjadi pengguna terdaftar dan telah [[Special:UserLogin|masuk log]] untuk dapat memindahkan suatu halaman.', 'movenotallowed' => 'Anda tak memiliki hak akses untuk memindahkan halaman.', 'movenotallowedfile' => 'Anda tak memiliki hak untuk memindahkan berkas.', 'cant-move-user-page' => 'Anda tidak memiliki hak akses untuk memindahkan halaman pengguna (terpisah dari subhalaman).', 'cant-move-to-user-page' => 'Anda tidak memiliki hak akses untuk memindahkan halaman ke suatu halaman pengguna (kecuali ke subhalaman pengguna).', 'newtitle' => 'Ke judul baru:', 'move-watch' => 'Pantau halaman ini', 'movepagebtn' => 'Pindahkan halaman', 'pagemovedsub' => 'Pemindahan berhasil', 'movepage-moved' => '\'\'\'"$1" telah dipindahkan ke "$2"\'\'\'', 'movepage-moved-redirect' => 'Halaman pengalihan telah dibuat.', 'movepage-moved-noredirect' => 'Pengalihan tidak dibuat.', 'articleexists' => 'Halaman dengan nama tersebut telah ada atau nama yang dipilih tidak sah. Silakan pilih nama lain.', 'cantmove-titleprotected' => 'Anda tidak dapat memindahkan halaman ke lokasi ini, karena judul tujuan sedang dilindungi dari pembuatan', 'talkexists' => 'Halaman tersebut berhasil dipindahkan, tetapi halaman pembicaraan dari halaman tersebut tidak dapat dipindahkan karena telah ada halaman pembicaraan pada judul yang baru. Silakan gabungkan halaman-halaman pembicaraan tersebut secara manual.', 'movedto' => 'dipindahkan ke', 'movetalk' => 'Pindahkan halaman pembicaraan yang terkait', 'move-subpages' => 'Pindahkan subhalaman (sampai $1)', 'move-talk-subpages' => 'Pindahkan semua subhalaman pembicaraan (sampai $1)', 'movepage-page-exists' => 'Halaman $1 telah ada dan tidak dapat ditimpa secara otomatis.', 'movepage-page-moved' => 'Halaman $1 telah dipindahkan ke $2.', 'movepage-page-unmoved' => 'Halaman $1 tidak dapat dipindahkan ke $2.', 'movepage-max-pages' => 'Sejumlah maksimum $1 {{PLURAL:$1|halaman|halaman}} telah dipindahkan dan tidak ada lagi yang akan dipindahkan secara otomatis.', 'movelogpage' => 'Log pemindahan', 'movelogpagetext' => 'Di bawah ini adalah log pemindahan halaman.', 'movesubpage' => '{{PLURAL:$1|Subhalaman|Subhalaman}}', 'movesubpagetext' => 'Halaman ini memiliki $1 {{PLURAL:$1|subhalaman|subhalaman}} seperti ditampilkan berikut.', 'movenosubpage' => 'Halaman ini tak memiliki subhalaman.', 'movereason' => 'Alasan:', 'revertmove' => 'batalkan', 'delete_and_move' => 'Hapus dan pindahkan', 'delete_and_move_text' => '==Penghapusan diperlukan== Halaman yang dituju, "[[:$1]]", telah mempunyai isi. Apakah Anda hendak menghapusnya untuk memberikan ruang bagi pemindahan?', 'delete_and_move_confirm' => 'Ya, hapus halaman tersebut', 'delete_and_move_reason' => 'Dihapus untuk mengantisipasikan pemindahan halaman dari "[[$1]]"', 'selfmove' => 'Pemindahan halaman tidak dapat dilakukan karena judul sumber dan judul tujuan sama.', 'immobile-source-namespace' => 'Tidak dapat memindahkan halaman dalam ruang nama "$1"', 'immobile-target-namespace' => 'Tidak dapat memindahkan halaman ke ruang nama "$1"', 'immobile-target-namespace-iw' => 'Pranala interwiki bukanlah target yang valid untuk pemindahan halaman.', 'immobile-source-page' => 'Halaman ini tidak dapat dipindahkan.', 'immobile-target-page' => 'Tidak dapat memindahkan ke judul tujuan tersebut.', 'bad-target-model' => 'Tujuan yang diinginkan menggunakan model konten yang berbeda. Tidak dapat mengkonversi dari $1 untuk $2 .', 'imagenocrossnamespace' => 'Tidak dapat memindahkan berkas ke ruang nama non-berkas', 'nonfile-cannot-move-to-file' => 'Tidak dapat memindahkan non-berkas ke ruang nama berkas', 'imagetypemismatch' => 'Ekstensi yang diberikan tidak cocok dengan tipe berkas', 'imageinvalidfilename' => 'Nama berkas tujuan tidak sah', 'fix-double-redirects' => 'Perbaiki semua pengalihan ganda yang mungkin terjadi', 'move-leave-redirect' => 'Buat pengalihan ke judul baru', 'protectedpagemovewarning' => "'''Peringatan''': Halaman ini telah dikunci sehingga hanya pengguna dengan hak akses pengurus yang bisa memindahkannya. Entri catatan terakhir disediakan di bawah untuk referensi:", 'semiprotectedpagemovewarning' => "'''Catatan:''' Halaman ini telah dikunci sehingga hanya pengguna terdaftar yang dapat memindahkannya. Entri catatan terakhir disediakan di bawah untuk referensi:", 'move-over-sharedrepo' => '== Berkas sudah ada == [[:$1]] sudah ada pada penyimpanan bersama. Memindahkan berkas ke judul ini akan menimpa berkas bersama.', 'file-exists-sharedrepo' => 'Nama berkas yang dipilih sudah digunakan pada suatu penyimpanan bersama. Silakan pilih nama lain.', # Export 'export' => 'Ekspor halaman', 'exporttext' => 'Anda dapat mengekspor teks dan sejarah penyuntingan suatu halaman tertentu atau suatu set halaman dalam bentuk XML tertentu. Hasil ekspor ini selanjutnya dapat diimpor ke wiki lainnya yang menggunakan perangkat lunak MediaWiki, dengan menggunakan fasilitas [[Special:Import|halaman impor]]. Untuk mengekspor halaman, masukkan judul dalam kotak teks di bawah ini, satu judul per baris, dan pilih apakah Anda ingin mengekspor lengkap dengan versi terdahulunya, atau hanya versi terbaru dengan catatan penyuntingan terakhir. Jika Anda hanya ingin mengimpor versi terbaru, Anda melakukannya lebih cepat dengan cara menggunakan pranala khusus, sebagai contoh: [[{{#Special:Export}}/{{MediaWiki:Mainpage}}]] untuk mengekspor halaman "[[{{MediaWiki:Mainpage}}]]".', 'exportall' => 'Ekspor seluruh halaman.', 'exportcuronly' => 'Hanya ekspor revisi sekarang, bukan seluruh versi terdahulu', 'exportnohistory' => "---- '''Catatan:''' Mengekspor keseluruhan riwayat suntingan halaman melalui isian ini telah dinon-aktifkan karena alasan kinerja.", 'exportlistauthors' => 'Termasuk daftar lengkap kontributor untuk setiap halaman', 'export-submit' => 'Ekspor', 'export-addcattext' => 'Tambahkan halaman dari kategori:', 'export-addcat' => 'Tambahkan', 'export-addnstext' => 'Tambahkan halaman dari ruang nama:', 'export-addns' => 'Tambahkan', 'export-download' => 'Tawarkan untuk menyimpan sebagai suatu berkas', 'export-templates' => 'Termasuk templat', 'export-pagelinks' => 'Sertakan halaman terkait hingga kedalaman:', # Namespace 8 related 'allmessages' => 'Pesan sistem', 'allmessagesname' => 'Nama', 'allmessagesdefault' => 'Teks baku', 'allmessagescurrent' => 'Teks sekarang', 'allmessagestext' => 'Ini adalah daftar semua pesan sistem yang tersedia dalam ruang nama MediaWiki. Silakan kunjungi [//www.mediawiki.org/wiki/Localisation Pelokalan MediaWiki] dan [//translatewiki.net translatewiki.net] jika Anda ingin berkontribusi untuk pelokalan generik MediaWiki.', 'allmessagesnotsupportedDB' => "Halaman ini tidak dapat digunakan karena '''\$wgUseDatabaseMessages''' telah dimatikan.", 'allmessages-filter-legend' => 'Penyaring', 'allmessages-filter' => 'Saring dengan keadaan kustomisasi:', 'allmessages-filter-unmodified' => 'Tidak diubah', 'allmessages-filter-all' => 'Semua', 'allmessages-filter-modified' => 'Diubah', 'allmessages-prefix' => 'Saring dengan awalan:', 'allmessages-language' => 'Bahasa:', 'allmessages-filter-submit' => 'Tuju ke', # Thumbnails 'thumbnail-more' => 'Perbesar', 'filemissing' => 'Berkas tak ditemukan', 'thumbnail_error' => 'Gagal membuat miniatur: $1', 'djvu_page_error' => 'Halaman DjVu di luar rentang', 'djvu_no_xml' => 'XML untuk berkas DjVu tak dapat diperoleh', 'thumbnail-temp-create' => 'Tidak dapat membuat berkas kecil temporer', 'thumbnail-dest-create' => 'Tidak dapat menyimpan berkas kecil ke tujuan', 'thumbnail_invalid_params' => 'Kesalahan parameter miniatur', 'thumbnail_dest_directory' => 'Direktori tujuan tak dapat dibuat', 'thumbnail_image-type' => 'Tipe gambar tidak didukung', 'thumbnail_gd-library' => 'Konfigurasi pustaka GD tak lengkap: tak ada fungsi $1', 'thumbnail_image-missing' => 'Berkas yang tampaknya hilang: $1', # Special:Import 'import' => 'Impor halaman', 'importinterwiki' => 'Impor transwiki', 'import-interwiki-text' => 'Pilih suatu wiki dan judul halaman yang akan di impor. Tanggal revisi dan nama penyunting akan dipertahankan. Semua aktivitas impor transwiki akan dicatat di [[Special:Log/import|log impor]].', 'import-interwiki-source' => 'Wiki/halaman sumber:', 'import-interwiki-history' => 'Salin semua versi terdahulu dari halaman ini', 'import-interwiki-templates' => 'Sertakan semua templat', 'import-interwiki-submit' => 'Impor', 'import-interwiki-namespace' => 'Ruang nama tujuan:', 'import-interwiki-rootpage' => 'Halaman turunan tujuan (opsional):', 'import-upload-filename' => 'Nama berkas:', 'import-comment' => 'Komentar:', 'importtext' => 'Silakan ekspor berkas dari wiki sumber dengan menggunakan [[Special:Export|fasilitas ekspor]]. Simpan ke komputer Anda dan unggah ke sini.', 'importstart' => 'Mengimpor halaman...', 'import-revision-count' => '$1 {{PLURAL:$1|revisi|revisi}}', 'importnopages' => 'Tidak ada halaman untuk diimpor.', 'imported-log-entries' => 'Telah diimpor $1 {{PLURAL:$1|entri log|entri log}}.', 'importfailed' => 'Impor gagal: $1', 'importunknownsource' => 'Sumber impor tidak dikenali', 'importcantopen' => 'Berkas impor tidak dapat dibuka', 'importbadinterwiki' => 'Pranala interwiki rusak', 'importnotext' => 'Kosong atau tidak ada teks', 'importsuccess' => 'Impor sukses!', 'importhistoryconflict' => 'Terjadi konflik revisi sejarah (mungkin pernah mengimpor halaman ini sebelumnya)', 'importnosources' => 'Tidak ada sumber impor transwiki yang telah dibuat dan pemuatan riwayat secara langsung telah di non-aktifkan.', 'importnofile' => 'Tidak ada berkas sumber impor yang telah dimuat.', 'importuploaderrorsize' => 'Pemuatan berkas impor gagal. Ukuran berkas melebihi ukuran yang diperbolehkan.', 'importuploaderrorpartial' => 'Pemuatan berkas impor gagal. Hanya sebagian berkas yang berhasil dimuat.', 'importuploaderrortemp' => 'Pemuatan berkas gagal. Sebuah direktori sementara dibutuhkan.', 'import-parse-failure' => 'Proses impor XML gagal', 'import-noarticle' => 'Tak ada halaman yang dapat diimpor!', 'import-nonewrevisions' => 'Semua revisi telah pernah diimpor sebelumnya.', 'xml-error-string' => '$1 pada baris $2, kolom $3 (bita $4): $5', 'import-upload' => 'Memuat data XML', 'import-token-mismatch' => 'Kehilangan data sesi. Silakan mencoba kembali.', 'import-invalid-interwiki' => 'Tidak dapat mengimpor dari wiki tersebut.', 'import-error-edit' => 'Halaman "$1" tidak diimpor karena Anda tidak diizinkan untuk menyuntingnya.', 'import-error-create' => 'Halaman "$1" tidak diimpor karena Anda tidak diizinkan untuk membuatnya.', 'import-error-interwiki' => 'Halaman " $1 " tidak diimpor karena namanya dicadangkan untuk pranala eksternal (interwiki).', 'import-error-special' => 'Halaman " $1 " tidak diimpor karena milik ruang nama khusus yang tidak mengizinkan adanya halaman.', 'import-error-invalid' => 'Halaman "$1" tidak diimpor karena namanya tidak valid.', 'import-error-unserialize' => 'Revisi $2 halaman " $1 " tidak bisa diurutkan. Revisi dilaporkan untuk menggunakan konten model $3 urutan sebagai $4 .', 'import-options-wrong' => '{{PLURAL:$2|Opsi|Opsi}} salah: <nowiki>$1</nowiki>', 'import-rootpage-invalid' => 'Halaman turunan yang diberikan adalah judul yang salah.', 'import-rootpage-nosubpage' => 'Ruang nama "$1" di halaman turunan tidak mengizinkan subhalaman.', # Import log 'importlogpage' => 'Log impor', 'importlogpagetext' => 'Di bawah ini adalah log impor administratif dari halaman-halaman, berikut riwayat suntingannya dari wiki lain.', 'import-logentry-upload' => 'mengimpor [[$1]] melalui pemuatan berkas', 'import-logentry-upload-detail' => '$1 {{PLURAL:$1|revisi|revisi}}', 'import-logentry-interwiki' => 'men-transwiki $1', 'import-logentry-interwiki-detail' => '$1 {{PLURAL:$1|revisi}} dari $2', # JavaScriptTest 'javascripttest' => 'Pengujian JavaScript', 'javascripttest-title' => '$1 pengujian sedang berjalan', 'javascripttest-pagetext-noframework' => 'Halaman ini disediakan untuk pengujian JavaScript yang sedang berjalan.', 'javascripttest-pagetext-unknownframework' => 'Pengujian kerangka kerja "$1" tidak diketahui', 'javascripttest-pagetext-frameworks' => 'Silakan pilih satu di antara kerangka kerja pengujian berikut: $1', 'javascripttest-pagetext-skins' => 'Pilih kulit yang ingin Anda uji:', 'javascripttest-qunit-intro' => 'Lihat [$1 dokumentasi pengujian] di mediawiki.org.', 'javascripttest-qunit-heading' => 'MediaWiki JavaScript QUnit test suite', # Tooltip help for the actions 'tooltip-pt-userpage' => 'Halaman pengguna Anda', 'tooltip-pt-anonuserpage' => 'Halaman pengguna IP Anda', 'tooltip-pt-mytalk' => 'Halaman pembicaraan Anda', 'tooltip-pt-anontalk' => 'Pembicaraan tentang suntingan dari alamat IP ini', 'tooltip-pt-preferences' => 'Preferensi saya', 'tooltip-pt-watchlist' => 'Daftar halaman yang saya pantau.', 'tooltip-pt-mycontris' => 'Daftar kontribusi Anda', 'tooltip-pt-login' => 'Anda disarankan untuk masuk log, meskipun hal itu tidak diwajibkan.', 'tooltip-pt-anonlogin' => 'Anda disarankan untuk masuk log, meskipun hal itu tidak diwajibkan.', 'tooltip-pt-logout' => 'Keluar log', 'tooltip-ca-talk' => 'Pembicaraan halaman isi', 'tooltip-ca-edit' => 'Anda dapat menyunting halaman ini. Gunakan tombol pratayang sebelum menyimpan', 'tooltip-ca-addsection' => 'Mulai bagian baru', 'tooltip-ca-viewsource' => 'Halaman ini dilindungi. Anda hanya dapat melihat sumbernya.', 'tooltip-ca-history' => 'Revisi-revisi sebelumnya dari halaman ini.', 'tooltip-ca-protect' => 'Lindungi halaman ini', 'tooltip-ca-unprotect' => 'Ubah perlindungan halaman ini', 'tooltip-ca-delete' => 'Hapus halaman ini', 'tooltip-ca-undelete' => 'Kembalikan suntingan ke halaman ini sebelum halaman ini dihapus', 'tooltip-ca-move' => 'Pindahkan halaman ini', 'tooltip-ca-watch' => 'Tambahkan halaman ini ke daftar pantauan Anda', 'tooltip-ca-unwatch' => 'Hapus halaman ini dari daftar pantauan Anda', 'tooltip-search' => 'Cari dalam wiki ini', 'tooltip-search-go' => 'Cari suatu halaman dengan nama yang persis seperti ini jika tersedia', 'tooltip-search-fulltext' => 'Cari halaman yang memiliki teks seperti ini', 'tooltip-p-logo' => 'Kunjungi Halaman Utama', 'tooltip-n-mainpage' => 'Kunjungi Halaman Utama', 'tooltip-n-mainpage-description' => 'Kunjungi Halaman Utama', 'tooltip-n-portal' => 'Tentang proyek, apa yang dapat Anda lakukan, di mana untuk mencari sesuatu', 'tooltip-n-currentevents' => 'Temukan informasi tentang peristiwa terkini', 'tooltip-n-recentchanges' => 'Daftar perubahan terbaru dalam wiki.', 'tooltip-n-randompage' => 'Tampilkan sembarang halaman', 'tooltip-n-help' => 'Tempat mencari bantuan.', 'tooltip-t-whatlinkshere' => 'Daftar semua halaman wiki yang memiliki pranala ke halaman ini', 'tooltip-t-recentchangeslinked' => 'Perubahan terbaru halaman-halaman yang memiliki pranala ke halaman ini', 'tooltip-feed-rss' => 'Umpan RSS untuk halaman ini', 'tooltip-feed-atom' => 'Umpan Atom untuk halaman ini', 'tooltip-t-contributions' => 'Lihat daftar kontribusi pengguna ini', 'tooltip-t-emailuser' => 'Kirimkan surel kepada pengguna ini', 'tooltip-t-upload' => 'Muatkan gambar atau berkas media', 'tooltip-t-specialpages' => 'Daftar semua halaman istimewa', 'tooltip-t-print' => 'Versi cetak halaman ini', 'tooltip-t-permalink' => 'Pranala permanen untuk revisi halaman ini', 'tooltip-ca-nstab-main' => 'Lihat halaman isi', 'tooltip-ca-nstab-user' => 'Lihat halaman pengguna', 'tooltip-ca-nstab-media' => 'Lihat halaman media', 'tooltip-ca-nstab-special' => 'Ini adalah halaman istimewa yang tidak dapat disunting.', 'tooltip-ca-nstab-project' => 'Lihat halaman proyek', 'tooltip-ca-nstab-image' => 'Lihat halaman berkas', 'tooltip-ca-nstab-mediawiki' => 'Lihat pesan sistem', 'tooltip-ca-nstab-template' => 'Lihat templat', 'tooltip-ca-nstab-help' => 'Lihat halaman bantuan', 'tooltip-ca-nstab-category' => 'Lihat halaman kategori', 'tooltip-minoredit' => 'Tandai ini sebagai suntingan kecil', 'tooltip-save' => 'Simpan perubahan Anda', 'tooltip-preview' => 'Pratayang perubahan Anda, harap gunakan ini sebelum menyimpan!', 'tooltip-diff' => 'Lihat perubahan yang telah Anda lakukan.', 'tooltip-compareselectedversions' => 'Lihat perbedaan antara dua versi halaman yang dipilih.', 'tooltip-watch' => 'Tambahkan halaman ini ke daftar pantauan Anda', 'tooltip-watchlistedit-normal-submit' => 'Hapus judul', 'tooltip-watchlistedit-raw-submit' => 'Perbarui daftar pantauan', 'tooltip-recreate' => 'Buat ulang halaman walaupun sebenarnya telah dihapus', 'tooltip-upload' => 'Mulai pemuatan', 'tooltip-rollback' => '"Kembalikan" membatalkan suntingan-suntingan di halaman ini ke kontributor terakhir dalam satu kali klik.', 'tooltip-undo' => '"Balikkan" membatalkan revisi ini dan membuka kotak penyuntingan dengan mode pratayang. Alasan dapat ditambahkan di kotak ringkasan.', 'tooltip-preferences-save' => 'Simpan preferensi', 'tooltip-summary' => 'Masukkan sebuah ringkasan pendek', # Stylesheets 'common.css' => '/* CSS yang ada di sini akan diterapkan pada semua kulit. */', 'cologneblue.css' => '/* CSS yang ada di sini akan diterapkan pada kulit Cologne Blue. */', 'monobook.css' => '/* CSS yang ada di sini akan diterapkan pada kulit Monobook. */', 'modern.css' => '/* CSS yang ada di sini akan diterapkan pada kulit Modern. */', 'vector.css' => '/* CSS nan ado di siko diterapkan pado kulik Vektor. */', 'print.css' => '/* CSS yang ada di sini akan diterapkan pada tampilan cetak. */', 'noscript.css' => '/* CSS di sini akan mempengaruhi pengguna dengan skrip Java non-aktif */', 'group-autoconfirmed.css' => '/* CSS di sini hanya mempengaruhi pengguna terkonfirmasi otomatis */', 'group-bot.css' => '/* CSS di sini hanya mempengaruhi bot */', 'group-sysop.css' => '/* CSS di sini hanya mempengaruhi pengurus */', 'group-bureaucrat.css' => '/* CSS di sini hanya mempengaruhi birokrat */', # Scripts 'common.js' => '/* JavaScript yang ada di sini akan diterapkan untuk semua kulit. */', 'cologneblue.js' => '/* Semua JavaScript di sini akan dimuatkan untuk para pengguna yang menggunakan kulit Cologne Blue */', 'monobook.js' => '/* Semua JavaScript di sini akan dimuatkan untuk para pengguna yang menggunakan kulit MonoBook */', 'modern.js' => '/* Semua JavaScript di sini akan dimuatkan untuk para pengguna yang menggunakan kulit Modern */', 'vector.js' => '/* Semua JavaScript di sini akan dimuatkan untuk para pengguna yang menggunakan kulit Vector */', 'group-autoconfirmed.js' => '/* Semua JavaScript di sini hanya dimuatkan untuk pengguna terkonfirmasi otomatis */', 'group-bot.js' => '/* Semua JavaScript di sini hanya dimuatkan untuk bot */', 'group-sysop.js' => '/* Semua JavaScript di sini hanya dimuatkan untuk pengurus */', 'group-bureaucrat.js' => '/* Semua JavaScript di sini hanya dimuatkan untuk birokrat */', # Metadata 'notacceptable' => 'Server wiki tidak dapat menyediakan data dalam format yang dapat dibaca oleh client Anda.', # Attribution 'anonymous' => '{{PLURAL:$1|pengguna|para pengguna}} anonim {{SITENAME}}', 'siteuser' => 'pengguna {{SITENAME}} $1', 'anonuser' => 'pengguna anonim {{SITENAME}} $1', 'lastmodifiedatby' => 'Halaman ini terakhir kali diubah $2, $1 oleh $3.', 'othercontribs' => 'Didasarkan pada karya $1.', 'others' => 'lainnya', 'siteusers' => '{{PLURAL:$2|pengguna|para pengguna}} {{SITENAME}} $1', 'anonusers' => '{{PLURAL:$2|pengguna|para pengguna}} anonim {{SITENAME}} $1', 'creditspage' => 'Penghargaan halaman', 'nocredits' => 'Tidak ada informasi penghargaan yang tersedia untuk halaman ini.', # Spam protection 'spamprotectiontitle' => 'Filter pencegah spam', 'spamprotectiontext' => 'Halaman yang ingin Anda simpan telah diblokir oleh filter spam. Ini mungkin disebabkan oleh pranala ke situs luar yang termasuk dalam daftar hitam.', 'spamprotectionmatch' => 'Teks berikut ini memancing filter spam kami: $1', 'spambot_username' => 'Pembersihan span MediaWiki', 'spam_reverting' => 'Membatalkan ke versi terakhir yang tak memiliki pranala ke $1', 'spam_blanking' => 'Semua revisi yang memiliki pranala ke $1, kosong', 'spam_deleting' => 'Semua revisi yang memiliki pranala ke $1, penghapusan', # Info page 'pageinfo-title' => 'Informasi untuk "$1"', 'pageinfo-not-current' => 'Maaf, tidak mungkin memberikan informasi ini ke revisi lama.', 'pageinfo-header-basic' => 'Informasi dasar', 'pageinfo-header-edits' => 'Sejarah suntingan', 'pageinfo-header-restrictions' => 'Perlindungan halaman', 'pageinfo-header-properties' => 'Properti halaman', 'pageinfo-display-title' => 'Judul tampilan', 'pageinfo-default-sort' => 'Kunci urut baku', 'pageinfo-length' => 'Panjang halaman (dalam bita)', 'pageinfo-article-id' => 'ID Halaman', 'pageinfo-language' => 'Bahasa isi halaman', 'pageinfo-robot-policy' => 'Status mesin pencari', 'pageinfo-robot-index' => 'Dapat diindeks', 'pageinfo-robot-noindex' => 'Tidak dapat diindeks', 'pageinfo-views' => 'Jumlah penampilan', 'pageinfo-watchers' => 'Jumlah pemantau halaman', 'pageinfo-few-watchers' => 'Kurang dari $1 {{PLURAL:$1|pengunjung}}', 'pageinfo-redirects-name' => 'Pengalihan ke halaman ini', 'pageinfo-redirects-value' => '$1', 'pageinfo-subpages-name' => 'Subhalaman halaman ini', 'pageinfo-subpages-value' => '$1 ($2 {{PLURAL:$2|pengalihan|pengalihan}}; $3 {{PLURAL:$3|non-pengalihan|non-pengalihan}})', 'pageinfo-firstuser' => 'Pembuat halaman', 'pageinfo-firsttime' => 'Tanggal pembuatan halaman', 'pageinfo-lastuser' => 'Penyunting terakhir', 'pageinfo-lasttime' => 'Tanggal suntingan terakhir', 'pageinfo-edits' => 'Jumlah total suntingan', 'pageinfo-authors' => 'Jumlah total penulis yang berbeda', 'pageinfo-recent-edits' => 'Jumlah suntingan terkini (dalam $1 terakhir)', 'pageinfo-recent-authors' => 'Jumlah penulis berbeda terkini', 'pageinfo-magic-words' => '{{PLURAL:$1|Kata|Kata}} ajaib ($1)', 'pageinfo-hidden-categories' => '{{PLURAL:$1|Kategori|Kategori}} tersembunyi ($1)', 'pageinfo-templates' => '{{PLURAL:$1|Templat|Templat}} yang ditransklusi ($1)', 'pageinfo-transclusions' => '{{PLURAL:$1|Halaman}} ditransklusikan pada ($1)', 'pageinfo-toolboxlink' => 'Informasi halaman', 'pageinfo-redirectsto' => 'Beralih ke', 'pageinfo-redirectsto-info' => 'info', 'pageinfo-contentpage' => 'Dihitung sebagai halaman konten', 'pageinfo-contentpage-yes' => 'Ya', 'pageinfo-protect-cascading' => 'Perlindungan berurutan dari sini', 'pageinfo-protect-cascading-yes' => 'Ya', 'pageinfo-protect-cascading-from' => 'Perlindungan mulai dari', 'pageinfo-category-info' => 'Kategori informasi', 'pageinfo-category-pages' => 'Jumlah halaman', 'pageinfo-category-subcats' => 'Jumlah subkategori', 'pageinfo-category-files' => 'Jumlah berkas', # Skin names 'skinname-cologneblue' => 'Biru Köln', 'skinname-monobook' => 'MonoBook', 'skinname-modern' => 'Modern', 'skinname-vector' => 'Vektor', # Patrolling 'markaspatrolleddiff' => 'Tandai telah dipatroli', 'markaspatrolledtext' => 'Tandai halaman ini telah dipatroli', 'markedaspatrolled' => 'Ditandai telah dipatroli', 'markedaspatrolledtext' => 'Revisi yang terpilih dari [[:$1]] telah ditandai sebagai terpatroli.', 'rcpatroldisabled' => 'Patroli perubahan terbaru dimatikan', 'rcpatroldisabledtext' => 'Fitur patroli perubahan terbaru sedang dimatikan.', 'markedaspatrollederror' => 'Tidak dapat menandai telah dipatroli', 'markedaspatrollederrortext' => 'Anda harus menentukan satu revisi untuk ditandai sebagai yang dipatroli.', 'markedaspatrollederror-noautopatrol' => 'Anda tidak diizinkan menandai suntingan Anda sendiri dipatroli.', 'markedaspatrollednotify' => 'Perubahan ini untuk $1 telah ditandai terpatroli.', 'markedaspatrollederrornotify' => 'Menandai sebagai terpatroli gagal.', # Patrol log 'patrol-log-page' => 'Log patroli', 'patrol-log-header' => 'Ini adalah log revisi terpatroli.', 'log-show-hide-patrol' => '$1 log patroli', # Image deletion 'deletedrevision' => 'Revisi lama yang dihapus $1', 'filedeleteerror-short' => 'Kesalahan waktu menghapus berkas: $1', 'filedeleteerror-long' => 'Terjadi kesalahan sewaktu menghapus berkas: $1', 'filedelete-missing' => 'Berkas "$1" tak dapat dihapus karena tak ditemukan.', 'filedelete-old-unregistered' => 'Revisi berkas "$1" yang diberikan tidak ada dalam basis data.', 'filedelete-current-unregistered' => 'Berkas yang diberikan "$1" tidak ada dalam basis data.', 'filedelete-archive-read-only' => 'Direktori arsip "$1" tak dapat ditulis oleh server web.', # Browsing diffs 'previousdiff' => '← Revisi sebelumnya', 'nextdiff' => 'Revisi selanjutnya →', # Media information 'mediawarning' => "'''Peringatan''': Berkas ini mungkin mengandung kode berbahaya. Jika dijalankan, sistem Anda akan berisiko terserang.", 'imagemaxsize' => "Batas ukuran gambar:<br />''(untuk halaman deskripsi berkas)''", 'thumbsize' => 'Ukuran miniatur:', 'widthheight' => '$1 × $2', 'widthheightpage' => '$1 × $2, $3 {{PLURAL:$3|halaman|halaman}}', 'file-info' => 'ukuran berkas: $1, tipe MIME: $2', 'file-info-size' => '$1 × $2 piksel, ukuran berkas: $3, tipe MIME: $4', 'file-info-size-pages' => '$1 × $2 piksel, ukuran berkas: $3, jenis MIME: $4, $5 {{PLURAL:$5|halaman|halaman}}', 'file-nohires' => 'Tak tersedia resolusi yang lebih tinggi.', 'svg-long-desc' => 'Berkas SVG, nominal $1 × $2 piksel, besar berkas: $3', 'svg-long-desc-animated' => 'Berkas SVG animasi, biasanya $1 x $2 piksel, ukuran gambar: $3', 'svg-long-error' => 'Berkas SVG tidak sah: $1', 'show-big-image' => 'Resolusi penuh', 'show-big-image-preview' => 'Ukuran pratayang ini: $1.', 'show-big-image-other' => '{{PLURAL:$2|Resolusi|Resolusi}} lain: $1.', 'show-big-image-size' => '$1 × $2 piksel', 'file-info-gif-looped' => 'melingkar', 'file-info-gif-frames' => '$1 {{PLURAL:$1||}}frame', 'file-info-png-looped' => 'ulang', 'file-info-png-repeat' => 'dimainkan $1 {{PLURAL:$1|kali|kali}}', 'file-info-png-frames' => '$1 {{PLURAL:$1|bingkai|bingkai}}', 'file-no-thumb-animation' => "'''Catatan: Karena keterbatasan teknis, cuplikan berkas ini tidak akan teranimasikan.'''", 'file-no-thumb-animation-gif' => "'''Catatan: Karena keterbatasan teknis, cuplikan gambar GIF beresolusi tinggi seperti yang satu ini tidak akan teranimasikan.'''", # Special:NewFiles 'newimages' => 'Berkas baru', 'imagelisttext' => "Di bawah ini adalah daftar '''$1''' {{PLURAL:$1|berkas|berkas}} diurutkan $2.", 'newimages-summary' => 'Halaman istimewa berikut menampilkan daftar berkas yang terakhir dimuat', 'newimages-legend' => 'Penyaring', 'newimages-label' => 'Nama berkas (atau sebagian dari nama berkas):', 'showhidebots' => '($1 bot)', 'noimages' => 'Tidak ada yang dilihat.', 'ilsubmit' => 'Cari', 'bydate' => 'berdasarkan tanggal', 'sp-newimages-showfrom' => 'Tampilkan berkas baru dimulai dari $2, $1', # Video information, used by Language::formatTimePeriod() to format lengths in the above messages 'video-dims' => '$1, $2 × $3', 'seconds-abbrev' => '$1 d', 'minutes-abbrev' => '$1 mnt', 'hours-abbrev' => '$1 j', 'days-abbrev' => '$1 h', 'seconds' => '{{PLURAL:$1|satu detik|$1 detik}}', 'minutes' => '{{PLURAL:$1|$1 menit|$1 menit}}', 'hours' => '{{PLURAL:$1|$1 jam|$1 jam}}', 'days' => '{{PLURAL:$1|$1 hari|$1 hari}}', 'weeks' => '{{PLURAL:$1|$1 minggu|$1 minggu}}', 'months' => '{{PLURAL:$1|$1 bulan|$1 bulan}}', 'years' => '{{PLURAL:$1|$1 tahun|$1 tahun}}', 'ago' => '$1 yang lalu', 'just-now' => 'baru saja', # Human-readable timestamps 'hours-ago' => '$1 {{PLURAL:$1|jam}} yang lalu', 'minutes-ago' => '$1 {{PLURAL:$1|menit}} yang lalu', 'seconds-ago' => '$1 {{PLURAL:$1|detik}} yang lalu', 'monday-at' => 'Senin pukul $1', 'tuesday-at' => 'Selasa pukul $1', 'wednesday-at' => 'Rabu pukul $1', 'thursday-at' => 'Kamis pukul $1', 'friday-at' => 'Jumat pukul $1', 'saturday-at' => 'Sabtu pukul $1', 'sunday-at' => 'Minggu pukul $1', 'yesterday-at' => 'Kemarin pukul $1', # Bad image list 'bad_image_list' => 'Formatnya sebagai berikut: Hanya butir daftar (baris yang diawali dengan tanda *) yang diperhitungkan. Pranala pertama pada suatu baris haruslah pranala ke berkas yang buruk. Pranala-pranala selanjutnya pada baris yang sama dianggap sebagai pengecualian, yaitu halaman yang dapat menampilkan berkas tersebut.', /* Short names for language variants used for language conversion links. Variants for Chinese language */ 'variantname-zh-hans' => 'hans', 'variantname-zh-hant' => 'hant', 'variantname-zh-cn' => 'cn', 'variantname-zh-tw' => 'tw', 'variantname-zh-hk' => 'hk', 'variantname-zh-mo' => 'mo', 'variantname-zh-sg' => 'sg', 'variantname-zh-my' => 'my', 'variantname-zh' => 'zh', # Variants for Gan language 'variantname-gan-hans' => 'hans', 'variantname-gan-hant' => 'hant', 'variantname-gan' => 'gan', # Variants for Serbian language 'variantname-sr-ec' => 'sr-ec', 'variantname-sr-el' => 'sr-el', 'variantname-sr' => 'sr', # Variants for Kazakh language 'variantname-kk-kz' => 'kk-kz', 'variantname-kk-tr' => 'kk-tr', 'variantname-kk-cn' => 'kk-cn', # Metadata 'metadata' => 'Metadata', 'metadata-help' => 'Berkas ini mengandung informasi tambahan yang mungkin ditambahkan oleh kamera digital atau pemindai yang digunakan untuk membuat atau mendigitalisasi berkas. Jika berkas ini telah mengalami modifikasi, rincian yang ada mungkin tidak secara penuh merefleksikan informasi dari gambar yang sudah dimodifikasi ini.', 'metadata-expand' => 'Tampilkan rincian tambahan', 'metadata-collapse' => 'Sembunyikan rincian tambahan', 'metadata-fields' => 'Bidang metadata gambar yang tercantum dalam pesan ini akan dimasukkan pada tampilan halaman gambar ketika tabel metadata diciutkan. Data lain akan disembunyikan secara bawaan. * make * model * datetimeoriginal * exposuretime * fnumber * isospeedratings * focallength * artist * copyright * imagedescription * gpslatitude * gpslongitude * gpsaltitude', 'metadata-langitem' => "'''$2:''' $1", 'metadata-langitem-default' => '$1', # Exif tags 'exif-imagewidth' => 'Lebar', 'exif-imagelength' => 'Tinggi', 'exif-bitspersample' => 'Bit per komponen', 'exif-compression' => 'Skema kompresi', 'exif-photometricinterpretation' => 'Komposisi piksel', 'exif-orientation' => 'Orientasi', 'exif-samplesperpixel' => 'Jumlah komponen', 'exif-planarconfiguration' => 'Pengaturan data', 'exif-ycbcrsubsampling' => 'Rasio subsampling Y ke C', 'exif-ycbcrpositioning' => 'Penempatan Y dan C', 'exif-xresolution' => 'Resolusi horizontal', 'exif-yresolution' => 'Resolusi vertikal', 'exif-stripoffsets' => 'Lokasi data gambar', 'exif-rowsperstrip' => 'Jumlah baris per strip', 'exif-stripbytecounts' => 'Bita per strip kompresi', 'exif-jpeginterchangeformat' => 'Ofset ke JPEG SOI', 'exif-jpeginterchangeformatlength' => 'Bita data JPEG', 'exif-whitepoint' => 'Kromatisitas titik putih', 'exif-primarychromaticities' => 'Kromatisitas warna primer', 'exif-ycbcrcoefficients' => 'Koefisien matriks transformasi ruang warna', 'exif-referenceblackwhite' => 'Nilai referensi pasangan hitam putih', 'exif-datetime' => 'Tanggal dan waktu perubahan berkas', 'exif-imagedescription' => 'Judul gambar', 'exif-make' => 'Produsen kamera', 'exif-model' => 'Model kamera', 'exif-software' => 'Perangkat lunak', 'exif-artist' => 'Pembuat', 'exif-copyright' => 'Pemilik hak cipta', 'exif-exifversion' => 'Versi Exif', 'exif-flashpixversion' => 'Dukungan versi Flashpix', 'exif-colorspace' => 'Ruang warna', 'exif-componentsconfiguration' => 'Arti tiap komponen', 'exif-compressedbitsperpixel' => 'Mode kompresi gambar', 'exif-pixelydimension' => 'Lebar gambar', 'exif-pixelxdimension' => 'Tinggi gambar', 'exif-usercomment' => 'Komentar pengguna', 'exif-relatedsoundfile' => 'Berkas audio yang berhubungan', 'exif-datetimeoriginal' => 'Tanggal dan waktu pembuatan data', 'exif-datetimedigitized' => 'Tanggal dan waktu digitalisasi', 'exif-subsectime' => 'Subdetik DateTime', 'exif-subsectimeoriginal' => 'Subdetik DateTimeOriginal', 'exif-subsectimedigitized' => 'Subdetik DateTimeDigitized', 'exif-exposuretime' => 'Waktu pajanan', 'exif-exposuretime-format' => '$1 detik ($2)', 'exif-fnumber' => 'Nilai F', 'exif-fnumber-format' => 'f/$1', 'exif-exposureprogram' => 'Program pajanan', 'exif-spectralsensitivity' => 'Sensitivitas spektral', 'exif-isospeedratings' => 'Rating kecepatan ISO', 'exif-shutterspeedvalue' => 'Kecepatan rana APEX', 'exif-aperturevalue' => 'Bukaan APEX', 'exif-brightnessvalue' => 'Kecerahan APEX', 'exif-exposurebiasvalue' => 'Bias pajanan', 'exif-maxaperturevalue' => 'Bukaan tanah maksimum', 'exif-subjectdistance' => 'Jarak subjek', 'exif-meteringmode' => 'Mode pengukuran', 'exif-lightsource' => 'Sumber cahaya', 'exif-flash' => 'Kilas', 'exif-focallength' => 'Jarak fokus lensa', 'exif-focallength-format' => '$1 mm', 'exif-subjectarea' => 'Wilayah subjek', 'exif-flashenergy' => 'Energi kilas', 'exif-focalplanexresolution' => 'Resolusi bidang fokus X', 'exif-focalplaneyresolution' => 'Resolusi bidang fokus Y', 'exif-focalplaneresolutionunit' => 'Unit resolusi bidang fokus', 'exif-subjectlocation' => 'Lokasi subjek', 'exif-exposureindex' => 'Indeks pajanan', 'exif-sensingmethod' => 'Metode penginderaan', 'exif-filesource' => 'Sumber berkas', 'exif-scenetype' => 'Tipe pemandangan', 'exif-customrendered' => 'Proses buatan gambar', 'exif-exposuremode' => 'Mode pajanan', 'exif-whitebalance' => 'Keseimbangan putih', 'exif-digitalzoomratio' => 'Rasio pembesaran digital', 'exif-focallengthin35mmfilm' => 'Panjang fokus pada film 35 mm', 'exif-scenecapturetype' => 'Tipe penangkapan', 'exif-gaincontrol' => 'Kontrol pemandangan', 'exif-contrast' => 'Kontras', 'exif-saturation' => 'Saturasi', 'exif-sharpness' => 'Ketajaman', 'exif-devicesettingdescription' => 'Deskripsi pengaturan alat', 'exif-subjectdistancerange' => 'Jarak subjek', 'exif-imageuniqueid' => 'ID unik gambar', 'exif-gpsversionid' => 'Versi tag GPS', 'exif-gpslatituderef' => 'Lintang Utara atau Selatan', 'exif-gpslatitude' => 'Lintang', 'exif-gpslongituderef' => 'Bujur Timur atau Barat', 'exif-gpslongitude' => 'Bujur', 'exif-gpsaltituderef' => 'Referensi ketinggian', 'exif-gpsaltitude' => 'Ketinggian', 'exif-gpstimestamp' => 'Waktu GPS (jam atom)', 'exif-gpssatellites' => 'Satelit untuk pengukuran', 'exif-gpsstatus' => 'Status penerima', 'exif-gpsmeasuremode' => 'Mode pengukuran', 'exif-gpsdop' => 'Ketepatan pengukuran', 'exif-gpsspeedref' => 'Unit kecepatan', 'exif-gpsspeed' => 'Kecepatan penerima GPS', 'exif-gpstrackref' => 'Referensi arah gerakan', 'exif-gpstrack' => 'Arah gerakan', 'exif-gpsimgdirectionref' => 'Referensi arah gambar', 'exif-gpsimgdirection' => 'Arah gambar', 'exif-gpsmapdatum' => 'Data survei geodesi', 'exif-gpsdestlatituderef' => 'Referensi lintang dari tujuan', 'exif-gpsdestlatitude' => 'Lintang tujuan', 'exif-gpsdestlongituderef' => 'Referensi bujur dari tujuan', 'exif-gpsdestlongitude' => 'Bujur tujuan', 'exif-gpsdestbearingref' => 'Referensi bearing tujuan', 'exif-gpsdestbearing' => 'Bearing tujuan', 'exif-gpsdestdistanceref' => 'Referensi jarak dari tujuan', 'exif-gpsdestdistance' => 'Jarak dari tujuan', 'exif-gpsprocessingmethod' => 'Nama metode proses GPS', 'exif-gpsareainformation' => 'Nama wilayah GPS', 'exif-gpsdatestamp' => 'Tanggal GPS', 'exif-gpsdifferential' => 'Koreksi diferensial GPS', 'exif-coordinate-format' => '$1° $2′ $3″ $4', 'exif-jpegfilecomment' => 'Komentar berkas JPEG', 'exif-keywords' => 'Kata kunci', 'exif-worldregioncreated' => 'Wilayah dunia tempat pengambilan gambar', 'exif-countrycreated' => 'Negara tempat pengambilan gambar', 'exif-countrycodecreated' => 'Kode negara tempat pengambilan gambar', 'exif-provinceorstatecreated' => 'Provinsi atau negara bagian tempat pengambilan gambar', 'exif-citycreated' => 'Kota tempat pengambilan gambar', 'exif-sublocationcreated' => 'Sublokasi kota tempat pengambilan gambar', 'exif-worldregiondest' => 'Wilayah dunia yang ditampilkan', 'exif-countrydest' => 'Negara yang ditampilkan', 'exif-countrycodedest' => 'Kode negara yang ditampilkan', 'exif-provinceorstatedest' => 'Provinsi atau negara bagian yang ditampilkan', 'exif-citydest' => 'Kota yang ditampilkan', 'exif-sublocationdest' => 'Sublokasi kota yang ditampilkan', 'exif-objectname' => 'Judul singkat', 'exif-specialinstructions' => 'Instruksi khusus', 'exif-headline' => 'Tajuk', 'exif-credit' => 'Kredit/Penyedia', 'exif-source' => 'Sumber', 'exif-editstatus' => 'Status editorial gambar', 'exif-urgency' => 'Urgensi', 'exif-fixtureidentifier' => 'Nama fikstur', 'exif-locationdest' => 'Lokasi yang digambarkan', 'exif-locationdestcode' => 'Kode lokasi yang digambarkan', 'exif-objectcycle' => 'Waktu tujuan media', 'exif-contact' => 'Informasi kontak', 'exif-writer' => 'Penulis', 'exif-languagecode' => 'Bahasa', 'exif-iimversion' => 'Versi IIM', 'exif-iimcategory' => 'Kategori', 'exif-iimsupplementalcategory' => 'Kategori tambahan', 'exif-datetimeexpires' => 'Jangan gunakan setelah', 'exif-datetimereleased' => 'Dirilis pada', 'exif-originaltransmissionref' => 'Kode lokasi transmisi asli', 'exif-identifier' => 'Pengenal', 'exif-lens' => 'Lensa yang digunakan', 'exif-serialnumber' => 'Nomor seri kamera', 'exif-cameraownername' => 'Pemilik kamera', 'exif-label' => 'Label', 'exif-datetimemetadata' => 'Tanggal terakhir perubahan metadata', 'exif-nickname' => 'Nama informal gambar', 'exif-rating' => 'Nilai (dari 5)', 'exif-rightscertificate' => 'Sertifikat manajemen hak', 'exif-copyrighted' => 'Status hak cipta', 'exif-copyrightowner' => 'Pemilik hak cipta', 'exif-usageterms' => 'Ketentuan penggunaan', 'exif-webstatement' => 'Pernyataan hak cipta daring', 'exif-originaldocumentid' => 'ID unik dokumen asli', 'exif-licenseurl' => 'URL lisensi hak cipta', 'exif-morepermissionsurl' => 'Informasi lisensi alternatif', 'exif-attributionurl' => 'Ketika menggunakan kembali karya ini, tolong tautkan ke', 'exif-preferredattributionname' => 'Ketika menggunakan kembali karya ini, tolong berikan kredit', 'exif-pngfilecomment' => 'Komentar berkas PNG', 'exif-disclaimer' => 'Penyangkalan', 'exif-contentwarning' => 'Peringatan konten', 'exif-giffilecomment' => 'Komentar berkas GIF', 'exif-intellectualgenre' => 'Jenis objek', 'exif-subjectnewscode' => 'Kode subjek', 'exif-scenecode' => 'Kode adegan IPTC', 'exif-event' => 'Peristiwa yang digambarkan', 'exif-organisationinimage' => 'Organisasi yang digambarkan', 'exif-personinimage' => 'Orang yang digambarkan', 'exif-originalimageheight' => 'Tinggi gambar sebelum dipotong', 'exif-originalimagewidth' => 'Lebar gambar sebelum dipotong', # Make & model, can be wikified in order to link to the camera and model name 'exif-contact-value' => '$1 $2 <div class="adr"> $3 $4, $5 - $6, $7 </div> $8', 'exif-subjectnewscode-value' => '$2 ($1)', # Exif attributes 'exif-compression-1' => 'Tak terkompresi', 'exif-compression-2' => 'CCITT Group 3 1-Dimensional Modified Huffman RLE', 'exif-compression-3' => 'CCITT Group 3 fax encoding', 'exif-compression-4' => 'CCITT Group 4 fax encoding', 'exif-compression-5' => 'LZW', 'exif-compression-6' => 'JPEG (lama)', 'exif-compression-7' => 'JPEG', 'exif-compression-8' => 'Turunan (Adobe)', 'exif-compression-32773' => 'PackBits (Macintosh RLE)', 'exif-compression-32946' => 'Turunan (PKZIP)', 'exif-compression-34712' => 'JPEG2000', 'exif-copyrighted-true' => 'Berhak cipta', 'exif-copyrighted-false' => 'Domain publik', 'exif-photometricinterpretation-2' => 'RGB', 'exif-photometricinterpretation-6' => 'YCbCr', 'exif-unknowndate' => 'Tanggal tak diketahui', 'exif-orientation-1' => 'Normal', 'exif-orientation-2' => 'Dibalik horisontal', 'exif-orientation-3' => 'Diputar 180°', 'exif-orientation-4' => 'Dibalik vertikal', 'exif-orientation-5' => 'Diputar 90° CCW dan dibalik vertikal', 'exif-orientation-6' => 'Diputar 90° CCW', 'exif-orientation-7' => 'Diputar 90° CW dan dibalik vertikal', 'exif-orientation-8' => 'Diputar 90° CW', 'exif-planarconfiguration-1' => 'format chunky', 'exif-planarconfiguration-2' => 'format planar', 'exif-xyresolution-i' => '$1 dpi', 'exif-xyresolution-c' => '$1 dpc', 'exif-colorspace-1' => 'sRGB', 'exif-colorspace-65535' => 'Tidak dikalibrasi', 'exif-componentsconfiguration-0' => 'tak tersedia', 'exif-componentsconfiguration-1' => 'Y', 'exif-componentsconfiguration-2' => 'Cb', 'exif-componentsconfiguration-3' => 'Cr', 'exif-componentsconfiguration-4' => 'R', 'exif-componentsconfiguration-5' => 'G', 'exif-componentsconfiguration-6' => 'B', 'exif-exposureprogram-0' => 'Tak terdefinisi', 'exif-exposureprogram-1' => 'Manual', 'exif-exposureprogram-2' => 'Program normal', 'exif-exposureprogram-3' => 'Prioritas bukaan', 'exif-exposureprogram-4' => 'Prioritas penutup', 'exif-exposureprogram-5' => 'Program kreatif (condong ke kedalaman ruang)', 'exif-exposureprogram-6' => 'Program aksi (condong ke kecepatan rana)', 'exif-exposureprogram-7' => 'Modus potret (untuk foto closeup dengan latar belakang tak fokus)', 'exif-exposureprogram-8' => 'Modus pemandangan (untuk foto pemandangan dengan latar belakang fokus)', 'exif-subjectdistance-value' => '$1 meter', 'exif-meteringmode-0' => 'Tidak diketahui', 'exif-meteringmode-1' => 'Rerata', 'exif-meteringmode-2' => 'RerataBerbobot', 'exif-meteringmode-3' => 'Terpusat', 'exif-meteringmode-4' => 'BanyakPusat', 'exif-meteringmode-5' => 'Pola', 'exif-meteringmode-6' => 'Parsial', 'exif-meteringmode-255' => 'Lain-lain', 'exif-lightsource-0' => 'Tidak diketahui', 'exif-lightsource-1' => 'Cahaya siang', 'exif-lightsource-2' => 'Pendarflour', 'exif-lightsource-3' => 'Wolfram (cahaya pijar)', 'exif-lightsource-4' => 'Kilas', 'exif-lightsource-9' => 'Cuaca baik', 'exif-lightsource-10' => 'Cuaca berkabut', 'exif-lightsource-11' => 'Bayangan', 'exif-lightsource-12' => 'Pendarflour cahaya siang (D 5700 – 7100K)', 'exif-lightsource-13' => 'Pendarflour putih siang (N 4600 – 5400K)', 'exif-lightsource-14' => 'Pendarflour putih teduh (W 3900 – 4500K)', 'exif-lightsource-15' => 'Pendarflour putih (WW 3200 – 3700K)', 'exif-lightsource-17' => 'Cahaya standar A', 'exif-lightsource-18' => 'Cahaya standar B', 'exif-lightsource-19' => 'Cahaya standar C', 'exif-lightsource-20' => 'D55', 'exif-lightsource-21' => 'D65', 'exif-lightsource-22' => 'D75', 'exif-lightsource-23' => 'D50', 'exif-lightsource-24' => 'studio ISO tungsten', 'exif-lightsource-255' => 'Sumber cahaya lain', # Flash modes 'exif-flash-fired-0' => 'Lampu kilat tidak menyala', 'exif-flash-fired-1' => 'Lampu kilat menyala', 'exif-flash-return-0' => 'tidak ada fungsi pendeteksian strobo balik', 'exif-flash-return-2' => 'lampu strobo balik tidak terdeteksi', 'exif-flash-return-3' => 'lampu strobo balik terdeteksi', 'exif-flash-mode-1' => 'lampu kilat diperlukan', 'exif-flash-mode-2' => 'lampu kilat dimatikan', 'exif-flash-mode-3' => 'modus otomatis', 'exif-flash-function-1' => 'Tidak ada fungsi lampu kilat', 'exif-flash-redeye-1' => 'mode reduksi pantulan mata-merah', 'exif-focalplaneresolutionunit-2' => 'inci', 'exif-sensingmethod-1' => 'Tak terdefinisi', 'exif-sensingmethod-2' => 'Sensor area warna satu keping', 'exif-sensingmethod-3' => 'Sensor area warna dua keping', 'exif-sensingmethod-4' => 'Sensor area warna tiga keping', 'exif-sensingmethod-5' => 'Sensor area warna berurut', 'exif-sensingmethod-7' => 'Sensor trilinear', 'exif-sensingmethod-8' => 'Sensor linear warna berurut', 'exif-filesource-3' => 'Kamera diam digital', 'exif-scenetype-1' => 'Gambar foto langsung', 'exif-customrendered-0' => 'Proses normal', 'exif-customrendered-1' => 'Proses kustom', 'exif-exposuremode-0' => 'Pajanan otomatis', 'exif-exposuremode-1' => 'Pajanan manual', 'exif-exposuremode-2' => 'Braket otomatis', 'exif-whitebalance-0' => 'Keseimbangan putih otomatis', 'exif-whitebalance-1' => 'Keseimbangan putih manual', 'exif-scenecapturetype-0' => 'Standar', 'exif-scenecapturetype-1' => 'Melebar', 'exif-scenecapturetype-2' => 'Potret', 'exif-scenecapturetype-3' => 'Pemandangan malam', 'exif-gaincontrol-0' => 'Tidak ada', 'exif-gaincontrol-1' => 'Naikkan fokus rendah', 'exif-gaincontrol-2' => 'Naikkan fokus tinggi', 'exif-gaincontrol-3' => 'Turunkan fokus rendah', 'exif-gaincontrol-4' => 'Turunkan fokus tinggi', 'exif-contrast-0' => 'Normal', 'exif-contrast-1' => 'Lembut', 'exif-contrast-2' => 'Keras', 'exif-saturation-0' => 'Normal', 'exif-saturation-1' => 'Saturasi rendah', 'exif-saturation-2' => 'Saturasi tinggi', 'exif-sharpness-0' => 'Normal', 'exif-sharpness-1' => 'Lembut', 'exif-sharpness-2' => 'Keras', 'exif-subjectdistancerange-0' => 'Tidak diketahui', 'exif-subjectdistancerange-1' => 'Makro', 'exif-subjectdistancerange-2' => 'Tampak dekat', 'exif-subjectdistancerange-3' => 'Tampak jauh', # Pseudotags used for GPSLatitudeRef and GPSDestLatitudeRef 'exif-gpslatitude-n' => 'Lintang utara', 'exif-gpslatitude-s' => 'Lintang selatan', # Pseudotags used for GPSLongitudeRef and GPSDestLongitudeRef 'exif-gpslongitude-e' => 'Bujur timur', 'exif-gpslongitude-w' => 'Bujur barat', # Pseudotags used for GPSAltitudeRef 'exif-gpsaltitude-above-sealevel' => '$1 {{PLURAL:$1|meter}} di atas permukaan laut', 'exif-gpsaltitude-below-sealevel' => '$1 {{PLURAL:$1|meter}} di bawah permukaan laut', 'exif-gpsstatus-a' => 'Pengukuran sedang berlangsung', 'exif-gpsstatus-v' => 'Interoperabilitas pengukuran', 'exif-gpsmeasuremode-2' => 'Pengukuran 2-dimensi', 'exif-gpsmeasuremode-3' => 'Pengukuran 3-dimensi', # Pseudotags used for GPSSpeedRef 'exif-gpsspeed-k' => 'Kilometer per jam', 'exif-gpsspeed-m' => 'Mil per jam', 'exif-gpsspeed-n' => 'Knot', # Pseudotags used for GPSDestDistanceRef 'exif-gpsdestdistance-k' => 'Kilometer', 'exif-gpsdestdistance-m' => 'Mil', 'exif-gpsdestdistance-n' => 'Mil laut', 'exif-gpsdop-excellent' => 'Sangat baik ($1)', 'exif-gpsdop-good' => 'Baik ($1)', 'exif-gpsdop-moderate' => 'Moderat ($1)', 'exif-gpsdop-fair' => 'Cukup ($1)', 'exif-gpsdop-poor' => 'Buruk ($1)', 'exif-objectcycle-a' => 'Hanya pagi', 'exif-objectcycle-p' => 'Hanya malam', 'exif-objectcycle-b' => 'Baik pagi maupun malam', # Pseudotags used for GPSTrackRef, GPSImgDirectionRef and GPSDestBearingRef 'exif-gpsdirection-t' => 'Arah sejati', 'exif-gpsdirection-m' => 'Arah magnetis', 'exif-ycbcrpositioning-1' => 'Tengah (centered)', 'exif-ycbcrpositioning-2' => 'Atas (co-sited)', 'exif-dc-contributor' => 'Kontributor', 'exif-dc-coverage' => 'Lingkup temporal atau spasial media', 'exif-dc-date' => 'Tanggal', 'exif-dc-publisher' => 'Penerbit', 'exif-dc-relation' => 'Media terkait', 'exif-dc-rights' => 'Hak', 'exif-dc-source' => 'Media sumber', 'exif-dc-type' => 'Jenis media', 'exif-rating-rejected' => 'Ditolak', 'exif-isospeedratings-overflow' => 'Lebih dari 65535', 'exif-maxaperturevalue-value' => '$1 APEX (f/$2)', 'exif-iimcategory-ace' => 'Seni, budaya, dan hiburan', 'exif-iimcategory-clj' => 'Kejahatan dan hukum', 'exif-iimcategory-dis' => 'Bencana dan kecelakaan', 'exif-iimcategory-fin' => 'Ekonomi dan bisnis', 'exif-iimcategory-edu' => 'Pendidikan', 'exif-iimcategory-evn' => 'Lingkungan', 'exif-iimcategory-hth' => 'Kesehatan', 'exif-iimcategory-hum' => 'Minat insani', 'exif-iimcategory-lab' => 'Ketenagakerjaan', 'exif-iimcategory-lif' => 'Gaya hidup dan rekreasi', 'exif-iimcategory-pol' => 'Politik', 'exif-iimcategory-rel' => 'Agama dan kepercayaan', 'exif-iimcategory-sci' => 'Ilmu dan teknologi', 'exif-iimcategory-soi' => 'Isu sosial', 'exif-iimcategory-spo' => 'Olahraga', 'exif-iimcategory-war' => 'Perang, konflik, dan keresahan', 'exif-iimcategory-wea' => 'Cuaca', 'exif-urgency-normal' => 'Normal ($1)', 'exif-urgency-low' => 'Rendah ($1)', 'exif-urgency-high' => 'Tinggi ($1)', 'exif-urgency-other' => 'Prioritas ubahsuaian ($1)', # External editor support 'edit-externally' => 'Sunting berkas ini dengan aplikasi luar', 'edit-externally-help' => '(Lihat [//www.mediawiki.org/wiki/Manual:External_editors instruksi pengaturan] untuk informasi lebih lanjut)', # 'all' in various places, this might be different for inflected languages 'watchlistall2' => 'semua', 'namespacesall' => 'semua', 'monthsall' => 'semua', 'limitall' => 'semua', # Email address confirmation 'confirmemail' => 'Konfirmasi alamat surel', 'confirmemail_noemail' => 'Anda tidak memberikan alamat surel yang sah di [[Special:Preferences|preferensi pengguna]] Anda.', 'confirmemail_text' => '{{SITENAME}} mengharuskan Anda untuk melakukan konfirmasi atas alamat surel Anda sebelum fitur-fitur surel dapat digunakan. Tekan tombol di bawah ini untuk mengirimi Anda sebuah surel yang berisi kode konfirmasi yang berupa sebuah alamat internet. Salin alamat tersebut ke penjelajah web Anda dan buka alamat tersebut untuk melakukan konfirmasi sehingga menginformasikan bahwa alamat surel Anda valid.', 'confirmemail_pending' => 'Suatu kode konfirmasi telah dikirimkan kepada Anda; jika Anda baru saja membuat akun Anda, silakan tunggu beberapa menit untuk surat tersebut tiba sebelum mencoba untuk meminta satu kode baru.', 'confirmemail_send' => 'Kirim kode konfirmasi', 'confirmemail_sent' => 'Surel berisi kode konfirmasi telah dikirim.', 'confirmemail_oncreate' => 'Suatu kode konfirmasi telah dikirimkan ke alamat surel Anda. Kode ini tidak dibutuhkan untuk masuk log, tapi dibutuhkan sebelum menggunakan semua fitur yang menggunakan surel di wiki ini.', 'confirmemail_sendfailed' => '{{SITENAME}} tidak berhasil mengirimkan surat konfirmasi Anda. Harap cek kemungkinan karakter ilegal pada alamat surel. Aplikasi pengiriman surel menginformasikan: $1', 'confirmemail_invalid' => 'Kode konfirmasi salah. Kode tersebut mungkin sudah kedaluwarsa.', 'confirmemail_needlogin' => 'Anda harus melakukan $1 untuk mengkonfirmasikan alamat surel Anda.', 'confirmemail_success' => 'Alamat surel Anda telah dikonfirmasi. Sekarang Anda dapat [[Special:UserLogin|masuk log]] dan mulai menggunakan wiki.', 'confirmemail_loggedin' => 'Alamat surel Anda telah dikonfirmasi.', 'confirmemail_error' => 'Terjadi kesalahan sewaktu menyimpan konfirmasi Anda.', 'confirmemail_subject' => 'Konfirmasi alamat surel {{SITENAME}}', 'confirmemail_body' => 'Seseorang, mungkin Anda, dari alamat IP $1, telah mendaftarkan akun "$2" dengan alamat surel ini di {{SITENAME}}. Untuk mengonfirmasikan bahwa akun ini benar dimiliki oleh Anda sekaligus mengaktifkan fitur surel di {{SITENAME}}, ikuti pranala berikut pada penjelajah web Anda: $3 Jika Anda merasa *tidak pernah* mendaftar, jangan ikuti pranala di atas. Klik pada pranala ini untuk membatalkan konfirmasi alamat surel: $5 Kode konfirmasi ini akan kedaluwarsa pada $4.', 'confirmemail_body_changed' => 'Seseorang, mungkin Anda, dari alamat IP $1, telah mengubah surel dari akun "$2" pada alamat ini di {{SITENAME}}. Untuk mengkonfirmasi bahwa akun ini adalah benar milik Anda sekaligus mengaktifkan kembali fitur surel pada {{SITENAME}}, ikuti pranala berikut pada browser Anda: $3 Jika akun ini *bukan* milik Anda, ikuti pranala berikut untuk membatalkan konfirmasi alamat surel: $5 Kode konfirmasi ini akan kedaluwarsa pada $4.', 'confirmemail_body_set' => 'Seseorang, mungkin Anda, dari alamat IP $1, telah mengubah surel dari akun "$2" pada alamat ini di {{SITENAME}}. Untuk mengonfirmasi bahwa akun ini adalah milik Anda sekaligus mengaktifkan kembali fitur surel pada {{SITENAME}}, ikuti pranala berikut pada browser Anda: $3 Jika akun ini *bukan* milik Anda, ikuti pranala berikut untuk membatalkan konfirmasi alamat surel: $5 Kode konfirmasi ini akan kedaluwarsa pada $4.', 'confirmemail_invalidated' => 'Konfirmasi alamat surel dibatalkan', 'invalidateemail' => 'Batalkan konfirmasi surel', # Scary transclusion 'scarytranscludedisabled' => '[Transklusi interwiki dimatikan]', 'scarytranscludefailed' => '[Pengambilan templat $1 gagal]', 'scarytranscludefailed-httpstatus' => '[Pengambilan templat $1 gagal: HTTP $2]', 'scarytranscludetoolong' => '[URL terlalu panjang]', # Delete conflict 'deletedwhileediting' => "'''Peringatan''': Halaman ini telah dihapus setelah Anda mulai melakukan penyuntingan!", 'confirmrecreate' => "Pengguna [[User:$1|$1]] ([[User talk:$1|bicara]]) telah menghapus halaman selagi Anda mulai melakukan penyuntingan dengan alasan: : ''$2'' Silakan konfirmasi jika Anda ingin membuat ulang halaman ini.", 'confirmrecreate-noreason' => 'Pengguna [[User:$1|$1]] ([[User talk:$1|bicara]]) telah menghapus halaman ini setelah Anda mulai menyunting. Harap konfirmasikan bahwa Anda ingin membuat ulang halaman ini.', 'recreate' => 'Buat ulang', 'unit-pixel' => 'px', # action=purge 'confirm_purge_button' => 'OK', 'confirm-purge-top' => 'Hapus singgahan halaman ini?', 'confirm-purge-bottom' => 'Membersihkan halaman akan sekaligus menghapus singgahan dan menampilkan versi halaman terkini.', # action=watch/unwatch 'confirm-watch-button' => 'OK', 'confirm-watch-top' => 'Tambahkan halaman ini ke daftar pantauan Anda?', 'confirm-unwatch-button' => 'OK', 'confirm-unwatch-top' => 'Hapus halaman ini dari daftar pantauan Anda?', # Separators for various lists, etc. 'semicolon-separator' => ';&#32;', 'comma-separator' => ',&#32;', 'colon-separator' => ':&#32;', 'autocomment-prefix' => '-&#32;', 'pipe-separator' => '&#32;|&#32;', 'word-separator' => '&#32;', 'ellipsis' => '...', # Multipage image navigation 'imgmultipageprev' => '&larr; halaman sebelumnya', 'imgmultipagenext' => 'halaman selanjutnya &rarr;', 'imgmultigo' => 'Cari!', 'imgmultigoto' => 'Pergi ke halaman $1', # Table pager 'ascending_abbrev' => 'naik', 'descending_abbrev' => 'turun', 'table_pager_next' => 'Halaman selanjutnya', 'table_pager_prev' => 'Halaman sebelumnya', 'table_pager_first' => 'Halaman pertama', 'table_pager_last' => 'Halaman terakhir', 'table_pager_limit' => 'Tampilkan $1 entri per halaman', 'table_pager_limit_label' => 'Item per halaman:', 'table_pager_limit_submit' => 'Tuju ke', 'table_pager_empty' => 'Tidak ditemukan', # Auto-summaries 'autosumm-blank' => '←Mengosongkan halaman', 'autosumm-replace' => "←Mengganti halaman dengan '$1'", 'autoredircomment' => '←Mengalihkan ke [[$1]]', 'autosumm-new' => "←Membuat halaman berisi '$1'", # Live preview 'livepreview-loading' => 'Mengunggah...', 'livepreview-ready' => 'Memuat… Selesai!', 'livepreview-failed' => 'Pratayang langsung gagal! Coba dengan pratayang normal.', 'livepreview-error' => 'Gagal tersambung: $1 "$2". Coba dengan pratayang normal.', # Friendlier slave lag warnings 'lag-warn-normal' => 'Perubahan yang lebih baru dari $1 {{PLURAL:$1|detik|detik}} mungkin tidak muncul di daftar ini.', 'lag-warn-high' => 'Karenanya besarnya keterlambatan basis data server, perubahan yang lebih baru dari $1 {{PLURAL:$1|detik|detik}} mungkin tidak muncul di daftar ini.', # Watchlist editor 'watchlistedit-numitems' => 'Daftar pantauan Anda berisi {{PLURAL:$1|1 judul|$1 judul}}, tidak termasuk halaman pembicaraan.', 'watchlistedit-noitems' => 'Daftar pantauan Anda kosong.', 'watchlistedit-normal-title' => 'Sunting daftar pantauan', 'watchlistedit-normal-legend' => 'Hapus judul dari daftar pantauan', 'watchlistedit-normal-explain' => 'Judul pada daftar pantauan Anda ditampilkan di bawah ini. Untuk menghapus judul, berikan tanda cek pada kotak di sampingnya, dan klik "{{int:Watchlistedit-normal-submit}}". Anda juga dapat [[Special:EditWatchlist/raw|menyunting daftar mentahnya]].', 'watchlistedit-normal-submit' => 'Hapus judul', 'watchlistedit-normal-done' => '{{PLURAL:$1|satu|$1}} judul telah dihapus dari daftar pantauan Anda:', 'watchlistedit-raw-title' => 'Sunting daftar pantauan mentah', 'watchlistedit-raw-legend' => 'Sunting daftar pantauan mentah', 'watchlistedit-raw-explain' => 'Judul pada daftar pantauan Anda ditampilkan di bawah ini, dan dapat disunting dengan menambahkan atau menghapusnya dari daftar; satu judul pada setiap barisnya. Setelah selesai, klik "{{int:Watchlistedit-raw-submit}}". Anda juga dapat [[Special:EditWatchlist|menggunakan penyunting standar Anda]].', 'watchlistedit-raw-titles' => 'Judul:', 'watchlistedit-raw-submit' => 'Perbarui daftar pantauan', 'watchlistedit-raw-done' => 'Daftar pantauan Anda telah diperbarui.', 'watchlistedit-raw-added' => '{{PLURAL:$1|$1 judul telah}} ditambahkan:', 'watchlistedit-raw-removed' => '{{PLURAL:$1|$1 judul telah}} dikeluarkan:', # Watchlist editing tools 'watchlisttools-view' => 'Tampilkan perubahan terkait', 'watchlisttools-edit' => 'Tampilkan dan sunting daftar pantauan', 'watchlisttools-raw' => 'Sunting daftar pantauan mentah', # Hijri month names 'hijri-calendar-m1' => 'Muharram', 'hijri-calendar-m2' => 'Safar', 'hijri-calendar-m3' => 'Rabiul awal', 'hijri-calendar-m4' => 'Rabiul akhir', 'hijri-calendar-m5' => 'Jumadil awal', 'hijri-calendar-m6' => 'Jumadil akhir', 'hijri-calendar-m7' => 'Rajab', 'hijri-calendar-m8' => "Sya'ban", 'hijri-calendar-m9' => 'Ramadhan', 'hijri-calendar-m10' => 'Syawal', 'hijri-calendar-m11' => 'Dzulkaidah', 'hijri-calendar-m12' => 'Dzulhijjah', # Hebrew month names 'hebrew-calendar-m1' => 'Tisyri', 'hebrew-calendar-m2' => 'Markhesywan', 'hebrew-calendar-m3' => 'Kislew', 'hebrew-calendar-m4' => 'Tebet', 'hebrew-calendar-m5' => 'Syebat', 'hebrew-calendar-m6' => 'Adar', 'hebrew-calendar-m7' => 'Nisan', 'hebrew-calendar-m8' => 'Iyar', 'hebrew-calendar-m9' => 'Siwan', 'hebrew-calendar-m10' => 'Tamus', 'hebrew-calendar-m11' => 'Ab', 'hebrew-calendar-m12' => 'Elul', 'hebrew-calendar-m1-gen' => 'Tisyri', 'hebrew-calendar-m2-gen' => 'Markhesywan', 'hebrew-calendar-m3-gen' => 'Kislew', 'hebrew-calendar-m4-gen' => 'Tebet', 'hebrew-calendar-m5-gen' => 'Syebat', 'hebrew-calendar-m6-gen' => 'Adar', 'hebrew-calendar-m7-gen' => 'Nisan', 'hebrew-calendar-m8-gen' => 'Iyar', 'hebrew-calendar-m9-gen' => 'Siwan', 'hebrew-calendar-m10-gen' => 'Tamus', 'hebrew-calendar-m11-gen' => 'Ab', 'hebrew-calendar-m12-gen' => 'Elul', # Signatures 'signature' => '[[{{ns:user}}:$1|$2]] ([[{{ns:user_talk}}:$1|bicara]])', 'timezone-utc' => 'UTC', # Core parser functions 'unknown_extension_tag' => 'Tag ekstensi tidak dikenal "$1"', 'duplicate-defaultsort' => 'Peringatan: Kunci pengurutan baku "$2" mengabaikan kunci pengurutan baku "$1" sebelumnya.', # Special:Version 'version' => 'Versi', 'version-extensions' => 'Ekstensi terinstal', 'version-specialpages' => 'Halaman istimewa', 'version-parserhooks' => 'Kait parser', 'version-variables' => 'Variabel', 'version-antispam' => 'Pencegahan spam', 'version-skins' => 'Kulit', 'version-api' => 'API', 'version-other' => 'Lain-lain', 'version-mediahandlers' => 'Penanganan media', 'version-hooks' => 'Kait', 'version-extension-functions' => 'Fungsi ekstensi', 'version-parser-extensiontags' => 'Tag ekstensi parser', 'version-parser-function-hooks' => 'Kait fungsi parser', 'version-hook-name' => 'Nama kait', 'version-hook-subscribedby' => 'Dilanggani oleh', 'version-version' => '(Versi $1)', 'version-svn-revision' => '(r$2)', 'version-license' => 'Lisensi', 'version-poweredby-credits' => "Wiki ini didukung oleh '''[//www.mediawiki.org/ MediaWiki]''', hak cipta © 2001-$1 $2.", 'version-poweredby-others' => 'lainnya', 'version-credits-summary' => 'Kami ingin mengakui orang-orang berikut atas kontribusinya terhadap [[Special:Version|MediaWiki]].', 'version-license-info' => 'MediaWiki adalah perangkat lunak bebas; Anda diperbolehkan untuk mendistribusikan dan/atau memodfikasinya dengan persyaratan Lisensi Publik Umum GNU yang diterbitkan oleh Free Software Foundation; versi 2 atau terbaru. MediaWiki didistribusikan dengan harapan dapat digunakan, tetapi TANPA JAMINAN APA PUN; tanpa jaminan PERDAGANGAN atau KECOCOKAN UNTUK TUJUAN TERTENTU. Lihat Lisensi Publik Umum GNU untuk informasi lebih lanjut. Anda seharusnya telah menerima [{{SERVER}}{{SCRIPTPATH}}/COPYING salinan Lisensi Publik Umum GNU] bersama dengan program ini; jika tidak, kirim surat ke Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA atau [//www.gnu.org/licenses/old-licenses/gpl-2.0.html baca daring].', 'version-software' => 'Perangkat lunak terinstal', 'version-software-product' => 'Produk', 'version-software-version' => 'Versi', 'version-entrypoints' => 'URL titik entri', 'version-entrypoints-header-entrypoint' => 'Titik entri', 'version-entrypoints-header-url' => 'URL', 'version-entrypoints-articlepath' => '[https://www.mediawiki.org/wiki/Manual:$wgArticlePath Artikel path]', 'version-entrypoints-scriptpath' => '[https://www.mediawiki.org/wiki/Manual:$wgScriptPath Skrip path]', # Special:Redirect 'redirect' => 'Pengalihan oleh berkas, pengguna atau ID revisi', 'redirect-legend' => 'Pengalihan ke sebuah berkas atau halaman', 'redirect-submit' => 'Lanjut', # Special:FileDuplicateSearch 'fileduplicatesearch' => 'Pencarian berkas duplikat', 'fileduplicatesearch-summary' => 'Pencarian duplikat berkas berdasarkan nilai hash-nya.', 'fileduplicatesearch-legend' => 'Cari duplikat', 'fileduplicatesearch-filename' => 'Nama berkas:', 'fileduplicatesearch-submit' => 'Cari', 'fileduplicatesearch-info' => '$1 × $2 piksel<br />Besar berkas: $3<br />Tipe MIME: $4', 'fileduplicatesearch-result-1' => 'Berkas "$1" tidak memiliki duplikat identik.', 'fileduplicatesearch-result-n' => 'Berkas "$1" memiliki {{PLURAL:$2|$2 duplikat identik}}.', 'fileduplicatesearch-noresults' => 'Tidak ditemukan berkas dengan nama "$1".', # Special:SpecialPages 'specialpages' => 'Halaman istimewa', 'specialpages-note' => '---- * Halaman istimewa normal. * <span class="mw-specialpagerestricted">Halaman istimewa terlarang.</span> * <span class="mw-specialpagecached">Halaman istimewa tersinggah (mungkin usang).</span>', 'specialpages-group-maintenance' => 'Laporan pemeliharaan', 'specialpages-group-other' => 'Lain-lain', 'specialpages-group-login' => 'Masuk log / mendaftar', 'specialpages-group-changes' => 'Perubahan terbaru dan log', 'specialpages-group-media' => 'Laporan dan pemuatan berkas', 'specialpages-group-users' => 'Pengguna dan hak pengguna', 'specialpages-group-highuse' => 'Frekuensi tinggi', 'specialpages-group-pages' => 'Daftar halaman', 'specialpages-group-pagetools' => 'Peralatan halaman', 'specialpages-group-wiki' => 'Data dan peralatan', 'specialpages-group-redirects' => 'Pencarian dan pengalihan', 'specialpages-group-spam' => 'Peralatan spam', # Special:BlankPage 'blankpage' => 'Halaman kosong', 'intentionallyblankpage' => 'Halaman ini sengaja dibiarkan kosong dan digunakan di antaranya untuk pengukuran kinerja, dan lain-lain.', # External image whitelist 'external_image_whitelist' => '#Biarkan baris ini sebagaimana adanya<pre> #Gunakan fragmen-fragmen ekspresi regular (hanya bagian di antara //) di bawah ini #Fragmen-fragmen ini akan dicocokkan dengan URL dari gambar-gambar eksternal (yang dihubungkan langsung) #Fragmen yang cocok akan ditampilkan sebagai gambar, sisanya hanya sebagai pranala saja #Baris yang diawali dengan # akan diperlakukan sebagai baris komentar #Ini tidak membedakan huruf besar dan kecil #Letakkan semua fragmen ekspresi regular di bawah baris ini. Biarkan baris ini sebagaimana adanya</pre>', # Special:Tags 'tags' => 'Tag perubahan yang valid', 'tag-filter' => 'Filter [[Special:Tags|tag]]:', 'tag-filter-submit' => 'Penyaring', 'tags-title' => 'Tanda', 'tags-intro' => 'Halaman ini berisi daftar tag yang dapat ditandai oleh perangkat lunak terhadap suatu suntingan berikut artinya.', 'tags-tag' => 'Nama tag', 'tags-display-header' => 'Tampilan di daftar perubahan', 'tags-description-header' => 'Deskripsi lengkap atau makna', 'tags-hitcount-header' => 'Perubahan bertag', 'tags-edit' => 'sunting', 'tags-hitcount' => '$1 {{PLURAL:$1|perubahan|perubahan}}', # Special:ComparePages 'comparepages' => 'Bandingkan halaman', 'compare-selector' => 'Bandingkan revisi halaman', 'compare-page1' => 'Halaman 1', 'compare-page2' => 'Halaman 2', 'compare-rev1' => 'Revisi 1', 'compare-rev2' => 'Revisi 2', 'compare-submit' => 'Bandingkan', 'compare-invalid-title' => 'Judul yang Anda berikan tidak sah.', 'compare-title-not-exists' => 'Judul yang Anda minta tidak ada.', 'compare-revision-not-exists' => 'Revisi yang Anda minta tidak ada.', # Database error messages 'dberr-header' => 'Wiki ini bermasalah', 'dberr-problems' => 'Maaf! Situs ini mengalami masalah teknis.', 'dberr-again' => 'Cobalah menunggu beberapa menit dan muat ulang.', 'dberr-info' => '(Tak dapat tersambung dengan server basis data: $1)', 'dberr-usegoogle' => 'Anda dapat mencoba pencarian melalui Google untuk sementara waktu.', 'dberr-outofdate' => 'Harap diperhatikan bahwa indeks mereka terhadap isi kami mungkin sudah kedaluwarsa.', 'dberr-cachederror' => 'Berikut adalah salinan tersimpan halaman yang diminta, dan mungkin bukan yang terbaru.', # HTML forms 'htmlform-invalid-input' => 'Ada kesalahan dalam beberapa input Anda', 'htmlform-select-badoption' => 'Nilai yang Anda masukkan tidak sah', 'htmlform-int-invalid' => 'Nilai yang Anda masukkan bukan integer.', 'htmlform-float-invalid' => 'Yang Anda masukkan bukan merupakan angka.', 'htmlform-int-toolow' => 'Nilai yang Anda masukkan terlalu rendah di bawah nilai minimum $1', 'htmlform-int-toohigh' => 'Nilai yang Anda masukkan melebihi nilai maksimum $1', 'htmlform-required' => 'Nilai ini diperlukan', 'htmlform-submit' => 'Kirim', 'htmlform-reset' => 'Balikkan perubahan', 'htmlform-selectorother-other' => 'Lain-lain', 'htmlform-no' => 'Tidak', 'htmlform-yes' => 'Ya', 'htmlform-chosen-placeholder' => 'Pilih opsi', # SQLite database support 'sqlite-has-fts' => '$1 dengan dukungan pencarian teks lengkap', 'sqlite-no-fts' => '$1 tanpa dukungan pencarian teks lengkap', # New logging system 'logentry-delete-delete' => '$1 {{GENDER:$2|menghapus}} halaman $3', 'logentry-delete-restore' => '$1 {{GENDER:$2|mengembalikan}} halaman $3', 'logentry-delete-event' => '$1 {{GENDER:$2|mengubah}} tampilan {{PLURAL:$5|$5 log peristiwa}} di $3: $4', 'logentry-delete-revision' => '$1 {{GENDER:$2|mengubah}} tampilan {{PLURAL:$5|$5 revisi}} di halaman $3: $4', 'logentry-delete-event-legacy' => '$1 {{GENDER:$2|mengubah}} tampilan log peristiwa pada $3', 'logentry-delete-revision-legacy' => '$1 {{GENDER:$2|mengubah}} tampilan revisi pada halaman $3', 'logentry-suppress-delete' => '$1 {{GENDER:$2|menimpa}} halaman $3', 'logentry-suppress-event' => '$1 secara diam-diam {{GENDER:$2|mengubah}} tampilan {{PLURAL:$5|$5 log peristiwa}} di $3: $4', 'logentry-suppress-revision' => '$1 diam-diam {{GENDER:$2|mengubah}} tampilan {{PLURAL:$5|$5 revisi}} di halaman $3: $4', 'logentry-suppress-event-legacy' => '$1 diam-diam {{GENDER:$2|mengubah}} tampilan log peristiwa pada $3', 'logentry-suppress-revision-legacy' => '$1 diam-diam {{GENDER:$2|mengubah}} tampilan revisi pada halaman $3', 'revdelete-content-hid' => 'konten disembunyikan', 'revdelete-summary-hid' => 'ringkasan suntingan disembunyikan', 'revdelete-uname-hid' => 'nama pengguna disembunyikan', 'revdelete-content-unhid' => 'konten tidak disembunyikan', 'revdelete-summary-unhid' => 'ringkasan suntingan tidak disembunyikan', 'revdelete-uname-unhid' => 'nama pengguna tidak disembunyikan', 'revdelete-restricted' => 'akses telah dibatasi untuk opsis', 'revdelete-unrestricted' => 'pembatasan akses opsis dihapuskan', 'logentry-move-move' => '$1 {{GENDER:$2|memindahkan}} halaman $3 ke $4', 'logentry-move-move-noredirect' => '$1 {{GENDER:$2|memindahkan}} halaman $3 ke $4 tanpa membuat pengalihan', 'logentry-move-move_redir' => '$1 {{GENDER:$2|memindahkan}} halaman $3 ke $4 menimpa pengalihan lama', 'logentry-move-move_redir-noredirect' => '$1 {{GENDER:$2|memindahkan}} halaman $3 ke $4 menimpa pengalihan lama tanpa membuat pengalihan', 'logentry-patrol-patrol' => '$1 {{GENDER:$2|menandai}} revisi $4 dari halaman $3 terpatroli', 'logentry-patrol-patrol-auto' => '$1 otomatis {{GENDER:$2|menandai}} revisi $4 dari halaman $3 terpatroli', 'logentry-newusers-newusers' => 'Akun pengguna $1 telah {{GENDER:$2|dibuat}}', 'logentry-newusers-create' => '$1 {{GENDER:$2|membuat}} akun pengguna', 'logentry-newusers-create2' => '$1 {{GENDER:$2|membuat}} akun pengguna $3', 'logentry-newusers-byemail' => 'Akun pengguna $3 {{GENDER:$2|dibuat}} oleh $1 dan password dikirim melalui surel', 'logentry-newusers-autocreate' => 'Akun $1 {{GENDER:$2|dibuat}} secara otomatis', 'logentry-rights-rights' => '$1 {{GENDER:$2|mengubah}} keanggotaan grup $3 dari $4 menjadi $5', 'logentry-rights-rights-legacy' => '$1 {{GENDER:$2|mengubah}} keanggotaan grup $3', 'logentry-rights-autopromote' => '$1 secara otomatis {{GENDER:$2|dipromosikan}} dari $4 menjadi $5', 'rightsnone' => '(tidak ada)', # Feedback 'feedback-bugornote' => 'Jika Anda sudah siap untuk mendeskripsikan masalah teknis secara rinci silakan [$1 melaporkan bug]. Jika tidak, Anda dapat menggunakan formulir mudah di bawah ini. Komentar Anda akan ditambahkan ke halaman "[$3 $2]", bersama dengan nama pengguna Anda dan apa browser yang Anda gunakan.', 'feedback-subject' => 'Perihal:', 'feedback-message' => 'Pesan:', 'feedback-cancel' => 'Batal', 'feedback-submit' => 'Kirim Umpan Balik', 'feedback-adding' => 'Menambahkan umpan balik ke halaman...', 'feedback-error1' => 'Galat: Hasil tidak dikenal dari API', 'feedback-error2' => 'Galat: Penyuntingan gagal', 'feedback-error3' => 'Error: API tidak merespons', 'feedback-thanks' => 'Terima kasih! Umpan balik Anda telah diposting ke halaman "[$2 $1]".', 'feedback-close' => 'Selesai', 'feedback-bugcheck' => 'Hebat! Hanya periksa bahwa itu bukan satu di antara [$1 bug yang telah dikenal].', 'feedback-bugnew' => 'Saya telah memeriksa. Laporkan bug baru', # Search suggestions 'searchsuggest-search' => 'Cari', 'searchsuggest-containing' => 'isian ...', # API errors 'api-error-badaccess-groups' => 'Anda tidak diizinkan mengunggah berkas ke wiki ini.', 'api-error-badtoken' => 'Kesalahan internal: token buruk.', 'api-error-copyuploaddisabled' => 'Mengunggah melalui URL dilarang pada peladen ini.', 'api-error-duplicate' => 'Sudah ada {{PLURAL:$1|[$2 berkas lain]|[$2 berkas lain]}} dengan konten yang sama di situs ini', 'api-error-duplicate-archive' => 'Ada {{PLURAL:$1|[$2 berkas]|[$2 berkas]}} lain di situs dengan konten yang sama, namun {{PLURAL:$1|berkas|berkas-berkas}} itu telah dihapus.', 'api-error-duplicate-archive-popup-title' => '{{PLURAL:$1|Berkas|Berkas-berkas}} duplikat yang telah dihapus', 'api-error-duplicate-popup-title' => '{{PLURAL:$1|Berkas|Berkas}} duplikat', 'api-error-empty-file' => 'Berkas yang Anda kirim kosong.', 'api-error-emptypage' => 'Pembuatan halaman baru yang kosong tidak diizinkan.', 'api-error-fetchfileerror' => 'Kesalahan internal: terjadi kesalahan saat memperoleh berkas ini.', 'api-error-fileexists-forbidden' => 'Berkas dengan nama "$1" sudah ada dan tidak bisa ditimpa.', 'api-error-fileexists-shared-forbidden' => 'Berkas dengan nama "$1" sudah ada di penyimpanan file berbagi dan tidak bisa ditimpa.', 'api-error-file-too-large' => 'Berkas yang Anda kirim terlalu besar.', 'api-error-filename-tooshort' => 'Nama berkas terlalu pendek.', 'api-error-filetype-banned' => 'Jenis berkas ini dilarang.', 'api-error-filetype-banned-type' => '$1 {{PLURAL:$4|bukan ekstensi berkas yang diizinkan|bukan ekstensi berkas yang diizinkan}}. {{PLURAL:$3|Jenis berkas yang diizinkan adalah|Jenis berkas yang diizinkan adalah}} $2.', 'api-error-filetype-missing' => 'Berkas tidak memiliki ekstensi.', 'api-error-hookaborted' => 'Modifikasi yang Anda coba lakukan dibatalkan oleh suatu kaitan ekstensi.', 'api-error-http' => 'Kesalahan internal: tidak dapat menghubungkan ke peladen.', 'api-error-illegal-filename' => 'Nama berkas tidak diperbolehkan.', 'api-error-internal-error' => 'Kesalahan internal: terjadi masalah saat memproses unggahan Anda ke wiki ini.', 'api-error-invalid-file-key' => 'Kesalahan internal: berkas tidak ditemukan di penyimpanan sementara.', 'api-error-missingparam' => 'Kesalahan internal: parameter permintaan hilang.', 'api-error-missingresult' => 'Kesalahan internal: tidak dapat menentukan apakah penyalinan berhasil.', 'api-error-mustbeloggedin' => 'Anda harus masuk log untuk mengunggah berkas.', 'api-error-mustbeposted' => 'Ada bug dalam perangkat lunak ini; tidak menggunakan metode HTTP yang tepat.', 'api-error-noimageinfo' => 'Pengunggahan berhasil, tetapi peladen tidak memberikan informasi apa pun tentang berkas.', 'api-error-nomodule' => 'Kesalahan internal: tidak ada modul unggahan yang ditetapkan.', 'api-error-ok-but-empty' => 'Kesalahan internal: tidak ada tanggapan dari peladen.', 'api-error-overwrite' => 'Tidak diizinkan untuk menimpa berkas yang sudah ada.', 'api-error-stashfailed' => 'Kesalahan internal: server gagal menyimpan berkas sementara.', 'api-error-publishfailed' => 'Kesalahan internal: server gagal menyimpan berkas sementara.', 'api-error-timeout' => 'Peladen tidak merespons dalam waktu yang diharapkan.', 'api-error-unclassified' => 'Terjadi galat yang tidak diketahui', 'api-error-unknown-code' => 'Kesalahan tidak dikenal: "$1"', 'api-error-unknown-error' => 'Kesalahan internal: terjadi kesalahan saat mencoba mengunggah berkas Anda.', 'api-error-unknown-warning' => 'Peringatan tidak dikenal: $1', 'api-error-unknownerror' => 'Kesalahan tidak dikenal: "$1"', 'api-error-uploaddisabled' => 'Pengunggahan dinonaktifkan di wiki ini.', 'api-error-verification-error' => 'Berkas ini mungkin rusak atau memiliki ekstensi yang salah.', # Durations 'duration-seconds' => '{{PLURAL:$1||}}$1 detik', 'duration-minutes' => '{{PLURAL:$1||}}$1 menit', 'duration-hours' => '{{PLURAL:$1||}}$1 jam', 'duration-days' => '{{PLURAL:$1||}}$1 hari', 'duration-weeks' => '{{PLURAL: $1||}}$1 minggu', 'duration-years' => '{{PLURAL: $1||}}$1 tahun', 'duration-decades' => '{{PLURAL:$1||}}$1 dekade', 'duration-centuries' => '{{PLURAL:$1||}}$1 abad', 'duration-millennia' => '{{PLURAL:$1||}}$1 milenium', # Image rotation 'rotate-comment' => 'Gambar diputar $1 {{PLURAL:$1|derajat}} searah jarum jam', );
worden-lee/mediawiki-core
languages/messages/MessagesId.php
PHP
gpl-2.0
254,780
UPDATE `#__cck_core_fields` SET `selectlabel` = 'Auto' WHERE `name` = "core_orientation_vertical"; UPDATE `#__cck_core_search_field` SET `link_options` = REPLACE( `link_options`, '"form_edition":"1"', '"form_edition":"0"' ) WHERE `link` = 'cck_form' AND `link_options` LIKE '{"form":%' AND `link_options` NOT LIKE '{"form":""%'; UPDATE `#__cck_core_type_field` SET `link_options` = REPLACE( `link_options`, '"form_edition":"1"', '"form_edition":"0"' ) WHERE `link` = 'cck_form' AND `link_options` LIKE '{"form":%' AND `link_options` NOT LIKE '{"form":""%'; UPDATE `#__cck_core_fields` SET `options2` = REPLACE( `options2`, '\\\"form_edition\\\":\\\"1\\\"', '\\\"form_edition\\\":\\\"0\\\"' ) WHERE `type` = "button_free" AND `options2` LIKE '%\\\"button_link\\\":\\\"cck_form\\\"%' AND `options2` NOT LIKE '\\\"form\\\":\\\"\\\"%';
Octopoos/SEBLOD
administrator/components/com_cck/install/upgrades/3.20.0.sql
SQL
gpl-2.0
840
package com.nvisium.androidnv.api; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.SpringApplicationConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = AndroidNvApiApplication.class) @WebAppConfiguration public class AndroidNvApiApplicationTests { @Test public void contextLoads() { } }
nVisium/MoneyX
src/test/java/com/nvisium/androidnv/api/AndroidNvApiApplicationTests.java
Java
gpl-2.0
521
cmd_arch/arm/lib/backtrace.o := /home/robin/toolchain/bin/arm-none-eabi-gcc -Wp,-MD,arch/arm/lib/.backtrace.o.d -nostdinc -isystem /home/robin/toolchain/bin/../lib/gcc/arm-none-eabi/4.6.1/include -I/home/robin/android/CM7_kernel_TA/arch/arm/include -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -D__ASSEMBLY__ -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -include asm/unified.h -mfpu=vfp -mtune=arm1136jf-s -c -o arch/arm/lib/backtrace.o arch/arm/lib/backtrace.S deps_arch/arm/lib/backtrace.o := \ arch/arm/lib/backtrace.S \ $(wildcard include/config/cpu.h) \ $(wildcard include/config/frame/pointer.h) \ $(wildcard include/config/printk.h) \ /home/robin/android/CM7_kernel_TA/arch/arm/include/asm/unified.h \ $(wildcard include/config/arm/asm/unified.h) \ $(wildcard include/config/thumb2/kernel.h) \ include/linux/linkage.h \ include/linux/compiler.h \ $(wildcard include/config/trace/branch/profiling.h) \ $(wildcard include/config/profile/all/branches.h) \ $(wildcard include/config/enable/must/check.h) \ $(wildcard include/config/enable/warn/deprecated.h) \ /home/robin/android/CM7_kernel_TA/arch/arm/include/asm/linkage.h \ /home/robin/android/CM7_kernel_TA/arch/arm/include/asm/assembler.h \ $(wildcard include/config/cpu/feroceon.h) \ $(wildcard include/config/trace/irqflags.h) \ $(wildcard include/config/smp.h) \ /home/robin/android/CM7_kernel_TA/arch/arm/include/asm/ptrace.h \ $(wildcard include/config/cpu/endian/be8.h) \ $(wildcard include/config/arm/thumb.h) \ /home/robin/android/CM7_kernel_TA/arch/arm/include/asm/hwcap.h \ arch/arm/lib/backtrace.o: $(deps_arch/arm/lib/backtrace.o) $(deps_arch/arm/lib/backtrace.o):
spacecaker/CM7_Space_Kernel_Cooper
arch/arm/lib/.backtrace.o.cmd
Batchfile
gpl-2.0
1,828
/*! * Bootstrap v3.0.0 * * Copyright 2013 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by @mdo and @fat. */ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, video { display: inline-block; } audio:not([controls]) { display: none; height:height: 0; } [hidden] { display: none; } html { font-smooth:always; -webkit-font-smoothing: antialiased; font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { margin: 0; } .navbar-static-top { margin-bottom: 19px; } a { text-decoration:none; } a:focus { outline: thin dotted; } a:active, a:hover { text-decoration:none; outline: 0; } h1 { margin: 0.67em 0; font-size: 2em; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } hr { height: 0; -moz-box-sizing: content-box; box-sizing: content-box; } mark { color: #000; background: #ff0; } code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; } pre { white-space: pre-wrap; } q { quotes: "\201C" "\201D" "\2018" "\2019"; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 0; } fieldset { padding: 0.35em 0.625em 0.75em; margin: 0 2px; border: 1px solid #c0c0c0; } legend { padding: 0; border: 0; } button, input, select, textarea { margin: 0; font-family: inherit; font-size: 100%; } button, input { line-height: normal; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } button[disabled], html input[disabled] { cursor: default; } input[type="checkbox"], input[type="radio"] { padding: 0; box-sizing: border-box; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } textarea { overflow: auto; vertical-align: top; } table { border-collapse: collapse; border-spacing: 0; } @media print { * { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 2cm .5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .table td, .table th { background-color: #fff !important; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.428571429; color: #333333; background-color: #aaaaaa; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } button, input, select[multiple], textarea { background-image: none; } a { color: #FfFfFf; text-decoration: none; } a:hover, a:focus { color: #ffb53d; text-decoration: underline; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } img { vertical-align: middle; } .img-responsive { display: block; height: auto; max-width: 100%; } .img-rounded { border-radius: 6px; } .img-thumbnail { display: inline-block; height: auto; max-width: 100%; padding: 4px; line-height: 1.428571429; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16.099999999999998px; font-weight: 200; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small { font-size: 85%; } cite { font-style: normal; } .text-muted { color: #999999; } .text-primary { color: #FfFfFf; } .text-warning { color: #c09853; } .text-danger { color: #b94a48; } .text-success { color: #468847; } .text-info { color: #3a87ad; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small { font-weight: normal; line-height: 1; color: #999999; } h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; } h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } h1 small, .h1 small { font-size: 24px; } h2 small, .h2 small { font-size: 18px; } h3 small, .h3 small, h4 small, .h4 small { font-size: 14px; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline > li { display: inline-block; padding-right: 5px; padding-left: 5px; } dl { margin-bottom: 20px; } dt, dd { line-height: 1.428571429; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; border-left: 5px solid #eeeeee; } blockquote p { font-size: 17.5px; font-weight: 300; line-height: 1.25; } blockquote p:last-child { margin-bottom: 0; } blockquote small { display: block; line-height: 1.428571429; color: #999999; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 20px; font-style: normal; line-height: 1.428571429; } code, pre { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; white-space: nowrap; background-color: #f9f2f4; border-radius: 4px; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.428571429; color: #333333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre.prettyprint { margin-bottom: 20px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .row { margin-right: -15px; margin-left: -15px; } .col-lg-4 a:active, a:hover { text-decoration:none; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11 { float: left; } .col-xs-1 { width: 8.333333333333332%; } .col-xs-2 { width: 16.666666666666664%; } .col-xs-3 { width: 25%; } .col-xs-4 { width: 33.33333333333333%; } .col-xs-5 { width: 41.66666666666667%; } .col-xs-6 { width: 50%; } .col-xs-7 { width: 58.333333333333336%; } .col-xs-8 { width: 66.66666666666666%; } .col-xs-9 { width: 75%; } .col-xs-10 { width: 83.33333333333334%; } .col-xs-11 { width: 91.66666666666666%; } .col-xs-12 { width: 100%; } @media (min-width: 768px) { .container { max-width: 750px; } .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11 { float: left; } .col-sm-1 { width: 8.333333333333332%; } .col-sm-2 { width: 16.666666666666664%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333333333333%; } .col-sm-5 { width: 41.66666666666667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.333333333333336%; } .col-sm-8 { width: 66.66666666666666%; } .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333333333334%; } .col-sm-11 { width: 91.66666666666666%; } .col-sm-12 { width: 100%; } .col-sm-push-1 { left: 8.333333333333332%; } .col-sm-push-2 { left: 16.666666666666664%; } .col-sm-push-3 { left: 25%; } .col-sm-push-4 { left: 33.33333333333333%; } .col-sm-push-5 { left: 41.66666666666667%; } .col-sm-push-6 { left: 50%; } .col-sm-push-7 { left: 58.333333333333336%; } .col-sm-push-8 { left: 66.66666666666666%; } .col-sm-push-9 { left: 75%; } .col-sm-push-10 { left: 83.33333333333334%; } .col-sm-push-11 { left: 91.66666666666666%; } .col-sm-pull-1 { right: 8.333333333333332%; } .col-sm-pull-2 { right: 16.666666666666664%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-4 { right: 33.33333333333333%; } .col-sm-pull-5 { right: 41.66666666666667%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-7 { right: 58.333333333333336%; } .col-sm-pull-8 { right: 66.66666666666666%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-10 { right: 83.33333333333334%; } .col-sm-pull-11 { right: 91.66666666666666%; } .col-sm-offset-1 { margin-left: 8.333333333333332%; } .col-sm-offset-2 { margin-left: 16.666666666666664%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-4 { margin-left: 33.33333333333333%; } .col-sm-offset-5 { margin-left: 41.66666666666667%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-7 { margin-left: 58.333333333333336%; } .col-sm-offset-8 { margin-left: 66.66666666666666%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-10 { margin-left: 83.33333333333334%; } .col-sm-offset-11 { margin-left: 91.66666666666666%; } } @media (min-width: 992px) { .container { max-width: 970px; } .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 { float: left; } .col-md-1 { width: 8.333333333333332%; } .col-md-2 { width: 16.666666666666664%; } .col-md-3 { width: 25%; } .col-md-4 { width: 33.33333333333333%; } .col-md-5 { width: 41.66666666666667%; } .col-md-6 { width: 50%; } .col-md-7 { width: 58.333333333333336%; } .col-md-8 { width: 66.66666666666666%; } .col-md-9 { width: 75%; } .col-md-10 { width: 83.33333333333334%; } .col-md-11 { width: 91.66666666666666%; } .col-md-12 { width: 100%; } .col-md-push-0 { left: auto; } .col-md-push-1 { left: 8.333333333333332%; } .col-md-push-2 { left: 16.666666666666664%; } .col-md-push-3 { left: 25%; } .col-md-push-4 { left: 33.33333333333333%; } .col-md-push-5 { left: 41.66666666666667%; } .col-md-push-6 { left: 50%; } .col-md-push-7 { left: 58.333333333333336%; } .col-md-push-8 { left: 66.66666666666666%; } .col-md-push-9 { left: 75%; } .col-md-push-10 { left: 83.33333333333334%; } .col-md-push-11 { left: 91.66666666666666%; } .col-md-pull-0 { right: auto; } .col-md-pull-1 { right: 8.333333333333332%; } .col-md-pull-2 { right: 16.666666666666664%; } .col-md-pull-3 { right: 25%; } .col-md-pull-4 { right: 33.33333333333333%; } .col-md-pull-5 { right: 41.66666666666667%; } .col-md-pull-6 { right: 50%; } .col-md-pull-7 { right: 58.333333333333336%; } .col-md-pull-8 { right: 66.66666666666666%; } .col-md-pull-9 { right: 75%; } .col-md-pull-10 { right: 83.33333333333334%; } .col-md-pull-11 { right: 91.66666666666666%; } .col-md-offset-0 { margin-left: 0; } .col-md-offset-1 { margin-left: 8.333333333333332%; } .col-md-offset-2 { margin-left: 16.666666666666664%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-4 { margin-left: 33.33333333333333%; } .col-md-offset-5 { margin-left: 41.66666666666667%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-7 { margin-left: 58.333333333333336%; } .col-md-offset-8 { margin-left: 66.66666666666666%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-10 { margin-left: 83.33333333333334%; } .col-md-offset-11 { margin-left: 91.66666666666666%; } } @media (min-width: 1200px) { .container { max-width: 1170px; } .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 { float: left; } .col-lg-1 { width: 8.333333333333332%; } .col-lg-2 { width: 16.666666666666664%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333333333333%; } .col-lg-5 { width: 41.66666666666667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.333333333333336%; } .col-lg-8 { width: 66.66666666666666%; } .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333333333334%; } .col-lg-11 { width: 91.66666666666666%; } .col-lg-12 { width: 100%; } .col-lg-push-0 { left: auto; } .col-lg-push-1 { left: 8.333333333333332%; } .col-lg-push-2 { left: 16.666666666666664%; } .col-lg-push-3 { left: 25%; } .col-lg-push-4 { left: 33.33333333333333%; } .col-lg-push-5 { left: 41.66666666666667%; } .col-lg-push-6 { left: 50%; } .col-lg-push-7 { left: 58.333333333333336%; } .col-lg-push-8 { left: 66.66666666666666%; } .col-lg-push-9 { left: 75%; } .col-lg-push-10 { left: 83.33333333333334%; } .col-lg-push-11 { left: 91.66666666666666%; } .col-lg-pull-0 { right: auto; } .col-lg-pull-1 { right: 8.333333333333332%; } .col-lg-pull-2 { right: 16.666666666666664%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-4 { right: 33.33333333333333%; } .col-lg-pull-5 { right: 41.66666666666667%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-7 { right: 58.333333333333336%; } .col-lg-pull-8 { right: 66.66666666666666%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-10 { right: 83.33333333333334%; } .col-lg-pull-11 { right: 91.66666666666666%; } .col-lg-offset-0 { margin-left: 0; } .col-lg-offset-1 { margin-left: 8.333333333333332%; } .col-lg-offset-2 { margin-left: 16.666666666666664%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-4 { margin-left: 33.33333333333333%; } .col-lg-offset-5 { margin-left: 41.66666666666667%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-7 { margin-left: 58.333333333333336%; } .col-lg-offset-8 { margin-left: 66.66666666666666%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-10 { margin-left: 83.33333333333334%; } .col-lg-offset-11 { margin-left: 91.66666666666666%; } } table { max-width: 100%; background-color: transparent; } th { text-align: left; } .table { width: 100%; margin-bottom: 20px; } .table thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th, .table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td { padding: 8px; line-height: 1.428571429; vertical-align: top; border-top: 1px solid #dddddd; } .table thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #dddddd; } .table caption + thead tr:first-child th, .table colgroup + thead tr:first-child th, .table thead:first-child tr:first-child th, .table caption + thead tr:first-child td, .table colgroup + thead tr:first-child td, .table thead:first-child tr:first-child td { border-top: 0; } .table tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #ffffff; } .table-condensed thead > tr > th, .table-condensed tbody > tr > th, .table-condensed tfoot > tr > th, .table-condensed thead > tr > td, .table-condensed tbody > tr > td, .table-condensed tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #f5f5f5; } table col[class*="col-"] { display: table-column; float: none; } table td[class*="col-"], table th[class*="col-"] { display: table-cell; float: none; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; border-color: #d6e9c6; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td { background-color: #d0e9c6; border-color: #c9e2b3; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; border-color: #eed3d7; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td { background-color: #ebcccc; border-color: #e6c1c7; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; border-color: #fbeed5; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td { background-color: #faf2cc; border-color: #f8e5be; } @media (max-width: 768px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-x: scroll; overflow-y: hidden; border: 1px solid #dddddd; } .table-responsive > .table { margin-bottom: 0; background-color: #fff; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > thead > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > thead > tr:last-child > td, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } select[multiple], select[size] { height: auto; } select optgroup { font-family: inherit; font-size: inherit; font-style: inherit; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { height: auto; } .form-control:-moz-placeholder { color: #999999; } .form-control::-moz-placeholder { color: #999999; } .form-control:-ms-input-placeholder { color: #999999; } .form-control::-webkit-input-placeholder { color: #999999; } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.428571429; color: #555555; vertical-align: middle; background-color: #ffffff; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #eeeeee; } textarea.form-control { height: auto; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 20px; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; vertical-align: middle; } .radio label, .checkbox label { display: inline; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: normal; vertical-align: middle; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], .radio[disabled], .radio-inline[disabled], .checkbox[disabled], .checkbox-inline[disabled], fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"], fieldset[disabled] .radio, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm { height: auto; } .input-lg { height: 45px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-lg { height: 45px; line-height: 45px; } textarea.input-lg { height: auto; } .has-warning .help-block, .has-warning .control-label { color: #c09853; } .has-warning .form-control { border-color: #c09853; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #a47e3c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; } .has-warning .input-group-addon { color: #c09853; background-color: #fcf8e3; border-color: #c09853; } .has-error .help-block, .has-error .control-label { color: #b94a48; } .has-error .form-control { border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #953b39; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; } .has-error .input-group-addon { color: #b94a48; background-color: #f2dede; border-color: #b94a48; } .has-success .help-block, .has-success .control-label { color: #468847; } .has-success .form-control { border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #356635; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; } .has-success .input-group-addon { color: #468847; background-color: #dff0d8; border-color: #468847; } .form-control-static { padding-top: 7px; margin-bottom: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; } .form-inline .radio, .form-inline .checkbox { display: inline-block; padding-left: 0; margin-top: 0; margin-bottom: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: none; margin-left: 0; } } .form-horizontal .control-label, .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { padding-top: 7px; margin-top: 0; margin-bottom: 0; } .form-horizontal .form-group { margin-right: -15px; margin-left: -15px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .btn { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: normal; line-height: 1.428571429; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus { color: #333333; text-decoration: none; } .btn:active, .btn.active { background-image: none; outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { pointer-events: none; cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } .btn-default { color: #333333; background-color: #ffffff; border-color: #cccccc; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { color: #333333; background-color: #ebebeb; border-color: #adadad; } .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #ffffff; border-color: #cccccc; } .btn-primary { color: #ffffff; background-color: #FfFfFf; border-color: #357ebd; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #ffffff; background-color: #3276b1; border-color: #285e8e; } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #FfFfFf; border-color: #357ebd; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #ffffff; background-color: #ed9c28; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f0ad4e; border-color: #eea236; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #ffffff; background-color: #d2322d; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #d9534f; border-color: #d43f3a; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #ffffff; background-color: #47a447; border-color: #398439; } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #5cb85c; border-color: #4cae4c; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #ffffff; background-color: #39b3d7; border-color: #269abc; } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #46b8da; } .btn-link { font-weight: normal; color: #FfFfFf; cursor: pointer; border-radius: 0; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #2a6496; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #999999; text-decoration: none; } .btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .btn-sm, .btn-xs { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs { padding: 1px 5px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; transition: height 0.35s ease; } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; -webkit-font-smoothing: antialiased; font-style: normal; font-weight: normal; line-height: 1; } .glyphicon-asterisk:before { content: "\2a"; } .glyphicon-plus:before { content: "\2b"; } .glyphicon-euro:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .glyphicon-briefcase:before { content: "\1f4bc"; } .glyphicon-calendar:before { content: "\1f4c5"; } .glyphicon-pushpin:before { content: "\1f4cc"; } .glyphicon-paperclip:before { content: "\1f4ce"; } .glyphicon-camera:before { content: "\1f4f7"; } .glyphicon-lock:before { content: "\1f512"; } .glyphicon-bell:before { content: "\1f514"; } .glyphicon-bookmark:before { content: "\1f516"; } .glyphicon-fire:before { content: "\1f525"; } .glyphicon-wrench:before { content: "\1f527"; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid #000000; border-right: 4px solid transparent; border-bottom: 0 dotted; border-left: 4px solid transparent; content: ""; } .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 14px; list-style: none; background-color: #000000; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #000000; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.428571429; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #ffffff; text-decoration: none; background-color: #000000; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #000000; outline: 0; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #999999; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.428571429; color: #999999; } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0 dotted; border-bottom: 4px solid #000000; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { right: 0; left: auto; } } .btn-default .caret { border-top-color: #333333; } .btn-primary .caret, .btn-success .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret { border-top-color: #fff; } .dropup .btn-default .caret { border-bottom-color: #333333; } .dropup .btn-primary .caret, .dropup .btn-success .caret, .dropup .btn-warning .caret, .dropup .btn-danger .caret, .dropup .btn-info .caret { border-bottom-color: #fff; } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group > .btn:focus, .btn-group-vertical > .btn:focus { outline: none; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar .btn-group { float: left; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group, .btn-toolbar > .btn-group + .btn-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group-xs > .btn { padding: 5px 10px; padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-group-lg > .btn { padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .btn-group > .btn + .dropdown-toggle { padding-right: 8px; padding-left: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-right: 12px; padding-left: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-top-right-radius: 0; border-bottom-left-radius: 4px; border-top-left-radius: 0; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child > .btn:last-child, .btn-group-vertical > .btn-group:first-child > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; border-collapse: separate; table-layout: fixed; } .btn-group-justified .btn { display: table-cell; float: none; width: 1%; } [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group.col { float: none; padding-right: 0; padding-left: 0; } .input-group .form-control { width: 100%; margin-bottom: 0; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 45px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 45px; line-height: 45px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: normal; line-height: 1; text-align: center; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -4px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:active { z-index: 2; } .nav { padding-left: 0; margin-bottom: 0; list-style: none; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #999999; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #999999; text-decoration: none; cursor: not-allowed; background-color: transparent; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eeeeee; border-color: #FfFfFf; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #000000; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.428571429; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #FFFFFF; cursor: default; background-color: #000000; border: 1px solid #dddddd; border-bottom-color: transparent; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { text-align: center; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-bottom: 1px solid #dddddd; } .nav-tabs.nav-justified > .active > a { border-bottom-color: #ffffff; } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 5px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #FfFfFf; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { text-align: center; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-bottom: 1px solid #dddddd; } .nav-tabs-justified > .active > a { border-bottom-color: #ffffff; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tabbable:before, .tabbable:after { display: table; content: " "; } .tabbable:after { clear: both; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .nav .caret { border-top-color: #FfFfFf; border-bottom-color: #FfFfFf; } .nav a:hover .caret { border-top-color: #2a6496; border-bottom-color: #2a6496; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; z-index: 1000; min-height: 50px; border: 1px solid transparent; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } @media (min-width: 768px) { .navbar { } } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { max-height: 340px; padding-right: 15px; padding-left: 15px; overflow-x: visible; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-collapse .navbar-nav.navbar-left:first-child { margin-left: -15px; } .navbar-collapse .navbar-nav.navbar-right:last-child { margin-right: -15px; } .navbar-collapse .navbar-text:last-child { margin-right: 0; } } .container > .navbar-header, .container > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; z-index: 1030; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; } .navbar-brand { float: left; padding: 3px 3px; font-size: 18px; line-height: 20px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } @media (min-width: 768px) { .navbar > .container .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-top: 8px; margin-right: 15px; margin-bottom: 8px; background-color: transparent; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 7.5px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; } } .navbar-form { padding: 10px 15px; margin-top: 8px; margin-right: -15px; margin-bottom: 8px; margin-left: -15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; padding-left: 0; margin-top: 0; margin-bottom: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { float: none; margin-left: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } } @media (min-width: 768px) { .navbar-form { width: auto; padding-top: 0; padding-bottom: 0; margin-right: 0; margin-left: 0; border: 0; -webkit-box-shadow: none; box-shadow: none; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-nav.pull-right > li > .dropdown-menu, .navbar-nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar-btn { margin-top: 8px; margin-bottom: 8px; } .navbar-text { float: left; margin-top: 15px; margin-bottom: 15px; } @media (min-width: 768px) { .navbar-text { margin-right: 15px; margin-left: 15px; } } .navbar-default { background-color: #000000; border-color: #e7e7e7; } .navbar-default .navbar-brand { color: #777777; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; } .navbar-default .navbar-text { color: #999999; } .navbar-default .navbar-nav > li > a { color: #999999; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #FFFFFF; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #555555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #dddddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #dddddd; } .navbar-default .navbar-toggle .icon-bar { background-color: #cccccc; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e6e6e6; } .navbar-default .navbar-nav > .dropdown > a:hover .caret, .navbar-default .navbar-nav > .dropdown > a:focus .caret { border-top-color: #333333; border-bottom-color: #333333; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { color: #555555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .open > a .caret, .navbar-default .navbar-nav > .open > a:hover .caret, .navbar-default .navbar-nav > .open > a:focus .caret { border-top-color: #555555; border-bottom-color: #555555; } .navbar-default .navbar-nav > .dropdown > a .caret { border-top-color: #777777; border-bottom-color: #777777; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #777777; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555555; background-color: #e7e7e7; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-link { color: #777777; } .navbar-default .navbar-link:hover { color: #333333; } .navbar-inverse { background-color: #000000; border-color: #080808; } .navbar-inverse .navbar-brand { color: #FFFFFF; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #999999; } .navbar-inverse .navbar-nav > li > a { color: #999999; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .dropdown > a:hover .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-nav > .dropdown > a .caret { border-top-color: #999999; border-bottom-color: #999999; } .navbar-inverse .navbar-nav > .open > a .caret, .navbar-inverse .navbar-nav > .open > a:hover .caret, .navbar-inverse .navbar-nav > .open > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #999999; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #FFFFFF; background-color: transparent; } } .navbar-inverse .navbar-link { color: #999999; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { padding: 0 5px; color: #cccccc; content: "/\00a0"; } .breadcrumb > .active { color: #999999; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 6px 12px; margin-left: -1px; line-height: 1.428571429; text-decoration: none; background-color: #ffffff; border: 1px solid #dddddd; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { background-color: #eeeeee; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 2; color: #ffffff; cursor: default; background-color: #FfFfFf; border-color: #FfFfFf; } .pagination > .disabled > span, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #999999; cursor: not-allowed; background-color: #ffffff; border-color: #dddddd; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 10px 16px; font-size: 18px; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-top-right-radius: 6px; border-bottom-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; text-align: center; list-style: none; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eeeeee; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #999999; cursor: not-allowed; background-color: #ffffff; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .label-default { background-color: #999999; } .label-default[href]:hover, .label-default[href]:focus { background-color: #808080; } .label-primary { background-color: #FfFfFf; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #3071a9; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; background-color: #999999; border-radius: 10px; } .badge:empty { display: none; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .btn .badge { position: relative; top: -1px; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #FfFfFf; background-color: #ffffff; } .nav-pills > li > a > .badge { margin-left: 3px; } .center { text-align:center; } .jumbotron { font-size: 16px; font-weight: 200; line-height: 2.1428571435; color: inherit; } .cyan { background-color: #28a686; color:white; } .gray { background-color: #333333; } .gray2 { background-color: #999999; } .orange { background-color: #ffb53d; } .orange2 { color:white; background-color: #ff853d; } .brown { color:white; background-color: #a66e14; } .green{ color:white; background-color: #55853d; } .blue { color:white; background-color: #3366A7; } .jumbotron h1 { line-height: 1; color: inherit; } .jumbotron p { line-height: 1.4; } .container .jumbotron { } @media screen and (min-width: 768px) { .jumbotron { /*padding-bottom: 20px;*/ } .container .jumbotron { padding-right: 60px; padding-left: 60px; } .jumbotron h1 { font-size: 33px; } } .thumbnail { display: inline-block; display: block; height: auto; max-width: 100%; padding: 4px; line-height: 1.428571429; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .thumbnail > img { display: block; height: auto; max-width: 100%; } a.thumbnail:hover, a.thumbnail:focus { border-color: #FfFfFf; } .thumbnail > img { margin-right: auto; margin-left: auto; } .thumbnail .caption { padding: 9px; color: #333333; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable { padding-right: 35px; } .alert-dismissable .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #356635; } .alert-info { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #2d6987; } .alert-warning { color: #c09853; background-color: #fcf8e3; border-color: #fbeed5; } .alert-warning hr { border-top-color: #f8e5be; } .alert-warning .alert-link { color: #a47e3c; } .alert-danger { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .alert-danger hr { border-top-color: #e6c1c7; } .alert-danger .alert-link { color: #953b39; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 20px; margin-bottom: 20px; overflow: hidden; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0; height: 100%; font-size: 12px; color: #ffffff; text-align: center; background-color: #FfFfFf; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; -ms-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media, .media-body { overflow: hidden; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { padding-left: 0; list-style: none; } .list-group { padding-left: 0; margin-bottom: 20px; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #ffffff; border: 1px solid #dddddd; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } a.list-group-item { color: #555555; } a.list-group-item .list-group-item-heading { color: #333333; } a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #f5f5f5; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #FfFfFf; border-color: #FfFfFf; } .list-group-item.active .list-group-item-heading, .list-group-item.active:hover .list-group-item-heading, .list-group-item.active:focus .list-group-item-heading { color: inherit; } .list-group-item.active .list-group-item-text, .list-group-item.active:hover .list-group-item-text, .list-group-item.active:focus .list-group-item-text { color: #e1edf7; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #ffffff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item { border-width: 1px 0; } .panel > .list-group .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .panel > .list-group .list-group-item:last-child { border-bottom: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .panel > .table { margin-bottom: 0; } .panel > .panel-body + .table { border-top: 1px solid #dddddd; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; } .panel-title > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-group .panel { margin-bottom: 0; overflow: hidden; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse .panel-body { border-top: 1px solid #dddddd; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #dddddd; } .panel-default { border-color: #dddddd; } .panel-default > .panel-heading { color: #333333; background-color: #f5f5f5; border-color: #dddddd; } .panel-default > .panel-heading + .panel-collapse .panel-body { border-top-color: #dddddd; } .panel-default > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #dddddd; } .panel-primary { border-color: #FfFfFf; } .panel-primary > .panel-heading { color: #ffffff; background-color: #FfFfFf; border-color: #FfFfFf; } .panel-primary > .panel-heading + .panel-collapse .panel-body { border-top-color: #FfFfFf; } .panel-primary > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #FfFfFf; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #d6e9c6; } .panel-warning { border-color: #fbeed5; } .panel-warning > .panel-heading { color: #c09853; background-color: #fcf8e3; border-color: #fbeed5; } .panel-warning > .panel-heading + .panel-collapse .panel-body { border-top-color: #fbeed5; } .panel-warning > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #fbeed5; } .panel-danger { border-color: #eed3d7; } .panel-danger > .panel-heading { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .panel-danger > .panel-heading + .panel-collapse .panel-body { border-top-color: #eed3d7; } .panel-danger > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #eed3d7; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #bce8f1; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } body.modal-open, .modal-open .navbar-fixed-top, .modal-open .navbar-fixed-bottom { margin-right: 15px; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; display: none; overflow: auto; overflow-y: scroll; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); } .modal-dialog { z-index: 1050; width: auto; padding: 10px; margin-right: auto; margin-left: auto; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1030; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { min-height: 16.428571429px; padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.428571429; } .modal-body { position: relative; padding: 20px; } .modal-footer { padding: 19px 20px 20px; margin-top: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } @media screen and (min-width: 768px) { .modal-dialog { right: auto; left: 50%; width: 600px; padding-top: 30px; padding-bottom: 30px; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } } .tooltip { position: absolute; z-index: 1030; display: block; font-size: 12px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #000000; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-color: #000000; border-width: 5px 5px 0; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-top-color: #000000; border-width: 5px 5px 0; } .tooltip.top-right .tooltip-arrow { right: 5px; bottom: 0; border-top-color: #000000; border-width: 5px 5px 0; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-right-color: #000000; border-width: 5px 5px 5px 0; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-left-color: #000000; border-width: 5px 0 5px 5px; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-bottom-color: #000000; border-width: 0 5px 5px; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-bottom-color: #000000; border-width: 0 5px 5px; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-bottom-color: #000000; border-width: 0 5px 5px; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; white-space: normal; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); background-clip: padding-box; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { border-width: 10px; content: ""; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-top-color: #ffffff; border-bottom-width: 0; content: " "; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; border-right-color: #ffffff; border-left-width: 0; content: " "; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); border-top-width: 0; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-bottom-color: #ffffff; border-top-width: 0; content: " "; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); border-right-width: 0; } .popover.left .arrow:after { right: 1px; bottom: -10px; border-left-color: #ffffff; border-right-width: 0; content: " "; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; height: auto; max-width: 100%; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #333333; text-align: center; opacity: 0.5; } .carousel-control.left { background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0), color-stop(rgba(0, 0, 0, 0.0001) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { right: 0; left: auto; background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0), color-stop(rgba(0, 0, 0, 0.5) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; left: 50%; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 0px; left: 50%; z-index: 15; width: 60%; padding-left: 0; margin-left: -30%; text-align: center; list-style: none; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; border: 1px solid #ffffff; border-radius: 10px; } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #ffffff; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #333333; text-align: center; } .carousel-caption a { color: #333333; } .carousel-caption a:hover{ color: #FFFFFF; } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 0px; } } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .affix { position: fixed; } @-ms-viewport { width: device-width; } @media screen and (max-width: 400px) { @-ms-viewport { width: 320px; } } .hidden { display: none !important; visibility: hidden !important; } .visible-xs { display: none !important; } tr.visible-xs { display: none !important; } th.visible-xs, td.visible-xs { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-xs.visible-sm { display: block !important; } tr.visible-xs.visible-sm { display: table-row !important; } th.visible-xs.visible-sm, td.visible-xs.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-xs.visible-md { display: block !important; } tr.visible-xs.visible-md { display: table-row !important; } th.visible-xs.visible-md, td.visible-xs.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-xs.visible-lg { display: block !important; } tr.visible-xs.visible-lg { display: table-row !important; } th.visible-xs.visible-lg, td.visible-xs.visible-lg { display: table-cell !important; } } .visible-sm { display: none !important; } tr.visible-sm { display: none !important; } th.visible-sm, td.visible-sm { display: none !important; } @media (max-width: 767px) { .visible-sm.visible-xs { display: block !important; } tr.visible-sm.visible-xs { display: table-row !important; } th.visible-sm.visible-xs, td.visible-sm.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-sm.visible-md { display: block !important; } tr.visible-sm.visible-md { display: table-row !important; } th.visible-sm.visible-md, td.visible-sm.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-sm.visible-lg { display: block !important; } tr.visible-sm.visible-lg { display: table-row !important; } th.visible-sm.visible-lg, td.visible-sm.visible-lg { display: table-cell !important; } } .visible-md { display: none !important; } tr.visible-md { display: none !important; } th.visible-md, td.visible-md { display: none !important; } @media (max-width: 767px) { .visible-md.visible-xs { display: block !important; } tr.visible-md.visible-xs { display: table-row !important; } th.visible-md.visible-xs, td.visible-md.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-md.visible-sm { display: block !important; } tr.visible-md.visible-sm { display: table-row !important; } th.visible-md.visible-sm, td.visible-md.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-md.visible-lg { display: block !important; } tr.visible-md.visible-lg { display: table-row !important; } th.visible-md.visible-lg, td.visible-md.visible-lg { display: table-cell !important; } } .visible-lg { display: none !important; } tr.visible-lg { display: none !important; } th.visible-lg, td.visible-lg { display: none !important; } @media (max-width: 767px) { .visible-lg.visible-xs { display: block !important; } tr.visible-lg.visible-xs { display: table-row !important; } th.visible-lg.visible-xs, td.visible-lg.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-lg.visible-sm { display: block !important; } tr.visible-lg.visible-sm { display: table-row !important; } th.visible-lg.visible-sm, td.visible-lg.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-lg.visible-md { display: block !important; } tr.visible-lg.visible-md { display: table-row !important; } th.visible-lg.visible-md, td.visible-lg.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } .hidden-xs { display: block !important; } tr.hidden-xs { display: table-row !important; } th.hidden-xs, td.hidden-xs { display: table-cell !important; } @media (max-width: 767px) { .hidden-xs { display: none !important; } tr.hidden-xs { display: none !important; } th.hidden-xs, td.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-xs.hidden-sm { display: none !important; } tr.hidden-xs.hidden-sm { display: none !important; } th.hidden-xs.hidden-sm, td.hidden-xs.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-xs.hidden-md { display: none !important; } tr.hidden-xs.hidden-md { display: none !important; } th.hidden-xs.hidden-md, td.hidden-xs.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-xs.hidden-lg { display: none !important; } tr.hidden-xs.hidden-lg { display: none !important; } th.hidden-xs.hidden-lg, td.hidden-xs.hidden-lg { display: none !important; } } .hidden-sm { display: block !important; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } @media (max-width: 767px) { .hidden-sm.hidden-xs { display: none !important; } tr.hidden-sm.hidden-xs { display: none !important; } th.hidden-sm.hidden-xs, td.hidden-sm.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } tr.hidden-sm { display: none !important; } th.hidden-sm, td.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-sm.hidden-md { display: none !important; } tr.hidden-sm.hidden-md { display: none !important; } th.hidden-sm.hidden-md, td.hidden-sm.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-sm.hidden-lg { display: none !important; } tr.hidden-sm.hidden-lg { display: none !important; } th.hidden-sm.hidden-lg, td.hidden-sm.hidden-lg { display: none !important; } } .hidden-md { display: block !important; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } @media (max-width: 767px) { .hidden-md.hidden-xs { display: none !important; } tr.hidden-md.hidden-xs { display: none !important; } th.hidden-md.hidden-xs, td.hidden-md.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-md.hidden-sm { display: none !important; } tr.hidden-md.hidden-sm { display: none !important; } th.hidden-md.hidden-sm, td.hidden-md.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } tr.hidden-md { display: none !important; } th.hidden-md, td.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-md.hidden-lg { display: none !important; } tr.hidden-md.hidden-lg { display: none !important; } th.hidden-md.hidden-lg, td.hidden-md.hidden-lg { display: none !important; } } .hidden-lg { display: block !important; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } @media (max-width: 767px) { .hidden-lg.hidden-xs { display: none !important; } tr.hidden-lg.hidden-xs { display: none !important; } th.hidden-lg.hidden-xs, td.hidden-lg.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-lg.hidden-sm { display: none !important; } tr.hidden-lg.hidden-sm { display: none !important; } th.hidden-lg.hidden-sm, td.hidden-lg.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-lg.hidden-md { display: none !important; } tr.hidden-lg.hidden-md { display: none !important; } th.hidden-lg.hidden-md, td.hidden-lg.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } tr.hidden-lg { display: none !important; } th.hidden-lg, td.hidden-lg { display: none !important; } } .visible-print { display: none !important; } tr.visible-print { display: none !important; } th.visible-print, td.visible-print { display: none !important; } @media print { .visible-print { display: block !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } .hidden-print { display: none !important; } tr.hidden-print { display: none !important; } th.hidden-print, td.hidden-print { display: none !important; } } .control_div { position:absolute; left:-2000px; top:0px; min-width:300px; } .break { background: linear-gradient(135deg, #ECEDDC 25%, transparent 25%) -50px 0, linear-gradient(225deg, #ECEDDC 25%, transparent 25%) -50px 0, linear-gradient(315deg, #ECEDDC 25%, transparent 25%), linear-gradient(45deg, #ECEDDC 25%, transparent 25%); background-size: 100px 100px; background-color: #EC173A; } .disabled { opacity: 0.4; filter: alpha(opacity=40); /* msie */ }
lyndsysimon/openbitco.in
openbitcoin/static/css/bootstrap.css
CSS
gpl-2.0
120,797
/* ***************************************************************************** * A.L.E (Arcade Learning Environment) * Copyright (c) 2009-2012 by Yavar Naddaf, Joel Veness, Marc G. Bellemare and * the Reinforcement Learning and Artificial Intelligence Laboratory * Released under the GNU General Public License; see License.txt for details. * * Based on: Stella -- "An Atari 2600 VCS Emulator" * Copyright (c) 1995-2007 by Bradford W. Mott and the Stella team * * ***************************************************************************** */ #include "RoadRunner.hpp" #include "../RomUtils.hpp" RoadRunnerSettings::RoadRunnerSettings() { reset(); } /* create a new instance of the rom */ RomSettings* RoadRunnerSettings::clone() const { RomSettings* rval = new RoadRunnerSettings(); *rval = *this; return rval; } /* process the latest information from ALE */ void RoadRunnerSettings::step(const System& system) { // update the reward int score = 0, mult = 1; for (int digit = 0; digit < 4; digit++) { int value = readRam(&system, 0xC9 + digit) & 0xF; // 0xA represents '0, don't display' if (value == 0xA) value = 0; score += mult * value; mult *= 10; } score *= 100; int reward = score - m_score; m_reward = reward; m_score = score; // update terminal status int lives = readRam(&system, 0xC4) & 0xF; int y_vel = readRam(&system, 0xB9); int x_vel_death = readRam(&system, 0xBD); m_terminal = (lives == 0 && (y_vel != 0 || x_vel_death != 0)); } /* is end of game */ bool RoadRunnerSettings::isTerminal() const { return m_terminal; }; /* get the most recently observed reward */ reward_t RoadRunnerSettings::getReward() const { return m_reward; } /* is an action legal */ bool RoadRunnerSettings::isLegal(const Action &a) const { switch (a) { case PLAYER_A_NOOP: case PLAYER_A_LEFT: case PLAYER_A_RIGHT: case PLAYER_A_DOWN: case PLAYER_A_UP: case PLAYER_A_RIGHTFIRE: case PLAYER_A_LEFTFIRE: case PLAYER_A_FIRE: return true; default: return false; } } /* reset the state of the game */ void RoadRunnerSettings::reset() { m_reward = 0; m_score = 0; m_terminal = false; } /* saves the state of the rom settings */ void RoadRunnerSettings::saveState(Serializer & ser) { ser.putInt(m_reward); ser.putInt(m_score); ser.putBool(m_terminal); } // loads the state of the rom settings void RoadRunnerSettings::loadState(Deserializer & ser) { m_reward = ser.getInt(); m_score = ser.getInt(); m_terminal = ser.getBool(); }
mhauskn/ale-deprecated
src/games/supported/RoadRunner.cpp
C++
gpl-2.0
2,729
package com.aether.dto.user; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.NotBlank; public class UpdateUserDto { private int id; private String password; @NotBlank(message = "用户Id不能为空") public int getId() { return id; } @NotNull(message = "密码不能为null") public String getPassword() { return password; } }
dev-sanpang/sdk-platfom
sdk-management-platform/src/main/java/com/aether/dto/user/UpdateUserDto.java
Java
gpl-2.0
422
//------------------------------------------------------------------------------ // <auto-generated> // 此代码已从模板生成。 // // 手动更改此文件可能导致应用程序出现意外的行为。 // 如果重新生成代码,将覆盖对此文件的手动更改。 // </auto-generated> //------------------------------------------------------------------------------ namespace Core { using System; using System.Collections.Generic; public partial class EDFACTIVITYINST { public string ACI_ID { get; set; } public string ACI_ACTIVITY { get; set; } public string ACI_PROCINST { get; set; } public string ACI_BEGINDATE { get; set; } public string ACI_COMMITDATE { get; set; } public string ACI_STATE { get; set; } public string ACI_ISSUBPROC { get; set; } public string ACI_SUBPROCINSTID { get; set; } } }
fqybzhangji/Crazy
Core/EDFACTIVITYINST.cs
C#
gpl-2.0
947
#ifndef ASYNCSQLITE_F4E1YMYY #define ASYNCSQLITE_F4E1YMYY #include <LuaPlumbing/plumbing.hpp> #include <util/DummyStruct.hpp> #include <util/AutoReg.hpp> namespace SafeLists { struct AsyncSqlite { typedef std::function< void(int,char**,char**) > SqliteCallbackSimple; // query statement // Signature: // < Execute, const char* sql > // < Execute, std::string > // < Execute, const char* sql, SqliteCallbackSimple > DUMMY_REG(Execute,"ASQL_Execute"); // query something and receive table // snapshot // Signature: // < // ExecuteOutSnapshot, // std::string (query), // std::vector< std::string > (headernames), // TableSnapshot (output) // > DUMMY_STRUCT(ExecuteOutSnapshot); // perform arbitrary operation // Signature: // < // std::function< void(sqlite3*) > // function to use // > DUMMY_STRUCT(ArbitraryOperation); // query something and receive single // number from first row and first column // Signature: < // OutSingleNum, // std::string (query), // int (number), // bool (did succeed) // > DUMMY_REG(OutSingleNum,"ASQL_OutSingleNum"); // query something and receive single // row result separated by '|' pipes. // Signature: < // OutSingleNum, // std::string (query), // std::string (output), // bool (did succeed) // > DUMMY_REG(OutSingleRow,"ASQL_OutSingleRow"); // execute statement and receive affected // rows number. // Signature: < // OutAffected, // std::string (query), // int (affected rows) // > DUMMY_REG(OutAffected,"ASQL_OutAffected"); // query this message to ensure you're // performing action after another // using templatious virtual pack wait // trait DUMMY_STRUCT(DummyWait); // Turn off and close database, // should be issued only by // AsyncSqliteProxy DUMMY_REG(Shutdown,"ASQL_Shutdown"); // Check if connection is already closed // Signature: // < IsDead, bool (out) > DUMMY_REG(IsDead,"ASQL_IsDead"); static StrongMsgPtr createNew(const char* name); }; } #endif /* end of include guard: ASYNCSQLITE_F4E1YMYY */
davidkazlauskas/safelists
src/model/AsyncSqlite.hpp
C++
gpl-2.0
2,278
chrome_extensions ================= chrome extensions i made
revir/chrome_extensions
README.md
Markdown
gpl-2.0
62
#!/usr/bin/env python import re import string import sys import os USAGE = 'USAGE: parse.y <player.h> <playercore_casts.i> <playercore_arraysofclasses.i> <Jplayercore> <playercore> <player.java>' if __name__ == '__main__': if len(sys.argv) != 7: print USAGE sys.exit(-1) infilename = sys.argv[1] outfilename = sys.argv[2] aofcfilename = sys.argv[3] outdir = sys.argv[4] pcoutdir = sys.argv[5] pcjfilename = sys.argv[6] os.system('mkdir -p ' + outdir) os.system('mkdir -p ' + pcoutdir) # Read in the entire file infile = open(infilename, 'r') instream = infile.read() infile.close() outfile = open(outfilename, 'w+') aofcfile = open(aofcfilename, 'w+') pcjfile = open(pcoutdir + '/' + pcjfilename, 'w+') # strip C++-style comments pattern = re.compile('//.*') instream = pattern.sub('', instream) # strip C-style comments pattern = re.compile('/\*.*?\*/', re.MULTILINE | re.DOTALL) instream = pattern.sub('', instream) # strip blank lines pattern = re.compile('^\s*?\n', re.MULTILINE) instream = pattern.sub('', instream) # find structs pattern = re.compile('typedef\s+struct\s+player_\w+[^}]+\}[^;]+', re.MULTILINE) structs = pattern.findall(instream) print 'Found ' + `len(structs)` + ' struct(s)' contentspattern = re.compile('.*\{\s*(.*?)\s*\}', re.MULTILINE | re.DOTALL) declpattern = re.compile('\s*([^;]*?;)', re.MULTILINE) typepattern = re.compile('\s*\S+') variablepattern = re.compile('\s*([^,;]+?)\s*[,;]') #arraypattern = re.compile('\[\s*(\w*?)\s*\]') arraypattern = re.compile('\[(.*?)\]') outfile.write('%inline\n%{\n\n') pcjfile.write('package net.sourceforge.playerstage.Jplayercore;\n') pcjfile.write('public class player {\n\n') for s in structs: # extract type of struct split = string.split(s) typename = split[-1] # pick out the contents of the struct varpart = contentspattern.findall(s) if len(varpart) != 1: print 'skipping nested / empty struct ' + typename continue # SWIG macro that lets us access arrays of this non-primitive type # as Java arrays aofcfile.write('JAVA_ARRAYSOFCLASSES(' + typename +')\n') buf_to_name = 'buf_to_' + typename buf_from_name = typename + '_to_buf' buf_to_Jname = 'buf_to_J' + typename buf_from_Jname = 'J' + typename + '_to_buf' sizeof_name = typename + '_sizeof' # function to return the size of the underlying C structure outfile.write('size_t ' + sizeof_name + '(void)\n') outfile.write('{\n') outfile.write(' return(sizeof(' + typename + '));\n') outfile.write('}\n') # JNI cast from a void* to a pointer to this type outfile.write(typename + '* ' + buf_to_name + '(void* buf)\n') outfile.write('{\n') outfile.write(' return((' + typename + '*)(buf));\n') outfile.write('}\n') # JNI cast from a pointer to this type to a void* outfile.write('void* ' + buf_from_name + '(' + typename + '* msg)\n') outfile.write('{\n') outfile.write(' return((void*)(msg));\n') outfile.write('}\n') # Equivalent non-JNI Java class jclass = 'J' + typename jfile = open(outdir + '/' + jclass + '.java', 'w+') jfile.write('package net.sourceforge.playerstage.Jplayercore;\n') jfile.write('import java.io.Serializable;\n') jfile.write('public class ' + jclass + ' implements Serializable {\n') jfile.write(' public final static long serialVersionUID = ' + `hash(s)` + 'L;\n') jclass_constructor = ' public ' + jclass + '() {\n'; # Static method in class player to convert from JNI Java object to # non-JNI java object pcj_data_to_jdata = '' pcj_data_to_jdata += ' public static ' + jclass + ' ' + typename + '_to_' + jclass + '(' + typename + ' data) {\n' pcj_data_to_jdata += ' ' + jclass + ' Jdata = new ' + jclass + '();\n' # Static method in class player to convert from non-JNI Java object to # JNI java object pcj_jdata_to_data = '' pcj_jdata_to_data += ' public static ' + typename + ' ' + jclass + '_to_' + typename + '(' + jclass + ' Jdata) {\n' pcj_jdata_to_data += ' ' + typename + ' data = new ' + typename + '();\n' # Static method in class playercore to convert from SWIGTYPE_p_void # to non-JNI Java object. pcjfile.write(' public static ' + jclass + ' ' + buf_to_Jname + '(SWIGTYPE_p_void buf) {\n') pcjfile.write(' ' + typename + ' data = playercore_java.' + buf_to_name + '(buf);\n') pcjfile.write(' return(' + typename + '_to_' + jclass + '(data));\n') pcjfile.write(' }\n\n') # Static method in class playercore to convert non-JNI Java object to # SWIGTYPE_p_void. pcjfile.write(' public static SWIGTYPE_p_void ' + buf_from_Jname + '(' + jclass + ' Jdata) {\n') pcjfile.write(' ' + typename + ' data = ' + jclass + '_to_' + typename + '(Jdata);\n') pcjfile.write(' return(playercore_java.' + buf_from_name + '(data));\n') pcjfile.write(' }\n\n') # separate the variable declarations decls = declpattern.finditer(varpart[0]) for d in decls: # find the type and variable names in this declaration dstring = d.string[d.start(1):d.end(1)] type = typepattern.findall(dstring)[0] dstring = typepattern.sub('', dstring, 1) vars = variablepattern.finditer(dstring) # Do some name mangling for common types builtin_type = 1 if type == 'int64_t': jtype = 'long' elif type == 'uint64_t': jtype = 'long' elif type == 'int32_t': jtype = 'int' elif type == 'uint32_t': jtype = 'long' elif type == 'int16_t': jtype = 'short' elif type == 'uint16_t': jtype = 'int' elif type == 'int8_t': jtype = 'byte' elif type == 'uint8_t': jtype = 'short' elif type == 'char': jtype = 'char' elif type == 'bool_t': jtype = 'boolean' elif type == 'double': jtype = 'double' elif type == 'float': jtype = 'float' else: # rely on a previous declaration of a J class for this type jtype = 'J' + type builtin_type = 0 # iterate through each variable for var in vars: varstring = var.string[var.start(1):var.end(1)] # is it an array or a scalar? arraysize = arraypattern.findall(varstring) if len(arraysize) > 0: arraysize = arraysize[0] varstring = arraypattern.sub('', varstring) if jtype == 'char': jfile.write(' public String ' + varstring + ';\n') else: jfile.write(' public ' + jtype + '[] ' + varstring + ';\n') #if builtin_type == 0: if jtype != 'char': if arraysize.isdigit(): jclass_constructor += ' ' + varstring + ' = new ' + jtype + '[' + arraysize + '];\n' else: jclass_constructor += ' ' + varstring + ' = new ' + jtype + '[playercore_javaConstants.' + arraysize + '];\n' else: arraysize = '' jfile.write(' public ' + jtype + ' ' + varstring + ';\n') if builtin_type == 0: jclass_constructor += ' ' + varstring + ' = new ' + jtype + '();\n' capvarstring = string.capitalize(varstring[0]) + varstring[1:] if builtin_type: pcj_data_to_jdata += ' Jdata.' + varstring + ' = data.get' + capvarstring + '();\n' pcj_jdata_to_data += ' data.set' + capvarstring + '(Jdata.' + varstring +');\n' else: if arraysize == '': pcj_data_to_jdata += ' Jdata.' + varstring + ' = ' + type + '_to_' + jtype + '(data.get' + capvarstring + '());\n' pcj_jdata_to_data += ' data.set' + capvarstring + '(' + jtype + '_to_' + type + '(Jdata.' + varstring + '));\n' else: try: asize = int(arraysize) except: arraysize = 'playercore_javaConstants.' + arraysize pcj_data_to_jdata += ' {\n' pcj_data_to_jdata += ' ' + type + ' foo[] = data.get' + capvarstring + '();\n' pcj_data_to_jdata += ' for(int i=0;i<' + arraysize + ';i++)\n' pcj_data_to_jdata += ' Jdata.' + varstring + '[i] = ' + type + '_to_' + jtype + '(foo[i]);\n' pcj_data_to_jdata += ' }\n' pcj_jdata_to_data += ' {\n' pcj_jdata_to_data += ' ' + type + ' foo[] = new ' + type + '[' + arraysize + '];\n' pcj_jdata_to_data += ' for(int i=0;i<' + arraysize + ';i++)\n' pcj_jdata_to_data += ' foo[i] = ' + jtype + '_to_' + type + '(Jdata.' + varstring + '[i]);\n' pcj_jdata_to_data += ' data.set' + capvarstring + '(foo);\n' pcj_jdata_to_data += ' }\n' pcj_data_to_jdata += ' return(Jdata);\n' pcj_data_to_jdata += ' }\n\n' pcjfile.write(pcj_data_to_jdata) pcj_jdata_to_data += ' return(data);\n' pcj_jdata_to_data += ' }\n\n' pcjfile.write(pcj_jdata_to_data) jclass_constructor += ' }\n' jfile.write(jclass_constructor) jfile.write('}\n') jfile.close() outfile.write('\n%}\n') outfile.close() pcjfile.write('\n}\n') pcjfile.close() aofcfile.close()
uml-robotics/player-2.1.3
libplayercore/bindings/java/parse.py
Python
gpl-2.0
9,344
<?php /** * Template for dispalying single post (read full post page). * * @package bootstrap-basic */ ?> <?php get_header(); ?> <section class="masthead"> <div class="background">&nbsp;</div> <div class="container"> <div class="row"> <div class="col-sm-8 col-sm-offset-2"> <h1 class="text-center"><?php the_title('') ?></h1> </div> </div> </div> </section> <section class="primary-content"> <div class="container"> <div class="row"> <div class="main-col col-md-8 col-md-offset-2 page-content"> <?php while (have_posts()) { the_post(); get_template_part('content', get_post_format()); echo "\n\n"; bootstrapBasicPagination(); echo "\n\n"; // If comments are open or we have at least one comment, load up the comment template if (comments_open() || '0' != get_comments_number()) { comments_template(); } echo "\n\n"; } //endwhile; ?> </div> <!-- .main-col --> </div> <!-- .row --> </div> <!-- .container --> </section> <!-- .primary-content --> <?php get_footer(); ?>
TyRichards/journal_wp
wp-content/themes/Paradox/single.php
PHP
gpl-2.0
1,195
/* Save an empty style text box to reload the default example styles. * These styles are provided as examples only - modifications may be * necessary to customize the layout for your website. Social sharing * buttons can be aligned vertically, horizontally, floated, etc. */ #ngfb-sidebar { cursor:pointer; text-align:center; position:fixed; z-index:99; /* position 100px down from top and 10% from left */ top:100px; left:10%; /* position 15% down from top and 400px left of center * by using the right margin to push sidebar left */ /* top:15%; right:50%; margin:0 400px 0 0; */ } /* show a large sharing icon at the top */ #ngfb-sidebar-header { width:72px; height:72px; /* modify the share icon for the sidebar here */ background-image:url("{{URLPATH}}images/share-icon-1.png"); background-repeat:no-repeat; background-position:center; } /* hide the buttons by default and show/hide on hover/click */ #ngfb-sidebar-buttons { width:0; /* hide by default */ height:0; /* hide by default */ overflow:hidden; /* hide by default */ border-style:none; /* hide by default */ /* create a shadowed box with a light grey background */ border-radius:5px; background:none repeat scroll 0% 0% rgb(250, 250, 250); box-shadow:0px 0px 5px rgb(120, 120, 120); border-width:1px; border-color:rgb(255, 255, 255); } /* pre-define the width and height of each button for faster load */ /* note: the large buttons with vertical counters are 55x65px */ #ngfb-sidebar .ngfb-buttons > div { display:block; text-align:center; width:60px; /* button with large vertical counter */ height:65px; /* button with large vertical counter */ margin:10px 5px; } /* adjustments for specific buttons */ #ngfb-sidebar .ngfb-buttons div.pinterest-button { height:28px; margin-top:42px; } #ngfb-sidebar .ngfb-buttons div.tumblr-button { height:20px; } #ngfb-sidebar .ngfb-buttons div.reddit-button { margin-bottom:15px; }
mangamike/spork
wp-content/plugins/nextgen-facebook/css/sidebar-buttons.css
CSS
gpl-2.0
1,944
# # Copyright (c) 2008--2010 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 # along with this software; if not, see # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. # # Red Hat trademarks are not licensed under GPLv2. No permission is # granted to use or replicate Red Hat trademarks that are incorporated # in this software or its documentation. # # Implements the errata.* functions for XMLRPC # # common modules imports from spacewalk.common.rhnTranslate import _ from spacewalk.common import rhnFault, rhnFlags, log_debug, log_error # server modules imports from spacewalk.server.rhnLib import parseRPMName from spacewalk.server.rhnHandler import rhnHandler from spacewalk.server import rhnSQL, rhnCapability class Errata(rhnHandler): """ Errata class --- retrieve (via xmlrpc) package errata. """ def __init__(self): rhnHandler.__init__(self) # Exposed Errata functions: self.functions = [] self.functions.append('GetByPackage') # Clients v1- self.functions.append('getPackageErratum') # Clients v2+ self.functions.append('getErrataInfo') # clients v2+ def GetByPackage(self, pkg, osRel): """ Clients v1- Get errata for a package given "n-v-r" format IN: pkg: "n-v-r" (old client call) or [n,v,r] osRel: OS release RET: a hash by errata that applies to this package (ie, newer packages are available). We also limit the scope for a particular osRel. """ if type(pkg) == type(''): # Old client support. pkg = parseRPMName(pkg) log_debug(1, pkg, osRel) # Stuff the action in the headers: transport = rhnFlags.get('outputTransportOptions') transport['X-RHN-Action'] = 'GetByPackage' # now look up the errata if type(pkg[0]) != type(''): log_error("Invalid package name: %s %s" % (type(pkg[0]), pkg[0])) raise rhnFault(30, _("Expected a package name, not: %s") % pkg[0]) #bug#186996:adding synopsis field to advisory info #client side changes are needed to access this data. h = rhnSQL.prepare(""" select distinct e.id errata_id, e.advisory_type errata_type, e.advisory advisory, e.topic topic, e.description description, e.synopsis synopsis from rhnErrata e, rhnPublicChannelFamily pcf, rhnChannelFamilyMembers cfm, rhnErrataPackage ep, rhnChannelPackage cp, rhnChannelErrata ce, rhnDistChannelMap dcm, rhnPackage p where 1=1 and p.name_id = LOOKUP_PACKAGE_NAME(:name) -- map to a channel and p.id = cp.package_id and cp.channel_id = dcm.channel_id and dcm.release = :dist -- map to an errata as well and p.id = ep.package_id and ep.errata_id = e.id -- the errata and the channel have to be linked and ce.channel_id = cp.channel_id -- and the channel has to be public and cp.channel_id = cfm.channel_id and cfm.channel_family_id = pcf.channel_family_id -- and get the erratum and e.id = ce.errata_id """) h.execute(name = pkg[0], dist = str(osRel)) ret = [] # sanitize the results for display in the clients while 1: row = h.fetchone_dict() if row is None: break for k in row.keys(): if row[k] is None: row[k] = "N/A" ret.append(row) return ret def getPackageErratum(self, system_id, pkg): """ Clients v2+ - Get errata for a package given [n,v,r,e,a,...] format Sing-along: You say erratum(sing), I say errata(pl)! :) IN: pkg: [n,v,r,e,s,a,ch,...] RET: a hash by errata that applies to this package """ log_debug(5, system_id, pkg) if type(pkg) != type([]) or len(pkg) < 7: log_error("Got invalid package specification: %s" % str(pkg)) raise rhnFault(30, _("Expected a package, not: %s") % pkg) # Authenticate and decode server id. self.auth_system(system_id) # log the entry log_debug(1, self.server_id, pkg) # Stuff the action in the headers: transport = rhnFlags.get('outputTransportOptions') transport['X-RHN-Action'] = 'getPackageErratum' name, ver, rel, epoch, arch, size, channel = pkg[:7] if epoch in ['', 'none', 'None']: epoch = None # XXX: also, should arch/size/channel ever be used? #bug#186996:adding synopsis field to errata info #client side changes are needed to access this data. h = rhnSQL.prepare(""" select distinct e.id errata_id, e.advisory_type errata_type, e.advisory advisory, e.topic topic, e.description description, e.synopsis synopsis from rhnServerChannel sc, rhnChannelPackage cp, rhnChannelErrata ce, rhnErrata e, rhnErrataPackage ep, rhnPackage p where p.name_id = LOOKUP_PACKAGE_NAME(:name) and p.evr_id = LOOKUP_EVR(:epoch, :ver, :rel) -- map to a channel and p.id = cp.package_id -- map to an errata as well and p.id = ep.package_id and ep.errata_id = e.id -- the errata and the channel have to be linked and e.id = ce.errata_id and ce.channel_id = cp.channel_id -- and the server has to be subscribed to the channel and cp.channel_id = sc.channel_id and sc.server_id = :server_id """) # " emacs sucks h.execute(name = name, ver = ver, rel = rel, epoch = epoch, server_id = str(self.server_id)) ret = [] # sanitize the results for display in the clients while 1: row = h.fetchone_dict() if row is None: break for k in row.keys(): if row[k] is None: row[k] = "N/A" ret.append(row) return ret # I don't trust this errata_id business, but chip says "trust me" def getErrataInfo(self, system_id, errata_id): log_debug(5, system_id, errata_id) # Authenticate the server certificate self.auth_system(system_id) # log this thing log_debug(1, self.server_id, errata_id) client_caps = rhnCapability.get_client_capabilities() log_debug(3,"Client Capabilities", client_caps) multiarch = 0 cap_info = None if client_caps and client_caps.has_key('packages.update'): cap_info = client_caps['packages.update'] if cap_info and cap_info['version'] > 1: multiarch = 1 statement = """ select distinct pn.name, pe.epoch, pe.version, pe.release, pa.label arch from rhnPackageName pn, rhnPackageEVR pe, rhnPackage p, rhnPackageArch pa, rhnChannelPackage cp, rhnServerChannel sc, rhnErrataPackage ep where ep.errata_id = :errata_id and ep.package_id = p.id and p.name_id = pn.id and p.evr_id = pe.id and p.package_arch_id = pa.id and sc.server_id = :server_id and sc.channel_id = cp.channel_id and cp.package_id = p.id """ h = rhnSQL.prepare(statement) h.execute(errata_id = errata_id, server_id = self.server_id) packages = h.fetchall_dict() ret = [] if not packages: return [] for package in packages: if package['name'] is not None: if package['epoch'] is None: package['epoch'] = "" pkg_arch = '' if multiarch: pkg_arch = package['arch'] or '' ret.append([package['name'], package['version'], package['release'], package['epoch'], pkg_arch]) return ret #----------------------------------------------------------------------------- if __name__ == "__main__": print "You can not run this module by itself" import sys; sys.exit(-1) #-----------------------------------------------------------------------------
colloquium/spacewalk
backend/server/handlers/xmlrpc/errata.py
Python
gpl-2.0
9,420
<?php include('inc/inc.php'); global $author_session; global $prefs; lcm_page_start('Report II','','',''); switch (_request('matt_type')) { case 'case': $q = "SELECT k.title, count(k.id_keyword) as co FROM lcm_keyword as k RIGHT JOIN lcm_keyword_case as kc on k.id_keyword = kc.id_keyword WHERE id_group="._request('matt_group')." GROUP BY k.id_keyword"; break; case 'client': $q = "SELECT k.title, count(k.id_keyword) as co FROM lcm_keyword as k RIGHT JOIN lcm_keyword_client as kcl on k.id_keyword = kcl.id_keyword WHERE id_group="._request('matt_group')." GROUP BY k.id_keyword"; break; case 'followup': $q = "SELECT k.title, count(k.id_keyword) as co FROM lcm_keyword as k RIGHT JOIN lcm_keyword_followup as kf on k.id_keyword = kf.id_keyword WHERE id_group="._request('matt_group')." GROUP BY k.id_keyword"; break; } $result = lcm_query($q); echo "<table>"; while ($row = lcm_fetch_array($result)) { echo '<tr><td>'.$row['title'].'</td><td>'.$row['co'].'</td></tr>'; } echo "</table>"; lcm_page_end; ?>
hoegrammer/casemanager
_rep2.php
PHP
gpl-2.0
1,035
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package eu.kardasz.java.sql.querybuilder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * * @author Krzysztof Kardasz <krzysztof@kardasz.eu> * @version 1.0 */ public class Insert implements SQLSet { protected Map<String,Object> bind = null; protected String table = null; protected List<String> set = null; private static final String BIND_PREFIX = ":_"; public Insert () { bind = new HashMap(); set = new ArrayList(); } /** * * @param table * @return */ public Insert table (String table) { this.table = table; return this; } /** * * @param field * @param value * @return */ public Insert set (String field, Object value) { bindValue(BIND_PREFIX + field, value); set.add(field); return this; } /** * * @param variable * @param bindValue * @return */ public Insert bindValue (String variable, Object bindValue) { bind.put(variable, bindValue); return this; } /** * * @return * @throws eu.kardasz.java.sql.querybuilder.SQLSyntax */ @Override public String toSQL () throws SQLSyntax { StringBuilder sql = new StringBuilder("INSERT INTO "); if (null == table || table.isEmpty()) { throw new SQLSyntax("Missing SQL UPDATE table"); } sql.append(table); if (set.size() > 0) { StringBuilder sql2 = new StringBuilder(); sql.append("("); sql2.append("("); boolean first = true; for (String field : set) { if (!first) { sql.append(", "); sql2.append(", "); } else { first = false; } sql.append(field); String fieldBind = BIND_PREFIX + field; Object bindValue = bind.get(fieldBind); if (bindValue instanceof Expr) { sql2.append(((Expr)bindValue).toString()); } else { sql2.append(fieldBind); } } sql.append(")"); sql2.append(")"); sql.append(" VALUES "); sql.append(sql2.toString()); } else { throw new SQLSyntax("Missing SQL SET data"); } return sql.toString(); } /** * * @return */ @Override public Map<String, Object> getBindValues() { return bind; } }
kardasz/java.sql.querybuilder
src/eu/kardasz/java/sql/querybuilder/Insert.java
Java
gpl-2.0
2,951
from django import forms from django.contrib.auth.models import User from django.forms import ModelForm from django.db import models # Create your models here. #EDICION DE MODELO USER User.add_to_class('usuario_sico', models.CharField(max_length=10, null=False, blank=False)) User.add_to_class('contrasenia_sico', models.CharField(max_length=10, null=False, blank=False)) #User.add_to_class('amigos', models.ManyToManyField('self', symmetrical=True, blank=True)) #FORMULARIOS class SignUpForm(ModelForm): class Meta: model = User fields = ['username', 'password', 'email', 'first_name', 'last_name', 'usuario_sico', 'contrasenia_sico'] widgets = { 'password': forms.PasswordInput(), 'contrasenia_sico': forms.PasswordInput(), }
Titulacion-Sistemas/PracticasDjango
usuarios_logueados/usuarios/models.py
Python
gpl-2.0
791
/* This file is part of the ScriptDev2 Project. See AUTHORS file for Copyright information * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* ScriptData SDName: Bosses_Opera SD%Complete: 95 SDComment: Oz, Hood, and RAJ event implemented. Spell timers may need adjustments. SDCategory: Karazhan EndScriptData */ #include "AI/ScriptDevAI/include/precompiled.h" #include "karazhan.h" /***********************************/ /*** OPERA WIZARD OF OZ EVENT *****/ /*********************************/ enum { SAY_DOROTHEE_DEATH = -1532025, SAY_DOROTHEE_SUMMON = -1532026, SAY_DOROTHEE_TITO_DEATH = -1532027, SAY_DOROTHEE_AGGRO = -1532028, SAY_ROAR_AGGRO = -1532029, SAY_ROAR_DEATH = -1532030, SAY_ROAR_SLAY = -1532031, SAY_STRAWMAN_AGGRO = -1532032, SAY_STRAWMAN_DEATH = -1532033, SAY_STRAWMAN_SLAY = -1532034, SAY_TINHEAD_AGGRO = -1532035, SAY_TINHEAD_DEATH = -1532036, SAY_TINHEAD_SLAY = -1532037, EMOTE_RUST = -1532038, SAY_CRONE_AGGRO = -1532039, SAY_CRONE_AGGRO2 = -1532040, SAY_CRONE_DEATH = -1532041, SAY_CRONE_SLAY = -1532042, /**** Spells ****/ // Dorothee SPELL_WATERBOLT = 31012, SPELL_SCREAM = 31013, SPELL_SUMMONTITO = 31014, // Strawman SPELL_BRAIN_BASH = 31046, SPELL_BRAIN_WIPE = 31069, SPELL_CONFLAG_PROC = 31073, // procs 31075 on fire damage // Tinhead SPELL_CLEAVE = 31043, SPELL_RUST = 31086, // Roar SPELL_MANGLE = 31041, SPELL_SHRED = 31042, SPELL_FRIGHTENED_SCREAM = 31013, // Crone SPELL_CHAIN_LIGHTNING = 32337, // Cyclone SPELL_CYCLONE = 32334, SPELL_CYCLONE_VISUAL = 32332, /** Creature Entries **/ NPC_TITO = 17548, NPC_CYCLONE = 18412, }; struct boss_dorotheeAI : public ScriptedAI { boss_dorotheeAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; uint32 m_uiAggroTimer; uint32 m_uiIntroTimer; uint32 m_uiWaterBoltTimer; uint32 m_uiFearTimer; uint32 m_uiSummonTitoTimer; bool m_bTitoDied; void Reset() override { m_uiIntroTimer = 2000; m_uiAggroTimer = 12000; m_uiWaterBoltTimer = 5000; m_uiFearTimer = 15000; m_uiSummonTitoTimer = 47500; m_bTitoDied = false; } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void JustDied(Unit* /*pKiller*/) override { DoScriptText(SAY_DOROTHEE_DEATH, m_creature); } void MoveInLineOfSight(Unit* pWho) override { // Allow a short delay before attacking if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) return; ScriptedAI::MoveInLineOfSight(pWho); } void JustSummoned(Creature* pSummoned) override { if (m_creature->getVictim()) pSummoned->AI()->AttackStart(m_creature->getVictim()); } void SummonedCreatureJustDied(Creature* pSummoned) override { if (pSummoned->GetEntry() == NPC_TITO) { DoScriptText(SAY_DOROTHEE_TITO_DEATH, m_creature); m_bTitoDied = true; } } void UpdateAI(const uint32 uiDiff) override { if (m_uiIntroTimer) { if (m_uiIntroTimer <= uiDiff) { DoScriptText(SAY_DOROTHEE_AGGRO, m_creature); m_uiIntroTimer = 0; } else m_uiIntroTimer -= uiDiff; } if (m_uiAggroTimer) { if (m_uiAggroTimer <= uiDiff) { m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE); m_creature->SetInCombatWithZone(); m_uiAggroTimer = 0; } else m_uiAggroTimer -= uiDiff; } if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; if (m_uiWaterBoltTimer < uiDiff) { if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0)) { if (DoCastSpellIfCan(pTarget, SPELL_WATERBOLT) == CAST_OK) m_uiWaterBoltTimer = m_bTitoDied ? 1500 : 5000; } } else m_uiWaterBoltTimer -= uiDiff; if (m_uiFearTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_SCREAM) == CAST_OK) m_uiFearTimer = 30000; } else m_uiFearTimer -= uiDiff; if (m_uiSummonTitoTimer) { if (m_uiSummonTitoTimer <= uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_SUMMONTITO) == CAST_OK) { DoScriptText(SAY_DOROTHEE_SUMMON, m_creature); m_uiSummonTitoTimer = 0; } } else m_uiSummonTitoTimer -= uiDiff; } DoMeleeAttackIfReady(); } }; struct boss_strawmanAI : public ScriptedAI { boss_strawmanAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; uint32 m_uiAggroTimer; uint32 m_uiBrainBashTimer; uint32 m_uiBrainWipeTimer; void Reset() override { m_uiAggroTimer = 27000; m_uiBrainBashTimer = 5000; m_uiBrainWipeTimer = 7000; } void MoveInLineOfSight(Unit* pWho) override { if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) return; ScriptedAI::MoveInLineOfSight(pWho); } void AttackStart(Unit* pWho) override { if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) return; ScriptedAI::AttackStart(pWho); } void Aggro(Unit* /*pWho*/) override { DoCastSpellIfCan(m_creature, SPELL_CONFLAG_PROC); DoScriptText(SAY_STRAWMAN_AGGRO, m_creature); } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void JustDied(Unit* /*pKiller*/) override { DoScriptText(SAY_STRAWMAN_DEATH, m_creature); } void KilledUnit(Unit* /*pVictim*/) override { DoScriptText(SAY_STRAWMAN_SLAY, m_creature); } void UpdateAI(const uint32 uiDiff) override { if (m_uiAggroTimer) { if (m_uiAggroTimer <= uiDiff) { m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE); m_creature->SetInCombatWithZone(); m_uiAggroTimer = 0; } else m_uiAggroTimer -= uiDiff; } if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; if (m_uiBrainBashTimer < uiDiff) { if (DoCastSpellIfCan(m_creature->getVictim(), SPELL_BRAIN_BASH) == CAST_OK) m_uiBrainBashTimer = 15000; } else m_uiBrainBashTimer -= uiDiff; if (m_uiBrainWipeTimer < uiDiff) { if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0)) { if (DoCastSpellIfCan(pTarget, SPELL_BRAIN_WIPE) == CAST_OK) m_uiBrainWipeTimer = 20000; } } else m_uiBrainWipeTimer -= uiDiff; DoMeleeAttackIfReady(); } }; struct boss_tinheadAI : public ScriptedAI { boss_tinheadAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; uint32 m_uiAggroTimer; uint32 m_uiCleaveTimer; uint32 m_uiRustTimer; void Reset() override { m_uiAggroTimer = 37000; m_uiCleaveTimer = 5000; m_uiRustTimer = 30000; } void Aggro(Unit* /*pWho*/) override { DoScriptText(SAY_TINHEAD_AGGRO, m_creature); } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void MoveInLineOfSight(Unit* pWho) override { if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) return; ScriptedAI::MoveInLineOfSight(pWho); } void AttackStart(Unit* pWho) override { if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) return; ScriptedAI::AttackStart(pWho); } void JustDied(Unit* /*pKiller*/) override { DoScriptText(SAY_TINHEAD_DEATH, m_creature); } void KilledUnit(Unit* /*pVictim*/) override { DoScriptText(SAY_TINHEAD_SLAY, m_creature); } void UpdateAI(const uint32 uiDiff) override { if (m_uiAggroTimer) { if (m_uiAggroTimer <= uiDiff) { m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE); m_creature->SetInCombatWithZone(); m_uiAggroTimer = 0; } else m_uiAggroTimer -= uiDiff; } if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; if (m_uiCleaveTimer < uiDiff) { if (DoCastSpellIfCan(m_creature->getVictim(), SPELL_CLEAVE) == CAST_OK) m_uiCleaveTimer = 5000; } else m_uiCleaveTimer -= uiDiff; if (m_uiRustTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_RUST) == CAST_OK) { DoScriptText(EMOTE_RUST, m_creature); m_uiRustTimer = 6000; } } else m_uiRustTimer -= uiDiff; DoMeleeAttackIfReady(); } }; struct boss_roarAI : public ScriptedAI { boss_roarAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; uint32 m_uiAggroTimer; uint32 m_uiMangleTimer; uint32 m_uiShredTimer; uint32 m_uiScreamTimer; void Reset() override { m_uiAggroTimer = 17000; m_uiMangleTimer = 5000; m_uiShredTimer = 10000; m_uiScreamTimer = 15000; } void MoveInLineOfSight(Unit* pWho) override { if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) return; ScriptedAI::MoveInLineOfSight(pWho); } void AttackStart(Unit* pWho) override { if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) return; ScriptedAI::AttackStart(pWho); } void Aggro(Unit* /*pWho*/) override { DoScriptText(SAY_ROAR_AGGRO, m_creature); } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void JustDied(Unit* /*pKiller*/) override { DoScriptText(SAY_ROAR_DEATH, m_creature); } void KilledUnit(Unit* /*pVictim*/) override { DoScriptText(SAY_ROAR_SLAY, m_creature); } void UpdateAI(const uint32 uiDiff) override { if (m_uiAggroTimer) { if (m_uiAggroTimer <= uiDiff) { m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE); m_creature->SetInCombatWithZone(); m_uiAggroTimer = 0; } else m_uiAggroTimer -= uiDiff; } if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; if (m_uiMangleTimer < uiDiff) { if (DoCastSpellIfCan(m_creature->getVictim(), SPELL_MANGLE) == CAST_OK) m_uiMangleTimer = urand(5000, 8000); } else m_uiMangleTimer -= uiDiff; if (m_uiShredTimer < uiDiff) { if (DoCastSpellIfCan(m_creature->getVictim(), SPELL_SHRED) == CAST_OK) m_uiShredTimer = urand(10000, 15000); } else m_uiShredTimer -= uiDiff; if (m_uiScreamTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_FRIGHTENED_SCREAM) == CAST_OK) m_uiScreamTimer = urand(20000, 30000); } else m_uiScreamTimer -= uiDiff; DoMeleeAttackIfReady(); } }; static const float afCycloneSpawnLoc[4] = { -10907.68f, -1778.651f, 90.56018f, 0.61f}; struct boss_croneAI : public ScriptedAI { boss_croneAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; uint32 m_uiChainLightningTimer; void Reset() override { m_uiChainLightningTimer = 10000; } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void Aggro(Unit* /*pWho*/) override { DoScriptText(urand(0, 1) ? SAY_CRONE_AGGRO : SAY_CRONE_AGGRO2, m_creature); // spawn the cyclone on aggro m_creature->SummonCreature(NPC_CYCLONE, afCycloneSpawnLoc[0], afCycloneSpawnLoc[1], afCycloneSpawnLoc[2], afCycloneSpawnLoc[3], TEMPSUMMON_DEAD_DESPAWN, 0); } void JustDied(Unit* /*pKiller*/) override { DoScriptText(SAY_CRONE_DEATH, m_creature); if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, DONE); } void JustSummoned(Creature* pSummoned) override { pSummoned->CastSpell(pSummoned, SPELL_CYCLONE, TRIGGERED_OLD_TRIGGERED); pSummoned->CastSpell(pSummoned, SPELL_CYCLONE_VISUAL, TRIGGERED_OLD_TRIGGERED); pSummoned->GetMotionMaster()->MoveRandomAroundPoint(m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ(), 15.0f); } void UpdateAI(const uint32 uiDiff) override { if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; if (m_uiChainLightningTimer < uiDiff) { if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0)) { if (DoCastSpellIfCan(pTarget, SPELL_CHAIN_LIGHTNING) == CAST_OK) m_uiChainLightningTimer = 15000; } } else m_uiChainLightningTimer -= uiDiff; DoMeleeAttackIfReady(); } }; CreatureAI* GetAI_boss_dorothee(Creature* pCreature) { return new boss_dorotheeAI(pCreature); } CreatureAI* GetAI_boss_strawman(Creature* pCreature) { return new boss_strawmanAI(pCreature); } CreatureAI* GetAI_boss_tinhead(Creature* pCreature) { return new boss_tinheadAI(pCreature); } CreatureAI* GetAI_boss_roar(Creature* pCreature) { return new boss_roarAI(pCreature); } CreatureAI* GetAI_boss_crone(Creature* pCreature) { return new boss_croneAI(pCreature); } /**************************************/ /**** Opera Red Riding Hood Event ****/ /************************************/ enum { /**** Yells for the Wolf ****/ SAY_WOLF_AGGRO = -1532043, SAY_WOLF_SLAY = -1532044, SAY_WOLF_HOOD = -1532045, SOUND_WOLF_DEATH = 9275, // Only sound on death, no text. /**** Spells For The Wolf ****/ SPELL_PICK_RED_RIDING_HOOD = 30769, // targeting spell - triggers 30768 SPELL_TERRIFYING_HOWL = 30752, SPELL_WIDE_SWIPE = 30761, GOSSIP_ITEM_GRANDMA = -3532005, TEXT_ID_GRANDMA = 8990, /**** The Wolf's Entry ****/ NPC_BIG_BAD_WOLF = 17521 }; bool GossipHello_npc_grandmother(Player* pPlayer, Creature* pCreature) { pPlayer->ADD_GOSSIP_ITEM_ID(GOSSIP_ICON_CHAT, GOSSIP_ITEM_GRANDMA, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF); pPlayer->SEND_GOSSIP_MENU(TEXT_ID_GRANDMA, pCreature->GetObjectGuid()); return true; } bool GossipSelect_npc_grandmother(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction) { if (uiAction == GOSSIP_ACTION_INFO_DEF) { if (Creature* pBigBadWolf = pCreature->SummonCreature(NPC_BIG_BAD_WOLF, 0, 0, 0, 0, TEMPSUMMON_DEAD_DESPAWN, 0)) pBigBadWolf->AI()->AttackStart(pPlayer); pCreature->ForcedDespawn(); } return true; } struct boss_bigbadwolfAI : public ScriptedAI { boss_bigbadwolfAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; uint32 m_uiRedRidingHoodTimer; uint32 m_uiFearTimer; uint32 m_uiSwipeTimer; void Reset() override { m_uiRedRidingHoodTimer = 30000; m_uiFearTimer = urand(25000, 35000); m_uiSwipeTimer = 5000; } void Aggro(Unit* /*pWho*/) override { DoScriptText(SAY_WOLF_AGGRO, m_creature); } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void JustDied(Unit* /*pKiller*/) override { DoPlaySoundToSet(m_creature, SOUND_WOLF_DEATH); if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, DONE); } void UpdateAI(const uint32 uiDiff) override { if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; if (m_uiRedRidingHoodTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_PICK_RED_RIDING_HOOD) == CAST_OK) { DoScriptText(SAY_WOLF_HOOD, m_creature); m_uiRedRidingHoodTimer = 30000; } } else m_uiRedRidingHoodTimer -= uiDiff; if (m_uiFearTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_TERRIFYING_HOWL) == CAST_OK) m_uiFearTimer = 24000; } else m_uiFearTimer -= uiDiff; if (m_uiSwipeTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_WIDE_SWIPE) == CAST_OK) m_uiSwipeTimer = urand(25000, 30000); } else m_uiSwipeTimer -= uiDiff; DoMeleeAttackIfReady(); } }; CreatureAI* GetAI_boss_bigbadwolf(Creature* pCreature) { return new boss_bigbadwolfAI(pCreature); } /**********************************************/ /******** Opera Romeo and Juliet Event *******/ /********************************************/ enum { /**** Speech *****/ SAY_JULIANNE_AGGRO = -1532046, SAY_JULIANNE_ENTER = -1532047, SAY_JULIANNE_DEATH01 = -1532048, SAY_JULIANNE_DEATH02 = -1532049, SAY_JULIANNE_RESURRECT = -1532050, SAY_JULIANNE_SLAY = -1532051, SAY_ROMULO_AGGRO = -1532052, SAY_ROMULO_DEATH = -1532053, SAY_ROMULO_ENTER = -1532054, SAY_ROMULO_RESURRECT = -1532055, SAY_ROMULO_SLAY = -1532056, /***** Spells For Julianne *****/ SPELL_BLINDING_PASSION = 30890, SPELL_DEVOTION = 30887, SPELL_ETERNAL_AFFECTION = 30878, SPELL_POWERFUL_ATTRACTION = 30889, SPELL_DRINK_POISON = 30907, /***** Spells For Romulo ****/ SPELL_BACKWARD_LUNGE = 30815, SPELL_DARING = 30841, SPELL_DEADLY_SWATHE = 30817, SPELL_POISON_THRUST = 30822, /**** Other Misc. Spells ****/ SPELL_FULL_HEALTH = 43979, // res effect on Julianne SPELL_UNDYING_LOVE = 30951, // res effect on Romulo }; enum OperaPhase { PHASE_JULIANNE = 0, PHASE_ROMULO = 1, PHASE_BOTH = 2, }; static const float afRomuloSpawnLoc[4] = { -10893.62f, -1760.78f, 90.55f, 4.76f}; struct boss_julianneAI : public ScriptedAI { boss_julianneAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; OperaPhase m_Phase; uint32 m_uiBlindingPassionTimer; uint32 m_uiDevotionTimer; uint32 m_uiEternalAffectionTimer; uint32 m_uiPowerfulAttractionTimer; uint32 m_uiSummonRomuloTimer; uint32 m_uiResurrectSelfTimer; bool m_bIsFakingDeath; void Reset() override { m_Phase = PHASE_JULIANNE; m_uiBlindingPassionTimer = 30000; m_uiDevotionTimer = 15000; m_uiEternalAffectionTimer = 25000; m_uiPowerfulAttractionTimer = 5000; m_uiSummonRomuloTimer = 0; m_uiResurrectSelfTimer = 0; m_bIsFakingDeath = false; } void Aggro(Unit* /*pWho*/) override { DoScriptText(SAY_JULIANNE_AGGRO, m_creature); } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void DamageTaken(Unit* /*pDoneBy*/, uint32& uiDamage, DamageEffectType /*damagetype*/) override { if (uiDamage < m_creature->GetHealth()) return; uiDamage = 0; if (m_bIsFakingDeath) return; if (m_Phase == PHASE_JULIANNE) { // Prepare fake death if (DoCastSpellIfCan(m_creature, SPELL_DRINK_POISON, CAST_INTERRUPT_PREVIOUS) == CAST_OK) { m_Phase = PHASE_BOTH; m_bIsFakingDeath = true; m_uiSummonRomuloTimer = 12000; } } else if (m_Phase == PHASE_BOTH) { // set fake death and allow 10 sec timer to kill Romulos DoScriptText(SAY_JULIANNE_DEATH02, m_creature); DoSetFakeDeath(); m_uiResurrectSelfTimer = 10000; } } void JustDied(Unit* /*pKiller*/) override { m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, DONE); } void KilledUnit(Unit* pVictim) override { if (pVictim->GetTypeId() != TYPEID_PLAYER) return; DoScriptText(SAY_JULIANNE_SLAY, m_creature); } void JustSummoned(Creature* pSummoned) override { if (m_creature->getVictim()) pSummoned->AI()->AttackStart(m_creature->getVictim()); } // Wrapper to set fake death void DoSetFakeDeath() { m_bIsFakingDeath = true; m_creature->InterruptNonMeleeSpells(false); m_creature->SetHealth(1); m_creature->StopMoving(); m_creature->ClearComboPointHolders(); m_creature->RemoveAllAurasOnDeath(); m_creature->ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false); m_creature->ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false); m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); m_creature->ClearAllReactives(); m_creature->SetTargetGuid(ObjectGuid()); m_creature->GetMotionMaster()->Clear(); m_creature->GetMotionMaster()->MoveIdle(); m_creature->SetStandState(UNIT_STAND_STATE_DEAD); } // Wrapper to remove fake death void DoRemoveFakeDeath() { m_bIsFakingDeath = false; m_creature->SetStandState(UNIT_STAND_STATE_STAND); m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); m_creature->GetMotionMaster()->Clear(); DoStartMovement(m_creature->getVictim()); } // Wrapper to start phase 3 void DoHandleRomuloResurrect() { if (DoCastSpellIfCan(m_creature, SPELL_UNDYING_LOVE) == CAST_OK) { DoCastSpellIfCan(m_creature, SPELL_FULL_HEALTH, CAST_TRIGGERED); DoScriptText(SAY_JULIANNE_RESURRECT, m_creature); DoRemoveFakeDeath(); } } void UpdateAI(const uint32 uiDiff) override { // spawn Romulo on timer after fake death if (m_uiSummonRomuloTimer) { if (m_uiSummonRomuloTimer <= uiDiff) { m_creature->SummonCreature(NPC_ROMULO, afRomuloSpawnLoc[0], afRomuloSpawnLoc[1], afRomuloSpawnLoc[2], afRomuloSpawnLoc[3], TEMPSUMMON_DEAD_DESPAWN, 0); m_uiSummonRomuloTimer = 0; } else m_uiSummonRomuloTimer -= uiDiff; } if (m_uiResurrectSelfTimer) { if (m_uiResurrectSelfTimer <= uiDiff) { if (m_pInstance) { if (Creature* pRomulo = m_pInstance->GetSingleCreatureFromStorage(NPC_ROMULO)) { // if Romulos is dead, then self kill if (pRomulo->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE)) { m_creature->DealDamage(m_creature, m_creature->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NONE, NULL, false); pRomulo->DealDamage(pRomulo, pRomulo->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NONE, NULL, false); } else { DoRemoveFakeDeath(); DoCastSpellIfCan(m_creature, SPELL_FULL_HEALTH, CAST_TRIGGERED); } } } m_uiResurrectSelfTimer = 0; } else m_uiResurrectSelfTimer -= uiDiff; } if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; // don't use spells during transition if (m_bIsFakingDeath) return; if (m_uiBlindingPassionTimer < uiDiff) { if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0)) { if (DoCastSpellIfCan(pTarget, SPELL_BLINDING_PASSION) == CAST_OK) m_uiBlindingPassionTimer = urand(30000, 45000); } } else m_uiBlindingPassionTimer -= uiDiff; if (m_uiDevotionTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_DEVOTION) == CAST_OK) m_uiDevotionTimer = urand(15000, 45000); } else m_uiDevotionTimer -= uiDiff; if (m_uiPowerfulAttractionTimer < uiDiff) { if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0)) { if (DoCastSpellIfCan(pTarget, SPELL_POWERFUL_ATTRACTION) == CAST_OK) m_uiPowerfulAttractionTimer = urand(5000, 30000); } } else m_uiPowerfulAttractionTimer -= uiDiff; if (m_uiEternalAffectionTimer < uiDiff) { if (Unit* pTarget = DoSelectLowestHpFriendly(30.0f)) { if (DoCastSpellIfCan(pTarget, SPELL_ETERNAL_AFFECTION) == CAST_OK) m_uiEternalAffectionTimer = urand(45000, 60000); } } else m_uiEternalAffectionTimer -= uiDiff; DoMeleeAttackIfReady(); } }; bool EffectDummyCreature_spell_drink_poison(Unit* /*pCaster*/, uint32 uiSpellId, SpellEffectIndex uiEffIndex, Creature* pCreatureTarget, ObjectGuid /*originalCasterGuid*/) { // always check spellid and effectindex if (uiSpellId == SPELL_DRINK_POISON && uiEffIndex == EFFECT_INDEX_0) { // Set fake death on poison if (boss_julianneAI* pJulianneAI = dynamic_cast<boss_julianneAI*>(pCreatureTarget->AI())) pJulianneAI->DoSetFakeDeath(); DoScriptText(SAY_JULIANNE_DEATH01, pCreatureTarget); // always return true when we are handling this spell and effect return true; } return false; } struct boss_romuloAI : public ScriptedAI { boss_romuloAI(Creature* pCreature) : ScriptedAI(pCreature) { m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData(); Reset(); } ScriptedInstance* m_pInstance; OperaPhase m_Phase; uint32 m_uiBackwardLungeTimer; uint32 m_uiDaringTimer; uint32 m_uiDeadlySwatheTimer; uint32 m_uiPoisonThrustTimer; uint32 m_uiResurrectTimer; uint32 m_uiResurrectSelfTimer; bool m_bIsFakingDeath; void Reset() override { m_Phase = PHASE_ROMULO; m_uiBackwardLungeTimer = 15000; m_uiDaringTimer = 20000; m_uiDeadlySwatheTimer = 25000; m_uiPoisonThrustTimer = 10000; m_uiResurrectTimer = 0; m_uiResurrectSelfTimer = 0; m_bIsFakingDeath = false; } void JustReachedHome() override { if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, FAIL); m_creature->ForcedDespawn(); } void DamageTaken(Unit* /*pDoneBy*/, uint32& uiDamage, DamageEffectType /*damagetype*/) override { if (uiDamage < m_creature->GetHealth()) return; uiDamage = 0; if (m_Phase == PHASE_ROMULO) { DoScriptText(SAY_ROMULO_DEATH, m_creature); DoSetFakeDeath(); m_Phase = PHASE_BOTH; m_uiResurrectTimer = 10000; } else if (m_Phase == PHASE_BOTH) { // set fake death and allow 10 sec timer to kill Julianne DoSetFakeDeath(); m_uiResurrectSelfTimer = 10000; } } void Aggro(Unit* /*pWho*/) override { DoScriptText(SAY_ROMULO_AGGRO, m_creature); } void JustDied(Unit* /*pKiller*/) override { m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); if (m_pInstance) m_pInstance->SetData(TYPE_OPERA, DONE); } void KilledUnit(Unit* pVictim) override { if (pVictim->GetTypeId() != TYPEID_PLAYER) return; DoScriptText(SAY_ROMULO_SLAY, m_creature); } void SpellHit(Unit* pCaster, const SpellEntry* pSpell) override { // remove fake death on res if (pSpell->Id == SPELL_UNDYING_LOVE && pCaster->GetEntry() == NPC_JULIANNE) DoRemoveFakeDeath(); } // Wrapper to set fake death void DoSetFakeDeath() { m_bIsFakingDeath = true; m_creature->InterruptNonMeleeSpells(false); m_creature->SetHealth(1); m_creature->StopMoving(); m_creature->ClearComboPointHolders(); m_creature->RemoveAllAurasOnDeath(); m_creature->ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false); m_creature->ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false); m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); m_creature->ClearAllReactives(); m_creature->SetTargetGuid(ObjectGuid()); m_creature->GetMotionMaster()->Clear(); m_creature->GetMotionMaster()->MoveIdle(); m_creature->SetStandState(UNIT_STAND_STATE_DEAD); } // Wrapper to remove fake death void DoRemoveFakeDeath() { m_bIsFakingDeath = false; m_creature->SetStandState(UNIT_STAND_STATE_STAND); m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); m_creature->GetMotionMaster()->Clear(); DoStartMovement(m_creature->getVictim()); } void UpdateAI(const uint32 uiDiff) override { // Resurrect both of them at the beginning of phase 3 if (m_uiResurrectTimer) { if (m_uiResurrectTimer <= uiDiff) { if (m_pInstance) { if (Creature* pJulianne = m_pInstance->GetSingleCreatureFromStorage(NPC_JULIANNE)) { if (boss_julianneAI* pJulianneAI = dynamic_cast<boss_julianneAI*>(pJulianne->AI())) pJulianneAI->DoHandleRomuloResurrect(); } } m_uiResurrectTimer = 0; } else m_uiResurrectTimer -= uiDiff; } if (m_uiResurrectSelfTimer) { if (m_uiResurrectSelfTimer <= uiDiff) { if (m_pInstance) { if (Creature* pJulianne = m_pInstance->GetSingleCreatureFromStorage(NPC_JULIANNE)) { // if Julianne is dead, then self kill if (pJulianne->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE)) { m_creature->DealDamage(m_creature, m_creature->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NONE, NULL, false); pJulianne->DealDamage(pJulianne, pJulianne->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NONE, NULL, false); } else { DoRemoveFakeDeath(); DoScriptText(SAY_ROMULO_RESURRECT, m_creature); DoCastSpellIfCan(m_creature, SPELL_FULL_HEALTH, CAST_TRIGGERED); } } } m_uiResurrectSelfTimer = 0; } else m_uiResurrectSelfTimer -= uiDiff; } if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) return; // don't use spells on fake death if (m_bIsFakingDeath) return; if (m_uiBackwardLungeTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_BACKWARD_LUNGE) == CAST_OK) m_uiBackwardLungeTimer = urand(15000, 30000); } else m_uiBackwardLungeTimer -= uiDiff; if (m_uiDaringTimer < uiDiff) { if (DoCastSpellIfCan(m_creature, SPELL_DARING) == CAST_OK) m_uiDaringTimer = urand(20000, 40000); } else m_uiDaringTimer -= uiDiff; if (m_uiDeadlySwatheTimer < uiDiff) { if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 0)) { if (DoCastSpellIfCan(pTarget, SPELL_DEADLY_SWATHE) == CAST_OK) m_uiDeadlySwatheTimer = urand(15000, 25000); } } else m_uiDeadlySwatheTimer -= uiDiff; if (m_uiPoisonThrustTimer < uiDiff) { if (DoCastSpellIfCan(m_creature->getVictim(), SPELL_POISON_THRUST) == CAST_OK) m_uiPoisonThrustTimer = urand(10000, 20000); } else m_uiPoisonThrustTimer -= uiDiff; DoMeleeAttackIfReady(); } }; CreatureAI* GetAI_boss_julianne(Creature* pCreature) { return new boss_julianneAI(pCreature); } CreatureAI* GetAI_boss_romulo(Creature* pCreature) { return new boss_romuloAI(pCreature); } void AddSC_bosses_opera() { Script* pNewScript; // Oz pNewScript = new Script; pNewScript->Name = "boss_dorothee"; pNewScript->GetAI = &GetAI_boss_dorothee; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "boss_strawman"; pNewScript->GetAI = &GetAI_boss_strawman; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "boss_tinhead"; pNewScript->GetAI = &GetAI_boss_tinhead; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "boss_roar"; pNewScript->GetAI = &GetAI_boss_roar; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "boss_crone"; pNewScript->GetAI = &GetAI_boss_crone; pNewScript->RegisterSelf(); // Hood pNewScript = new Script; pNewScript->Name = "npc_grandmother"; pNewScript->pGossipHello = &GossipHello_npc_grandmother; pNewScript->pGossipSelect = &GossipSelect_npc_grandmother; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "boss_bigbadwolf"; pNewScript->GetAI = &GetAI_boss_bigbadwolf; pNewScript->RegisterSelf(); // Romeo And Juliet pNewScript = new Script; pNewScript->Name = "boss_julianne"; pNewScript->GetAI = &GetAI_boss_julianne; pNewScript->pEffectDummyNPC = &EffectDummyCreature_spell_drink_poison; pNewScript->RegisterSelf(); pNewScript = new Script; pNewScript->Name = "boss_romulo"; pNewScript->GetAI = &GetAI_boss_romulo; pNewScript->RegisterSelf(); }
killerwife/mangos-wotlk
src/game/AI/ScriptDevAI/scripts/eastern_kingdoms/karazhan/bosses_opera.cpp
C++
gpl-2.0
38,590
<?php /** * @package Fetch Tweets * @copyright Copyright (c) 2013, Michael Uno * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.0.0.4 * @description Loads plugin extensions. */ abstract class FetchTweets_Extensions_ { // Container arrays protected $arrFeedItems = array(); // stores fetched feed items. // Objects protected $oFeed; // stores the feed object. // Properties protected $strTransientPrefix = 'FTWSExt_'; public function fetchFeed( $vURLs, $numItems=0, $fCacheRenew=false ) { $arrURLs = is_array( $vURLs ) ? $vURLs : ( array ) $vURLs ; $strURLID = md5( serialize( $arrURLs ) ); if ( ! isset( $this->arrFeedItems[ $strURLID ] ) && $fCacheRenew == false ) { $this->arrFeedItems[ $strURLID ] = FetchTweets_WPUtilities::getTransient( $this->strTransientPrefix . $strURLID, array() ); unset( $this->arrFeedItems[ $strURLID ][0] ); // casting array causes the 0 key, } // If it's out of stock, fill the array by fetching the feed. if ( empty( $this->arrFeedItems[ $strURLID ] ) ) { // When an array of urls is passed to the Simple Pie's set_feed_url() method, the memory usage increases largely. // So fetch the feeds one by one per url and store the output into an array. foreach( $arrURLs as $strURL ) { $oFeed = $this->getFeedObj( $strURL, null, $fCacheRenew ? 0 : 3600 ); foreach ( $oFeed->get_items() as $oItem ) // foreach ( $oFeed->get_items( 0, $numItems * 3 ) as $item ) does not change the memory usage $this->arrFeedItems[ $strURLID ][ $oItem->get_title() ] = array( 'strContent' => $oItem->get_content(), 'description' => $oItem->get_description(), 'title' => $oItem->get_title(), 'strDate' => $oItem->get_title(), 'strAuthor' => $oItem->get_date( 'j F Y, g:i a' ), 'strLink' => $oItem->get_permalink(), // get_link() may be used as well ); // For PHP below 5.3 to release the memory. $oFeed->__destruct(); // Do what PHP should be doing on it's own. unset( $oFeed ); } // This life span should be little longer than the feed cache life span, which is 1700. FetchTweets_WPUtilities::setTransient( $this->strTransientPrefix . $strURLID, $this->arrFeedItems[ $strURLID ], 1800 ); // 30 minutes } $arrOut = $this->arrFeedItems[ $strURLID ]; if ( $numItems ) array_splice( $arrOut, $$numItems ); return $arrOut; } protected function getFeedObj( $arrUrls, $numItem=0, $numCacheDuration=3600 ) { // 60 seconds * 60 = 1 hour, 1800 = 30 minutes // Reuse the object that already exists. This conserves the memory usage. $this->oFeed = isset( $this->oFeed ) ? $this->oFeed : new FetchTweets_SimplePie(); $oFeed = $this->oFeed; // Set sort type. $oFeed->set_sortorder( 'date' ); // Set urls $oFeed->set_feed_url( $arrUrls ); if ( $numItem ) $oFeed->set_item_limit( $numItem ); // This should be set after defining $urls $oFeed->set_cache_duration( $numCacheDuration ); $oFeed->set_stupidly_fast( true ); // If the cache lifetime is explicitly set to 0, do not trigger the background renewal cache event if ( $numCacheDuration == 0 ) $oFeed->setBackground( true ); // setting it true will be considered the background process; thus, it won't trigger the renewal event. // set_stupidly_fast() disables this internally so turn it on manually because it will trigger the custom sort method $oFeed->enable_order_by_date( true ); $oFeed->init(); return $oFeed; } }
skirtley/desk-jockey-gm
wp-content/plugins/fetch-tweets/include/class/backend/extension/FetchTweets_Extensions_.php
PHP
gpl-2.0
3,688
/* BFD support for handling relocation entries. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ /* SECTION Relocations BFD maintains relocations in much the same way it maintains symbols: they are left alone until required, then read in en-masse and translated into an internal form. A common routine <<bfd_perform_relocation>> acts upon the canonical form to do the fixup. Relocations are maintained on a per section basis, while symbols are maintained on a per BFD basis. All that a back end has to do to fit the BFD interface is to create a <<struct reloc_cache_entry>> for each relocation in a particular section, and fill in the right bits of the structures. @menu @* typedef arelent:: @* howto manager:: @end menu */ /* DO compile in the reloc_code name table from libbfd.h. */ #define _BFD_MAKE_TABLE_bfd_reloc_code_real #include "sysdep.h" #include "bfd.h" #include "bfdlink.h" #include "libbfd.h" /* DOCDD INODE typedef arelent, howto manager, Relocations, Relocations SUBSECTION typedef arelent This is the structure of a relocation entry: CODE_FRAGMENT . .typedef enum bfd_reloc_status .{ . {* No errors detected. *} . bfd_reloc_ok, . . {* The relocation was performed, but there was an overflow. *} . bfd_reloc_overflow, . . {* The address to relocate was not within the section supplied. *} . bfd_reloc_outofrange, . . {* Used by special functions. *} . bfd_reloc_continue, . . {* Unsupported relocation size requested. *} . bfd_reloc_notsupported, . . {* Unused. *} . bfd_reloc_other, . . {* The symbol to relocate against was undefined. *} . bfd_reloc_undefined, . . {* The relocation was performed, but may not be ok - presently . generated only when linking i960 coff files with i960 b.out . symbols. If this type is returned, the error_message argument . to bfd_perform_relocation will be set. *} . bfd_reloc_dangerous . } . bfd_reloc_status_type; . . .typedef struct reloc_cache_entry .{ . {* A pointer into the canonical table of pointers. *} . struct bfd_symbol **sym_ptr_ptr; . . {* offset in section. *} . bfd_size_type address; . . {* addend for relocation value. *} . bfd_vma addend; . . {* Pointer to how to perform the required relocation. *} . reloc_howto_type *howto; . .} .arelent; . */ /* DESCRIPTION Here is a description of each of the fields within an <<arelent>>: o <<sym_ptr_ptr>> The symbol table pointer points to a pointer to the symbol associated with the relocation request. It is the pointer into the table returned by the back end's <<canonicalize_symtab>> action. @xref{Symbols}. The symbol is referenced through a pointer to a pointer so that tools like the linker can fix up all the symbols of the same name by modifying only one pointer. The relocation routine looks in the symbol and uses the base of the section the symbol is attached to and the value of the symbol as the initial relocation offset. If the symbol pointer is zero, then the section provided is looked up. o <<address>> The <<address>> field gives the offset in bytes from the base of the section data which owns the relocation record to the first byte of relocatable information. The actual data relocated will be relative to this point; for example, a relocation type which modifies the bottom two bytes of a four byte word would not touch the first byte pointed to in a big endian world. o <<addend>> The <<addend>> is a value provided by the back end to be added (!) to the relocation offset. Its interpretation is dependent upon the howto. For example, on the 68k the code: | char foo[]; | main() | { | return foo[0x12345678]; | } Could be compiled into: | linkw fp,#-4 | moveb @@#12345678,d0 | extbl d0 | unlk fp | rts This could create a reloc pointing to <<foo>>, but leave the offset in the data, something like: |RELOCATION RECORDS FOR [.text]: |offset type value |00000006 32 _foo | |00000000 4e56 fffc ; linkw fp,#-4 |00000004 1039 1234 5678 ; moveb @@#12345678,d0 |0000000a 49c0 ; extbl d0 |0000000c 4e5e ; unlk fp |0000000e 4e75 ; rts Using coff and an 88k, some instructions don't have enough space in them to represent the full address range, and pointers have to be loaded in two parts. So you'd get something like: | or.u r13,r0,hi16(_foo+0x12345678) | ld.b r2,r13,lo16(_foo+0x12345678) | jmp r1 This should create two relocs, both pointing to <<_foo>>, and with 0x12340000 in their addend field. The data would consist of: |RELOCATION RECORDS FOR [.text]: |offset type value |00000002 HVRT16 _foo+0x12340000 |00000006 LVRT16 _foo+0x12340000 | |00000000 5da05678 ; or.u r13,r0,0x5678 |00000004 1c4d5678 ; ld.b r2,r13,0x5678 |00000008 f400c001 ; jmp r1 The relocation routine digs out the value from the data, adds it to the addend to get the original offset, and then adds the value of <<_foo>>. Note that all 32 bits have to be kept around somewhere, to cope with carry from bit 15 to bit 16. One further example is the sparc and the a.out format. The sparc has a similar problem to the 88k, in that some instructions don't have room for an entire offset, but on the sparc the parts are created in odd sized lumps. The designers of the a.out format chose to not use the data within the section for storing part of the offset; all the offset is kept within the reloc. Anything in the data should be ignored. | save %sp,-112,%sp | sethi %hi(_foo+0x12345678),%g2 | ldsb [%g2+%lo(_foo+0x12345678)],%i0 | ret | restore Both relocs contain a pointer to <<foo>>, and the offsets contain junk. |RELOCATION RECORDS FOR [.text]: |offset type value |00000004 HI22 _foo+0x12345678 |00000008 LO10 _foo+0x12345678 | |00000000 9de3bf90 ; save %sp,-112,%sp |00000004 05000000 ; sethi %hi(_foo+0),%g2 |00000008 f048a000 ; ldsb [%g2+%lo(_foo+0)],%i0 |0000000c 81c7e008 ; ret |00000010 81e80000 ; restore o <<howto>> The <<howto>> field can be imagined as a relocation instruction. It is a pointer to a structure which contains information on what to do with all of the other information in the reloc record and data section. A back end would normally have a relocation instruction set and turn relocations into pointers to the correct structure on input - but it would be possible to create each howto field on demand. */ /* SUBSUBSECTION <<enum complain_overflow>> Indicates what sort of overflow checking should be done when performing a relocation. CODE_FRAGMENT . .enum complain_overflow .{ . {* Do not complain on overflow. *} . complain_overflow_dont, . . {* Complain if the value overflows when considered as a signed . number one bit larger than the field. ie. A bitfield of N bits . is allowed to represent -2**n to 2**n-1. *} . complain_overflow_bitfield, . . {* Complain if the value overflows when considered as a signed . number. *} . complain_overflow_signed, . . {* Complain if the value overflows when considered as an . unsigned number. *} . complain_overflow_unsigned .}; */ /* SUBSUBSECTION <<reloc_howto_type>> The <<reloc_howto_type>> is a structure which contains all the information that libbfd needs to know to tie up a back end's data. CODE_FRAGMENT .struct bfd_symbol; {* Forward declaration. *} . .struct reloc_howto_struct .{ . {* The type field has mainly a documentary use - the back end can . do what it wants with it, though normally the back end's . external idea of what a reloc number is stored . in this field. For example, a PC relative word relocation . in a coff environment has the type 023 - because that's . what the outside world calls a R_PCRWORD reloc. *} . unsigned int type; . . {* The value the final relocation is shifted right by. This drops . unwanted data from the relocation. *} . unsigned int rightshift; . . {* The size of the item to be relocated. This is *not* a . power-of-two measure. To get the number of bytes operated . on by a type of relocation, use bfd_get_reloc_size. *} . int size; . . {* The number of bits in the item to be relocated. This is used . when doing overflow checking. *} . unsigned int bitsize; . . {* The relocation is relative to the field being relocated. *} . bfd_boolean pc_relative; . . {* The bit position of the reloc value in the destination. . The relocated value is left shifted by this amount. *} . unsigned int bitpos; . . {* What type of overflow error should be checked for when . relocating. *} . enum complain_overflow complain_on_overflow; . . {* If this field is non null, then the supplied function is . called rather than the normal function. This allows really . strange relocation methods to be accommodated (e.g., i960 callj . instructions). *} . bfd_reloc_status_type (*special_function) . (bfd *, arelent *, struct bfd_symbol *, void *, asection *, . bfd *, char **); . . {* The textual name of the relocation type. *} . char *name; . . {* Some formats record a relocation addend in the section contents . rather than with the relocation. For ELF formats this is the . distinction between USE_REL and USE_RELA (though the code checks . for USE_REL == 1/0). The value of this field is TRUE if the . addend is recorded with the section contents; when performing a . partial link (ld -r) the section contents (the data) will be . modified. The value of this field is FALSE if addends are . recorded with the relocation (in arelent.addend); when performing . a partial link the relocation will be modified. . All relocations for all ELF USE_RELA targets should set this field . to FALSE (values of TRUE should be looked on with suspicion). . However, the converse is not true: not all relocations of all ELF . USE_REL targets set this field to TRUE. Why this is so is peculiar . to each particular target. For relocs that aren't used in partial . links (e.g. GOT stuff) it doesn't matter what this is set to. *} . bfd_boolean partial_inplace; . . {* src_mask selects the part of the instruction (or data) to be used . in the relocation sum. If the target relocations don't have an . addend in the reloc, eg. ELF USE_REL, src_mask will normally equal . dst_mask to extract the addend from the section contents. If . relocations do have an addend in the reloc, eg. ELF USE_RELA, this . field should be zero. Non-zero values for ELF USE_RELA targets are . bogus as in those cases the value in the dst_mask part of the . section contents should be treated as garbage. *} . bfd_vma src_mask; . . {* dst_mask selects which parts of the instruction (or data) are . replaced with a relocated value. *} . bfd_vma dst_mask; . . {* When some formats create PC relative instructions, they leave . the value of the pc of the place being relocated in the offset . slot of the instruction, so that a PC relative relocation can . be made just by adding in an ordinary offset (e.g., sun3 a.out). . Some formats leave the displacement part of an instruction . empty (e.g., m88k bcs); this flag signals the fact. *} . bfd_boolean pcrel_offset; .}; . */ /* FUNCTION The HOWTO Macro DESCRIPTION The HOWTO define is horrible and will go away. .#define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \ . { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC } DESCRIPTION And will be replaced with the totally magic way. But for the moment, we are compatible, so do it this way. .#define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \ . HOWTO (0, 0, SIZE, 0, REL, 0, complain_overflow_dont, FUNCTION, \ . NAME, FALSE, 0, 0, IN) . DESCRIPTION This is used to fill in an empty howto entry in an array. .#define EMPTY_HOWTO(C) \ . HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \ . NULL, FALSE, 0, 0, FALSE) . DESCRIPTION Helper routine to turn a symbol into a relocation value. .#define HOWTO_PREPARE(relocation, symbol) \ . { \ . if (symbol != NULL) \ . { \ . if (bfd_is_com_section (symbol->section)) \ . { \ . relocation = 0; \ . } \ . else \ . { \ . relocation = symbol->value; \ . } \ . } \ . } . */ /* FUNCTION bfd_get_reloc_size SYNOPSIS unsigned int bfd_get_reloc_size (reloc_howto_type *); DESCRIPTION For a reloc_howto_type that operates on a fixed number of bytes, this returns the number of bytes operated on. */ unsigned int bfd_get_reloc_size (reloc_howto_type *howto) { switch (howto->size) { case 0: return 1; case 1: return 2; case 2: return 4; case 3: return 0; case 4: return 8; case 8: return 16; case -2: return 4; default: abort (); } } /* TYPEDEF arelent_chain DESCRIPTION How relocs are tied together in an <<asection>>: .typedef struct relent_chain .{ . arelent relent; . struct relent_chain *next; .} .arelent_chain; . */ /* N_ONES produces N one bits, without overflowing machine arithmetic. */ #define N_ONES(n) (((((bfd_vma) 1 << ((n) - 1)) - 1) << 1) | 1) /* FUNCTION bfd_check_overflow SYNOPSIS bfd_reloc_status_type bfd_check_overflow (enum complain_overflow how, unsigned int bitsize, unsigned int rightshift, unsigned int addrsize, bfd_vma relocation); DESCRIPTION Perform overflow checking on @var{relocation} which has @var{bitsize} significant bits and will be shifted right by @var{rightshift} bits, on a machine with addresses containing @var{addrsize} significant bits. The result is either of @code{bfd_reloc_ok} or @code{bfd_reloc_overflow}. */ bfd_reloc_status_type bfd_check_overflow (enum complain_overflow how, unsigned int bitsize, unsigned int rightshift, unsigned int addrsize, bfd_vma relocation) { bfd_vma fieldmask, addrmask, signmask, ss, a; bfd_reloc_status_type flag = bfd_reloc_ok; /* Note: BITSIZE should always be <= ADDRSIZE, but in case it's not, we'll be permissive: extra bits in the field mask will automatically extend the address mask for purposes of the overflow check. */ fieldmask = N_ONES (bitsize); signmask = ~fieldmask; addrmask = N_ONES (addrsize) | (fieldmask << rightshift); a = (relocation & addrmask) >> rightshift;; switch (how) { case complain_overflow_dont: break; case complain_overflow_signed: /* If any sign bits are set, all sign bits must be set. That is, A must be a valid negative address after shifting. */ signmask = ~ (fieldmask >> 1); /* Fall thru */ case complain_overflow_bitfield: /* Bitfields are sometimes signed, sometimes unsigned. We explicitly allow an address wrap too, which means a bitfield of n bits is allowed to store -2**n to 2**n-1. Thus overflow if the value has some, but not all, bits set outside the field. */ ss = a & signmask; if (ss != 0 && ss != ((addrmask >> rightshift) & signmask)) flag = bfd_reloc_overflow; break; case complain_overflow_unsigned: /* We have an overflow if the address does not fit in the field. */ if ((a & signmask) != 0) flag = bfd_reloc_overflow; break; default: abort (); } return flag; } /* FUNCTION bfd_perform_relocation SYNOPSIS bfd_reloc_status_type bfd_perform_relocation (bfd *abfd, arelent *reloc_entry, void *data, asection *input_section, bfd *output_bfd, char **error_message); DESCRIPTION If @var{output_bfd} is supplied to this function, the generated image will be relocatable; the relocations are copied to the output file after they have been changed to reflect the new state of the world. There are two ways of reflecting the results of partial linkage in an output file: by modifying the output data in place, and by modifying the relocation record. Some native formats (e.g., basic a.out and basic coff) have no way of specifying an addend in the relocation type, so the addend has to go in the output data. This is no big deal since in these formats the output data slot will always be big enough for the addend. Complex reloc types with addends were invented to solve just this problem. The @var{error_message} argument is set to an error message if this return @code{bfd_reloc_dangerous}. */ bfd_reloc_status_type bfd_perform_relocation (bfd *abfd, arelent *reloc_entry, void *data, asection *input_section, bfd *output_bfd, char **error_message) { bfd_vma relocation; bfd_reloc_status_type flag = bfd_reloc_ok; bfd_size_type octets = reloc_entry->address * bfd_octets_per_byte (abfd); bfd_vma output_base = 0; reloc_howto_type *howto = reloc_entry->howto; asection *reloc_target_output_section; asymbol *symbol; symbol = *(reloc_entry->sym_ptr_ptr); if (bfd_is_abs_section (symbol->section) && output_bfd != NULL) { reloc_entry->address += input_section->output_offset; return bfd_reloc_ok; } /* If we are not producing relocatable output, return an error if the symbol is not defined. An undefined weak symbol is considered to have a value of zero (SVR4 ABI, p. 4-27). */ if (bfd_is_und_section (symbol->section) && (symbol->flags & BSF_WEAK) == 0 && output_bfd == NULL) flag = bfd_reloc_undefined; /* If there is a function supplied to handle this relocation type, call it. It'll return `bfd_reloc_continue' if further processing can be done. */ if (howto->special_function) { bfd_reloc_status_type cont; cont = howto->special_function (abfd, reloc_entry, symbol, data, input_section, output_bfd, error_message); if (cont != bfd_reloc_continue) return cont; } /* Is the address of the relocation really within the section? */ if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) return bfd_reloc_outofrange; /* Work out which section the relocation is targeted at and the initial relocation command value. */ /* Get symbol value. (Common symbols are special.) */ if (bfd_is_com_section (symbol->section)) relocation = 0; else relocation = symbol->value; reloc_target_output_section = symbol->section->output_section; /* Convert input-section-relative symbol value to absolute. */ if ((output_bfd && ! howto->partial_inplace) || reloc_target_output_section == NULL) output_base = 0; else output_base = reloc_target_output_section->vma; relocation += output_base + symbol->section->output_offset; /* Add in supplied addend. */ relocation += reloc_entry->addend; /* Here the variable relocation holds the final address of the symbol we are relocating against, plus any addend. */ if (howto->pc_relative) { /* This is a PC relative relocation. We want to set RELOCATION to the distance between the address of the symbol and the location. RELOCATION is already the address of the symbol. We start by subtracting the address of the section containing the location. If pcrel_offset is set, we must further subtract the position of the location within the section. Some targets arrange for the addend to be the negative of the position of the location within the section; for example, i386-aout does this. For i386-aout, pcrel_offset is FALSE. Some other targets do not include the position of the location; for example, m88kbcs, or ELF. For those targets, pcrel_offset is TRUE. If we are producing relocatable output, then we must ensure that this reloc will be correctly computed when the final relocation is done. If pcrel_offset is FALSE we want to wind up with the negative of the location within the section, which means we must adjust the existing addend by the change in the location within the section. If pcrel_offset is TRUE we do not want to adjust the existing addend at all. FIXME: This seems logical to me, but for the case of producing relocatable output it is not what the code actually does. I don't want to change it, because it seems far too likely that something will break. */ relocation -= input_section->output_section->vma + input_section->output_offset; if (howto->pcrel_offset) relocation -= reloc_entry->address; } if (output_bfd != NULL) { if (! howto->partial_inplace) { /* This is a partial relocation, and we want to apply the relocation to the reloc entry rather than the raw data. Modify the reloc inplace to reflect what we now know. */ reloc_entry->addend = relocation; reloc_entry->address += input_section->output_offset; return flag; } else { /* This is a partial relocation, but inplace, so modify the reloc record a bit. If we've relocated with a symbol with a section, change into a ref to the section belonging to the symbol. */ reloc_entry->address += input_section->output_offset; /* WTF?? */ if (abfd->xvec->flavour == bfd_target_coff_flavour && strcmp (abfd->xvec->name, "coff-Intel-little") != 0 && strcmp (abfd->xvec->name, "coff-Intel-big") != 0) { /* For m68k-coff, the addend was being subtracted twice during relocation with -r. Removing the line below this comment fixes that problem; see PR 2953. However, Ian wrote the following, regarding removing the line below, which explains why it is still enabled: --djm If you put a patch like that into BFD you need to check all the COFF linkers. I am fairly certain that patch will break coff-i386 (e.g., SCO); see coff_i386_reloc in coff-i386.c where I worked around the problem in a different way. There may very well be a reason that the code works as it does. Hmmm. The first obvious point is that bfd_perform_relocation should not have any tests that depend upon the flavour. It's seem like entirely the wrong place for such a thing. The second obvious point is that the current code ignores the reloc addend when producing relocatable output for COFF. That's peculiar. In fact, I really have no idea what the point of the line you want to remove is. A typical COFF reloc subtracts the old value of the symbol and adds in the new value to the location in the object file (if it's a pc relative reloc it adds the difference between the symbol value and the location). When relocating we need to preserve that property. BFD handles this by setting the addend to the negative of the old value of the symbol. Unfortunately it handles common symbols in a non-standard way (it doesn't subtract the old value) but that's a different story (we can't change it without losing backward compatibility with old object files) (coff-i386 does subtract the old value, to be compatible with existing coff-i386 targets, like SCO). So everything works fine when not producing relocatable output. When we are producing relocatable output, logically we should do exactly what we do when not producing relocatable output. Therefore, your patch is correct. In fact, it should probably always just set reloc_entry->addend to 0 for all cases, since it is, in fact, going to add the value into the object file. This won't hurt the COFF code, which doesn't use the addend; I'm not sure what it will do to other formats (the thing to check for would be whether any formats both use the addend and set partial_inplace). When I wanted to make coff-i386 produce relocatable output, I ran into the problem that you are running into: I wanted to remove that line. Rather than risk it, I made the coff-i386 relocs use a special function; it's coff_i386_reloc in coff-i386.c. The function specifically adds the addend field into the object file, knowing that bfd_perform_relocation is not going to. If you remove that line, then coff-i386.c will wind up adding the addend field in twice. It's trivial to fix; it just needs to be done. The problem with removing the line is just that it may break some working code. With BFD it's hard to be sure of anything. The right way to deal with this is simply to build and test at least all the supported COFF targets. It should be straightforward if time and disk space consuming. For each target: 1) build the linker 2) generate some executable, and link it using -r (I would probably use paranoia.o and link against newlib/libc.a, which for all the supported targets would be available in /usr/cygnus/progressive/H-host/target/lib/libc.a). 3) make the change to reloc.c 4) rebuild the linker 5) repeat step 2 6) if the resulting object files are the same, you have at least made it no worse 7) if they are different you have to figure out which version is right */ relocation -= reloc_entry->addend; reloc_entry->addend = 0; } else { reloc_entry->addend = relocation; } } } else { reloc_entry->addend = 0; } /* FIXME: This overflow checking is incomplete, because the value might have overflowed before we get here. For a correct check we need to compute the value in a size larger than bitsize, but we can't reasonably do that for a reloc the same size as a host machine word. FIXME: We should also do overflow checking on the result after adding in the value contained in the object file. */ if (howto->complain_on_overflow != complain_overflow_dont && flag == bfd_reloc_ok) flag = bfd_check_overflow (howto->complain_on_overflow, howto->bitsize, howto->rightshift, bfd_arch_bits_per_address (abfd), relocation); /* Either we are relocating all the way, or we don't want to apply the relocation to the reloc entry (probably because there isn't any room in the output format to describe addends to relocs). */ /* The cast to bfd_vma avoids a bug in the Alpha OSF/1 C compiler (OSF version 1.3, compiler version 3.11). It miscompiles the following program: struct str { unsigned int i0; } s = { 0 }; int main () { unsigned long x; x = 0x100000000; x <<= (unsigned long) s.i0; if (x == 0) printf ("failed\n"); else printf ("succeeded (%lx)\n", x); } */ relocation >>= (bfd_vma) howto->rightshift; /* Shift everything up to where it's going to be used. */ relocation <<= (bfd_vma) howto->bitpos; /* Wait for the day when all have the mask in them. */ /* What we do: i instruction to be left alone o offset within instruction r relocation offset to apply S src mask D dst mask N ~dst mask A part 1 B part 2 R result Do this: (( i i i i i o o o o o from bfd_get<size> and S S S S S) to get the size offset we want + r r r r r r r r r r) to get the final value to place and D D D D D to chop to right size ----------------------- = A A A A A And this: ( i i i i i o o o o o from bfd_get<size> and N N N N N ) get instruction ----------------------- = B B B B B And then: ( B B B B B or A A A A A) ----------------------- = R R R R R R R R R R put into bfd_put<size> */ #define DOIT(x) \ x = ( (x & ~howto->dst_mask) | (((x & howto->src_mask) + relocation) & howto->dst_mask)) switch (howto->size) { case 0: { char x = bfd_get_8 (abfd, (char *) data + octets); DOIT (x); bfd_put_8 (abfd, x, (unsigned char *) data + octets); } break; case 1: { short x = bfd_get_16 (abfd, (bfd_byte *) data + octets); DOIT (x); bfd_put_16 (abfd, (bfd_vma) x, (unsigned char *) data + octets); } break; case 2: { long x = bfd_get_32 (abfd, (bfd_byte *) data + octets); DOIT (x); bfd_put_32 (abfd, (bfd_vma) x, (bfd_byte *) data + octets); } break; case -2: { long x = bfd_get_32 (abfd, (bfd_byte *) data + octets); relocation = -relocation; DOIT (x); bfd_put_32 (abfd, (bfd_vma) x, (bfd_byte *) data + octets); } break; case -1: { long x = bfd_get_16 (abfd, (bfd_byte *) data + octets); relocation = -relocation; DOIT (x); bfd_put_16 (abfd, (bfd_vma) x, (bfd_byte *) data + octets); } break; case 3: /* Do nothing */ break; case 4: #ifdef BFD64 { bfd_vma x = bfd_get_64 (abfd, (bfd_byte *) data + octets); DOIT (x); bfd_put_64 (abfd, x, (bfd_byte *) data + octets); } #else abort (); #endif break; default: return bfd_reloc_other; } return flag; } /* FUNCTION bfd_install_relocation SYNOPSIS bfd_reloc_status_type bfd_install_relocation (bfd *abfd, arelent *reloc_entry, void *data, bfd_vma data_start, asection *input_section, char **error_message); DESCRIPTION This looks remarkably like <<bfd_perform_relocation>>, except it does not expect that the section contents have been filled in. I.e., it's suitable for use when creating, rather than applying a relocation. For now, this function should be considered reserved for the assembler. */ bfd_reloc_status_type bfd_install_relocation (bfd *abfd, arelent *reloc_entry, void *data_start, bfd_vma data_start_offset, asection *input_section, char **error_message) { bfd_vma relocation; bfd_reloc_status_type flag = bfd_reloc_ok; bfd_size_type octets = reloc_entry->address * bfd_octets_per_byte (abfd); bfd_vma output_base = 0; reloc_howto_type *howto = reloc_entry->howto; asection *reloc_target_output_section; asymbol *symbol; bfd_byte *data; symbol = *(reloc_entry->sym_ptr_ptr); if (bfd_is_abs_section (symbol->section)) { reloc_entry->address += input_section->output_offset; return bfd_reloc_ok; } /* If there is a function supplied to handle this relocation type, call it. It'll return `bfd_reloc_continue' if further processing can be done. */ if (howto->special_function) { bfd_reloc_status_type cont; /* XXX - The special_function calls haven't been fixed up to deal with creating new relocations and section contents. */ cont = howto->special_function (abfd, reloc_entry, symbol, /* XXX - Non-portable! */ ((bfd_byte *) data_start - data_start_offset), input_section, abfd, error_message); if (cont != bfd_reloc_continue) return cont; } /* Is the address of the relocation really within the section? */ if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) return bfd_reloc_outofrange; /* Work out which section the relocation is targeted at and the initial relocation command value. */ /* Get symbol value. (Common symbols are special.) */ if (bfd_is_com_section (symbol->section)) relocation = 0; else relocation = symbol->value; reloc_target_output_section = symbol->section->output_section; /* Convert input-section-relative symbol value to absolute. */ if (! howto->partial_inplace) output_base = 0; else output_base = reloc_target_output_section->vma; relocation += output_base + symbol->section->output_offset; /* Add in supplied addend. */ relocation += reloc_entry->addend; /* Here the variable relocation holds the final address of the symbol we are relocating against, plus any addend. */ if (howto->pc_relative) { /* This is a PC relative relocation. We want to set RELOCATION to the distance between the address of the symbol and the location. RELOCATION is already the address of the symbol. We start by subtracting the address of the section containing the location. If pcrel_offset is set, we must further subtract the position of the location within the section. Some targets arrange for the addend to be the negative of the position of the location within the section; for example, i386-aout does this. For i386-aout, pcrel_offset is FALSE. Some other targets do not include the position of the location; for example, m88kbcs, or ELF. For those targets, pcrel_offset is TRUE. If we are producing relocatable output, then we must ensure that this reloc will be correctly computed when the final relocation is done. If pcrel_offset is FALSE we want to wind up with the negative of the location within the section, which means we must adjust the existing addend by the change in the location within the section. If pcrel_offset is TRUE we do not want to adjust the existing addend at all. FIXME: This seems logical to me, but for the case of producing relocatable output it is not what the code actually does. I don't want to change it, because it seems far too likely that something will break. */ relocation -= input_section->output_section->vma + input_section->output_offset; if (howto->pcrel_offset && howto->partial_inplace) relocation -= reloc_entry->address; } if (! howto->partial_inplace) { /* This is a partial relocation, and we want to apply the relocation to the reloc entry rather than the raw data. Modify the reloc inplace to reflect what we now know. */ reloc_entry->addend = relocation; reloc_entry->address += input_section->output_offset; return flag; } else { /* This is a partial relocation, but inplace, so modify the reloc record a bit. If we've relocated with a symbol with a section, change into a ref to the section belonging to the symbol. */ reloc_entry->address += input_section->output_offset; /* WTF?? */ if (abfd->xvec->flavour == bfd_target_coff_flavour && strcmp (abfd->xvec->name, "coff-Intel-little") != 0 && strcmp (abfd->xvec->name, "coff-Intel-big") != 0) { /* For m68k-coff, the addend was being subtracted twice during relocation with -r. Removing the line below this comment fixes that problem; see PR 2953. However, Ian wrote the following, regarding removing the line below, which explains why it is still enabled: --djm If you put a patch like that into BFD you need to check all the COFF linkers. I am fairly certain that patch will break coff-i386 (e.g., SCO); see coff_i386_reloc in coff-i386.c where I worked around the problem in a different way. There may very well be a reason that the code works as it does. Hmmm. The first obvious point is that bfd_install_relocation should not have any tests that depend upon the flavour. It's seem like entirely the wrong place for such a thing. The second obvious point is that the current code ignores the reloc addend when producing relocatable output for COFF. That's peculiar. In fact, I really have no idea what the point of the line you want to remove is. A typical COFF reloc subtracts the old value of the symbol and adds in the new value to the location in the object file (if it's a pc relative reloc it adds the difference between the symbol value and the location). When relocating we need to preserve that property. BFD handles this by setting the addend to the negative of the old value of the symbol. Unfortunately it handles common symbols in a non-standard way (it doesn't subtract the old value) but that's a different story (we can't change it without losing backward compatibility with old object files) (coff-i386 does subtract the old value, to be compatible with existing coff-i386 targets, like SCO). So everything works fine when not producing relocatable output. When we are producing relocatable output, logically we should do exactly what we do when not producing relocatable output. Therefore, your patch is correct. In fact, it should probably always just set reloc_entry->addend to 0 for all cases, since it is, in fact, going to add the value into the object file. This won't hurt the COFF code, which doesn't use the addend; I'm not sure what it will do to other formats (the thing to check for would be whether any formats both use the addend and set partial_inplace). When I wanted to make coff-i386 produce relocatable output, I ran into the problem that you are running into: I wanted to remove that line. Rather than risk it, I made the coff-i386 relocs use a special function; it's coff_i386_reloc in coff-i386.c. The function specifically adds the addend field into the object file, knowing that bfd_install_relocation is not going to. If you remove that line, then coff-i386.c will wind up adding the addend field in twice. It's trivial to fix; it just needs to be done. The problem with removing the line is just that it may break some working code. With BFD it's hard to be sure of anything. The right way to deal with this is simply to build and test at least all the supported COFF targets. It should be straightforward if time and disk space consuming. For each target: 1) build the linker 2) generate some executable, and link it using -r (I would probably use paranoia.o and link against newlib/libc.a, which for all the supported targets would be available in /usr/cygnus/progressive/H-host/target/lib/libc.a). 3) make the change to reloc.c 4) rebuild the linker 5) repeat step 2 6) if the resulting object files are the same, you have at least made it no worse 7) if they are different you have to figure out which version is right. */ relocation -= reloc_entry->addend; /* FIXME: There should be no target specific code here... */ if (strcmp (abfd->xvec->name, "coff-z8k") != 0) reloc_entry->addend = 0; } else { reloc_entry->addend = relocation; } } /* FIXME: This overflow checking is incomplete, because the value might have overflowed before we get here. For a correct check we need to compute the value in a size larger than bitsize, but we can't reasonably do that for a reloc the same size as a host machine word. FIXME: We should also do overflow checking on the result after adding in the value contained in the object file. */ if (howto->complain_on_overflow != complain_overflow_dont) flag = bfd_check_overflow (howto->complain_on_overflow, howto->bitsize, howto->rightshift, bfd_arch_bits_per_address (abfd), relocation); /* Either we are relocating all the way, or we don't want to apply the relocation to the reloc entry (probably because there isn't any room in the output format to describe addends to relocs). */ /* The cast to bfd_vma avoids a bug in the Alpha OSF/1 C compiler (OSF version 1.3, compiler version 3.11). It miscompiles the following program: struct str { unsigned int i0; } s = { 0 }; int main () { unsigned long x; x = 0x100000000; x <<= (unsigned long) s.i0; if (x == 0) printf ("failed\n"); else printf ("succeeded (%lx)\n", x); } */ relocation >>= (bfd_vma) howto->rightshift; /* Shift everything up to where it's going to be used. */ relocation <<= (bfd_vma) howto->bitpos; /* Wait for the day when all have the mask in them. */ /* What we do: i instruction to be left alone o offset within instruction r relocation offset to apply S src mask D dst mask N ~dst mask A part 1 B part 2 R result Do this: (( i i i i i o o o o o from bfd_get<size> and S S S S S) to get the size offset we want + r r r r r r r r r r) to get the final value to place and D D D D D to chop to right size ----------------------- = A A A A A And this: ( i i i i i o o o o o from bfd_get<size> and N N N N N ) get instruction ----------------------- = B B B B B And then: ( B B B B B or A A A A A) ----------------------- = R R R R R R R R R R put into bfd_put<size> */ #define DOIT(x) \ x = ( (x & ~howto->dst_mask) | (((x & howto->src_mask) + relocation) & howto->dst_mask)) data = (bfd_byte *) data_start + (octets - data_start_offset); switch (howto->size) { case 0: { char x = bfd_get_8 (abfd, data); DOIT (x); bfd_put_8 (abfd, x, data); } break; case 1: { short x = bfd_get_16 (abfd, data); DOIT (x); bfd_put_16 (abfd, (bfd_vma) x, data); } break; case 2: { long x = bfd_get_32 (abfd, data); DOIT (x); bfd_put_32 (abfd, (bfd_vma) x, data); } break; case -2: { long x = bfd_get_32 (abfd, data); relocation = -relocation; DOIT (x); bfd_put_32 (abfd, (bfd_vma) x, data); } break; case 3: /* Do nothing */ break; case 4: { bfd_vma x = bfd_get_64 (abfd, data); DOIT (x); bfd_put_64 (abfd, x, data); } break; default: return bfd_reloc_other; } return flag; } /* This relocation routine is used by some of the backend linkers. They do not construct asymbol or arelent structures, so there is no reason for them to use bfd_perform_relocation. Also, bfd_perform_relocation is so hacked up it is easier to write a new function than to try to deal with it. This routine does a final relocation. Whether it is useful for a relocatable link depends upon how the object format defines relocations. FIXME: This routine ignores any special_function in the HOWTO, since the existing special_function values have been written for bfd_perform_relocation. HOWTO is the reloc howto information. INPUT_BFD is the BFD which the reloc applies to. INPUT_SECTION is the section which the reloc applies to. CONTENTS is the contents of the section. ADDRESS is the address of the reloc within INPUT_SECTION. VALUE is the value of the symbol the reloc refers to. ADDEND is the addend of the reloc. */ bfd_reloc_status_type _bfd_final_link_relocate (reloc_howto_type *howto, bfd *input_bfd, asection *input_section, bfd_byte *contents, bfd_vma address, bfd_vma value, bfd_vma addend) { bfd_vma relocation; /* Sanity check the address. */ if (address > bfd_get_section_limit (input_bfd, input_section)) return bfd_reloc_outofrange; /* This function assumes that we are dealing with a basic relocation against a symbol. We want to compute the value of the symbol to relocate to. This is just VALUE, the value of the symbol, plus ADDEND, any addend associated with the reloc. */ relocation = value + addend; /* If the relocation is PC relative, we want to set RELOCATION to the distance between the symbol (currently in RELOCATION) and the location we are relocating. Some targets (e.g., i386-aout) arrange for the contents of the section to be the negative of the offset of the location within the section; for such targets pcrel_offset is FALSE. Other targets (e.g., m88kbcs or ELF) simply leave the contents of the section as zero; for such targets pcrel_offset is TRUE. If pcrel_offset is FALSE we do not need to subtract out the offset of the location within the section (which is just ADDRESS). */ if (howto->pc_relative) { relocation -= (input_section->output_section->vma + input_section->output_offset); if (howto->pcrel_offset) relocation -= address; } return _bfd_relocate_contents (howto, input_bfd, relocation, contents + address); } /* Relocate a given location using a given value and howto. */ bfd_reloc_status_type _bfd_relocate_contents (reloc_howto_type *howto, bfd *input_bfd, bfd_vma relocation, bfd_byte *location) { int size; bfd_vma x = 0; bfd_reloc_status_type flag; unsigned int rightshift = howto->rightshift; unsigned int bitpos = howto->bitpos; /* If the size is negative, negate RELOCATION. This isn't very general. */ if (howto->size < 0) relocation = -relocation; /* Get the value we are going to relocate. */ size = bfd_get_reloc_size (howto); switch (size) { default: case 0: abort (); case 1: x = bfd_get_8 (input_bfd, location); break; case 2: x = bfd_get_16 (input_bfd, location); break; case 4: x = bfd_get_32 (input_bfd, location); break; case 8: #ifdef BFD64 x = bfd_get_64 (input_bfd, location); #else abort (); #endif break; } /* Check for overflow. FIXME: We may drop bits during the addition which we don't check for. We must either check at every single operation, which would be tedious, or we must do the computations in a type larger than bfd_vma, which would be inefficient. */ flag = bfd_reloc_ok; if (howto->complain_on_overflow != complain_overflow_dont) { bfd_vma addrmask, fieldmask, signmask, ss; bfd_vma a, b, sum; /* Get the values to be added together. For signed and unsigned relocations, we assume that all values should be truncated to the size of an address. For bitfields, all the bits matter. See also bfd_check_overflow. */ fieldmask = N_ONES (howto->bitsize); signmask = ~fieldmask; addrmask = (N_ONES (bfd_arch_bits_per_address (input_bfd)) | (fieldmask << rightshift)); a = (relocation & addrmask) >> rightshift; b = (x & howto->src_mask & addrmask) >> bitpos; addrmask >>= rightshift; switch (howto->complain_on_overflow) { case complain_overflow_signed: /* If any sign bits are set, all sign bits must be set. That is, A must be a valid negative address after shifting. */ signmask = ~(fieldmask >> 1); /* Fall thru */ case complain_overflow_bitfield: /* Much like the signed check, but for a field one bit wider. We allow a bitfield to represent numbers in the range -2**n to 2**n-1, where n is the number of bits in the field. Note that when bfd_vma is 32 bits, a 32-bit reloc can't overflow, which is exactly what we want. */ ss = a & signmask; if (ss != 0 && ss != (addrmask & signmask)) flag = bfd_reloc_overflow; /* We only need this next bit of code if the sign bit of B is below the sign bit of A. This would only happen if SRC_MASK had fewer bits than BITSIZE. Note that if SRC_MASK has more bits than BITSIZE, we can get into trouble; we would need to verify that B is in range, as we do for A above. */ ss = ((~howto->src_mask) >> 1) & howto->src_mask; ss >>= bitpos; /* Set all the bits above the sign bit. */ b = (b ^ ss) - ss; /* Now we can do the addition. */ sum = a + b; /* See if the result has the correct sign. Bits above the sign bit are junk now; ignore them. If the sum is positive, make sure we did not have all negative inputs; if the sum is negative, make sure we did not have all positive inputs. The test below looks only at the sign bits, and it really just SIGN (A) == SIGN (B) && SIGN (A) != SIGN (SUM) We mask with addrmask here to explicitly allow an address wrap-around. The Linux kernel relies on it, and it is the only way to write assembler code which can run when loaded at a location 0x80000000 away from the location at which it is linked. */ if (((~(a ^ b)) & (a ^ sum)) & signmask & addrmask) flag = bfd_reloc_overflow; break; case complain_overflow_unsigned: /* Checking for an unsigned overflow is relatively easy: trim the addresses and add, and trim the result as well. Overflow is normally indicated when the result does not fit in the field. However, we also need to consider the case when, e.g., fieldmask is 0x7fffffff or smaller, an input is 0x80000000, and bfd_vma is only 32 bits; then we will get sum == 0, but there is an overflow, since the inputs did not fit in the field. Instead of doing a separate test, we can check for this by or-ing in the operands when testing for the sum overflowing its final field. */ sum = (a + b) & addrmask; if ((a | b | sum) & signmask) flag = bfd_reloc_overflow; break; default: abort (); } } /* Put RELOCATION in the right bits. */ relocation >>= (bfd_vma) rightshift; relocation <<= (bfd_vma) bitpos; /* Add RELOCATION to the right bits of X. */ x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + relocation) & howto->dst_mask)); /* Put the relocated value back in the object file. */ switch (size) { default: abort (); case 1: bfd_put_8 (input_bfd, x, location); break; case 2: bfd_put_16 (input_bfd, x, location); break; case 4: bfd_put_32 (input_bfd, x, location); break; case 8: #ifdef BFD64 bfd_put_64 (input_bfd, x, location); #else abort (); #endif break; } return flag; } /* Clear a given location using a given howto, by applying a fixed relocation value and discarding any in-place addend. This is used for fixed-up relocations against discarded symbols, to make ignorable debug or unwind information more obvious. */ void _bfd_clear_contents (reloc_howto_type *howto, bfd *input_bfd, asection *input_section, bfd_byte *location) { int size; bfd_vma x = 0; /* Get the value we are going to relocate. */ size = bfd_get_reloc_size (howto); switch (size) { default: case 0: abort (); case 1: x = bfd_get_8 (input_bfd, location); break; case 2: x = bfd_get_16 (input_bfd, location); break; case 4: x = bfd_get_32 (input_bfd, location); break; case 8: #ifdef BFD64 x = bfd_get_64 (input_bfd, location); #else abort (); #endif break; } /* Zero out the unwanted bits of X. */ x &= ~howto->dst_mask; /* For a range list, use 1 instead of 0 as placeholder. 0 would terminate the list, hiding any later entries. */ if (strcmp (bfd_get_section_name (input_bfd, input_section), ".debug_ranges") == 0 && (howto->dst_mask & 1) != 0) x |= 1; /* Put the relocated value back in the object file. */ switch (size) { default: case 0: abort (); case 1: bfd_put_8 (input_bfd, x, location); break; case 2: bfd_put_16 (input_bfd, x, location); break; case 4: bfd_put_32 (input_bfd, x, location); break; case 8: #ifdef BFD64 bfd_put_64 (input_bfd, x, location); #else abort (); #endif break; } } /* DOCDD INODE howto manager, , typedef arelent, Relocations SUBSECTION The howto manager When an application wants to create a relocation, but doesn't know what the target machine might call it, it can find out by using this bit of code. */ /* TYPEDEF bfd_reloc_code_type DESCRIPTION The insides of a reloc code. The idea is that, eventually, there will be one enumerator for every type of relocation we ever do. Pass one of these values to <<bfd_reloc_type_lookup>>, and it'll return a howto pointer. This does mean that the application must determine the correct enumerator value; you can't get a howto pointer from a random set of attributes. SENUM bfd_reloc_code_real ENUM BFD_RELOC_64 ENUMX BFD_RELOC_32 ENUMX BFD_RELOC_26 ENUMX BFD_RELOC_24 ENUMX BFD_RELOC_16 ENUMX BFD_RELOC_MICROMIPS_16 ENUMX BFD_RELOC_14 ENUMX BFD_RELOC_8 ENUMDOC Basic absolute relocations of N bits. ENUM BFD_RELOC_64_PCREL ENUMX BFD_RELOC_32_PCREL ENUMX BFD_RELOC_24_PCREL ENUMX BFD_RELOC_16_PCREL ENUMX BFD_RELOC_12_PCREL ENUMX BFD_RELOC_8_PCREL ENUMDOC PC-relative relocations. Sometimes these are relative to the address of the relocation itself; sometimes they are relative to the start of the section containing the relocation. It depends on the specific target. The 24-bit relocation is used in some Intel 960 configurations. ENUM BFD_RELOC_32_SECREL ENUMDOC Section relative relocations. Some targets need this for DWARF2. ENUM BFD_RELOC_32_GOT_PCREL ENUMX BFD_RELOC_16_GOT_PCREL ENUMX BFD_RELOC_8_GOT_PCREL ENUMX BFD_RELOC_32_GOTOFF ENUMX BFD_RELOC_16_GOTOFF ENUMX BFD_RELOC_LO16_GOTOFF ENUMX BFD_RELOC_HI16_GOTOFF ENUMX BFD_RELOC_HI16_S_GOTOFF ENUMX BFD_RELOC_8_GOTOFF ENUMX BFD_RELOC_64_PLT_PCREL ENUMX BFD_RELOC_32_PLT_PCREL ENUMX BFD_RELOC_24_PLT_PCREL ENUMX BFD_RELOC_16_PLT_PCREL ENUMX BFD_RELOC_8_PLT_PCREL ENUMX BFD_RELOC_64_PLTOFF ENUMX BFD_RELOC_32_PLTOFF ENUMX BFD_RELOC_16_PLTOFF ENUMX BFD_RELOC_LO16_PLTOFF ENUMX BFD_RELOC_HI16_PLTOFF ENUMX BFD_RELOC_HI16_S_PLTOFF ENUMX BFD_RELOC_8_PLTOFF ENUMDOC For ELF. ENUM BFD_RELOC_68K_GLOB_DAT ENUMX BFD_RELOC_68K_JMP_SLOT ENUMX BFD_RELOC_68K_RELATIVE ENUMX BFD_RELOC_68K_TLS_GD32 ENUMX BFD_RELOC_68K_TLS_GD16 ENUMX BFD_RELOC_68K_TLS_GD8 ENUMX BFD_RELOC_68K_TLS_LDM32 ENUMX BFD_RELOC_68K_TLS_LDM16 ENUMX BFD_RELOC_68K_TLS_LDM8 ENUMX BFD_RELOC_68K_TLS_LDO32 ENUMX BFD_RELOC_68K_TLS_LDO16 ENUMX BFD_RELOC_68K_TLS_LDO8 ENUMX BFD_RELOC_68K_TLS_IE32 ENUMX BFD_RELOC_68K_TLS_IE16 ENUMX BFD_RELOC_68K_TLS_IE8 ENUMX BFD_RELOC_68K_TLS_LE32 ENUMX BFD_RELOC_68K_TLS_LE16 ENUMX BFD_RELOC_68K_TLS_LE8 ENUMDOC Relocations used by 68K ELF. ENUM BFD_RELOC_32_BASEREL ENUMX BFD_RELOC_16_BASEREL ENUMX BFD_RELOC_LO16_BASEREL ENUMX BFD_RELOC_HI16_BASEREL ENUMX BFD_RELOC_HI16_S_BASEREL ENUMX BFD_RELOC_8_BASEREL ENUMX BFD_RELOC_RVA ENUMDOC Linkage-table relative. ENUM BFD_RELOC_8_FFnn ENUMDOC Absolute 8-bit relocation, but used to form an address like 0xFFnn. ENUM BFD_RELOC_32_PCREL_S2 ENUMX BFD_RELOC_16_PCREL_S2 ENUMX BFD_RELOC_23_PCREL_S2 ENUMDOC These PC-relative relocations are stored as word displacements -- i.e., byte displacements shifted right two bits. The 30-bit word displacement (<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The signed 16-bit displacement is used on the MIPS, and the 23-bit displacement is used on the Alpha. ENUM BFD_RELOC_MICROMIPS_7_PCREL_S1 ENUMX BFD_RELOC_MICROMIPS_10_PCREL_S1 ENUMX BFD_RELOC_MICROMIPS_16_PCREL_S1 ENUMDOC MicroMIPS PC-relative relocations. ENUM BFD_RELOC_HI22 ENUMX BFD_RELOC_LO10 ENUMDOC High 22 bits and low 10 bits of 32-bit value, placed into lower bits of the target word. These are used on the SPARC. ENUM BFD_RELOC_GPREL16 ENUMX BFD_RELOC_MICROMIPS_GPREL16 ENUMX BFD_RELOC_GPREL32 ENUMDOC For systems that allocate a Global Pointer register, these are displacements off that register. These relocation types are handled specially, because the value the register will have is decided relatively late. ENUM BFD_RELOC_I960_CALLJ ENUMDOC Reloc types used for i960/b.out. ENUM BFD_RELOC_NONE ENUMX BFD_RELOC_SPARC_WDISP22 ENUMX BFD_RELOC_SPARC22 ENUMX BFD_RELOC_SPARC13 ENUMX BFD_RELOC_SPARC_GOT10 ENUMX BFD_RELOC_SPARC_GOT13 ENUMX BFD_RELOC_SPARC_GOT22 ENUMX BFD_RELOC_SPARC_PC10 ENUMX BFD_RELOC_SPARC_PC22 ENUMX BFD_RELOC_SPARC_WPLT30 ENUMX BFD_RELOC_SPARC_COPY ENUMX BFD_RELOC_SPARC_GLOB_DAT ENUMX BFD_RELOC_SPARC_JMP_SLOT ENUMX BFD_RELOC_SPARC_RELATIVE ENUMX BFD_RELOC_SPARC_UA16 ENUMX BFD_RELOC_SPARC_UA32 ENUMX BFD_RELOC_SPARC_UA64 ENUMX BFD_RELOC_SPARC_GOTDATA_HIX22 ENUMX BFD_RELOC_SPARC_GOTDATA_LOX10 ENUMX BFD_RELOC_SPARC_GOTDATA_OP_HIX22 ENUMX BFD_RELOC_SPARC_GOTDATA_OP_LOX10 ENUMX BFD_RELOC_SPARC_GOTDATA_OP ENUMX BFD_RELOC_SPARC_JMP_IREL ENUMX BFD_RELOC_SPARC_IRELATIVE ENUMDOC SPARC ELF relocations. There is probably some overlap with other relocation types already defined. ENUM BFD_RELOC_SPARC_BASE13 ENUMX BFD_RELOC_SPARC_BASE22 ENUMDOC I think these are specific to SPARC a.out (e.g., Sun 4). ENUMEQ BFD_RELOC_SPARC_64 BFD_RELOC_64 ENUMX BFD_RELOC_SPARC_10 ENUMX BFD_RELOC_SPARC_11 ENUMX BFD_RELOC_SPARC_OLO10 ENUMX BFD_RELOC_SPARC_HH22 ENUMX BFD_RELOC_SPARC_HM10 ENUMX BFD_RELOC_SPARC_LM22 ENUMX BFD_RELOC_SPARC_PC_HH22 ENUMX BFD_RELOC_SPARC_PC_HM10 ENUMX BFD_RELOC_SPARC_PC_LM22 ENUMX BFD_RELOC_SPARC_WDISP16 ENUMX BFD_RELOC_SPARC_WDISP19 ENUMX BFD_RELOC_SPARC_7 ENUMX BFD_RELOC_SPARC_6 ENUMX BFD_RELOC_SPARC_5 ENUMEQX BFD_RELOC_SPARC_DISP64 BFD_RELOC_64_PCREL ENUMX BFD_RELOC_SPARC_PLT32 ENUMX BFD_RELOC_SPARC_PLT64 ENUMX BFD_RELOC_SPARC_HIX22 ENUMX BFD_RELOC_SPARC_LOX10 ENUMX BFD_RELOC_SPARC_H44 ENUMX BFD_RELOC_SPARC_M44 ENUMX BFD_RELOC_SPARC_L44 ENUMX BFD_RELOC_SPARC_REGISTER ENUMDOC SPARC64 relocations ENUM BFD_RELOC_SPARC_REV32 ENUMDOC SPARC little endian relocation ENUM BFD_RELOC_SPARC_TLS_GD_HI22 ENUMX BFD_RELOC_SPARC_TLS_GD_LO10 ENUMX BFD_RELOC_SPARC_TLS_GD_ADD ENUMX BFD_RELOC_SPARC_TLS_GD_CALL ENUMX BFD_RELOC_SPARC_TLS_LDM_HI22 ENUMX BFD_RELOC_SPARC_TLS_LDM_LO10 ENUMX BFD_RELOC_SPARC_TLS_LDM_ADD ENUMX BFD_RELOC_SPARC_TLS_LDM_CALL ENUMX BFD_RELOC_SPARC_TLS_LDO_HIX22 ENUMX BFD_RELOC_SPARC_TLS_LDO_LOX10 ENUMX BFD_RELOC_SPARC_TLS_LDO_ADD ENUMX BFD_RELOC_SPARC_TLS_IE_HI22 ENUMX BFD_RELOC_SPARC_TLS_IE_LO10 ENUMX BFD_RELOC_SPARC_TLS_IE_LD ENUMX BFD_RELOC_SPARC_TLS_IE_LDX ENUMX BFD_RELOC_SPARC_TLS_IE_ADD ENUMX BFD_RELOC_SPARC_TLS_LE_HIX22 ENUMX BFD_RELOC_SPARC_TLS_LE_LOX10 ENUMX BFD_RELOC_SPARC_TLS_DTPMOD32 ENUMX BFD_RELOC_SPARC_TLS_DTPMOD64 ENUMX BFD_RELOC_SPARC_TLS_DTPOFF32 ENUMX BFD_RELOC_SPARC_TLS_DTPOFF64 ENUMX BFD_RELOC_SPARC_TLS_TPOFF32 ENUMX BFD_RELOC_SPARC_TLS_TPOFF64 ENUMDOC SPARC TLS relocations ENUM BFD_RELOC_SPU_IMM7 ENUMX BFD_RELOC_SPU_IMM8 ENUMX BFD_RELOC_SPU_IMM10 ENUMX BFD_RELOC_SPU_IMM10W ENUMX BFD_RELOC_SPU_IMM16 ENUMX BFD_RELOC_SPU_IMM16W ENUMX BFD_RELOC_SPU_IMM18 ENUMX BFD_RELOC_SPU_PCREL9a ENUMX BFD_RELOC_SPU_PCREL9b ENUMX BFD_RELOC_SPU_PCREL16 ENUMX BFD_RELOC_SPU_LO16 ENUMX BFD_RELOC_SPU_HI16 ENUMX BFD_RELOC_SPU_PPU32 ENUMX BFD_RELOC_SPU_PPU64 ENUMX BFD_RELOC_SPU_ADD_PIC ENUMDOC SPU Relocations. ENUM BFD_RELOC_ALPHA_GPDISP_HI16 ENUMDOC Alpha ECOFF and ELF relocations. Some of these treat the symbol or "addend" in some special way. For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when writing; when reading, it will be the absolute section symbol. The addend is the displacement in bytes of the "lda" instruction from the "ldah" instruction (which is at the address of this reloc). ENUM BFD_RELOC_ALPHA_GPDISP_LO16 ENUMDOC For GPDISP_LO16 ("ignore") relocations, the symbol is handled as with GPDISP_HI16 relocs. The addend is ignored when writing the relocations out, and is filled in with the file's GP value on reading, for convenience. ENUM BFD_RELOC_ALPHA_GPDISP ENUMDOC The ELF GPDISP relocation is exactly the same as the GPDISP_HI16 relocation except that there is no accompanying GPDISP_LO16 relocation. ENUM BFD_RELOC_ALPHA_LITERAL ENUMX BFD_RELOC_ALPHA_ELF_LITERAL ENUMX BFD_RELOC_ALPHA_LITUSE ENUMDOC The Alpha LITERAL/LITUSE relocs are produced by a symbol reference; the assembler turns it into a LDQ instruction to load the address of the symbol, and then fills in a register in the real instruction. The LITERAL reloc, at the LDQ instruction, refers to the .lita section symbol. The addend is ignored when writing, but is filled in with the file's GP value on reading, for convenience, as with the GPDISP_LO16 reloc. The ELF_LITERAL reloc is somewhere between 16_GOTOFF and GPDISP_LO16. It should refer to the symbol to be referenced, as with 16_GOTOFF, but it generates output not based on the position within the .got section, but relative to the GP value chosen for the file during the final link stage. The LITUSE reloc, on the instruction using the loaded address, gives information to the linker that it might be able to use to optimize away some literal section references. The symbol is ignored (read as the absolute section symbol), and the "addend" indicates the type of instruction using the register: 1 - "memory" fmt insn 2 - byte-manipulation (byte offset reg) 3 - jsr (target of branch) ENUM BFD_RELOC_ALPHA_HINT ENUMDOC The HINT relocation indicates a value that should be filled into the "hint" field of a jmp/jsr/ret instruction, for possible branch- prediction logic which may be provided on some processors. ENUM BFD_RELOC_ALPHA_LINKAGE ENUMDOC The LINKAGE relocation outputs a linkage pair in the object file, which is filled by the linker. ENUM BFD_RELOC_ALPHA_CODEADDR ENUMDOC The CODEADDR relocation outputs a STO_CA in the object file, which is filled by the linker. ENUM BFD_RELOC_ALPHA_GPREL_HI16 ENUMX BFD_RELOC_ALPHA_GPREL_LO16 ENUMDOC The GPREL_HI/LO relocations together form a 32-bit offset from the GP register. ENUM BFD_RELOC_ALPHA_BRSGP ENUMDOC Like BFD_RELOC_23_PCREL_S2, except that the source and target must share a common GP, and the target address is adjusted for STO_ALPHA_STD_GPLOAD. ENUM BFD_RELOC_ALPHA_NOP ENUMDOC The NOP relocation outputs a NOP if the longword displacement between two procedure entry points is < 2^21. ENUM BFD_RELOC_ALPHA_BSR ENUMDOC The BSR relocation outputs a BSR if the longword displacement between two procedure entry points is < 2^21. ENUM BFD_RELOC_ALPHA_LDA ENUMDOC The LDA relocation outputs a LDA if the longword displacement between two procedure entry points is < 2^16. ENUM BFD_RELOC_ALPHA_BOH ENUMDOC The BOH relocation outputs a BSR if the longword displacement between two procedure entry points is < 2^21, or else a hint. ENUM BFD_RELOC_ALPHA_TLSGD ENUMX BFD_RELOC_ALPHA_TLSLDM ENUMX BFD_RELOC_ALPHA_DTPMOD64 ENUMX BFD_RELOC_ALPHA_GOTDTPREL16 ENUMX BFD_RELOC_ALPHA_DTPREL64 ENUMX BFD_RELOC_ALPHA_DTPREL_HI16 ENUMX BFD_RELOC_ALPHA_DTPREL_LO16 ENUMX BFD_RELOC_ALPHA_DTPREL16 ENUMX BFD_RELOC_ALPHA_GOTTPREL16 ENUMX BFD_RELOC_ALPHA_TPREL64 ENUMX BFD_RELOC_ALPHA_TPREL_HI16 ENUMX BFD_RELOC_ALPHA_TPREL_LO16 ENUMX BFD_RELOC_ALPHA_TPREL16 ENUMDOC Alpha thread-local storage relocations. ENUM BFD_RELOC_MIPS_JMP ENUMDOC Bits 27..2 of the relocation address shifted right 2 bits; simple reloc otherwise. ENUM BFD_RELOC_MICROMIPS_JMP ENUMDOC The microMIPS jump instruction. ENUM BFD_RELOC_MIPS16_JMP ENUMDOC The MIPS16 jump instruction. ENUM BFD_RELOC_MIPS16_GPREL ENUMDOC MIPS16 GP relative reloc. ENUM BFD_RELOC_HI16 ENUMX BFD_RELOC_MICROMIPS_HI16 ENUMDOC High 16 bits of 32-bit value; simple reloc. ENUM BFD_RELOC_HI16_S ENUMX BFD_RELOC_MICROMIPS_HI16_S ENUMDOC High 16 bits of 32-bit value but the low 16 bits will be sign extended and added to form the final result. If the low 16 bits form a negative number, we need to add one to the high value to compensate for the borrow when the low bits are added. ENUM BFD_RELOC_LO16 ENUMX BFD_RELOC_MICROMIPS_LO16 ENUMDOC Low 16 bits. ENUM BFD_RELOC_HI16_PCREL ENUMDOC High 16 bits of 32-bit pc-relative value ENUM BFD_RELOC_HI16_S_PCREL ENUMDOC High 16 bits of 32-bit pc-relative value, adjusted ENUM BFD_RELOC_LO16_PCREL ENUMDOC Low 16 bits of pc-relative value ENUM BFD_RELOC_MIPS16_GOT16 ENUMX BFD_RELOC_MIPS16_CALL16 ENUMDOC Equivalent of BFD_RELOC_MIPS_*, but with the MIPS16 layout of 16-bit immediate fields ENUM BFD_RELOC_MIPS16_HI16 ENUMDOC MIPS16 high 16 bits of 32-bit value. ENUM BFD_RELOC_MIPS16_HI16_S ENUMDOC MIPS16 high 16 bits of 32-bit value but the low 16 bits will be sign extended and added to form the final result. If the low 16 bits form a negative number, we need to add one to the high value to compensate for the borrow when the low bits are added. ENUM BFD_RELOC_MIPS16_LO16 ENUMDOC MIPS16 low 16 bits. ENUM BFD_RELOC_MIPS_LITERAL ENUMX BFD_RELOC_MICROMIPS_LITERAL ENUMDOC Relocation against a MIPS literal section. ENUM BFD_RELOC_MIPS_GOT16 ENUMX BFD_RELOC_MICROMIPS_GOT16 ENUMX BFD_RELOC_MIPS_CALL16 ENUMX BFD_RELOC_MICROMIPS_CALL16 ENUMX BFD_RELOC_MIPS_GOT_HI16 ENUMX BFD_RELOC_MICROMIPS_GOT_HI16 ENUMX BFD_RELOC_MIPS_GOT_LO16 ENUMX BFD_RELOC_MICROMIPS_GOT_LO16 ENUMX BFD_RELOC_MIPS_CALL_HI16 ENUMX BFD_RELOC_MICROMIPS_CALL_HI16 ENUMX BFD_RELOC_MIPS_CALL_LO16 ENUMX BFD_RELOC_MICROMIPS_CALL_LO16 ENUMX BFD_RELOC_MIPS_SUB ENUMX BFD_RELOC_MICROMIPS_SUB ENUMX BFD_RELOC_MIPS_GOT_PAGE ENUMX BFD_RELOC_MICROMIPS_GOT_PAGE ENUMX BFD_RELOC_MIPS_GOT_OFST ENUMX BFD_RELOC_MICROMIPS_GOT_OFST ENUMX BFD_RELOC_MIPS_GOT_DISP ENUMX BFD_RELOC_MICROMIPS_GOT_DISP ENUMX BFD_RELOC_MIPS_SHIFT5 ENUMX BFD_RELOC_MIPS_SHIFT6 ENUMX BFD_RELOC_MIPS_INSERT_A ENUMX BFD_RELOC_MIPS_INSERT_B ENUMX BFD_RELOC_MIPS_DELETE ENUMX BFD_RELOC_MIPS_HIGHEST ENUMX BFD_RELOC_MICROMIPS_HIGHEST ENUMX BFD_RELOC_MIPS_HIGHER ENUMX BFD_RELOC_MICROMIPS_HIGHER ENUMX BFD_RELOC_MIPS_SCN_DISP ENUMX BFD_RELOC_MICROMIPS_SCN_DISP ENUMX BFD_RELOC_MIPS_REL16 ENUMX BFD_RELOC_MIPS_RELGOT ENUMX BFD_RELOC_MIPS_JALR ENUMX BFD_RELOC_MICROMIPS_JALR ENUMX BFD_RELOC_MIPS_TLS_DTPMOD32 ENUMX BFD_RELOC_MIPS_TLS_DTPREL32 ENUMX BFD_RELOC_MIPS_TLS_DTPMOD64 ENUMX BFD_RELOC_MIPS_TLS_DTPREL64 ENUMX BFD_RELOC_MIPS_TLS_GD ENUMX BFD_RELOC_MICROMIPS_TLS_GD ENUMX BFD_RELOC_MIPS_TLS_LDM ENUMX BFD_RELOC_MICROMIPS_TLS_LDM ENUMX BFD_RELOC_MIPS_TLS_DTPREL_HI16 ENUMX BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16 ENUMX BFD_RELOC_MIPS_TLS_DTPREL_LO16 ENUMX BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16 ENUMX BFD_RELOC_MIPS_TLS_GOTTPREL ENUMX BFD_RELOC_MICROMIPS_TLS_GOTTPREL ENUMX BFD_RELOC_MIPS_TLS_TPREL32 ENUMX BFD_RELOC_MIPS_TLS_TPREL64 ENUMX BFD_RELOC_MIPS_TLS_TPREL_HI16 ENUMX BFD_RELOC_MICROMIPS_TLS_TPREL_HI16 ENUMX BFD_RELOC_MIPS_TLS_TPREL_LO16 ENUMX BFD_RELOC_MICROMIPS_TLS_TPREL_LO16 ENUMDOC MIPS ELF relocations. COMMENT ENUM BFD_RELOC_MIPS_COPY ENUMX BFD_RELOC_MIPS_JUMP_SLOT ENUMDOC MIPS ELF relocations (VxWorks and PLT extensions). COMMENT ENUM BFD_RELOC_MOXIE_10_PCREL ENUMDOC Moxie ELF relocations. COMMENT ENUM BFD_RELOC_FRV_LABEL16 ENUMX BFD_RELOC_FRV_LABEL24 ENUMX BFD_RELOC_FRV_LO16 ENUMX BFD_RELOC_FRV_HI16 ENUMX BFD_RELOC_FRV_GPREL12 ENUMX BFD_RELOC_FRV_GPRELU12 ENUMX BFD_RELOC_FRV_GPREL32 ENUMX BFD_RELOC_FRV_GPRELHI ENUMX BFD_RELOC_FRV_GPRELLO ENUMX BFD_RELOC_FRV_GOT12 ENUMX BFD_RELOC_FRV_GOTHI ENUMX BFD_RELOC_FRV_GOTLO ENUMX BFD_RELOC_FRV_FUNCDESC ENUMX BFD_RELOC_FRV_FUNCDESC_GOT12 ENUMX BFD_RELOC_FRV_FUNCDESC_GOTHI ENUMX BFD_RELOC_FRV_FUNCDESC_GOTLO ENUMX BFD_RELOC_FRV_FUNCDESC_VALUE ENUMX BFD_RELOC_FRV_FUNCDESC_GOTOFF12 ENUMX BFD_RELOC_FRV_FUNCDESC_GOTOFFHI ENUMX BFD_RELOC_FRV_FUNCDESC_GOTOFFLO ENUMX BFD_RELOC_FRV_GOTOFF12 ENUMX BFD_RELOC_FRV_GOTOFFHI ENUMX BFD_RELOC_FRV_GOTOFFLO ENUMX BFD_RELOC_FRV_GETTLSOFF ENUMX BFD_RELOC_FRV_TLSDESC_VALUE ENUMX BFD_RELOC_FRV_GOTTLSDESC12 ENUMX BFD_RELOC_FRV_GOTTLSDESCHI ENUMX BFD_RELOC_FRV_GOTTLSDESCLO ENUMX BFD_RELOC_FRV_TLSMOFF12 ENUMX BFD_RELOC_FRV_TLSMOFFHI ENUMX BFD_RELOC_FRV_TLSMOFFLO ENUMX BFD_RELOC_FRV_GOTTLSOFF12 ENUMX BFD_RELOC_FRV_GOTTLSOFFHI ENUMX BFD_RELOC_FRV_GOTTLSOFFLO ENUMX BFD_RELOC_FRV_TLSOFF ENUMX BFD_RELOC_FRV_TLSDESC_RELAX ENUMX BFD_RELOC_FRV_GETTLSOFF_RELAX ENUMX BFD_RELOC_FRV_TLSOFF_RELAX ENUMX BFD_RELOC_FRV_TLSMOFF ENUMDOC Fujitsu Frv Relocations. COMMENT ENUM BFD_RELOC_MN10300_GOTOFF24 ENUMDOC This is a 24bit GOT-relative reloc for the mn10300. ENUM BFD_RELOC_MN10300_GOT32 ENUMDOC This is a 32bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction. ENUM BFD_RELOC_MN10300_GOT24 ENUMDOC This is a 24bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction. ENUM BFD_RELOC_MN10300_GOT16 ENUMDOC This is a 16bit GOT-relative reloc for the mn10300, offset by two bytes in the instruction. ENUM BFD_RELOC_MN10300_COPY ENUMDOC Copy symbol at runtime. ENUM BFD_RELOC_MN10300_GLOB_DAT ENUMDOC Create GOT entry. ENUM BFD_RELOC_MN10300_JMP_SLOT ENUMDOC Create PLT entry. ENUM BFD_RELOC_MN10300_RELATIVE ENUMDOC Adjust by program base. ENUM BFD_RELOC_MN10300_SYM_DIFF ENUMDOC Together with another reloc targeted at the same location, allows for a value that is the difference of two symbols in the same section. ENUM BFD_RELOC_MN10300_ALIGN ENUMDOC The addend of this reloc is an alignment power that must be honoured at the offset's location, regardless of linker relaxation. COMMENT ENUM BFD_RELOC_386_GOT32 ENUMX BFD_RELOC_386_PLT32 ENUMX BFD_RELOC_386_COPY ENUMX BFD_RELOC_386_GLOB_DAT ENUMX BFD_RELOC_386_JUMP_SLOT ENUMX BFD_RELOC_386_RELATIVE ENUMX BFD_RELOC_386_GOTOFF ENUMX BFD_RELOC_386_GOTPC ENUMX BFD_RELOC_386_TLS_TPOFF ENUMX BFD_RELOC_386_TLS_IE ENUMX BFD_RELOC_386_TLS_GOTIE ENUMX BFD_RELOC_386_TLS_LE ENUMX BFD_RELOC_386_TLS_GD ENUMX BFD_RELOC_386_TLS_LDM ENUMX BFD_RELOC_386_TLS_LDO_32 ENUMX BFD_RELOC_386_TLS_IE_32 ENUMX BFD_RELOC_386_TLS_LE_32 ENUMX BFD_RELOC_386_TLS_DTPMOD32 ENUMX BFD_RELOC_386_TLS_DTPOFF32 ENUMX BFD_RELOC_386_TLS_TPOFF32 ENUMX BFD_RELOC_386_TLS_GOTDESC ENUMX BFD_RELOC_386_TLS_DESC_CALL ENUMX BFD_RELOC_386_TLS_DESC ENUMX BFD_RELOC_386_IRELATIVE ENUMDOC i386/elf relocations ENUM BFD_RELOC_X86_64_GOT32 ENUMX BFD_RELOC_X86_64_PLT32 ENUMX BFD_RELOC_X86_64_COPY ENUMX BFD_RELOC_X86_64_GLOB_DAT ENUMX BFD_RELOC_X86_64_JUMP_SLOT ENUMX BFD_RELOC_X86_64_RELATIVE ENUMX BFD_RELOC_X86_64_GOTPCREL ENUMX BFD_RELOC_X86_64_32S ENUMX BFD_RELOC_X86_64_DTPMOD64 ENUMX BFD_RELOC_X86_64_DTPOFF64 ENUMX BFD_RELOC_X86_64_TPOFF64 ENUMX BFD_RELOC_X86_64_TLSGD ENUMX BFD_RELOC_X86_64_TLSLD ENUMX BFD_RELOC_X86_64_DTPOFF32 ENUMX BFD_RELOC_X86_64_GOTTPOFF ENUMX BFD_RELOC_X86_64_TPOFF32 ENUMX BFD_RELOC_X86_64_GOTOFF64 ENUMX BFD_RELOC_X86_64_GOTPC32 ENUMX BFD_RELOC_X86_64_GOT64 ENUMX BFD_RELOC_X86_64_GOTPCREL64 ENUMX BFD_RELOC_X86_64_GOTPC64 ENUMX BFD_RELOC_X86_64_GOTPLT64 ENUMX BFD_RELOC_X86_64_PLTOFF64 ENUMX BFD_RELOC_X86_64_GOTPC32_TLSDESC ENUMX BFD_RELOC_X86_64_TLSDESC_CALL ENUMX BFD_RELOC_X86_64_TLSDESC ENUMX BFD_RELOC_X86_64_IRELATIVE ENUMDOC x86-64/elf relocations ENUM BFD_RELOC_NS32K_IMM_8 ENUMX BFD_RELOC_NS32K_IMM_16 ENUMX BFD_RELOC_NS32K_IMM_32 ENUMX BFD_RELOC_NS32K_IMM_8_PCREL ENUMX BFD_RELOC_NS32K_IMM_16_PCREL ENUMX BFD_RELOC_NS32K_IMM_32_PCREL ENUMX BFD_RELOC_NS32K_DISP_8 ENUMX BFD_RELOC_NS32K_DISP_16 ENUMX BFD_RELOC_NS32K_DISP_32 ENUMX BFD_RELOC_NS32K_DISP_8_PCREL ENUMX BFD_RELOC_NS32K_DISP_16_PCREL ENUMX BFD_RELOC_NS32K_DISP_32_PCREL ENUMDOC ns32k relocations ENUM BFD_RELOC_PDP11_DISP_8_PCREL ENUMX BFD_RELOC_PDP11_DISP_6_PCREL ENUMDOC PDP11 relocations ENUM BFD_RELOC_PJ_CODE_HI16 ENUMX BFD_RELOC_PJ_CODE_LO16 ENUMX BFD_RELOC_PJ_CODE_DIR16 ENUMX BFD_RELOC_PJ_CODE_DIR32 ENUMX BFD_RELOC_PJ_CODE_REL16 ENUMX BFD_RELOC_PJ_CODE_REL32 ENUMDOC Picojava relocs. Not all of these appear in object files. ENUM BFD_RELOC_PPC_B26 ENUMX BFD_RELOC_PPC_BA26 ENUMX BFD_RELOC_PPC_TOC16 ENUMX BFD_RELOC_PPC_B16 ENUMX BFD_RELOC_PPC_B16_BRTAKEN ENUMX BFD_RELOC_PPC_B16_BRNTAKEN ENUMX BFD_RELOC_PPC_BA16 ENUMX BFD_RELOC_PPC_BA16_BRTAKEN ENUMX BFD_RELOC_PPC_BA16_BRNTAKEN ENUMX BFD_RELOC_PPC_COPY ENUMX BFD_RELOC_PPC_GLOB_DAT ENUMX BFD_RELOC_PPC_JMP_SLOT ENUMX BFD_RELOC_PPC_RELATIVE ENUMX BFD_RELOC_PPC_LOCAL24PC ENUMX BFD_RELOC_PPC_EMB_NADDR32 ENUMX BFD_RELOC_PPC_EMB_NADDR16 ENUMX BFD_RELOC_PPC_EMB_NADDR16_LO ENUMX BFD_RELOC_PPC_EMB_NADDR16_HI ENUMX BFD_RELOC_PPC_EMB_NADDR16_HA ENUMX BFD_RELOC_PPC_EMB_SDAI16 ENUMX BFD_RELOC_PPC_EMB_SDA2I16 ENUMX BFD_RELOC_PPC_EMB_SDA2REL ENUMX BFD_RELOC_PPC_EMB_SDA21 ENUMX BFD_RELOC_PPC_EMB_MRKREF ENUMX BFD_RELOC_PPC_EMB_RELSEC16 ENUMX BFD_RELOC_PPC_EMB_RELST_LO ENUMX BFD_RELOC_PPC_EMB_RELST_HI ENUMX BFD_RELOC_PPC_EMB_RELST_HA ENUMX BFD_RELOC_PPC_EMB_BIT_FLD ENUMX BFD_RELOC_PPC_EMB_RELSDA ENUMX BFD_RELOC_PPC64_HIGHER ENUMX BFD_RELOC_PPC64_HIGHER_S ENUMX BFD_RELOC_PPC64_HIGHEST ENUMX BFD_RELOC_PPC64_HIGHEST_S ENUMX BFD_RELOC_PPC64_TOC16_LO ENUMX BFD_RELOC_PPC64_TOC16_HI ENUMX BFD_RELOC_PPC64_TOC16_HA ENUMX BFD_RELOC_PPC64_TOC ENUMX BFD_RELOC_PPC64_PLTGOT16 ENUMX BFD_RELOC_PPC64_PLTGOT16_LO ENUMX BFD_RELOC_PPC64_PLTGOT16_HI ENUMX BFD_RELOC_PPC64_PLTGOT16_HA ENUMX BFD_RELOC_PPC64_ADDR16_DS ENUMX BFD_RELOC_PPC64_ADDR16_LO_DS ENUMX BFD_RELOC_PPC64_GOT16_DS ENUMX BFD_RELOC_PPC64_GOT16_LO_DS ENUMX BFD_RELOC_PPC64_PLT16_LO_DS ENUMX BFD_RELOC_PPC64_SECTOFF_DS ENUMX BFD_RELOC_PPC64_SECTOFF_LO_DS ENUMX BFD_RELOC_PPC64_TOC16_DS ENUMX BFD_RELOC_PPC64_TOC16_LO_DS ENUMX BFD_RELOC_PPC64_PLTGOT16_DS ENUMX BFD_RELOC_PPC64_PLTGOT16_LO_DS ENUMDOC Power(rs6000) and PowerPC relocations. ENUM BFD_RELOC_PPC_TLS ENUMX BFD_RELOC_PPC_TLSGD ENUMX BFD_RELOC_PPC_TLSLD ENUMX BFD_RELOC_PPC_DTPMOD ENUMX BFD_RELOC_PPC_TPREL16 ENUMX BFD_RELOC_PPC_TPREL16_LO ENUMX BFD_RELOC_PPC_TPREL16_HI ENUMX BFD_RELOC_PPC_TPREL16_HA ENUMX BFD_RELOC_PPC_TPREL ENUMX BFD_RELOC_PPC_DTPREL16 ENUMX BFD_RELOC_PPC_DTPREL16_LO ENUMX BFD_RELOC_PPC_DTPREL16_HI ENUMX BFD_RELOC_PPC_DTPREL16_HA ENUMX BFD_RELOC_PPC_DTPREL ENUMX BFD_RELOC_PPC_GOT_TLSGD16 ENUMX BFD_RELOC_PPC_GOT_TLSGD16_LO ENUMX BFD_RELOC_PPC_GOT_TLSGD16_HI ENUMX BFD_RELOC_PPC_GOT_TLSGD16_HA ENUMX BFD_RELOC_PPC_GOT_TLSLD16 ENUMX BFD_RELOC_PPC_GOT_TLSLD16_LO ENUMX BFD_RELOC_PPC_GOT_TLSLD16_HI ENUMX BFD_RELOC_PPC_GOT_TLSLD16_HA ENUMX BFD_RELOC_PPC_GOT_TPREL16 ENUMX BFD_RELOC_PPC_GOT_TPREL16_LO ENUMX BFD_RELOC_PPC_GOT_TPREL16_HI ENUMX BFD_RELOC_PPC_GOT_TPREL16_HA ENUMX BFD_RELOC_PPC_GOT_DTPREL16 ENUMX BFD_RELOC_PPC_GOT_DTPREL16_LO ENUMX BFD_RELOC_PPC_GOT_DTPREL16_HI ENUMX BFD_RELOC_PPC_GOT_DTPREL16_HA ENUMX BFD_RELOC_PPC64_TPREL16_DS ENUMX BFD_RELOC_PPC64_TPREL16_LO_DS ENUMX BFD_RELOC_PPC64_TPREL16_HIGHER ENUMX BFD_RELOC_PPC64_TPREL16_HIGHERA ENUMX BFD_RELOC_PPC64_TPREL16_HIGHEST ENUMX BFD_RELOC_PPC64_TPREL16_HIGHESTA ENUMX BFD_RELOC_PPC64_DTPREL16_DS ENUMX BFD_RELOC_PPC64_DTPREL16_LO_DS ENUMX BFD_RELOC_PPC64_DTPREL16_HIGHER ENUMX BFD_RELOC_PPC64_DTPREL16_HIGHERA ENUMX BFD_RELOC_PPC64_DTPREL16_HIGHEST ENUMX BFD_RELOC_PPC64_DTPREL16_HIGHESTA ENUMDOC PowerPC and PowerPC64 thread-local storage relocations. ENUM BFD_RELOC_I370_D12 ENUMDOC IBM 370/390 relocations ENUM BFD_RELOC_CTOR ENUMDOC The type of reloc used to build a constructor table - at the moment probably a 32 bit wide absolute relocation, but the target can choose. It generally does map to one of the other relocation types. ENUM BFD_RELOC_ARM_PCREL_BRANCH ENUMDOC ARM 26 bit pc-relative branch. The lowest two bits must be zero and are not stored in the instruction. ENUM BFD_RELOC_ARM_PCREL_BLX ENUMDOC ARM 26 bit pc-relative branch. The lowest bit must be zero and is not stored in the instruction. The 2nd lowest bit comes from a 1 bit field in the instruction. ENUM BFD_RELOC_THUMB_PCREL_BLX ENUMDOC Thumb 22 bit pc-relative branch. The lowest bit must be zero and is not stored in the instruction. The 2nd lowest bit comes from a 1 bit field in the instruction. ENUM BFD_RELOC_ARM_PCREL_CALL ENUMDOC ARM 26-bit pc-relative branch for an unconditional BL or BLX instruction. ENUM BFD_RELOC_ARM_PCREL_JUMP ENUMDOC ARM 26-bit pc-relative branch for B or conditional BL instruction. ENUM BFD_RELOC_THUMB_PCREL_BRANCH7 ENUMX BFD_RELOC_THUMB_PCREL_BRANCH9 ENUMX BFD_RELOC_THUMB_PCREL_BRANCH12 ENUMX BFD_RELOC_THUMB_PCREL_BRANCH20 ENUMX BFD_RELOC_THUMB_PCREL_BRANCH23 ENUMX BFD_RELOC_THUMB_PCREL_BRANCH25 ENUMDOC Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches. The lowest bit must be zero and is not stored in the instruction. Note that the corresponding ELF R_ARM_THM_JUMPnn constant has an "nn" one smaller in all cases. Note further that BRANCH23 corresponds to R_ARM_THM_CALL. ENUM BFD_RELOC_ARM_OFFSET_IMM ENUMDOC 12-bit immediate offset, used in ARM-format ldr and str instructions. ENUM BFD_RELOC_ARM_THUMB_OFFSET ENUMDOC 5-bit immediate offset, used in Thumb-format ldr and str instructions. ENUM BFD_RELOC_ARM_TARGET1 ENUMDOC Pc-relative or absolute relocation depending on target. Used for entries in .init_array sections. ENUM BFD_RELOC_ARM_ROSEGREL32 ENUMDOC Read-only segment base relative address. ENUM BFD_RELOC_ARM_SBREL32 ENUMDOC Data segment base relative address. ENUM BFD_RELOC_ARM_TARGET2 ENUMDOC This reloc is used for references to RTTI data from exception handling tables. The actual definition depends on the target. It may be a pc-relative or some form of GOT-indirect relocation. ENUM BFD_RELOC_ARM_PREL31 ENUMDOC 31-bit PC relative address. ENUM BFD_RELOC_ARM_MOVW ENUMX BFD_RELOC_ARM_MOVT ENUMX BFD_RELOC_ARM_MOVW_PCREL ENUMX BFD_RELOC_ARM_MOVT_PCREL ENUMX BFD_RELOC_ARM_THUMB_MOVW ENUMX BFD_RELOC_ARM_THUMB_MOVT ENUMX BFD_RELOC_ARM_THUMB_MOVW_PCREL ENUMX BFD_RELOC_ARM_THUMB_MOVT_PCREL ENUMDOC Low and High halfword relocations for MOVW and MOVT instructions. ENUM BFD_RELOC_ARM_JUMP_SLOT ENUMX BFD_RELOC_ARM_GLOB_DAT ENUMX BFD_RELOC_ARM_GOT32 ENUMX BFD_RELOC_ARM_PLT32 ENUMX BFD_RELOC_ARM_RELATIVE ENUMX BFD_RELOC_ARM_GOTOFF ENUMX BFD_RELOC_ARM_GOTPC ENUMX BFD_RELOC_ARM_GOT_PREL ENUMDOC Relocations for setting up GOTs and PLTs for shared libraries. ENUM BFD_RELOC_ARM_TLS_GD32 ENUMX BFD_RELOC_ARM_TLS_LDO32 ENUMX BFD_RELOC_ARM_TLS_LDM32 ENUMX BFD_RELOC_ARM_TLS_DTPOFF32 ENUMX BFD_RELOC_ARM_TLS_DTPMOD32 ENUMX BFD_RELOC_ARM_TLS_TPOFF32 ENUMX BFD_RELOC_ARM_TLS_IE32 ENUMX BFD_RELOC_ARM_TLS_LE32 ENUMX BFD_RELOC_ARM_TLS_GOTDESC ENUMX BFD_RELOC_ARM_TLS_CALL ENUMX BFD_RELOC_ARM_THM_TLS_CALL ENUMX BFD_RELOC_ARM_TLS_DESCSEQ ENUMX BFD_RELOC_ARM_THM_TLS_DESCSEQ ENUMX BFD_RELOC_ARM_TLS_DESC ENUMDOC ARM thread-local storage relocations. ENUM BFD_RELOC_ARM_ALU_PC_G0_NC ENUMX BFD_RELOC_ARM_ALU_PC_G0 ENUMX BFD_RELOC_ARM_ALU_PC_G1_NC ENUMX BFD_RELOC_ARM_ALU_PC_G1 ENUMX BFD_RELOC_ARM_ALU_PC_G2 ENUMX BFD_RELOC_ARM_LDR_PC_G0 ENUMX BFD_RELOC_ARM_LDR_PC_G1 ENUMX BFD_RELOC_ARM_LDR_PC_G2 ENUMX BFD_RELOC_ARM_LDRS_PC_G0 ENUMX BFD_RELOC_ARM_LDRS_PC_G1 ENUMX BFD_RELOC_ARM_LDRS_PC_G2 ENUMX BFD_RELOC_ARM_LDC_PC_G0 ENUMX BFD_RELOC_ARM_LDC_PC_G1 ENUMX BFD_RELOC_ARM_LDC_PC_G2 ENUMX BFD_RELOC_ARM_ALU_SB_G0_NC ENUMX BFD_RELOC_ARM_ALU_SB_G0 ENUMX BFD_RELOC_ARM_ALU_SB_G1_NC ENUMX BFD_RELOC_ARM_ALU_SB_G1 ENUMX BFD_RELOC_ARM_ALU_SB_G2 ENUMX BFD_RELOC_ARM_LDR_SB_G0 ENUMX BFD_RELOC_ARM_LDR_SB_G1 ENUMX BFD_RELOC_ARM_LDR_SB_G2 ENUMX BFD_RELOC_ARM_LDRS_SB_G0 ENUMX BFD_RELOC_ARM_LDRS_SB_G1 ENUMX BFD_RELOC_ARM_LDRS_SB_G2 ENUMX BFD_RELOC_ARM_LDC_SB_G0 ENUMX BFD_RELOC_ARM_LDC_SB_G1 ENUMX BFD_RELOC_ARM_LDC_SB_G2 ENUMDOC ARM group relocations. ENUM BFD_RELOC_ARM_V4BX ENUMDOC Annotation of BX instructions. ENUM BFD_RELOC_ARM_IMMEDIATE ENUMX BFD_RELOC_ARM_ADRL_IMMEDIATE ENUMX BFD_RELOC_ARM_T32_IMMEDIATE ENUMX BFD_RELOC_ARM_T32_ADD_IMM ENUMX BFD_RELOC_ARM_T32_IMM12 ENUMX BFD_RELOC_ARM_T32_ADD_PC12 ENUMX BFD_RELOC_ARM_SHIFT_IMM ENUMX BFD_RELOC_ARM_SMC ENUMX BFD_RELOC_ARM_SWI ENUMX BFD_RELOC_ARM_MULTI ENUMX BFD_RELOC_ARM_CP_OFF_IMM ENUMX BFD_RELOC_ARM_CP_OFF_IMM_S2 ENUMX BFD_RELOC_ARM_T32_CP_OFF_IMM ENUMX BFD_RELOC_ARM_T32_CP_OFF_IMM_S2 ENUMX BFD_RELOC_ARM_ADR_IMM ENUMX BFD_RELOC_ARM_LDR_IMM ENUMX BFD_RELOC_ARM_LITERAL ENUMX BFD_RELOC_ARM_IN_POOL ENUMX BFD_RELOC_ARM_OFFSET_IMM8 ENUMX BFD_RELOC_ARM_T32_OFFSET_U8 ENUMX BFD_RELOC_ARM_T32_OFFSET_IMM ENUMX BFD_RELOC_ARM_HWLITERAL ENUMX BFD_RELOC_ARM_THUMB_ADD ENUMX BFD_RELOC_ARM_THUMB_IMM ENUMX BFD_RELOC_ARM_THUMB_SHIFT ENUMDOC These relocs are only used within the ARM assembler. They are not (at present) written to any object files. ENUM BFD_RELOC_SH_PCDISP8BY2 ENUMX BFD_RELOC_SH_PCDISP12BY2 ENUMX BFD_RELOC_SH_IMM3 ENUMX BFD_RELOC_SH_IMM3U ENUMX BFD_RELOC_SH_DISP12 ENUMX BFD_RELOC_SH_DISP12BY2 ENUMX BFD_RELOC_SH_DISP12BY4 ENUMX BFD_RELOC_SH_DISP12BY8 ENUMX BFD_RELOC_SH_DISP20 ENUMX BFD_RELOC_SH_DISP20BY8 ENUMX BFD_RELOC_SH_IMM4 ENUMX BFD_RELOC_SH_IMM4BY2 ENUMX BFD_RELOC_SH_IMM4BY4 ENUMX BFD_RELOC_SH_IMM8 ENUMX BFD_RELOC_SH_IMM8BY2 ENUMX BFD_RELOC_SH_IMM8BY4 ENUMX BFD_RELOC_SH_PCRELIMM8BY2 ENUMX BFD_RELOC_SH_PCRELIMM8BY4 ENUMX BFD_RELOC_SH_SWITCH16 ENUMX BFD_RELOC_SH_SWITCH32 ENUMX BFD_RELOC_SH_USES ENUMX BFD_RELOC_SH_COUNT ENUMX BFD_RELOC_SH_ALIGN ENUMX BFD_RELOC_SH_CODE ENUMX BFD_RELOC_SH_DATA ENUMX BFD_RELOC_SH_LABEL ENUMX BFD_RELOC_SH_LOOP_START ENUMX BFD_RELOC_SH_LOOP_END ENUMX BFD_RELOC_SH_COPY ENUMX BFD_RELOC_SH_GLOB_DAT ENUMX BFD_RELOC_SH_JMP_SLOT ENUMX BFD_RELOC_SH_RELATIVE ENUMX BFD_RELOC_SH_GOTPC ENUMX BFD_RELOC_SH_GOT_LOW16 ENUMX BFD_RELOC_SH_GOT_MEDLOW16 ENUMX BFD_RELOC_SH_GOT_MEDHI16 ENUMX BFD_RELOC_SH_GOT_HI16 ENUMX BFD_RELOC_SH_GOTPLT_LOW16 ENUMX BFD_RELOC_SH_GOTPLT_MEDLOW16 ENUMX BFD_RELOC_SH_GOTPLT_MEDHI16 ENUMX BFD_RELOC_SH_GOTPLT_HI16 ENUMX BFD_RELOC_SH_PLT_LOW16 ENUMX BFD_RELOC_SH_PLT_MEDLOW16 ENUMX BFD_RELOC_SH_PLT_MEDHI16 ENUMX BFD_RELOC_SH_PLT_HI16 ENUMX BFD_RELOC_SH_GOTOFF_LOW16 ENUMX BFD_RELOC_SH_GOTOFF_MEDLOW16 ENUMX BFD_RELOC_SH_GOTOFF_MEDHI16 ENUMX BFD_RELOC_SH_GOTOFF_HI16 ENUMX BFD_RELOC_SH_GOTPC_LOW16 ENUMX BFD_RELOC_SH_GOTPC_MEDLOW16 ENUMX BFD_RELOC_SH_GOTPC_MEDHI16 ENUMX BFD_RELOC_SH_GOTPC_HI16 ENUMX BFD_RELOC_SH_COPY64 ENUMX BFD_RELOC_SH_GLOB_DAT64 ENUMX BFD_RELOC_SH_JMP_SLOT64 ENUMX BFD_RELOC_SH_RELATIVE64 ENUMX BFD_RELOC_SH_GOT10BY4 ENUMX BFD_RELOC_SH_GOT10BY8 ENUMX BFD_RELOC_SH_GOTPLT10BY4 ENUMX BFD_RELOC_SH_GOTPLT10BY8 ENUMX BFD_RELOC_SH_GOTPLT32 ENUMX BFD_RELOC_SH_SHMEDIA_CODE ENUMX BFD_RELOC_SH_IMMU5 ENUMX BFD_RELOC_SH_IMMS6 ENUMX BFD_RELOC_SH_IMMS6BY32 ENUMX BFD_RELOC_SH_IMMU6 ENUMX BFD_RELOC_SH_IMMS10 ENUMX BFD_RELOC_SH_IMMS10BY2 ENUMX BFD_RELOC_SH_IMMS10BY4 ENUMX BFD_RELOC_SH_IMMS10BY8 ENUMX BFD_RELOC_SH_IMMS16 ENUMX BFD_RELOC_SH_IMMU16 ENUMX BFD_RELOC_SH_IMM_LOW16 ENUMX BFD_RELOC_SH_IMM_LOW16_PCREL ENUMX BFD_RELOC_SH_IMM_MEDLOW16 ENUMX BFD_RELOC_SH_IMM_MEDLOW16_PCREL ENUMX BFD_RELOC_SH_IMM_MEDHI16 ENUMX BFD_RELOC_SH_IMM_MEDHI16_PCREL ENUMX BFD_RELOC_SH_IMM_HI16 ENUMX BFD_RELOC_SH_IMM_HI16_PCREL ENUMX BFD_RELOC_SH_PT_16 ENUMX BFD_RELOC_SH_TLS_GD_32 ENUMX BFD_RELOC_SH_TLS_LD_32 ENUMX BFD_RELOC_SH_TLS_LDO_32 ENUMX BFD_RELOC_SH_TLS_IE_32 ENUMX BFD_RELOC_SH_TLS_LE_32 ENUMX BFD_RELOC_SH_TLS_DTPMOD32 ENUMX BFD_RELOC_SH_TLS_DTPOFF32 ENUMX BFD_RELOC_SH_TLS_TPOFF32 ENUMDOC Renesas / SuperH SH relocs. Not all of these appear in object files. ENUM BFD_RELOC_ARC_B22_PCREL ENUMDOC ARC Cores relocs. ARC 22 bit pc-relative branch. The lowest two bits must be zero and are not stored in the instruction. The high 20 bits are installed in bits 26 through 7 of the instruction. ENUM BFD_RELOC_ARC_B26 ENUMDOC ARC 26 bit absolute branch. The lowest two bits must be zero and are not stored in the instruction. The high 24 bits are installed in bits 23 through 0. ENUM BFD_RELOC_BFIN_16_IMM ENUMDOC ADI Blackfin 16 bit immediate absolute reloc. ENUM BFD_RELOC_BFIN_16_HIGH ENUMDOC ADI Blackfin 16 bit immediate absolute reloc higher 16 bits. ENUM BFD_RELOC_BFIN_4_PCREL ENUMDOC ADI Blackfin 'a' part of LSETUP. ENUM BFD_RELOC_BFIN_5_PCREL ENUMDOC ADI Blackfin. ENUM BFD_RELOC_BFIN_16_LOW ENUMDOC ADI Blackfin 16 bit immediate absolute reloc lower 16 bits. ENUM BFD_RELOC_BFIN_10_PCREL ENUMDOC ADI Blackfin. ENUM BFD_RELOC_BFIN_11_PCREL ENUMDOC ADI Blackfin 'b' part of LSETUP. ENUM BFD_RELOC_BFIN_12_PCREL_JUMP ENUMDOC ADI Blackfin. ENUM BFD_RELOC_BFIN_12_PCREL_JUMP_S ENUMDOC ADI Blackfin Short jump, pcrel. ENUM BFD_RELOC_BFIN_24_PCREL_CALL_X ENUMDOC ADI Blackfin Call.x not implemented. ENUM BFD_RELOC_BFIN_24_PCREL_JUMP_L ENUMDOC ADI Blackfin Long Jump pcrel. ENUM BFD_RELOC_BFIN_GOT17M4 ENUMX BFD_RELOC_BFIN_GOTHI ENUMX BFD_RELOC_BFIN_GOTLO ENUMX BFD_RELOC_BFIN_FUNCDESC ENUMX BFD_RELOC_BFIN_FUNCDESC_GOT17M4 ENUMX BFD_RELOC_BFIN_FUNCDESC_GOTHI ENUMX BFD_RELOC_BFIN_FUNCDESC_GOTLO ENUMX BFD_RELOC_BFIN_FUNCDESC_VALUE ENUMX BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4 ENUMX BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI ENUMX BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO ENUMX BFD_RELOC_BFIN_GOTOFF17M4 ENUMX BFD_RELOC_BFIN_GOTOFFHI ENUMX BFD_RELOC_BFIN_GOTOFFLO ENUMDOC ADI Blackfin FD-PIC relocations. ENUM BFD_RELOC_BFIN_GOT ENUMDOC ADI Blackfin GOT relocation. ENUM BFD_RELOC_BFIN_PLTPC ENUMDOC ADI Blackfin PLTPC relocation. ENUM BFD_ARELOC_BFIN_PUSH ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_CONST ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_ADD ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_SUB ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_MULT ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_DIV ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_MOD ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_LSHIFT ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_RSHIFT ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_AND ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_OR ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_XOR ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_LAND ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_LOR ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_LEN ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_NEG ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_COMP ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_PAGE ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_HWPAGE ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_ARELOC_BFIN_ADDR ENUMDOC ADI Blackfin arithmetic relocation. ENUM BFD_RELOC_D10V_10_PCREL_R ENUMDOC Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 bits assumed to be 0. ENUM BFD_RELOC_D10V_10_PCREL_L ENUMDOC Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 bits assumed to be 0. This is the same as the previous reloc except it is in the left container, i.e., shifted left 15 bits. ENUM BFD_RELOC_D10V_18 ENUMDOC This is an 18-bit reloc with the right 2 bits assumed to be 0. ENUM BFD_RELOC_D10V_18_PCREL ENUMDOC This is an 18-bit reloc with the right 2 bits assumed to be 0. ENUM BFD_RELOC_D30V_6 ENUMDOC Mitsubishi D30V relocs. This is a 6-bit absolute reloc. ENUM BFD_RELOC_D30V_9_PCREL ENUMDOC This is a 6-bit pc-relative reloc with the right 3 bits assumed to be 0. ENUM BFD_RELOC_D30V_9_PCREL_R ENUMDOC This is a 6-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container. ENUM BFD_RELOC_D30V_15 ENUMDOC This is a 12-bit absolute reloc with the right 3 bitsassumed to be 0. ENUM BFD_RELOC_D30V_15_PCREL ENUMDOC This is a 12-bit pc-relative reloc with the right 3 bits assumed to be 0. ENUM BFD_RELOC_D30V_15_PCREL_R ENUMDOC This is a 12-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container. ENUM BFD_RELOC_D30V_21 ENUMDOC This is an 18-bit absolute reloc with the right 3 bits assumed to be 0. ENUM BFD_RELOC_D30V_21_PCREL ENUMDOC This is an 18-bit pc-relative reloc with the right 3 bits assumed to be 0. ENUM BFD_RELOC_D30V_21_PCREL_R ENUMDOC This is an 18-bit pc-relative reloc with the right 3 bits assumed to be 0. Same as the previous reloc but on the right side of the container. ENUM BFD_RELOC_D30V_32 ENUMDOC This is a 32-bit absolute reloc. ENUM BFD_RELOC_D30V_32_PCREL ENUMDOC This is a 32-bit pc-relative reloc. ENUM BFD_RELOC_DLX_HI16_S ENUMDOC DLX relocs ENUM BFD_RELOC_DLX_LO16 ENUMDOC DLX relocs ENUM BFD_RELOC_DLX_JMP26 ENUMDOC DLX relocs ENUM BFD_RELOC_M32C_HI8 ENUMX BFD_RELOC_M32C_RL_JUMP ENUMX BFD_RELOC_M32C_RL_1ADDR ENUMX BFD_RELOC_M32C_RL_2ADDR ENUMDOC Renesas M16C/M32C Relocations. ENUM BFD_RELOC_M32R_24 ENUMDOC Renesas M32R (formerly Mitsubishi M32R) relocs. This is a 24 bit absolute address. ENUM BFD_RELOC_M32R_10_PCREL ENUMDOC This is a 10-bit pc-relative reloc with the right 2 bits assumed to be 0. ENUM BFD_RELOC_M32R_18_PCREL ENUMDOC This is an 18-bit reloc with the right 2 bits assumed to be 0. ENUM BFD_RELOC_M32R_26_PCREL ENUMDOC This is a 26-bit reloc with the right 2 bits assumed to be 0. ENUM BFD_RELOC_M32R_HI16_ULO ENUMDOC This is a 16-bit reloc containing the high 16 bits of an address used when the lower 16 bits are treated as unsigned. ENUM BFD_RELOC_M32R_HI16_SLO ENUMDOC This is a 16-bit reloc containing the high 16 bits of an address used when the lower 16 bits are treated as signed. ENUM BFD_RELOC_M32R_LO16 ENUMDOC This is a 16-bit reloc containing the lower 16 bits of an address. ENUM BFD_RELOC_M32R_SDA16 ENUMDOC This is a 16-bit reloc containing the small data area offset for use in add3, load, and store instructions. ENUM BFD_RELOC_M32R_GOT24 ENUMX BFD_RELOC_M32R_26_PLTREL ENUMX BFD_RELOC_M32R_COPY ENUMX BFD_RELOC_M32R_GLOB_DAT ENUMX BFD_RELOC_M32R_JMP_SLOT ENUMX BFD_RELOC_M32R_RELATIVE ENUMX BFD_RELOC_M32R_GOTOFF ENUMX BFD_RELOC_M32R_GOTOFF_HI_ULO ENUMX BFD_RELOC_M32R_GOTOFF_HI_SLO ENUMX BFD_RELOC_M32R_GOTOFF_LO ENUMX BFD_RELOC_M32R_GOTPC24 ENUMX BFD_RELOC_M32R_GOT16_HI_ULO ENUMX BFD_RELOC_M32R_GOT16_HI_SLO ENUMX BFD_RELOC_M32R_GOT16_LO ENUMX BFD_RELOC_M32R_GOTPC_HI_ULO ENUMX BFD_RELOC_M32R_GOTPC_HI_SLO ENUMX BFD_RELOC_M32R_GOTPC_LO ENUMDOC For PIC. ENUM BFD_RELOC_V850_9_PCREL ENUMDOC This is a 9-bit reloc ENUM BFD_RELOC_V850_22_PCREL ENUMDOC This is a 22-bit reloc ENUM BFD_RELOC_V850_SDA_16_16_OFFSET ENUMDOC This is a 16 bit offset from the short data area pointer. ENUM BFD_RELOC_V850_SDA_15_16_OFFSET ENUMDOC This is a 16 bit offset (of which only 15 bits are used) from the short data area pointer. ENUM BFD_RELOC_V850_ZDA_16_16_OFFSET ENUMDOC This is a 16 bit offset from the zero data area pointer. ENUM BFD_RELOC_V850_ZDA_15_16_OFFSET ENUMDOC This is a 16 bit offset (of which only 15 bits are used) from the zero data area pointer. ENUM BFD_RELOC_V850_TDA_6_8_OFFSET ENUMDOC This is an 8 bit offset (of which only 6 bits are used) from the tiny data area pointer. ENUM BFD_RELOC_V850_TDA_7_8_OFFSET ENUMDOC This is an 8bit offset (of which only 7 bits are used) from the tiny data area pointer. ENUM BFD_RELOC_V850_TDA_7_7_OFFSET ENUMDOC This is a 7 bit offset from the tiny data area pointer. ENUM BFD_RELOC_V850_TDA_16_16_OFFSET ENUMDOC This is a 16 bit offset from the tiny data area pointer. COMMENT ENUM BFD_RELOC_V850_TDA_4_5_OFFSET ENUMDOC This is a 5 bit offset (of which only 4 bits are used) from the tiny data area pointer. ENUM BFD_RELOC_V850_TDA_4_4_OFFSET ENUMDOC This is a 4 bit offset from the tiny data area pointer. ENUM BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET ENUMDOC This is a 16 bit offset from the short data area pointer, with the bits placed non-contiguously in the instruction. ENUM BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET ENUMDOC This is a 16 bit offset from the zero data area pointer, with the bits placed non-contiguously in the instruction. ENUM BFD_RELOC_V850_CALLT_6_7_OFFSET ENUMDOC This is a 6 bit offset from the call table base pointer. ENUM BFD_RELOC_V850_CALLT_16_16_OFFSET ENUMDOC This is a 16 bit offset from the call table base pointer. ENUM BFD_RELOC_V850_LONGCALL ENUMDOC Used for relaxing indirect function calls. ENUM BFD_RELOC_V850_LONGJUMP ENUMDOC Used for relaxing indirect jumps. ENUM BFD_RELOC_V850_ALIGN ENUMDOC Used to maintain alignment whilst relaxing. ENUM BFD_RELOC_V850_LO16_SPLIT_OFFSET ENUMDOC This is a variation of BFD_RELOC_LO16 that can be used in v850e ld.bu instructions. ENUM BFD_RELOC_V850_16_PCREL ENUMDOC This is a 16-bit reloc. ENUM BFD_RELOC_V850_17_PCREL ENUMDOC This is a 17-bit reloc. ENUM BFD_RELOC_V850_23 ENUMDOC This is a 23-bit reloc. ENUM BFD_RELOC_V850_32_PCREL ENUMDOC This is a 32-bit reloc. ENUM BFD_RELOC_V850_32_ABS ENUMDOC This is a 32-bit reloc. ENUM BFD_RELOC_V850_16_SPLIT_OFFSET ENUMDOC This is a 16-bit reloc. ENUM BFD_RELOC_V850_16_S1 ENUMDOC This is a 16-bit reloc. ENUM BFD_RELOC_V850_LO16_S1 ENUMDOC Low 16 bits. 16 bit shifted by 1. ENUM BFD_RELOC_V850_CALLT_15_16_OFFSET ENUMDOC This is a 16 bit offset from the call table base pointer. ENUM BFD_RELOC_V850_32_GOTPCREL ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_16_GOT ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_32_GOT ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_22_PLT_PCREL ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_32_PLT_PCREL ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_COPY ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_GLOB_DAT ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_JMP_SLOT ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_RELATIVE ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_16_GOTOFF ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_32_GOTOFF ENUMDOC DSO relocations. ENUM BFD_RELOC_V850_CODE ENUMDOC start code. ENUM BFD_RELOC_V850_DATA ENUMDOC start data in text. ENUM BFD_RELOC_MN10300_32_PCREL ENUMDOC This is a 32bit pcrel reloc for the mn10300, offset by two bytes in the instruction. ENUM BFD_RELOC_MN10300_16_PCREL ENUMDOC This is a 16bit pcrel reloc for the mn10300, offset by two bytes in the instruction. ENUM BFD_RELOC_TIC30_LDP ENUMDOC This is a 8bit DP reloc for the tms320c30, where the most significant 8 bits of a 24 bit word are placed into the least significant 8 bits of the opcode. ENUM BFD_RELOC_TIC54X_PARTLS7 ENUMDOC This is a 7bit reloc for the tms320c54x, where the least significant 7 bits of a 16 bit word are placed into the least significant 7 bits of the opcode. ENUM BFD_RELOC_TIC54X_PARTMS9 ENUMDOC This is a 9bit DP reloc for the tms320c54x, where the most significant 9 bits of a 16 bit word are placed into the least significant 9 bits of the opcode. ENUM BFD_RELOC_TIC54X_23 ENUMDOC This is an extended address 23-bit reloc for the tms320c54x. ENUM BFD_RELOC_TIC54X_16_OF_23 ENUMDOC This is a 16-bit reloc for the tms320c54x, where the least significant 16 bits of a 23-bit extended address are placed into the opcode. ENUM BFD_RELOC_TIC54X_MS7_OF_23 ENUMDOC This is a reloc for the tms320c54x, where the most significant 7 bits of a 23-bit extended address are placed into the opcode. ENUM BFD_RELOC_C6000_PCR_S21 ENUMX BFD_RELOC_C6000_PCR_S12 ENUMX BFD_RELOC_C6000_PCR_S10 ENUMX BFD_RELOC_C6000_PCR_S7 ENUMX BFD_RELOC_C6000_ABS_S16 ENUMX BFD_RELOC_C6000_ABS_L16 ENUMX BFD_RELOC_C6000_ABS_H16 ENUMX BFD_RELOC_C6000_SBR_U15_B ENUMX BFD_RELOC_C6000_SBR_U15_H ENUMX BFD_RELOC_C6000_SBR_U15_W ENUMX BFD_RELOC_C6000_SBR_S16 ENUMX BFD_RELOC_C6000_SBR_L16_B ENUMX BFD_RELOC_C6000_SBR_L16_H ENUMX BFD_RELOC_C6000_SBR_L16_W ENUMX BFD_RELOC_C6000_SBR_H16_B ENUMX BFD_RELOC_C6000_SBR_H16_H ENUMX BFD_RELOC_C6000_SBR_H16_W ENUMX BFD_RELOC_C6000_SBR_GOT_U15_W ENUMX BFD_RELOC_C6000_SBR_GOT_L16_W ENUMX BFD_RELOC_C6000_SBR_GOT_H16_W ENUMX BFD_RELOC_C6000_DSBT_INDEX ENUMX BFD_RELOC_C6000_PREL31 ENUMX BFD_RELOC_C6000_COPY ENUMX BFD_RELOC_C6000_ALIGN ENUMX BFD_RELOC_C6000_FPHEAD ENUMX BFD_RELOC_C6000_NOCMP ENUMDOC TMS320C6000 relocations. ENUM BFD_RELOC_FR30_48 ENUMDOC This is a 48 bit reloc for the FR30 that stores 32 bits. ENUM BFD_RELOC_FR30_20 ENUMDOC This is a 32 bit reloc for the FR30 that stores 20 bits split up into two sections. ENUM BFD_RELOC_FR30_6_IN_4 ENUMDOC This is a 16 bit reloc for the FR30 that stores a 6 bit word offset in 4 bits. ENUM BFD_RELOC_FR30_8_IN_8 ENUMDOC This is a 16 bit reloc for the FR30 that stores an 8 bit byte offset into 8 bits. ENUM BFD_RELOC_FR30_9_IN_8 ENUMDOC This is a 16 bit reloc for the FR30 that stores a 9 bit short offset into 8 bits. ENUM BFD_RELOC_FR30_10_IN_8 ENUMDOC This is a 16 bit reloc for the FR30 that stores a 10 bit word offset into 8 bits. ENUM BFD_RELOC_FR30_9_PCREL ENUMDOC This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative short offset into 8 bits. ENUM BFD_RELOC_FR30_12_PCREL ENUMDOC This is a 16 bit reloc for the FR30 that stores a 12 bit pc relative short offset into 11 bits. ENUM BFD_RELOC_MCORE_PCREL_IMM8BY4 ENUMX BFD_RELOC_MCORE_PCREL_IMM11BY2 ENUMX BFD_RELOC_MCORE_PCREL_IMM4BY2 ENUMX BFD_RELOC_MCORE_PCREL_32 ENUMX BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2 ENUMX BFD_RELOC_MCORE_RVA ENUMDOC Motorola Mcore relocations. ENUM BFD_RELOC_MEP_8 ENUMX BFD_RELOC_MEP_16 ENUMX BFD_RELOC_MEP_32 ENUMX BFD_RELOC_MEP_PCREL8A2 ENUMX BFD_RELOC_MEP_PCREL12A2 ENUMX BFD_RELOC_MEP_PCREL17A2 ENUMX BFD_RELOC_MEP_PCREL24A2 ENUMX BFD_RELOC_MEP_PCABS24A2 ENUMX BFD_RELOC_MEP_LOW16 ENUMX BFD_RELOC_MEP_HI16U ENUMX BFD_RELOC_MEP_HI16S ENUMX BFD_RELOC_MEP_GPREL ENUMX BFD_RELOC_MEP_TPREL ENUMX BFD_RELOC_MEP_TPREL7 ENUMX BFD_RELOC_MEP_TPREL7A2 ENUMX BFD_RELOC_MEP_TPREL7A4 ENUMX BFD_RELOC_MEP_UIMM24 ENUMX BFD_RELOC_MEP_ADDR24A4 ENUMX BFD_RELOC_MEP_GNU_VTINHERIT ENUMX BFD_RELOC_MEP_GNU_VTENTRY ENUMDOC Toshiba Media Processor Relocations. COMMENT ENUM BFD_RELOC_MMIX_GETA ENUMX BFD_RELOC_MMIX_GETA_1 ENUMX BFD_RELOC_MMIX_GETA_2 ENUMX BFD_RELOC_MMIX_GETA_3 ENUMDOC These are relocations for the GETA instruction. ENUM BFD_RELOC_MMIX_CBRANCH ENUMX BFD_RELOC_MMIX_CBRANCH_J ENUMX BFD_RELOC_MMIX_CBRANCH_1 ENUMX BFD_RELOC_MMIX_CBRANCH_2 ENUMX BFD_RELOC_MMIX_CBRANCH_3 ENUMDOC These are relocations for a conditional branch instruction. ENUM BFD_RELOC_MMIX_PUSHJ ENUMX BFD_RELOC_MMIX_PUSHJ_1 ENUMX BFD_RELOC_MMIX_PUSHJ_2 ENUMX BFD_RELOC_MMIX_PUSHJ_3 ENUMX BFD_RELOC_MMIX_PUSHJ_STUBBABLE ENUMDOC These are relocations for the PUSHJ instruction. ENUM BFD_RELOC_MMIX_JMP ENUMX BFD_RELOC_MMIX_JMP_1 ENUMX BFD_RELOC_MMIX_JMP_2 ENUMX BFD_RELOC_MMIX_JMP_3 ENUMDOC These are relocations for the JMP instruction. ENUM BFD_RELOC_MMIX_ADDR19 ENUMDOC This is a relocation for a relative address as in a GETA instruction or a branch. ENUM BFD_RELOC_MMIX_ADDR27 ENUMDOC This is a relocation for a relative address as in a JMP instruction. ENUM BFD_RELOC_MMIX_REG_OR_BYTE ENUMDOC This is a relocation for an instruction field that may be a general register or a value 0..255. ENUM BFD_RELOC_MMIX_REG ENUMDOC This is a relocation for an instruction field that may be a general register. ENUM BFD_RELOC_MMIX_BASE_PLUS_OFFSET ENUMDOC This is a relocation for two instruction fields holding a register and an offset, the equivalent of the relocation. ENUM BFD_RELOC_MMIX_LOCAL ENUMDOC This relocation is an assertion that the expression is not allocated as a global register. It does not modify contents. ENUM BFD_RELOC_AVR_7_PCREL ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit pc relative short offset into 7 bits. ENUM BFD_RELOC_AVR_13_PCREL ENUMDOC This is a 16 bit reloc for the AVR that stores 13 bit pc relative short offset into 12 bits. ENUM BFD_RELOC_AVR_16_PM ENUMDOC This is a 16 bit reloc for the AVR that stores 17 bit value (usually program memory address) into 16 bits. ENUM BFD_RELOC_AVR_LO8_LDI ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (usually data memory address) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_HI8_LDI ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of data memory address) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_HH8_LDI ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of program memory address) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_MS8_LDI ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of 32 bit value) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_LO8_LDI_NEG ENUMDOC This is a 16 bit reloc for the AVR that stores negated 8 bit value (usually data memory address) into 8 bit immediate value of SUBI insn. ENUM BFD_RELOC_AVR_HI8_LDI_NEG ENUMDOC This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 8 bit of data memory address) into 8 bit immediate value of SUBI insn. ENUM BFD_RELOC_AVR_HH8_LDI_NEG ENUMDOC This is a 16 bit reloc for the AVR that stores negated 8 bit value (most high 8 bit of program memory address) into 8 bit immediate value of LDI or SUBI insn. ENUM BFD_RELOC_AVR_MS8_LDI_NEG ENUMDOC This is a 16 bit reloc for the AVR that stores negated 8 bit value (msb of 32 bit value) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_LO8_LDI_PM ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (usually command address) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_LO8_LDI_GS ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (command address) into 8 bit immediate value of LDI insn. If the address is beyond the 128k boundary, the linker inserts a jump stub for this reloc in the lower 128k. ENUM BFD_RELOC_AVR_HI8_LDI_PM ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of command address) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_HI8_LDI_GS ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit of command address) into 8 bit immediate value of LDI insn. If the address is beyond the 128k boundary, the linker inserts a jump stub for this reloc below 128k. ENUM BFD_RELOC_AVR_HH8_LDI_PM ENUMDOC This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit of command address) into 8 bit immediate value of LDI insn. ENUM BFD_RELOC_AVR_LO8_LDI_PM_NEG ENUMDOC This is a 16 bit reloc for the AVR that stores negated 8 bit value (usually command address) into 8 bit immediate value of SUBI insn. ENUM BFD_RELOC_AVR_HI8_LDI_PM_NEG ENUMDOC This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 8 bit of 16 bit command address) into 8 bit immediate value of SUBI insn. ENUM BFD_RELOC_AVR_HH8_LDI_PM_NEG ENUMDOC This is a 16 bit reloc for the AVR that stores negated 8 bit value (high 6 bit of 22 bit command address) into 8 bit immediate value of SUBI insn. ENUM BFD_RELOC_AVR_CALL ENUMDOC This is a 32 bit reloc for the AVR that stores 23 bit value into 22 bits. ENUM BFD_RELOC_AVR_LDI ENUMDOC This is a 16 bit reloc for the AVR that stores all needed bits for absolute addressing with ldi with overflow check to linktime ENUM BFD_RELOC_AVR_6 ENUMDOC This is a 6 bit reloc for the AVR that stores offset for ldd/std instructions ENUM BFD_RELOC_AVR_6_ADIW ENUMDOC This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw instructions ENUM BFD_RELOC_RX_NEG8 ENUMX BFD_RELOC_RX_NEG16 ENUMX BFD_RELOC_RX_NEG24 ENUMX BFD_RELOC_RX_NEG32 ENUMX BFD_RELOC_RX_16_OP ENUMX BFD_RELOC_RX_24_OP ENUMX BFD_RELOC_RX_32_OP ENUMX BFD_RELOC_RX_8U ENUMX BFD_RELOC_RX_16U ENUMX BFD_RELOC_RX_24U ENUMX BFD_RELOC_RX_DIR3U_PCREL ENUMX BFD_RELOC_RX_DIFF ENUMX BFD_RELOC_RX_GPRELB ENUMX BFD_RELOC_RX_GPRELW ENUMX BFD_RELOC_RX_GPRELL ENUMX BFD_RELOC_RX_SYM ENUMX BFD_RELOC_RX_OP_SUBTRACT ENUMX BFD_RELOC_RX_ABS8 ENUMX BFD_RELOC_RX_ABS16 ENUMX BFD_RELOC_RX_ABS32 ENUMX BFD_RELOC_RX_ABS16U ENUMX BFD_RELOC_RX_ABS16UW ENUMX BFD_RELOC_RX_ABS16UL ENUMX BFD_RELOC_RX_RELAX ENUMDOC Renesas RX Relocations. ENUM BFD_RELOC_390_12 ENUMDOC Direct 12 bit. ENUM BFD_RELOC_390_GOT12 ENUMDOC 12 bit GOT offset. ENUM BFD_RELOC_390_PLT32 ENUMDOC 32 bit PC relative PLT address. ENUM BFD_RELOC_390_COPY ENUMDOC Copy symbol at runtime. ENUM BFD_RELOC_390_GLOB_DAT ENUMDOC Create GOT entry. ENUM BFD_RELOC_390_JMP_SLOT ENUMDOC Create PLT entry. ENUM BFD_RELOC_390_RELATIVE ENUMDOC Adjust by program base. ENUM BFD_RELOC_390_GOTPC ENUMDOC 32 bit PC relative offset to GOT. ENUM BFD_RELOC_390_GOT16 ENUMDOC 16 bit GOT offset. ENUM BFD_RELOC_390_PC16DBL ENUMDOC PC relative 16 bit shifted by 1. ENUM BFD_RELOC_390_PLT16DBL ENUMDOC 16 bit PC rel. PLT shifted by 1. ENUM BFD_RELOC_390_PC32DBL ENUMDOC PC relative 32 bit shifted by 1. ENUM BFD_RELOC_390_PLT32DBL ENUMDOC 32 bit PC rel. PLT shifted by 1. ENUM BFD_RELOC_390_GOTPCDBL ENUMDOC 32 bit PC rel. GOT shifted by 1. ENUM BFD_RELOC_390_GOT64 ENUMDOC 64 bit GOT offset. ENUM BFD_RELOC_390_PLT64 ENUMDOC 64 bit PC relative PLT address. ENUM BFD_RELOC_390_GOTENT ENUMDOC 32 bit rel. offset to GOT entry. ENUM BFD_RELOC_390_GOTOFF64 ENUMDOC 64 bit offset to GOT. ENUM BFD_RELOC_390_GOTPLT12 ENUMDOC 12-bit offset to symbol-entry within GOT, with PLT handling. ENUM BFD_RELOC_390_GOTPLT16 ENUMDOC 16-bit offset to symbol-entry within GOT, with PLT handling. ENUM BFD_RELOC_390_GOTPLT32 ENUMDOC 32-bit offset to symbol-entry within GOT, with PLT handling. ENUM BFD_RELOC_390_GOTPLT64 ENUMDOC 64-bit offset to symbol-entry within GOT, with PLT handling. ENUM BFD_RELOC_390_GOTPLTENT ENUMDOC 32-bit rel. offset to symbol-entry within GOT, with PLT handling. ENUM BFD_RELOC_390_PLTOFF16 ENUMDOC 16-bit rel. offset from the GOT to a PLT entry. ENUM BFD_RELOC_390_PLTOFF32 ENUMDOC 32-bit rel. offset from the GOT to a PLT entry. ENUM BFD_RELOC_390_PLTOFF64 ENUMDOC 64-bit rel. offset from the GOT to a PLT entry. ENUM BFD_RELOC_390_TLS_LOAD ENUMX BFD_RELOC_390_TLS_GDCALL ENUMX BFD_RELOC_390_TLS_LDCALL ENUMX BFD_RELOC_390_TLS_GD32 ENUMX BFD_RELOC_390_TLS_GD64 ENUMX BFD_RELOC_390_TLS_GOTIE12 ENUMX BFD_RELOC_390_TLS_GOTIE32 ENUMX BFD_RELOC_390_TLS_GOTIE64 ENUMX BFD_RELOC_390_TLS_LDM32 ENUMX BFD_RELOC_390_TLS_LDM64 ENUMX BFD_RELOC_390_TLS_IE32 ENUMX BFD_RELOC_390_TLS_IE64 ENUMX BFD_RELOC_390_TLS_IEENT ENUMX BFD_RELOC_390_TLS_LE32 ENUMX BFD_RELOC_390_TLS_LE64 ENUMX BFD_RELOC_390_TLS_LDO32 ENUMX BFD_RELOC_390_TLS_LDO64 ENUMX BFD_RELOC_390_TLS_DTPMOD ENUMX BFD_RELOC_390_TLS_DTPOFF ENUMX BFD_RELOC_390_TLS_TPOFF ENUMDOC s390 tls relocations. ENUM BFD_RELOC_390_20 ENUMX BFD_RELOC_390_GOT20 ENUMX BFD_RELOC_390_GOTPLT20 ENUMX BFD_RELOC_390_TLS_GOTIE20 ENUMDOC Long displacement extension. ENUM BFD_RELOC_SCORE_GPREL15 ENUMDOC Score relocations Low 16 bit for load/store ENUM BFD_RELOC_SCORE_DUMMY2 ENUMX BFD_RELOC_SCORE_JMP ENUMDOC This is a 24-bit reloc with the right 1 bit assumed to be 0 ENUM BFD_RELOC_SCORE_BRANCH ENUMDOC This is a 19-bit reloc with the right 1 bit assumed to be 0 ENUM BFD_RELOC_SCORE_IMM30 ENUMDOC This is a 32-bit reloc for 48-bit instructions. ENUM BFD_RELOC_SCORE_IMM32 ENUMDOC This is a 32-bit reloc for 48-bit instructions. ENUM BFD_RELOC_SCORE16_JMP ENUMDOC This is a 11-bit reloc with the right 1 bit assumed to be 0 ENUM BFD_RELOC_SCORE16_BRANCH ENUMDOC This is a 8-bit reloc with the right 1 bit assumed to be 0 ENUM BFD_RELOC_SCORE_BCMP ENUMDOC This is a 9-bit reloc with the right 1 bit assumed to be 0 ENUM BFD_RELOC_SCORE_GOT15 ENUMX BFD_RELOC_SCORE_GOT_LO16 ENUMX BFD_RELOC_SCORE_CALL15 ENUMX BFD_RELOC_SCORE_DUMMY_HI16 ENUMDOC Undocumented Score relocs ENUM BFD_RELOC_IP2K_FR9 ENUMDOC Scenix IP2K - 9-bit register number / data address ENUM BFD_RELOC_IP2K_BANK ENUMDOC Scenix IP2K - 4-bit register/data bank number ENUM BFD_RELOC_IP2K_ADDR16CJP ENUMDOC Scenix IP2K - low 13 bits of instruction word address ENUM BFD_RELOC_IP2K_PAGE3 ENUMDOC Scenix IP2K - high 3 bits of instruction word address ENUM BFD_RELOC_IP2K_LO8DATA ENUMX BFD_RELOC_IP2K_HI8DATA ENUMX BFD_RELOC_IP2K_EX8DATA ENUMDOC Scenix IP2K - ext/low/high 8 bits of data address ENUM BFD_RELOC_IP2K_LO8INSN ENUMX BFD_RELOC_IP2K_HI8INSN ENUMDOC Scenix IP2K - low/high 8 bits of instruction word address ENUM BFD_RELOC_IP2K_PC_SKIP ENUMDOC Scenix IP2K - even/odd PC modifier to modify snb pcl.0 ENUM BFD_RELOC_IP2K_TEXT ENUMDOC Scenix IP2K - 16 bit word address in text section. ENUM BFD_RELOC_IP2K_FR_OFFSET ENUMDOC Scenix IP2K - 7-bit sp or dp offset ENUM BFD_RELOC_VPE4KMATH_DATA ENUMX BFD_RELOC_VPE4KMATH_INSN ENUMDOC Scenix VPE4K coprocessor - data/insn-space addressing ENUM BFD_RELOC_VTABLE_INHERIT ENUMX BFD_RELOC_VTABLE_ENTRY ENUMDOC These two relocations are used by the linker to determine which of the entries in a C++ virtual function table are actually used. When the --gc-sections option is given, the linker will zero out the entries that are not used, so that the code for those functions need not be included in the output. VTABLE_INHERIT is a zero-space relocation used to describe to the linker the inheritance tree of a C++ virtual function table. The relocation's symbol should be the parent class' vtable, and the relocation should be located at the child vtable. VTABLE_ENTRY is a zero-space relocation that describes the use of a virtual function table entry. The reloc's symbol should refer to the table of the class mentioned in the code. Off of that base, an offset describes the entry that is being used. For Rela hosts, this offset is stored in the reloc's addend. For Rel hosts, we are forced to put this offset in the reloc's section offset. ENUM BFD_RELOC_IA64_IMM14 ENUMX BFD_RELOC_IA64_IMM22 ENUMX BFD_RELOC_IA64_IMM64 ENUMX BFD_RELOC_IA64_DIR32MSB ENUMX BFD_RELOC_IA64_DIR32LSB ENUMX BFD_RELOC_IA64_DIR64MSB ENUMX BFD_RELOC_IA64_DIR64LSB ENUMX BFD_RELOC_IA64_GPREL22 ENUMX BFD_RELOC_IA64_GPREL64I ENUMX BFD_RELOC_IA64_GPREL32MSB ENUMX BFD_RELOC_IA64_GPREL32LSB ENUMX BFD_RELOC_IA64_GPREL64MSB ENUMX BFD_RELOC_IA64_GPREL64LSB ENUMX BFD_RELOC_IA64_LTOFF22 ENUMX BFD_RELOC_IA64_LTOFF64I ENUMX BFD_RELOC_IA64_PLTOFF22 ENUMX BFD_RELOC_IA64_PLTOFF64I ENUMX BFD_RELOC_IA64_PLTOFF64MSB ENUMX BFD_RELOC_IA64_PLTOFF64LSB ENUMX BFD_RELOC_IA64_FPTR64I ENUMX BFD_RELOC_IA64_FPTR32MSB ENUMX BFD_RELOC_IA64_FPTR32LSB ENUMX BFD_RELOC_IA64_FPTR64MSB ENUMX BFD_RELOC_IA64_FPTR64LSB ENUMX BFD_RELOC_IA64_PCREL21B ENUMX BFD_RELOC_IA64_PCREL21BI ENUMX BFD_RELOC_IA64_PCREL21M ENUMX BFD_RELOC_IA64_PCREL21F ENUMX BFD_RELOC_IA64_PCREL22 ENUMX BFD_RELOC_IA64_PCREL60B ENUMX BFD_RELOC_IA64_PCREL64I ENUMX BFD_RELOC_IA64_PCREL32MSB ENUMX BFD_RELOC_IA64_PCREL32LSB ENUMX BFD_RELOC_IA64_PCREL64MSB ENUMX BFD_RELOC_IA64_PCREL64LSB ENUMX BFD_RELOC_IA64_LTOFF_FPTR22 ENUMX BFD_RELOC_IA64_LTOFF_FPTR64I ENUMX BFD_RELOC_IA64_LTOFF_FPTR32MSB ENUMX BFD_RELOC_IA64_LTOFF_FPTR32LSB ENUMX BFD_RELOC_IA64_LTOFF_FPTR64MSB ENUMX BFD_RELOC_IA64_LTOFF_FPTR64LSB ENUMX BFD_RELOC_IA64_SEGREL32MSB ENUMX BFD_RELOC_IA64_SEGREL32LSB ENUMX BFD_RELOC_IA64_SEGREL64MSB ENUMX BFD_RELOC_IA64_SEGREL64LSB ENUMX BFD_RELOC_IA64_SECREL32MSB ENUMX BFD_RELOC_IA64_SECREL32LSB ENUMX BFD_RELOC_IA64_SECREL64MSB ENUMX BFD_RELOC_IA64_SECREL64LSB ENUMX BFD_RELOC_IA64_REL32MSB ENUMX BFD_RELOC_IA64_REL32LSB ENUMX BFD_RELOC_IA64_REL64MSB ENUMX BFD_RELOC_IA64_REL64LSB ENUMX BFD_RELOC_IA64_LTV32MSB ENUMX BFD_RELOC_IA64_LTV32LSB ENUMX BFD_RELOC_IA64_LTV64MSB ENUMX BFD_RELOC_IA64_LTV64LSB ENUMX BFD_RELOC_IA64_IPLTMSB ENUMX BFD_RELOC_IA64_IPLTLSB ENUMX BFD_RELOC_IA64_COPY ENUMX BFD_RELOC_IA64_LTOFF22X ENUMX BFD_RELOC_IA64_LDXMOV ENUMX BFD_RELOC_IA64_TPREL14 ENUMX BFD_RELOC_IA64_TPREL22 ENUMX BFD_RELOC_IA64_TPREL64I ENUMX BFD_RELOC_IA64_TPREL64MSB ENUMX BFD_RELOC_IA64_TPREL64LSB ENUMX BFD_RELOC_IA64_LTOFF_TPREL22 ENUMX BFD_RELOC_IA64_DTPMOD64MSB ENUMX BFD_RELOC_IA64_DTPMOD64LSB ENUMX BFD_RELOC_IA64_LTOFF_DTPMOD22 ENUMX BFD_RELOC_IA64_DTPREL14 ENUMX BFD_RELOC_IA64_DTPREL22 ENUMX BFD_RELOC_IA64_DTPREL64I ENUMX BFD_RELOC_IA64_DTPREL32MSB ENUMX BFD_RELOC_IA64_DTPREL32LSB ENUMX BFD_RELOC_IA64_DTPREL64MSB ENUMX BFD_RELOC_IA64_DTPREL64LSB ENUMX BFD_RELOC_IA64_LTOFF_DTPREL22 ENUMDOC Intel IA64 Relocations. ENUM BFD_RELOC_M68HC11_HI8 ENUMDOC Motorola 68HC11 reloc. This is the 8 bit high part of an absolute address. ENUM BFD_RELOC_M68HC11_LO8 ENUMDOC Motorola 68HC11 reloc. This is the 8 bit low part of an absolute address. ENUM BFD_RELOC_M68HC11_3B ENUMDOC Motorola 68HC11 reloc. This is the 3 bit of a value. ENUM BFD_RELOC_M68HC11_RL_JUMP ENUMDOC Motorola 68HC11 reloc. This reloc marks the beginning of a jump/call instruction. It is used for linker relaxation to correctly identify beginning of instruction and change some branches to use PC-relative addressing mode. ENUM BFD_RELOC_M68HC11_RL_GROUP ENUMDOC Motorola 68HC11 reloc. This reloc marks a group of several instructions that gcc generates and for which the linker relaxation pass can modify and/or remove some of them. ENUM BFD_RELOC_M68HC11_LO16 ENUMDOC Motorola 68HC11 reloc. This is the 16-bit lower part of an address. It is used for 'call' instruction to specify the symbol address without any special transformation (due to memory bank window). ENUM BFD_RELOC_M68HC11_PAGE ENUMDOC Motorola 68HC11 reloc. This is a 8-bit reloc that specifies the page number of an address. It is used by 'call' instruction to specify the page number of the symbol. ENUM BFD_RELOC_M68HC11_24 ENUMDOC Motorola 68HC11 reloc. This is a 24-bit reloc that represents the address with a 16-bit value and a 8-bit page number. The symbol address is transformed to follow the 16K memory bank of 68HC12 (seen as mapped in the window). ENUM BFD_RELOC_M68HC12_5B ENUMDOC Motorola 68HC12 reloc. This is the 5 bits of a value. ENUM BFD_RELOC_16C_NUM08 ENUMX BFD_RELOC_16C_NUM08_C ENUMX BFD_RELOC_16C_NUM16 ENUMX BFD_RELOC_16C_NUM16_C ENUMX BFD_RELOC_16C_NUM32 ENUMX BFD_RELOC_16C_NUM32_C ENUMX BFD_RELOC_16C_DISP04 ENUMX BFD_RELOC_16C_DISP04_C ENUMX BFD_RELOC_16C_DISP08 ENUMX BFD_RELOC_16C_DISP08_C ENUMX BFD_RELOC_16C_DISP16 ENUMX BFD_RELOC_16C_DISP16_C ENUMX BFD_RELOC_16C_DISP24 ENUMX BFD_RELOC_16C_DISP24_C ENUMX BFD_RELOC_16C_DISP24a ENUMX BFD_RELOC_16C_DISP24a_C ENUMX BFD_RELOC_16C_REG04 ENUMX BFD_RELOC_16C_REG04_C ENUMX BFD_RELOC_16C_REG04a ENUMX BFD_RELOC_16C_REG04a_C ENUMX BFD_RELOC_16C_REG14 ENUMX BFD_RELOC_16C_REG14_C ENUMX BFD_RELOC_16C_REG16 ENUMX BFD_RELOC_16C_REG16_C ENUMX BFD_RELOC_16C_REG20 ENUMX BFD_RELOC_16C_REG20_C ENUMX BFD_RELOC_16C_ABS20 ENUMX BFD_RELOC_16C_ABS20_C ENUMX BFD_RELOC_16C_ABS24 ENUMX BFD_RELOC_16C_ABS24_C ENUMX BFD_RELOC_16C_IMM04 ENUMX BFD_RELOC_16C_IMM04_C ENUMX BFD_RELOC_16C_IMM16 ENUMX BFD_RELOC_16C_IMM16_C ENUMX BFD_RELOC_16C_IMM20 ENUMX BFD_RELOC_16C_IMM20_C ENUMX BFD_RELOC_16C_IMM24 ENUMX BFD_RELOC_16C_IMM24_C ENUMX BFD_RELOC_16C_IMM32 ENUMX BFD_RELOC_16C_IMM32_C ENUMDOC NS CR16C Relocations. ENUM BFD_RELOC_CR16_NUM8 ENUMX BFD_RELOC_CR16_NUM16 ENUMX BFD_RELOC_CR16_NUM32 ENUMX BFD_RELOC_CR16_NUM32a ENUMX BFD_RELOC_CR16_REGREL0 ENUMX BFD_RELOC_CR16_REGREL4 ENUMX BFD_RELOC_CR16_REGREL4a ENUMX BFD_RELOC_CR16_REGREL14 ENUMX BFD_RELOC_CR16_REGREL14a ENUMX BFD_RELOC_CR16_REGREL16 ENUMX BFD_RELOC_CR16_REGREL20 ENUMX BFD_RELOC_CR16_REGREL20a ENUMX BFD_RELOC_CR16_ABS20 ENUMX BFD_RELOC_CR16_ABS24 ENUMX BFD_RELOC_CR16_IMM4 ENUMX BFD_RELOC_CR16_IMM8 ENUMX BFD_RELOC_CR16_IMM16 ENUMX BFD_RELOC_CR16_IMM20 ENUMX BFD_RELOC_CR16_IMM24 ENUMX BFD_RELOC_CR16_IMM32 ENUMX BFD_RELOC_CR16_IMM32a ENUMX BFD_RELOC_CR16_DISP4 ENUMX BFD_RELOC_CR16_DISP8 ENUMX BFD_RELOC_CR16_DISP16 ENUMX BFD_RELOC_CR16_DISP20 ENUMX BFD_RELOC_CR16_DISP24 ENUMX BFD_RELOC_CR16_DISP24a ENUMX BFD_RELOC_CR16_SWITCH8 ENUMX BFD_RELOC_CR16_SWITCH16 ENUMX BFD_RELOC_CR16_SWITCH32 ENUMX BFD_RELOC_CR16_GOT_REGREL20 ENUMX BFD_RELOC_CR16_GOTC_REGREL20 ENUMX BFD_RELOC_CR16_GLOB_DAT ENUMDOC NS CR16 Relocations. ENUM BFD_RELOC_CRX_REL4 ENUMX BFD_RELOC_CRX_REL8 ENUMX BFD_RELOC_CRX_REL8_CMP ENUMX BFD_RELOC_CRX_REL16 ENUMX BFD_RELOC_CRX_REL24 ENUMX BFD_RELOC_CRX_REL32 ENUMX BFD_RELOC_CRX_REGREL12 ENUMX BFD_RELOC_CRX_REGREL22 ENUMX BFD_RELOC_CRX_REGREL28 ENUMX BFD_RELOC_CRX_REGREL32 ENUMX BFD_RELOC_CRX_ABS16 ENUMX BFD_RELOC_CRX_ABS32 ENUMX BFD_RELOC_CRX_NUM8 ENUMX BFD_RELOC_CRX_NUM16 ENUMX BFD_RELOC_CRX_NUM32 ENUMX BFD_RELOC_CRX_IMM16 ENUMX BFD_RELOC_CRX_IMM32 ENUMX BFD_RELOC_CRX_SWITCH8 ENUMX BFD_RELOC_CRX_SWITCH16 ENUMX BFD_RELOC_CRX_SWITCH32 ENUMDOC NS CRX Relocations. ENUM BFD_RELOC_CRIS_BDISP8 ENUMX BFD_RELOC_CRIS_UNSIGNED_5 ENUMX BFD_RELOC_CRIS_SIGNED_6 ENUMX BFD_RELOC_CRIS_UNSIGNED_6 ENUMX BFD_RELOC_CRIS_SIGNED_8 ENUMX BFD_RELOC_CRIS_UNSIGNED_8 ENUMX BFD_RELOC_CRIS_SIGNED_16 ENUMX BFD_RELOC_CRIS_UNSIGNED_16 ENUMX BFD_RELOC_CRIS_LAPCQ_OFFSET ENUMX BFD_RELOC_CRIS_UNSIGNED_4 ENUMDOC These relocs are only used within the CRIS assembler. They are not (at present) written to any object files. ENUM BFD_RELOC_CRIS_COPY ENUMX BFD_RELOC_CRIS_GLOB_DAT ENUMX BFD_RELOC_CRIS_JUMP_SLOT ENUMX BFD_RELOC_CRIS_RELATIVE ENUMDOC Relocs used in ELF shared libraries for CRIS. ENUM BFD_RELOC_CRIS_32_GOT ENUMDOC 32-bit offset to symbol-entry within GOT. ENUM BFD_RELOC_CRIS_16_GOT ENUMDOC 16-bit offset to symbol-entry within GOT. ENUM BFD_RELOC_CRIS_32_GOTPLT ENUMDOC 32-bit offset to symbol-entry within GOT, with PLT handling. ENUM BFD_RELOC_CRIS_16_GOTPLT ENUMDOC 16-bit offset to symbol-entry within GOT, with PLT handling. ENUM BFD_RELOC_CRIS_32_GOTREL ENUMDOC 32-bit offset to symbol, relative to GOT. ENUM BFD_RELOC_CRIS_32_PLT_GOTREL ENUMDOC 32-bit offset to symbol with PLT entry, relative to GOT. ENUM BFD_RELOC_CRIS_32_PLT_PCREL ENUMDOC 32-bit offset to symbol with PLT entry, relative to this relocation. ENUM BFD_RELOC_CRIS_32_GOT_GD ENUMX BFD_RELOC_CRIS_16_GOT_GD ENUMX BFD_RELOC_CRIS_32_GD ENUMX BFD_RELOC_CRIS_DTP ENUMX BFD_RELOC_CRIS_32_DTPREL ENUMX BFD_RELOC_CRIS_16_DTPREL ENUMX BFD_RELOC_CRIS_32_GOT_TPREL ENUMX BFD_RELOC_CRIS_16_GOT_TPREL ENUMX BFD_RELOC_CRIS_32_TPREL ENUMX BFD_RELOC_CRIS_16_TPREL ENUMX BFD_RELOC_CRIS_DTPMOD ENUMX BFD_RELOC_CRIS_32_IE ENUMDOC Relocs used in TLS code for CRIS. ENUM BFD_RELOC_860_COPY ENUMX BFD_RELOC_860_GLOB_DAT ENUMX BFD_RELOC_860_JUMP_SLOT ENUMX BFD_RELOC_860_RELATIVE ENUMX BFD_RELOC_860_PC26 ENUMX BFD_RELOC_860_PLT26 ENUMX BFD_RELOC_860_PC16 ENUMX BFD_RELOC_860_LOW0 ENUMX BFD_RELOC_860_SPLIT0 ENUMX BFD_RELOC_860_LOW1 ENUMX BFD_RELOC_860_SPLIT1 ENUMX BFD_RELOC_860_LOW2 ENUMX BFD_RELOC_860_SPLIT2 ENUMX BFD_RELOC_860_LOW3 ENUMX BFD_RELOC_860_LOGOT0 ENUMX BFD_RELOC_860_SPGOT0 ENUMX BFD_RELOC_860_LOGOT1 ENUMX BFD_RELOC_860_SPGOT1 ENUMX BFD_RELOC_860_LOGOTOFF0 ENUMX BFD_RELOC_860_SPGOTOFF0 ENUMX BFD_RELOC_860_LOGOTOFF1 ENUMX BFD_RELOC_860_SPGOTOFF1 ENUMX BFD_RELOC_860_LOGOTOFF2 ENUMX BFD_RELOC_860_LOGOTOFF3 ENUMX BFD_RELOC_860_LOPC ENUMX BFD_RELOC_860_HIGHADJ ENUMX BFD_RELOC_860_HAGOT ENUMX BFD_RELOC_860_HAGOTOFF ENUMX BFD_RELOC_860_HAPC ENUMX BFD_RELOC_860_HIGH ENUMX BFD_RELOC_860_HIGOT ENUMX BFD_RELOC_860_HIGOTOFF ENUMDOC Intel i860 Relocations. ENUM BFD_RELOC_OPENRISC_ABS_26 ENUMX BFD_RELOC_OPENRISC_REL_26 ENUMDOC OpenRISC Relocations. ENUM BFD_RELOC_H8_DIR16A8 ENUMX BFD_RELOC_H8_DIR16R8 ENUMX BFD_RELOC_H8_DIR24A8 ENUMX BFD_RELOC_H8_DIR24R8 ENUMX BFD_RELOC_H8_DIR32A16 ENUMDOC H8 elf Relocations. ENUM BFD_RELOC_XSTORMY16_REL_12 ENUMX BFD_RELOC_XSTORMY16_12 ENUMX BFD_RELOC_XSTORMY16_24 ENUMX BFD_RELOC_XSTORMY16_FPTR16 ENUMDOC Sony Xstormy16 Relocations. ENUM BFD_RELOC_RELC ENUMDOC Self-describing complex relocations. COMMENT ENUM BFD_RELOC_XC16X_PAG ENUMX BFD_RELOC_XC16X_POF ENUMX BFD_RELOC_XC16X_SEG ENUMX BFD_RELOC_XC16X_SOF ENUMDOC Infineon Relocations. ENUM BFD_RELOC_VAX_GLOB_DAT ENUMX BFD_RELOC_VAX_JMP_SLOT ENUMX BFD_RELOC_VAX_RELATIVE ENUMDOC Relocations used by VAX ELF. ENUM BFD_RELOC_MT_PC16 ENUMDOC Morpho MT - 16 bit immediate relocation. ENUM BFD_RELOC_MT_HI16 ENUMDOC Morpho MT - Hi 16 bits of an address. ENUM BFD_RELOC_MT_LO16 ENUMDOC Morpho MT - Low 16 bits of an address. ENUM BFD_RELOC_MT_GNU_VTINHERIT ENUMDOC Morpho MT - Used to tell the linker which vtable entries are used. ENUM BFD_RELOC_MT_GNU_VTENTRY ENUMDOC Morpho MT - Used to tell the linker which vtable entries are used. ENUM BFD_RELOC_MT_PCINSN8 ENUMDOC Morpho MT - 8 bit immediate relocation. ENUM BFD_RELOC_MSP430_10_PCREL ENUMX BFD_RELOC_MSP430_16_PCREL ENUMX BFD_RELOC_MSP430_16 ENUMX BFD_RELOC_MSP430_16_PCREL_BYTE ENUMX BFD_RELOC_MSP430_16_BYTE ENUMX BFD_RELOC_MSP430_2X_PCREL ENUMX BFD_RELOC_MSP430_RL_PCREL ENUMDOC msp430 specific relocation codes ENUM BFD_RELOC_IQ2000_OFFSET_16 ENUMX BFD_RELOC_IQ2000_OFFSET_21 ENUMX BFD_RELOC_IQ2000_UHI16 ENUMDOC IQ2000 Relocations. ENUM BFD_RELOC_XTENSA_RTLD ENUMDOC Special Xtensa relocation used only by PLT entries in ELF shared objects to indicate that the runtime linker should set the value to one of its own internal functions or data structures. ENUM BFD_RELOC_XTENSA_GLOB_DAT ENUMX BFD_RELOC_XTENSA_JMP_SLOT ENUMX BFD_RELOC_XTENSA_RELATIVE ENUMDOC Xtensa relocations for ELF shared objects. ENUM BFD_RELOC_XTENSA_PLT ENUMDOC Xtensa relocation used in ELF object files for symbols that may require PLT entries. Otherwise, this is just a generic 32-bit relocation. ENUM BFD_RELOC_XTENSA_DIFF8 ENUMX BFD_RELOC_XTENSA_DIFF16 ENUMX BFD_RELOC_XTENSA_DIFF32 ENUMDOC Xtensa relocations to mark the difference of two local symbols. These are only needed to support linker relaxation and can be ignored when not relaxing. The field is set to the value of the difference assuming no relaxation. The relocation encodes the position of the first symbol so the linker can determine whether to adjust the field value. ENUM BFD_RELOC_XTENSA_SLOT0_OP ENUMX BFD_RELOC_XTENSA_SLOT1_OP ENUMX BFD_RELOC_XTENSA_SLOT2_OP ENUMX BFD_RELOC_XTENSA_SLOT3_OP ENUMX BFD_RELOC_XTENSA_SLOT4_OP ENUMX BFD_RELOC_XTENSA_SLOT5_OP ENUMX BFD_RELOC_XTENSA_SLOT6_OP ENUMX BFD_RELOC_XTENSA_SLOT7_OP ENUMX BFD_RELOC_XTENSA_SLOT8_OP ENUMX BFD_RELOC_XTENSA_SLOT9_OP ENUMX BFD_RELOC_XTENSA_SLOT10_OP ENUMX BFD_RELOC_XTENSA_SLOT11_OP ENUMX BFD_RELOC_XTENSA_SLOT12_OP ENUMX BFD_RELOC_XTENSA_SLOT13_OP ENUMX BFD_RELOC_XTENSA_SLOT14_OP ENUMDOC Generic Xtensa relocations for instruction operands. Only the slot number is encoded in the relocation. The relocation applies to the last PC-relative immediate operand, or if there are no PC-relative immediates, to the last immediate operand. ENUM BFD_RELOC_XTENSA_SLOT0_ALT ENUMX BFD_RELOC_XTENSA_SLOT1_ALT ENUMX BFD_RELOC_XTENSA_SLOT2_ALT ENUMX BFD_RELOC_XTENSA_SLOT3_ALT ENUMX BFD_RELOC_XTENSA_SLOT4_ALT ENUMX BFD_RELOC_XTENSA_SLOT5_ALT ENUMX BFD_RELOC_XTENSA_SLOT6_ALT ENUMX BFD_RELOC_XTENSA_SLOT7_ALT ENUMX BFD_RELOC_XTENSA_SLOT8_ALT ENUMX BFD_RELOC_XTENSA_SLOT9_ALT ENUMX BFD_RELOC_XTENSA_SLOT10_ALT ENUMX BFD_RELOC_XTENSA_SLOT11_ALT ENUMX BFD_RELOC_XTENSA_SLOT12_ALT ENUMX BFD_RELOC_XTENSA_SLOT13_ALT ENUMX BFD_RELOC_XTENSA_SLOT14_ALT ENUMDOC Alternate Xtensa relocations. Only the slot is encoded in the relocation. The meaning of these relocations is opcode-specific. ENUM BFD_RELOC_XTENSA_OP0 ENUMX BFD_RELOC_XTENSA_OP1 ENUMX BFD_RELOC_XTENSA_OP2 ENUMDOC Xtensa relocations for backward compatibility. These have all been replaced by BFD_RELOC_XTENSA_SLOT0_OP. ENUM BFD_RELOC_XTENSA_ASM_EXPAND ENUMDOC Xtensa relocation to mark that the assembler expanded the instructions from an original target. The expansion size is encoded in the reloc size. ENUM BFD_RELOC_XTENSA_ASM_SIMPLIFY ENUMDOC Xtensa relocation to mark that the linker should simplify assembler-expanded instructions. This is commonly used internally by the linker after analysis of a BFD_RELOC_XTENSA_ASM_EXPAND. ENUM BFD_RELOC_XTENSA_TLSDESC_FN ENUMX BFD_RELOC_XTENSA_TLSDESC_ARG ENUMX BFD_RELOC_XTENSA_TLS_DTPOFF ENUMX BFD_RELOC_XTENSA_TLS_TPOFF ENUMX BFD_RELOC_XTENSA_TLS_FUNC ENUMX BFD_RELOC_XTENSA_TLS_ARG ENUMX BFD_RELOC_XTENSA_TLS_CALL ENUMDOC Xtensa TLS relocations. ENUM BFD_RELOC_Z80_DISP8 ENUMDOC 8 bit signed offset in (ix+d) or (iy+d). ENUM BFD_RELOC_Z8K_DISP7 ENUMDOC DJNZ offset. ENUM BFD_RELOC_Z8K_CALLR ENUMDOC CALR offset. ENUM BFD_RELOC_Z8K_IMM4L ENUMDOC 4 bit value. ENUM BFD_RELOC_LM32_CALL ENUMX BFD_RELOC_LM32_BRANCH ENUMX BFD_RELOC_LM32_16_GOT ENUMX BFD_RELOC_LM32_GOTOFF_HI16 ENUMX BFD_RELOC_LM32_GOTOFF_LO16 ENUMX BFD_RELOC_LM32_COPY ENUMX BFD_RELOC_LM32_GLOB_DAT ENUMX BFD_RELOC_LM32_JMP_SLOT ENUMX BFD_RELOC_LM32_RELATIVE ENUMDOC Lattice Mico32 relocations. ENUM BFD_RELOC_MACH_O_SECTDIFF ENUMDOC Difference between two section addreses. Must be followed by a BFD_RELOC_MACH_O_PAIR. ENUM BFD_RELOC_MACH_O_PAIR ENUMDOC Pair of relocation. Contains the first symbol. ENUM BFD_RELOC_MACH_O_X86_64_BRANCH32 ENUMX BFD_RELOC_MACH_O_X86_64_BRANCH8 ENUMDOC PCREL relocations. They are marked as branch to create PLT entry if required. ENUM BFD_RELOC_MACH_O_X86_64_GOT ENUMDOC Used when referencing a GOT entry. ENUM BFD_RELOC_MACH_O_X86_64_GOT_LOAD ENUMDOC Used when loading a GOT entry with movq. It is specially marked so that the linker could optimize the movq to a leaq if possible. ENUM BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32 ENUMDOC Symbol will be substracted. Must be followed by a BFD_RELOC_64. ENUM BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 ENUMDOC Symbol will be substracted. Must be followed by a BFD_RELOC_64. ENUM BFD_RELOC_MACH_O_X86_64_PCREL32_1 ENUMDOC Same as BFD_RELOC_32_PCREL but with an implicit -1 addend. ENUM BFD_RELOC_MACH_O_X86_64_PCREL32_2 ENUMDOC Same as BFD_RELOC_32_PCREL but with an implicit -2 addend. ENUM BFD_RELOC_MACH_O_X86_64_PCREL32_4 ENUMDOC Same as BFD_RELOC_32_PCREL but with an implicit -4 addend. ENUM BFD_RELOC_MICROBLAZE_32_LO ENUMDOC This is a 32 bit reloc for the microblaze that stores the low 16 bits of a value ENUM BFD_RELOC_MICROBLAZE_32_LO_PCREL ENUMDOC This is a 32 bit pc-relative reloc for the microblaze that stores the low 16 bits of a value ENUM BFD_RELOC_MICROBLAZE_32_ROSDA ENUMDOC This is a 32 bit reloc for the microblaze that stores a value relative to the read-only small data area anchor ENUM BFD_RELOC_MICROBLAZE_32_RWSDA ENUMDOC This is a 32 bit reloc for the microblaze that stores a value relative to the read-write small data area anchor ENUM BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM ENUMDOC This is a 32 bit reloc for the microblaze to handle expressions of the form "Symbol Op Symbol" ENUM BFD_RELOC_MICROBLAZE_64_NONE ENUMDOC This is a 64 bit reloc that stores the 32 bit pc relative value in two words (with an imm instruction). No relocation is done here - only used for relaxing ENUM BFD_RELOC_MICROBLAZE_64_GOTPC ENUMDOC This is a 64 bit reloc that stores the 32 bit pc relative value in two words (with an imm instruction). The relocation is PC-relative GOT offset ENUM BFD_RELOC_MICROBLAZE_64_GOT ENUMDOC This is a 64 bit reloc that stores the 32 bit pc relative value in two words (with an imm instruction). The relocation is GOT offset ENUM BFD_RELOC_MICROBLAZE_64_PLT ENUMDOC This is a 64 bit reloc that stores the 32 bit pc relative value in two words (with an imm instruction). The relocation is PC-relative offset into PLT ENUM BFD_RELOC_MICROBLAZE_64_GOTOFF ENUMDOC This is a 64 bit reloc that stores the 32 bit GOT relative value in two words (with an imm instruction). The relocation is relative offset from _GLOBAL_OFFSET_TABLE_ ENUM BFD_RELOC_MICROBLAZE_32_GOTOFF ENUMDOC This is a 32 bit reloc that stores the 32 bit GOT relative value in a word. The relocation is relative offset from _GLOBAL_OFFSET_TABLE_ ENUM BFD_RELOC_MICROBLAZE_COPY ENUMDOC This is used to tell the dynamic linker to copy the value out of the dynamic object into the runtime process image. ENDSENUM BFD_RELOC_UNUSED CODE_FRAGMENT . .typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; */ /* FUNCTION bfd_reloc_type_lookup bfd_reloc_name_lookup SYNOPSIS reloc_howto_type *bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code); reloc_howto_type *bfd_reloc_name_lookup (bfd *abfd, const char *reloc_name); DESCRIPTION Return a pointer to a howto structure which, when invoked, will perform the relocation @var{code} on data from the architecture noted. */ reloc_howto_type * bfd_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code) { return BFD_SEND (abfd, reloc_type_lookup, (abfd, code)); } reloc_howto_type * bfd_reloc_name_lookup (bfd *abfd, const char *reloc_name) { return BFD_SEND (abfd, reloc_name_lookup, (abfd, reloc_name)); } static reloc_howto_type bfd_howto_32 = HOWTO (0, 00, 2, 32, FALSE, 0, complain_overflow_dont, 0, "VRT32", FALSE, 0xffffffff, 0xffffffff, TRUE); /* INTERNAL_FUNCTION bfd_default_reloc_type_lookup SYNOPSIS reloc_howto_type *bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code); DESCRIPTION Provides a default relocation lookup routine for any architecture. */ reloc_howto_type * bfd_default_reloc_type_lookup (bfd *abfd, bfd_reloc_code_real_type code) { switch (code) { case BFD_RELOC_CTOR: /* The type of reloc used in a ctor, which will be as wide as the address - so either a 64, 32, or 16 bitter. */ switch (bfd_get_arch_info (abfd)->bits_per_address) { case 64: BFD_FAIL (); case 32: return &bfd_howto_32; case 16: BFD_FAIL (); default: BFD_FAIL (); } default: BFD_FAIL (); } return NULL; } /* FUNCTION bfd_get_reloc_code_name SYNOPSIS const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code); DESCRIPTION Provides a printable name for the supplied relocation code. Useful mainly for printing error messages. */ const char * bfd_get_reloc_code_name (bfd_reloc_code_real_type code) { if (code > BFD_RELOC_UNUSED) return 0; return bfd_reloc_code_real_names[code]; } /* INTERNAL_FUNCTION bfd_generic_relax_section SYNOPSIS bfd_boolean bfd_generic_relax_section (bfd *abfd, asection *section, struct bfd_link_info *, bfd_boolean *); DESCRIPTION Provides default handling for relaxing for back ends which don't do relaxing. */ bfd_boolean bfd_generic_relax_section (bfd *abfd ATTRIBUTE_UNUSED, asection *section ATTRIBUTE_UNUSED, struct bfd_link_info *link_info ATTRIBUTE_UNUSED, bfd_boolean *again) { if (link_info->relocatable) (*link_info->callbacks->einfo) (_("%P%F: --relax and -r may not be used together\n")); *again = FALSE; return TRUE; } /* INTERNAL_FUNCTION bfd_generic_gc_sections SYNOPSIS bfd_boolean bfd_generic_gc_sections (bfd *, struct bfd_link_info *); DESCRIPTION Provides default handling for relaxing for back ends which don't do section gc -- i.e., does nothing. */ bfd_boolean bfd_generic_gc_sections (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED) { return TRUE; } /* INTERNAL_FUNCTION bfd_generic_merge_sections SYNOPSIS bfd_boolean bfd_generic_merge_sections (bfd *, struct bfd_link_info *); DESCRIPTION Provides default handling for SEC_MERGE section merging for back ends which don't have SEC_MERGE support -- i.e., does nothing. */ bfd_boolean bfd_generic_merge_sections (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *link_info ATTRIBUTE_UNUSED) { return TRUE; } /* INTERNAL_FUNCTION bfd_generic_get_relocated_section_contents SYNOPSIS bfd_byte *bfd_generic_get_relocated_section_contents (bfd *abfd, struct bfd_link_info *link_info, struct bfd_link_order *link_order, bfd_byte *data, bfd_boolean relocatable, asymbol **symbols); DESCRIPTION Provides default handling of relocation effort for back ends which can't be bothered to do it efficiently. */ bfd_byte * bfd_generic_get_relocated_section_contents (bfd *abfd, struct bfd_link_info *link_info, struct bfd_link_order *link_order, bfd_byte *data, bfd_boolean relocatable, asymbol **symbols) { bfd *input_bfd = link_order->u.indirect.section->owner; asection *input_section = link_order->u.indirect.section; long reloc_size; arelent **reloc_vector; long reloc_count; bfd_size_type sz; reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section); if (reloc_size < 0) return NULL; /* Read in the section. */ sz = input_section->rawsize ? input_section->rawsize : input_section->size; if (!bfd_get_section_contents (input_bfd, input_section, data, 0, sz)) return NULL; if (reloc_size == 0) return data; reloc_vector = (arelent **) bfd_malloc (reloc_size); if (reloc_vector == NULL) return NULL; reloc_count = bfd_canonicalize_reloc (input_bfd, input_section, reloc_vector, symbols); if (reloc_count < 0) goto error_return; if (reloc_count > 0) { arelent **parent; for (parent = reloc_vector; *parent != NULL; parent++) { char *error_message = NULL; asymbol *symbol; bfd_reloc_status_type r; symbol = *(*parent)->sym_ptr_ptr; if (symbol->section && elf_discarded_section (symbol->section)) { bfd_byte *p; static reloc_howto_type none_howto = HOWTO (0, 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, "unused", FALSE, 0, 0, FALSE); p = data + (*parent)->address * bfd_octets_per_byte (input_bfd); _bfd_clear_contents ((*parent)->howto, input_bfd, input_section, p); (*parent)->sym_ptr_ptr = bfd_abs_section.symbol_ptr_ptr; (*parent)->addend = 0; (*parent)->howto = &none_howto; r = bfd_reloc_ok; } else r = bfd_perform_relocation (input_bfd, *parent, data, input_section, relocatable ? abfd : NULL, &error_message); if (relocatable) { asection *os = input_section->output_section; /* A partial link, so keep the relocs. */ os->orelocation[os->reloc_count] = *parent; os->reloc_count++; } if (r != bfd_reloc_ok) { switch (r) { case bfd_reloc_undefined: if (!((*link_info->callbacks->undefined_symbol) (link_info, bfd_asymbol_name (*(*parent)->sym_ptr_ptr), input_bfd, input_section, (*parent)->address, TRUE))) goto error_return; break; case bfd_reloc_dangerous: BFD_ASSERT (error_message != NULL); if (!((*link_info->callbacks->reloc_dangerous) (link_info, error_message, input_bfd, input_section, (*parent)->address))) goto error_return; break; case bfd_reloc_overflow: if (!((*link_info->callbacks->reloc_overflow) (link_info, NULL, bfd_asymbol_name (*(*parent)->sym_ptr_ptr), (*parent)->howto->name, (*parent)->addend, input_bfd, input_section, (*parent)->address))) goto error_return; break; case bfd_reloc_outofrange: default: abort (); break; } } } } free (reloc_vector); return data; error_return: free (reloc_vector); return NULL; }
ccompiler4pic32/pic32-binutils
bfd/reloc.c
C
gpl-2.0
138,904
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Framework\Interception\Config; /** * Interception cache manager. * * Responsible for handling interaction with compiled and uncompiled interception data */ class CacheManager { /** * @var \Magento\Framework\Cache\FrontendInterface */ private $cache; /** * @var \Magento\Framework\Serialize\SerializerInterface */ private $serializer; /** * @var \Magento\Framework\App\ObjectManager\ConfigWriterInterface */ private $configWriter; /** * @var \Magento\Framework\App\ObjectManager\ConfigLoader\Compiled */ private $compiledLoader; /** * @param \Magento\Framework\Cache\FrontendInterface $cache * @param \Magento\Framework\Serialize\SerializerInterface $serializer * @param \Magento\Framework\App\ObjectManager\ConfigWriterInterface $configWriter * @param \Magento\Framework\App\ObjectManager\ConfigLoader\Compiled $compiledLoader */ public function __construct( \Magento\Framework\Cache\FrontendInterface $cache, \Magento\Framework\Serialize\SerializerInterface $serializer, \Magento\Framework\App\ObjectManager\ConfigWriterInterface $configWriter, \Magento\Framework\App\ObjectManager\ConfigLoader\Compiled $compiledLoader ) { $this->cache = $cache; $this->serializer = $serializer; $this->configWriter = $configWriter; $this->compiledLoader = $compiledLoader; } /** * Load the interception config from cache * * @param string $key * @return array|null */ public function load(string $key): ?array { if ($this->isCompiled($key)) { return $this->compiledLoader->load($key); } $intercepted = $this->cache->load($key); return $intercepted ? $this->serializer->unserialize($intercepted) : null; } /** * Save config to cache backend * * @param string $key * @param array $data */ public function save(string $key, array $data) { $this->cache->save($this->serializer->serialize($data), $key); } /** * Save config to filesystem * * @param string $key * @param array $data */ public function saveCompiled(string $key, array $data) { $this->configWriter->write($key, $data); } /** * Purge interception cache * * @param string $key */ public function clean(string $key) { $this->cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_TAG, [$key]); } /** * Check for the compiled config with the generated metadata * * @param string $key * @return bool */ private function isCompiled(string $key): bool { return file_exists(\Magento\Framework\App\ObjectManager\ConfigLoader\Compiled::getFilePath($key)); } }
kunj1988/Magento2
lib/internal/Magento/Framework/Interception/Config/CacheManager.php
PHP
gpl-2.0
3,007
/* Tomato Firmware Copyright (C) 2006-2007 Jonathan Zarate $Id: qos.c 241383 2011-02-18 03:30:06Z stakita $ */ #include "rc.h" #include <sys/stat.h> #include <stdarg.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <syslog.h> #include <fcntl.h> #include <bcmnvram.h> #include <shutils.h> #include <shared.h> #include <arpa/inet.h> #include <sys/socket.h> static const char *qosfn = "/tmp/qos"; static const char *mangle_fn = "/tmp/mangle_rules"; #ifdef RTCONFIG_IPV6 static const char *mangle_fn_ipv6 = "/tmp/mangle_rules_ipv6"; #endif int manual_return = 0; // FindMask : // 1. sourceStr : replace "*'" to "0" // 2. matchStr : here is "*" // 3. replaceStr : here is "0" // 4. Mask : find rule's submask static int FindMask(char *sourceStr, char *matchStr, char *replaceStr, char *Mask){ char newStr[40]; int strLen; int count = 0; char *FindPos = strstr(sourceStr, matchStr); if((!FindPos) || (!matchStr)) return -1; while(FindPos != NULL){ count++; //fprintf(stderr,"[FindMask] FindPos=%s, strLen=%d, count=%d, sourceStr=%s\n", FindPos, strLen, count, sourceStr); // tmp test memset(newStr, 0, sizeof(newStr)); strLen = FindPos - sourceStr; strncpy(newStr, sourceStr, strLen); strcat(newStr, replaceStr); strcat(newStr, FindPos + strlen(matchStr)); strcpy(sourceStr, newStr); FindPos = strstr(sourceStr, matchStr); } switch(count){ case 1: strcpy(Mask, "255.255.255.0"); break; case 2: strcpy(Mask, "255.255.0.0"); break; case 3: strcpy(Mask, "255.0.0.0"); break; case 4: strcpy(Mask, "0.0.0.0"); break; default: strcpy(Mask, "255.255.255.255"); break; } //fprintf(stderr,"[FindMask] count=%d, Mask=%s\n", count, Mask); // tmp test return 0; } static unsigned calc(unsigned bw, unsigned pct) { unsigned n = ((unsigned long)bw * pct) / 100; return (n < 2) ? 2 : n; } #ifdef CONFIG_BCMWL5 // TODO: it is only for the case, eth0 as wan, vlanx as lan int etable_flag = 0; void del_EbtablesRules(void) { /* Flush all rules in nat table of ebtable*/ eval("ebtables", "-t", "nat", "-F"); etable_flag = 0; } void add_EbtablesRules(void) { if(etable_flag == 1) return; char *nv, *p, *g; nv = g = strdup(nvram_safe_get("wl_ifnames")); if(nv){ while ((p = strsep(&g, " ")) != NULL){ //fprintf(stderr, "%s: g=%s, p=%s\n", __FUNCTION__, g, p); //tmp test eval("ebtables", "-t", "nat", "-A", "PREROUTING", "-i", p, "-j", "mark", "--mark-or", "6", "--mark-target", "ACCEPT"); eval("ebtables", "-t", "nat", "-A", "POSTROUTING", "-o", p, "-j", "mark", "--mark-or", "6", "--mark-target", "ACCEPT"); } free(nv); } // for MultiSSID int UnitNum = 2; // wl0.x, wl1.x int GuestNum = 3; // wlx.0, wlx.1, wlx.2 char mssid_if[32]; char mssid_enable[32]; int i, j; for( i = 0; i < UnitNum; i++){ for( j = 1; j <= GuestNum; j++ ){ snprintf(mssid_if, sizeof(mssid_if), "wl%d.%d", i, j); snprintf(mssid_enable, sizeof(mssid_enable), "%s_bss_enabled", mssid_if); //fprintf(stderr, "%s: mssid_enable=%s\n", __FUNCTION__, mssid_enable); //tmp test if(!strcmp(nvram_safe_get(mssid_enable), "1")){ eval("ebtables", "-t", "nat", "-A", "PREROUTING", "-i", mssid_if, "-j", "mark", "--mark-or", "6", "--mark-target", "ACCEPT"); eval("ebtables", "-t", "nat", "-A", "POSTROUTING", "-o", mssid_if, "-j", "mark", "--mark-or", "6", "--mark-target", "ACCEPT"); } } } etable_flag = 1; } #endif void del_iQosRules(void) { #ifdef CLS_ACT eval("ip", "link", "set", "imq0", "down"); #endif #ifdef CONFIG_BCMWL5 // TODO: it is only for the case, eth0 as wan, vlanx as lan del_EbtablesRules(); // flush ebtables nat table #endif /* Flush all rules in mangle table */ eval("iptables", "-t", "mangle", "-F"); #ifdef RTCONFIG_IPV6 eval("ip6tables", "-t", "mangle", "-F"); #endif } int add_iQosRules(char *pcWANIF) { FILE *fn; #ifdef RTCONFIG_IPV6 FILE *fn_ipv6 = NULL; #endif char *buf; char *g; char *p; char *desc, *addr, *port, *prio, *transferred, *proto; int class_num; int down_class_num=6; // for download class_num = 0x6 / 0x106 int i, inuse; char q_inuse[32]; // for inuse char dport[192], saddr_1[192], saddr_2[192], proto_1[8], proto_2[8],conn[256], end[256], end2[256]; int method; int gum; int sticky_enable; const char *chain; int v4v6_ok; if(pcWANIF == NULL || nvram_get_int("qos_enable") != 1 || nvram_get_int("qos_type") != 0) return -1; if((fn = fopen(mangle_fn, "w")) == NULL) return -2; #ifdef RTCONFIG_IPV6 #define ipv6_enabled() (0) if(ipv6_enabled() && (fn_ipv6 = fopen(mangle_fn_ipv6, "w")) == NULL) { fclose(fn); return -3; } #endif inuse = sticky_enable = 0; if(get_model()==MODEL_RTAC56U || get_model()==MODEL_RTAC56S || get_model()==MODEL_RTAC68U || get_model()==MODEL_DSLAC68U || get_model()==MODEL_RTAC87U || get_model()==MODEL_RTAC3200 || get_model()==MODEL_RTAC88U || get_model()==MODEL_RTAC5300) manual_return = 1; if(nvram_match("qos_sticky", "0")) sticky_enable = 1; del_iQosRules(); // flush all rules in mangle table #ifdef CLS_ACT eval("ip", "link", "set", "imq0", "up"); #endif fprintf(stderr, "[qos] iptables START\n"); fprintf(fn, "*mangle\n" ":PREROUTING ACCEPT [0:0]\n" ":OUTPUT ACCEPT [0:0]\n" ":QOSO - [0:0]\n" "-A QOSO -j CONNMARK --restore-mark --mask 0x7\n" "-A QOSO -m connmark ! --mark 0/0xff00 -j RETURN\n" ); #ifdef RTCONFIG_IPV6 if (ipv6_enabled()) fprintf(fn_ipv6, "*mangle\n" ":PREROUTING ACCEPT [0:0]\n" ":OUTPUT ACCEPT [0:0]\n" ":QOSO - [0:0]\n" "-A QOSO -j CONNMARK --restore-mark --mask 0x7\n" "-A QOSO -m connmark ! --mark 0/0xff00 -j RETURN\n" ); #endif g = buf = strdup(nvram_safe_get("qos_rulelist")); while (g) { /* ASUSWRT qos_rulelist : desc>addr>port>proto>transferred>prio addr : (source) IP or MAC or IP-range port : dest port proto : tcp, udp, tcp/udp, any , (icmp, igmp) transferred : min:max prio : 0-4, 0 is the highest */ if ((p = strsep(&g, "<")) == NULL) break; if((vstrsep(p, ">", &desc, &addr, &port, &proto, &transferred, &prio)) != 6) continue; class_num = atoi(prio); if ((class_num < 0) || (class_num > 4)) continue; i = 1 << class_num; ++class_num; //if (method == 1) class_num |= 0x200; if ((inuse & i) == 0) { inuse |= i; fprintf(stderr, "[qos] iptable creates, inuse=%d\n", inuse); } v4v6_ok = IPT_V4; #ifdef RTCONFIG_IPV6 if (ipv6_enabled()) v4v6_ok |= IPT_V6; #endif /* Beginning of the Rule */ /* if transferred != NULL, class_num must bt 0x1~0x6, not 0x101~0x106 0x1~0x6 : keep tracing this connection. 0x101~0x106 : connection will be considered as marked connection, won't detect again. */ #if 0 if(strcmp(transferred, "") != 0 ) method = 1; else method = nvram_get_int("qos_method"); // strict rule ordering gum = (method == 0) ? 0x100 : 0; #else method = 1; gum = 0; #endif class_num |= gum; down_class_num |= gum; // for download chain = "QOSO"; // chain name sprintf(end , " -j CONNMARK --set-return 0x%x/0x7\n", class_num); // CONNMARK string sprintf(end2, " -j RETURN\n"); /*************************************************/ /* addr */ /* src mac or src ip or IP range */ /*************************************************/ char tmp[20], addr_t[40]; char *tmp_addr, *q_ip, *q_mac; memset(saddr_1, 0, sizeof(saddr_1)); memset(saddr_2, 0, sizeof(saddr_2)); memset(tmp, 0, sizeof(tmp)); sprintf(tmp, "%s", addr); tmp_addr = tmp; q_ip = strsep(&tmp_addr, ":"); q_mac = tmp_addr; memset(addr_t, 0, sizeof(addr_t)); sprintf(addr_t, "%s", addr); // step1: check contain '-' or not, if yes, IP-range, ex. 192.168.1.10-192.168.1.100 // step2: check addr is NULL // step3: check IP or MAC // step4: check IP contain '*' or not, if yes, IP-range // step5: check DUT's LAN IP shouldn't inside IP-range // step1: check contain '-' or not, if yes, IP-range if(strchr(addr_t, '-') == NULL){ // step2: check addr is NULL if(!strcmp(addr_t, "")){ sprintf(saddr_1, "%s", addr_t); // NULL } else{ // step2 // step3: check IP or MAC if (q_mac == NULL){ // step4: check IP contain '*' or not, if yes, IP-range if(strchr(q_ip, '*') != NULL){ char *rule; char Mask[40]; struct in_addr range_A, range_B, range_C; memset(Mask, 0, sizeof(Mask)); rule = strdup(addr_t); FindMask(rule, "*", "0", Mask); // find submask and replace "*" to "0" memset(addr_t, 0, sizeof(addr_t)); sprintf(addr_t, "%s", rule); // copy rule to addr_t for v4v6_ok unsigned int ip = inet_addr(rule); // covert rule's IP into binary form unsigned int nm = inet_addr(Mask); // covert submask into binary form unsigned int gw = inet_addr(nvram_safe_get("lan_ipaddr")); // covert DUT's LAN IP into binary form unsigned int gw_t = htonl(gw); range_A.s_addr = ntohl(gw_t - 1); range_B.s_addr = ntohl(gw_t + 1); range_C.s_addr = ip | ~nm; //fprintf(stderr, "[addr] addr_t=%s, rule/Mask=%s/%s, ip/nm/gw=%x/%x/%x\n", addr_t, rule, Mask, ip, nm, gw); // tmp test // step5: check DUT's LAN IP shouldn't inside IP-range // DUT's LAN IP inside IP-range if( (ip & nm) == (gw & nm)){ //fprintf(stderr, "[addr] %x/%x/%x/%x/%s matched\n", ip_t, nm_t, gw_t, range_B.s_addr, inet_ntoa(range_B)); // tmp test char range_B_addr[40]; sprintf(range_B_addr, "%s", inet_ntoa(range_B)); sprintf(saddr_1, "-m iprange --src-range %s-%s", rule, inet_ntoa(range_A)); // IP-range sprintf(saddr_2, "-m iprange --src-range %s-%s", range_B_addr, inet_ntoa(range_C)); // IP-range } else{ sprintf(saddr_1, "-m iprange --src-range %s-%s", rule, inet_ntoa(range_C)); // IP-range } free(rule); } else{ // step4 sprintf(saddr_1, "-s %s", addr_t); // IP } v4v6_ok &= ipt_addr_compact(addr_t, v4v6_ok, (v4v6_ok==IPT_V4)); if (!v4v6_ok) continue; } else{ // step3 sprintf(saddr_1, "-m mac --mac-source %s", addr_t); // MAC } } } else{ // step1 sprintf(saddr_1, "-m iprange --src-range %s", addr_t); // IP-range } //fprintf(stderr, "[qos] tmp=%s, ip=%s, mac=%s, addr=%s, addr_t=%s, saddr_1=%s, saddr_2=%s\n", tmp, q_ip, q_mac, addr, addr_t, saddr_1, saddr_2); // tmp test /*************************************************/ /* port */ /* single port or multi-ports */ /*************************************************/ char *tmp_port, *q_port, *q_leave; sprintf(tmp, "%s", port); tmp_port = tmp; q_port = strsep(&tmp_port, ","); q_leave = tmp_port; if(strcmp(port, "") == 0 ){ sprintf(dport, "%s", ""); } else{ if(q_leave != NULL) sprintf(dport, "-m multiport --dport %s", port); // multi port else sprintf(dport, "--dport %s", port); // single port } //fprintf(stderr, "[qos] tmp=%s, q_port=%s, q_leave=%s, port=%s\n", tmp, q_port, q_leave, port ); // tmp test /*************************************************/ /* transferred */ /* --connbytes min:max */ /* --connbytes-dir (original/reply/both) */ /* --connbytes-mode (packets/bytes/avgpkt) */ /*************************************************/ char *tmp_trans, *q_min, *q_max; long min, max ; sprintf(tmp, "%s", transferred); tmp_trans = tmp; q_min = strsep(&tmp_trans, "~"); q_max = tmp_trans; if (strcmp(transferred,"") == 0){ sprintf(conn, "%s", ""); } else{ sprintf(tmp, "%s", q_min); min = atol(tmp); if(strcmp(q_max,"") == 0) // q_max == NULL sprintf(conn, "-m connbytes --connbytes %ld:%s --connbytes-dir both --connbytes-mode bytes", min*1024, q_max); else{// q_max != NULL sprintf(tmp, "%s", q_max); max = atol(tmp); sprintf(conn, "-m connbytes --connbytes %ld:%ld --connbytes-dir both --connbytes-mode bytes", min*1024, max*1024-1); } } //fprintf(stderr, "[qos] tmp=%s, transferred=%s, min=%ld, max=%ld, q_max=%s, conn=%s\n", tmp, transferred, min*1024, max*1024-1, q_max, conn); // tmp test /*************************************************/ /* proto */ /* tcp, udp, tcp/udp, any, (icmp, igmp) */ /*************************************************/ memset(proto_1, 0, sizeof(proto_1)); memset(proto_2, 0, sizeof(proto_2)); if(!strcmp(proto, "tcp")) { sprintf(proto_1, "-p tcp"); sprintf(proto_2, "NO"); } else if(!strcmp(proto, "udp")) { sprintf(proto_1, "-p udp"); sprintf(proto_2, "NO"); } else if(!strcmp(proto, "any")) { sprintf(proto_1, "%s", ""); sprintf(proto_2, "NO"); } else if(!strcmp(proto, "tcp/udp")) { sprintf(proto_1, "-p tcp"); sprintf(proto_2, "-p udp"); } else{ sprintf(proto_1, "NO"); sprintf(proto_2, "NO"); } //fprintf(stderr, "[qos] proto_1=%s, proto_2=%s, proto=%s\n", proto_1, proto_2, proto); // tmp test /*******************************************************************/ /* */ /* build final rule for check proto_1, proto_2, saddr_1, saddr_2 */ /* */ /*******************************************************************/ // step1. check proto != "NO" // step2. if proto = any, no proto / dport // step3. check saddr for ip-range; saddr_1 could be empty, dport only if (v4v6_ok & IPT_V4){ // step1. check proto != "NO" if(strcmp(proto_1, "NO")){ // step2. if proto = any, no proto / dport if(strcmp(proto_1, "")){ // step3. check saddr for ip-range;saddr_1 could be empty, dport only fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_1, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_2, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_2, conn, end2); } } else{ fprintf(fn, "-A %s %s %s %s", chain, saddr_1, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s", chain, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn, "-A %s %s %s %s", chain, saddr_2, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s", chain, saddr_2, conn, end2); } } } // step1. check proto != "NO" if(strcmp(proto_2, "NO")){ // step2. if proto = any, no proto / dport if(strcmp(proto_2, "")){ // step3. check saddr for ip-range;saddr_1 could be empty, dport only fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_1, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_2, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_2, conn, end2); } } else{ fprintf(fn, "-A %s %s %s %s", chain, saddr_1, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s", chain, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn, "-A %s %s %s %s", chain, saddr_2, conn, end); if(manual_return) fprintf(fn, "-A %s %s %s %s", chain, saddr_2, conn, end2); } } } } #ifdef RTCONFIG_IPV6 if (ipv6_enabled() && (v4v6_ok & IPT_V6)){ // step1. check proto != "NO" if(strcmp(proto_1, "NO")){ // step2. if proto = any, no proto / dport if(strcmp(proto_1, "")){ // step3. check saddr for ip-range;saddr_1 could be empty, dport only fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_1, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_2, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_1, dport, saddr_2, conn, end2); } } else{ fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_1, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_2, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_2, conn, end2); } } } // step1. check proto != "NO" if(strcmp(proto_2, "NO")){ // step2. if proto = any, no proto / dport if(strcmp(proto_2, "")){ // step3. check saddr for ip-range;saddr_1 could be empty, dport only fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_1, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_2, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s %s %s", chain, proto_2, dport, saddr_2, conn, end2); } } else{ fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_1, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_1, conn, end2); if(strcmp(saddr_2, "")){ fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_2, conn, end); if(manual_return) fprintf(fn_ipv6, "-A %s %s %s %s", chain, saddr_2, conn, end2); } } } } #endif } free(buf); /* lan_addr for iptables use (LAN download) */ char *a, *b, *c, *d; char lan_addr[20]; g = buf = strdup(nvram_safe_get("lan_ipaddr")); if((vstrsep(g, ".", &a, &b, &c, &d)) != 4){ fprintf(stderr,"[qos] lan_ipaddr doesn't exist!!\n"); } else{ sprintf(lan_addr, "%s.%s.%s.0/24", a, b, c); fprintf(stderr,"[qos] lan_addr=%s\n", lan_addr); } free(buf); //fprintf(stderr, "[qos] down_class_num=%x\n", down_class_num); /* The default class */ i = nvram_get_int("qos_default"); if ((i < 0) || (i > 4)) i = 3; // "lowest" class_num = i + 1; #ifdef CONFIG_BCMWL5 // TODO: it is only for the case, eth0 as wan, vlanx as lan if(strncmp(pcWANIF, "ppp", 3)==0){ // ppp related interface doesn't need physdev // do nothing } else{ /* for WLAN to LAN bridge packet */ // ebtables : identify bridge packet add_EbtablesRules(); // for multicast fprintf(fn, "-A QOSO -d 224.0.0.0/4 -j CONNMARK --set-return 0x%x/0x7\n", down_class_num); if(manual_return) fprintf(fn , "-A QOSO -d 224.0.0.0/4 -j RETURN\n"); // for download (LAN or wireless) fprintf(fn, "-A QOSO -d %s -j CONNMARK --set-return 0x%x/0x7\n", lan_addr, down_class_num); if(manual_return) fprintf(fn , "-A QOSO -d %s -j RETURN\n", lan_addr); /* Requires bridge netfilter, but slows down and breaks EMF/IGS IGMP IPTV Snooping // for WLAN to LAN bridge issue fprintf(fn, "-A POSTROUTING -d %s -m physdev --physdev-is-in -j CONNMARK --set-return 0x6/0x7\n", lan_addr); */ // for download, interface br0 fprintf(fn, "-A POSTROUTING -o br0 -j QOSO\n"); } #endif fprintf(fn, "-A QOSO -j CONNMARK --set-return 0x%x/0x7\n" "-A FORWARD -o %s -j QOSO\n" "-A OUTPUT -o %s -j QOSO\n", class_num, pcWANIF, pcWANIF); if(manual_return) fprintf(fn , "-A QOSO -j RETURN\n"); #ifdef RTCONFIG_IPV6 if (ipv6_enabled() && *wan6face) { #ifdef CONFIG_BCMWL5 // TODO: it is only for the case, eth0 as wan, vlanx as lan if(strncmp(wan6face, "ppp", 3)==0){ // ppp related interface doesn't need physdev // do nothing } else{ /* for WLAN to LAN bridge packet */ // ebtables : identify bridge packet add_EbtablesRules(); // for multicast fprintf(fn_ipv6, "-A QOSO -d 224.0.0.0/4 -j CONNMARK --set-return 0x%x/0x7\n", down_class_num); if(manual_return) fprintf(fn_ipv6, "-A QOSO -d 224.0.0.0/4 -j RETURN\n"); // for download (LAN or wireless) fprintf(fn_ipv6, "-A QOSO -d %s -j CONNMARK --set-return 0x%x/0x7\n", lan_addr, down_class_num); if(manual_return) fprintf(fn_ipv6, "-A QOSO -d %s -j RETURN\n", lan_addr); /* Requires bridge netfilter, but slows down and breaks EMF/IGS IGMP IPTV Snooping // for WLAN to LAN bridge issue fprintf(fn_ipv6, "-A POSTROUTING -d %s -m physdev --physdev-is-in -j CONNMARK --set-return 0x6/0x7\n", lan_addr); */ // for download, interface br0 fprintf(fn_ipv6, "-A POSTROUTING -o br0 -j QOSO\n"); } #endif fprintf(fn_ipv6, "-A QOSO -j CONNMARK --set-return 0x%x/0x7\n" "-A FORWARD -o %s -j QOSO\n" "-A OUTPUT -o %s -j QOSO\n", class_num, wan6face, wan6face); if(manual_return) fprintf(fn_ipv6, "-A QOSO -j RETURN\n"); } #endif inuse |= (1 << i) | 1; // default and highest are always built sprintf(q_inuse, "%d", inuse); nvram_set("qos_inuse", q_inuse); fprintf(stderr, "[qos] qos_inuse=%d\n", inuse); /* Ingress rules */ g = buf = strdup(nvram_safe_get("qos_irates")); for (i = 0; i < 10; ++i) { if ((!g) || ((p = strsep(&g, ",")) == NULL)) continue; if ((inuse & (1 << i)) == 0) continue; if (atoi(p) > 0) { fprintf(fn, "-A PREROUTING -i %s -j CONNMARK --restore-mark --mask 0x7\n", pcWANIF); #ifdef CLS_ACT fprintf(fn, "-A PREROUTING -i %s -j IMQ --todev 0\n", pcWANIF); #endif #ifdef RTCONFIG_IPV6 if (ipv6_enabled() && *wan6face) { fprintf(fn_ipv6, "-A PREROUTING -i %s -j CONNMARK --restore-mark --mask 0x7\n", wan6face); #ifdef CLS_ACT fprintf(fn_ipv6, "-A PREROUTING -i %s -j IMQ --todev 0\n", wan6face); #endif } #endif break; } } free(buf); fprintf(fn, "COMMIT\n"); fclose(fn); chmod(mangle_fn, 0700); eval("iptables-restore", (char*)mangle_fn); #ifdef RTCONFIG_IPV6 if (ipv6_enabled()) { fprintf(fn_ipv6, "COMMIT\n"); fclose(fn_ipv6); chmod(mangle_fn_ipv6, 0700); // eval("ip6tables-restore", (char*)mangle_fn_ipv6); } #endif fprintf(stderr, "[qos] iptables DONE!\n"); return 0; } /*******************************************************************/ // The definations of all partations // eth0 : WAN // 1:1 : upload // 1:2 : download (1000000Kbits) // 1:10 : highest // 1:20 : high // 1:30 : middle // 1:40 : low (default) // 1:50 : lowest // 1:60 : ALL Download (WAN to LAN and LAN to LAN) (1000000kbits) /*******************************************************************/ /* Tc */ int start_iQos(void) { int i; char *buf, *g, *p; unsigned int rate; unsigned int ceil; unsigned int ibw, obw, bw; unsigned int mtu; FILE *f; int x; int inuse; char s[256]; int first; char burst_root[32]; char burst_leaf[32]; #ifdef CONFIG_BCMWL5 char *protocol="802.1q"; #endif // judge interface by get_wan_ifname // add Qos iptable rules in mangle table, // move it to firewall - mangle_setting // add_iQosRules(get_wan_ifname(0)); // iptables start if(nvram_get_int("qos_enable") != 1 || nvram_get_int("qos_type") != 0) return -1; ibw = strtoul(nvram_safe_get("qos_ibw"), NULL, 10); obw = strtoul(nvram_safe_get("qos_obw"), NULL, 10); if(ibw==0||obw==0) return -1; if((f = fopen(qosfn, "w")) == NULL) return -2; fprintf(stderr, "[qos] tc START!\n"); /* qos_burst */ i = nvram_get_int("qos_burst0"); if(i > 0) sprintf(burst_root, "burst %dk", i); else burst_root[0] = 0; i = nvram_get_int("qos_burst1"); if(i > 0) sprintf(burst_leaf, "burst %dk", i); else burst_leaf[0] = 0; /* Egress OBW -- set the HTB shaper (Classful Qdisc) * the BW is set here for each class */ mtu = strtoul(nvram_safe_get("wan_mtu"), NULL, 10); bw = obw; /* WAN */ fprintf(f, "#!/bin/sh\n" "#LAN/WAN\n" "I=%s\n" "SFQ=\"sfq perturb 10\"\n" "TQA=\"tc qdisc add dev $I\"\n" "TCA=\"tc class add dev $I\"\n" "TFA=\"tc filter add dev $I\"\n" #ifdef CLS_ACT "DLIF=imq0\n" "TQADL=\"tc qdisc add dev $DLIF\"\n" "TCADL=\"tc class add dev $DLIF\"\n" "TFADL=\"tc filter add dev $DLIF\"\n" #endif "case \"$1\" in\n" "start)\n" "#LAN/WAN\n" "\ttc qdisc del dev $I root 2>/dev/null\n" "\t$TQA root handle 1: htb default %u\n" #ifdef CLS_ACT "\ttc qdisc del dev $DLIF root 2>/dev/null\n" "\t$TQADL root handle 2: htb default %u\n" #endif "# upload 1:1\n" "\t$TCA parent 1: classid 1:1 htb rate %ukbit ceil %ukbit %s\n" , get_wan_ifname(0), // judge WAN interface (nvram_get_int("qos_default") + 1) * 10, #ifdef CLS_ACT (nvram_get_int("qos_default") + 1) * 10, #endif bw, bw, burst_root); /* LAN protocol: 802.1q */ #ifdef CONFIG_BCMWL5 // TODO: it is only for the case, eth0 as wan, vlanx as lan protocol = "802.1q"; fprintf(f, "# download 1:2\n" "\t$TCA parent 1: classid 1:2 htb rate 1000000kbit ceil 1000000kbit burst 10000 cburst 10000\n" "# 1:60 ALL Download for BCM\n" "\t$TCA parent 1:2 classid 1:60 htb rate 1000000kbit ceil 1000000kbit burst 10000 cburst 10000 prio 6\n" "\t$TQA parent 1:60 handle 60: pfifo\n" "\t$TFA parent 1: prio 6 protocol %s handle 6 fw flowid 1:60\n", protocol ); #endif inuse = nvram_get_int("qos_inuse"); g = buf = strdup(nvram_safe_get("qos_orates")); for (i = 0; i < 5; ++i) { // 0~4 , 0:highest, 4:lowest if ((!g) || ((p = strsep(&g, ",")) == NULL)) break; if ((inuse & (1 << i)) == 0){ fprintf(stderr, "[qos] egress %d doesn't create, inuse=%d\n", i, inuse ); continue; } else fprintf(stderr, "[qos] egress %d creates\n", i); if ((sscanf(p, "%u-%u", &rate, &ceil) != 2) || (rate < 1)) continue; if (ceil > 0) sprintf(s, "ceil %ukbit ", calc(bw, ceil)); else s[0] = 0; x = (i + 1) * 10; fprintf(f, "# egress %d: %u-%u%%\n" "\t$TCA parent 1:1 classid 1:%d htb rate %ukbit %s %s prio %d quantum %u\n" "\t$TQA parent 1:%d handle %d: $SFQ\n" "\t$TFA parent 1: prio %d protocol ip handle %d fw flowid 1:%d\n", i, rate, ceil, x, calc(bw, rate), s, burst_leaf, (i >= 6) ? 7 : (i + 1), mtu, x, x, x, i + 1, x); } free(buf); /* 10000 = ACK 00100 = RST 00010 = SYN 00001 = FIN */ if (nvram_match("qos_ack", "on")) { fprintf(f, "\n" "\t$TFA parent 1: prio 14 protocol ip u32 " "match ip protocol 6 0xff " // TCP "match u8 0x05 0x0f at 0 " // IP header length "match u16 0x0000 0xffc0 at 2 " // total length (0-63) "match u8 0x10 0xff at 33 " // ACK only "flowid 1:10\n"); } if (nvram_match("qos_syn", "on")) { fprintf(f, "\n" "\t$TFA parent 1: prio 15 protocol ip u32 " "match ip protocol 6 0xff " // TCP "match u8 0x05 0x0f at 0 " // IP header length "match u16 0x0000 0xffc0 at 2 " // total length (0-63) "match u8 0x02 0x02 at 33 " // SYN,* "flowid 1:10\n"); } if (nvram_match("qos_fin", "on")) { fprintf(f, "\n" "\t$TFA parent 1: prio 17 protocol ip u32 " "match ip protocol 6 0xff " // TCP "match u8 0x05 0x0f at 0 " // IP header length "match u16 0x0000 0xffc0 at 2 " // total length (0-63) "match u8 0x01 0x01 at 33 " // FIN,* "flowid 1:10\n"); } if (nvram_match("qos_rst", "on")) { fprintf(f, "\n" "\t$TFA parent 1: prio 19 protocol ip u32 " "match ip protocol 6 0xff " // TCP "match u8 0x05 0x0f at 0 " // IP header length "match u16 0x0000 0xffc0 at 2 " // total length (0-63) "match u8 0x04 0x04 at 33 " // RST,* "flowid 1:10\n"); } if (nvram_match("qos_icmp", "on")) { fputs("\n\t$TFA parent 1: prio 13 protocol ip u32 match ip protocol 1 0xff flowid 1:10\n", f); } // ingress first = 1; bw = ibw; if (bw > 0) { g = buf = strdup(nvram_safe_get("qos_irates")); for (i = 0; i < 5; ++i) { // 0~4 , 0:highest, 4:lowest if ((!g) || ((p = strsep(&g, ",")) == NULL)) break; if ((inuse & (1 << i)) == 0) continue; if ((rate = atoi(p)) < 1) continue; // 0 = off if (first) { first = 0; fprintf(f, "\n" #if !defined(CLS_ACT) "\ttc qdisc del dev $I ingress 2>/dev/null\n" "\t$TQA handle ffff: ingress\n" #endif ); } // rate in kb/s unsigned int u = calc(bw, rate); // burst rate unsigned int v = u / 2; if (v < 50) v = 50; #ifdef CLS_ACT x = (i + 1) * 10; fprintf(f, "# ingress %d: %u%%\n" "\t$TCADL parent 2:1 classid 2:%d htb rate %ukbit %s prio %d quantum %u\n" "\t$TQADL parent 2:%d handle %d: $SFQ\n" "\t$TFADL parent 2: prio %d protocol ip handle %d fw flowid 2:%d\n", i, rate, x, calc(bw, rate), burst_leaf, (i >= 6) ? 7 : (i + 1), mtu, x, x, x, i + 1, x); #else x = i + 1; fprintf(f, "# ingress %d: %u%%\n" "\t$TFA parent ffff: prio %d protocol ip handle %d" " fw police rate %ukbit burst %ukbit drop flowid ffff:%d\n", i, rate, x, x, u, v, x); #endif } free(buf); } fputs( "\t;;\n" "stop)\n" "\ttc qdisc del dev $I root 2>/dev/null\n" #ifdef CLS_ACT "\ttc qdisc del dev $DLIF root 2>/dev/null\n" #else "\ttc qdisc del dev $I ingress 2>/dev/null\n" #endif "\t;;\n" "*)\n" "\t#---------- Upload ----------\n" "\ttc -s -d class ls dev $I\n" "\ttc -s -d qdisc ls dev $I\n" "\techo\n" #ifdef CLS_ACT "\t#--------- Download ---------\n" "\ttc -s -d class ls dev $DLIF\n" "\ttc -s -d qdisc ls dev $DLIF\n" "\techo\n" #endif "esac\n", f); fclose(f); chmod(qosfn, 0700); eval((char *)qosfn, "start"); fprintf(stderr,"[qos] tc done!\n"); return 0; } void stop_iQos(void) { eval((char *)qosfn, "stop"); }
mikewadsten/asuswrt
release/src/router/rc/qos.c
C
gpl-2.0
29,647
<?php /** * * Description * * @package tsmart * @subpackage Currency * @author Max Milbers, RickG * @link http://www.tsmart.net * @copyright Copyright (c) 2004 - 2010 tsmart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * tsmart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id$ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); $doc=JFactory::getDocument(); $doc->addLessStyleSheet(JUri::root().'/administrator/components/com_tsmart/assets/less/view_activity_edit.less'); AdminUIHelper::startAdminArea($this); AdminUIHelper::imitateTabs('start', "Tour section"); ?> <div class="view-hotel-edit"> <form action="index.php" method="post" class="form-vertical" name="adminForm" id="adminForm"> <div class="col50"> <fieldset> <legend><?php echo tsmText::_('Current tour section'); ?></legend> <div class="admintable row-fluid"> <div class="span12"> <?php echo VmHTML::row_control('input', 'Tour section name', 'activity_name', $this->item->activity_name, 'class="required"'); ?> <?php echo VmHTML::row_control('booleanlist', 'com_tsmart_PUBLISHED', 'published', $this->item->published); ?> </div> </div> </fieldset> </div> <input type="hidden" name="tsmart_vendor_id" value="<?php echo $this->item->tsmart_vendor_id; ?>"/> <input type="hidden" name="tsmart_hotel_id" value="<?php echo $this->item->tsmart_activity_id; ?>"/> <?php echo $this->addStandardHiddenToForm(); ?> </form> </div> <?php AdminUIHelper::imitateTabs('end'); AdminUIHelper::endAdminArea(); ?>
cuongnd/etravelservice
administrator/components/com_tsmart/views/activity/tmpl/edit.php
PHP
gpl-2.0
2,140
all: -make -C libmad all -make -C libadpcm all -make -C libamr all -make -C libape all -make -C libcook all -make -C libfaad all -make -C libflac all -make -C liblpcm all -make -C libraac all -make -C libpcm all -make -C libamffmpegdec all install: -make -C libmad install -make -C libadpcm install -make -C libamr install -make -C libape install -make -C libcook install -make -C libfaad install -make -C libflac install -make -C liblpcm install -make -C libraac install -make -C libpcm install -make -C libamffmpegdec install cp -rf libeac3/libdcv.so $(TARGET_DIR)/usr/lib cp -rf libdtscore/libdtscore.so $(TARGET_DIR)/usr/lib clean: -make -C libmad clean -make -C libadpcm clean -make -C libamr clean -make -C libape clean -make -C libcook clean -make -C libfaad clean -make -C libflac clean -make -C liblpcm clean -make -C libraac clean -make -C libpcm clean -make -C libamffmpegdec clean -make -C libdtscore clean rm -rf $(TARGET_DIR)/usr/lib/libdcv.so rm -rf $(TARGET_DIR)/usr/lib/libdtscore.so
hardkernel/buildroot
package/multimedia/libplayer/src/audio_codec/Makefile
Makefile
gpl-2.0
1,048
# amazon.rb: Making link with image to Amazon using Amazon ECS. # # see document: #{@lang}/amazon.rb # # Copyright (C) 2005-2019 TADA Tadashi <t@tdtds.jp> # You can redistribute it and/or modify it under GPL2 or any later version. # require 'aws/pa_api' require 'timeout' enable_js( 'amazon.js' ) if @conf['amazon.bitly'] and @conf['bitly.login'] and @conf['bitly.key'] then enable_js( 'amazon_bitly.js' ) add_js_setting( '$tDiary.plugin.bitly' ) add_js_setting( '$tDiary.plugin.bitly.login', "'#{@conf['bitly.login']}'" ) add_js_setting( '$tDiary.plugin.bitly.apiKey', "'#{@conf['bitly.key']}'" ) end class AmazonRedirectError < StandardError; end def amazon_author(item) begin author = item["ItemInfo"]["ByLineInfo"]["Contributors"][0]["Name"] rescue '-' end end def amazon_title(item) item["ItemInfo"]["Title"]["DisplayValue"] end def amazon_image(item) image = {} begin size = case @conf['amazon.imgsize'] when 0; 'Large' when 2; 'Small' else; 'Medium' end image[:src] = item["Images"]["Primary"][size]["URL"] image[:height] = item["Images"]["Primary"][size]["Height"] image[:width] = item["Images"]["Primary"][size]["Width"] rescue base = @conf['amazon.default_image_base'] || 'https://tdiary.github.io/tdiary-theme/plugin/amazon/' case @conf['amazon.imgsize'] when 0 image[:src] = "#{base}large.png" image[:height] = 500 image[:width] = 380 when 2 image[:src] = "#{base}small.png" image[:height] = 75 image[:width] = 57 else image[:src] = "#{base}medium.png" image[:height] = 160 image[:width] = 122 end end image end def amazon_url(item) item["DetailPageURL"] end def amazon_label( item ) begin item["ItemInfo"]["ByLineInfo"]["Manufacturer"]["DisplayValue"] rescue '-' end end def amazon_price(item) begin item["Offers"]["Listings"][0]["Price"]["DisplayAmount"] rescue '(no price)' end end def amazon_detail_html(item) author = amazon_author(item) title = amazon_title(item) size_orig = @conf['amazon.imgsize'] @conf['amazon.imgsize'] = 2 image = amazon_image(item) @conf['amazon.imgsize'] = size_orig url = amazon_url(item) <<-HTML <a class="amazon-detail" href="#{url}"><span class="amazon-detail"> <img class="amazon-detail left" src="#{h image[:src]}" height="#{h image[:height]}" width="#{h image[:width]}" alt=""> <span class="amazon-detail-desc"> <span class="amazon-title">#{h title}</span><br> <span class="amazon-author">#{h author}</span><br> <span class="amazon-label">#{h amazon_label(item)}</span><br> <span class="amazon-price">#{h amazon_price(item)}</span> </span> </span></a> HTML end def amazon_to_html(item, with_image = true, label = nil, pos = 'amazon') with_image = false if @mode == 'categoryview' author = amazon_author(item) author = "(#{author})" unless author.empty? label ||= %Q|#{amazon_title(item)}#{author}| alt = '' if with_image and @conf['amazon.hidename'] || pos != 'amazon' then label, alt = alt, label end if with_image image = amazon_image(item) unless image[:src] then img = '' else size = %Q|height="#{h image[:height]}" width="#{h image[:width]}"| img = <<-HTML <img class="#{h pos}" src="#{h image[:src]}" #{size} alt="#{h alt}"> HTML img.gsub!( /\t/, '' ) end end url = amazon_url(item) %Q|<a href="#{h url}">#{img}#{h label}</a>| end def amazon_get(asin, with_image = true, label = nil, pos = 'amazon') asin = asin.to_s.strip.gsub(/-/, '') country, item_id = asin.scan(/\A(..):(.*)/).flatten unless country country = @conf['amazon.default_country'] || @amazon_default_country item_id = asin end begin cache = "#{@cache_path}/amazon" Dir::mkdir( cache ) unless File::directory?( cache ) begin json = File::read("#{cache}/#{country}#{item_id}.json") rescue Errno::ENOENT access_key = @conf['amazon.access_key'] secret_key = @conf['amazon.secret_key'] return asin unless access_key && secret_key partner_tag = @conf['amazon.aid'] paapi = AWS::PAAPI.new(access_key, secret_key, partner_tag) json = paapi.get_items(item_id, country.to_sym) File::open("#{cache}/#{country}#{item_id}.json", 'wb'){|f| f.write(json)} end item = JSON.parse(json)["ItemsResult"]["Items"][0] if pos == 'detail' then amazon_detail_html(item) else amazon_to_html(item, with_image, label, pos) end rescue Net::HTTPUnauthorized @logger.error "amazon.rb: Amazon API Unauthorized." message = asin if @mode == 'preview' then message << %Q|<span class="message">(Amazon API Unauthorized))</span>| end message rescue Timeout::Error @logger.error "amazon.rb: PA-API Timeouted." message = asin if @mode == 'preview' then message << %Q|<span class="message">(PA-API Timeouted))</span>| end message rescue Net::HTTPResponse, Net::HTTPExceptions => e @logger.error "amazon.rb: #{e.message}" message = label || asin if @mode == 'preview' then message << %Q|<span class="message">(#{h e.message})</span>| end # Handle 429 "Too Many Requests" if /^429/ =~ e.message then %Q|<a href="https://www.amazon.co.jp/dp/#{h asin}">https://www.amazon.co.jp/dp/#{h asin}</a>| else message end rescue NoMethodError @logger.error "amazon.rb: #{json["Errors"][0]["Message"]}" message = label || asin if @mode == 'preview' then message << %Q|<span class="message">(#{h json["Errors"][0]["Message"]})</span>| end message end end add_conf_proc( 'amazon', @amazon_label_conf ) do amazon_conf_proc end def amazon_conf_proc if @mode == 'saveconf' then @conf['amazon.imgsize'] = @cgi.params['amazon.imgsize'][0].to_i @conf['amazon.hidename'] = (@cgi.params['amazon.hidename'][0] == 'true') @conf['amazon.bitly'] = (@cgi.params['amazon.bitly'][0] == 'true') @conf['amazon.nodefault'] = (@cgi.params['amazon.nodefault'][0] == 'true') if @cgi.params['amazon.clearcache'][0] == 'true' then Dir["#{@cache_path}/amazon/*"].each do |cache| File::delete( cache ) end end unless @conf['amazon.hideconf'] then @conf['amazon.aid'] = @cgi.params['amazon.aid'][0] end end result = '' result << <<-HTML <h3>#{@amazon_label_imgsize}</h3> <p><select name="amazon.imgsize"> <option value="0"#{" selected" if @conf['amazon.imgsize'] == 0}>#{@amazon_label_large}</option> <option value="1"#{" selected" if @conf['amazon.imgsize'] == 1}>#{@amazon_label_regular}</option> <option value="2"#{" selected" if @conf['amazon.imgsize'] == 2}>#{@amazon_label_small}</option> </select></p> <h3>#{@amazon_label_title}</h3> <p><select name="amazon.hidename"> <option value="true"#{" selected" if @conf['amazon.hidename']}>#{@amazon_label_hide}</option> <option value="false"#{" selected" unless @conf['amazon.hidename']}>#{@amazon_label_show}</option> </select></p> HTML if @options['bitly.login'] and @options['bitly.key'] then result << <<-HTML <h3>#{@amazon_label_bitly}</h3> <p><select name="amazon.bitly"> <option value="true"#{" selected" if @conf['amazon.bitly']}>#{@amazon_label_bitly_enabled}</option> <option value="false"#{" selected" unless @conf['amazon.bitly']}>#{@amazon_label_bitly_disabled}</option> </select></p> HTML end result << <<-HTML <h3>#{@amazon_label_notfound}</h3> <p><select name="amazon.nodefault"> <option value="true"#{" selected" if @conf['amazon.nodefault']}>#{@amazon_label_usetitle}</option> <option value="false"#{" selected" unless @conf['amazon.nodefault']}>#{@amazon_label_usedefault}</option> </select></p> <h3>#{@amazon_label_clearcache}</h3> <p><label for="amazon.clearcache"><input type="checkbox" id="amazon.clearcache" name="amazon.clearcache" value="true">#{@amazon_label_clearcache_desc}</label></p> HTML unless @conf['amazon.hideconf'] then result << <<-HTML <h3>#{@amazon_label_aid}</h3> <p>#{@amazon_label_aid_desc}</p> <p><input name="amazon.aid" value="#{h( @conf['amazon.aid'] ) if @conf['amazon.aid']}"></p> HTML end result end def isbn_detail( asin ) amazon_get( asin, true, nil, 'detail' ) end def isbn_image( asin, label = nil ) amazon_get( asin, true, label ) end def isbn_image_left( asin, label = nil ) amazon_get( asin, true, label, 'left' ) end def isbn_image_right( asin, label = nil ) amazon_get( asin, true, label, 'right' ) end def isbn( asin, label = nil ) amazon_get( asin, false, label ) end # for compatibility alias isbnImgLeft isbn_image_left alias isbnImgRight isbn_image_right alias isbnImg isbn_image alias amazon isbn_image # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End:
tdtds/tdiarynet
misc/plugin/amazon.rb
Ruby
gpl-2.0
8,602
#ifndef OBJECT_H_ #define OBJECT_H_ #include "Config.h" #include "IDGenerator.h" #include <string> namespace buf { // FIXME: key_generator may be used in different threads // XXX: only has id, id may be std::string template <typename KG = IDGenerator > class Object { public: typedef KG key_generator; typedef typename key_generator::key_type key_type; public: Object(const key_type& id) : _id(id) {} virtual ~Object() {} inline const key_type& id() const { return _id; } inline key_type& id() { return _id; } protected: key_type _id; }; // XXX: has id but also name template <typename KG = IDGenerator > class ObjectN : public Object<KG> { public: typedef KG key_generator; typedef typename key_generator::key_type key_type; typedef std::string name_type; public: ObjectN(const key_type& id, const name_type& name) : Object<key_generator>(id), _name(name) {} virtual ~ObjectN() {} inline const name_type& name() const { return _name; } protected: name_type _name; }; // XXX: has id and tempid template <typename KG = IDGenerator, typename TG = IDGenerator > class ObjectT : public Object<KG> { public: typedef KG key_generator; typedef TG temp_generator; typedef typename key_generator::key_type key_type; typedef typename temp_generator::key_type temp_type; public: ObjectT(const key_type& id, const temp_type& tempid) : Object<key_generator>(id), _tempid(tempid) {} virtual ~ObjectT() {} inline const temp_type& tempid() const { return _tempid; } inline temp_type& tempid() { return _tempid; } private: temp_type _tempid; }; // XXX: has id,name and tempid template <typename KG = IDGenerator, typename TG = IDGenerator > class ObjectNT : public Object<KG> { public: typedef KG key_generator; typedef TG temp_generator; typedef typename key_generator::key_type key_type; typedef typename temp_generator::key_type temp_type; typedef std::string name_type; public: ObjectNT(const key_type& id, const name_type& name, const temp_type& tempid) : Object<key_generator>(id), _tempid(tempid), _name(name) {} virtual ~ObjectNT() {} inline const name_type& name() const { return _name; } inline const temp_type& tempid() const { return _tempid; } inline temp_type& tempid() { return _tempid; } private: temp_type _tempid; name_type _name; }; // Create functions #ifdef __APPLE__ template <typename T> #else template <typename T = Object<> > #endif static T* Create() { typedef typename T::key_generator key_generator; typedef typename key_generator::key_type key_type; // XXX: different key_generator will create different key // XXX: return 0 when _KG is out of key static key_generator kg; key_type id = kg.get(); if (id == kg.max()) return 0; T* obj = BUFNEW T(id); return obj; } #ifdef __APPLE__ template <typename T> #else template <typename T = ObjectN<> > #endif static T* CreateN(const std::string& name) { typedef typename T::key_generator key_generator; typedef typename key_generator::key_type key_type; typedef typename T::name_type name_type; static key_generator kg; key_type id = kg.get(); if (id == kg.max()) return 0; T* obj = BUFNEW T(id, name); return obj; } #ifdef __APPLE__ template <typename T> #else template <typename T = ObjectT<> > #endif static T* CreateT() { typedef typename T::key_generator key_generator; typedef typename key_generator::key_type key_type; typedef typename T::temp_generator temp_generator; typedef typename temp_generator::key_type temp_type; static key_generator kg; static temp_generator tg; key_generator id = kg.get(); if (id == kg.max()) return 0; temp_generator tid = tg.get(); if (tid == tg.max()) return 0; T* obj = BUFNEW T(id, tid); return obj; } #ifdef __APPLE__ template <typename T> #else template <typename T = ObjectNT<> > #endif static T* CreateNT(const std::string& name) { typedef typename T::key_generator key_generator; typedef typename key_generator::key_type key_type; typedef typename T::name_type name_type; typedef typename T::temp_generator temp_generator; typedef typename temp_generator::key_type temp_type; static key_generator kg; static temp_generator tg; key_type id = kg.get(); if (id == kg.max()) return 0; temp_type tid = tg.get(); if (tid == tg.max()) return 0; T* obj = BUFNEW T(id, name, tid); return obj; } } // namespace buf #endif // OBJECT_H_ /* vim: set ai si nu sm smd hls is ts=4 sm=4 bs=indent,eol,start */
jianglutian/GameServer
buf/core/Object.h
C
gpl-2.0
4,700
#include <stdio.h> #include <stdlib.h> int main(){ int *a; int b; b = 5; a = &b; printf("%d\n",a); (*a)++; printf("%d %d\n",a,b); }
TheSanto/C-Codes
SERVER/cse SERVER/CSI 124/Pointer & Structure/pointer_basic.cpp
C++
gpl-2.0
154
package org.breakout.model.raw; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.util.Arrays; import java.util.List; import org.andork.unit.Angle; import org.andork.unit.Length; import org.breakout.model.raw.MetacaveImporter; import org.breakout.model.raw.SurveyRow; import org.breakout.model.raw.SurveyTrip; import org.junit.Test; public class MetacaveImporterTests { @Test public void testMetacave1() throws IOException { MetacaveImporter importer = new MetacaveImporter(); importer.importMetacave(getClass().getResourceAsStream("metacave1.json")); List<SurveyRow> rows = importer.getRows(); for (SurveyRow row : rows) { System.out.println(row); } assertEquals(4, rows.size()); SurveyTrip trip = rows.get(0).getTrip(); assertEquals("Fisher Ridge", trip.getCave()); assertEquals("Trip 1", trip.getName()); assertEquals("2016-01-01", trip.getDate()); assertEquals(Arrays.asList("Andy Edwards", "Sean Lewis"), trip.getSurveyors()); assertEquals(Length.feet, trip.getDistanceUnit()); assertEquals(Angle.degrees, trip.getAngleUnit()); assertFalse(trip.areBackAzimuthsCorrected()); assertTrue(trip.areBackInclinationsCorrected()); assertEquals("1.0", trip.getDeclination()); assertEquals(Angle.gradians, trip.getOverrideFrontAzimuthUnit()); assertEquals(Angle.milsNATO, trip.getOverrideBackAzimuthUnit()); assertEquals(Angle.degrees, trip.getOverrideFrontInclinationUnit()); assertEquals(Angle.percentGrade, trip.getOverrideBackInclinationUnit()); assertEquals("2.0", trip.getDistanceCorrection()); assertEquals("3.0", trip.getFrontAzimuthCorrection()); assertEquals("4.0", trip.getBackAzimuthCorrection()); assertEquals("5.0", trip.getFrontInclinationCorrection()); assertEquals("6.0", trip.getBackInclinationCorrection()); SurveyRow r0 = rows.get(0); assertSame(trip, r0.getTrip()); assertEquals(null, r0.getOverrideFromCave()); assertEquals("A1", r0.getFromStation()); assertEquals("Mammoth", r0.getOverrideToCave()); assertEquals("A2", r0.getToStation()); assertEquals("1.0", r0.getLeft()); assertEquals("2.0", r0.getRight()); assertEquals("3.0", r0.getUp()); assertEquals("4.0", r0.getDown()); assertEquals("1.0", r0.getDistance()); assertEquals("180", r0.getFrontAzimuth()); assertEquals("-5", r0.getFrontInclination()); assertEquals("0", r0.getBackAzimuth()); assertEquals("5", r0.getBackInclination()); SurveyRow r1 = rows.get(1); assertSame(trip, r1.getTrip()); assertEquals(null, r1.getOverrideFromCave()); assertEquals(null, r1.getFromStation()); assertEquals(null, r1.getOverrideToCave()); assertEquals(null, r1.getToStation()); assertEquals(null, r1.getLeft()); assertEquals(null, r1.getRight()); assertEquals(null, r1.getUp()); assertEquals(null, r1.getDown()); assertEquals(null, r1.getDistance()); assertEquals(null, r1.getFrontAzimuth()); assertEquals(null, r1.getFrontInclination()); assertEquals(null, r1.getBackAzimuth()); assertEquals(null, r1.getBackInclination()); SurveyRow r3 = rows.get(3); assertSame(trip, r3.getTrip()); assertEquals(null, r3.getOverrideFromCave()); assertEquals("A1", r3.getFromStation()); assertEquals("Mammoth", r3.getOverrideToCave()); assertEquals("A2", r3.getToStation()); assertEquals(null, r3.getLeft()); assertEquals(null, r3.getRight()); assertEquals(null, r3.getUp()); assertEquals(null, r3.getDown()); assertEquals("3.0", r3.getDistance()); assertEquals("90", r3.getFrontAzimuth()); assertEquals("-10", r3.getFrontInclination()); assertEquals(null, r3.getBackAzimuth()); assertEquals(null, r3.getBackInclination()); SurveyRow r2 = rows.get(2); assertSame(trip, r2.getTrip()); assertEquals("Mammoth", r2.getOverrideFromCave()); assertEquals("A2", r2.getFromStation()); assertEquals(null, r2.getOverrideToCave()); assertEquals(null, r2.getToStation()); assertEquals("1.0", r2.getLeft()); assertEquals("2.0", r2.getRight()); assertEquals("3.0", r2.getUp()); assertEquals("4.0", r2.getDown()); assertEquals("5.0", r2.getDistance()); assertEquals("23.5", r2.getFrontAzimuth()); assertEquals("48.2", r2.getFrontInclination()); assertEquals(null, r2.getBackAzimuth()); assertEquals(null, r2.getBackInclination()); } }
jedwards1211/breakout
breakout-main/src/test/java/org/breakout/model/raw/MetacaveImporterTests.java
Java
gpl-2.0
4,415
<?php /** * This file adds the Landing template to the Executive Child Theme. * * @author StudioPress * @package Generate * @subpackage Customizations */ /* Template Name: Landing */ // Add custom body class to the head add_filter( 'body_class', 'executive_add_body_class' ); function executive_add_body_class( $classes ) { $classes[] = 'executive-landing'; return $classes; } // Remove header, navigation, breadcrumbs, footer widgets, footer add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); remove_action( 'genesis_before_header', 'genesis_do_nav' ); remove_action( 'genesis_after_header', 'genesis_do_subnav' ); remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs'); remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); genesis();
ppphoang/ctynhua
wp-content/themes/executive/page_landing.php
PHP
gpl-2.0
1,209
import sys import time from naoqi import ALProxy IP = "nao.local" PORT = 9559 if (len(sys.argv) < 2): print "Usage: 'python RecordAudio.py nume'" sys.exit(1) fileName = "/home/nao/" + sys.argv[1] + ".wav" aur = ALProxy("ALAudioRecorder", IP, PORT) channels = [0,0,1,0] aur.startMicrophonesRecording(fileName, "wav", 160000, channels) c=raw_input("Sfarsit?") aur.stopMicrophonesRecording() c=raw_input("play?") aup = ALProxy("ALAudioPlayer", IP, PORT) #Launchs the playing of a file aup.playFile(fileName,0.5,-1.0) c=raw_input("gata?") #Launchs the playing of a file #aup.playFile("/usr/share/naoqi/wav/random.wav") #Launchs the playing of a file on the left speaker to a volume of 50% #aup.playFile("/usr/share/naoqi/wav/random.wav",0.5,-1.0)
ioanaantoche/muhaha
ioana/RecordAudio.py
Python
gpl-2.0
757
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>schrodinger.application.mcpro.mc.DrawMcPanel</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/javascript" src="epydoc.js"></script> </head> <body bgcolor="white" text="black" link="blue" vlink="#204080" alink="#204080"> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Tree link --> <th>&nbsp;&nbsp;&nbsp;<a href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th> <!-- Index link --> <th>&nbsp;&nbsp;&nbsp;<a href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th> <!-- Help link --> <th>&nbsp;&nbsp;&nbsp;<a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" >2015-2Schrodinger Python API</th> </tr></table></th> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="100%"> <span class="breadcrumbs"> <a href="schrodinger-module.html">Package&nbsp;schrodinger</a> :: <a href="schrodinger.application-module.html">Package&nbsp;application</a> :: <a href="schrodinger.application.mcpro-module.html">Package&nbsp;mcpro</a> :: <a href="schrodinger.application.mcpro.mc-module.html">Module&nbsp;mc</a> :: Class&nbsp;DrawMcPanel </span> </td> <td> <table cellpadding="0" cellspacing="0"> <!-- hide/show private --> <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr> <tr><td align="right"><span class="options" >[<a href="frames.html" target="_top">frames</a >]&nbsp;|&nbsp;<a href="schrodinger.application.mcpro.mc.DrawMcPanel-class.html" target="_top">no&nbsp;frames</a>]</span></td></tr> </table> </td> </tr> </table> <!-- ==================== CLASS DESCRIPTION ==================== --> <h1 class="epydoc">Class DrawMcPanel</h1><p class="nomargin-top"></p> <p>See initiator docstring.</p> <!-- ==================== INSTANCE METHODS ==================== --> <a name="section-InstanceMethods"></a> <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr bgcolor="#70b0f0" class="table-header"> <td colspan="2" class="table-header"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"> <td align="left"><span class="table-header">Instance Methods</span></td> <td align="right" valign="top" ><span class="options">[<a href="#section-InstanceMethods" class="privatelink" onclick="toggle_private();" >hide private</a>]</span></td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>, <span class="summary-sig-arg">master</span>)</span><br /> # Data from panel # miniEntry.get() Number of optimization cycles (+ int) # miniMenu.get() Type of minimization algorithm</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="mcSolvDep"></a><span class="summary-sig-name">mcSolvDep</span>(<span class="summary-sig-arg">self</span>, <span class="summary-sig-arg">isolv</span>)</span><br /> Function to enable the solvent panel to set dependencies on the mc panel (1) Remove NVT/NPT option (2) pack_forget() solvent-only stage isolv = 0 All options viewed isolv = 2 Remove (1) isolv = 3,4 Remove (1) and (2) isolv = 1 isn't valid for FEP</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="initEntry"></a><span class="summary-sig-name">initEntry</span>(<span class="summary-sig-arg">self</span>, <span class="summary-sig-arg">variable</span>, <span class="summary-sig-arg">init</span>)</span><br /> Method to initialize entryfields at their default values</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="getSystemOpt"></a><span class="summary-sig-name">getSystemOpt</span>(<span class="summary-sig-arg">self</span>)</span><br /> Overloaded method to return current systemOpt value</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="setDefaults"></a><span class="summary-sig-name">setDefaults</span>(<span class="summary-sig-arg">self</span>)</span><br /> Method to set defaults</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="reset"></a><span class="summary-sig-name">reset</span>(<span class="summary-sig-arg">self</span>)</span><br /> Method to reset GUI</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type">&nbsp;</span> </td><td class="summary"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><span class="summary-sig"><a name="settings"></a><span class="summary-sig-name">settings</span>(<span class="summary-sig-arg">self</span>)</span><br /> method to return a dictionary of job settings by name used in mcpro_driver.py</td> <td align="right" valign="top"> </td> </tr> </table> </td> </tr> </table> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Tree link --> <th>&nbsp;&nbsp;&nbsp;<a href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th> <!-- Index link --> <th>&nbsp;&nbsp;&nbsp;<a href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th> <!-- Help link --> <th>&nbsp;&nbsp;&nbsp;<a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" >2015-2Schrodinger Python API</th> </tr></table></th> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%%"> <tr> <td align="left" class="footer"> Generated by Epydoc 3.0.1 on Sat May 9 06:31:20 2015 </td> <td align="right" class="footer"> <a target="mainFrame" href="http://epydoc.sourceforge.net" >http://epydoc.sourceforge.net</a> </td> </tr> </table> <script type="text/javascript"> <!-- // Private objects are initially displayed (because if // javascript is turned off then we want them to be // visible); but by default, we want to hide them. So hide // them unless we have a cookie that says to show them. checkCookie(); // --> </script> </body> </html>
platinhom/ManualHom
Schrodinger/Schrodinger_2015-2_docs/python_api/api/schrodinger.application.mcpro.mc.DrawMcPanel-class.html
HTML
gpl-2.0
9,514
import { atom } from 'jotai'; import { Resource } from '../models'; export const selectedResourcesAtom = atom<Array<Resource>>([]); export const resourcesToAcknowledgeAtom = atom<Array<Resource>>([]); export const resourcesToSetDowntimeAtom = atom<Array<Resource>>([]); export const resourcesToCheckAtom = atom<Array<Resource>>([]); export const resourcesToDisacknowledgeAtom = atom<Array<Resource>>([]);
centreon/centreon
www/front_src/src/Resources/Actions/actionsAtoms.ts
TypeScript
gpl-2.0
407
<?php namespace AweBooking\Core\Providers; use AweBooking\Premium; use AweBooking\Support\Plugin_Updater; use AweBooking\Support\Service_Provider; class Addons_Service_Provider extends Service_Provider { /** * The hook that trigger register. * * @var string */ protected $when = 'admin_init'; /** * Init (boot) the service provider. * * @return void */ public function init() { if ( ! is_admin() || ! Premium::get_api_code() ) { return; } foreach ( Premium::$addons as $addon_name => $addon ) { $updater = new Plugin_Updater( $addon_name, $addon ); if ( is_plugin_active( $addon ) || $updater->get_plugin_file() ) { $updater->hooks(); } } } }
awethemes/awebooking
inc/Core/Providers/Addons_Service_Provider.php
PHP
gpl-2.0
694
<?php /* ThWboard - PHP/MySQL Bulletin Board System ============================================== (c) 2000, 2001 by Paul Baecher <paul@thewall.de> Felix Gonschorek <funner@thewall.de> download the latest version: http://www.thwboard.de This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ============================================== */ if( $get_part == 'head' ) { $selectionpoints['top10'] = array('base'=>'top10', 'title'=>'Top 10 - Listen'); } else { $TStats = new Template('./templates/'.$style['styletemplate'].'/stats_top10.html'); $TRow = new Template('./templates/'.$style['styletemplate'].'/stats_top10row.html'); $stats_top10_row = ''; $data = array(); $P = new Permission($g_user['groupids']); if($config['showpostslevel'] == 2 || $g_user['userisadmin']) { /** top 10 posters **/ $data['title'] = 'Top 10 Poster'; $name = array(); $value = array(); $a_posters = array(); $i = 0; $r_posters = thwb_query("SELECT userid, username, userposts FROM $pref"."user ORDER BY userposts DESC LIMIT 10"); while($a_posters = mysql_fetch_array($r_posters)) { $name[$i] = '<a href="'.build_link('v_profile.php?userid='.$a_posters['userid']).'">'.$a_posters['username'].'</a>'; $value[$i] = $a_posters['userposts']; $i++; } for(;$i <= 9; $i++) { $name[$i] = 'n/a'; $value[$i] = 'n/a'; } mysql_free_result($r_posters); eval($TRow->GetTemplate("stats_top10_row")); $stats_top10_row .= "<br>"; } /** top 10 boards **/ $data['title'] = 'Top 10 Boards (nach Posts)'; $name = array(); $value = array(); $a_boards = array(); $i = 0; $r_boards = thwb_query("SELECT b.boardid, b.boardname, b.boardposts, c.categoryname FROM $pref"."board AS b LEFT OUTER JOIN $pref"."category AS c ON c.categoryid = b.categoryid ORDER BY boardposts DESC LIMIT 10"); while($a_boards = mysql_fetch_array($r_boards)) { $P->set_boardid($a_boards['boardid']); if(!$P->has_permission(P_VIEW)) { continue; } $name[$i] = '<a href="'.build_link('board.php?boardid='.$a_boards['boardid']).'">'.$a_boards['boardname'].'</a>'.' (Kategorie: '.$a_boards['categoryname'].')'; $value[$i] = $a_boards['boardposts']; $i++; } for(;$i <= 9; $i++) { $name[$i] = 'n/a'; $value[$i] = 'n/a'; } mysql_free_result($r_boards); eval($TRow->GetTemplate("stats_top10_row")); $stats_top10_row .= "<br>"; /** top 10 threads (by posts) **/ $data['title'] = 'Top 10 Threads (nach Posts)'; $name = array(); $value = array(); $a_postthreads = array(); $i = 0; $r_postthreads = thwb_query("SELECT t.threadreplies, t.threadtopic, t.threadid, t.boardid, b.boardname FROM $pref"."thread AS t LEFT OUTER JOIN $pref"."board AS b ON t.boardid = b.boardid ORDER BY threadreplies DESC LIMIT 10"); while($a_postthreads = mysql_fetch_array($r_postthreads)) { $P->set_boardid($a_postthreads['boardid']); if(!$P->has_permission(P_VIEW)) { continue; } $name[$i] = '<a href="'.build_link('showtopic.php?threadid='.$a_postthreads['threadid']).'">'.parse_code($a_postthreads['threadtopic']).'</a> (Board: <a href="'.build_link('board.php?boardid='.$a_postthreads['boardid']).'">'.$a_postthreads['boardname'].'</a>)'; $value[$i] = $a_postthreads['threadreplies'] + 1; $i++; } for(;$i <= 9; $i++) { $name[$i] = 'n/a'; $value[$i] = 'n/a'; } mysql_free_result($r_postthreads); eval($TRow->GetTemplate("stats_top10_row")); $stats_top10_row .= "<br>"; /** top 10 threads (by views) **/ $data['title'] = 'Top 10 Threads (nach Views)'; $name = array(); $value = array(); $a_viewthreads = array(); $i = 0; $r_viewthreads = thwb_query("SELECT t.threadviews, t.threadtopic, t.threadid, t.boardid, b.boardname FROM $pref"."thread AS t LEFT OUTER JOIN $pref"."board AS b ON t.boardid = b.boardid ORDER BY threadviews DESC LIMIT 10"); while($a_viewthreads = mysql_fetch_array($r_viewthreads)) { $P->set_boardid($a_viewthreads['boardid']); if(!$P->has_permission(P_VIEW)) { continue; } $name[$i] = '<a href="'.build_link('showtopic.php?threadid='.$a_viewthreads['threadid']).'">'.parse_code($a_viewthreads['threadtopic']).'</a> (Board: <a href="'.build_link('board.php?boardid='.$a_viewthreads['boardid']).'">'.$a_viewthreads['boardname'].'</a>)'; $value[$i] = $a_viewthreads['threadviews']; $i++; } for(;$i <= 9; $i++) { $name[$i] = 'n/a'; $value[$i] = 'n/a'; } mysql_free_result($r_viewthreads); eval($TRow->GetTemplate("stats_top10_row")); eval($TStats->GetTemplate("stats")); }
adrianbroher/thwboard
inc/statscode/top10.stats.php
PHP
gpl-2.0
5,077
package edu.upc.eetac.dsa.alejandro; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
alejandrosanchezcabana/mysql
src/test/java/edu/upc/eetac/dsa/alejandro/AppTest.java
Java
gpl-2.0
655
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>trash | The Big Novel</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="alternate" type="application/rss+xml" title="RSS - trash" href="0/feed/index.html" /> <link rel="shortcut icon" href="../../../misc/favicon.ico" type="image/x-icon" /> <style type="text/css" media="all">@import "../../../modules/node/node.css";</style> <style type="text/css" media="all">@import "../../../modules/poll/poll.css";</style> <style type="text/css" media="all">@import "../../../modules/system/defaults.css";</style> <style type="text/css" media="all">@import "../../../modules/system/system.css";</style> <style type="text/css" media="all">@import "../../../modules/user/user.css";</style> <style type="text/css" media="all">@import "../../../sites/all/modules/tagadelic/tagadelic.css";</style> <style type="text/css" media="all">@import "../../../sites/all/themes/newmedia/style.css";</style> <!--[if IE 6]> <style type="text/css" media="all">@import "../../../sites/all/themes/newmedia/ie-fixes/ie6.css";</style> <![endif]--> <!--[if lt IE 7.]> <script defer type="text/javascript" src="../../../sites/all/themes/newmedia/ie-fixes/pngfix.js"></script> <![endif]--> </head> <body> <div id="page"> <!-- begin wrapper --> <div id="container"> <!-- primary links --> <!-- begin header --> <div id="header"> <!-- site logo --> <!-- end site logo --> <!-- site name --> <h1> <a href="../../../index.html" title="Home"> The Big Novel </a> </h1> <!-- end site name --> <!-- site slogan --> <!-- end site slogan --> <div id="menu"> <ul class="links-menu"> <li><a href="http://machines.plannedobsolescence.net" title="associate professor of english and media studies">kathleen fitzpatrick</a></li> <li><a href="http://www.pomona.edu" title="in claremont, california">pomona college</a></li> </ul> </div><!-- end primary links --> </div><!-- end header --> <!-- search box in nowhere land - NEEDS WORK--> <!-- end search box --> <!-- content --> <!-- <div id="main">--> <!-- begin main content --> <div id="mainContent" style="width: 530px;"> <div class="breadcrumb"><div class="breadcrumb"><a href="../../../index.html">Home</a></div></div> <h1 class="pageTitle">trash</h1> <div class="node"> <h2 class="nodeTitle"><a href="../../../node/119/index.html">trash podcast</a></h2> <div class="submitted">By HarryLime - Posted on 19 February 2007 - 2:21am.</div> <div class="taxonomy">Tagged: <ul class="links inline"><li class="first taxonomy_term_106"><a href="index.html" rel="tag" title="" class="taxonomy_term_106 active">trash</a></li> <li class="last taxonomy_term_91"><a href="../91/index.html" rel="tag" title="" class="taxonomy_term_91">Underworld</a></li> </ul></div> <div class="content"><p>just stumbled across an interesting trash story in my daily podcast digest, it starts at what I presume to be the Fresh Kills landfill</p> <p>http://www.wnyc.org/shows/radiolab/episodes/2006/04/14</p> <p>enjoy</p> </div> <div class="links"><ul class="links inline"><li class="first last blog_usernames_blog"><a href="../../../blog/4/index.html" title="Read HarryLime&#039;s latest blog entries." class="blog_usernames_blog">HarryLime&#039;s blog</a></li> </ul></div> </div> <a href="0/feed/index.html" class="feed-icon"><img src="../../../misc/feed.png" alt="Syndicate content" title="Syndicate content" width="16" height="16" /></a> </div> <!-- Begin Sidebars --> <div id="sideBars-bg" style="width: 415px;"> <div id="sideBars" style="width: 415px;"> <!-- left sidebar --> <div id="leftSidebar"> <div class="block block-block" id="block-block-3"> <h2 class="title"></h2> <div class="content"><p><a href="../../../index.html">the big novel</a> is the spring 2007 course website for english 55 at pomona college in claremont, california.</p> <p><a href="http://machines.plannedobsolescence.net">the professor</a><br /> <a href="../../../syllabus/index.html">the syllabus</a><br /> <a href="https://sakai.claremont.edu/portal/site/CX_mtg_26013">the sakai site</a><br /> <a href="../1/index.html">more information</a></p> </div> </div> <div class="block block-tagadelic" id="block-tagadelic-1"> <h2 class="title">tags</h2> <div class="content"><a href="../94/index.html" class="tagadelic level2" rel="tag">baseball</a> <a href="../6/index.html" class="tagadelic level2" rel="tag">characters</a> <a href="../95/index.html" class="tagadelic level2" rel="tag">Cold War</a> <a href="../23/index.html" class="tagadelic level2" rel="tag">comedy</a> <a href="../1/index.html" class="tagadelic level1" rel="tag">course information</a> <a href="../225/index.html" class="tagadelic level6" rel="tag">Cryptonomicon</a> <a href="../154/index.html" class="tagadelic level1" rel="tag">David Foster Wallace</a> <a href="../102/index.html" class="tagadelic level2" rel="tag">death</a> <a href="../158/index.html" class="tagadelic level2" rel="tag">drugs</a> <a href="../3/index.html" class="tagadelic level6" rel="tag">Gravity&#039;s Rainbow</a> <a href="../155/index.html" class="tagadelic level1" rel="tag">Hal</a> <a href="../153/index.html" class="tagadelic level6" rel="tag">Infinite Jest</a> <a href="../45/index.html" class="tagadelic level2" rel="tag">language</a> <a href="../168/index.html" class="tagadelic level1" rel="tag">mario</a> <a href="../56/index.html" class="tagadelic level2" rel="tag">motifs</a> <a href="../57/index.html" class="tagadelic level1" rel="tag">names</a> <a href="../17/index.html" class="tagadelic level2" rel="tag">narrative</a> <a href="../140/index.html" class="tagadelic level1" rel="tag">Nick</a> <a href="../118/index.html" class="tagadelic level1" rel="tag">paranoia</a> <a href="../26/index.html" class="tagadelic level1" rel="tag">peace</a> <a href="../29/index.html" class="tagadelic level1" rel="tag">quotes</a> <a href="../11/index.html" class="tagadelic level1" rel="tag">Roger and Jessica</a> <a href="../24/index.html" class="tagadelic level2" rel="tag">sex</a> <a href="../7/index.html" class="tagadelic level2" rel="tag">Significant quotes</a> <a href="../20/index.html" class="tagadelic level4" rel="tag">Slothrop</a> <a href="../164/index.html" class="tagadelic level1" rel="tag">tennis</a> <a href="../91/index.html" class="tagadelic level6" rel="tag">Underworld</a> <a href="../12/index.html" class="tagadelic level2" rel="tag">war</a> <a href="../101/index.html" class="tagadelic level2" rel="tag">waste</a> <a href="../50/index.html" class="tagadelic level1" rel="tag">Zero</a> <div class='more-link'><a href="../../../tagadelic/chunk/1/index.html">more tags</a></div></div> </div> <div class="block block-user" id="block-user-1"> <h2 class="title">Navigation</h2> <div class="content"> <ul class="menu"> <li class="leaf"><a href="../../../tracker/index.html">Recent posts</a></li> </ul> </div> </div> </div> <!-- right sidebar --> <div id="rightSidebar"> <div class="block block-comment" id="block-comment-0"> <h2 class="title">Recent comments</h2> <div class="content"><div class="item-list"><ul><li><a href="../../../node/337/index.html#comment-569">Didn&#039;t that article we read</a><br />3 years 51 weeks ago</li><li><a href="../../../node/325/index.html#comment-568">no, not just you! I copied</a><br />3 years 52 weeks ago</li><li><a href="../../../node/328/index.html#comment-567">I too used to think that the</a><br />3 years 52 weeks ago</li><li><a href="../../../node/328/index.html#comment-566">I was really put off by that</a><br />3 years 52 weeks ago</li><li><a href="../../../node/332/index.html#comment-565">Even our generation has</a><br />3 years 52 weeks ago</li><li><a href="../../../node/334/index.html#comment-564">Erdedy</a><br />3 years 52 weeks ago</li><li><a href="../../../node/328/index.html#comment-563">i had the same reaction </a><br />3 years 52 weeks ago</li><li><a href="../../../node/328/index.html#comment-562">women as tools</a><br />4 years 15 hours ago</li><li><a href="../../../node/328/index.html#comment-561">females in all of these novels</a><br />4 years 18 hours ago</li><li><a href="../../../node/328/index.html#comment-560">sexpot</a><br />4 years 1 day ago</li></ul></div></div> </div> <div class="block block-block" id="block-block-1"> <h2 class="title"></h2> <div class="content"><h3>Pynchon</h3> <p><a href="http://www.pynchon.pomona.edu/">San Narciso Community College</a> (aka the Pomona Pynchon site)<br /> <a href="http://www.themodernword.com/pynchon/">Pynchon @ The Modern Word</a><br /> <a href="http://www.robotwisdom.com/jorn/tpportal.html">Pynchon @ Robot Wisdom</a><br /> <a href="http://www.ham.muohio.edu/~krafftjm/pynchon.html">Pynchon Notes</a><br /> <a href="http://www.waste.org/pynchon-l/">Pynchon-l</a></p> <h3>DeLillo</h3> <p><a href="http://perival.com/delillo/delillo.html">Don DeLillo's America</a><br /> <a href="http://www.k-state.edu/english/nelp/delillo/">The Don DeLillo Society</a></p> <h3>Wallace</h3> <p><a href="http://www.thehowlingfantods.com/dfw.htm">The Howling Fantods</a><br /> <a href="http://waste.org/mail/?list=wallace-l">Wallace-l</a></p> <h3>Stephenson</h3> <p><a href="http://www.nealstephenson.com/">The Author's website</a><br /> <a href="http://www.well.com/~neal/">The Author's old website</a><br /> <a href="http://www.cryptonomicon.com/">Cryptonomicon</a></p> </div> </div> </div> </div><!-- end sidebars --> </div><!-- end sideBars-bg --> <!-- footer --> <div id="footer"> </div><!-- end footer --> </div><!-- end container --> </div><!-- end page --> <!-- Start of StatCounter Code --> <script type="text/javascript"> var sc_project=3034095; var sc_invisible=1; var sc_partition=33; var sc_security="ec028fa0"; </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c34.statcounter.com/3034095/0/ec028fa0/1/" alt="blog stats" /></a></div></noscript> <!-- End of StatCounter Code --> </body> </html> <!-- Localized -->
kfitz/machines
55-2007/taxonomy/term/106/index.html
HTML
gpl-2.0
10,806
<?php include(provision_class_directory('Provision_Config_Nginx_Server') . '/server.tpl.php'); ?> ####################################################### ### nginx default ssl server ####################################################### server { <?php foreach ($server->ip_addresses as $ip) :?> listen <?php print $ip . ':' . $http_ssl_port; ?>; <?php endforeach; ?> server_name _; location / { return 404; } }
maltejk/provision
http/Provision/Config/Nginx/Ssl/server_ssl.tpl.php
PHP
gpl-2.0
435
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or its licensors, any * reproduction, modification, use or disclosure of MediaTek Software, and * information contained herein, in whole or in part, shall be strictly * prohibited. * * MediaTek Inc. (C) 2010. All rights reserved. * * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER * ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR * NONINFRINGEMENT. NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH * RESPECT TO THE SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, * INCORPORATED IN, OR SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES * TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. * RECEIVER EXPRESSLY ACKNOWLEDGES THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO * OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES CONTAINED IN MEDIATEK * SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE * RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S * ENTIRE AND CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE * RELEASED HEREUNDER WILL BE, AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE * MEDIATEK SOFTWARE AT ISSUE, OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE * CHARGE PAID BY RECEIVER TO MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. * * The following software/firmware and/or related documentation ("MediaTek * Software") have been modified by MediaTek Inc. All revisions are subject to * any receiver's applicable license agreements with MediaTek Inc. */ package com.mediatek.common.epo; import android.os.Parcel; import android.os.Parcelable; import java.util.Calendar; import java.util.GregorianCalendar; public final class MtkEpoFileInfo implements Parcelable { public long downloadTime;//seconds public long startTime; //seconds public long expireTime; //seconds public MtkEpoFileInfo() {} public MtkEpoFileInfo(long downloadTime, long startTime, long expireTime) { this.downloadTime = downloadTime; this.startTime = startTime; this.expireTime = expireTime; } public static final Parcelable.Creator<MtkEpoFileInfo> CREATOR = new Parcelable.Creator<MtkEpoFileInfo>() { public MtkEpoFileInfo createFromParcel(Parcel in) { MtkEpoFileInfo fileInfo = new MtkEpoFileInfo(); fileInfo.readFromParcel(in); return fileInfo; } public MtkEpoFileInfo[] newArray(int size) { return new MtkEpoFileInfo[size]; } }; //@Override public int describeContents() { return 0; } //@Override public void writeToParcel(Parcel out, int flags) { out.writeLong(downloadTime); out.writeLong(startTime); out.writeLong(expireTime); } //@Override public void readFromParcel(Parcel in) { downloadTime = in.readLong(); startTime = in.readLong(); expireTime = in.readLong(); } public String getDownloadTimeString() { return timeInMillis2Date(downloadTime * 1000); } public String getStartTimeString() { return timeInMillis2Date(startTime * 1000); } public String getExpireTimeString() { return timeInMillis2Date(expireTime * 1000); } private String timeInMillis2Date(long time) { Calendar cal = new GregorianCalendar(); cal.setTimeInMillis(time); String date = String.format("%04d-%02d-%02d %02d:%02d:%02d", cal.get(Calendar.YEAR), cal.get(Calendar.MONDAY) + 1, cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), cal.get(Calendar.SECOND)); return date; } public String toString() { String str = new String(); str = " MtkEpoFileInfo downloadTime=" + downloadTime + " startTime=" + startTime + " expireTime=" + expireTime; return str; } }
rex-xxx/mt6572_x201
mediatek/frameworks/common/src/com/mediatek/common/epo/MtkEpoFileInfo.java
Java
gpl-2.0
4,666
using Autofac.Integration.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; namespace CambodiaProvider.Core.Infrastructure.DependencyManagement { public class AutofacRequestLifetimeHttpModule : IHttpModule { #region New public void Init(HttpApplication context) { Guard.ArgumentNotNull(() => context); context.EndRequest += OnEndRequest; } public static void OnEndRequest(object sender, EventArgs e) { if (LifetimeScopeProvider != null) { LifetimeScopeProvider.EndLifetimeScope(); } } public static void SetLifetimeScopeProvider(ILifetimeScopeProvider lifetimeScopeProvider) { if (lifetimeScopeProvider == null) { throw new ArgumentNullException("lifetimeScopeProvider"); } LifetimeScopeProvider = lifetimeScopeProvider; } internal static ILifetimeScopeProvider LifetimeScopeProvider { get; set; } public void Dispose() { } #endregion } }
vichhay/ccc
CambodiaProvider.Core/Infrastructure/DependencyManagement/AutofacRequestLifetimeHttpModule.cs
C#
gpl-2.0
1,252
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Panel - YUI 3</title> <link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.7.0&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css"> <link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles"> <link rel="shortcut icon" type="image/png" href="..&#x2F;assets/favicon.png"> <script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.7.0&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script> </head> <body class="yui3-skin-sam"> <div id="doc"> <div id="hd" class="yui3-g header"> <div class="yui3-u-3-4"> <h1><img src="..&#x2F;assets/css/logo.png" title="YUI 3"></h1> </div> <div class="yui3-u-1-4 version"> <em>API Docs for: 3.7.3</em> </div> </div> <div id="bd" class="yui3-g"> <div class="yui3-u-1-4"> <div id="docs-sidebar" class="sidebar apidocs"> <div id="api-list"> <h2 class="off-left">APIs</h2> <div id="api-tabview" class="tabview"> <ul class="tabs"> <li><a href="#api-classes">Classes</a></li> <li><a href="#api-modules">Modules</a></li> </ul> <div id="api-tabview-filter"> <input type="search" id="api-filter" placeholder="Type to filter APIs"> </div> <div id="api-tabview-panel"> <ul id="api-classes" class="apis classes"> <li><a href="..&#x2F;classes/Anim.html">Anim</a></li> <li><a href="..&#x2F;classes/App.html">App</a></li> <li><a href="..&#x2F;classes/App.Base.html">App.Base</a></li> <li><a href="..&#x2F;classes/App.Content.html">App.Content</a></li> <li><a href="..&#x2F;classes/App.Transitions.html">App.Transitions</a></li> <li><a href="..&#x2F;classes/App.TransitionsNative.html">App.TransitionsNative</a></li> <li><a href="..&#x2F;classes/AreaSeries.html">AreaSeries</a></li> <li><a href="..&#x2F;classes/AreaSplineSeries.html">AreaSplineSeries</a></li> <li><a href="..&#x2F;classes/Array.html">Array</a></li> <li><a href="..&#x2F;classes/ArrayList.html">ArrayList</a></li> <li><a href="..&#x2F;classes/ArraySort.html">ArraySort</a></li> <li><a href="..&#x2F;classes/AsyncQueue.html">AsyncQueue</a></li> <li><a href="..&#x2F;classes/Attribute.html">Attribute</a></li> <li><a href="..&#x2F;classes/AttributeCore.html">AttributeCore</a></li> <li><a href="..&#x2F;classes/AttributeEvents.html">AttributeEvents</a></li> <li><a href="..&#x2F;classes/AttributeExtras.html">AttributeExtras</a></li> <li><a href="..&#x2F;classes/AttributeLite.html">AttributeLite</a></li> <li><a href="..&#x2F;classes/AutoComplete.html">AutoComplete</a></li> <li><a href="..&#x2F;classes/AutoCompleteBase.html">AutoCompleteBase</a></li> <li><a href="..&#x2F;classes/AutoCompleteFilters.html">AutoCompleteFilters</a></li> <li><a href="..&#x2F;classes/AutoCompleteHighlighters.html">AutoCompleteHighlighters</a></li> <li><a href="..&#x2F;classes/AutoCompleteList.html">AutoCompleteList</a></li> <li><a href="..&#x2F;classes/Axis.html">Axis</a></li> <li><a href="..&#x2F;classes/AxisType.html">AxisType</a></li> <li><a href="..&#x2F;classes/BarSeries.html">BarSeries</a></li> <li><a href="..&#x2F;classes/Base.html">Base</a></li> <li><a href="..&#x2F;classes/BaseCore.html">BaseCore</a></li> <li><a href="..&#x2F;classes/BottomAxisLayout.html">BottomAxisLayout</a></li> <li><a href="..&#x2F;classes/Button.html">Button</a></li> <li><a href="..&#x2F;classes/ButtonCore.html">ButtonCore</a></li> <li><a href="..&#x2F;classes/ButtonGroup.html">ButtonGroup</a></li> <li><a href="..&#x2F;classes/ButtonPlugin.html">ButtonPlugin</a></li> <li><a href="..&#x2F;classes/Cache.html">Cache</a></li> <li><a href="..&#x2F;classes/CacheOffline.html">CacheOffline</a></li> <li><a href="..&#x2F;classes/Calendar.html">Calendar</a></li> <li><a href="..&#x2F;classes/CalendarBase.html">CalendarBase</a></li> <li><a href="..&#x2F;classes/CanvasCircle.html">CanvasCircle</a></li> <li><a href="..&#x2F;classes/CanvasDrawing.html">CanvasDrawing</a></li> <li><a href="..&#x2F;classes/CanvasEllipse.html">CanvasEllipse</a></li> <li><a href="..&#x2F;classes/CanvasGraphic.html">CanvasGraphic</a></li> <li><a href="..&#x2F;classes/CanvasPath.html">CanvasPath</a></li> <li><a href="..&#x2F;classes/CanvasPieSlice.html">CanvasPieSlice</a></li> <li><a href="..&#x2F;classes/CanvasRect.html">CanvasRect</a></li> <li><a href="..&#x2F;classes/CanvasShape.html">CanvasShape</a></li> <li><a href="..&#x2F;classes/CartesianChart.html">CartesianChart</a></li> <li><a href="..&#x2F;classes/CartesianSeries.html">CartesianSeries</a></li> <li><a href="..&#x2F;classes/CategoryAxis.html">CategoryAxis</a></li> <li><a href="..&#x2F;classes/Chart.html">Chart</a></li> <li><a href="..&#x2F;classes/ChartBase.html">ChartBase</a></li> <li><a href="..&#x2F;classes/ChartLegend.html">ChartLegend</a></li> <li><a href="..&#x2F;classes/Circle.html">Circle</a></li> <li><a href="..&#x2F;classes/CircleGroup.html">CircleGroup</a></li> <li><a href="..&#x2F;classes/ClassNameManager.html">ClassNameManager</a></li> <li><a href="..&#x2F;classes/ClickableRail.html">ClickableRail</a></li> <li><a href="..&#x2F;classes/ColumnSeries.html">ColumnSeries</a></li> <li><a href="..&#x2F;classes/ComboSeries.html">ComboSeries</a></li> <li><a href="..&#x2F;classes/ComboSplineSeries.html">ComboSplineSeries</a></li> <li><a href="..&#x2F;classes/config.html">config</a></li> <li><a href="..&#x2F;classes/Console.html">Console</a></li> <li><a href="..&#x2F;classes/Controller.html">Controller</a></li> <li><a href="..&#x2F;classes/Cookie.html">Cookie</a></li> <li><a href="..&#x2F;classes/CurveUtil.html">CurveUtil</a></li> <li><a href="..&#x2F;classes/CustomEvent.html">CustomEvent</a></li> <li><a href="..&#x2F;classes/DataSchema.Array.html">DataSchema.Array</a></li> <li><a href="..&#x2F;classes/DataSchema.Base.html">DataSchema.Base</a></li> <li><a href="..&#x2F;classes/DataSchema.JSON.html">DataSchema.JSON</a></li> <li><a href="..&#x2F;classes/DataSchema.Text.html">DataSchema.Text</a></li> <li><a href="..&#x2F;classes/DataSchema.XML.html">DataSchema.XML</a></li> <li><a href="..&#x2F;classes/DataSource.Function.html">DataSource.Function</a></li> <li><a href="..&#x2F;classes/DataSource.Get.html">DataSource.Get</a></li> <li><a href="..&#x2F;classes/DataSource.IO.html">DataSource.IO</a></li> <li><a href="..&#x2F;classes/DataSource.Local.html">DataSource.Local</a></li> <li><a href="..&#x2F;classes/DataSourceArraySchema.html">DataSourceArraySchema</a></li> <li><a href="..&#x2F;classes/DataSourceCache.html">DataSourceCache</a></li> <li><a href="..&#x2F;classes/DataSourceCacheExtension.html">DataSourceCacheExtension</a></li> <li><a href="..&#x2F;classes/DataSourceJSONSchema.html">DataSourceJSONSchema</a></li> <li><a href="..&#x2F;classes/DataSourceTextSchema.html">DataSourceTextSchema</a></li> <li><a href="..&#x2F;classes/DataSourceXMLSchema.html">DataSourceXMLSchema</a></li> <li><a href="..&#x2F;classes/DataTable.html">DataTable</a></li> <li><a href="..&#x2F;classes/DataTable.Base.html">DataTable.Base</a></li> <li><a href="..&#x2F;classes/DataTable.BodyView.html">DataTable.BodyView</a></li> <li><a href="..&#x2F;classes/DataTable.ColumnWidths.html">DataTable.ColumnWidths</a></li> <li><a href="..&#x2F;classes/DataTable.Core.html">DataTable.Core</a></li> <li><a href="..&#x2F;classes/DataTable.HeaderView.html">DataTable.HeaderView</a></li> <li><a href="..&#x2F;classes/DataTable.Message.html">DataTable.Message</a></li> <li><a href="..&#x2F;classes/DataTable.Mutable.html">DataTable.Mutable</a></li> <li><a href="..&#x2F;classes/DataTable.Scrollable.html">DataTable.Scrollable</a></li> <li><a href="..&#x2F;classes/DataTable.Sortable.html">DataTable.Sortable</a></li> <li><a href="..&#x2F;classes/DataTable.TableView.html">DataTable.TableView</a></li> <li><a href="..&#x2F;classes/Date.html">Date</a></li> <li><a href="..&#x2F;classes/DD.DDM.html">DD.DDM</a></li> <li><a href="..&#x2F;classes/DD.Delegate.html">DD.Delegate</a></li> <li><a href="..&#x2F;classes/DD.Drag.html">DD.Drag</a></li> <li><a href="..&#x2F;classes/DD.Drop.html">DD.Drop</a></li> <li><a href="..&#x2F;classes/DD.Scroll.html">DD.Scroll</a></li> <li><a href="..&#x2F;classes/Dial.html">Dial</a></li> <li><a href="..&#x2F;classes/Do.html">Do</a></li> <li><a href="..&#x2F;classes/Do.AlterArgs.html">Do.AlterArgs</a></li> <li><a href="..&#x2F;classes/Do.AlterReturn.html">Do.AlterReturn</a></li> <li><a href="..&#x2F;classes/Do.Error.html">Do.Error</a></li> <li><a href="..&#x2F;classes/Do.Halt.html">Do.Halt</a></li> <li><a href="..&#x2F;classes/Do.Method.html">Do.Method</a></li> <li><a href="..&#x2F;classes/Do.Prevent.html">Do.Prevent</a></li> <li><a href="..&#x2F;classes/DOM.html">DOM</a></li> <li><a href="..&#x2F;classes/DOMEventFacade.html">DOMEventFacade</a></li> <li><a href="..&#x2F;classes/Drawing.html">Drawing</a></li> <li><a href="..&#x2F;classes/Easing.html">Easing</a></li> <li><a href="..&#x2F;classes/EditorBase.html">EditorBase</a></li> <li><a href="..&#x2F;classes/EditorSelection.html">EditorSelection</a></li> <li><a href="..&#x2F;classes/Ellipse.html">Ellipse</a></li> <li><a href="..&#x2F;classes/EllipseGroup.html">EllipseGroup</a></li> <li><a href="..&#x2F;classes/Escape.html">Escape</a></li> <li><a href="..&#x2F;classes/Event.html">Event</a></li> <li><a href="..&#x2F;classes/EventFacade.html">EventFacade</a></li> <li><a href="..&#x2F;classes/EventHandle.html">EventHandle</a></li> <li><a href="..&#x2F;classes/EventTarget.html">EventTarget</a></li> <li><a href="..&#x2F;classes/ExecCommand.html">ExecCommand</a></li> <li><a href="..&#x2F;classes/Features.html">Features</a></li> <li><a href="..&#x2F;classes/File.html">File</a></li> <li><a href="..&#x2F;classes/FileFlash.html">FileFlash</a></li> <li><a href="..&#x2F;classes/FileHTML5.html">FileHTML5</a></li> <li><a href="..&#x2F;classes/Fills.html">Fills</a></li> <li><a href="..&#x2F;classes/Frame.html">Frame</a></li> <li><a href="..&#x2F;classes/Get.html">Get</a></li> <li><a href="..&#x2F;classes/Get.Transaction.html">Get.Transaction</a></li> <li><a href="..&#x2F;classes/GetNodeJS.html">GetNodeJS</a></li> <li><a href="..&#x2F;classes/Graph.html">Graph</a></li> <li><a href="..&#x2F;classes/Graphic.html">Graphic</a></li> <li><a href="..&#x2F;classes/GraphicBase.html">GraphicBase</a></li> <li><a href="..&#x2F;classes/Gridlines.html">Gridlines</a></li> <li><a href="..&#x2F;classes/GroupDiamond.html">GroupDiamond</a></li> <li><a href="..&#x2F;classes/GroupRect.html">GroupRect</a></li> <li><a href="..&#x2F;classes/Handlebars.html">Handlebars</a></li> <li><a href="..&#x2F;classes/Highlight.html">Highlight</a></li> <li><a href="..&#x2F;classes/Histogram.html">Histogram</a></li> <li><a href="..&#x2F;classes/HistoryBase.html">HistoryBase</a></li> <li><a href="..&#x2F;classes/HistoryHash.html">HistoryHash</a></li> <li><a href="..&#x2F;classes/HistoryHTML5.html">HistoryHTML5</a></li> <li><a href="..&#x2F;classes/HorizontalLegendLayout.html">HorizontalLegendLayout</a></li> <li><a href="..&#x2F;classes/ImgLoadGroup.html">ImgLoadGroup</a></li> <li><a href="..&#x2F;classes/ImgLoadImgObj.html">ImgLoadImgObj</a></li> <li><a href="..&#x2F;classes/Intl.html">Intl</a></li> <li><a href="..&#x2F;classes/IO.html">IO</a></li> <li><a href="..&#x2F;classes/JSON.html">JSON</a></li> <li><a href="..&#x2F;classes/JSONPRequest.html">JSONPRequest</a></li> <li><a href="..&#x2F;classes/Lang.html">Lang</a></li> <li><a href="..&#x2F;classes/LazyModelList.html">LazyModelList</a></li> <li><a href="..&#x2F;classes/LeftAxisLayout.html">LeftAxisLayout</a></li> <li><a href="..&#x2F;classes/Lines.html">Lines</a></li> <li><a href="..&#x2F;classes/LineSeries.html">LineSeries</a></li> <li><a href="..&#x2F;classes/Loader.html">Loader</a></li> <li><a href="..&#x2F;classes/MarkerSeries.html">MarkerSeries</a></li> <li><a href="..&#x2F;classes/Matrix.html">Matrix</a></li> <li><a href="..&#x2F;classes/MatrixUtil.html">MatrixUtil</a></li> <li><a href="..&#x2F;classes/Model.html">Model</a></li> <li><a href="..&#x2F;classes/ModelList.html">ModelList</a></li> <li><a href="..&#x2F;classes/ModelSync.REST.html">ModelSync.REST</a></li> <li><a href="..&#x2F;classes/Node.html">Node</a></li> <li><a href="..&#x2F;classes/NodeList.html">NodeList</a></li> <li><a href="..&#x2F;classes/Number.html">Number</a></li> <li><a href="..&#x2F;classes/NumericAxis.html">NumericAxis</a></li> <li><a href="..&#x2F;classes/Object.html">Object</a></li> <li><a href="..&#x2F;classes/Overlay.html">Overlay</a></li> <li><a href="..&#x2F;classes/Panel.html">Panel</a></li> <li><a href="..&#x2F;classes/Parallel.html">Parallel</a></li> <li><a href="..&#x2F;classes/Path.html">Path</a></li> <li><a href="..&#x2F;classes/PieChart.html">PieChart</a></li> <li><a href="..&#x2F;classes/PieSeries.html">PieSeries</a></li> <li><a href="..&#x2F;classes/Pjax.html">Pjax</a></li> <li><a href="..&#x2F;classes/PjaxBase.html">PjaxBase</a></li> <li><a href="..&#x2F;classes/PjaxContent.html">PjaxContent</a></li> <li><a href="..&#x2F;classes/Plots.html">Plots</a></li> <li><a href="..&#x2F;classes/Plugin.Align.html">Plugin.Align</a></li> <li><a href="..&#x2F;classes/Plugin.AutoComplete.html">Plugin.AutoComplete</a></li> <li><a href="..&#x2F;classes/Plugin.Base.html">Plugin.Base</a></li> <li><a href="..&#x2F;classes/Plugin.Cache.html">Plugin.Cache</a></li> <li><a href="..&#x2F;classes/Plugin.CalendarNavigator.html">Plugin.CalendarNavigator</a></li> <li><a href="..&#x2F;classes/Plugin.ConsoleFilters.html">Plugin.ConsoleFilters</a></li> <li><a href="..&#x2F;classes/Plugin.CreateLinkBase.html">Plugin.CreateLinkBase</a></li> <li><a href="..&#x2F;classes/Plugin.DataTableDataSource.html">Plugin.DataTableDataSource</a></li> <li><a href="..&#x2F;classes/Plugin.DDConstrained.html">Plugin.DDConstrained</a></li> <li><a href="..&#x2F;classes/Plugin.DDNodeScroll.html">Plugin.DDNodeScroll</a></li> <li><a href="..&#x2F;classes/Plugin.DDProxy.html">Plugin.DDProxy</a></li> <li><a href="..&#x2F;classes/Plugin.DDWindowScroll.html">Plugin.DDWindowScroll</a></li> <li><a href="..&#x2F;classes/Plugin.Drag.html">Plugin.Drag</a></li> <li><a href="..&#x2F;classes/Plugin.Drop.html">Plugin.Drop</a></li> <li><a href="..&#x2F;classes/Plugin.EditorBidi.html">Plugin.EditorBidi</a></li> <li><a href="..&#x2F;classes/Plugin.EditorBR.html">Plugin.EditorBR</a></li> <li><a href="..&#x2F;classes/Plugin.EditorLists.html">Plugin.EditorLists</a></li> <li><a href="..&#x2F;classes/Plugin.EditorPara.html">Plugin.EditorPara</a></li> <li><a href="..&#x2F;classes/Plugin.EditorParaBase.html">Plugin.EditorParaBase</a></li> <li><a href="..&#x2F;classes/Plugin.EditorParaIE.html">Plugin.EditorParaIE</a></li> <li><a href="..&#x2F;classes/Plugin.EditorTab.html">Plugin.EditorTab</a></li> <li><a href="..&#x2F;classes/Plugin.ExecCommand.html">Plugin.ExecCommand</a></li> <li><a href="..&#x2F;classes/Plugin.Flick.html">Plugin.Flick</a></li> <li><a href="..&#x2F;classes/Plugin.Host.html">Plugin.Host</a></li> <li><a href="..&#x2F;classes/plugin.NodeFocusManager.html">plugin.NodeFocusManager</a></li> <li><a href="..&#x2F;classes/Plugin.NodeFX.html">Plugin.NodeFX</a></li> <li><a href="..&#x2F;classes/plugin.NodeMenuNav.html">plugin.NodeMenuNav</a></li> <li><a href="..&#x2F;classes/Plugin.Pjax.html">Plugin.Pjax</a></li> <li><a href="..&#x2F;classes/Plugin.Resize.html">Plugin.Resize</a></li> <li><a href="..&#x2F;classes/Plugin.ResizeConstrained.html">Plugin.ResizeConstrained</a></li> <li><a href="..&#x2F;classes/Plugin.ResizeProxy.html">Plugin.ResizeProxy</a></li> <li><a href="..&#x2F;classes/Plugin.ScrollInfo.html">Plugin.ScrollInfo</a></li> <li><a href="..&#x2F;classes/Plugin.ScrollViewList.html">Plugin.ScrollViewList</a></li> <li><a href="..&#x2F;classes/Plugin.ScrollViewPaginator.html">Plugin.ScrollViewPaginator</a></li> <li><a href="..&#x2F;classes/Plugin.ScrollViewScrollbars.html">Plugin.ScrollViewScrollbars</a></li> <li><a href="..&#x2F;classes/Plugin.Shim.html">Plugin.Shim</a></li> <li><a href="..&#x2F;classes/Plugin.SortScroll.html">Plugin.SortScroll</a></li> <li><a href="..&#x2F;classes/Plugin.WidgetAnim.html">Plugin.WidgetAnim</a></li> <li><a href="..&#x2F;classes/Pollable.html">Pollable</a></li> <li><a href="..&#x2F;classes/Profiler.html">Profiler</a></li> <li><a href="..&#x2F;classes/QueryString.html">QueryString</a></li> <li><a href="..&#x2F;classes/Queue.html">Queue</a></li> <li><a href="..&#x2F;classes/Record.html">Record</a></li> <li><a href="..&#x2F;classes/Recordset.html">Recordset</a></li> <li><a href="..&#x2F;classes/RecordsetFilter.html">RecordsetFilter</a></li> <li><a href="..&#x2F;classes/RecordsetIndexer.html">RecordsetIndexer</a></li> <li><a href="..&#x2F;classes/RecordsetSort.html">RecordsetSort</a></li> <li><a href="..&#x2F;classes/Rect.html">Rect</a></li> <li><a href="..&#x2F;classes/Renderer.html">Renderer</a></li> <li><a href="..&#x2F;classes/Resize.html">Resize</a></li> <li><a href="..&#x2F;classes/RightAxisLayout.html">RightAxisLayout</a></li> <li><a href="..&#x2F;classes/Router.html">Router</a></li> <li><a href="..&#x2F;classes/ScrollView.html">ScrollView</a></li> <li><a href="..&#x2F;classes/Selector.html">Selector</a></li> <li><a href="..&#x2F;classes/Shape.html">Shape</a></li> <li><a href="..&#x2F;classes/ShapeGroup.html">ShapeGroup</a></li> <li><a href="..&#x2F;classes/Slider.html">Slider</a></li> <li><a href="..&#x2F;classes/SliderBase.html">SliderBase</a></li> <li><a href="..&#x2F;classes/SliderValueRange.html">SliderValueRange</a></li> <li><a href="..&#x2F;classes/Sortable.html">Sortable</a></li> <li><a href="..&#x2F;classes/SplineSeries.html">SplineSeries</a></li> <li><a href="..&#x2F;classes/StackedAreaSeries.html">StackedAreaSeries</a></li> <li><a href="..&#x2F;classes/StackedAreaSplineSeries.html">StackedAreaSplineSeries</a></li> <li><a href="..&#x2F;classes/StackedAxis.html">StackedAxis</a></li> <li><a href="..&#x2F;classes/StackedBarSeries.html">StackedBarSeries</a></li> <li><a href="..&#x2F;classes/StackedColumnSeries.html">StackedColumnSeries</a></li> <li><a href="..&#x2F;classes/StackedComboSeries.html">StackedComboSeries</a></li> <li><a href="..&#x2F;classes/StackedComboSplineSeries.html">StackedComboSplineSeries</a></li> <li><a href="..&#x2F;classes/StackedLineSeries.html">StackedLineSeries</a></li> <li><a href="..&#x2F;classes/StackedMarkerSeries.html">StackedMarkerSeries</a></li> <li><a href="..&#x2F;classes/StackedSplineSeries.html">StackedSplineSeries</a></li> <li><a href="..&#x2F;classes/StackingUtil.html">StackingUtil</a></li> <li><a href="..&#x2F;classes/State.html">State</a></li> <li><a href="..&#x2F;classes/StyleSheet.html">StyleSheet</a></li> <li><a href="..&#x2F;classes/Subscriber.html">Subscriber</a></li> <li><a href="..&#x2F;classes/SVGCircle.html">SVGCircle</a></li> <li><a href="..&#x2F;classes/SVGDrawing.html">SVGDrawing</a></li> <li><a href="..&#x2F;classes/SVGEllipse.html">SVGEllipse</a></li> <li><a href="..&#x2F;classes/SVGGraphic.html">SVGGraphic</a></li> <li><a href="..&#x2F;classes/SVGPath.html">SVGPath</a></li> <li><a href="..&#x2F;classes/SVGPieSlice.html">SVGPieSlice</a></li> <li><a href="..&#x2F;classes/SVGRect.html">SVGRect</a></li> <li><a href="..&#x2F;classes/SVGShape.html">SVGShape</a></li> <li><a href="..&#x2F;classes/SWF.html">SWF</a></li> <li><a href="..&#x2F;classes/SWFDetect.html">SWFDetect</a></li> <li><a href="..&#x2F;classes/SyntheticEvent.html">SyntheticEvent</a></li> <li><a href="..&#x2F;classes/SyntheticEvent.Notifier.html">SyntheticEvent.Notifier</a></li> <li><a href="..&#x2F;classes/SynthRegistry.html">SynthRegistry</a></li> <li><a href="..&#x2F;classes/Tab.html">Tab</a></li> <li><a href="..&#x2F;classes/TabView.html">TabView</a></li> <li><a href="..&#x2F;classes/Test.ArrayAssert.html">Test.ArrayAssert</a></li> <li><a href="..&#x2F;classes/Test.Assert.html">Test.Assert</a></li> <li><a href="..&#x2F;classes/Test.AssertionError.html">Test.AssertionError</a></li> <li><a href="..&#x2F;classes/Test.ComparisonFailure.html">Test.ComparisonFailure</a></li> <li><a href="..&#x2F;classes/Test.Console.html">Test.Console</a></li> <li><a href="..&#x2F;classes/Test.CoverageFormat.html">Test.CoverageFormat</a></li> <li><a href="..&#x2F;classes/Test.DateAssert.html">Test.DateAssert</a></li> <li><a href="..&#x2F;classes/Test.EventTarget.html">Test.EventTarget</a></li> <li><a href="..&#x2F;classes/Test.Mock.html">Test.Mock</a></li> <li><a href="..&#x2F;classes/Test.Mock.Value.html">Test.Mock.Value</a></li> <li><a href="..&#x2F;classes/Test.ObjectAssert.html">Test.ObjectAssert</a></li> <li><a href="..&#x2F;classes/Test.Reporter.html">Test.Reporter</a></li> <li><a href="..&#x2F;classes/Test.Results.html">Test.Results</a></li> <li><a href="..&#x2F;classes/Test.Runner.html">Test.Runner</a></li> <li><a href="..&#x2F;classes/Test.ShouldError.html">Test.ShouldError</a></li> <li><a href="..&#x2F;classes/Test.ShouldFail.html">Test.ShouldFail</a></li> <li><a href="..&#x2F;classes/Test.TestCase.html">Test.TestCase</a></li> <li><a href="..&#x2F;classes/Test.TestFormat.html">Test.TestFormat</a></li> <li><a href="..&#x2F;classes/Test.TestNode.html">Test.TestNode</a></li> <li><a href="..&#x2F;classes/Test.TestRunner.html">Test.TestRunner</a></li> <li><a href="..&#x2F;classes/Test.TestSuite.html">Test.TestSuite</a></li> <li><a href="..&#x2F;classes/Test.UnexpectedError.html">Test.UnexpectedError</a></li> <li><a href="..&#x2F;classes/Test.UnexpectedValue.html">Test.UnexpectedValue</a></li> <li><a href="..&#x2F;classes/Test.Wait.html">Test.Wait</a></li> <li><a href="..&#x2F;classes/Text.AccentFold.html">Text.AccentFold</a></li> <li><a href="..&#x2F;classes/Text.WordBreak.html">Text.WordBreak</a></li> <li><a href="..&#x2F;classes/TimeAxis.html">TimeAxis</a></li> <li><a href="..&#x2F;classes/ToggleButton.html">ToggleButton</a></li> <li><a href="..&#x2F;classes/TopAxisLayout.html">TopAxisLayout</a></li> <li><a href="..&#x2F;classes/Transition.html">Transition</a></li> <li><a href="..&#x2F;classes/UA.html">UA</a></li> <li><a href="..&#x2F;classes/Uploader.html">Uploader</a></li> <li><a href="..&#x2F;classes/Uploader.Queue.html">Uploader.Queue</a></li> <li><a href="..&#x2F;classes/UploaderFlash.html">UploaderFlash</a></li> <li><a href="..&#x2F;classes/UploaderHTML5.html">UploaderHTML5</a></li> <li><a href="..&#x2F;classes/ValueChange.html">ValueChange</a></li> <li><a href="..&#x2F;classes/VerticalLegendLayout.html">VerticalLegendLayout</a></li> <li><a href="..&#x2F;classes/View.html">View</a></li> <li><a href="..&#x2F;classes/View.NodeMap.html">View.NodeMap</a></li> <li><a href="..&#x2F;classes/VMLCircle.html">VMLCircle</a></li> <li><a href="..&#x2F;classes/VMLDrawing.html">VMLDrawing</a></li> <li><a href="..&#x2F;classes/VMLEllipse.html">VMLEllipse</a></li> <li><a href="..&#x2F;classes/VMLGraphic.html">VMLGraphic</a></li> <li><a href="..&#x2F;classes/VMLPath.html">VMLPath</a></li> <li><a href="..&#x2F;classes/VMLPieSlice.html">VMLPieSlice</a></li> <li><a href="..&#x2F;classes/VMLRect.html">VMLRect</a></li> <li><a href="..&#x2F;classes/VMLShape.html">VMLShape</a></li> <li><a href="..&#x2F;classes/Widget.html">Widget</a></li> <li><a href="..&#x2F;classes/WidgetAutohide.html">WidgetAutohide</a></li> <li><a href="..&#x2F;classes/WidgetButtons.html">WidgetButtons</a></li> <li><a href="..&#x2F;classes/WidgetChild.html">WidgetChild</a></li> <li><a href="..&#x2F;classes/WidgetModality.html">WidgetModality</a></li> <li><a href="..&#x2F;classes/WidgetParent.html">WidgetParent</a></li> <li><a href="..&#x2F;classes/WidgetPosition.html">WidgetPosition</a></li> <li><a href="..&#x2F;classes/WidgetPositionAlign.html">WidgetPositionAlign</a></li> <li><a href="..&#x2F;classes/WidgetPositionConstrain.html">WidgetPositionConstrain</a></li> <li><a href="..&#x2F;classes/WidgetStack.html">WidgetStack</a></li> <li><a href="..&#x2F;classes/WidgetStdMod.html">WidgetStdMod</a></li> <li><a href="..&#x2F;classes/XML.html">XML</a></li> <li><a href="..&#x2F;classes/YQL.html">YQL</a></li> <li><a href="..&#x2F;classes/YQLRequest.html">YQLRequest</a></li> <li><a href="..&#x2F;classes/YUI.html">YUI</a></li> <li><a href="..&#x2F;classes/YUI~substitute.html">YUI~substitute</a></li> </ul> <ul id="api-modules" class="apis modules"> <li><a href="..&#x2F;modules/align-plugin.html">align-plugin</a></li> <li><a href="..&#x2F;modules/anim.html">anim</a></li> <li><a href="..&#x2F;modules/anim-base.html">anim-base</a></li> <li><a href="..&#x2F;modules/anim-color.html">anim-color</a></li> <li><a href="..&#x2F;modules/anim-curve.html">anim-curve</a></li> <li><a href="..&#x2F;modules/anim-easing.html">anim-easing</a></li> <li><a href="..&#x2F;modules/anim-node-plugin.html">anim-node-plugin</a></li> <li><a href="..&#x2F;modules/anim-scroll.html">anim-scroll</a></li> <li><a href="..&#x2F;modules/anim-shape.html">anim-shape</a></li> <li><a href="..&#x2F;modules/anim-shape-transform.html">anim-shape-transform</a></li> <li><a href="..&#x2F;modules/anim-xy.html">anim-xy</a></li> <li><a href="..&#x2F;modules/app.html">app</a></li> <li><a href="..&#x2F;modules/app-base.html">app-base</a></li> <li><a href="..&#x2F;modules/app-content.html">app-content</a></li> <li><a href="..&#x2F;modules/app-transitions.html">app-transitions</a></li> <li><a href="..&#x2F;modules/app-transitions-native.html">app-transitions-native</a></li> <li><a href="..&#x2F;modules/array-extras.html">array-extras</a></li> <li><a href="..&#x2F;modules/array-invoke.html">array-invoke</a></li> <li><a href="..&#x2F;modules/arraylist.html">arraylist</a></li> <li><a href="..&#x2F;modules/arraylist-add.html">arraylist-add</a></li> <li><a href="..&#x2F;modules/arraylist-filter.html">arraylist-filter</a></li> <li><a href="..&#x2F;modules/arraysort.html">arraysort</a></li> <li><a href="..&#x2F;modules/async-queue.html">async-queue</a></li> <li><a href="..&#x2F;modules/attribute.html">attribute</a></li> <li><a href="..&#x2F;modules/attribute-base.html">attribute-base</a></li> <li><a href="..&#x2F;modules/attribute-complex.html">attribute-complex</a></li> <li><a href="..&#x2F;modules/attribute-core.html">attribute-core</a></li> <li><a href="..&#x2F;modules/attribute-events.html">attribute-events</a></li> <li><a href="..&#x2F;modules/attribute-extras.html">attribute-extras</a></li> <li><a href="..&#x2F;modules/autocomplete.html">autocomplete</a></li> <li><a href="..&#x2F;modules/autocomplete-base.html">autocomplete-base</a></li> <li><a href="..&#x2F;modules/autocomplete-filters.html">autocomplete-filters</a></li> <li><a href="..&#x2F;modules/autocomplete-filters-accentfold.html">autocomplete-filters-accentfold</a></li> <li><a href="..&#x2F;modules/autocomplete-highlighters.html">autocomplete-highlighters</a></li> <li><a href="..&#x2F;modules/autocomplete-highlighters-accentfold.html">autocomplete-highlighters-accentfold</a></li> <li><a href="..&#x2F;modules/autocomplete-list.html">autocomplete-list</a></li> <li><a href="..&#x2F;modules/autocomplete-list-keys.html">autocomplete-list-keys</a></li> <li><a href="..&#x2F;modules/autocomplete-plugin.html">autocomplete-plugin</a></li> <li><a href="..&#x2F;modules/autocomplete-sources.html">autocomplete-sources</a></li> <li><a href="..&#x2F;modules/base.html">base</a></li> <li><a href="..&#x2F;modules/base-base.html">base-base</a></li> <li><a href="..&#x2F;modules/base-build.html">base-build</a></li> <li><a href="..&#x2F;modules/base-core.html">base-core</a></li> <li><a href="..&#x2F;modules/base-pluginhost.html">base-pluginhost</a></li> <li><a href="..&#x2F;modules/button.html">button</a></li> <li><a href="..&#x2F;modules/button-core.html">button-core</a></li> <li><a href="..&#x2F;modules/button-group.html">button-group</a></li> <li><a href="..&#x2F;modules/button-plugin.html">button-plugin</a></li> <li><a href="..&#x2F;modules/cache.html">cache</a></li> <li><a href="..&#x2F;modules/cache-base.html">cache-base</a></li> <li><a href="..&#x2F;modules/cache-offline.html">cache-offline</a></li> <li><a href="..&#x2F;modules/cache-plugin.html">cache-plugin</a></li> <li><a href="..&#x2F;modules/calendar.html">calendar</a></li> <li><a href="..&#x2F;modules/calendar-base.html">calendar-base</a></li> <li><a href="..&#x2F;modules/calendarnavigator.html">calendarnavigator</a></li> <li><a href="..&#x2F;modules/charts.html">charts</a></li> <li><a href="..&#x2F;modules/charts-base.html">charts-base</a></li> <li><a href="..&#x2F;modules/charts-legend.html">charts-legend</a></li> <li><a href="..&#x2F;modules/classnamemanager.html">classnamemanager</a></li> <li><a href="..&#x2F;modules/clickable-rail.html">clickable-rail</a></li> <li><a href="..&#x2F;modules/collection.html">collection</a></li> <li><a href="..&#x2F;modules/console.html">console</a></li> <li><a href="..&#x2F;modules/console-filters.html">console-filters</a></li> <li><a href="..&#x2F;modules/cookie.html">cookie</a></li> <li><a href="..&#x2F;modules/createlink-base.html">createlink-base</a></li> <li><a href="..&#x2F;modules/dataschema.html">dataschema</a></li> <li><a href="..&#x2F;modules/dataschema-array.html">dataschema-array</a></li> <li><a href="..&#x2F;modules/dataschema-base.html">dataschema-base</a></li> <li><a href="..&#x2F;modules/dataschema-json.html">dataschema-json</a></li> <li><a href="..&#x2F;modules/dataschema-text.html">dataschema-text</a></li> <li><a href="..&#x2F;modules/dataschema-xml.html">dataschema-xml</a></li> <li><a href="..&#x2F;modules/datasource.html">datasource</a></li> <li><a href="..&#x2F;modules/datasource-arrayschema.html">datasource-arrayschema</a></li> <li><a href="..&#x2F;modules/datasource-cache.html">datasource-cache</a></li> <li><a href="..&#x2F;modules/datasource-function.html">datasource-function</a></li> <li><a href="..&#x2F;modules/datasource-get.html">datasource-get</a></li> <li><a href="..&#x2F;modules/datasource-io.html">datasource-io</a></li> <li><a href="..&#x2F;modules/datasource-jsonschema.html">datasource-jsonschema</a></li> <li><a href="..&#x2F;modules/datasource-local.html">datasource-local</a></li> <li><a href="..&#x2F;modules/datasource-polling.html">datasource-polling</a></li> <li><a href="..&#x2F;modules/datasource-textschema.html">datasource-textschema</a></li> <li><a href="..&#x2F;modules/datasource-xmlschema.html">datasource-xmlschema</a></li> <li><a href="..&#x2F;modules/datatable.html">datatable</a></li> <li><a href="..&#x2F;modules/datatable-base.html">datatable-base</a></li> <li><a href="..&#x2F;modules/datatable-base-deprecated.html">datatable-base-deprecated</a></li> <li><a href="..&#x2F;modules/datatable-body.html">datatable-body</a></li> <li><a href="..&#x2F;modules/datatable-column-widths.html">datatable-column-widths</a></li> <li><a href="..&#x2F;modules/datatable-core.html">datatable-core</a></li> <li><a href="..&#x2F;modules/datatable-datasource.html">datatable-datasource</a></li> <li><a href="..&#x2F;modules/datatable-datasource-deprecated.html">datatable-datasource-deprecated</a></li> <li><a href="..&#x2F;modules/datatable-deprecated.html">datatable-deprecated</a></li> <li><a href="..&#x2F;modules/datatable-head.html">datatable-head</a></li> <li><a href="..&#x2F;modules/datatable-message.html">datatable-message</a></li> <li><a href="..&#x2F;modules/datatable-mutable.html">datatable-mutable</a></li> <li><a href="..&#x2F;modules/datatable-scroll.html">datatable-scroll</a></li> <li><a href="..&#x2F;modules/datatable-scroll-deprecated.html">datatable-scroll-deprecated</a></li> <li><a href="..&#x2F;modules/datatable-sort.html">datatable-sort</a></li> <li><a href="..&#x2F;modules/datatable-sort-deprecated.html">datatable-sort-deprecated</a></li> <li><a href="..&#x2F;modules/datatable-table.html">datatable-table</a></li> <li><a href="..&#x2F;modules/datatype.html">datatype</a></li> <li><a href="..&#x2F;modules/datatype-date.html">datatype-date</a></li> <li><a href="..&#x2F;modules/datatype-date-format.html">datatype-date-format</a></li> <li><a href="..&#x2F;modules/datatype-date-math.html">datatype-date-math</a></li> <li><a href="..&#x2F;modules/datatype-date-parse.html">datatype-date-parse</a></li> <li><a href="..&#x2F;modules/datatype-number.html">datatype-number</a></li> <li><a href="..&#x2F;modules/datatype-number-format.html">datatype-number-format</a></li> <li><a href="..&#x2F;modules/datatype-number-parse.html">datatype-number-parse</a></li> <li><a href="..&#x2F;modules/datatype-xml.html">datatype-xml</a></li> <li><a href="..&#x2F;modules/datatype-xml-format.html">datatype-xml-format</a></li> <li><a href="..&#x2F;modules/datatype-xml-parse.html">datatype-xml-parse</a></li> <li><a href="..&#x2F;modules/dd.html">dd</a></li> <li><a href="..&#x2F;modules/dd-constrain.html">dd-constrain</a></li> <li><a href="..&#x2F;modules/dd-ddm.html">dd-ddm</a></li> <li><a href="..&#x2F;modules/dd-ddm-base.html">dd-ddm-base</a></li> <li><a href="..&#x2F;modules/dd-ddm-drop.html">dd-ddm-drop</a></li> <li><a href="..&#x2F;modules/dd-delegate.html">dd-delegate</a></li> <li><a href="..&#x2F;modules/dd-drag.html">dd-drag</a></li> <li><a href="..&#x2F;modules/dd-drop.html">dd-drop</a></li> <li><a href="..&#x2F;modules/dd-drop-plugin.html">dd-drop-plugin</a></li> <li><a href="..&#x2F;modules/dd-gestures.html">dd-gestures</a></li> <li><a href="..&#x2F;modules/dd-plugin.html">dd-plugin</a></li> <li><a href="..&#x2F;modules/dd-proxy.html">dd-proxy</a></li> <li><a href="..&#x2F;modules/dd-scroll.html">dd-scroll</a></li> <li><a href="..&#x2F;modules/dial.html">dial</a></li> <li><a href="..&#x2F;modules/dom.html">dom</a></li> <li><a href="..&#x2F;modules/dom-base.html">dom-base</a></li> <li><a href="..&#x2F;modules/dom-screen.html">dom-screen</a></li> <li><a href="..&#x2F;modules/dom-style.html">dom-style</a></li> <li><a href="..&#x2F;modules/dump.html">dump</a></li> <li><a href="..&#x2F;modules/editor.html">editor</a></li> <li><a href="..&#x2F;modules/editor-base.html">editor-base</a></li> <li><a href="..&#x2F;modules/editor-bidi.html">editor-bidi</a></li> <li><a href="..&#x2F;modules/editor-br.html">editor-br</a></li> <li><a href="..&#x2F;modules/editor-lists.html">editor-lists</a></li> <li><a href="..&#x2F;modules/editor-para.html">editor-para</a></li> <li><a href="..&#x2F;modules/editor-para-base.html">editor-para-base</a></li> <li><a href="..&#x2F;modules/editor-para-ie.html">editor-para-ie</a></li> <li><a href="..&#x2F;modules/editor-tab.html">editor-tab</a></li> <li><a href="..&#x2F;modules/escape.html">escape</a></li> <li><a href="..&#x2F;modules/event.html">event</a></li> <li><a href="..&#x2F;modules/event-base.html">event-base</a></li> <li><a href="..&#x2F;modules/event-contextmenu.html">event-contextmenu</a></li> <li><a href="..&#x2F;modules/event-custom.html">event-custom</a></li> <li><a href="..&#x2F;modules/event-custom-base.html">event-custom-base</a></li> <li><a href="..&#x2F;modules/event-custom-complex.html">event-custom-complex</a></li> <li><a href="..&#x2F;modules/event-delegate.html">event-delegate</a></li> <li><a href="..&#x2F;modules/event-flick.html">event-flick</a></li> <li><a href="..&#x2F;modules/event-focus.html">event-focus</a></li> <li><a href="..&#x2F;modules/event-gestures.html">event-gestures</a></li> <li><a href="..&#x2F;modules/event-hover.html">event-hover</a></li> <li><a href="..&#x2F;modules/event-key.html">event-key</a></li> <li><a href="..&#x2F;modules/event-mouseenter.html">event-mouseenter</a></li> <li><a href="..&#x2F;modules/event-mousewheel.html">event-mousewheel</a></li> <li><a href="..&#x2F;modules/event-move.html">event-move</a></li> <li><a href="..&#x2F;modules/event-outside.html">event-outside</a></li> <li><a href="..&#x2F;modules/event-resize.html">event-resize</a></li> <li><a href="..&#x2F;modules/event-simulate.html">event-simulate</a></li> <li><a href="..&#x2F;modules/event-synthetic.html">event-synthetic</a></li> <li><a href="..&#x2F;modules/event-tap.html">event-tap</a></li> <li><a href="..&#x2F;modules/event-touch.html">event-touch</a></li> <li><a href="..&#x2F;modules/event-valuechange.html">event-valuechange</a></li> <li><a href="..&#x2F;modules/exec-command.html">exec-command</a></li> <li><a href="..&#x2F;modules/features.html">features</a></li> <li><a href="..&#x2F;modules/file.html">file</a></li> <li><a href="..&#x2F;modules/file-flash.html">file-flash</a></li> <li><a href="..&#x2F;modules/file-html5.html">file-html5</a></li> <li><a href="..&#x2F;modules/frame.html">frame</a></li> <li><a href="..&#x2F;modules/gesture-simulate.html">gesture-simulate</a></li> <li><a href="..&#x2F;modules/get.html">get</a></li> <li><a href="..&#x2F;modules/get-nodejs.html">get-nodejs</a></li> <li><a href="..&#x2F;modules/graphics.html">graphics</a></li> <li><a href="..&#x2F;modules/handlebars.html">handlebars</a></li> <li><a href="..&#x2F;modules/handlebars-base.html">handlebars-base</a></li> <li><a href="..&#x2F;modules/handlebars-compiler.html">handlebars-compiler</a></li> <li><a href="..&#x2F;modules/highlight.html">highlight</a></li> <li><a href="..&#x2F;modules/highlight-accentfold.html">highlight-accentfold</a></li> <li><a href="..&#x2F;modules/highlight-base.html">highlight-base</a></li> <li><a href="..&#x2F;modules/history.html">history</a></li> <li><a href="..&#x2F;modules/history-base.html">history-base</a></li> <li><a href="..&#x2F;modules/history-hash.html">history-hash</a></li> <li><a href="..&#x2F;modules/history-hash-ie.html">history-hash-ie</a></li> <li><a href="..&#x2F;modules/history-html5.html">history-html5</a></li> <li><a href="..&#x2F;modules/imageloader.html">imageloader</a></li> <li><a href="..&#x2F;modules/intl.html">intl</a></li> <li><a href="..&#x2F;modules/io.html">io</a></li> <li><a href="..&#x2F;modules/io-base.html">io-base</a></li> <li><a href="..&#x2F;modules/io-form.html">io-form</a></li> <li><a href="..&#x2F;modules/io-nodejs.html">io-nodejs</a></li> <li><a href="..&#x2F;modules/io-queue.html">io-queue</a></li> <li><a href="..&#x2F;modules/io-upload-iframe.html">io-upload-iframe</a></li> <li><a href="..&#x2F;modules/io-xdr.html">io-xdr</a></li> <li><a href="..&#x2F;modules/json.html">json</a></li> <li><a href="..&#x2F;modules/json-parse.html">json-parse</a></li> <li><a href="..&#x2F;modules/json-stringify.html">json-stringify</a></li> <li><a href="..&#x2F;modules/jsonp.html">jsonp</a></li> <li><a href="..&#x2F;modules/jsonp-url.html">jsonp-url</a></li> <li><a href="..&#x2F;modules/lazy-model-list.html">lazy-model-list</a></li> <li><a href="..&#x2F;modules/loader.html">loader</a></li> <li><a href="..&#x2F;modules/loader-base.html">loader-base</a></li> <li><a href="..&#x2F;modules/matrix.html">matrix</a></li> <li><a href="..&#x2F;modules/model.html">model</a></li> <li><a href="..&#x2F;modules/model-list.html">model-list</a></li> <li><a href="..&#x2F;modules/model-sync-rest.html">model-sync-rest</a></li> <li><a href="..&#x2F;modules/node.html">node</a></li> <li><a href="..&#x2F;modules/node-base.html">node-base</a></li> <li><a href="..&#x2F;modules/node-core.html">node-core</a></li> <li><a href="..&#x2F;modules/node-data.html">node-data</a></li> <li><a href="..&#x2F;modules/node-deprecated.html">node-deprecated</a></li> <li><a href="..&#x2F;modules/node-event-delegate.html">node-event-delegate</a></li> <li><a href="..&#x2F;modules/node-event-html5.html">node-event-html5</a></li> <li><a href="..&#x2F;modules/node-event-simulate.html">node-event-simulate</a></li> <li><a href="..&#x2F;modules/node-flick.html">node-flick</a></li> <li><a href="..&#x2F;modules/node-focusmanager.html">node-focusmanager</a></li> <li><a href="..&#x2F;modules/node-load.html">node-load</a></li> <li><a href="..&#x2F;modules/node-menunav.html">node-menunav</a></li> <li><a href="..&#x2F;modules/node-pluginhost.html">node-pluginhost</a></li> <li><a href="..&#x2F;modules/node-screen.html">node-screen</a></li> <li><a href="..&#x2F;modules/node-scroll-info.html">node-scroll-info</a></li> <li><a href="..&#x2F;modules/node-style.html">node-style</a></li> <li><a href="..&#x2F;modules/oop.html">oop</a></li> <li><a href="..&#x2F;modules/overlay.html">overlay</a></li> <li><a href="..&#x2F;modules/panel.html">panel</a></li> <li><a href="..&#x2F;modules/parallel.html">parallel</a></li> <li><a href="..&#x2F;modules/pjax.html">pjax</a></li> <li><a href="..&#x2F;modules/pjax-base.html">pjax-base</a></li> <li><a href="..&#x2F;modules/pjax-content.html">pjax-content</a></li> <li><a href="..&#x2F;modules/pjax-plugin.html">pjax-plugin</a></li> <li><a href="..&#x2F;modules/plugin.html">plugin</a></li> <li><a href="..&#x2F;modules/pluginhost.html">pluginhost</a></li> <li><a href="..&#x2F;modules/pluginhost-base.html">pluginhost-base</a></li> <li><a href="..&#x2F;modules/pluginhost-config.html">pluginhost-config</a></li> <li><a href="..&#x2F;modules/profiler.html">profiler</a></li> <li><a href="..&#x2F;modules/querystring.html">querystring</a></li> <li><a href="..&#x2F;modules/querystring-parse.html">querystring-parse</a></li> <li><a href="..&#x2F;modules/querystring-parse-simple.html">querystring-parse-simple</a></li> <li><a href="..&#x2F;modules/querystring-stringify.html">querystring-stringify</a></li> <li><a href="..&#x2F;modules/querystring-stringify-simple.html">querystring-stringify-simple</a></li> <li><a href="..&#x2F;modules/queue-promote.html">queue-promote</a></li> <li><a href="..&#x2F;modules/range-slider.html">range-slider</a></li> <li><a href="..&#x2F;modules/recordset.html">recordset</a></li> <li><a href="..&#x2F;modules/recordset-base.html">recordset-base</a></li> <li><a href="..&#x2F;modules/recordset-filter.html">recordset-filter</a></li> <li><a href="..&#x2F;modules/recordset-indexer.html">recordset-indexer</a></li> <li><a href="..&#x2F;modules/recordset-sort.html">recordset-sort</a></li> <li><a href="..&#x2F;modules/resize.html">resize</a></li> <li><a href="..&#x2F;modules/resize-contrain.html">resize-contrain</a></li> <li><a href="..&#x2F;modules/resize-plugin.html">resize-plugin</a></li> <li><a href="..&#x2F;modules/resize-proxy.html">resize-proxy</a></li> <li><a href="..&#x2F;modules/rollup.html">rollup</a></li> <li><a href="..&#x2F;modules/router.html">router</a></li> <li><a href="..&#x2F;modules/scrollview.html">scrollview</a></li> <li><a href="..&#x2F;modules/scrollview-base.html">scrollview-base</a></li> <li><a href="..&#x2F;modules/scrollview-base-ie.html">scrollview-base-ie</a></li> <li><a href="..&#x2F;modules/scrollview-list.html">scrollview-list</a></li> <li><a href="..&#x2F;modules/scrollview-paginator.html">scrollview-paginator</a></li> <li><a href="..&#x2F;modules/scrollview-scrollbars.html">scrollview-scrollbars</a></li> <li><a href="..&#x2F;modules/selection.html">selection</a></li> <li><a href="..&#x2F;modules/selector-css2.html">selector-css2</a></li> <li><a href="..&#x2F;modules/selector-css3.html">selector-css3</a></li> <li><a href="..&#x2F;modules/selector-native.html">selector-native</a></li> <li><a href="..&#x2F;modules/shim-plugin.html">shim-plugin</a></li> <li><a href="..&#x2F;modules/slider.html">slider</a></li> <li><a href="..&#x2F;modules/slider-base.html">slider-base</a></li> <li><a href="..&#x2F;modules/slider-value-range.html">slider-value-range</a></li> <li><a href="..&#x2F;modules/sortable.html">sortable</a></li> <li><a href="..&#x2F;modules/sortable-scroll.html">sortable-scroll</a></li> <li><a href="..&#x2F;modules/stylesheet.html">stylesheet</a></li> <li><a href="..&#x2F;modules/substitute.html">substitute</a></li> <li><a href="..&#x2F;modules/swf.html">swf</a></li> <li><a href="..&#x2F;modules/swfdetect.html">swfdetect</a></li> <li><a href="..&#x2F;modules/tabview.html">tabview</a></li> <li><a href="..&#x2F;modules/test.html">test</a></li> <li><a href="..&#x2F;modules/test-console.html">test-console</a></li> <li><a href="..&#x2F;modules/text.html">text</a></li> <li><a href="..&#x2F;modules/text-accentfold.html">text-accentfold</a></li> <li><a href="..&#x2F;modules/text-wordbreak.html">text-wordbreak</a></li> <li><a href="..&#x2F;modules/transition.html">transition</a></li> <li><a href="..&#x2F;modules/transition-timer.html">transition-timer</a></li> <li><a href="..&#x2F;modules/uploader.html">uploader</a></li> <li><a href="..&#x2F;modules/uploader-deprecated.html">uploader-deprecated</a></li> <li><a href="..&#x2F;modules/uploader-flash.html">uploader-flash</a></li> <li><a href="..&#x2F;modules/uploader-html5.html">uploader-html5</a></li> <li><a href="..&#x2F;modules/uploader-queue.html">uploader-queue</a></li> <li><a href="..&#x2F;modules/view.html">view</a></li> <li><a href="..&#x2F;modules/view-node-map.html">view-node-map</a></li> <li><a href="..&#x2F;modules/widget.html">widget</a></li> <li><a href="..&#x2F;modules/widget-anim.html">widget-anim</a></li> <li><a href="..&#x2F;modules/widget-autohide.html">widget-autohide</a></li> <li><a href="..&#x2F;modules/widget-base.html">widget-base</a></li> <li><a href="..&#x2F;modules/widget-base-ie.html">widget-base-ie</a></li> <li><a href="..&#x2F;modules/widget-buttons.html">widget-buttons</a></li> <li><a href="..&#x2F;modules/widget-child.html">widget-child</a></li> <li><a href="..&#x2F;modules/widget-htmlparser.html">widget-htmlparser</a></li> <li><a href="..&#x2F;modules/widget-locale.html">widget-locale</a></li> <li><a href="..&#x2F;modules/widget-modality.html">widget-modality</a></li> <li><a href="..&#x2F;modules/widget-parent.html">widget-parent</a></li> <li><a href="..&#x2F;modules/widget-position.html">widget-position</a></li> <li><a href="..&#x2F;modules/widget-position-align.html">widget-position-align</a></li> <li><a href="..&#x2F;modules/widget-position-constrain.html">widget-position-constrain</a></li> <li><a href="..&#x2F;modules/widget-skin.html">widget-skin</a></li> <li><a href="..&#x2F;modules/widget-stack.html">widget-stack</a></li> <li><a href="..&#x2F;modules/widget-stdmod.html">widget-stdmod</a></li> <li><a href="..&#x2F;modules/widget-uievents.html">widget-uievents</a></li> <li><a href="..&#x2F;modules/yql.html">yql</a></li> <li><a href="..&#x2F;modules/yql-nodejs.html">yql-nodejs</a></li> <li><a href="..&#x2F;modules/yql-winjs.html">yql-winjs</a></li> <li><a href="..&#x2F;modules/yui.html">yui</a></li> <li><a href="..&#x2F;modules/yui-base.html">yui-base</a></li> <li><a href="..&#x2F;modules/yui-later.html">yui-later</a></li> <li><a href="..&#x2F;modules/yui-log.html">yui-log</a></li> <li><a href="..&#x2F;modules/yui-throttle.html">yui-throttle</a></li> <li><a href="..&#x2F;modules/yui3.html">yui3</a></li> </ul> </div> </div> </div> </div> </div> <div class="yui3-u-3-4"> <div id="api-options"> Show: <label for="api-show-inherited"> <input type="checkbox" id="api-show-inherited" checked> Inherited </label> <label for="api-show-protected"> <input type="checkbox" id="api-show-protected"> Protected </label> <label for="api-show-private"> <input type="checkbox" id="api-show-private"> Private </label> <label for="api-show-deprecated"> <input type="checkbox" id="api-show-deprecated"> Deprecated </label> </div> <div class="apidocs"> <div id="docs-main"> <div class="content"> <h1>Panel Class</h1> <div class="box meta"> <div class="uses"> Uses <ul class="inline commas"> <li><a href="WidgetAutohide.html">WidgetAutohide</a></li> <li><a href="WidgetButtons.html">WidgetButtons</a></li> <li><a href="WidgetModality.html">WidgetModality</a></li> <li><a href="WidgetPosition.html">WidgetPosition</a></li> <li><a href="WidgetPositionAlign.html">WidgetPositionAlign</a></li> <li><a href="WidgetPositionConstrain.html">WidgetPositionConstrain</a></li> <li><a href="WidgetStack.html">WidgetStack</a></li> <li><a href="WidgetStdMod.html">WidgetStdMod</a></li> </ul> </div> <div class="extends"> Extends <a href="../classes/Widget.html" class="crosslink">Widget</a> </div> <div class="foundat"> Defined in: <a href="..&#x2F;files&#x2F;panel_js_panel.js.html#l14"><code>panel&#x2F;js&#x2F;panel.js:14</code></a> </div> Module: <a href="../modules/panel.html">panel</a> <p>Available since 3.4.0</p> </div> <div class="box intro"> <p>A basic Panel Widget, which can be positioned based on Page XY co-ordinates and is stackable (z-index support). It also provides alignment and centering support and uses a standard module format for it's content, with header, body and footer section support. It can be made modal, and has functionality to hide and focus on different events. The header and footer sections can be modified to allow for button support.</p> </div> <div class="constructor"> <h2>Constructor</h2> <div id="method_Panel" class="method item"> <h3 class="name"><code>Panel</code></h3> <span class="paren">()</span> <div class="meta"> <p> Defined in <a href="..&#x2F;files&#x2F;panel_js_panel.js.html#l14"><code>panel&#x2F;js&#x2F;panel.js:14</code></a> </p> <p>Available since 3.4.0</p> </div> <div class="description"> </div> </div> </div> <div id="classdocs" class="tabview"> <ul class="api-class-tabs"> <li class="api-class-tab index"><a href="#index">Index</a></li> <li class="api-class-tab methods"><a href="#methods">Methods</a></li> <li class="api-class-tab properties"><a href="#properties">Properties</a></li> <li class="api-class-tab attrs"><a href="#attrs">Attributes</a></li> <li class="api-class-tab events"><a href="#events">Events</a></li> </ul> <div> <div id="index" class="api-class-tabpanel index"> <h2 class="off-left">Item Index</h2> <div class="index-section methods"> <h3>Methods</h3> <ul class="index-list methods extends"> <li class="index-item method private inherited"> <a href="#method__addAttrs">_addAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__addLazyAttr">_addLazyAttr</a> </li> <li class="index-item method private inherited"> <a href="#method__addShimResizeHandlers">_addShimResizeHandlers</a> </li> <li class="index-item method private inherited"> <a href="#method__addStdModContent">_addStdModContent</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterAlignChange">_afterAlignChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterAlignOnChange">_afterAlignOnChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterBodyChange">_afterBodyChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterButtonsChange">_afterButtonsChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterChildSelectedChange">_afterChildSelectedChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterConstrainChange">_afterConstrainChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterContentChangeButtons">_afterContentChangeButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterDefaultButtonChange">_afterDefaultButtonChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterFillHeightChange">_afterFillHeightChange</a> </li> <li class="index-item method inherited"> <a href="#method__afterFocusOnChange">_afterFocusOnChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterFooterChange">_afterFooterChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterHeaderChange">_afterHeaderChange</a> </li> <li class="index-item method inherited"> <a href="#method__afterHideOnChange">_afterHideOnChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterHostVisibleChangeAutohide">_afterHostVisibleChangeAutohide</a> </li> <li class="index-item method inherited"> <a href="#method__afterHostVisibleChangeModal">_afterHostVisibleChangeModal</a> </li> <li class="index-item method inherited"> <a href="#method__afterHostZIndexChangeModal">_afterHostZIndexChangeModal</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterShimChange">_afterShimChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterVisibleChangeButtons">_afterVisibleChangeButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterXYChange">_afterXYChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__afterZIndexChange">_afterZIndexChange</a> </li> <li class="index-item method private inherited"> <a href="#method__aggregateAttrs">_aggregateAttrs</a> </li> <li class="index-item method protected inherited"> <a href="#method__applyParsedConfig">_applyParsedConfig</a> </li> <li class="index-item method protected inherited"> <a href="#method__applyParser">_applyParser</a> </li> <li class="index-item method private inherited"> <a href="#method__applyStdModParsedConfig">_applyStdModParsedConfig</a> </li> <li class="index-item method protected inherited"> <a href="#method__attachPosAlignUIHandles">_attachPosAlignUIHandles</a> </li> <li class="index-item method protected inherited"> <a href="#method__attachUIHandlesAutohide">_attachUIHandlesAutohide</a> </li> <li class="index-item method inherited"> <a href="#method__attachUIHandlesModal">_attachUIHandlesModal</a> </li> <li class="index-item method private inherited inherited"> <a href="#method__attrCfgHash">_attrCfgHash</a> </li> <li class="index-item method private inherited"> <a href="#method__baseDestroy">_baseDestroy</a> </li> <li class="index-item method private inherited"> <a href="#method__baseInit">_baseInit</a> </li> <li class="index-item method private inherited"> <a href="#method__bindAttrUI">_bindAttrUI</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindDOM">_bindDOM</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUI">_bindUI</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIAutohide">_bindUIAutohide</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIButtons">_bindUIButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIChild">_bindUIChild</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIModal">_bindUIModal</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIPosAlign">_bindUIPosAlign</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIPosConstrained">_bindUIPosConstrained</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIPosition">_bindUIPosition</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIStack">_bindUIStack</a> </li> <li class="index-item method protected inherited"> <a href="#method__bindUIStdMod">_bindUIStdMod</a> </li> <li class="index-item method inherited"> <a href="#method__blur">_blur</a> </li> <li class="index-item method protected inherited"> <a href="#method__constrain">_constrain</a> </li> <li class="index-item method protected inherited"> <a href="#method__constrainOnXYChange">_constrainOnXYChange</a> </li> <li class="index-item method protected inherited"> <a href="#method__createButton">_createButton</a> </li> <li class="index-item method private inherited"> <a href="#method__createUIEvent">_createUIEvent</a> </li> <li class="index-item method private inherited"> <a href="#method__defAttrChangeFn">_defAttrChangeFn</a> </li> <li class="index-item method protected inherited"> <a href="#method__defaultCB">_defaultCB</a> </li> <li class="index-item method protected inherited"> <a href="#method__defDestroyFn">_defDestroyFn</a> </li> <li class="index-item method protected inherited"> <a href="#method__defInitFn">_defInitFn</a> </li> <li class="index-item method protected inherited"> <a href="#method__defRenderFn">_defRenderFn</a> </li> <li class="index-item method protected inherited"> <a href="#method__destroyBox">_destroyBox</a> </li> <li class="index-item method private inherited"> <a href="#method__destroyHierarchy">_destroyHierarchy</a> </li> <li class="index-item method private inherited"> <a href="#method__destroyShim">_destroyShim</a> </li> <li class="index-item method private inherited"> <a href="#method__destroyUIEvents">_destroyUIEvents</a> </li> <li class="index-item method protected inherited"> <a href="#method__detachPosAlignUIHandles">_detachPosAlignUIHandles</a> </li> <li class="index-item method private inherited"> <a href="#method__detachStackHandles">_detachStackHandles</a> </li> <li class="index-item method protected inherited"> <a href="#method__detachUIHandlesAutohide">_detachUIHandlesAutohide</a> </li> <li class="index-item method inherited"> <a href="#method__detachUIHandlesModal">_detachUIHandlesModal</a> </li> <li class="index-item method private inherited"> <a href="#method__doAlign">_doAlign</a> </li> <li class="index-item method protected inherited"> <a href="#method__eraseStdMod">_eraseStdMod</a> </li> <li class="index-item method private inherited"> <a href="#method__fillHeight">_fillHeight</a> </li> <li class="index-item method private inherited"> <a href="#method__filterAdHocAttrs">_filterAdHocAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__filterAttrCfs">_filterAttrCfs</a> </li> <li class="index-item method private inherited"> <a href="#method__filterUIEvent">_filterUIEvent</a> </li> <li class="index-item method private inherited"> <a href="#method__findStdModSection">_findStdModSection</a> </li> <li class="index-item method private inherited"> <a href="#method__fireAttrChange">_fireAttrChange</a> </li> <li class="index-item method inherited"> <a href="#method__focus">_focus</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttr">_getAttr</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttrCfg">_getAttrCfg</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttrCfgs">_getAttrCfgs</a> </li> <li class="index-item method private inherited inherited"> <a href="#method__getAttrInitVal">_getAttrInitVal</a> </li> <li class="index-item method protected inherited"> <a href="#method__getAttrs">_getAttrs</a> </li> <li class="index-item method protected inherited"> <a href="#method__getButtonContainer">_getButtonContainer</a> </li> <li class="index-item method protected inherited"> <a href="#method__getButtonDefault">_getButtonDefault</a> </li> <li class="index-item method protected inherited"> <a href="#method__getButtonName">_getButtonName</a> </li> <li class="index-item method protected inherited"> <a href="#method__getButtons">_getButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__getClasses">_getClasses</a> </li> <li class="index-item method private inherited"> <a href="#method__getHtmlParser">_getHtmlParser</a> </li> <li class="index-item method inherited"> <a href="#method__getMaskNode">_getMaskNode</a> </li> <li class="index-item method private inherited"> <a href="#method__getNodeToParse">_getNodeToParse</a> </li> <li class="index-item method private inherited"> <a href="#method__getPreciseHeight">_getPreciseHeight</a> </li> <li class="index-item method private inherited inherited"> <a href="#method__getRegion">_getRegion</a> </li> <li class="index-item method private inherited"> <a href="#method__getShimTemplate">_getShimTemplate</a> </li> <li class="index-item method protected inherited"> <a href="#method__getSrcNode">_getSrcNode</a> </li> <li class="index-item method private inherited"> <a href="#method__getStateVal">_getStateVal</a> </li> <li class="index-item method private inherited"> <a href="#method__getStdModContent">_getStdModContent</a> </li> <li class="index-item method protected inherited"> <a href="#method__getStdModTemplate">_getStdModTemplate</a> </li> <li class="index-item method protected inherited"> <a href="#method__getStrings">_getStrings</a> </li> <li class="index-item method private inherited"> <a href="#method__getType">_getType</a> </li> <li class="index-item method protected inherited inherited"> <a href="#method__getUIEventNode">_getUIEventNode</a> </li> <li class="index-item method protected inherited"> <a href="#method__getX">_getX</a> </li> <li class="index-item method protected inherited"> <a href="#method__getY">_getY</a> </li> <li class="index-item method protected inherited"> <a href="#method__guid">_guid</a> </li> <li class="index-item method private inherited"> <a href="#method__initAttrHost">_initAttrHost</a> </li> <li class="index-item method private inherited inherited"> <a href="#method__initAttribute">_initAttribute</a> </li> <li class="index-item method protected inherited"> <a href="#method__initAttrs">_initAttrs</a> </li> <li class="index-item method private inherited inherited"> <a href="#method__initBase">_initBase</a> </li> <li class="index-item method private inherited"> <a href="#method__initHierarchy">_initHierarchy</a> </li> <li class="index-item method private inherited"> <a href="#method__initHierarchyData">_initHierarchyData</a> </li> <li class="index-item method private inherited"> <a href="#method__initUIEvent">_initUIEvent</a> </li> <li class="index-item method private inherited"> <a href="#method__insertStdModSection">_insertStdModSection</a> </li> <li class="index-item method private inherited"> <a href="#method__isLazyAttr">_isLazyAttr</a> </li> <li class="index-item method private inherited"> <a href="#method__isUIEvent">_isUIEvent</a> </li> <li class="index-item method protected inherited"> <a href="#method__mapButton">_mapButton</a> </li> <li class="index-item method protected inherited"> <a href="#method__mapButtons">_mapButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__mapInstance">_mapInstance</a> </li> <li class="index-item method protected inherited"> <a href="#method__mergeButtonConfig">_mergeButtonConfig</a> </li> <li class="index-item method private inherited"> <a href="#method__monitor">_monitor</a> </li> <li class="index-item method private inherited inherited"> <a href="#method__normAttrVals">_normAttrVals</a> </li> <li class="index-item method protected inherited"> <a href="#method__onDocFocus">_onDocFocus</a> </li> <li class="index-item method protected inherited"> <a href="#method__onDocMouseDown">_onDocMouseDown</a> </li> <li class="index-item method protected inherited"> <a href="#method__parseButtons">_parseButtons</a> </li> <li class="index-item method private inherited"> <a href="#method__parseStdModHTML">_parseStdModHTML</a> </li> <li class="index-item method private inherited"> <a href="#method__parseType">_parseType</a> </li> <li class="index-item method protected inherited"> <a href="#method__parseZIndex">_parseZIndex</a> </li> <li class="index-item method private inherited"> <a href="#method__preInitEventCfg">_preInitEventCfg</a> </li> <li class="index-item method protected inherited"> <a href="#method__preventOverlap">_preventOverlap</a> </li> <li class="index-item method protected inherited"> <a href="#method__protectAttrs">_protectAttrs</a> </li> <li class="index-item method protected inherited"> <a href="#method__removeLoadingClassNames">_removeLoadingClassNames</a> </li> <li class="index-item method private inherited"> <a href="#method__renderBox">_renderBox</a> </li> <li class="index-item method protected inherited"> <a href="#method__renderBoxClassNames">_renderBoxClassNames</a> </li> <li class="index-item method private inherited"> <a href="#method__renderShim">_renderShim</a> </li> <li class="index-item method private inherited"> <a href="#method__renderShimDeferred">_renderShimDeferred</a> </li> <li class="index-item method protected inherited"> <a href="#method__renderStdMod">_renderStdMod</a> </li> <li class="index-item method protected inherited"> <a href="#method__renderUI">_renderUI</a> </li> <li class="index-item method protected inherited"> <a href="#method__renderUIModal">_renderUIModal</a> </li> <li class="index-item method protected inherited"> <a href="#method__renderUIPosition">_renderUIPosition</a> </li> <li class="index-item method protected inherited"> <a href="#method__renderUIStack">_renderUIStack</a> </li> <li class="index-item method protected inherited"> <a href="#method__renderUIStdMod">_renderUIStdMod</a> </li> <li class="index-item method inherited"> <a href="#method__repositionMask">_repositionMask</a> </li> <li class="index-item method private inherited"> <a href="#method__resyncMask">_resyncMask</a> </li> <li class="index-item method protected inherited inherited"> <a href="#method__set">_set</a> </li> <li class="index-item method protected inherited"> <a href="#method__setAlignCenter">_setAlignCenter</a> </li> <li class="index-item method protected inherited"> <a href="#method__setAttr">_setAttr</a> </li> <li class="index-item method protected inherited inherited"> <a href="#method__setAttrs">_setAttrs</a> </li> <li class="index-item method private inherited"> <a href="#method__setAttrUI">_setAttrUI</a> </li> <li class="index-item method private inherited"> <a href="#method__setAttrVal">_setAttrVal</a> </li> <li class="index-item method private inherited"> <a href="#method__setBB">_setBB</a> </li> <li class="index-item method private inherited"> <a href="#method__setBox">_setBox</a> </li> <li class="index-item method protected inherited"> <a href="#method__setButtons">_setButtons</a> </li> <li class="index-item method private inherited"> <a href="#method__setCB">_setCB</a> </li> <li class="index-item method protected inherited"> <a href="#method__setConstrain">_setConstrain</a> </li> <li class="index-item method private inherited"> <a href="#method__setStateVal">_setStateVal</a> </li> <li class="index-item method protected inherited"> <a href="#method__setStrings">_setStrings</a> </li> <li class="index-item method protected inherited"> <a href="#method__setX">_setX</a> </li> <li class="index-item method protected inherited"> <a href="#method__setY">_setY</a> </li> <li class="index-item method protected inherited"> <a href="#method__setZIndex">_setZIndex</a> </li> <li class="index-item method protected inherited"> <a href="#method__strSetter">_strSetter</a> </li> <li class="index-item method private inherited"> <a href="#method__syncAttrUI">_syncAttrUI</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUI">_syncUI</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIAutohide">_syncUIAutohide</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIButtons">_syncUIButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIChild">_syncUIChild</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIModal">_syncUIModal</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIPosAlign">_syncUIPosAlign</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIPosition">_syncUIPosition</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIStack">_syncUIStack</a> </li> <li class="index-item method protected inherited"> <a href="#method__syncUIStdMod">_syncUIStdMod</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiInsertButton">_uiInsertButton</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiRemoveButton">_uiRemoveButton</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetAlign">_uiSetAlign</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetButtons">_uiSetButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetChildSelected">_uiSetChildSelected</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetDefaultButton">_uiSetDefaultButton</a> </li> <li class="index-item method private inherited"> <a href="#method__uiSetDim">_uiSetDim</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetDisabled">_uiSetDisabled</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetFillHeight">_uiSetFillHeight</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetFocused">_uiSetFocused</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetHeight">_uiSetHeight</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetHostVisibleAutohide">_uiSetHostVisibleAutohide</a> </li> <li class="index-item method inherited"> <a href="#method__uiSetHostVisibleModal">_uiSetHostVisibleModal</a> </li> <li class="index-item method inherited"> <a href="#method__uiSetHostZIndexModal">_uiSetHostZIndexModal</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetShim">_uiSetShim</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetStdMod">_uiSetStdMod</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetTabIndex">_uiSetTabIndex</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetVisible">_uiSetVisible</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetVisibleButtons">_uiSetVisibleButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetVisiblePosAlign">_uiSetVisiblePosAlign</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetWidth">_uiSetWidth</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetXY">_uiSetXY</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSetZIndex">_uiSetZIndex</a> </li> <li class="index-item method protected inherited"> <a href="#method__uiSizeCB">_uiSizeCB</a> </li> <li class="index-item method protected inherited"> <a href="#method__unbindDOM">_unbindDOM</a> </li> <li class="index-item method protected inherited"> <a href="#method__unbindUI">_unbindUI</a> </li> <li class="index-item method protected inherited"> <a href="#method__unMapButton">_unMapButton</a> </li> <li class="index-item method protected inherited"> <a href="#method__updateContentButtons">_updateContentButtons</a> </li> <li class="index-item method protected inherited"> <a href="#method__updateDefaultButton">_updateDefaultButton</a> </li> <li class="index-item method protected inherited"> <a href="#method__validateFillHeight">_validateFillHeight</a> </li> <li class="index-item method protected inherited"> <a href="#method__validateXY">_validateXY</a> </li> <li class="index-item method protected inherited"> <a href="#method__validTabIndex">_validTabIndex</a> </li> <li class="index-item method inherited"> <a href="#method_addAttr">addAttr</a> </li> <li class="index-item method inherited"> <a href="#method_addAttrs">addAttrs</a> </li> <li class="index-item method inherited"> <a href="#method_addButton">addButton</a> </li> <li class="index-item method inherited"> <a href="#method_addTarget">addTarget</a> </li> <li class="index-item method inherited"> <a href="#method_after">after</a> </li> <li class="index-item method inherited"> <a href="#method_align">align</a> </li> <li class="index-item method inherited"> <a href="#method_ancestor">ancestor</a> </li> <li class="index-item method inherited"> <a href="#method_attrAdded">attrAdded</a> </li> <li class="index-item method inherited"> <a href="#method_before">before</a> </li> <li class="index-item method protected inherited"> <a href="#method_bindUI">bindUI</a> </li> <li class="index-item method inherited"> <a href="#method_blur">blur</a> </li> <li class="index-item method inherited"> <a href="#method_bubble">bubble</a> </li> <li class="index-item method inherited"> <a href="#method_centered">centered</a> </li> <li class="index-item method inherited"> <a href="#method_constrain">constrain</a> </li> <li class="index-item method inherited inherited"> <a href="#method_destroy">destroy</a> </li> <li class="index-item method protected inherited"> <a href="#method_destructor">destructor</a> </li> <li class="index-item method inherited"> <a href="#method_detach">detach</a> </li> <li class="index-item method inherited"> <a href="#method_detachAll">detachAll</a> </li> <li class="index-item method inherited"> <a href="#method_disable">disable</a> </li> <li class="index-item method inherited"> <a href="#method_enable">enable</a> </li> <li class="index-item method private inherited"> <a href="#method_enable or disable constraints listeners">enable or disable constraints listeners</a> </li> <li class="index-item method inherited"> <a href="#method_fillHeight">fillHeight</a> </li> <li class="index-item method inherited"> <a href="#method_fire">fire</a> </li> <li class="index-item method inherited"> <a href="#method_focus">focus</a> </li> <li class="index-item method inherited"> <a href="#method_get">get</a> </li> <li class="index-item method inherited"> <a href="#method_getAttrs">getAttrs</a> </li> <li class="index-item method inherited"> <a href="#method_getButton">getButton</a> </li> <li class="index-item method inherited inherited"> <a href="#method_getClassName">getClassName</a> </li> <li class="index-item method inherited"> <a href="#method_getConstrainedXY">getConstrainedXY</a> </li> <li class="index-item method inherited"> <a href="#method_getDefaultLocale">getDefaultLocale</a> </li> <li class="index-item method inherited"> <a href="#method_getEvent">getEvent</a> </li> <li class="index-item method inherited"> <a href="#method_getSkinName">getSkinName</a> </li> <li class="index-item method inherited"> <a href="#method_getStdModNode">getStdModNode</a> </li> <li class="index-item method deprecated inherited inherited"> <a href="#method_getString">getString</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method deprecated inherited inherited"> <a href="#method_getStrings">getStrings</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method inherited"> <a href="#method_getTargets">getTargets</a> </li> <li class="index-item method inherited"> <a href="#method_hide">hide</a> </li> <li class="index-item method inherited inherited"> <a href="#method_init">init</a> </li> <li class="index-item method protected inherited"> <a href="#method_initializer">initializer</a> </li> <li class="index-item method public inherited"> <a href="#method_isNested">isNested</a> </li> <li class="index-item method inherited"> <a href="#method_isRoot">isRoot</a> </li> <li class="index-item method inherited"> <a href="#method_modifyAttr">modifyAttr</a> </li> <li class="index-item method inherited"> <a href="#method_move">move</a> </li> <li class="index-item method inherited"> <a href="#method_next">next</a> </li> <li class="index-item method inherited"> <a href="#method_on">on</a> </li> <li class="index-item method inherited"> <a href="#method_once">once</a> </li> <li class="index-item method inherited"> <a href="#method_onceAfter">onceAfter</a> </li> <li class="index-item method inherited"> <a href="#method_parseType">parseType</a> </li> <li class="index-item method inherited"> <a href="#method_previous">previous</a> </li> <li class="index-item method inherited"> <a href="#method_publish">publish</a> </li> <li class="index-item method inherited"> <a href="#method_removeAttr">removeAttr</a> </li> <li class="index-item method inherited"> <a href="#method_removeButton">removeButton</a> </li> <li class="index-item method inherited"> <a href="#method_removeTarget">removeTarget</a> </li> <li class="index-item method inherited"> <a href="#method_render">render</a> </li> <li class="index-item method protected inherited"> <a href="#method_renderer">renderer</a> </li> <li class="index-item method protected inherited"> <a href="#method_renderUI">renderUI</a> </li> <li class="index-item method inherited"> <a href="#method_reset">reset</a> </li> <li class="index-item method inherited inherited"> <a href="#method_set">set</a> </li> <li class="index-item method inherited inherited"> <a href="#method_setAttrs">setAttrs</a> </li> <li class="index-item method inherited"> <a href="#method_setStdModContent">setStdModContent</a> </li> <li class="index-item method inherited"> <a href="#method_show">show</a> </li> <li class="index-item method inherited"> <a href="#method_sizeShim">sizeShim</a> </li> <li class="index-item method deprecated inherited"> <a href="#method_subscribe">subscribe</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method protected inherited"> <a href="#method_syncUI">syncUI</a> </li> <li class="index-item method inherited"> <a href="#method_syncXY">syncXY</a> </li> <li class="index-item method inherited inherited"> <a href="#method_toString">toString</a> </li> <li class="index-item method deprecated inherited"> <a href="#method_unsubscribe">unsubscribe</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item method deprecated inherited"> <a href="#method_unsubscribeAll">unsubscribeAll</a> <span class="flag deprecated">deprecated</span> </li> </ul> </div> <div class="index-section properties"> <h3>Properties</h3> <ul class="index-list properties extends"> <li class="index-item property protected inherited"> <a href="#property__allowAdHocAttrs">_allowAdHocAttrs</a> </li> <li class="index-item property protected inherited"> <a href="#property__buttonsHandles">_buttonsHandles</a> </li> <li class="index-item property protected inherited"> <a href="#property__buttonsMap">_buttonsMap</a> </li> <li class="index-item property protected inherited"> <a href="#property__defaultButton">_defaultButton</a> </li> <li class="index-item property protected inherited"> <a href="#property__posAlignUIHandles">_posAlignUIHandles</a> </li> <li class="index-item property private inherited"> <a href="#property__UI_ATTRS">_UI_ATTRS</a> </li> <li class="index-item property inherited"> <a href="#property_BOUNDING_TEMPLATE">BOUNDING_TEMPLATE</a> </li> <li class="index-item property inherited"> <a href="#property_BUTTONS">BUTTONS</a> </li> <li class="index-item property inherited"> <a href="#property_BUTTONS_TEMPLATE">BUTTONS_TEMPLATE</a> </li> <li class="index-item property inherited"> <a href="#property_CONTENT_TEMPLATE">CONTENT_TEMPLATE</a> </li> <li class="index-item property inherited"> <a href="#property_DEF_PARENT_NODE">DEF_PARENT_NODE</a> </li> <li class="index-item property inherited"> <a href="#property_DEF_UNIT">DEF_UNIT</a> </li> <li class="index-item property inherited"> <a href="#property_DEFAULT_BUTTONS_SECTION">DEFAULT_BUTTONS_SECTION</a> </li> <li class="index-item property deprecated inherited"> <a href="#property_name">name</a> <span class="flag deprecated">deprecated</span> </li> <li class="index-item property inherited"> <a href="#property_STACK">STACK</a> </li> <li class="index-item property inherited"> <a href="#property_UI_EVENTS">UI_EVENTS</a> </li> </ul> </div> <div class="index-section attrs"> <h3>Attributes</h3> <ul class="index-list attrs extends"> <li class="index-item attr inherited"> <a href="#attr_align">align</a> </li> <li class="index-item attr inherited"> <a href="#attr_alignOn">alignOn</a> </li> <li class="index-item attr inherited"> <a href="#attr_bodyContent">bodyContent</a> </li> <li class="index-item attr inherited"> <a href="#attr_boundingBox">boundingBox</a> </li> <li class="index-item attr inherited"> <a href="#attr_buttons">buttons</a> </li> <li class="index-item attr inherited"> <a href="#attr_centered">centered</a> </li> <li class="index-item attr inherited"> <a href="#attr_constrain">constrain</a> </li> <li class="index-item attr inherited"> <a href="#attr_contentBox">contentBox</a> </li> <li class="index-item attr inherited"> <a href="#attr_defaultButton">defaultButton</a> </li> <li class="index-item attr inherited"> <a href="#attr_destroyed">destroyed</a> </li> <li class="index-item attr inherited"> <a href="#attr_disabled">disabled</a> </li> <li class="index-item attr inherited"> <a href="#attr_fillHeight">fillHeight</a> </li> <li class="index-item attr inherited"> <a href="#attr_focused">focused</a> </li> <li class="index-item attr inherited"> <a href="#attr_focusOn">focusOn</a> </li> <li class="index-item attr inherited"> <a href="#attr_footerContent">footerContent</a> </li> <li class="index-item attr inherited"> <a href="#attr_headerContent">headerContent</a> </li> <li class="index-item attr inherited"> <a href="#attr_height">height</a> </li> <li class="index-item attr inherited"> <a href="#attr_hideOn">hideOn</a> </li> <li class="index-item attr inherited"> <a href="#attr_id">id</a> </li> <li class="index-item attr inherited"> <a href="#attr_initialized">initialized</a> </li> <li class="index-item attr deprecated inherited"> <a href="#attr_locale">locale</a> </li> <li class="index-item attr inherited"> <a href="#attr_maskNode">maskNode</a> </li> <li class="index-item attr inherited"> <a href="#attr_modal">modal</a> </li> <li class="index-item attr inherited"> <a href="#attr_preventOverlap">preventOverlap</a> </li> <li class="index-item attr inherited"> <a href="#attr_render">render</a> </li> <li class="index-item attr inherited"> <a href="#attr_rendered">rendered</a> </li> <li class="index-item attr inherited"> <a href="#attr_shim">shim</a> </li> <li class="index-item attr inherited"> <a href="#attr_srcNode">srcNode</a> </li> <li class="index-item attr inherited"> <a href="#attr_strings">strings</a> </li> <li class="index-item attr inherited"> <a href="#attr_tabIndex">tabIndex</a> </li> <li class="index-item attr inherited"> <a href="#attr_visible">visible</a> </li> <li class="index-item attr inherited"> <a href="#attr_width">width</a> </li> <li class="index-item attr inherited"> <a href="#attr_x">x</a> </li> <li class="index-item attr inherited"> <a href="#attr_xy">xy</a> </li> <li class="index-item attr inherited"> <a href="#attr_y">y</a> </li> <li class="index-item attr inherited"> <a href="#attr_zIndex">zIndex</a> </li> </ul> </div> <div class="index-section events"> <h3>Events</h3> <ul class="index-list events extends"> <li class="index-item event inherited"> <a href="#event_destroy">destroy</a> </li> <li class="index-item event inherited"> <a href="#event_init">init</a> </li> <li class="index-item event inherited"> <a href="#event_widget:contentUpdate">widget:contentUpdate</a> </li> <li class="index-item event inherited"> <a href="#event_widget:render">widget:render</a> </li> </ul> </div> </div> <div id="methods" class="api-class-tabpanel"> <h2 class="off-left">Methods</h2> <div id="method__addAttrs" class="method item private inherited"> <h3 class="name"><code>_addAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>cfgs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__addAttrs">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l741"><code>attribute&#x2F;js&#x2F;AttributeCore.js:741</code></a> </p> </div> <div class="description"> <p>Implementation behind the public addAttrs method. </p> <p>This method is invoked directly by get if it encounters a scenario in which an attribute's valueFn attempts to obtain the value an attribute in the same group of attributes, which has not yet been added (on demand initialization).</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">cfgs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/configuration pairs.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/value pairs, defining the initial values to apply. Values defined in the cfgs argument will be over-written by values in this argument unless defined as read only.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to delay the intialization of these attributes until the first call to get/set. Individual attributes can over-ride this behavior by defining a lazyAdd configuration property in their configuration. See <a href="#method_addAttr">addAttr</a>.</p> </div> </li> </ul> </div> </div> <div id="method__addLazyAttr" class="method item private inherited"> <h3 class="name"><code>_addLazyAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__addLazyAttr">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l312"><code>attribute&#x2F;js&#x2F;AttributeCore.js:312</code></a> </p> </div> <div class="description"> <p>Finishes initializing an attribute which has been lazily added.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> </ul> </div> </div> <div id="method__addShimResizeHandlers" class="method item private inherited"> <h3 class="name"><code>_addShimResizeHandlers</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__addShimResizeHandlers">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l327"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:327</code></a> </p> </div> <div class="description"> <p>Sets up event listeners to resize the shim when the size of the Widget changes.</p> <p> NOTE: This method is only used for IE6 currently, since IE6 doesn't support a way to resize the shim purely through CSS, when the Widget does not have an explicit width/height set. </p> </div> </div> <div id="method__addStdModContent" class="method item private inherited"> <h3 class="name"><code>_addStdModContent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>node</code> </li> <li class="arg"> <code>children</code> </li> <li class="arg"> <code>where</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__addStdModContent">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l545"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:545</code></a> </p> </div> <div class="description"> <p>Helper method to add content to a StdMod section node. The content is added either before, after or replaces the existing node content based on the value of the <code>where</code> argument.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">node</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The section Node to be updated.</p> </div> </li> <li class="param"> <code class="param-name">children</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="../classes/NodeList.html" class="crosslink">NodeList</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The new content Node, NodeList or String to be added to section Node provided.</p> </div> </li> <li class="param"> <code class="param-name">where</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. Either WidgetStdMod.AFTER, WidgetStdMod.BEFORE or WidgetStdMod.REPLACE. If not provided, the content will replace existing content in the Node.</p> </div> </li> </ul> </div> </div> <div id="method__afterAlignChange" class="method item protected inherited"> <h3 class="name"><code>_afterAlignChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__afterAlignChange">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l616"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:616</code></a> </p> </div> <div class="description"> <p>Handles <code>alignChange</code> events by updating the UI in response to <code>align</code> Attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__afterAlignOnChange" class="method item protected inherited"> <h3 class="name"><code>_afterAlignOnChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__afterAlignOnChange">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l631"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:631</code></a> </p> </div> <div class="description"> <p>Handles <code>alignOnChange</code> events by updating the alignment-syncing event handlers.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__afterBodyChange" class="method item protected inherited"> <h3 class="name"><code>_afterBodyChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__afterBodyChange">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l344"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:344</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the bodyContent attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__afterButtonsChange" class="method item protected inherited"> <h3 class="name"><code>_afterButtonsChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__afterButtonsChange">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1188"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1188</code></a> </p> <p>Available since 3.4.0</p> </div> <div class="description"> <p>Handles this widget's <code>buttonsChange</code> event which fires anytime the <code>buttons</code> attribute is modified.</p> <p><strong>Note:</strong> This method special-cases the <code>buttons</code> modifications caused by <code>addButton()</code> and <code>removeButton()</code>, both of which set the <code>src</code> property on the event facade to "add" and "remove" respectively.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__afterChildSelectedChange" class="method item protected inherited"> <h3 class="name"><code>_afterChildSelectedChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>event</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__afterChildSelectedChange">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l327"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:327</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the <code>selected</code> attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">event</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change.</p> </div> </li> </ul> </div> </div> <div id="method__afterConstrainChange" class="method item protected inherited"> <h3 class="name"><code>_afterConstrainChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method__afterConstrainChange">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l275"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:275</code></a> </p> </div> <div class="description"> <p>After change listener for the "constrain" attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade</p> </div> </li> </ul> </div> </div> <div id="method__afterContentChangeButtons" class="method item protected inherited"> <h3 class="name"><code>_afterContentChangeButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__afterContentChangeButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1237"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1237</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Handles this widget's <code>headerContentChange</code>, <code>bodyContentChange</code>, <code>footerContentChange</code> events by making sure the <code>buttons</code> remain rendered after changes to the content areas.</p> <p>These events are very chatty, so extra caution is taken to avoid doing extra work or getting into an infinite loop.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__afterDefaultButtonChange" class="method item protected inherited"> <h3 class="name"><code>_afterDefaultButtonChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__afterDefaultButtonChange">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1261"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1261</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Handles this widget's <code>defaultButtonChange</code> event by adding the "yui3-button-primary" CSS class to the new <code>defaultButton</code> and removing it from the old default button.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__afterFillHeightChange" class="method item protected inherited"> <h3 class="name"><code>_afterFillHeightChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__afterFillHeightChange">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l372"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:372</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the fillHeight attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__afterFocusOnChange" class="method item inherited"> <h3 class="name"><code>_afterFocusOnChange</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__afterFocusOnChange">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l546"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:546</code></a> </p> </div> <div class="description"> <p>Default function called when focusOn Attribute is changed. Remove existing listeners and create new listeners.</p> </div> </div> <div id="method__afterFooterChange" class="method item protected inherited"> <h3 class="name"><code>_afterFooterChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__afterFooterChange">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l358"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:358</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the footerContent attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__afterHeaderChange" class="method item protected inherited"> <h3 class="name"><code>_afterHeaderChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__afterHeaderChange">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l330"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:330</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the headerContent attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__afterHideOnChange" class="method item inherited"> <h3 class="name"><code>_afterHideOnChange</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#method__afterHideOnChange">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l218"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:218</code></a> </p> </div> <div class="description"> <p>Default function called when hideOn Attribute is changed. Remove existing listeners and create new listeners.</p> </div> </div> <div id="method__afterHostVisibleChangeAutohide" class="method item protected inherited"> <h3 class="name"><code>_afterHostVisibleChangeAutohide</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#method__afterHostVisibleChangeAutohide">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l206"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:206</code></a> </p> </div> <div class="description"> <p>Default function called when the visibility of the widget changes. Determines whether to attach or detach event listeners based on the visibility of the widget.</p> </div> </div> <div id="method__afterHostVisibleChangeModal" class="method item inherited"> <h3 class="name"><code>_afterHostVisibleChangeModal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__afterHostVisibleChangeModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l454"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:454</code></a> </p> </div> <div class="description"> <p>Default function that is called when visibility is changed on the widget.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade of the change</p> </div> </li> </ul> </div> </div> <div id="method__afterHostZIndexChangeModal" class="method item inherited"> <h3 class="name"><code>_afterHostZIndexChangeModal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__afterHostZIndexChangeModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l465"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:465</code></a> </p> </div> <div class="description"> <p>Default function that is called when z-index is changed on the widget.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade of the change</p> </div> </li> </ul> </div> </div> <div id="method__afterShimChange" class="method item protected inherited"> <h3 class="name"><code>_afterShimChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__afterShimChange">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l237"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:237</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the shim attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__afterVisibleChangeButtons" class="method item protected inherited"> <h3 class="name"><code>_afterVisibleChangeButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__afterVisibleChangeButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1275"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1275</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Handles this widget's <code>visibleChange</code> event by focusing the <code>defaultButton</code> if there is one.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__afterXYChange" class="method item protected inherited"> <h3 class="name"><code>_afterXYChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__afterXYChange">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l244"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:244</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the xy attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__afterZIndexChange" class="method item protected inherited"> <h3 class="name"><code>_afterZIndexChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__afterZIndexChange">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l249"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:249</code></a> </p> </div> <div class="description"> <p>Default attribute change listener for the zIndex attribute, responsible for updating the UI, in response to attribute changes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__aggregateAttrs" class="method item private inherited"> <h3 class="name"><code>_aggregateAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>allAttrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__aggregateAttrs">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l427"><code>base&#x2F;js&#x2F;BaseCore.js:427</code></a> </p> </div> <div class="description"> <p>A helper method, used by _initHierarchyData to aggregate attribute configuration across the instances class hierarchy.</p> <p>The method will protect the attribute configuration value to protect the statically defined default value in ATTRS if required (if the value is an object literal, array or the attribute configuration has cloneDefaultValue set to shallow or deep).</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">allAttrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>An array of ATTRS definitions across classes in the hierarchy (subclass first, Base last)</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The aggregate set of ATTRS definitions for the instance </div> </div> </div> <div id="method__applyParsedConfig" class="method item protected inherited"> <h3 class="name"><code>_applyParsedConfig</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__applyParsedConfig">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetHTMLParser.js.html#l83"><code>widget&#x2F;js&#x2F;WidgetHTMLParser.js:83</code></a> </p> </div> <div class="description"> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The merged configuration literal </div> </div> </div> <div id="method__applyParser" class="method item protected inherited"> <h3 class="name"><code>_applyParser</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__applyParser">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetHTMLParser.js.html#l92"><code>widget&#x2F;js&#x2F;WidgetHTMLParser.js:92</code></a> </p> </div> <div class="description"> <p>Utility method used to apply the <code>HTML_PARSER</code> configuration for the instance, to retrieve config data values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>User configuration object (will be populated with values from Node)</p> </div> </li> </ul> </div> </div> <div id="method__applyStdModParsedConfig" class="method item private inherited"> <h3 class="name"><code>_applyStdModParsedConfig</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__applyStdModParsedConfig">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l637"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:637</code></a> </p> </div> <div class="description"> <p>This method is injected before the <em>applyParsedConfig step in the application of HTML</em>PARSER, and sets up the state to identify whether or not we should remove the current DOM content or not, based on whether or not the current content attribute value was extracted from the DOM, or provided by the user configuration</p> </div> </div> <div id="method__attachPosAlignUIHandles" class="method item protected inherited"> <h3 class="name"><code>_attachPosAlignUIHandles</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__attachPosAlignUIHandles">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l458"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:458</code></a> </p> </div> <div class="description"> <p>Attaches the alignment-syncing event handlers.</p> </div> </div> <div id="method__attachUIHandlesAutohide" class="method item protected inherited"> <h3 class="name"><code>_attachUIHandlesAutohide</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#method__attachUIHandlesAutohide">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l143"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:143</code></a> </p> </div> <div class="description"> <p>Iterates through all objects in the hideOn attribute and creates event listeners.</p> </div> </div> <div id="method__attachUIHandlesModal" class="method item inherited"> <h3 class="name"><code>_attachUIHandlesModal</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__attachUIHandlesModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l383"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:383</code></a> </p> </div> <div class="description"> <p>Attaches UI Listeners for "clickoutside" and "focusoutside" on the widget. When these events occur, and the widget is modal, focus is shifted back onto the widget.</p> </div> </div> <div id="method__attrCfgHash" class="method item private inherited"> <h3 class="name"><code>_attrCfgHash</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__attrCfgHash"> BaseCore </a> but overwritten in <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l180"><code>base&#x2F;js&#x2F;Base.js:180</code></a> </p> </div> <div class="description"> <p>Utility method to define the attribute hash used to filter/whitelist property mixes for this class.</p> </div> </div> <div id="method__baseDestroy" class="method item private inherited"> <h3 class="name"><code>_baseDestroy</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__baseDestroy">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l264"><code>base&#x2F;js&#x2F;BaseCore.js:264</code></a> </p> </div> <div class="description"> <p>Internal destroy implementation for BaseCore</p> </div> </div> <div id="method__baseInit" class="method item private inherited"> <h3 class="name"><code>_baseInit</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__baseInit">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l236"><code>base&#x2F;js&#x2F;BaseCore.js:236</code></a> </p> </div> <div class="description"> <p>Internal initialization implementation for BaseCore</p> </div> </div> <div id="method__bindAttrUI" class="method item private inherited"> <h3 class="name"><code>_bindAttrUI</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__bindAttrUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1168"><code>widget&#x2F;js&#x2F;Widget.js:1168</code></a> </p> </div> <div class="description"> <p>Binds after listeners for the list of attributes provided</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__bindDOM" class="method item protected inherited"> <h3 class="name"><code>_bindDOM</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__bindDOM">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l900"><code>widget&#x2F;js&#x2F;Widget.js:900</code></a> </p> </div> <div class="description"> <p>Sets up DOM listeners, on elements rendered by the widget.</p> </div> </div> <div id="method__bindUI" class="method item protected inherited"> <h3 class="name"><code>_bindUI</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__bindUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l881"><code>widget&#x2F;js&#x2F;Widget.js:881</code></a> </p> </div> <div class="description"> <p>Sets up DOM and CustomEvent listeners for the widget.</p> </div> </div> <div id="method__bindUIAutohide" class="method item protected inherited"> <h3 class="name"><code>_bindUIAutohide</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#method__bindUIAutohide">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l95"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:95</code></a> </p> </div> <div class="description"> <p>Binds event listeners to the widget.</p> <p> This method in invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__bindUIButtons" class="method item protected inherited"> <h3 class="name"><code>_bindUIButtons</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__bindUIButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l496"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:496</code></a> </p> <p>Available since 3.4.0</p> </div> <div class="description"> <p>Binds UI event listeners. This method is inserted via AOP, and will execute after <code>bindUI()</code>.</p> </div> </div> <div id="method__bindUIChild" class="method item protected inherited"> <h3 class="name"><code>_bindUIChild</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__bindUIChild">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l356"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:356</code></a> </p> </div> <div class="description"> <p>Binds event listeners responsible for updating the UI state in response to WidgetChild related state changes.</p> <p> This method is invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__bindUIModal" class="method item protected inherited"> <h3 class="name"><code>_bindUIModal</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__bindUIModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l223"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:223</code></a> </p> </div> <div class="description"> <p>Hooks up methods to be executed when the widget's visibility or z-index changes</p> <p> This method in invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__bindUIPosAlign" class="method item protected inherited"> <h3 class="name"><code>_bindUIPosAlign</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__bindUIPosAlign">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l238"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:238</code></a> </p> </div> <div class="description"> <p>Bind event listeners responsible for updating the UI state in response to the widget's position-align related state changes.</p> <p>This method is invoked after <code>bindUI</code> has been invoked for the <code>Widget</code> class using the AOP infrastructure.</p> </div> </div> <div id="method__bindUIPosConstrained" class="method item protected inherited"> <h3 class="name"><code>_bindUIPosConstrained</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method__bindUIPosConstrained">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l259"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:259</code></a> </p> </div> <div class="description"> <p>Binds event listeners responsible for updating the UI state in response to Widget constrained positioning related state changes.</p> <p> This method is invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__bindUIPosition" class="method item protected inherited"> <h3 class="name"><code>_bindUIPosition</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__bindUIPosition">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l143"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:143</code></a> </p> </div> <div class="description"> <p>Binds event listeners responsible for updating the UI state in response to Widget position related state changes.</p> <p> This method in invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__bindUIStack" class="method item protected inherited"> <h3 class="name"><code>_bindUIStack</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__bindUIStack">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l155"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:155</code></a> </p> </div> <div class="description"> <p>Binds event listeners responsible for updating the UI state in response to Widget stack related state changes.</p> <p> This method is invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__bindUIStdMod" class="method item protected inherited"> <h3 class="name"><code>_bindUIStdMod</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__bindUIStdMod">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l310"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:310</code></a> </p> </div> <div class="description"> <p>Binds event listeners responsible for updating the UI state in response to Widget standard module related state changes.</p> <p> This method is invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__blur" class="method item inherited"> <h3 class="name"><code>_blur</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__blur">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l282"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:282</code></a> </p> </div> <div class="description"> <p>Blurs the widget.</p> </div> </div> <div id="method__constrain" class="method item protected inherited"> <h3 class="name"><code>_constrain</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> <li class="arg"> <code>axis</code> </li> <li class="arg"> <code>nodeRegion</code> </li> <li class="arg"> <code>constrainingRegion</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method__constrain">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l164"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:164</code></a> </p> </div> <div class="description"> <p>The method which performs the actual constrain calculations for a given axis ("x" or "y") based on the regions provided.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The value to constrain</p> </div> </li> <li class="param"> <code class="param-name">axis</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The axis to use for constrainment</p> </div> </li> <li class="param"> <code class="param-name">nodeRegion</code> <span class="type">Region</span> <div class="param-description"> <p>The region of the node to constrain</p> </div> </li> <li class="param"> <code class="param-name">constrainingRegion</code> <span class="type">Region</span> <div class="param-description"> <p>The region of the node (or viewport) to constrain to</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span>: The constrained value </div> </div> </div> <div id="method__constrainOnXYChange" class="method item protected inherited"> <h3 class="name"><code>_constrainOnXYChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method__constrainOnXYChange">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l305"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:305</code></a> </p> </div> <div class="description"> <p>The on change listener for the "xy" attribute. Modifies the event facade's newVal property with the constrained XY value.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the attribute change</p> </div> </li> </ul> </div> </div> <div id="method__createButton" class="method item protected inherited"> <h3 class="name"><code>_createButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__createButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l516"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:516</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Returns a button node based on the specified <code>button</code> node or configuration.</p> <p>The button node will either be created via <code>Y.Plugin.Button.createNode()</code>, or when <code>button</code> is specified as a node already, it will by <code>plug()</code>ed with <code>Y.Plugin.Button</code>.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Button node or configuration object.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The button node. </div> </div> </div> <div id="method__createUIEvent" class="method item private inherited"> <h3 class="name"><code>_createUIEvent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__createUIEvent">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetUIEvents.js.html#l73"><code>widget&#x2F;js&#x2F;WidgetUIEvents.js:73</code></a> </p> </div> <div class="description"> <p>Binds a delegated DOM event listener of the specified type to the Widget's outtermost DOM element to facilitate the firing of a Custom Event of the same type for the Widget instance.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>String representing the name of the event</p> </div> </li> </ul> </div> </div> <div id="method__defAttrChangeFn" class="method item private inherited"> <h3 class="name"><code>_defAttrChangeFn</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeEvents.html#method__defAttrChangeFn">AttributeEvents</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeEvents.js.html#l169"><code>attribute&#x2F;js&#x2F;AttributeEvents.js:169</code></a> </p> </div> <div class="description"> <p>Default function for attribute change events.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event object for attribute change events.</p> </div> </li> </ul> </div> </div> <div id="method__defaultCB" class="method item protected inherited"> <h3 class="name"><code>_defaultCB</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__defaultCB">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l778"><code>widget&#x2F;js&#x2F;Widget.js:778</code></a> </p> </div> <div class="description"> <p>Returns the default value for the contentBox attribute. </p> <p>For the Widget class, this will be the srcNode if provided, otherwise null (resulting in a new contentBox node instance being created)</p> </div> </div> <div id="method__defDestroyFn" class="method item protected inherited"> <h3 class="name"><code>_defDestroyFn</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Base.html#method__defDestroyFn">Base</a>: <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l325"><code>base&#x2F;js&#x2F;Base.js:325</code></a> </p> </div> <div class="description"> <p>Default destroy event handler</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object</p> </div> </li> </ul> </div> </div> <div id="method__defInitFn" class="method item protected inherited"> <h3 class="name"><code>_defInitFn</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Base.html#method__defInitFn">Base</a>: <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l313"><code>base&#x2F;js&#x2F;Base.js:313</code></a> </p> </div> <div class="description"> <p>Default init event handler</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object, with a cfg property which refers to the configuration object passed to the constructor.</p> </div> </li> </ul> </div> </div> <div id="method__defRenderFn" class="method item protected inherited"> <h3 class="name"><code>_defRenderFn</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> <li class="arg"> <code>parentNode</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__defRenderFn">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l569"><code>widget&#x2F;js&#x2F;Widget.js:569</code></a> </p> </div> <div class="description"> <p>Default render handler</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The Event object</p> </div> </li> <li class="param"> <code class="param-name">parentNode</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The parent node to render to, if passed in to the <code>render</code> method</p> </div> </li> </ul> </div> </div> <div id="method__destroyBox" class="method item protected inherited"> <h3 class="name"><code>_destroyBox</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__destroyBox">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l475"><code>widget&#x2F;js&#x2F;Widget.js:475</code></a> </p> </div> <div class="description"> <p>Removes and destroys the widgets rendered boundingBox, contentBox, and detaches bound UI events.</p> </div> </div> <div id="method__destroyHierarchy" class="method item private inherited"> <h3 class="name"><code>_destroyHierarchy</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__destroyHierarchy">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l563"><code>base&#x2F;js&#x2F;BaseCore.js:563</code></a> </p> </div> <div class="description"> <p>Destroys the class hierarchy for this instance by invoking the destructor method on the prototype of each class in the hierarchy.</p> </div> </div> <div id="method__destroyShim" class="method item private inherited"> <h3 class="name"><code>_destroyShim</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__destroyShim">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l387"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:387</code></a> </p> </div> <div class="description"> <p>Removes the shim from the DOM, and detaches any related event listeners.</p> </div> </div> <div id="method__destroyUIEvents" class="method item private inherited"> <h3 class="name"><code>_destroyUIEvents</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__destroyUIEvents">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetUIEvents.js.html#l20"><code>widget&#x2F;js&#x2F;WidgetUIEvents.js:20</code></a> </p> </div> <div class="description"> <p>Destructor logic for UI event infrastructure, invoked during Widget destruction.</p> </div> </div> <div id="method__detachPosAlignUIHandles" class="method item protected inherited"> <h3 class="name"><code>_detachPosAlignUIHandles</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__detachPosAlignUIHandles">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l486"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:486</code></a> </p> </div> <div class="description"> <p>Detaches the alignment-syncing event handlers.</p> </div> </div> <div id="method__detachStackHandles" class="method item private inherited"> <h3 class="name"><code>_detachStackHandles</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>String</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__detachStackHandles">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l350"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:350</code></a> </p> </div> <div class="description"> <p>Detaches any handles stored for the provided key</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">String</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>handleKey The key defining the group of handles which should be detached</p> </div> </li> </ul> </div> </div> <div id="method__detachUIHandlesAutohide" class="method item protected inherited"> <h3 class="name"><code>_detachUIHandlesAutohide</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#method__detachUIHandlesAutohide">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l192"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:192</code></a> </p> </div> <div class="description"> <p>Detaches all event listeners created by this extension</p> </div> </div> <div id="method__detachUIHandlesModal" class="method item inherited"> <h3 class="name"><code>_detachUIHandlesModal</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__detachUIHandlesModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l442"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:442</code></a> </p> </div> <div class="description"> <p>Detaches all UI Listeners that were set in _attachUIHandlesModal from the widget.</p> </div> </div> <div id="method__doAlign" class="method item private inherited"> <h3 class="name"><code>_doAlign</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>widgetPoint</code> </li> <li class="arg"> <code>x</code> </li> <li class="arg"> <code>y</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__doAlign">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l502"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:502</code></a> </p> </div> <div class="description"> <p>Helper method, used to align the given point on the widget, with the XY page coordinates provided.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">widgetPoint</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Supported point constant (e.g. WidgetPositionAlign.TL)</p> </div> </li> <li class="param"> <code class="param-name">x</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>X page coordinate to align to.</p> </div> </li> <li class="param"> <code class="param-name">y</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>Y page coordinate to align to.</p> </div> </li> </ul> </div> </div> <div id="method__eraseStdMod" class="method item protected inherited"> <h3 class="name"><code>_eraseStdMod</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__eraseStdMod">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l489"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:489</code></a> </p> </div> <div class="description"> <p>Removes the DOM node for the given section.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section to remove. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> </ul> </div> </div> <div id="method__fillHeight" class="method item private inherited"> <h3 class="name"><code>_fillHeight</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__fillHeight">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l422"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:422</code></a> </p> </div> <div class="description"> <p>Updates the rendered UI, to resize the current section specified by the fillHeight attribute, so that the standard module fills out the Widget height. If a height has not been set on Widget, the section is not resized (height is set to "auto").</p> </div> </div> <div id="method__filterAdHocAttrs" class="method item private inherited"> <h3 class="name"><code>_filterAdHocAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>allAttrs</code> </li> <li class="arg"> <code>userVals</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__filterAdHocAttrs">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l343"><code>base&#x2F;js&#x2F;BaseCore.js:343</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">allAttrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The set of all attribute configurations for this instance. Attributes will be removed from this set, if they belong to the filtered class, so that by the time all classes are processed, allCfgs will be empty.</p> </div> </li> <li class="param"> <code class="param-name">userVals</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The config object passed in by the user, from which adhoc attrs are to be filtered.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The set of adhoc attributes passed in, in the form of an object with attribute name/configuration pairs. </div> </div> </div> <div id="method__filterAttrCfs" class="method item private inherited"> <h3 class="name"><code>_filterAttrCfs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>clazz</code> </li> <li class="arg"> <code>allCfgs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__filterAttrCfs">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l311"><code>base&#x2F;js&#x2F;BaseCore.js:311</code></a> </p> </div> <div class="description"> <p>A helper method used when processing ATTRS across the class hierarchy during initialization. Returns a disposable object with the attributes defined for the provided class, extracted from the set of all attributes passed in.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">clazz</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The class for which the desired attributes are required.</p> </div> </li> <li class="param"> <code class="param-name">allCfgs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The set of all attribute configurations for this instance. Attributes will be removed from this set, if they belong to the filtered class, so that by the time all classes are processed, allCfgs will be empty.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The set of attributes belonging to the class passed in, in the form of an object with attribute name/configuration pairs. </div> </div> </div> <div id="method__filterUIEvent" class="method item private inherited"> <h3 class="name"><code>_filterUIEvent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>evt</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__filterUIEvent">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetUIEvents.js.html#l117"><code>widget&#x2F;js&#x2F;WidgetUIEvents.js:117</code></a> </p> </div> <div class="description"> <p>This method is used to determine if we should fire the UI Event or not. The default implementation makes sure that for nested delegates (nested unrelated widgets), we don't fire the UI event listener more than once at each level.</p> <p>For example, without the additional filter, if you have nested widgets, each widget will have a delegate listener. If you click on the inner widget, the inner delegate listener's filter will match once, but the outer will match twice (based on delegate's design) - once for the inner widget, and once for the outer.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">evt</code> <span class="type"><a href="../classes/DOMEventFacade.html" class="crosslink">DOMEventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: true if it's OK to fire the custom UI event, false if not. </div> </div> </div> <div id="method__findStdModSection" class="method item private inherited"> <h3 class="name"><code>_findStdModSection</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__findStdModSection">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l598"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:598</code></a> </p> </div> <div class="description"> <p>Helper method to to find the rendered node for the given section, if it exists.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section for which the render Node is to be found. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The rendered node for the given section, or null if not found. </div> </div> </div> <div id="method__fireAttrChange" class="method item private inherited"> <h3 class="name"><code>_fireAttrChange</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrName</code> </li> <li class="arg"> <code>subAttrName</code> </li> <li class="arg"> <code>currVal</code> </li> <li class="arg"> <code>newVal</code> </li> <li class="arg"> <code>opts</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeEvents.html#method__fireAttrChange">AttributeEvents</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeEvents.js.html#l115"><code>attribute&#x2F;js&#x2F;AttributeEvents.js:115</code></a> </p> </div> <div class="description"> <p>Utility method to help setup the event payload and fire the attribute change event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The full path of the property being changed, if this is a sub-attribute value being change. Otherwise null.</p> </div> </li> <li class="param"> <code class="param-name">currVal</code> <span class="type">Any</span> <div class="param-description"> <p>The current value of the attribute</p> </div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description"> <p>The new value of the attribute</p> </div> </li> <li class="param"> <code class="param-name">opts</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Any additional event data to mix into the attribute change event's event facade.</p> </div> </li> </ul> </div> </div> <div id="method__focus" class="method item inherited"> <h3 class="name"><code>_focus</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__focus">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l269"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:269</code></a> </p> </div> <div class="description"> <p>Provides mouse and tab focus to the widget's bounding box.</p> </div> </div> <div id="method__getAttr" class="method item protected inherited"> <h3 class="name"><code>_getAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__getAttr">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l468"><code>attribute&#x2F;js&#x2F;AttributeCore.js:468</code></a> </p> </div> <div class="description"> <p>Provides the common implementation for the public get method, allowing Attribute hosts to over-ride either method.</p> <p>See <a href="#method_get">get</a> for argument details.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: The value of the attribute. </div> </div> </div> <div id="method__getAttrCfg" class="method item protected inherited"> <h3 class="name"><code>_getAttrCfg</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeExtras.html#method__getAttrCfg">AttributeExtras</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeExtras.js.html#l112"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:112</code></a> </p> </div> <div class="description"> <p>Returns an object with the configuration properties (and value) for the given attribute. If attrName is not provided, returns the configuration properties for all attributes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. The attribute name. If not provided, the method will return the configuration for all attributes.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The configuration properties for the given attribute, or all attributes. </div> </div> </div> <div id="method__getAttrCfgs" class="method item protected inherited"> <h3 class="name"><code>_getAttrCfgs</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__getAttrCfgs">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l294"><code>base&#x2F;js&#x2F;BaseCore.js:294</code></a> </p> </div> <div class="description"> <p>Returns an aggregated set of attribute configurations, by traversing the class hierarchy.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The hash of attribute configurations, aggregated across classes in the hierarchy This value is cached the first time the method, or _getClasses, is invoked. Subsequent invocations return the cached value. </div> </div> </div> <div id="method__getAttrInitVal" class="method item private inherited"> <h3 class="name"><code>_getAttrInitVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attr</code> </li> <li class="arg"> <code>cfg</code> </li> <li class="arg"> <code>initValues</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Attribute.html#method__getAttrInitVal"> Attribute </a> but overwritten in <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l824"><code>attribute&#x2F;js&#x2F;AttributeCore.js:824</code></a> </p> </div> <div class="description"> <p>Returns the initial value of the given attribute from either the default configuration provided, or the over-ridden value if it exists in the set of initValues provided and the attribute is not read-only.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attr</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name">cfg</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The attribute configuration object</p> </div> </li> <li class="param"> <code class="param-name">initValues</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The object with simple and complex attribute name/value pairs returned from _normAttrVals</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: The initial value of the attribute. </div> </div> </div> <div id="method__getAttrs" class="method item protected inherited"> <h3 class="name"><code>_getAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__getAttrs">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l678"><code>attribute&#x2F;js&#x2F;AttributeCore.js:678</code></a> </p> </div> <div class="description"> <p>Implementation behind the public getAttrs method, to get multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> | boolean</span> <div class="param-description"> <p>Optional. An array of attribute names. If omitted, all attribute values are returned. If set to true, all attributes modified from their initial values are returned.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: An object with attribute name/value pairs. </div> </div> </div> <div id="method__getButtonContainer" class="method item protected inherited"> <h3 class="name"><code>_getButtonContainer</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> <li class="arg"> <code>create</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__getButtonContainer">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l581"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:581</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Returns the buttons container for the specified <code>section</code>, passing a truthy value for <code>create</code> will create the node if it does not already exist.</p> <p><strong>Note:</strong> It is up to the caller to properly insert the returned container node into the content section.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer).</p> </div> </li> <li class="param"> <code class="param-name">create</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether the buttons container should be created if it does not already exist.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The buttons container node for the specified <code>section</code>. </div> </div> </div> <div id="method__getButtonDefault" class="method item protected inherited"> <h3 class="name"><code>_getButtonDefault</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__getButtonDefault">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l616"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:616</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Returns whether or not the specified <code>button</code> is configured to be the default button.</p> <p>When a button node is specified, the button's <code>getData()</code> method will be used to determine if the button is configured to be the default. When a button config object is specified, the <code>isDefault</code> prop will determine whether the button is the default.</p> <p><strong>Note:</strong> <code>&lt;button data-default="true"&gt;&lt;/button&gt;</code> is supported via the <code>button.getData('default')</code> API call.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The button node or configuration object.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: Whether the button is configured to be the default button. </div> </div> </div> <div id="method__getButtonName" class="method item protected inherited"> <h3 class="name"><code>_getButtonName</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__getButtonName">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l645"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:645</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Returns the name of the specified <code>button</code>.</p> <p>When a button node is specified, the button's <code>getData('name')</code> method is preferred, but will fallback to <code>get('name')</code>, and the result will determine the button's name. When a button config object is specified, the <code>name</code> prop will determine the button's name.</p> <p><strong>Note:</strong> <code>&lt;button data-name="foo"&gt;&lt;/button&gt;</code> is supported via the <code>button.getData('name')</code> API call.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The button node or configuration object.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: The name of the button. </div> </div> </div> <div id="method__getButtons" class="method item protected inherited"> <h3 class="name"><code>_getButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>buttons</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__getButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l674"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:674</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Getter for the <code>buttons</code> attribute. A copy of the <code>buttons</code> object is returned so the stored state cannot be modified by the callers of <code>get('buttons')</code>.</p> <p>This will recreate a copy of the <code>buttons</code> object, and each section array (the button nodes are <em>not</em> copied/cloned.)</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">buttons</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The widget's current <code>buttons</code> state.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A copy of the widget's current <code>buttons</code> state. </div> </div> </div> <div id="method__getClasses" class="method item protected inherited"> <h3 class="name"><code>_getClasses</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function[]</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__getClasses">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l278"><code>base&#x2F;js&#x2F;BaseCore.js:278</code></a> </p> </div> <div class="description"> <p>Returns the class hierarchy for this object, with BaseCore being the last class in the array.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function[]</a></span>: An array of classes (constructor functions), making up the class hierarchy for this object. This value is cached the first time the method, or _getAttrCfgs, is invoked. Subsequent invocations return the cached value. </div> </div> </div> <div id="method__getHtmlParser" class="method item private inherited"> <h3 class="name"><code>_getHtmlParser</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__getHtmlParser">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetHTMLParser.js.html#l149"><code>widget&#x2F;js&#x2F;WidgetHTMLParser.js:149</code></a> </p> </div> <div class="description"> <p>Gets the HTML<em>PARSER definition for this instance, by merging HTML</em>PARSER definitions across the class hierarchy.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: HTML_PARSER definition for this instance </div> </div> </div> <div id="method__getMaskNode" class="method item inherited"> <h3 class="name"><code>_getMaskNode</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__getMaskNode">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l292"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:292</code></a> </p> </div> <div class="description"> <p>Returns the Y.Node instance of the maskNode</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The Y.Node instance of the mask, as returned from WidgetModal.<em>GET</em>MASK </div> </div> </div> <div id="method__getNodeToParse" class="method item private inherited"> <h3 class="name"><code>_getNodeToParse</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__getNodeToParse">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetHTMLParser.js.html#l134"><code>widget&#x2F;js&#x2F;WidgetHTMLParser.js:134</code></a> </p> </div> <div class="description"> <p>Determines whether we have a node reference which we should try and parse.</p> <p>The current implementation does not parse nodes generated from CONTENT_TEMPLATE, only explicitly set srcNode, or contentBox attributes.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The node reference to apply HTML_PARSER to. </div> </div> </div> <div id="method__getPreciseHeight" class="method item private inherited"> <h3 class="name"><code>_getPreciseHeight</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>node</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__getPreciseHeight">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l575"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:575</code></a> </p> </div> <div class="description"> <p>Helper method to obtain the precise height of the node provided, including padding and border. The height could be a sub-pixel value for certain browsers, such as Firefox 3.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">node</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The node for which the precise height is required.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span>: The height of the Node including borders and padding, possibly a float. </div> </div> </div> <div id="method__getRegion" class="method item private inherited"> <h3 class="name"><code>_getRegion</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code class="optional">[node]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method__getRegion"> WidgetPositionConstrain </a> but overwritten in <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l590"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:590</code></a> </p> </div> <div class="description"> <p>Returns the region of the passed-in <code>Node</code>, or the viewport region if calling with passing in a <code>Node</code>.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name optional">[node]</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The node to get the region of.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The node's region. </div> </div> </div> <div id="method__getShimTemplate" class="method item private inherited"> <h3 class="name"><code>_getShimTemplate</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__getShimTemplate">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l421"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:421</code></a> </p> </div> <div class="description"> <p>Creates a cloned shim node, using the SHIM_TEMPLATE html template, for use on a new instance.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: node A new shim Node instance. </div> </div> </div> <div id="method__getSrcNode" class="method item protected inherited"> <h3 class="name"><code>_getSrcNode</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__getSrcNode">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetHTMLParser.js.html#l74"><code>widget&#x2F;js&#x2F;WidgetHTMLParser.js:74</code></a> </p> </div> <div class="description"> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The Node to apply HTML_PARSER to </div> </div> </div> <div id="method__getStateVal" class="method item private inherited"> <h3 class="name"><code>_getStateVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__getStateVal">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l522"><code>attribute&#x2F;js&#x2F;AttributeCore.js:522</code></a> </p> </div> <div class="description"> <p>Gets the stored value for the attribute, from either the internal state object, or the state proxy if it exits</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: The stored value of the attribute </div> </div> </div> <div id="method__getStdModContent" class="method item private inherited"> <h3 class="name"><code>_getStdModContent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__getStdModContent">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l656"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:656</code></a> </p> </div> <div class="description"> <p>Retrieves the child nodes (content) of a standard module section</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The standard module section whose child nodes are to be retrieved. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The child node collection of the standard module section. </div> </div> </div> <div id="method__getStdModTemplate" class="method item protected inherited"> <h3 class="name"><code>_getStdModTemplate</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__getStdModTemplate">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l532"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:532</code></a> </p> </div> <div class="description"> <p>Gets a new Node reference for the given standard module section, by cloning the stored template node.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section to create a new node for. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The new Node instance for the section </div> </div> </div> <div id="method__getStrings" class="method item protected inherited"> <h3 class="name"><code>_getStrings</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>locale</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__getStrings">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetLocale.js.html#l53"><code>widget&#x2F;js&#x2F;WidgetLocale.js:53</code></a> </p> </div> <div class="description"> <p>Returns the strings key/value hash for a paricular locale, without locale lookup applied.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">locale</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__getType" class="method item private inherited"> <h3 class="name"><code>_getType</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method__getType">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l36"><code>event-custom&#x2F;js&#x2F;event-target.js:36</code></a> </p> </div> <div class="description"> <p>If the instance has a prefix attribute and the event type is not prefixed, the instance prefix is applied to the supplied type.</p> </div> </div> <div id="method__getUIEventNode" class="method item protected inherited"> <h3 class="name"><code>_getUIEventNode</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__getUIEventNode"> Widget </a> but overwritten in <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l167"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:167</code></a> </p> </div> <div class="description"> <p>Returns the node on which to bind delegate listeners.</p> <p>Override of Widget's implementation of _getUIEventNode() to ensure that all event listeners are bound to the Widget's topmost DOM element. This ensures that the firing of each type of Widget UI event (click, mousedown, etc.) is facilitated by a single, top-level, delegated DOM event listener.</p> </div> </div> <div id="method__getX" class="method item protected inherited"> <h3 class="name"><code>_getX</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__getX">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l220"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:220</code></a> </p> </div> <div class="description"> <p>Default getter for the X attribute. The value is retrieved from the XY attribute, which is the sole store for the XY state.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span>: The X page co-ordinate value </div> </div> </div> <div id="method__getY" class="method item protected inherited"> <h3 class="name"><code>_getY</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__getY">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l232"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:232</code></a> </p> </div> <div class="description"> <p>Default getter for the Y attribute. The value is retrieved from the XY attribute, which is the sole store for the XY state.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span>: The Y page co-ordinate value </div> </div> </div> <div id="method__guid" class="method item protected inherited"> <h3 class="name"><code>_guid</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__guid">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1151"><code>widget&#x2F;js&#x2F;Widget.js:1151</code></a> </p> </div> <div class="description"> </div> </div> <div id="method__initAttrHost" class="method item private inherited"> <h3 class="name"><code>_initAttrHost</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__initAttrHost">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l109"><code>attribute&#x2F;js&#x2F;AttributeCore.js:109</code></a> </p> </div> <div class="description"> <p>Constructor logic for attributes. Initializes the host state, and sets up the inital attributes passed to the constructor.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to add attributes lazily (passed through to <a href="#method_addAttrs">addAttrs</a>).</p> </div> </li> </ul> </div> </div> <div id="method__initAttribute" class="method item private inherited"> <h3 class="name"><code>_initAttribute</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__initAttribute"> BaseCore </a> but overwritten in <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l169"><code>base&#x2F;js&#x2F;Base.js:169</code></a> </p> </div> <div class="description"> <p>Initializes Attribute</p> </div> </div> <div id="method__initAttrs" class="method item protected inherited"> <h3 class="name"><code>_initAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__initAttrs">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l863"><code>attribute&#x2F;js&#x2F;AttributeCore.js:863</code></a> </p> </div> <div class="description"> <p>Utility method to set up initial attributes defined during construction, either through the constructor.ATTRS property, or explicitly passed in.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The attributes to add during construction (passed through to <a href="#method_addAttrs">addAttrs</a>). These can also be defined on the constructor being augmented with Attribute by defining the ATTRS property on the constructor.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The initial attribute values to apply (passed through to <a href="#method_addAttrs">addAttrs</a>). These are not merged/cloned. The caller is responsible for isolating user provided values if required.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to add attributes lazily (passed through to <a href="#method_addAttrs">addAttrs</a>).</p> </div> </li> </ul> </div> </div> <div id="method__initBase" class="method item private inherited"> <h3 class="name"><code>_initBase</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__initBase"> BaseCore </a> but overwritten in <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l154"><code>base&#x2F;js&#x2F;Base.js:154</code></a> </p> </div> <div class="description"> <p>Internal construction logic for Base.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The constructor configuration object</p> </div> </li> </ul> </div> </div> <div id="method__initHierarchy" class="method item private inherited"> <h3 class="name"><code>_initHierarchy</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>userVals</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__initHierarchy">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l505"><code>base&#x2F;js&#x2F;BaseCore.js:505</code></a> </p> </div> <div class="description"> <p>Initializes the class hierarchy for the instance, which includes initializing attributes for each class defined in the class's static <a href="#property_BaseCore.ATTRS">ATTRS</a> property and invoking the initializer method on the prototype of each class in the hierarchy.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">userVals</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Object with configuration property name/value pairs</p> </div> </li> </ul> </div> </div> <div id="method__initHierarchyData" class="method item private inherited"> <h3 class="name"><code>_initHierarchyData</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method__initHierarchyData">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l373"><code>base&#x2F;js&#x2F;BaseCore.js:373</code></a> </p> </div> <div class="description"> <p>A helper method used by _getClasses and _getAttrCfgs, which determines both the array of classes and aggregate set of attribute configurations across the class hierarchy for the instance.</p> </div> </div> <div id="method__initUIEvent" class="method item private inherited"> <h3 class="name"><code>_initUIEvent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__initUIEvent">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetUIEvents.js.html#l176"><code>widget&#x2F;js&#x2F;WidgetUIEvents.js:176</code></a> </p> </div> <div class="description"> <p>Sets up infrastructure required to fire a UI event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>String representing the name of the event</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: </div> </div> </div> <div id="method__insertStdModSection" class="method item private inherited"> <h3 class="name"><code>_insertStdModSection</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>contentBox</code> </li> <li class="arg"> <code>section</code> </li> <li class="arg"> <code>sectionNode</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__insertStdModSection">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l504"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:504</code></a> </p> </div> <div class="description"> <p>Helper method to insert the Node for the given section into the correct location in the contentBox.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">contentBox</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>A reference to the Widgets content box.</p> </div> </li> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section to create/render. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> <li class="param"> <code class="param-name">sectionNode</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The Node for the section.</p> </div> </li> </ul> </div> </div> <div id="method__isLazyAttr" class="method item private inherited"> <h3 class="name"><code>_isLazyAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__isLazyAttr">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l299"><code>attribute&#x2F;js&#x2F;AttributeCore.js:299</code></a> </p> </div> <div class="description"> <p>Checks whether or not the attribute is one which has been added lazily and still requires initialization.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: true if it's a lazily added attribute, false otherwise. </div> </div> </div> <div id="method__isUIEvent" class="method item private inherited"> <h3 class="name"><code>_isUIEvent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__isUIEvent">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetUIEvents.js.html#l143"><code>widget&#x2F;js&#x2F;WidgetUIEvents.js:143</code></a> </p> </div> <div class="description"> <p>Determines if the specified event is a UI event.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>String representing the name of the event</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: Event Returns the name of the UI Event, otherwise undefined. </div> </div> </div> <div id="method__mapButton" class="method item protected inherited"> <h3 class="name"><code>_mapButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__mapButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l700"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:700</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Adds the specified <code>button</code> to the buttons map (both name -> button and section:name -> button), and sets the button as the default if it is configured as the default button.</p> <p><strong>Note:</strong> If two or more buttons are configured with the same <code>name</code> and/or configured to be the default button, the last one wins.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The button node to map.</p> </div> </li> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer).</p> </div> </li> </ul> </div> </div> <div id="method__mapButtons" class="method item protected inherited"> <h3 class="name"><code>_mapButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>buttons</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__mapButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l730"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:730</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Adds the specified <code>buttons</code> to the buttons map (both name -> button and section:name -> button), and set the a button as the default if one is configured as the default button.</p> <p><strong>Note:</strong> This will clear all previous button mappings and null-out any previous default button! If two or more buttons are configured with the same <code>name</code> and/or configured to be the default button, the last one wins.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">buttons</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node[]</a></span> <div class="param-description"> <p>The button nodes to map.</p> </div> </li> </ul> </div> </div> <div id="method__mapInstance" class="method item protected inherited"> <h3 class="name"><code>_mapInstance</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>The</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__mapInstance">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l414"><code>widget&#x2F;js&#x2F;Widget.js:414</code></a> </p> </div> <div class="description"> <p>Utility method used to add an entry to the boundingBox id to instance map. </p> <p>This method can be used to populate the instance with lazily created boundingBox Node references.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">The</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>boundingBox id</p> </div> </li> </ul> </div> </div> <div id="method__mergeButtonConfig" class="method item protected inherited"> <h3 class="name"><code>_mergeButtonConfig</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__mergeButtonConfig">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l757"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:757</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Returns a copy of the specified <code>config</code> object merged with any defaults provided by a <code>srcNode</code> and/or a predefined configuration for a button with the same <code>name</code> on the <code>BUTTONS</code> property.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Button configuration object, or string name.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A copy of the button configuration object merged with any defaults. </div> </div> </div> <div id="method__monitor" class="method item private inherited"> <h3 class="name"><code>_monitor</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>what</code> </li> <li class="arg"> <code>eventType</code> </li> <li class="arg"> <code>o</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method__monitor">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l604"><code>event-custom&#x2F;js&#x2F;event-target.js:604</code></a> </p> </div> <div class="description"> <p>This is the entry point for the event monitoring system. You can monitor 'attach', 'detach', 'fire', and 'publish'. When configured, these events generate an event. click -> click<em>attach, click</em>detach, click_publish -- these can be subscribed to like other events to monitor the event system. Inividual published events can have monitoring turned on or off (publish can't be turned off before it it published) by setting the events 'monitor' config.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">what</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>'attach', 'detach', 'fire', or 'publish'</p> </div> </li> <li class="param"> <code class="param-name">eventType</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> <div class="param-description"> <p>The prefixed name of the event being monitored, or the CustomEvent object.</p> </div> </li> <li class="param"> <code class="param-name">o</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Information about the event interaction, such as fire() args, subscription category, publish config</p> </div> </li> </ul> </div> </div> <div id="method__normAttrVals" class="method item private inherited"> <h3 class="name"><code>_normAttrVals</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>valueHash</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Attribute.html#method__normAttrVals"> Attribute </a> but overwritten in <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l809"><code>attribute&#x2F;js&#x2F;AttributeCore.js:809</code></a> </p> </div> <div class="description"> <p>Utility method to normalize attribute values. The base implementation simply merges the hash to protect the original.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">valueHash</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/value pairs</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: </div> </div> </div> <div id="method__onDocFocus" class="method item protected inherited"> <h3 class="name"><code>_onDocFocus</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>evt</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__onDocFocus">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1079"><code>widget&#x2F;js&#x2F;Widget.js:1079</code></a> </p> </div> <div class="description"> <p>DOM focus event handler, used to sync the state of the Widget with the DOM</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">evt</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the DOM focus event</p> </div> </li> </ul> </div> </div> <div id="method__onDocMouseDown" class="method item protected inherited"> <h3 class="name"><code>_onDocMouseDown</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>evt</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__onDocMouseDown">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1066"><code>widget&#x2F;js&#x2F;Widget.js:1066</code></a> </p> </div> <div class="description"> <p>"mousedown" event handler for the owner document of the widget's bounding box.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">evt</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The event facade for the DOM focus event</p> </div> </li> </ul> </div> </div> <div id="method__parseButtons" class="method item protected inherited"> <h3 class="name"><code>_parseButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>srcNode</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Null | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__parseButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l806"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:806</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p><code>HTML_PARSER</code> implementation for the <code>buttons</code> attribute.</p> <p><strong>Note:</strong> To determine a button node's name its <code>data-name</code> and <code>name</code> attributes are examined. Whether the button should be the default is determined by its <code>data-default</code> attribute.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">srcNode</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>This widget's srcNode to search for buttons.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Null | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: <code>buttons</code> Config object parsed from this widget's DOM. </div> </div> </div> <div id="method__parseStdModHTML" class="method item private inherited"> <h3 class="name"><code>_parseStdModHTML</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__parseStdModHTML">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l611"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:611</code></a> </p> </div> <div class="description"> <p>Utility method, used by WidgetStdMods HTML_PARSER implementation to extract data for each section from markup.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: Inner HTML string with the contents of the section </div> </div> </div> <div id="method__parseType" class="method item private inherited"> <h3 class="name"><code>_parseType</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method__parseType">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l52"><code>event-custom&#x2F;js&#x2F;event-target.js:52</code></a> </p> </div> <div class="description"> <p>Returns an array with the detach key (if provided), and the prefixed event name from _getType Y.on('detachcategory| menu:click', fn)</p> </div> </div> <div id="method__parseZIndex" class="method item protected inherited"> <h3 class="name"><code>_parseZIndex</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>srcNode</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Mixed</span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__parseZIndex">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l183"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:183</code></a> </p> </div> <div class="description"> <p>Parses a <code>zIndex</code> attribute value from this widget's <code>srcNode</code>.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">srcNode</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The node to parse a <code>zIndex</code> value from.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Mixed</span>: The parsed <code>zIndex</code> value. </div> </div> </div> <div id="method__preInitEventCfg" class="method item private inherited"> <h3 class="name"><code>_preInitEventCfg</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Base.html#method__preInitEventCfg">Base</a>: <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l233"><code>base&#x2F;js&#x2F;Base.js:233</code></a> </p> </div> <div class="description"> <p>Handles the special on, after and target properties which allow the user to easily configure on and after listeners as well as bubble targets during construction, prior to init.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The user configuration object</p> </div> </li> </ul> </div> </div> <div id="method__preventOverlap" class="method item protected inherited"> <h3 class="name"><code>_preventOverlap</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> <li class="arg"> <code>axis</code> </li> <li class="arg"> <code>nodeRegion</code> </li> <li class="arg"> <code>constrainingRegion</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method__preventOverlap">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l208"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:208</code></a> </p> </div> <div class="description"> <p>The method which performs the preventOverlap calculations for a given axis ("x" or "y") based on the value and regions provided.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The value being constrain</p> </div> </li> <li class="param"> <code class="param-name">axis</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The axis to being constrained</p> </div> </li> <li class="param"> <code class="param-name">nodeRegion</code> <span class="type">Region</span> <div class="param-description"> <p>The region of the node being constrained</p> </div> </li> <li class="param"> <code class="param-name">constrainingRegion</code> <span class="type">Region</span> <div class="param-description"> <p>The region of the node (or viewport) we need to constrain to</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span>: The constrained value </div> </div> </div> <div id="method__protectAttrs" class="method item protected inherited"> <h3 class="name"><code>_protectAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__protectAttrs">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l787"><code>attribute&#x2F;js&#x2F;AttributeCore.js:787</code></a> </p> </div> <div class="description"> <p>Utility method to protect an attribute configuration hash, by merging the entire object and the individual attr config objects.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>A hash of attribute to configuration object pairs.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A protected version of the attrs argument. </div> </div> </div> <div id="method__removeLoadingClassNames" class="method item protected inherited"> <h3 class="name"><code>_removeLoadingClassNames</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__removeLoadingClassNames">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l860"><code>widget&#x2F;js&#x2F;Widget.js:860</code></a> </p> </div> <div class="description"> <p>Removes class names representative of the widget's loading state from the boundingBox.</p> </div> </div> <div id="method__renderBox" class="method item private inherited"> <h3 class="name"><code>_renderBox</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>parentNode</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__renderBox">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l708"><code>widget&#x2F;js&#x2F;Widget.js:708</code></a> </p> </div> <div class="description"> <p>Helper method to collect the boundingBox and contentBox and append to the provided parentNode, if not already a child. The owner document of the boundingBox, or the owner document of the contentBox will be used as the document into which the Widget is rendered if a parentNode is node is not provided. If both the boundingBox and the contentBox are not currently in the document, and no parentNode is provided, the widget will be rendered to the current document's body.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">parentNode</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The parentNode to render the widget to. If not provided, and both the boundingBox and the contentBox are not currently in the document, the widget will be rendered to the current document's body.</p> </div> </li> </ul> </div> </div> <div id="method__renderBoxClassNames" class="method item protected inherited"> <h3 class="name"><code>_renderBoxClassNames</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__renderBoxClassNames">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l836"><code>widget&#x2F;js&#x2F;Widget.js:836</code></a> </p> </div> <div class="description"> <p>Applies standard class names to the boundingBox and contentBox</p> </div> </div> <div id="method__renderShim" class="method item private inherited"> <h3 class="name"><code>_renderShim</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__renderShim">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l368"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:368</code></a> </p> </div> <div class="description"> <p>Creates the shim element and adds it to the DOM</p> </div> </div> <div id="method__renderShimDeferred" class="method item private inherited"> <h3 class="name"><code>_renderShimDeferred</code></h3> <span class="paren">()</span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__renderShimDeferred">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l301"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:301</code></a> </p> </div> <div class="description"> <p>Sets up change handlers for the visible attribute, to defer shim creation/rendering until the Widget is made visible.</p> </div> </div> <div id="method__renderStdMod" class="method item protected inherited"> <h3 class="name"><code>_renderStdMod</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__renderStdMod">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l466"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:466</code></a> </p> </div> <div class="description"> <p>Creates the DOM node for the given section, and inserts it into the correct location in the contentBox.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section to create/render. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: A reference to the added section node </div> </div> </div> <div id="method__renderUI" class="method item protected inherited"> <h3 class="name"><code>_renderUI</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__renderUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l825"><code>widget&#x2F;js&#x2F;Widget.js:825</code></a> </p> </div> <div class="description"> <p>Initializes the UI state for the Widget's bounding/content boxes.</p> </div> </div> <div id="method__renderUIModal" class="method item protected inherited"> <h3 class="name"><code>_renderUIModal</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__renderUIModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l198"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:198</code></a> </p> </div> <div class="description"> <p>Adds modal class to the bounding box of the widget</p> <p> This method in invoked after renderUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__renderUIPosition" class="method item protected inherited"> <h3 class="name"><code>_renderUIPosition</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__renderUIPosition">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l113"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:113</code></a> </p> </div> <div class="description"> <p>Creates/Initializes the DOM to support xy page positioning.</p> <p> This method in invoked after renderUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__renderUIStack" class="method item protected inherited"> <h3 class="name"><code>_renderUIStack</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__renderUIStack">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l170"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:170</code></a> </p> </div> <div class="description"> <p>Creates/Initializes the DOM to support stackability.</p> <p> This method in invoked after renderUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__renderUIStdMod" class="method item protected inherited"> <h3 class="name"><code>_renderUIStdMod</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__renderUIStdMod">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l284"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:284</code></a> </p> </div> <div class="description"> <p>Creates/Initializes the DOM for standard module support.</p> <p> This method is invoked after renderUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__repositionMask" class="method item inherited"> <h3 class="name"><code>_repositionMask</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>nextElem</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__repositionMask">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l489"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:489</code></a> </p> </div> <div class="description"> <p>Repositions the mask in the DOM for nested modality cases.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">nextElem</code> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span> <div class="param-description"> <p>The Y.Widget instance that will be visible in the stack once the current widget is closed.</p> </div> </li> </ul> </div> </div> <div id="method__resyncMask" class="method item private inherited"> <h3 class="name"><code>_resyncMask</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>nextElem</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__resyncMask">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l523"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:523</code></a> </p> </div> <div class="description"> <p>Resyncs the mask in the viewport for browsers that don't support fixed positioning</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">nextElem</code> <span class="type">Y.Widget</span> <div class="param-description"> <p>The Y.Widget instance that will be visible in the stack once the current widget is closed.</p> </div> </li> </ul> </div> </div> <div id="method__set" class="method item protected inherited"> <h3 class="name"><code>_set</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeEvents.html#method__set"> AttributeEvents </a> but overwritten in <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l346"><code>attribute&#x2F;js&#x2F;AttributeCore.js:346</code></a> </p> </div> <div class="description"> <p>Allows setting of readOnly/writeOnce attributes. See <a href="#method_set">set</a> for argument details.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">val</code> <span class="type">Any</span> <div class="param-description"> <p>The value to set the attribute to.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method__setAlignCenter" class="method item protected inherited"> <h3 class="name"><code>_setAlignCenter</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__setAlignCenter">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l327"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:327</code></a> </p> </div> <div class="description"> <p>Default setter for <code>center</code> Attribute changes. Sets up the appropriate value, and passes it through the to the align attribute.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The Attribute value being set.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span>: the value passed in. </div> </div> </div> <div id="method__setAttr" class="method item protected inherited"> <h3 class="name"><code>_setAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>value</code> </li> <li class="arg"> <code>opts</code> </li> <li class="arg"> <code>force</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__setAttr">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l361"><code>attribute&#x2F;js&#x2F;AttributeCore.js:361</code></a> </p> </div> <div class="description"> <p>Provides the common implementation for the public set and protected _set methods.</p> <p>See <a href="#method_set">set</a> for argument details.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">value</code> <span class="type">Any</span> <div class="param-description"> <p>The value to set the attribute to.</p> </div> </li> <li class="param"> <code class="param-name">opts</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>(Optional) Optional event data to be mixed into the event facade passed to subscribers of the attribute's change event. This is currently a hack. There's no real need for the AttributeCore implementation to support this parameter, but breaking it out into AttributeEvents, results in additional function hops for the critical path.</p> </div> </li> <li class="param"> <code class="param-name">force</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>If true, allows the caller to set values for readOnly or writeOnce attributes which have already been set.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method__setAttrs" class="method item protected inherited"> <h3 class="name"><code>_setAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeEvents.html#method__setAttrs"> AttributeEvents </a> but overwritten in <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l647"><code>attribute&#x2F;js&#x2F;AttributeCore.js:647</code></a> </p> </div> <div class="description"> <p>Implementation behind the public setAttrs method, to set multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attributes name/value pairs.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method__setAttrUI" class="method item private inherited"> <h3 class="name"><code>_setAttrUI</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>e</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__setAttrUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1199"><code>widget&#x2F;js&#x2F;Widget.js:1199</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__setAttrVal" class="method item private inherited"> <h3 class="name"><code>_setAttrVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrName</code> </li> <li class="arg"> <code>subAttrName</code> </li> <li class="arg"> <code>prevVal</code> </li> <li class="arg"> <code>newVal</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Booolean</span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__setAttrVal">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l554"><code>attribute&#x2F;js&#x2F;AttributeCore.js:554</code></a> </p> </div> <div class="description"> <p>Updates the stored value of the attribute in the privately held State object, if validation and setter passes.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The attribute name.</p> </div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The sub-attribute name, if setting a sub-attribute property ("x.y.z").</p> </div> </li> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description"> <p>The currently stored value of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description"> <p>The value which is going to be stored.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Booolean</span>: true if the new attribute value was stored, false if not. </div> </div> </div> <div id="method__setBB" class="method item private inherited"> <h3 class="name"><code>_setBB</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>Node&#x2F;String</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__setBB">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l754"><code>widget&#x2F;js&#x2F;Widget.js:754</code></a> </p> </div> <div class="description"> <p>Setter for the boundingBox attribute</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">Node&#x2F;String</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> Node </div> </div> </div> <div id="method__setBox" class="method item private inherited"> <h3 class="name"><code>_setBox</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>id</code> </li> <li class="arg"> <code>node</code> </li> <li class="arg"> <code>template</code> </li> <li class="arg"> <code>true</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__setBox">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l791"><code>widget&#x2F;js&#x2F;Widget.js:791</code></a> </p> </div> <div class="description"> <p>Helper method to set the bounding/content box, or create it from the provided template if not found.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">id</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The node's id attribute</p> </div> </li> <li class="param"> <code class="param-name">node</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The node reference</p> </div> </li> <li class="param"> <code class="param-name">template</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>HTML string template for the node</p> </div> </li> <li class="param"> <code class="param-name">true</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>if this is the boundingBox, false if it's the contentBox</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The node </div> </div> </div> <div id="method__setButtons" class="method item protected inherited"> <h3 class="name"><code>_setButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__setButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l847"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:847</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Setter for the <code>buttons</code> attribute. This processes the specified <code>config</code> and returns a new <code>buttons</code> object which is stored as the new state; leaving the original, specified <code>config</code> unmodified.</p> <p>The button nodes will either be created via <code>Y.Plugin.Button.createNode()</code>, or when a button is already a Node already, it will by <code>plug()</code>ed with <code>Y.Plugin.Button</code>.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The <code>buttons</code> configuration to process.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: The processed <code>buttons</code> object which represents the new state. </div> </div> </div> <div id="method__setCB" class="method item private inherited"> <h3 class="name"><code>_setCB</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>node</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__setCB">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l766"><code>widget&#x2F;js&#x2F;Widget.js:766</code></a> </p> </div> <div class="description"> <p>Setter for the contentBox attribute</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">node</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> Node </div> </div> </div> <div id="method__setConstrain" class="method item protected inherited"> <h3 class="name"><code>_setConstrain</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method__setConstrain">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l153"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:153</code></a> </p> </div> <div class="description"> <p>The setter implementation for the "constrain" attribute.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | boolean</span> <div class="param-description"> <p>The attribute value</p> </div> </li> </ul> </div> </div> <div id="method__setStateVal" class="method item private inherited"> <h3 class="name"><code>_setStateVal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>value</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method__setStateVal">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l536"><code>attribute&#x2F;js&#x2F;AttributeCore.js:536</code></a> </p> </div> <div class="description"> <p>Sets the stored value for the attribute, in either the internal state object, or the state proxy if it exits</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute</p> </div> </li> <li class="param"> <code class="param-name">value</code> <span class="type">Any</span> <div class="param-description"> <p>The value of the attribute</p> </div> </li> </ul> </div> </div> <div id="method__setStrings" class="method item protected inherited"> <h3 class="name"><code>_setStrings</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>strings</code> </li> <li class="arg"> <code>locale</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__setStrings">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetLocale.js.html#l32"><code>widget&#x2F;js&#x2F;WidgetLocale.js:32</code></a> </p> </div> <div class="description"> <p>Sets strings for a particular locale, merging with any existing strings which may already be defined for the locale.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">strings</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The hash of string key/values to set</p> </div> </li> <li class="param"> <code class="param-name">locale</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The locale for the string values being set</p> </div> </li> </ul> </div> </div> <div id="method__setX" class="method item protected inherited"> <h3 class="name"><code>_setX</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__setX">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l196"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:196</code></a> </p> </div> <div class="description"> <p>Default setter for the X attribute. The setter passes the X value through to the XY attribute, which is the sole store for the XY state.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The X page co-ordinate value</p> </div> </li> </ul> </div> </div> <div id="method__setY" class="method item protected inherited"> <h3 class="name"><code>_setY</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__setY">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l208"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:208</code></a> </p> </div> <div class="description"> <p>Default setter for the Y attribute. The setter passes the Y value through to the XY attribute, which is the sole store for the XY state.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The Y page co-ordinate value</p> </div> </li> </ul> </div> </div> <div id="method__setZIndex" class="method item protected inherited"> <h3 class="name"><code>_setZIndex</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>zIndex</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__setZIndex">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l218"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:218</code></a> </p> </div> <div class="description"> <p>Default setter for zIndex attribute changes. Normalizes zIndex values to numbers, converting non-numerical values to 0.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">zIndex</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span>: Normalized zIndex </div> </div> </div> <div id="method__strSetter" class="method item protected inherited"> <h3 class="name"><code>_strSetter</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>strings</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__strSetter">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1210"><code>widget&#x2F;js&#x2F;Widget.js:1210</code></a> </p> </div> <div class="description"> <p>The default setter for the strings attribute. Merges partial sets into the full string set, to allow users to partial sets of strings</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">strings</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: The full set of strings to set </div> </div> </div> <div id="method__syncAttrUI" class="method item private inherited"> <h3 class="name"><code>_syncAttrUI</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__syncAttrUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1184"><code>widget&#x2F;js&#x2F;Widget.js:1184</code></a> </p> </div> <div class="description"> <p>Invokes the _uiSet&#61;ATTR NAME&#62; method for the list of attributes provided</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__syncUI" class="method item protected inherited"> <h3 class="name"><code>_syncUI</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__syncUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l962"><code>widget&#x2F;js&#x2F;Widget.js:962</code></a> </p> </div> <div class="description"> <p>Updates the widget UI to reflect the attribute state.</p> </div> </div> <div id="method__syncUIAutohide" class="method item protected inherited"> <h3 class="name"><code>_syncUIAutohide</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#method__syncUIAutohide">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l110"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:110</code></a> </p> </div> <div class="description"> <p>Syncs up the widget based on its current state. In particular, removes event listeners if widget is not visible, and attaches them otherwise.</p> <p> This method in invoked after syncUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__syncUIButtons" class="method item protected inherited"> <h3 class="name"><code>_syncUIButtons</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__syncUIButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l903"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:903</code></a> </p> <p>Available since 3.4.0</p> </div> <div class="description"> <p>Syncs this widget's current button-related state to its DOM. This method is inserted via AOP, and will execute after <code>syncUI()</code>.</p> </div> </div> <div id="method__syncUIChild" class="method item protected inherited"> <h3 class="name"><code>_syncUIChild</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__syncUIChild">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l341"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:341</code></a> </p> </div> <div class="description"> <p>Synchronizes the UI to match the WidgetChild state.</p> <p> This method is invoked after bindUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__syncUIModal" class="method item protected inherited"> <h3 class="name"><code>_syncUIModal</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__syncUIModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l251"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:251</code></a> </p> </div> <div class="description"> <p>Syncs the mask with the widget's current state, namely the visibility and z-index of the widget</p> <p> This method in invoked after syncUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__syncUIPosAlign" class="method item protected inherited"> <h3 class="name"><code>_syncUIPosAlign</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__syncUIPosAlign">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l254"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:254</code></a> </p> </div> <div class="description"> <p>Synchronizes the current <code>align</code> Attribute value to the DOM.</p> <p>This method is invoked after <code>syncUI</code> has been invoked for the <code>Widget</code> class using the AOP infrastructure.</p> </div> </div> <div id="method__syncUIPosition" class="method item protected inherited"> <h3 class="name"><code>_syncUIPosition</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__syncUIPosition">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l126"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:126</code></a> </p> </div> <div class="description"> <p>Synchronizes the UI to match the Widgets xy page position state.</p> <p> This method in invoked after syncUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__syncUIStack" class="method item protected inherited"> <h3 class="name"><code>_syncUIStack</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__syncUIStack">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l143"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:143</code></a> </p> </div> <div class="description"> <p>Synchronizes the UI to match the Widgets stack state. This method in invoked after syncUI is invoked for the Widget class using YUI's aop infrastructure.</p> </div> </div> <div id="method__syncUIStdMod" class="method item protected inherited"> <h3 class="name"><code>_syncUIStdMod</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__syncUIStdMod">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l257"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:257</code></a> </p> </div> <div class="description"> <p>Synchronizes the UI to match the Widgets standard module state.</p> <p> This method is invoked after syncUI is invoked for the Widget class using YUI's aop infrastructure. </p> </div> </div> <div id="method__uiInsertButton" class="method item protected inherited"> <h3 class="name"><code>_uiInsertButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> <li class="arg"> <code>section</code> </li> <li class="arg"> <code>index</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__uiInsertButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l917"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:917</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Inserts the specified <code>button</code> node into this widget's DOM at the specified <code>section</code> and <code>index</code> and updates the section content.</p> <p>The section and button container nodes will be created if they do not already exist.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The button node to insert into this widget's DOM.</p> </div> </li> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer).</p> </div> </li> <li class="param"> <code class="param-name">index</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>Index at which the <code>button</code> should be positioned.</p> </div> </li> </ul> </div> </div> <div id="method__uiRemoveButton" class="method item protected inherited"> <h3 class="name"><code>_uiRemoveButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> <li class="arg"> <code>section</code> </li> <li class="arg"> <code class="optional">[options]</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__uiRemoveButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l943"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:943</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Removes the button node from this widget's DOM and detaches any event subscriptions on the button that were created by this widget. The section content will be updated unless <code>{preserveContent: true}</code> is passed in the <code>options</code>.</p> <p>By default the button container node will be removed when this removes the last button of the specified <code>section</code>; and if no other content remains in the section node, it will also be removed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The button to remove and destroy.</p> </div> </li> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer).</p> </div> </li> <li class="param"> <code class="param-name optional">[options]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Additional options.</p> </div> <ul class="params-list"> <li class="param"> <code class="param-name optional">[preserveContent=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Whether the section content should be updated.</p> </div> </li> </ul> </li> </ul> </div> </div> <div id="method__uiSetAlign" class="method item protected inherited"> <h3 class="name"><code>_uiSetAlign</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code class="optional">[node]</code> </li> <li class="arg"> <code>points</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__uiSetAlign">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l347"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:347</code></a> </p> </div> <div class="description"> <p>Updates the UI to reflect the <code>align</code> value passed in.</p> <p><strong>Note:</strong> See the <code>align</code> Attribute documentation, for the Object structure expected.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name optional">[node]</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | Null</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The node to align to, or null to indicate the viewport.</p> </div> </li> <li class="param"> <code class="param-name">points</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>The alignment points.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetButtons" class="method item protected inherited"> <h3 class="name"><code>_uiSetButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>buttons</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__uiSetButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l993"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:993</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Sets the current <code>buttons</code> state to this widget's DOM by rendering the specified collection of <code>buttons</code> and updates the contents of each section as needed.</p> <p>Button nodes which already exist in the DOM will remain intact, or will be moved if they should be in a new position. Old button nodes which are no longer represented in the specified <code>buttons</code> collection will be removed, and any event subscriptions on the button which were created by this widget will be detached.</p> <p>If the button nodes in this widget's DOM actually change, then each content section will be updated (or removed) appropriately.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">buttons</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The current <code>buttons</code> state to visually represent.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetChildSelected" class="method item protected inherited"> <h3 class="name"><code>_uiSetChildSelected</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>selected</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetChildSelected">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l305"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:305</code></a> </p> </div> <div class="description"> <p>Updates the UI to reflect the <code>selected</code> attribute value.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">selected</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The selected value to be reflected in the UI.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetDefaultButton" class="method item protected inherited"> <h3 class="name"><code>_uiSetDefaultButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>newButton</code> </li> <li class="arg"> <code>oldButton</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__uiSetDefaultButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1077"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1077</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Adds the "yui3-button-primary" CSS class to the new <code>defaultButton</code> and removes it from the old default button.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">newButton</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The new <code>defaultButton</code>.</p> </div> </li> <li class="param"> <code class="param-name">oldButton</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The old <code>defaultButton</code>.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetDim" class="method item private inherited"> <h3 class="name"><code>_uiSetDim</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>dim</code> </li> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetDim">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l995"><code>widget&#x2F;js&#x2F;Widget.js:995</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">dim</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The dimension - "width" or "height"</p> </div> </li> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The value to set</p> </div> </li> </ul> </div> </div> <div id="method__uiSetDisabled" class="method item protected inherited"> <h3 class="name"><code>_uiSetDisabled</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetDisabled">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1016"><code>widget&#x2F;js&#x2F;Widget.js:1016</code></a> </p> </div> <div class="description"> <p>Sets the disabled state for the UI</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__uiSetFillHeight" class="method item protected inherited"> <h3 class="name"><code>_uiSetFillHeight</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>fillSection</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__uiSetFillHeight">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l398"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:398</code></a> </p> </div> <div class="description"> <p>Updates the rendered UI, to resize the provided section so that the standard module fills out the specified widget height. Note: This method does not check whether or not a height is set on the Widget.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">fillSection</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>A valid section specifier - one of WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER</p> </div> </li> </ul> </div> </div> <div id="method__uiSetFocused" class="method item protected inherited"> <h3 class="name"><code>_uiSetFocused</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> <li class="arg"> <code>src</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetFocused">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1027"><code>widget&#x2F;js&#x2F;Widget.js:1027</code></a> </p> </div> <div class="description"> <p>Sets the focused state for the UI</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> </div> </li> <li class="param"> <code class="param-name">src</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>String representing the source that triggered an update to the UI.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetHeight" class="method item protected inherited"> <h3 class="name"><code>_uiSetHeight</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetHeight">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l972"><code>widget&#x2F;js&#x2F;Widget.js:972</code></a> </p> </div> <div class="description"> <p>Sets the height on the widget's bounding box element</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__uiSetHostVisibleAutohide" class="method item protected inherited"> <h3 class="name"><code>_uiSetHostVisibleAutohide</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#method__uiSetHostVisibleAutohide">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l127"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:127</code></a> </p> </div> <div class="description"> <p>Removes event listeners if widget is not visible, and attaches them otherwise.</p> </div> </div> <div id="method__uiSetHostVisibleModal" class="method item inherited"> <h3 class="name"><code>_uiSetHostVisibleModal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>Whether</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__uiSetHostVisibleModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l303"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:303</code></a> </p> </div> <div class="description"> <p>Performs events attaching/detaching, stack shifting and mask repositioning based on the visibility of the widget</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">Whether</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>the widget is visible or not</p> </div> </li> </ul> </div> </div> <div id="method__uiSetHostZIndexModal" class="method item inherited"> <h3 class="name"><code>_uiSetHostZIndexModal</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>Z-Index</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method__uiSetHostZIndexModal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l369"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:369</code></a> </p> </div> <div class="description"> <p>Sets the z-index of the mask node.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">Z-Index</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>of the widget</p> </div> </li> </ul> </div> </div> <div id="method__uiSetShim" class="method item protected inherited"> <h3 class="name"><code>_uiSetShim</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>enable</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__uiSetShim">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l272"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:272</code></a> </p> </div> <div class="description"> <p>Updates the UI to enable/disable the shim. If the widget is not currently visible, creation of the shim is deferred until it is made visible, for performance reasons.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">enable</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>If true, creates/renders the shim, if false, removes it.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetStdMod" class="method item protected inherited"> <h3 class="name"><code>_uiSetStdMod</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> <li class="arg"> <code>content</code> </li> <li class="arg"> <code>where</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__uiSetStdMod">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l439"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:439</code></a> </p> </div> <div class="description"> <p>Updates the rendered UI, adding the provided content (either an HTML string, or node reference), to the specified section. The content is either added before, after or replaces existing content in the section, based on the value of the <code>where</code> argument.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section to be updated. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> <li class="param"> <code class="param-name">content</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The new content (either as an HTML string, or Node reference) to add to the section</p> </div> </li> <li class="param"> <code class="param-name">where</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. Either WidgetStdMod.AFTER, WidgetStdMod.BEFORE or WidgetStdMod.REPLACE. If not provided, the content will replace existing content in the section.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetTabIndex" class="method item protected inherited"> <h3 class="name"><code>_uiSetTabIndex</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>Number</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetTabIndex">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1049"><code>widget&#x2F;js&#x2F;Widget.js:1049</code></a> </p> </div> <div class="description"> <p>Set the tabIndex on the widget's rendered UI</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">Number</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__uiSetVisible" class="method item protected inherited"> <h3 class="name"><code>_uiSetVisible</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetVisible">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1005"><code>widget&#x2F;js&#x2F;Widget.js:1005</code></a> </p> </div> <div class="description"> <p>Sets the visible state for the UI</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__uiSetVisibleButtons" class="method item protected inherited"> <h3 class="name"><code>_uiSetVisibleButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>visible</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__uiSetVisibleButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1094"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1094</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Focuses this widget's <code>defaultButton</code> if there is one and this widget is visible.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">visible</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether this widget is visible.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetVisiblePosAlign" class="method item protected inherited"> <h3 class="name"><code>_uiSetVisiblePosAlign</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>visible</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method__uiSetVisiblePosAlign">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l441"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:441</code></a> </p> </div> <div class="description"> <p>Attaches or detaches alignment-syncing event handlers based on the widget's <code>visible</code> Attribute state.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">visible</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>The current value of the widget's <code>visible</code> Attribute.</p> </div> </li> </ul> </div> </div> <div id="method__uiSetWidth" class="method item protected inherited"> <h3 class="name"><code>_uiSetWidth</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSetWidth">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l984"><code>widget&#x2F;js&#x2F;Widget.js:984</code></a> </p> </div> <div class="description"> <p>Sets the width on the widget's bounding box element</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__uiSetXY" class="method item protected inherited"> <h3 class="name"><code>_uiSetXY</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__uiSetXY">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l258"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:258</code></a> </p> </div> <div class="description"> <p>Updates the UI to reflect the XY page co-ordinates passed in.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The XY page co-ordinates value to be reflected in the UI</p> </div> </li> </ul> </div> </div> <div id="method__uiSetZIndex" class="method item protected inherited"> <h3 class="name"><code>_uiSetZIndex</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>zIndex</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method__uiSetZIndex">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l261"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:261</code></a> </p> </div> <div class="description"> <p>Updates the UI to reflect the zIndex value passed in.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">zIndex</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The zindex to be reflected in the UI</p> </div> </li> </ul> </div> </div> <div id="method__uiSizeCB" class="method item protected inherited"> <h3 class="name"><code>_uiSizeCB</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>expand</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__uiSizeCB">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l699"><code>widget&#x2F;js&#x2F;Widget.js:699</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">expand</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method__unbindDOM" class="method item protected inherited"> <h3 class="name"><code>_unbindDOM</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__unbindDOM">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l931"><code>widget&#x2F;js&#x2F;Widget.js:931</code></a> </p> </div> <div class="description"> </div> </div> <div id="method__unbindUI" class="method item protected inherited"> <h3 class="name"><code>_unbindUI</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__unbindUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l892"><code>widget&#x2F;js&#x2F;Widget.js:892</code></a> </p> </div> <div class="description"> </div> </div> <div id="method__unMapButton" class="method item protected inherited"> <h3 class="name"><code>_unMapButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__unMapButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1112"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1112</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Removes the specified <code>button</code> from the buttons map (both name -> button and section:name -> button), and nulls-out the <code>defaultButton</code> if it is currently the default button.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The button node to remove from the buttons map.</p> </div> </li> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer).</p> </div> </li> </ul> </div> </div> <div id="method__updateContentButtons" class="method item protected inherited"> <h3 class="name"><code>_updateContentButtons</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__updateContentButtons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1164"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1164</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Updates the content attribute which corresponds to the specified <code>section</code>.</p> <p>The method updates the section's content to its current <code>childNodes</code> (text and/or HTMLElement), or will null-out its contents if the section is empty. It also specifies a <code>src</code> of <code>buttons</code> on the change event facade.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer) to update.</p> </div> </li> </ul> </div> </div> <div id="method__updateDefaultButton" class="method item protected inherited"> <h3 class="name"><code>_updateDefaultButton</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method__updateDefaultButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l1148"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:1148</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Updates the <code>defaultButton</code> attribute if it needs to be updated by comparing its current value with the protected <code>_defaultButton</code> property.</p> </div> </div> <div id="method__validateFillHeight" class="method item protected inherited"> <h3 class="name"><code>_validateFillHeight</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method__validateFillHeight">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l384"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:384</code></a> </p> </div> <div class="description"> <p>Default validator for the fillHeight attribute. Verifies that the value set is a valid section specifier - one of WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER, or a falsey value if fillHeight is to be disabled.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section which should be setup to fill height, or false/null to disable fillHeight</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> true if valid, false if not </div> </div> </div> <div id="method__validateXY" class="method item protected inherited"> <h3 class="name"><code>_validateXY</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>val</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method__validateXY">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l184"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:184</code></a> </p> </div> <div class="description"> <p>Default validator for the XY attribute</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">val</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>The XY page co-ordinate value which is being set.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: true if valid, false if not. </div> </div> </div> <div id="method__validTabIndex" class="method item protected inherited"> <h3 class="name"><code>_validTabIndex</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>tabIndex</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method__validTabIndex">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1159"><code>widget&#x2F;js&#x2F;Widget.js:1159</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">tabIndex</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="method_addAttr" class="method item inherited"> <h3 class="name"><code>addAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>config</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method_addAttr">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l124"><code>attribute&#x2F;js&#x2F;AttributeCore.js:124</code></a> </p> </div> <div class="description"> <p> Adds an attribute with the provided configuration to the host object. </p> <p> The config argument object supports the following properties: </p> <dl> <dt>value &#60;Any&#62;</dt> <dd>The initial value to set on the attribute</dd> <dt>valueFn &#60;Function | String&#62;</dt> <dd> <p>A function, which will return the initial value to set on the attribute. This is useful for cases where the attribute configuration is defined statically, but needs to reference the host instance ("this") to obtain an initial value. If both the value and valueFn properties are defined, the value returned by the valueFn has precedence over the value property, unless it returns undefined, in which case the value property is used.</p> <p>valueFn can also be set to a string, representing the name of the instance method to be used to retrieve the value.</p> </dd> <dt>readOnly &#60;boolean&#62;</dt> <dd>Whether or not the attribute is read only. Attributes having readOnly set to true cannot be modified by invoking the set method.</dd> <dt>writeOnce &#60;boolean&#62; or &#60;string&#62;</dt> <dd> Whether or not the attribute is "write once". Attributes having writeOnce set to true, can only have their values set once, be it through the default configuration, constructor configuration arguments, or by invoking set. <p>The writeOnce attribute can also be set to the string "initOnly", in which case the attribute can only be set during initialization (when used with Base, this means it can only be set during construction)</p> </dd> <dt>setter &#60;Function | String&#62;</dt> <dd> <p>The setter function used to massage or normalize the value passed to the set method for the attribute. The value returned by the setter will be the final stored value. Returning <a href="#property_Attribute.INVALID_VALUE">Attribute.INVALID_VALUE</a>, from the setter will prevent the value from being stored. </p> <p>setter can also be set to a string, representing the name of the instance method to be used as the setter function.</p> </dd> <dt>getter &#60;Function | String&#62;</dt> <dd> <p> The getter function used to massage or normalize the value returned by the get method for the attribute. The value returned by the getter function is the value which will be returned to the user when they invoke get. </p> <p>getter can also be set to a string, representing the name of the instance method to be used as the getter function.</p> </dd> <dt>validator &#60;Function | String&#62;</dt> <dd> <p> The validator function invoked prior to setting the stored value. Returning false from the validator function will prevent the value from being stored. </p> <p>validator can also be set to a string, representing the name of the instance method to be used as the validator function.</p> </dd> <dt>lazyAdd &#60;boolean&#62;</dt> <dd>Whether or not to delay initialization of the attribute until the first call to get/set it. This flag can be used to over-ride lazy initialization on a per attribute basis, when adding multiple attributes through the <a href="#method_addAttrs">addAttrs</a> method.</dd> </dl> <p>The setter, getter and validator are invoked with the value and name passed in as the first and second arguments, and with the context ("this") set to the host object.</p> <p>Configuration properties outside of the list mentioned above are considered private properties used internally by attribute, and are not intended for public use.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute.</p> </div> </li> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute configuration property/value pairs, specifying the configuration for the attribute.</p> <p> <strong>NOTE:</strong> The configuration object is modified when adding an attribute, so if you need to protect the original values, you will need to merge the object. </p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>(optional) Whether or not to add this attribute lazily (on the first call to get/set).</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method_addAttrs" class="method item inherited"> <h3 class="name"><code>addAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>cfgs</code> </li> <li class="arg"> <code>values</code> </li> <li class="arg"> <code>lazy</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method_addAttrs">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l709"><code>attribute&#x2F;js&#x2F;AttributeCore.js:709</code></a> </p> </div> <div class="description"> <p>Configures a group of attributes, and sets initial values.</p> <p> <strong>NOTE:</strong> This method does not isolate the configuration object by merging/cloning. The caller is responsible for merging/cloning the configuration object if required. </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">cfgs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/configuration pairs.</p> </div> </li> <li class="param"> <code class="param-name">values</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attribute name/value pairs, defining the initial values to apply. Values defined in the cfgs argument will be over-written by values in this argument unless defined as read only.</p> </div> </li> <li class="param"> <code class="param-name">lazy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether or not to delay the intialization of these attributes until the first call to get/set. Individual attributes can over-ride this behavior by defining a lazyAdd configuration property in their configuration. See <a href="#method_addAttr">addAttr</a>.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method_addButton" class="method item inherited"> <h3 class="name"><code>addButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> <li class="arg"> <code class="optional">[section=&quot;footer&quot;]</code> </li> <li class="arg"> <code class="optional">[index]</code> </li> </ul><span class="paren">)</span> </div> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method_addButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l284"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:284</code></a> </p> <p>Available since 3.4.0</p> </div> <div class="description"> <p>Adds a button to this widget.</p> <p>The new button node will have the <code>Y.Plugin.Button</code> plugin applied, be added to this widget's <code>buttons</code>, and rendered in the specified <code>section</code> at the specified <code>index</code> (or end of the section when no <code>index</code> is provided). If the section does not exist, it will be created.</p> <p>This fires the <code>buttonsChange</code> event and adds the following properties to the event facade:</p> <ul> <li><p><code>button</code>: The button node or config object to add.</p></li> <li><p><code>section</code>: The <code>WidgetStdMod</code> section (header/body/footer) where the button will be added.</p></li> <li><p><code>index</code>: The index at which the button will be in the section.</p></li> <li><p><code>src</code>: "add"</p></li> </ul> <p><strong>Note:</strong> The <code>index</code> argument will be passed to the Array <code>splice()</code> method, therefore a negative value will insert the <code>button</code> that many items from the end. The <code>index</code> property on the <code>buttonsChange</code> event facade is the index at which the <code>button</code> was added.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The button to add. This can be a <code>Y.Node</code> instance, config Object, or String name for a predefined button on the <code>BUTTONS</code> prototype property. When a config Object is provided, it will be merged with any defaults provided by any <code>srcNode</code> and/or a button with the same <code>name</code> defined on the <code>BUTTONS</code> property. The following are the possible configuration properties beyond what Node plugins accept by default:</p> </div> <ul class="params-list"> <li class="param"> <code class="param-name optional">[action]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The default handler that should be called when the button is clicked. A String name of a Function that exists on the <code>context</code> object can also be provided. <strong>Note:</strong> Specifying a set of <code>events</code> will override this setting.</p> </div> </li> <li class="param"> <code class="param-name optional">[classNames]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String[]</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Additional CSS classes to add to the button node.</p> </div> </li> <li class="param"> <code class="param-name optional">[context=this]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Context which any <code>events</code> or <code>action</code> should be called with. Defaults to <code>this</code>, the widget. <strong>Note:</strong> <code>e.target</code> will access the button node in the event handlers.</p> </div> </li> <li class="param"> <code class="param-name optional">[disabled=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Whether the button should be disabled.</p> </div> </li> <li class="param"> <code class="param-name optional">[events=&quot;click&quot;]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Event name, or set of events and handlers to bind to the button node. <strong>See:</strong> <code>Y.Node.on()</code>, this value is passed as the first argument to <code>on()</code>.</p> </div> </li> <li class="param"> <code class="param-name optional">[isDefault=false]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Whether the button is the default button.</p> </div> </li> <li class="param"> <code class="param-name optional">[label]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The visible text/value displayed in the button.</p> </div> </li> <li class="param"> <code class="param-name optional">[name]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>A name which can later be used to reference this button. If a button is defined on the <code>BUTTONS</code> property with this same name, its configuration properties will be merged in as defaults.</p> </div> </li> <li class="param"> <code class="param-name optional">[section]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header, body, footer) where the button should be added.</p> </div> </li> <li class="param"> <code class="param-name optional">[srcNode]</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>An existing Node to use for the button, default values will be seeded from this node, but are overriden by any values specified in the config object. By default a new &lt;button&gt; node will be created.</p> </div> </li> <li class="param"> <code class="param-name optional">[template]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>A specific template to use when creating a new button node (e.g. "&lt;a /&gt;"). <strong>Note:</strong> Specifying a <code>srcNode</code> will overide this.</p> </div> </li> </ul> </li> <li class="param"> <code class="param-name optional">[section=&quot;footer&quot;]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer) where the button should be added. This takes precedence over the <code>button.section</code> configuration property.</p> </div> </li> <li class="param"> <code class="param-name optional">[index]</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The index at which the button should be inserted. If not specified, the button will be added to the end of the section. This value is passed to the Array <code>splice()</code> method, therefore a negative value will insert the <code>button</code> that many items from the end.</p> </div> </li> </ul> </div> </div> <div id="method_addTarget" class="method item inherited"> <h3 class="name"><code>addTarget</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>o</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_addTarget">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-facade.js.html#l387"><code>event-custom&#x2F;js&#x2F;event-facade.js:387</code></a> </p> </div> <div class="description"> <p>Registers another EventTarget as a bubble target. Bubble order is determined by the order registered. Multiple targets can be specified.</p> <p>Events can only bubble if emitFacade is true.</p> <p>Included in the event-custom-complex submodule.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">o</code> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span> <div class="param-description"> <p>the target to add</p> </div> </li> </ul> </div> </div> <div id="method_after" class="method item inherited"> <h3 class="name"><code>after</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_after">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l744"><code>event-custom&#x2F;js&#x2F;event-target.js:744</code></a> </p> </div> <div class="description"> <p>Subscribe to a custom event hosted by this object. The supplied callback will execute after any listeners add via the subscribe method, and after the default function, if configured for the event, has executed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: A subscription handle capable of detaching the subscription </div> </div> </div> <div id="method_align" class="method item inherited"> <h3 class="name"><code>align</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code class="optional">[node]</code> </li> <li class="arg"> <code class="optional">[points]</code> </li> </ul><span class="paren">)</span> </div> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method_align">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l275"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:275</code></a> </p> </div> <div class="description"> <p>Aligns this widget to the provided <code>Node</code> (or viewport) using the provided points. This method can be invoked with no arguments which will cause the widget's current <code>align</code> Attribute value to be synced to the DOM.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name optional">[node]</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | Null</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>A reference (or selector String) for the <code>Node</code> which with the widget is to be aligned. If null is passed in, the widget will be aligned with the viewport.</p> </div> </li> <li class="param"> <code class="param-name optional">[points]</code> <span class="type">Array2</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>A two item array specifying the points on the widget and <code>Node</code>/viewport which will to be aligned. The first entry is the point on the widget, and the second entry is the point on the <code>Node</code>/viewport. Valid point references are defined as static constants on the <code>WidgetPositionAlign</code> extension.</p> </div> </li> </ul> </div> <div class="example"> <h4>Example:</h4> <div class="example-content"> <p>Aligning to the top-left corner of the <code>&lt;body&gt;</code>:</p> <pre class="code"><code class="prettyprint">myWidget.align('body', [Y.WidgetPositionAlign.TL, Y.WidgetPositionAlign.TR]); </code></pre> </div> </div> </div> <div id="method_ancestor" class="method item inherited"> <h3 class="name"><code>ancestor</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>depth</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_ancestor">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l279"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:279</code></a> </p> </div> <div class="description"> <p>Returns the Widget instance at the specified depth.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">depth</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>Number representing the depth of the ancestor.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span>: Widget instance. </div> </div> </div> <div id="method_attrAdded" class="method item inherited"> <h3 class="name"><code>attrAdded</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method_attrAdded">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l272"><code>attribute&#x2F;js&#x2F;AttributeCore.js:272</code></a> </p> </div> <div class="description"> <p>Checks if the given attribute has been added to the host</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute to check.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: true if an attribute with the given name has been added, false if it hasn't. This method will return true for lazily added attributes. </div> </div> </div> <div id="method_before" class="method item inherited"> <h3 class="name"><code>before</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_before">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l781"><code>event-custom&#x2F;js&#x2F;event-target.js:781</code></a> </p> </div> <div class="description"> <p>Executes the callback before a DOM event, custom event or method. If the first argument is a function, it is assumed the target is a method. For DOM and custom events, this is an alias for Y.on.</p> <p>For DOM and custom events: type, callback, context, 0-n arguments</p> <p>For methods: callback, object (method host), methodName, context, 0-n arguments</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> detach handle </div> </div> </div> <div id="method_bindUI" class="method item protected inherited"> <h3 class="name"><code>bindUI</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_bindUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l609"><code>widget&#x2F;js&#x2F;Widget.js:609</code></a> </p> </div> <div class="description"> <p>Configures/Sets up listeners to bind Widget State to UI/DOM</p> <p>This method is not called by framework and is not chained automatically for the class hierarchy.</p> </div> </div> <div id="method_blur" class="method item inherited"> <h3 class="name"><code>blur</code></h3> <span class="paren">()</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_blur">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l671"><code>widget&#x2F;js&#x2F;Widget.js:671</code></a> </p> </div> <div class="description"> <p>Causes the Widget to lose focus by setting the "focused" attribute to "false"</p> </div> </div> <div id="method_bubble" class="method item inherited"> <h3 class="name"><code>bubble</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>evt</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_bubble">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-facade.js.html#l424"><code>event-custom&#x2F;js&#x2F;event-facade.js:424</code></a> </p> </div> <div class="description"> <p>Propagate an event. Requires the event-custom-complex module.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">evt</code> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> <div class="param-description"> <p>the custom event to propagate</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: the aggregated return value from Event.Custom.fire </div> </div> </div> <div id="method_centered" class="method item inherited"> <h3 class="name"><code>centered</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code class="optional">[node]</code> </li> </ul><span class="paren">)</span> </div> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#method_centered">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l311"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:311</code></a> </p> </div> <div class="description"> <p>Centers the widget in the viewport, or if a <code>Node</code> is passed in, it will be centered to that <code>Node</code>.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name optional">[node]</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>A <code>Node</code> reference or selector String defining the <code>Node</code> which the widget should be centered. If a <code>Node</code> is not passed in, then the widget will be centered to the viewport.</p> </div> </li> </ul> </div> </div> <div id="method_constrain" class="method item inherited"> <h3 class="name"><code>constrain</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>xy</code> </li> <li class="arg"> <code>node</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method_constrain">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l128"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:128</code></a> </p> </div> <div class="description"> <p>Constrains the widget's bounding box to a node (or the viewport). If xy or node are not passed in, the current position and the value of "constrain" will be used respectively.</p> <p>The widget's position will be changed to the constrained position.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">xy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>Optional. The xy values to constrain</p> </div> </li> <li class="param"> <code class="param-name">node</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | boolean</span> <div class="param-description"> <p>Optional. The node to constrain to, or true for the viewport</p> </div> </li> </ul> </div> </div> <div id="method_destroy" class="method item inherited"> <h3 class="name"><code>destroy</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>destroyAllNodes</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method_destroy"> BaseCore </a> but overwritten in <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l452"><code>widget&#x2F;js&#x2F;Widget.js:452</code></a> </p> </div> <div class="description"> <p> Destroy lifecycle method. Fires the destroy event, prior to invoking destructors for the class hierarchy. Overrides Base's implementation, to support arguments to destroy </p> <p> Subscribers to the destroy event can invoke preventDefault on the event object, to prevent destruction from proceeding. </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">destroyAllNodes</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>If true, all nodes contained within the Widget are removed and destroyed. Defaults to false due to potentially high run-time cost.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span>: A reference to this object </div> </div> </div> <div id="method_destructor" class="method item protected inherited"> <h3 class="name"><code>destructor</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_destructor">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l427"><code>widget&#x2F;js&#x2F;Widget.js:427</code></a> </p> </div> <div class="description"> <p>Destructor lifecycle implementation for the Widget class. Purges events attached to the bounding box and content box, removes them from the DOM and removes the Widget from the list of registered widgets.</p> </div> </div> <div id="method_detach" class="method item inherited"> <h3 class="name"><code>detach</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code>context</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_detach">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l344"><code>event-custom&#x2F;js&#x2F;event-target.js:344</code></a> </p> </div> <div class="description"> <p>Detach one or more listeners the from the specified event</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Either the handle to the subscriber or the type of event. If the type is not specified, it will attempt to remove the listener from all hosted events.</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The subscribed function to unsubscribe, if not supplied, all subscribers will be removed.</p> </div> </li> <li class="param"> <code class="param-name">context</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The custom object passed to subscribe. This is optional, but if supplied will be used to disambiguate multiple listeners that are the same (e.g., you subscribe many object using a function that lives on the prototype)</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span>: the host </div> </div> </div> <div id="method_detachAll" class="method item inherited"> <h3 class="name"><code>detachAll</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_detachAll">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l464"><code>event-custom&#x2F;js&#x2F;event-target.js:464</code></a> </p> </div> <div class="description"> <p>Removes all listeners from the specified event. If the event type is not specified, all listeners from all hosted custom events will be removed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The type, or name of the event</p> </div> </li> </ul> </div> </div> <div id="method_disable" class="method item inherited"> <h3 class="name"><code>disable</code></h3> <span class="paren">()</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_disable">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l690"><code>widget&#x2F;js&#x2F;Widget.js:690</code></a> </p> </div> <div class="description"> <p>Set the Widget's "disabled" attribute to "true".</p> </div> </div> <div id="method_enable" class="method item inherited"> <h3 class="name"><code>enable</code></h3> <span class="paren">()</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_enable">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l681"><code>widget&#x2F;js&#x2F;Widget.js:681</code></a> </p> </div> <div class="description"> <p>Set the Widget's "disabled" attribute to "false".</p> </div> </div> <div id="method_enable or disable constraints listeners" class="method item private inherited"> <h3 class="name"><code>enable or disable constraints listeners</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>enable</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method_enable or disable constraints listeners">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l287"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:287</code></a> </p> </div> <div class="description"> <p>Updates the UI if enabling constraints, and sets up the xyChange event listeners to constrain whenever the widget is moved. Disabling constraints removes the listeners.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">enable</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Enable or disable constraints</p> </div> </li> </ul> </div> </div> <div id="method_fillHeight" class="method item inherited"> <h3 class="name"><code>fillHeight</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>node</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method_fillHeight">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l712"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:712</code></a> </p> </div> <div class="description"> <p>Sets the height on the provided header, body or footer element to fill out the height of the Widget. It determines the height of the widgets bounding box, based on it's configured height value, and sets the height of the provided section to fill out any space remaining after the other standard module section heights have been accounted for.</p> <p><strong>NOTE:</strong> This method is not designed to work if an explicit height has not been set on the Widget, since for an "auto" height Widget, the heights of the header/body/footer will drive the height of the Widget.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">node</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The node which should be resized to fill out the height of the Widget bounding box. Should be a standard module section node which belongs to the widget.</p> </div> </li> </ul> </div> </div> <div id="method_fire" class="method item inherited"> <h3 class="name"><code>fire</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>arguments</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_fire">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l641"><code>event-custom&#x2F;js&#x2F;event-target.js:641</code></a> </p> </div> <div class="description"> <p>Fire a custom event by name. The callback functions will be executed from the context specified when the event was created, and with the following parameters.</p> <p>If the custom event object hasn't been created, then the event hasn't been published and it has no subscribers. For performance sake, we immediate exit in this case. This means the event won't bubble, so if the intention is that a bubble target be notified, the event must be published on this object first.</p> <p>The first argument is the event type, and any additional arguments are passed to the listeners as parameters. If the first of these is an object literal, and the event is configured to emit an event facade, that object is mixed into the event facade and the facade is provided in place of the original object.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>The type of the event, or an object that contains a 'type' property.</p> </div> </li> <li class="param"> <code class="param-name">arguments</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object*</a></span> <div class="param-description"> <p>an arbitrary set of parameters to pass to the handler. If the first of these is an object literal and the event is configured to emit an event facade, the event facade will replace that parameter after the properties the object literal contains are copied to the event facade.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span>: the event host </div> </div> </div> <div id="method_focus" class="method item inherited"> <h3 class="name"><code>focus</code></h3> <span class="paren">()</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_focus">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l661"><code>widget&#x2F;js&#x2F;Widget.js:661</code></a> </p> </div> <div class="description"> <p>Causes the Widget to receive the focus by setting the "focused" attribute to "true".</p> </div> </div> <div id="method_get" class="method item inherited"> <h3 class="name"><code>get</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Any</span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method_get">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l283"><code>attribute&#x2F;js&#x2F;AttributeCore.js:283</code></a> </p> </div> <div class="description"> <p>Returns the current value of the attribute. If the attribute has been configured with a 'getter' function, this method will delegate to the 'getter' to obtain the value of the attribute.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute. If the value of the attribute is an Object, dot notation can be used to obtain the value of a property of the object (e.g. <code>get("x.y.z")</code>)</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Any</span>: The value of the attribute </div> </div> </div> <div id="method_getAttrs" class="method item inherited"> <h3 class="name"><code>getAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeCore.html#method_getAttrs">AttributeCore</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l666"><code>attribute&#x2F;js&#x2F;AttributeCore.js:666</code></a> </p> </div> <div class="description"> <p>Gets multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> | boolean</span> <div class="param-description"> <p>Optional. An array of attribute names. If omitted, all attribute values are returned. If set to true, all attributes modified from their initial values are returned.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: An object with attribute name/value pairs. </div> </div> </div> <div id="method_getButton" class="method item inherited"> <h3 class="name"><code>getButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code class="optional">[section=&quot;footer&quot;]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method_getButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l388"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:388</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Returns a button node from this widget's <code>buttons</code>.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The string name or index of the button.</p> </div> </li> <li class="param"> <code class="param-name optional">[section=&quot;footer&quot;]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer) where the button exists. Only applicable when looking for a button by numerical index, or by name but scoped to a particular section.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The button node. </div> </div> </div> <div id="method_getClassName" class="method item inherited"> <h3 class="name"><code>getClassName</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>args</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_getClassName"> Widget </a> but overwritten in <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l309"><code>widget&#x2F;js&#x2F;Widget.js:309</code></a> </p> </div> <div class="description"> <p>Generate a standard prefixed classname for the Widget, prefixed by the default prefix defined by the <code>Y.config.classNamePrefix</code> attribute used by <code>ClassNameManager</code> and <code>Widget.NAME.toLowerCase()</code> (e.g. "yui-widget-xxxxx-yyyyy", based on default values for the prefix and widget class name).</p> <p> The instance based version of this method can be used to generate standard prefixed classnames, based on the instances NAME, as opposed to Widget.NAME. This method should be used when you need to use a constant class name across different types instances. </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">args</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String*</a></span> <span class="flag multiple" title="This argument may occur one or more times.">multiple</span> <div class="param-description"> <p>0..n strings which should be concatenated, using the default separator defined by ClassNameManager, to create the class name</p> </div> </li> </ul> </div> </div> <div id="method_getConstrainedXY" class="method item inherited"> <h3 class="name"><code>getConstrainedXY</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>xy</code> </li> <li class="arg"> <code>node</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#method_getConstrainedXY">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l106"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:106</code></a> </p> </div> <div class="description"> <p>Calculates the constrained positions for the XY positions provided, using the provided node argument is passed in. If no node value is passed in, the value of the "constrain" attribute is used.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">xy</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>The xy values to constrain</p> </div> </li> <li class="param"> <code class="param-name">node</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | boolean</span> <div class="param-description"> <p>Optional. The node to constrain to, or true for the viewport</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>: The constrained xy values </div> </div> </div> <div id="method_getDefaultLocale" class="method item inherited"> <h3 class="name"><code>getDefaultLocale</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_getDefaultLocale">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetLocale.js.html#l150"><code>widget&#x2F;js&#x2F;WidgetLocale.js:150</code></a> </p> </div> <div class="description"> <p>Returns the default locale for the widget (the locale value defined by the widget class, or provided by the user during construction).</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: The default locale for the widget </div> </div> </div> <div id="method_getEvent" class="method item inherited"> <h3 class="name"><code>getEvent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>prefixed</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_getEvent">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l726"><code>event-custom&#x2F;js&#x2F;event-target.js:726</code></a> </p> </div> <div class="description"> <p>Returns the custom event of the provided type has been created, a falsy value otherwise</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>the type, or name of the event</p> </div> </li> <li class="param"> <code class="param-name">prefixed</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>if true, the type is prefixed already</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span>: the custom event or null </div> </div> </div> <div id="method_getSkinName" class="method item inherited"> <h3 class="name"><code>getSkinName</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_getSkinName">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetSkin.js.html#l13"><code>widget&#x2F;js&#x2F;WidgetSkin.js:13</code></a> </p> </div> <div class="description"> <p>Returns the name of the skin that's currently applied to the widget. This is only really useful after the widget's DOM structure is in the document, either by render or by progressive enhancement. Searches up the Widget's ancestor axis for a class yui3-skin-(name), and returns the (name) portion. Otherwise, returns null.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: the name of the skin, or null (yui3-skin-sam => sam) </div> </div> </div> <div id="method_getStdModNode" class="method item inherited"> <h3 class="name"><code>getStdModNode</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> <li class="arg"> <code>forceCreate</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method_getStdModNode">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l686"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:686</code></a> </p> </div> <div class="description"> <p>Returns the node reference for the specified <code>section</code>.</p> <p><strong>Note:</strong> The DOM is not queried for the node reference. The reference stored by the widget instance is returned if it was set. Passing a truthy for <code>forceCreate</code> will create the section node if it does not already exist.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The section whose node reference is required. Either <code>WidgetStdMod.HEADER</code>, <code>WidgetStdMod.BODY</code>, or <code>WidgetStdMod.FOOTER</code>.</p> </div> </li> <li class="param"> <code class="param-name">forceCreate</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Whether the section node should be created if it does not already exist.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span>: The node reference for the <code>section</code>, or null if not set. </div> </div> </div> <div id="method_getString" class="method item deprecated inherited"> <h3 class="name"><code>getString</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>key</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag deprecated" title="Used by deprecated WidgetLocale implementations.">deprecated</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_getString"> Widget </a> but overwritten in <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1223"><code>widget&#x2F;js&#x2F;Widget.js:1223</code></a> </p> <p>Deprecated: Used by deprecated WidgetLocale implementations.</p> </div> <div class="description"> <p>Helper method to get a specific string value</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">key</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: The string </div> </div> </div> <div id="method_getStrings" class="method item deprecated inherited"> <h3 class="name"><code>getStrings</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>key</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <span class="flag deprecated" title="Used by deprecated WidgetLocale implementations.">deprecated</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_getStrings"> Widget </a> but overwritten in <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1235"><code>widget&#x2F;js&#x2F;Widget.js:1235</code></a> </p> <p>Deprecated: Used by deprecated WidgetLocale implementations.</p> </div> <div class="description"> <p>Helper method to get the complete set of strings for the widget</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">key</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: The strings </div> </div> </div> <div id="method_getTargets" class="method item inherited"> <h3 class="name"><code>getTargets</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_getTargets">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-facade.js.html#l405"><code>event-custom&#x2F;js&#x2F;event-facade.js:405</code></a> </p> </div> <div class="description"> <p>Returns an array of bubble targets for this object.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> EventTarget[] </div> </div> </div> <div id="method_hide" class="method item inherited"> <h3 class="name"><code>hide</code></h3> <span class="paren">()</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_hide">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l643"><code>widget&#x2F;js&#x2F;Widget.js:643</code></a> </p> </div> <div class="description"> <p>Hides the Widget by setting the "visible" attribute to "false".</p> </div> </div> <div id="method_init" class="method item inherited"> <h3 class="name"><code>init</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Base.html" class="crosslink">Base</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method_init"> BaseCore </a> but overwritten in <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l191"><code>base&#x2F;js&#x2F;Base.js:191</code></a> </p> </div> <div class="description"> <p>Init lifecycle method, invoked during construction. Fires the init event prior to setting up attributes and invoking initializers for the class hierarchy.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Object with configuration property name/value pairs</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Base.html" class="crosslink">Base</a></span>: A reference to this object </div> </div> </div> <div id="method_initializer" class="method item protected inherited"> <h3 class="name"><code>initializer</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_initializer">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l380"><code>widget&#x2F;js&#x2F;Widget.js:380</code></a> </p> </div> <div class="description"> <p>Initializer lifecycle implementation for the Widget class. Registers the widget instance, and runs through the Widget's HTML_PARSER definition.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>Configuration object literal for the widget</p> </div> </li> </ul> </div> </div> <div id="method_isNested" class="method item public inherited"> <h3 class="name"><code>isNested</code></h3> <span class="paren">()</span> <span class="flag public">public</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#method_isNested">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l476"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:476</code></a> </p> </div> <div class="description"> <p>Returns a boolean representing whether the current widget is in a "nested modality" state. This is done by checking the number of widgets currently on the stack.</p> </div> </div> <div id="method_isRoot" class="method item inherited"> <h3 class="name"><code>isRoot</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_isRoot">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l267"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:267</code></a> </p> </div> <div class="description"> <p>Determines if the Widget is the root Widget in the object hierarchy.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>: Boolean indicating if Widget is the root Widget in the object hierarchy. </div> </div> </div> <div id="method_modifyAttr" class="method item inherited"> <h3 class="name"><code>modifyAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>config</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeExtras.html#method_modifyAttr">AttributeExtras</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeExtras.js.html#l39"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:39</code></a> </p> </div> <div class="description"> <p>Updates the configuration of an attribute which has already been added.</p> <p> The properties which can be modified through this interface are limited to the following subset of attributes, which can be safely modified after a value has already been set on the attribute: readOnly, writeOnce, broadcast and getter. </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute whose configuration is to be updated.</p> </div> </li> <li class="param"> <code class="param-name">config</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with configuration property/value pairs, specifying the configuration properties to modify.</p> </div> </li> </ul> </div> </div> <div id="method_move" class="method item inherited"> <h3 class="name"><code>move</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>x</code> </li> <li class="arg"> <code>y</code> </li> <li class="arg"> <code>x,</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method_move">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l157"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:157</code></a> </p> </div> <div class="description"> <p>Moves the Widget to the specified page xy co-ordinate position.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">x</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The new x position</p> </div> </li> <li class="param"> <code class="param-name">y</code> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="param-description"> <p>The new y position</p> <p>Or</p> </div> </li> <li class="param"> <code class="param-name">x,</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="param-description"> <p>y values passed as an array ([x, y]), to support simple pass through of Node.getXY results</p> </div> </li> </ul> </div> </div> <div id="method_next" class="method item inherited"> <h3 class="name"><code>next</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>circular</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_next">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l191"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:191</code></a> </p> </div> <div class="description"> <p>Returns the Widget's next sibling.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">circular</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Boolean indicating if the parent's first child should be returned if the child has no next sibling.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span>: Widget instance. </div> </div> </div> <div id="method_on" class="method item inherited"> <h3 class="name"><code>on</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_on">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l191"><code>event-custom&#x2F;js&#x2F;event-target.js:191</code></a> </p> </div> <div class="description"> <p>Subscribe a callback function to a custom event fired by this object or from an object that bubbles its events to this object.</p> <p>Callback functions for events published with <code>emitFacade = true</code> will receive an <code>EventFacade</code> as the first argument (typically named "e"). These callbacks can then call <code>e.preventDefault()</code> to disable the behavior published to that event's <code>defaultFn</code>. See the <code>EventFacade</code> API for all available properties and methods. Subscribers to non-<code>emitFacade</code> events will receive the arguments passed to <code>fire()</code> after the event name.</p> <p>To subscribe to multiple events at once, pass an object as the first argument, where the key:value pairs correspond to the eventName:callback, or pass an array of event names as the first argument to subscribe to all listed events with the same callback.</p> <p>Returning <code>false</code> from a callback is supported as an alternative to calling <code>e.preventDefault(); e.stopPropagation();</code>. However, it is recommended to use the event methods whenever possible.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: A subscription handle capable of detaching that subscription </div> </div> </div> <div id="method_once" class="method item inherited"> <h3 class="name"><code>once</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_once">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l127"><code>event-custom&#x2F;js&#x2F;event-target.js:127</code></a> </p> </div> <div class="description"> <p>Listen to a custom event hosted by this object one time. This is the equivalent to <code>on</code> except the listener is immediatelly detached when it is executed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: A subscription handle capable of detaching the subscription </div> </div> </div> <div id="method_onceAfter" class="method item inherited"> <h3 class="name"><code>onceAfter</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>fn</code> </li> <li class="arg"> <code class="optional">[context]</code> </li> <li class="arg"> <code class="optional">[arg*]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_onceAfter">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l149"><code>event-custom&#x2F;js&#x2F;event-target.js:149</code></a> </p> </div> <div class="description"> <p>Listen to a custom event hosted by this object one time. This is the equivalent to <code>after</code> except the listener is immediatelly detached when it is executed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the event</p> </div> </li> <li class="param"> <code class="param-name">fn</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span> <div class="param-description"> <p>The callback to execute in response to the event</p> </div> </li> <li class="param"> <code class="param-name optional">[context]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>Override <code>this</code> object in callback</p> </div> </li> <li class="param"> <code class="param-name optional">[arg*]</code> <span class="type">Any</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>0..n additional arguments to supply to the subscriber</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/EventHandle.html" class="crosslink">EventHandle</a></span>: A subscription handle capable of detaching that subscription </div> </div> </div> <div id="method_parseType" class="method item inherited"> <h3 class="name"><code>parseType</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code class="optional">[pre=this._yuievt.config.prefix]</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_parseType">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l171"><code>event-custom&#x2F;js&#x2F;event-target.js:171</code></a> </p> <p>Available since 3.3.0</p> </div> <div class="description"> <p>Takes the type parameter passed to 'on' and parses out the various pieces that could be included in the type. If the event type is passed without a prefix, it will be expanded to include the prefix one is supplied or the event target is configured with a default prefix.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>the type</p> </div> </li> <li class="param"> <code class="param-name optional">[pre=this._yuievt.config.prefix]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>the prefix</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>: an array containing: * the detach category, if supplied, * the prefixed event type, * whether or not this is an after listener, * the supplied event type </div> </div> </div> <div id="method_previous" class="method item inherited"> <h3 class="name"><code>previous</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>circular</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_previous">Widget</a>: <a href="..&#x2F;files&#x2F;widget-child_js_Widget-Child.js.html#l216"><code>widget-child&#x2F;js&#x2F;Widget-Child.js:216</code></a> </p> </div> <div class="description"> <p>Returns the Widget's previous sibling.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">circular</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="param-description"> <p>Boolean indicating if the parent's last child should be returned if the child has no previous sibling.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/Widget.html" class="crosslink">Widget</a></span>: Widget instance. </div> </div> </div> <div id="method_publish" class="method item inherited"> <h3 class="name"><code>publish</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> <li class="arg"> <code>opts</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_publish">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l488"><code>event-custom&#x2F;js&#x2F;event-target.js:488</code></a> </p> </div> <div class="description"> <p>Creates a new custom event of the specified type. If a custom event by that name already exists, it will not be re-created. In either case the custom event is returned.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>the type, or name of the event</p> </div> </li> <li class="param"> <code class="param-name">opts</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>optional config params. Valid properties are:</p> <p><ul> <li> 'broadcast': whether or not the YUI instance and YUI global are notified when the event is fired (false) </li> <li> 'bubbles': whether or not this event bubbles (true) Events can only bubble if emitFacade is true. </li> <li> 'context': the default execution context for the listeners (this) </li> <li> 'defaultFn': the default function to execute when this event fires if preventDefault was not called </li> <li> 'emitFacade': whether or not this event emits a facade (false) </li> <li> 'prefix': the prefix for this targets events, e.g., 'menu' in 'menu:click' </li> <li> 'fireOnce': if an event is configured to fire once, new subscribers after the fire will be notified immediately. </li> <li> 'async': fireOnce event listeners will fire synchronously if the event has already fired unless async is true. </li> <li> 'preventable': whether or not preventDefault() has an effect (true) </li> <li> 'preventedFn': a function that is executed when preventDefault is called </li> <li> 'queuable': whether or not this event can be queued during bubbling (false) </li> <li> 'silent': if silent is true, debug messages are not provided for this event. </li> <li> 'stoppedFn': a function that is executed when stopPropagation is called </li></p> <p><li> 'monitored': specifies whether or not this event should send notifications about when the event has been attached, detached, or published. </li> <li> 'type': the event type (valid option if not provided as the first parameter to publish) </li> </ul></p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="../classes/CustomEvent.html" class="crosslink">CustomEvent</a></span>: the custom event </div> </div> </div> <div id="method_removeAttr" class="method item inherited"> <h3 class="name"><code>removeAttr</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeExtras.html#method_removeAttr">AttributeExtras</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeExtras.js.html#l77"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:77</code></a> </p> </div> <div class="description"> <p>Removes an attribute from the host object</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute to be removed.</p> </div> </li> </ul> </div> </div> <div id="method_removeButton" class="method item inherited"> <h3 class="name"><code>removeButton</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>button</code> </li> <li class="arg"> <code class="optional">[section=&quot;footer&quot;]</code> </li> </ul><span class="paren">)</span> </div> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#method_removeButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l418"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:418</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Removes a button from this widget.</p> <p>The button will be removed from this widget's <code>buttons</code> and its DOM. Any event subscriptions on the button which were created by this widget will be detached. If the content section becomes empty after removing the button node, then the section will also be removed.</p> <p>This fires the <code>buttonsChange</code> event and adds the following properties to the event facade:</p> <ul> <li><p><code>button</code>: The button node to remove.</p></li> <li><p><code>section</code>: The <code>WidgetStdMod</code> section (header/body/footer) where the button should be removed from.</p></li> <li><p><code>index</code>: The index at which the button exists in the section.</p></li> <li><p><code>src</code>: "remove"</p></li> </ul> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">button</code> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="../classes/Number.html" class="crosslink">Number</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The button to remove. This can be a <code>Y.Node</code> instance, index, or String name of a button.</p> </div> </li> <li class="param"> <code class="param-name optional">[section=&quot;footer&quot;]</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The <code>WidgetStdMod</code> section (header/body/footer) where the button exists. Only applicable when removing a button by numerical index, or by name but scoped to a particular section.</p> </div> </li> </ul> </div> </div> <div id="method_removeTarget" class="method item inherited"> <h3 class="name"><code>removeTarget</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>o</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_removeTarget">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-facade.js.html#l414"><code>event-custom&#x2F;js&#x2F;event-facade.js:414</code></a> </p> </div> <div class="description"> <p>Removes a bubble target</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">o</code> <span class="type"><a href="../classes/EventTarget.html" class="crosslink">EventTarget</a></span> <div class="param-description"> <p>the target to remove</p> </div> </li> </ul> </div> </div> <div id="method_render" class="method item inherited"> <h3 class="name"><code>render</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>parentNode</code> </li> </ul><span class="paren">)</span> </div> <span class="flag final">final</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_render">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l511"><code>widget&#x2F;js&#x2F;Widget.js:511</code></a> </p> </div> <div class="description"> <p>Establishes the initial DOM for the widget. Invoking this method will lead to the creating of all DOM elements for the widget (or the manipulation of existing DOM elements for the progressive enhancement use case).</p> <p> This method should only be invoked once for an initialized widget. </p> <p> It delegates to the widget specific renderer method to do the actual work. </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">parentNode</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. The Node under which the Widget is to be rendered. This can be a Node instance or a CSS selector string. </p> <p> If the selector string returns more than one Node, the first node will be used as the parentNode. NOTE: This argument is required if both the boundingBox and contentBox are not currently in the document. If it's not provided, the Widget will be rendered to the body of the current document in this case. </p> </div> </li> </ul> </div> </div> <div id="method_renderer" class="method item protected inherited"> <h3 class="name"><code>renderer</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_renderer">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l586"><code>widget&#x2F;js&#x2F;Widget.js:586</code></a> </p> </div> <div class="description"> <p>Creates DOM (or manipulates DOM for progressive enhancement) This method is invoked by render() and is not chained automatically for the class hierarchy (unlike initializer, destructor) so it should be chained manually for subclasses if required.</p> </div> </div> <div id="method_renderUI" class="method item protected inherited"> <h3 class="name"><code>renderUI</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_renderUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l620"><code>widget&#x2F;js&#x2F;Widget.js:620</code></a> </p> </div> <div class="description"> <p>Adds nodes to the DOM </p> <p>This method is not called by framework and is not chained automatically for the class hierarchy.</p> </div> </div> <div id="method_reset" class="method item inherited"> <h3 class="name"><code>reset</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeExtras.html#method_reset">AttributeExtras</a>: <a href="..&#x2F;files&#x2F;attribute_js_AttributeExtras.js.html#l87"><code>attribute&#x2F;js&#x2F;AttributeExtras.js:87</code></a> </p> </div> <div class="description"> <p>Resets the attribute (or all attributes) to its initial value, as long as the attribute is not readOnly, or writeOnce.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. The name of the attribute to reset. If omitted, all attributes are reset.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method_set" class="method item inherited"> <h3 class="name"><code>set</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>name</code> </li> <li class="arg"> <code>value</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeEvents.html#method_set"> AttributeEvents </a> but overwritten in <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l328"><code>attribute&#x2F;js&#x2F;AttributeCore.js:328</code></a> </p> </div> <div class="description"> <p>Sets the value of an attribute.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">name</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The name of the attribute. If the current value of the attribute is an Object, dot notation can be used to set the value of a property within the object (e.g. <code>set("x.y.z", 5)</code>).</p> </div> </li> <li class="param"> <code class="param-name">value</code> <span class="type">Any</span> <div class="param-description"> <p>The value to set the attribute to.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method_setAttrs" class="method item inherited"> <h3 class="name"><code>setAttrs</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>attrs</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> </span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;AttributeEvents.html#method_setAttrs"> AttributeEvents </a> but overwritten in <a href="..&#x2F;files&#x2F;attribute_js_AttributeCore.js.html#l635"><code>attribute&#x2F;js&#x2F;AttributeCore.js:635</code></a> </p> </div> <div class="description"> <p>Sets multiple attribute values.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">attrs</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="param-description"> <p>An object with attributes name/value pairs.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>: A reference to the host object. </div> </div> </div> <div id="method_setStdModContent" class="method item inherited"> <h3 class="name"><code>setStdModContent</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>section</code> </li> <li class="arg"> <code>content</code> </li> <li class="arg"> <code>where</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#method_setStdModContent">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l668"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:668</code></a> </p> </div> <div class="description"> <p>Updates the body section of the standard module with the content provided (either an HTML string, or node reference).</p> <p> This method can be used instead of the corresponding section content attribute if you'd like to retain the current content of the section, and insert content before or after it, by specifying the <code>where</code> argument. </p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">section</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The standard module section whose content is to be updated. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER.</p> </div> </li> <li class="param"> <code class="param-name">content</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="param-description"> <p>The content to be added, either an HTML string or a Node reference.</p> </div> </li> <li class="param"> <code class="param-name">where</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>Optional. Either WidgetStdMod.AFTER, WidgetStdMod.BEFORE or WidgetStdMod.REPLACE. If not provided, the content will replace existing content in the section.</p> </div> </li> </ul> </div> </div> <div id="method_show" class="method item inherited"> <h3 class="name"><code>show</code></h3> <span class="paren">()</span> <span class="flag chainable">chainable</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_show">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l652"><code>widget&#x2F;js&#x2F;Widget.js:652</code></a> </p> </div> <div class="description"> <p>Shows the Widget by setting the "visible" attribute to "true".</p> </div> </div> <div id="method_sizeShim" class="method item inherited"> <h3 class="name"><code>sizeShim</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#method_sizeShim">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l404"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:404</code></a> </p> </div> <div class="description"> <p>For IE6, synchronizes the size and position of iframe shim to that of Widget bounding box which it is protecting. For all other browsers, this method does not do anything.</p> </div> </div> <div id="method_subscribe" class="method item deprecated inherited"> <h3 class="name"><code>subscribe</code></h3> <span class="paren">()</span> <span class="flag deprecated" title="use on">deprecated</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_subscribe">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l334"><code>event-custom&#x2F;js&#x2F;event-target.js:334</code></a> </p> <p>Deprecated: use on</p> </div> <div class="description"> <p>subscribe to an event</p> </div> </div> <div id="method_syncUI" class="method item protected inherited"> <h3 class="name"><code>syncUI</code></h3> <span class="paren">()</span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#method_syncUI">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l631"><code>widget&#x2F;js&#x2F;Widget.js:631</code></a> </p> </div> <div class="description"> <p>Refreshes the rendered UI, based on Widget State</p> <p>This method is not called by framework and is not chained automatically for the class hierarchy.</p> </div> </div> <div id="method_syncXY" class="method item inherited"> <h3 class="name"><code>syncXY</code></h3> <span class="paren">()</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#method_syncXY">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l174"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:174</code></a> </p> </div> <div class="description"> <p>Synchronizes the Panel's "xy", "x", and "y" properties with the Widget's position in the DOM.</p> </div> </div> <div id="method_toString" class="method item inherited"> <h3 class="name"><code>toString</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> </span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#method_toString"> BaseCore </a> but overwritten in <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1105"><code>widget&#x2F;js&#x2F;Widget.js:1105</code></a> </p> </div> <div class="description"> <p>Generic toString implementation for all widgets.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>: The default string value for the widget [ displays the NAME of the instance, and the unique id ] </div> </div> </div> <div id="method_unsubscribe" class="method item deprecated inherited"> <h3 class="name"><code>unsubscribe</code></h3> <span class="paren">()</span> <span class="flag deprecated" title="use detach">deprecated</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_unsubscribe">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l454"><code>event-custom&#x2F;js&#x2F;event-target.js:454</code></a> </p> <p>Deprecated: use detach</p> </div> <div class="description"> <p>detach a listener</p> </div> </div> <div id="method_unsubscribeAll" class="method item deprecated inherited"> <h3 class="name"><code>unsubscribeAll</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>type</code> </li> </ul><span class="paren">)</span> </div> <span class="flag deprecated" title="use detachAll">deprecated</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;EventTarget.html#method_unsubscribeAll">EventTarget</a>: <a href="..&#x2F;files&#x2F;event-custom_js_event-target.js.html#l475"><code>event-custom&#x2F;js&#x2F;event-target.js:475</code></a> </p> <p>Deprecated: use detachAll</p> </div> <div class="description"> <p>Removes all listeners from the specified event. If the event type is not specified, all listeners from all hosted custom events will be removed.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">type</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description"> <p>The type, or name of the event</p> </div> </li> </ul> </div> </div> </div> <div id="properties" class="api-class-tabpanel"> <h2 class="off-left">Properties</h2> <div id="property__allowAdHocAttrs" class="property item protected inherited"> <h3 class="name"><code>_allowAdHocAttrs</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#property__allowAdHocAttrs">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l101"><code>base&#x2F;js&#x2F;BaseCore.js:101</code></a> </p> </div> <div class="description"> <p>This property controls whether or not instances of this class should allow users to add ad-hoc attributes through the constructor configuration hash.</p> <p>AdHoc attributes are attributes which are not defined by the class, and are not handled by the MyClass.<em>NON</em>ATTRS_CFG</p> </div> <p><strong>Default:</strong> undefined (false)</p> </div> <div id="property__buttonsHandles" class="property item protected inherited"> <h3 class="name"><code>_buttonsHandles</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#property__buttonsHandles">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l225"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:225</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>A map of button node <code>_yuid</code> -> event-handle for all button nodes which were created by this widget.</p> </div> </div> <div id="property__buttonsMap" class="property item protected inherited"> <h3 class="name"><code>_buttonsMap</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#property__buttonsMap">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l235"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:235</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>A map of this widget's <code>buttons</code>, both name -> button and section:name -> button.</p> </div> </div> <div id="property__defaultButton" class="property item protected inherited"> <h3 class="name"><code>_defaultButton</code></h3> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#property__defaultButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l245"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:245</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Internal reference to this widget's default button.</p> </div> </div> <div id="property__posAlignUIHandles" class="property item protected inherited"> <h3 class="name"><code>_posAlignUIHandles</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <span class="flag protected">protected</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#property__posAlignUIHandles">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l222"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:222</code></a> </p> </div> <div class="description"> <p>Holds the alignment-syncing event handles.</p> </div> <p><strong>Default:</strong> null</p> </div> <div id="property__UI_ATTRS" class="property item private inherited"> <h3 class="name"><code>_UI_ATTRS</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <span class="flag private">private</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#property__UI_ATTRS">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1247"><code>widget&#x2F;js&#x2F;Widget.js:1247</code></a> </p> </div> <div class="description"> <p>The lists of UI attributes to bind and sync for widget's _bindUI and _syncUI implementations</p> </div> </div> <div id="property_BOUNDING_TEMPLATE" class="property item inherited"> <h3 class="name"><code>BOUNDING_TEMPLATE</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#property_BOUNDING_TEMPLATE">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1143"><code>widget&#x2F;js&#x2F;Widget.js:1143</code></a> </p> </div> <div class="description"> <p>Property defining the markup template for bounding box.</p> </div> </div> <div id="property_BUTTONS" class="property item"> <h3 class="name"><code>BUTTONS</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#property_BUTTONS"> WidgetButtons </a> but overwritten in <a href="..&#x2F;files&#x2F;panel_js_panel.js.html#l49"><code>panel&#x2F;js&#x2F;panel.js:49</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>Collection of predefined buttons mapped from name => config.</p> <p>Panel includes a "close" button which can be use by name. When the close button is in the header (which is the default), it will look like: [x].</p> <p>See <code>addButton()</code> for a list of possible configuration values.</p> </div> <p><strong>Default:</strong> {close: {}}</p> <div class="example"> <h4>Example:</h4> <div class="example-content"> <pre class="code"><code class="prettyprint">// Panel with close button in header. var panel = new Y.Panel({ buttons: ['close'] }); // Panel with close button in footer. var otherPanel = new Y.Panel({ buttons: { footer: ['close'] } }); </code></pre> </div> </div> </div> <div id="property_BUTTONS_TEMPLATE" class="property item inherited"> <h3 class="name"><code>BUTTONS_TEMPLATE</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#property_BUTTONS_TEMPLATE">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l202"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:202</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>The HTML template to use when creating the node which wraps all buttons of a section. By default it will have the CSS class: "yui3-widget-buttons".</p> </div> <p><strong>Default:</strong> &quot;&lt;span &#x2F;&gt;&quot;</p> </div> <div id="property_CONTENT_TEMPLATE" class="property item inherited"> <h3 class="name"><code>CONTENT_TEMPLATE</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#property_CONTENT_TEMPLATE">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1133"><code>widget&#x2F;js&#x2F;Widget.js:1133</code></a> </p> </div> <div class="description"> <p>Property defining the markup template for content box. If your Widget doesn't need the dual boundingBox/contentBox structure, set CONTENT_TEMPLATE to null, and contentBox and boundingBox will both point to the same Node.</p> </div> </div> <div id="property_DEF_PARENT_NODE" class="property item inherited"> <h3 class="name"><code>DEF_PARENT_NODE</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#property_DEF_PARENT_NODE">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1124"><code>widget&#x2F;js&#x2F;Widget.js:1124</code></a> </p> </div> <div class="description"> <p>Default node to render the bounding box to. If not set, will default to the current document body.</p> </div> </div> <div id="property_DEF_UNIT" class="property item inherited"> <h3 class="name"><code>DEF_UNIT</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#property_DEF_UNIT">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l1116"><code>widget&#x2F;js&#x2F;Widget.js:1116</code></a> </p> </div> <div class="description"> <p>Default unit to use for dimension values</p> </div> </div> <div id="property_DEFAULT_BUTTONS_SECTION" class="property item inherited"> <h3 class="name"><code>DEFAULT_BUTTONS_SECTION</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#property_DEFAULT_BUTTONS_SECTION">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l213"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:213</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>The default section to render buttons in when no section is specified.</p> </div> <p><strong>Default:</strong> Y.WidgetStdMod.FOOTER</p> </div> <div id="property_name" class="property item deprecated inherited"> <h3 class="name"><code>name</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag deprecated" title="Use this.constructor.NAME">deprecated</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#property_name">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l197"><code>base&#x2F;js&#x2F;BaseCore.js:197</code></a> </p> <p>Deprecated: Use this.constructor.NAME</p> </div> <div class="description"> <p>The string used to identify the class of this object.</p> </div> </div> <div id="property_STACK" class="property item inherited"> <h3 class="name"><code>STACK</code></h3> <span class="type">Unknown</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#property_STACK">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l173"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:173</code></a> </p> </div> <div class="description"> <p>A stack of Y.Widget objects representing the current hierarchy of modal widgets presently displayed on the screen</p> </div> </div> <div id="property_UI_EVENTS" class="property item inherited"> <h3 class="name"><code>UI_EVENTS</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#property_UI_EVENTS">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetUIEvents.js.html#l52"><code>widget&#x2F;js&#x2F;WidgetUIEvents.js:52</code></a> </p> </div> <div class="description"> <p>Map of DOM events that should be fired as Custom Events by the <br /> Widget instance.</p> </div> </div> </div> <div id="attrs" class="api-class-tabpanel"> <h2 class="off-left">Attributes</h2> <div id="attr_align" class="attr item inherited"> <a name="config_align"></a> <h3 class="name"><code>align</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#attr_align">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l48"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:48</code></a> </p> </div> <div class="description"> <p>The alignment configuration for this widget.</p> <p>The <code>align</code> attribute is used to align a reference point on the widget, with the reference point on another <code>Node</code>, or the viewport. The object which <code>align</code> expects has the following properties:</p> <ul> <li><p><strong><code>node</code></strong>: The <code>Node</code> to which the widget is to be aligned. If set to <code>null</code>, or not provided, the widget is aligned to the viewport.</p></li> <li><p><strong><code>points</code></strong>: A two element Array, defining the two points on the widget and <code>Node</code>/viewport which are to be aligned. The first element is the point on the widget, and the second element is the point on the <code>Node</code>/viewport. Supported alignment points are defined as static properties on <code>WidgetPositionAlign</code>.</p></li> </ul> </div> <p><strong>Default:</strong> null</p> <div class="emits box"> <h4>Fires event <code>alignChange</code></h4> <p> Fires when the value for the configuration attribute <code>align</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> <div class="example"> <h4>Example:</h4> <div class="example-content"> <p>Aligns the top-right corner of the widget with the top-left corner of the viewport:</p> <pre class="code"><code class="prettyprint">myWidget.set('align', { points: [Y.WidgetPositionAlign.TR, Y.WidgetPositionAlign.TL] }); </code></pre> </div> </div> </div> <div id="attr_alignOn" class="attr item inherited"> <a name="config_alignOn"></a> <h3 class="name"><code>alignOn</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#attr_alignOn">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l97"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:97</code></a> </p> </div> <div class="description"> <p>An Array of Objects corresponding to the <code>Node</code>s and events that will cause the alignment of this widget to be synced to the DOM.</p> <p>The <code>alignOn</code> Attribute is expected to be an Array of Objects with the following properties:</p> <ul> <li><p><strong><code>eventName</code></strong>: The String event name to listen for.</p></li> <li><p><strong><code>node</code></strong>: The optional <code>Node</code> that will fire the event, it can be a <code>Node</code> reference or a selector String. This will default to the widget's <code>boundingBox</code>.</p></li> </ul> </div> <p><strong>Default:</strong> []</p> <div class="emits box"> <h4>Fires event <code>alignOnChange</code></h4> <p> Fires when the value for the configuration attribute <code>alignOn</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> <div class="example"> <h4>Example:</h4> <div class="example-content"> <p>Sync this widget's alignment on window resize:</p> <pre class="code"><code class="prettyprint">myWidget.set('alignOn', [ { node : Y.one('win'), eventName: 'resize' } ]); </code></pre> </div> </div> </div> <div id="attr_bodyContent" class="attr item inherited"> <a name="config_bodyContent"></a> <h3 class="name"><code>bodyContent</code></h3> <span class="type">HTML</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#attr_bodyContent">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l171"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:171</code></a> </p> </div> <div class="description"> <p>The content to be added to the body section. This will replace any existing content in the body. If you want to append, or insert new content, use the <a href="#method_setStdModContent">setStdModContent</a> method.</p> </div> <p><strong>Default:</strong> undefined</p> <div class="emits box"> <h4>Fires event <code>bodyContentChange</code></h4> <p> Fires when the value for the configuration attribute <code>bodyContent</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_boundingBox" class="attr item inherited"> <a name="config_boundingBox"></a> <h3 class="name"><code>boundingBox</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_boundingBox">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l175"><code>widget&#x2F;js&#x2F;Widget.js:175</code></a> </p> </div> <div class="description"> <p>The outermost DOM node for the Widget, used for sizing and positioning of a Widget as well as a containing element for any decorator elements used for skinning.</p> </div> <div class="emits box"> <h4>Fires event <code>boundingBoxChange</code></h4> <p> Fires when the value for the configuration attribute <code>boundingBox</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_buttons" class="attr item inherited"> <a name="config_buttons"></a> <h3 class="name"><code>buttons</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#attr_buttons">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l55"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:55</code></a> </p> <p>Available since 3.4.0</p> </div> <div class="description"> <p>Collection containing a widget's buttons.</p> <p>The collection is an Object which contains an Array of <code>Y.Node</code>s for every <code>WidgetStdMod</code> section (header, body, footer) which has one or more buttons. All button nodes have the <code>Y.Plugin.Button</code> plugin applied.</p> <p>This attribute is very flexible in the values it will accept. <code>buttons</code> can be specified as a single Array, or an Object of Arrays keyed to a particular section.</p> <p>All specified values will be normalized to this type of structure:</p> <pre class="code"><code class="prettyprint">{ header: [...], footer: [...] } </code></pre> <p>A button can be specified as a <code>Y.Node</code>, config Object, or String name for a predefined button on the <code>BUTTONS</code> prototype property. When a config Object is provided, it will be merged with any defaults provided by a button with the same <code>name</code> defined on the <code>BUTTONS</code> property.</p> <p>See <code>addButton()</code> for the detailed list of configuration properties.</p> <p>For convenience, a widget's buttons will always persist and remain rendered after header/body/footer content updates. Buttons should be removed by updating this attribute or using the <code>removeButton()</code> method.</p> </div> <p><strong>Default:</strong> {}</p> <div class="emits box"> <h4>Fires event <code>buttonsChange</code></h4> <p> Fires when the value for the configuration attribute <code>buttons</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> <div class="example"> <h4>Example:</h4> <div class="example-content"> <pre class="code"><code class="prettyprint">{ // Uses predefined "close" button by string name. header: ['close'], footer: [ { name : 'cancel', label : 'Cancel', action: 'hide' }, { name : 'okay', label : 'Okay', isDefault: true, events: { click: function (e) { this.hide(); } } } ] } </code></pre> </div> </div> </div> <div id="attr_centered" class="attr item inherited"> <a name="config_centered"></a> <h3 class="name"><code>centered</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionAlign.html#attr_centered">WidgetPositionAlign</a>: <a href="..&#x2F;files&#x2F;widget-position-align_js_Widget-PositionAlign.js.html#l79"><code>widget-position-align&#x2F;js&#x2F;Widget-PositionAlign.js:79</code></a> </p> </div> <div class="description"> <p>A convenience Attribute, which can be used as a shortcut for the <code>align</code> Attribute.</p> <p>If set to <code>true</code>, the widget is centered in the viewport. If set to a <code>Node</code> reference or valid selector String, the widget will be centered within the <code>Node</code>. If set to <code>false</code>, no center positioning is applied.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>centeredChange</code></h4> <p> Fires when the value for the configuration attribute <code>centered</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_constrain" class="attr item inherited"> <a name="config_constrain"></a> <h3 class="name"><code>constrain</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#attr_constrain">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l56"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:56</code></a> </p> </div> <div class="description"> <p>The node to constrain the widget's bounding box to, when setting xy. Can also be set to true, to constrain to the viewport.</p> </div> <p><strong>Default:</strong> null</p> <div class="emits box"> <h4>Fires event <code>constrainChange</code></h4> <p> Fires when the value for the configuration attribute <code>constrain</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_contentBox" class="attr item inherited"> <a name="config_contentBox"></a> <h3 class="name"><code>contentBox</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_contentBox">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l189"><code>widget&#x2F;js&#x2F;Widget.js:189</code></a> </p> </div> <div class="description"> <p>A DOM node that is a direct descendant of a Widget's bounding box that houses its content.</p> </div> <div class="emits box"> <h4>Fires event <code>contentBoxChange</code></h4> <p> Fires when the value for the configuration attribute <code>contentBox</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_defaultButton" class="attr item inherited"> <a name="config_defaultButton"></a> <h3 class="name"><code>defaultButton</code></h3> <span class="type"><a href="../classes/Node.html" class="crosslink">Node</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetButtons.html#attr_defaultButton">WidgetButtons</a>: <a href="..&#x2F;files&#x2F;widget-buttons_js_widget-buttons.js.html#l121"><code>widget-buttons&#x2F;js&#x2F;widget-buttons.js:121</code></a> </p> <p>Available since 3.5.0</p> </div> <div class="description"> <p>The current default button as configured through this widget's <code>buttons</code>.</p> <p>A button can be configured as the default button in the following ways:</p> <ul> <li><p>As a config Object with an <code>isDefault</code> property: <code>{label: 'Okay', isDefault: true}</code>.</p></li> <li><p>As a Node with a <code>data-default</code> attribute: <code>&lt;button data-default="true"&gt;Okay&lt;/button&gt;</code>.</p></li> </ul> <p>This attribute is <strong>read-only</strong>; anytime there are changes to this widget's <code>buttons</code>, the <code>defaultButton</code> will be updated if needed.</p> <p><strong>Note:</strong> If two or more buttons are configured to be the default button, the last one wins.</p> </div> <p><strong>Default:</strong> null</p> <div class="emits box"> <h4>Fires event <code>defaultButtonChange</code></h4> <p> Fires when the value for the configuration attribute <code>defaultButton</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_destroyed" class="attr item inherited"> <a name="config_destroyed"></a> <h3 class="name"><code>destroyed</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#attr_destroyed">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l158"><code>base&#x2F;js&#x2F;BaseCore.js:158</code></a> </p> </div> <div class="description"> <p>Flag indicating whether or not this object has been through the destroy lifecycle phase.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>destroyedChange</code></h4> <p> Fires when the value for the configuration attribute <code>destroyed</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_disabled" class="attr item inherited"> <a name="config_disabled"></a> <h3 class="name"><code>disabled</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_disabled">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l231"><code>widget&#x2F;js&#x2F;Widget.js:231</code></a> </p> </div> <div class="description"> <p>Boolean indicating if the Widget should be disabled. The disabled implementation is left to the specific classes extending widget.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>disabledChange</code></h4> <p> Fires when the value for the configuration attribute <code>disabled</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_fillHeight" class="attr item inherited"> <a name="config_fillHeight"></a> <h3 class="name"><code>fillHeight</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#attr_fillHeight">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l182"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:182</code></a> </p> </div> <div class="description"> <p>The section (WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER) which should be resized to fill the height of the standard module, when a height is set on the Widget. If a height is not set on the widget, then all sections are sized based on their content.</p> </div> <p><strong>Default:</strong> WidgetStdMod.BODY</p> <div class="emits box"> <h4>Fires event <code>fillHeightChange</code></h4> <p> Fires when the value for the configuration attribute <code>fillHeight</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_focused" class="attr item inherited"> <a name="config_focused"></a> <h3 class="name"><code>focused</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_focused">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l218"><code>widget&#x2F;js&#x2F;Widget.js:218</code></a> </p> </div> <div class="description"> <p>Boolean indicating if the Widget, or one of its descendants, has focus.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>focusedChange</code></h4> <p> Fires when the value for the configuration attribute <code>focused</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_focusOn" class="attr item inherited"> <a name="config_focusOn"></a> <h3 class="name"><code>focusOn</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#attr_focusOn">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l96"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:96</code></a> </p> </div> <div class="description"> <p>An array of objects corresponding to the nodes and events that will trigger a re-focus back on the widget. The implementer can supply an array of objects, with each object having the following properties:</p> <p>eventName: (string, required): The eventName to listen to.</p> <p>node: (Y.Node, optional): The Y.Node that will fire the event (defaults to the boundingBox of the widget)</p> <p>By default, this attribute consists of two objects which will cause the widget to re-focus if anything outside the widget is clicked on or focussed upon.</p> </div> <div class="emits box"> <h4>Fires event <code>focusOnChange</code></h4> <p> Fires when the value for the configuration attribute <code>focusOn</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_footerContent" class="attr item inherited"> <a name="config_footerContent"></a> <h3 class="name"><code>footerContent</code></h3> <span class="type">HTML</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#attr_footerContent">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l160"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:160</code></a> </p> </div> <div class="description"> <p>The content to be added to the footer section. This will replace any existing content in the footer. If you want to append, or insert new content, use the <a href="#method_setStdModContent">setStdModContent</a> method.</p> </div> <p><strong>Default:</strong> undefined</p> <div class="emits box"> <h4>Fires event <code>footerContentChange</code></h4> <p> Fires when the value for the configuration attribute <code>footerContent</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_headerContent" class="attr item inherited"> <a name="config_headerContent"></a> <h3 class="name"><code>headerContent</code></h3> <span class="type">HTML</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStdMod.html#attr_headerContent">WidgetStdMod</a>: <a href="..&#x2F;files&#x2F;widget-stdmod_js_Widget-StdMod.js.html#l149"><code>widget-stdmod&#x2F;js&#x2F;Widget-StdMod.js:149</code></a> </p> </div> <div class="description"> <p>The content to be added to the header section. This will replace any existing content in the header. If you want to append, or insert new content, use the <a href="#method_setStdModContent">setStdModContent</a> method.</p> </div> <p><strong>Default:</strong> undefined</p> <div class="emits box"> <h4>Fires event <code>headerContentChange</code></h4> <p> Fires when the value for the configuration attribute <code>headerContent</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_height" class="attr item inherited"> <a name="config_height"></a> <h3 class="name"><code>height</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_height">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l252"><code>widget&#x2F;js&#x2F;Widget.js:252</code></a> </p> </div> <div class="description"> <p>String with units, or number, representing the height of the Widget. If a number is provided, the default unit, defined by the Widgets DEF_UNIT, property is used.</p> </div> <p><strong>Default:</strong> EMPTY_STR</p> <div class="emits box"> <h4>Fires event <code>heightChange</code></h4> <p> Fires when the value for the configuration attribute <code>height</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_hideOn" class="attr item inherited"> <a name="config_hideOn"></a> <h3 class="name"><code>hideOn</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetAutohide.html#attr_hideOn">WidgetAutohide</a>: <a href="..&#x2F;files&#x2F;widget-autohide_js_Widget-Autohide.js.html#l57"><code>widget-autohide&#x2F;js&#x2F;Widget-Autohide.js:57</code></a> </p> </div> <div class="description"> <p>An array of objects corresponding to the nodes, events, and keycodes to hide the widget on. The implementer can supply an array of objects, with each object having the following properties:</p> <p>eventName: (string, required): The eventName to listen to.</p> <p>node: (Y.Node, optional): The Y.Node that will fire the event (defaults to the boundingBox of the widget)</p> <p>keyCode: (string, optional): If listening for key events, specify the keyCode</p> <p>By default, this attribute consists of one object which will cause the widget to hide if the escape key is pressed.</p> </div> <div class="emits box"> <h4>Fires event <code>hideOnChange</code></h4> <p> Fires when the value for the configuration attribute <code>hideOn</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_id" class="attr item inherited"> <a name="config_id"></a> <h3 class="name"><code>id</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_id">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l149"><code>widget&#x2F;js&#x2F;Widget.js:149</code></a> </p> </div> <div class="description"> </div> <p><strong>Default:</strong> Generated using guid()</p> <div class="emits box"> <h4>Fires event <code>idChange</code></h4> <p> Fires when the value for the configuration attribute <code>id</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_initialized" class="attr item inherited"> <a name="config_initialized"></a> <h3 class="name"><code>initialized</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;BaseCore.html#attr_initialized">BaseCore</a>: <a href="..&#x2F;files&#x2F;base_js_BaseCore.js.html#l144"><code>base&#x2F;js&#x2F;BaseCore.js:144</code></a> </p> </div> <div class="description"> <p>Flag indicating whether or not this object has been through the init lifecycle phase.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>initializedChange</code></h4> <p> Fires when the value for the configuration attribute <code>initialized</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_locale" class="attr item deprecated inherited"> <a name="config_locale"></a> <h3 class="name"><code>locale</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <span class="flag deprecated" title="Use Y.config.lang and Y.Intl externalization support">deprecated</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_locale">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetLocale.js.html#l14"><code>widget&#x2F;js&#x2F;WidgetLocale.js:14</code></a> </p> <p>Deprecated: Use Y.config.lang and Y.Intl externalization support</p> </div> <div class="description"> <p>The default locale for the widget. NOTE: Using get/set on the "strings" attribute will return/set strings for this locale.</p> </div> <p><strong>Default:</strong> &quot;en&quot;</p> <div class="emits box"> <h4>Fires event <code>localeChange</code></h4> <p> Fires when the value for the configuration attribute <code>locale</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_maskNode" class="attr item inherited"> <a name="config_maskNode"></a> <h3 class="name"><code>maskNode</code></h3> <span class="type">Y.Node</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#attr_maskNode">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l73"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:73</code></a> </p> </div> <div class="description"> <p>Returns a Y.Node instance of the node being used as the mask.</p> </div> <div class="emits box"> <h4>Fires event <code>maskNodeChange</code></h4> <p> Fires when the value for the configuration attribute <code>maskNode</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_modal" class="attr item inherited"> <a name="config_modal"></a> <h3 class="name"><code>modal</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetModality.html#attr_modal">WidgetModality</a>: <a href="..&#x2F;files&#x2F;widget-modality_js_Widget-Modality.js.html#l85"><code>widget-modality&#x2F;js&#x2F;Widget-Modality.js:85</code></a> </p> </div> <div class="description"> <p>Whether the widget should be modal or not.</p> </div> <div class="emits box"> <h4>Fires event <code>modalChange</code></h4> <p> Fires when the value for the configuration attribute <code>modal</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_preventOverlap" class="attr item inherited"> <a name="config_preventOverlap"></a> <h3 class="name"><code>preventOverlap</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPositionConstrain.html#attr_preventOverlap">WidgetPositionConstrain</a>: <a href="..&#x2F;files&#x2F;widget-position-constrain_js_Widget-PositionConstrain.js.html#l68"><code>widget-position-constrain&#x2F;js&#x2F;Widget-PositionConstrain.js:68</code></a> </p> </div> <div class="description"> <p>If set to true, and WidgetPositionAlign is also added to the Widget, constrained positioning will attempt to prevent the widget's bounding box from overlapping the element to which it has been aligned, by flipping the orientation of the alignment for corner based alignments</p> </div> <div class="emits box"> <h4>Fires event <code>preventOverlapChange</code></h4> <p> Fires when the value for the configuration attribute <code>preventOverlap</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_render" class="attr item inherited"> <a name="config_render"></a> <h3 class="name"><code>render</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_render">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l286"><code>widget&#x2F;js&#x2F;Widget.js:286</code></a> </p> </div> <div class="description"> <p>Whether or not to render the widget automatically after init, and optionally, to which parent node.</p> </div> <div class="emits box"> <h4>Fires event <code>renderChange</code></h4> <p> Fires when the value for the configuration attribute <code>render</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_rendered" class="attr item inherited"> <a name="config_rendered"></a> <h3 class="name"><code>rendered</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <span class="flag readonly">readonly</span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_rendered">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l161"><code>widget&#x2F;js&#x2F;Widget.js:161</code></a> </p> </div> <div class="description"> <p>Flag indicating whether or not this Widget has been through the render lifecycle phase.</p> </div> <p><strong>Default:</strong> false</p> <div class="emits box"> <h4>Fires event <code>renderedChange</code></h4> <p> Fires when the value for the configuration attribute <code>rendered</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_shim" class="attr item inherited"> <a name="config_shim"></a> <h3 class="name"><code>shim</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#attr_shim">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l74"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:74</code></a> </p> </div> <div class="description"> <p>Boolean flag to indicate whether or not a shim should be added to the Widgets boundingBox, to protect it from select box bleedthrough.</p> </div> <p><strong>Default:</strong> false, for all browsers other than IE6, for which a shim is enabled by default.</p> <div class="emits box"> <h4>Fires event <code>shimChange</code></h4> <p> Fires when the value for the configuration attribute <code>shim</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_srcNode" class="attr item inherited"> <a name="config_srcNode"></a> <h3 class="name"><code>srcNode</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Node.html" class="crosslink">Node</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_srcNode">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_WidgetHTMLParser.js.html#l58"><code>widget&#x2F;js&#x2F;WidgetHTMLParser.js:58</code></a> </p> </div> <div class="description"> <p>The DOM node to parse for configuration values, passed to the Widget's HTML_PARSER definition</p> </div> <div class="emits box"> <h4>Fires event <code>srcNodeChange</code></h4> <p> Fires when the value for the configuration attribute <code>srcNode</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_strings" class="attr item inherited"> <a name="config_strings"></a> <h3 class="name"><code>strings</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_strings">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l274"><code>widget&#x2F;js&#x2F;Widget.js:274</code></a> </p> </div> <div class="description"> <p>Collection of strings used to label elements of the Widget's UI.</p> </div> <p><strong>Default:</strong> null</p> <div class="emits box"> <h4>Fires event <code>stringsChange</code></h4> <p> Fires when the value for the configuration attribute <code>strings</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_tabIndex" class="attr item inherited"> <a name="config_tabIndex"></a> <h3 class="name"><code>tabIndex</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_tabIndex">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l202"><code>widget&#x2F;js&#x2F;Widget.js:202</code></a> </p> </div> <div class="description"> <p>Number (between -32767 to 32767) indicating the widget's position in the default tab flow. The value is used to set the "tabIndex" attribute on the widget's bounding box. Negative values allow the widget to receive DOM focus programmatically (by calling the focus method), while being removed from the default tab flow. A value of null removes the "tabIndex" attribute from the widget's bounding box.</p> </div> <p><strong>Default:</strong> null</p> <div class="emits box"> <h4>Fires event <code>tabIndexChange</code></h4> <p> Fires when the value for the configuration attribute <code>tabIndex</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_visible" class="attr item inherited"> <a name="config_visible"></a> <h3 class="name"><code>visible</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_visible">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l242"><code>widget&#x2F;js&#x2F;Widget.js:242</code></a> </p> </div> <div class="description"> <p>Boolean indicating whether or not the Widget is visible.</p> </div> <p><strong>Default:</strong> TRUE</p> <div class="emits box"> <h4>Fires event <code>visibleChange</code></h4> <p> Fires when the value for the configuration attribute <code>visible</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_width" class="attr item inherited"> <a name="config_width"></a> <h3 class="name"><code>width</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#attr_width">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l263"><code>widget&#x2F;js&#x2F;Widget.js:263</code></a> </p> </div> <div class="description"> <p>String with units, or number, representing the width of the Widget. If a number is provided, the default unit, defined by the Widgets DEF_UNIT, property is used.</p> </div> <p><strong>Default:</strong> EMPTY_STR</p> <div class="emits box"> <h4>Fires event <code>widthChange</code></h4> <p> Fires when the value for the configuration attribute <code>width</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_x" class="attr item inherited"> <a name="config_x"></a> <h3 class="name"><code>x</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#attr_x">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l50"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:50</code></a> </p> </div> <div class="description"> <p>Page X co-ordinate for the widget. This attribute acts as a facade for the xy attribute. Changes in position can be monitored by listening for xyChange events.</p> </div> <p><strong>Default:</strong> 0</p> <div class="emits box"> <h4>Fires event <code>xChange</code></h4> <p> Fires when the value for the configuration attribute <code>x</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_xy" class="attr item inherited"> <a name="config_xy"></a> <h3 class="name"><code>xy</code></h3> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#attr_xy">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l86"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:86</code></a> </p> </div> <div class="description"> <p>Page XY co-ordinate pair for the widget.</p> </div> <p><strong>Default:</strong> [0,0]</p> <div class="emits box"> <h4>Fires event <code>xyChange</code></h4> <p> Fires when the value for the configuration attribute <code>xy</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_y" class="attr item inherited"> <a name="config_y"></a> <h3 class="name"><code>y</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetPosition.html#attr_y">WidgetPosition</a>: <a href="..&#x2F;files&#x2F;widget-position_js_Widget-Position.js.html#l68"><code>widget-position&#x2F;js&#x2F;Widget-Position.js:68</code></a> </p> </div> <div class="description"> <p>Page Y co-ordinate for the widget. This attribute acts as a facade for the xy attribute. Changes in position can be monitored by listening for xyChange events.</p> </div> <p><strong>Default:</strong> 0</p> <div class="emits box"> <h4>Fires event <code>yChange</code></h4> <p> Fires when the value for the configuration attribute <code>y</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> <div id="attr_zIndex" class="attr item inherited"> <a name="config_zIndex"></a> <h3 class="name"><code>zIndex</code></h3> <span class="type"><a href="../classes/Number.html" class="crosslink">Number</a></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;WidgetStack.html#attr_zIndex">WidgetStack</a>: <a href="..&#x2F;files&#x2F;widget-stack_js_Widget-Stack.js.html#l86"><code>widget-stack&#x2F;js&#x2F;Widget-Stack.js:86</code></a> </p> </div> <div class="description"> <p>The z-index to apply to the Widgets boundingBox. Non-numerical values for zIndex will be converted to 0</p> </div> <p><strong>Default:</strong> 0</p> <div class="emits box"> <h4>Fires event <code>zIndexChange</code></h4> <p> Fires when the value for the configuration attribute <code>zIndex</code> is changed. You can listen for the event using the <code>on</code> method if you wish to be notified before the attribute's value has changed, or using the <code>after</code> method if you wish to be notified after the attribute's value has changed. </p> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> An Event Facade object with the following attribute-specific properties added: </div> <ul class="params-list"> <li class="param"> <code class="param-name">prevVal</code> <span class="type">Any</span> <div class="param-description">The value of the attribute, prior to it being set.</div> </li> <li class="param"> <code class="param-name">newVal</code> <span class="type">Any</span> <div class="param-description">The value the attribute is to be set to.</div> </li> <li class="param"> <code class="param-name">attrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">The name of the attribute being set.</div> </li> <li class="param"> <code class="param-name">subAttrName</code> <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span> <div class="param-description">If setting a property within the attribute's value, the name of the sub-attribute property being set.</div> </li> </ul> </li> </ul> </div> </div> </div> </div> <div id="events" class="api-class-tabpanel"> <h2 class="off-left">Events</h2> <div id="event_destroy" class="events item inherited"> <h3 class="name"><code>destroy</code></h3> <span class="type"></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Base.html#event_destroy">Base</a>: <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l285"><code>base&#x2F;js&#x2F;Base.js:285</code></a> </p> </div> <div class="description"> <p> Lifecycle event for the destroy phase, fired prior to destruction. Invoking the preventDefault method on the event object provided to subscribers will prevent destruction from proceeding. </p> <p> Subscribers to the "after" moment of this event, will be notified after destruction is complete (and as a result cannot prevent destruction). </p> </div> <div class="params"> <h4>Event Payload:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object</p> </div> </li> </ul> </div> </div> <div id="event_init" class="events item inherited"> <h3 class="name"><code>init</code></h3> <span class="type"></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Base.html#event_init">Base</a>: <a href="..&#x2F;files&#x2F;base_js_Base.js.html#l202"><code>base&#x2F;js&#x2F;Base.js:202</code></a> </p> </div> <div class="description"> <p> Lifecycle event for the init phase, fired prior to initialization. Invoking the preventDefault() method on the event object provided to subscribers will prevent initialization from occuring. </p> <p> Subscribers to the "after" momemt of this event, will be notified after initialization of the object is complete (and therefore cannot prevent initialization). </p> </div> <div class="params"> <h4>Event Payload:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>Event object, with a cfg property which refers to the configuration object passed to the constructor.</p> </div> </li> </ul> </div> </div> <div id="event_widget:contentUpdate" class="events item inherited"> <h3 class="name"><code>widget:contentUpdate</code></h3> <span class="type"></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#event_widget:contentUpdate">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l397"><code>widget&#x2F;js&#x2F;Widget.js:397</code></a> </p> </div> <div class="description"> <p>Notification event, which widget implementations can fire, when they change the content of the widget. This event has no default behavior and cannot be prevented, so the "on" or "after" moments are effectively equivalent (with on listeners being invoked before after listeners).</p> </div> <div class="params"> <h4>Event Payload:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The Event Facade</p> </div> </li> </ul> </div> </div> <div id="event_widget:render" class="events item inherited"> <h3 class="name"><code>widget:render</code></h3> <span class="type"></span> <div class="meta"> <p>Inherited from <a href="..&#x2F;classes&#x2F;Widget.html#event_widget:render">Widget</a>: <a href="..&#x2F;files&#x2F;widget_js_Widget.js.html#l541"><code>widget&#x2F;js&#x2F;Widget.js:541</code></a> </p> </div> <div class="description"> <p>Lifecycle event for the render phase, fired prior to rendering the UI for the widget (prior to invoking the widget's renderer method).</p> <p> Subscribers to the "on" moment of this event, will be notified before the widget is rendered. </p> <p> Subscribers to the "after" moment of this event, will be notified after rendering is complete. </p> </div> <div class="params"> <h4>Event Payload:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">e</code> <span class="type"><a href="../classes/EventFacade.html" class="crosslink">EventFacade</a></span> <div class="param-description"> <p>The Event Facade</p> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script> <script>prettyPrint();</script> <script src="..&#x2F;assets/js/yui-prettify.js"></script> <script src="..&#x2F;assets/../api.js"></script> <script src="..&#x2F;assets/js/api-filter.js"></script> <script src="..&#x2F;assets/js/api-list.js"></script> <script src="..&#x2F;assets/js/api-search.js"></script> <script src="..&#x2F;assets/js/apidocs.js"></script> </body> </html>
artefactual-labs/trac
sites/all/libraries/yui/api/classes/Panel.html
HTML
gpl-2.0
928,243
<?php namespace TYPO3\CMS\Backend\Form\Container; /* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * The TYPO3 project - inspiring people to share! */ /** * Entry container to a flex form element. This container is created by * SingleFieldContainer if a type='flex' field is rendered. * * It either forks a FlexFormTabsContainer or a FlexFormNoTabsContainer. */ class FlexFormEntryContainer extends AbstractContainer { /** * Entry method * * @return array As defined in initializeResultArray() of AbstractNode */ public function render() { $flexFormDataStructureArray = $this->data['parameterArray']['fieldConf']['config']['ds']; $options = $this->data; $options['flexFormDataStructureArray'] = $flexFormDataStructureArray; $options['flexFormRowData'] = $this->data['parameterArray']['itemFormElValue']; $options['renderType'] = 'flexFormNoTabsContainer'; // Enable tabs if there is more than one sheet if (count($flexFormDataStructureArray['sheets']) > 1) { $options['renderType'] = 'flexFormTabsContainer'; } $resultArray = $this->nodeFactory->create($options)->render(); $resultArray['requireJsModules'][] = 'TYPO3/CMS/Backend/FormEngineFlexForm'; return $resultArray; } }
dalder/TYPO3.CMS
typo3/sysext/backend/Classes/Form/Container/FlexFormEntryContainer.php
PHP
gpl-2.0
1,545
# jeedom_Nissan_leaf_connect Plugin Jeedom pour une Nissan Leaf
cedric222/jeedom_Nissan_leaf_connect
README.md
Markdown
gpl-2.0
64
html, body { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; background: #fff; font-size: 0.9em; min-width: 900px; font-size: 11px; margin: 5px; } strong { font-weight: bold; } a { text-decoration: none; font-weight: bold; color: #4e518d; font-size: 13px; } em { font-style: italic; } p { margin: 5px; } a:hover { text-decoration: underline; } .clear { clear: both; } .shaded { margin: 2px; padding: 4px; background: #f0f0f0; border: 1px solid #e0e0e0; } #main { margin: 10px; margin-top: 40px; } h3 { font-size: 14px; font-weight: bold; } #search { float: right; color: black; font-size: 0.5em; margin-right: 5px; } .roundedcorner_success_content a:hover { text-decoration: none; } .tablelist { width: 100%; } .tablelist thead td { font-weight: bold; } .tablelist td { background: #f0f0f0; padding: 4px; border: 1px solid #d0d0d0; } .tablelist tr.alt { background: #e0e0e0; } #search span { padding-left: 20px; line-height: 16px; } #search input { position: relative; border:1px solid #DDDDDD; background-color:#EEEEEE; font-size: 10px; margin-top:7px; padding:5px 7px; width:200px; } a.networkadd { float: right; } .formbox { padding: 5px; border-top: 1px dashed #ccc; clear: both; } .formelement { float: left; width: 100%; } .formelement .formcontent.toggle { margin-right: 205px; } .formtoggle { width: 200px; margin-left: -200px; float: left; } #header { height: 60px; line-height: 60px; color: white; font-size: 2em; font-weight: bold; border-width: 0px 0px 7px 0px; border-style: solid; margin-left: 20px; margin-right: 20px; } #header h1 { padding-bottom: 9px; margin: 15px 0 20px; border-bottom: 1px solid #eee; font-size: 36px; font-family: inherit; font-weight: 500; line-height: 1.1; color: black; } #navigation { margin-left: 20px; margin-right: 20px; } #navigation ul { margin: 0; padding: 0; list-style: none; float: right; } #navigation ul li { float: left; } #navigation ul li a { display: block; margin-right: 3px; padding: 0 1em; line-height: 2.1em; text-decoration: none; font-weight: bold; color: #4e518d; font-size: 13px; } .lilacheader { background: blue; } .lilacheader { font-size: 2em; font-weight: bold; border-width: 0px 0px 1px 0px; background: #6699CC; border-style: solid; border-color: grey; padding: 3px; } .lilacwindow { margin: 10px; border-style: solid; border-width: 1px; border-color: grey black grey black; } .lilacwindowheader { padding: 2px; color: white; font-weight: bold; background: #C8A2C8; border-width: 0px 0px 1px 0px; border-color: grey; border-style: solid; } .jobs { width: 100%; } .lilacwindowcontent { padding: 3px; } .subnav { font-size: 0.9em; font-weight: normal; margin-left: -5px; } .subnav a { font-weight: normal; font-size: 11px; } .subnav li{ float: left; margin-right: 15px; padding-bottom: 5px; } .subnav li.selected { font-weight: bold; text-decoration: underline; } .listing { width: 100%; border: 1px; border-spacing: 0px; border-collapse: collapse; } tr.altTop td { font-weight: bold; border-bottom: 1px solid #aaaaaa; margin: 0px; } tr.altRow1:hover *, tr.altRow2:hover * { background-color: #b5bedf; cursor: pointer; } tr.altRow1 { background-color: #cccccc; border-bottom: 1px solid #aaaaaa; margin: 0px; } tr.altRow2 { background-color: #f0f0f0; border-bottom: 1px solid #aaaaaa; margin: 0px; } .doublePane { width: 100%; border-spacing: 0px; border-collapse: collapse; } .lilac-tree-server { background-image:url(../images/tree-server.gif); } .calendar { border-spacing: 0px; border-collapse: collapse; } .calendar, .calendar td { border: 1px solid gray; } .calendar td { margin: 0px; font-size: 0.8em; width: 30px; height: 30px; } .calendarnoday { background: gray; } .addons { width: 100%; } .addon { background: #ccc; padding: 4px; border: 1px solid grey; border-width: 1px 0px; } .addon .title { font-weight: bold; } .roundedcorner_lilac_box { margin: 10px; } .roundedcorner_lilac_top div, .roundedcorner_lilac_top, .roundedcorner_lilac_bottom div, .roundedcorner_lilac_bottom { width: 100%; height: 10px; font-size: 1px; } .roundedcorner_lilac_content { margin: 0 10px; background: white; } .roundedcorner_lilac_content h2 { color: black; padding-top: 10px; padding-bottom: 2px; padding-left: 10px; margin-bottom: 10px; font-weight:bold; border-bottom: 1px solid #AAAAAA; text-transform:uppercase; font-size: 10px; } .roundedcorner_inner_box { background: #fff; margin: 0px; } .roundedcorner_inner_top div, .roundedcorner_inner_top, .roundedcorner_inner_bottom div, .roundedcorner_inner_bottom { width: 100%; height: 10px; font-size: 1px; } .roundedcorner_inner_content { margin: 0 10px; } .roundedcorner_error_box { background: #FF0033; margin: 10px; color: white; font-weight: bold; } .roundedcorner_error_top div { background: url(../images/roundedcorner_error_tl.png) no-repeat top left; } .roundedcorner_error_top { background: url(../images/roundedcorner_error_tr.png) no-repeat top right; } .roundedcorner_error_bottom div { background: url(../images/roundedcorner_error_bl.png) no-repeat bottom left; } .roundedcorner_error_bottom { background: url(../images/roundedcorner_error_br.png) no-repeat bottom right; } .roundedcorner_error_top div, .roundedcorner_error_top, .roundedcorner_error_bottom div, .roundedcorner_error_bottom { width: 100%; height: 10px; font-size: 1px; } .roundedcorner_error_content { margin: 0 10px; } .roundedcorner_success_box { background: #66cc66; margin: 10px; color: white; font-weight: bold; } .roundedcorner_success_top div { background: url(../images/roundedcorner_success_tl.png) no-repeat top left; } .roundedcorner_success_top { background: url(../images/roundedcorner_success_tr.png) no-repeat top right; } .roundedcorner_success_bottom div { background: url(../images/roundedcorner_success_bl.png) no-repeat bottom left; } .roundedcorner_success_bottom { background: url(../images/roundedcorner_success_br.png) no-repeat bottom right; } .roundedcorner_success_top div, .roundedcorner_success_top, .roundedcorner_success_bottom div, .roundedcorner_success_bottom { width: 100%; height: 10px; font-size: 1px; } .roundedcorner_success_content { margin: 0 10px; } .roundedcorner_warning_box { background: #ffff99; margin: 10px; color: black; font-weight: bold; } .roundedcorner_warning_top div { background: url(../images/roundedcorner_warning_tl.png) no-repeat top left; } .roundedcorner_warning_top { background: url(../images/roundedcorner_warning_tr.png) no-repeat top right; } .roundedcorner_warning_bottom div { background: url(../images/roundedcorner_warning_bl.png) no-repeat bottom left; } .roundedcorner_warning_bottom { background: url(../images/roundedcorner_warning_br.png) no-repeat bottom right; } .roundedcorner_warning_top div, .roundedcorner_warning_top, .roundedcorner_warning_bottom div, .roundedcorner_warning_bottom { width: 100%; height: 10px; font-size: 1px; } .roundedcorner_warning_content { margin: 0 10px; } .icon-monitor-edit { background: transparent url(../images/icons/monitor_edit.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-application-home { background: transparent url(../images/icons/application_home.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-book { background: transparent url(../images/icons/book.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-clock { background: transparent url(../images/icons/clock.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-application-lightning { background: transparent url(../images/icons/application_lightning.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-user { background: transparent url(../images/icons/user.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-group { background: transparent url(../images/icons/group.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-server-link { background: transparent url(../images/icons/server_link.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-brick { background: transparent url(../images/icons/brick.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-database-save { background: transparent url(../images/icons/database_save.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-database-lightning { background: transparent url(../images/icons/database_lightning.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-package { background: transparent url(../images/icons/package.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-server-go { background: transparent url(../images/icons/server_go.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-computer-add { background: transparent url(../images/icons/computer_add.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-bricks { background: transparent url(../images/icons/bricks.png) no-repeat top left; padding-left: 20px; line-height: 16px; } .icon-database-go { background: transparent url(../images/icons/database-go.png) no-repeat top left; padding-left: 20px; line-height: 16px; } li.general { float: left; margin: 10px; width: 320px; min-height: 50px; } .roundedcorner_lilac_box { margin: 10px; } .nicebutton, input[type=submit], input[type=button] { color: #555555; font-size: 10px; border: 1px solid #d3d3d3; padding: .2em .6em .3em .6em; line-height: 1.4em; cursor: pointer; -webkit-border-radius: 4px; -moz-border-radius: 4px; ms-border-radius: 4px; border-radius: 4px; width:auto; overflow:visible; text-transform:capitalize; font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; } input[type=submit]:hover, input[type=button]:hover { color: #212121; border: 1px solid #999999; } input[type=submit]:active, input[type=button]:active { color: #222222; border: 1px solid #dddddd; }
QuentinHoarau/lilac
style/lilac.css
CSS
gpl-2.0
11,082
#ifndef _MTL_EDITOR_CORE_COMMANDS_HPP #define _MTL_EDITOR_CORE_COMMANDS_HPP #pragma once namespace KlayGE { class MtlEditorCore; enum MtlEditorCommandCode { ECC_SetCurrFrame, ECC_SelectMesh, ECC_SetAmbientMaterial, ECC_SetDiffuseMaterial, ECC_SetSpecularMaterial, ECC_SetShininessMaterial, ECC_SetEmitMaterial, ECC_SetOpacityMaterial, ECC_SetDiffuseTexture, ECC_SetSpecularTexture, ECC_SetShininessTexture, ECC_SetNormalTexture, ECC_SetHeightTexture, ECC_SetEmitTexture, ECC_SetOpacityTexture, ECC_NumCommands }; extern char const * editor_command_name[ECC_NumCommands]; class MtlEditorCommand { public: explicit MtlEditorCommand(MtlEditorCore* core); ~MtlEditorCommand() { } virtual char const * Name() const = 0; virtual MtlEditorCommandCode Code() const = 0; virtual void Execute() = 0; virtual void Revoke() = 0; protected: MtlEditorCore* core_; }; typedef shared_ptr<MtlEditorCommand> MtlEditorCommandPtr; template <MtlEditorCommandCode code> class MtlEditorCommandConcrete : public MtlEditorCommand { public: explicit MtlEditorCommandConcrete(MtlEditorCore* core) : MtlEditorCommand(core) { } virtual char const * Name() const KLAYGE_OVERRIDE { return editor_command_name[code]; } virtual MtlEditorCommandCode Code() const KLAYGE_OVERRIDE { return code; } }; class MtlEditorCommandSetCurrFrame : public MtlEditorCommandConcrete<ECC_SetCurrFrame> { public: MtlEditorCommandSetCurrFrame(MtlEditorCore* core, float frame); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: float frame_; float old_frame_; }; class MtlEditorCommandSelectMesh : public MtlEditorCommandConcrete<ECC_SelectMesh> { public: MtlEditorCommandSelectMesh(MtlEditorCore* core, uint32_t mesh_id); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mesh_id_; uint32_t old_mesh_id_; }; class MtlEditorCommandSetAmbientMaterial : public MtlEditorCommandConcrete<ECC_SetAmbientMaterial> { public: MtlEditorCommandSetAmbientMaterial(MtlEditorCore* core, uint32_t mtl_id, float* value); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; float3 ambient_; float3 old_ambient_; }; class MtlEditorCommandSetDiffuseMaterial : public MtlEditorCommandConcrete<ECC_SetDiffuseMaterial> { public: MtlEditorCommandSetDiffuseMaterial(MtlEditorCore* core, uint32_t mtl_id, float* value); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; float3 diffuse_; float3 old_diffuse_; }; class MtlEditorCommandSetSpecularMaterial : public MtlEditorCommandConcrete<ECC_SetSpecularMaterial> { public: MtlEditorCommandSetSpecularMaterial(MtlEditorCore* core, uint32_t mtl_id, float* value); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; float3 specular_; float3 old_specular_; }; class MtlEditorCommandSetShininessMaterial : public MtlEditorCommandConcrete<ECC_SetShininessMaterial> { public: MtlEditorCommandSetShininessMaterial(MtlEditorCore* core, uint32_t mtl_id, float value); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; float shininess_; float old_shininess_; }; class MtlEditorCommandSetEmitMaterial : public MtlEditorCommandConcrete<ECC_SetEmitMaterial> { public: MtlEditorCommandSetEmitMaterial(MtlEditorCore* core, uint32_t mtl_id, float* value); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; float3 emit_; float3 old_emit_; }; class MtlEditorCommandSetOpacityMaterial : public MtlEditorCommandConcrete<ECC_SetOpacityMaterial> { public: MtlEditorCommandSetOpacityMaterial(MtlEditorCore* core, uint32_t mtl_id, float value); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; float opacity_; float old_opacity_; }; class MtlEditorCommandSetDiffuseTexture : public MtlEditorCommandConcrete<ECC_SetDiffuseTexture> { public: MtlEditorCommandSetDiffuseTexture(MtlEditorCore* core, uint32_t mtl_id, char const * name); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; std::string name_; std::string old_name_; }; class MtlEditorCommandSetSpecularTexture : public MtlEditorCommandConcrete<ECC_SetSpecularTexture> { public: MtlEditorCommandSetSpecularTexture(MtlEditorCore* core, uint32_t mtl_id, char const * name); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; std::string name_; std::string old_name_; }; class MtlEditorCommandSetShininessTexture : public MtlEditorCommandConcrete<ECC_SetShininessTexture> { public: MtlEditorCommandSetShininessTexture(MtlEditorCore* core, uint32_t mtl_id, char const * name); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; std::string name_; std::string old_name_; }; class MtlEditorCommandSetNormalTexture : public MtlEditorCommandConcrete<ECC_SetNormalTexture> { public: MtlEditorCommandSetNormalTexture(MtlEditorCore* core, uint32_t mtl_id, char const * name); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; std::string name_; std::string old_name_; }; class MtlEditorCommandSetHeightTexture : public MtlEditorCommandConcrete<ECC_SetHeightTexture> { public: MtlEditorCommandSetHeightTexture(MtlEditorCore* core, uint32_t mtl_id, char const * name); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; std::string name_; std::string old_name_; }; class MtlEditorCommandSetEmitTexture : public MtlEditorCommandConcrete<ECC_SetEmitTexture> { public: MtlEditorCommandSetEmitTexture(MtlEditorCore* core, uint32_t mtl_id, char const * name); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; std::string name_; std::string old_name_; }; class MtlEditorCommandSetOpacityTexture : public MtlEditorCommandConcrete<ECC_SetOpacityTexture> { public: MtlEditorCommandSetOpacityTexture(MtlEditorCore* core, uint32_t mtl_id, char const * name); virtual void Execute() KLAYGE_OVERRIDE; virtual void Revoke() KLAYGE_OVERRIDE; private: uint32_t mtl_id_; std::string name_; std::string old_name_; }; } #endif // _MTL_EDITOR_CORE_COMMANDS_HPP
zhangf911/KlayGE
KlayGE/Tools/src/MtlEditor/MtlEditorCore/Commands.hpp
C++
gpl-2.0
7,072
<?php module_head("Links to other develoment tools");?> <br> <h4>Ambientes de Desenvolvimento Integrados (IDEs em ingl&ecirc;s)</h4> <table width="100%" border=0 cellspacing=2 cellpadding=2> <tr align=left> <th class=header>Link</th> <th class=header width="100%">Coment&aacute;rio</th> </tr> <tr valign=top> <td class=even><a HREF="http://www.eclipse.org/">Eclipse</a></td> <td class=even>um IDE aberto e extens&iacute;vel para qualquer coisa e para nada em particular</td> </tr> <tr valign=top> <td class=odd><a HREF="http://www.newplanetsoftware.com/jcc/">Code Crusader</a></td> <td class=odd>um IDE OpenSource da New Planet Software</td> </tr> <tr valign=top> <td class=even><a HREF="http://vdkbuilder.sourceforge.net/">VDK Builder</a></td> <td class=even>uma ferramenta de Desenvolvimento R&aacute;pido de Aplica&ccedil;&otilde;es (RAD) baseada no VDK</td> </tr> <tr valign=top> <td class=odd><a HREF="http://primates.ximian.com/~jpr/gide/">gIDE</a></td> <td class=odd>para desenvolvimento em C/GNOME (o Anjuta parece superar o gIDE)</td> </tr> <tr valign=top> <td class=even><a HREF="http://www.anjuta.org/">Anjuta</a></td> <td class=even>um IDE de C/C++ para GNU/Linux. Foi escrito para GTK/GNOME</td> </tr> <tr valign=top> <td class=odd><a HREF="http://www.rhide.com/">RHIDE</a></td> <td class=odd>um IDE para DJGPP e outros sistemas baseados em GNU</td> </tr> <tr valign=top> <td class=even><a HREF="http://www.identicalsoftware.com/xwpe/">XWPE</a></td> <td class=even>um ambiente de desenvolvimento para sistemas UNIX</td> </tr> <tr valign=top> <td class=odd><a HREF="http://wxstudio.sourceforge.net/">wxstudio</a></td> <td class=odd>um ambiente de desenvolvimento integrado multiplataforma </td> </tr> <tr valign=top> <td class=even><a HREF="http://sourcenav.sourceforge.net/">Source-Navigator</a></td> <td class=even>uma ferramenta GPL para an&aacute;lise de c&oacute;digo</td> </tr> </table> <br> <h4>Geradores de Interface Gr&aacute;fica (GUI em ingl&ecirc;s)</h4> <table width="100%" border=0 cellspacing=2 cellpadding=2> <tr align=left> <th class=header>Link</th> <th class=header width="100%">Coment&aacute;rio</th> </tr> <tr valign=top> <td class=even><a HREF="http://www.trolltech.com/products/qt/designer.html">Qt Designer</a></td> <td class=even>um gerador de interfaces Qt</td> </tr> <tr valign=top> <td class=odd><a HREF="http://qtarch.sourceforge.net/">QT-Architect</a></td> <td class=odd>um vers&aacute;til arquitecto de ecr&atilde;s para componentes Qt</td> </tr> <tr valign=top> <td class=even><a HREF="http://web.inter.nl.net/users/eavdmeer/">EBuilder</a></td> <td class=even>uma forma r&aacute;pida, eficiente e f&aacute;cil de usar para desenhar graficamente componentes para a biblioteca GUI da Qt</td> </tr> <tr valign=top> <td class=odd><a HREF="http://glade.gnome.org/">Glade</a></td> <td class=odd>gerador de interfaces GTK+</td> </tr> </table> <br> <h4>Outros</h4> <table width="100%" border=0 cellspacing=2 cellpadding=2> <tr align=left> <th class=header>Link</th> <th class=header width="100%">Coment&aacute;rio</th> </tr> <tr valign=top> <td class=odd><a HREF="http://members.nextra.at/johsixt//kdbg.html">KDbg</a></td> <td class=odd>um <i>debugger</i> para KDE</td> </tr> <tr valign=top> <td class=even><a HREF="http://cervisia.sourceforge.net/">Cervisia</a></td> <td class=even>um <i>frontend</i> gr&aacute;fico para cvs com boa integra&ccedil;&atilde;o no KDE</td> </tr> <tr valign=top> <td class=odd><a HREF="http://www.lincvs.org/">LinCVS</a></td> <td class=odd>um <i>frontend</i> gr&aacute;fico para cvs</td> </tr> <tr valign=top> <td class=even><a HREF="http://www.gnu.org/software/ddd/">DDD</a></td> <td class=even>um <i>debugger</i> com apresenta&ccedil;&atilde;o gr&aacute;fica de dados</td> </tr> <tr valign=top> <td class=odd><a HREF="http://uml.sourceforge.net/">Umbrello</a></td> <td class=odd>uma ferramenta de modela&ccedil;&atilde;o UML</td> </tr> <tr valign=top> <td class=even><a HREF="http://kprof.sourceforge.net/">KProf</a></td> <td class=even>uma ferramenta visual de an&aacute;lise e optimiza&ccedil;&atilde;o de desempenho (<i>profiling</i>) para KDE</td> </tr> </table> <?php module_tail(); ?>
KDE/kdev-www
lang/pt/links_tools.html
HTML
gpl-2.0
4,628
/* * Milkymist VJ SoC (Software) * Copyright (C) 2007, 2008, 2009, 2010 Sebastien Bourdeauducq * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __HW_SYSCTL_H #define __HW_SYSCTL_H #define CSR_REG(x) ((void __iomem *)(x)) #define CSR_GPIO_IN CSR_REG(0xe0001000) #define CSR_GPIO_OUT CSR_REG(0xe0001004) #define CSR_GPIO_INTEN CSR_REG(0xe0001008) #define CSR_TIMER0_CONTROL CSR_REG(0xe0001010) #define CSR_TIMER0_COMPARE CSR_REG(0xe0001014) #define CSR_TIMER0_COUNTER CSR_REG(0xe0001018) #define CSR_TIMER1_CONTROL CSR_REG(0xe0001020) #define CSR_TIMER1_COMPARE CSR_REG(0xe0001024) #define CSR_TIMER1_COUNTER CSR_REG(0xe0001028) #define CSR_TIMER(id, reg) CSR_REG(0xe0001010 + (0x10 * (id)) + (reg)) #define CSR_TIMER_CONTROL(id) CSR_TIMER(id, 0x0) #define CSR_TIMER_COMPARE(id) CSR_TIMER(id, 0x4) #define CSR_TIMER_COUNTER(id) CSR_TIMER(id, 0x8) #define TIMER_ENABLE (0x01) #define TIMER_AUTORESTART (0x02) #define CSR_ICAP CSR_REG(0xe0001034) #define ICAP_READY (0x01) #define ICAP_CE (0x10000) #define ICAP_WRITE (0x20000) #define CSR_CAPABILITIES CSR_REG(0xe0001038) #define CSR_SYSTEM_ID CSR_REG(0xe000103c) #endif /* __HW_SYSCTL_H */
fallen/linux-milkymist
arch/lm32/include/asm/hw/sysctl.h
C
gpl-2.0
1,726
#include <linux/module.h> #include <linux/slab.h> #include <linux/fb.h> #include <linux/vmalloc.h> #include <video/vga.h> struct regstate { __u8 *vga_font0; __u8 *vga_font1; __u8 *vga_text; __u8 *vga_cmap; __u8 *attr; __u8 *crtc; __u8 *gfx; __u8 *seq; __u8 misc; }; static inline unsigned char vga_rcrtcs(void __iomem *regbase, unsigned short iobase, unsigned char reg) { vga_w(regbase, iobase + 0x4, reg); return vga_r(regbase, iobase + 0x5); } static inline void vga_wcrtcs(void __iomem *regbase, unsigned short iobase, unsigned char reg, unsigned char val) { vga_w(regbase, iobase + 0x4, reg); vga_w(regbase, iobase + 0x5, val); } static void save_vga_text(struct vgastate *state, void __iomem *fbbase) { struct regstate *saved = (struct regstate *) state->vidstate; int i; u8 misc, attr10, gr4, gr5, gr6, seq1, seq2, seq4; unsigned short iobase; misc = vga_r(state->vgabase, VGA_MIS_R); iobase = (misc & 1) ? 0x3d0 : 0x3b0; vga_r(state->vgabase, iobase + 0xa); vga_w(state->vgabase, VGA_ATT_W, 0x00); attr10 = vga_rattr(state->vgabase, 0x10); vga_r(state->vgabase, iobase + 0xa); vga_w(state->vgabase, VGA_ATT_W, 0x20); if (attr10 & 1) return; gr4 = vga_rgfx(state->vgabase, VGA_GFX_PLANE_READ); gr5 = vga_rgfx(state->vgabase, VGA_GFX_MODE); gr6 = vga_rgfx(state->vgabase, VGA_GFX_MISC); seq2 = vga_rseq(state->vgabase, VGA_SEQ_PLANE_WRITE); seq4 = vga_rseq(state->vgabase, VGA_SEQ_MEMORY_MODE); seq1 = vga_rseq(state->vgabase, VGA_SEQ_CLOCK_MODE); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x1); vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 | 1 << 5); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x3); if (state->flags & VGA_SAVE_FONT0) { vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x4); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x2); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < 4 * 8192; i++) saved->vga_font0[i] = vga_r(fbbase, i); } if (state->flags & VGA_SAVE_FONT1) { vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x8); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x3); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < state->memsize; i++) saved->vga_font1[i] = vga_r(fbbase, i); } if (state->flags & VGA_SAVE_TEXT) { vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x1); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < 8192; i++) saved->vga_text[i] = vga_r(fbbase, i); vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x2); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x1); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < 8192; i++) saved->vga_text[8192+i] = vga_r(fbbase + 2 * 8192, i); } vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, seq2); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, seq4); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, gr4); vga_wgfx(state->vgabase, VGA_GFX_MODE, gr5); vga_wgfx(state->vgabase, VGA_GFX_MISC, gr6); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x1); vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 & ~(1 << 5)); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x3); vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1); } static void restore_vga_text(struct vgastate *state, void __iomem *fbbase) { struct regstate *saved = (struct regstate *) state->vidstate; int i; u8 gr1, gr3, gr4, gr5, gr6, gr8; u8 seq1, seq2, seq4; gr1 = vga_rgfx(state->vgabase, VGA_GFX_SR_ENABLE); gr3 = vga_rgfx(state->vgabase, VGA_GFX_DATA_ROTATE); gr4 = vga_rgfx(state->vgabase, VGA_GFX_PLANE_READ); gr5 = vga_rgfx(state->vgabase, VGA_GFX_MODE); gr6 = vga_rgfx(state->vgabase, VGA_GFX_MISC); gr8 = vga_rgfx(state->vgabase, VGA_GFX_BIT_MASK); seq2 = vga_rseq(state->vgabase, VGA_SEQ_PLANE_WRITE); seq4 = vga_rseq(state->vgabase, VGA_SEQ_MEMORY_MODE); seq1 = vga_rseq(state->vgabase, VGA_SEQ_CLOCK_MODE); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x1); vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 | 1 << 5); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x3); if (state->depth == 4) { vga_wgfx(state->vgabase, VGA_GFX_DATA_ROTATE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_BIT_MASK, 0xff); vga_wgfx(state->vgabase, VGA_GFX_SR_ENABLE, 0x00); } if (state->flags & VGA_SAVE_FONT0) { vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x4); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x2); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < 4 * 8192; i++) vga_w(fbbase, i, saved->vga_font0[i]); } if (state->flags & VGA_SAVE_FONT1) { vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x8); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x3); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < state->memsize; i++) vga_w(fbbase, i, saved->vga_font1[i]); } if (state->flags & VGA_SAVE_TEXT) { vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x1); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < 8192; i++) vga_w(fbbase, i, saved->vga_text[i]); vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, 0x2); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, 0x6); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, 0x1); vga_wgfx(state->vgabase, VGA_GFX_MODE, 0x0); vga_wgfx(state->vgabase, VGA_GFX_MISC, 0x5); for (i = 0; i < 8192; i++) vga_w(fbbase, i, saved->vga_text[8192+i]); } vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x1); vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1 & ~(1 << 5)); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x3); vga_wgfx(state->vgabase, VGA_GFX_SR_ENABLE, gr1); vga_wgfx(state->vgabase, VGA_GFX_DATA_ROTATE, gr3); vga_wgfx(state->vgabase, VGA_GFX_PLANE_READ, gr4); vga_wgfx(state->vgabase, VGA_GFX_MODE, gr5); vga_wgfx(state->vgabase, VGA_GFX_MISC, gr6); vga_wgfx(state->vgabase, VGA_GFX_BIT_MASK, gr8); vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, seq1); vga_wseq(state->vgabase, VGA_SEQ_PLANE_WRITE, seq2); vga_wseq(state->vgabase, VGA_SEQ_MEMORY_MODE, seq4); } static void save_vga_mode(struct vgastate *state) { struct regstate *saved = (struct regstate *) state->vidstate; unsigned short iobase; int i; saved->misc = vga_r(state->vgabase, VGA_MIS_R); if (saved->misc & 1) iobase = 0x3d0; else iobase = 0x3b0; for (i = 0; i < state->num_crtc; i++) saved->crtc[i] = vga_rcrtcs(state->vgabase, iobase, i); vga_r(state->vgabase, iobase + 0xa); vga_w(state->vgabase, VGA_ATT_W, 0x00); for (i = 0; i < state->num_attr; i++) { vga_r(state->vgabase, iobase + 0xa); saved->attr[i] = vga_rattr(state->vgabase, i); } vga_r(state->vgabase, iobase + 0xa); vga_w(state->vgabase, VGA_ATT_W, 0x20); for (i = 0; i < state->num_gfx; i++) saved->gfx[i] = vga_rgfx(state->vgabase, i); for (i = 0; i < state->num_seq; i++) saved->seq[i] = vga_rseq(state->vgabase, i); } static void restore_vga_mode(struct vgastate *state) { struct regstate *saved = (struct regstate *) state->vidstate; unsigned short iobase; int i; vga_w(state->vgabase, VGA_MIS_W, saved->misc); if (saved->misc & 1) iobase = 0x3d0; else iobase = 0x3b0; vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, saved->seq[VGA_SEQ_CLOCK_MODE] | 0x20); vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x01); vga_r(state->vgabase, iobase + 0xa); vga_w(state->vgabase, VGA_ATT_W, 0x00); for (i = 2; i < state->num_seq; i++) vga_wseq(state->vgabase, i, saved->seq[i]); vga_wcrtcs(state->vgabase, iobase, 17, saved->crtc[17] & ~0x80); for (i = 0; i < state->num_crtc; i++) vga_wcrtcs(state->vgabase, iobase, i, saved->crtc[i]); for (i = 0; i < state->num_gfx; i++) vga_wgfx(state->vgabase, i, saved->gfx[i]); for (i = 0; i < state->num_attr; i++) { vga_r(state->vgabase, iobase + 0xa); vga_wattr(state->vgabase, i, saved->attr[i]); } vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x03); vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, saved->seq[VGA_SEQ_CLOCK_MODE] & ~(1 << 5)); vga_r(state->vgabase, iobase + 0xa); vga_w(state->vgabase, VGA_ATT_W, 0x20); } static void save_vga_cmap(struct vgastate *state) { struct regstate *saved = (struct regstate *) state->vidstate; int i; vga_w(state->vgabase, VGA_PEL_MSK, 0xff); vga_w(state->vgabase, VGA_PEL_IR, 0x00); for (i = 0; i < 768; i++) saved->vga_cmap[i] = vga_r(state->vgabase, VGA_PEL_D); } static void restore_vga_cmap(struct vgastate *state) { struct regstate *saved = (struct regstate *) state->vidstate; int i; vga_w(state->vgabase, VGA_PEL_MSK, 0xff); vga_w(state->vgabase, VGA_PEL_IW, 0x00); for (i = 0; i < 768; i++) vga_w(state->vgabase, VGA_PEL_D, saved->vga_cmap[i]); } static void vga_cleanup(struct vgastate *state) { if (state->vidstate != NULL) { struct regstate *saved = (struct regstate *) state->vidstate; vfree(saved->vga_font0); vfree(saved->vga_font1); vfree(saved->vga_text); vfree(saved->vga_cmap); vfree(saved->attr); kfree(saved); state->vidstate = NULL; } } int save_vga(struct vgastate *state) { struct regstate *saved; saved = kzalloc(sizeof(struct regstate), GFP_KERNEL); if (saved == NULL) return 1; state->vidstate = (void *)saved; if (state->flags & VGA_SAVE_CMAP) { saved->vga_cmap = vmalloc(768); if (!saved->vga_cmap) { vga_cleanup(state); return 1; } save_vga_cmap(state); } if (state->flags & VGA_SAVE_MODE) { int total; if (state->num_attr < 21) state->num_attr = 21; if (state->num_crtc < 25) state->num_crtc = 25; if (state->num_gfx < 9) state->num_gfx = 9; if (state->num_seq < 5) state->num_seq = 5; total = state->num_attr + state->num_crtc + state->num_gfx + state->num_seq; saved->attr = vmalloc(total); if (!saved->attr) { vga_cleanup(state); return 1; } saved->crtc = saved->attr + state->num_attr; saved->gfx = saved->crtc + state->num_crtc; saved->seq = saved->gfx + state->num_gfx; save_vga_mode(state); } if (state->flags & VGA_SAVE_FONTS) { void __iomem *fbbase; if (state->memsize && state->memsize < 4 * 8192) { vga_cleanup(state); return 1; } if (!state->memsize) state->memsize = 8 * 8192; if (!state->membase) state->membase = 0xA0000; fbbase = ioremap(state->membase, state->memsize); if (!fbbase) { vga_cleanup(state); return 1; } if (state->flags & VGA_SAVE_FONT0) { saved->vga_font0 = vmalloc(4 * 8192); if (!saved->vga_font0) { iounmap(fbbase); vga_cleanup(state); return 1; } } if (state->flags & VGA_SAVE_FONT1) { saved->vga_font1 = vmalloc(state->memsize); if (!saved->vga_font1) { iounmap(fbbase); vga_cleanup(state); return 1; } } if (state->flags & VGA_SAVE_TEXT) { saved->vga_text = vmalloc(8192 * 2); if (!saved->vga_text) { iounmap(fbbase); vga_cleanup(state); return 1; } } save_vga_text(state, fbbase); iounmap(fbbase); } return 0; } int restore_vga (struct vgastate *state) { if (state->vidstate == NULL) return 1; if (state->flags & VGA_SAVE_MODE) restore_vga_mode(state); if (state->flags & VGA_SAVE_FONTS) { void __iomem *fbbase = ioremap(state->membase, state->memsize); if (!fbbase) { vga_cleanup(state); return 1; } restore_vga_text(state, fbbase); iounmap(fbbase); } if (state->flags & VGA_SAVE_CMAP) restore_vga_cmap(state); vga_cleanup(state); return 0; } EXPORT_SYMBOL(save_vga); EXPORT_SYMBOL(restore_vga); MODULE_AUTHOR("James Simmons <jsimmons@users.sf.net>"); MODULE_DESCRIPTION("VGA State Save/Restore"); MODULE_LICENSE("GPL");
leemgs/OptimusOneKernel-KandroidCommunity
drivers/video/vgastate.c
C
gpl-2.0
12,297
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "./Util", "./Seq", "./Observable", "./Observable"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Util_1 = require("./Util"); var Seq_1 = require("./Seq"); var Observable_1 = require("./Observable"); var Observable_2 = require("./Observable"); var Event = (function () { function Event(_subscriber, delegates) { this._subscriber = _subscriber; this.delegates = delegates || new Array(); } Event.prototype.Add = function (f) { this._addHandler(f); }; Object.defineProperty(Event.prototype, "Publish", { get: function () { return this; }, enumerable: true, configurable: true }); Event.prototype.Trigger = function (value) { Seq_1.iterate(function (f) { return f(value); }, this.delegates); }; Event.prototype._addHandler = function (f) { this.delegates.push(f); }; Event.prototype._removeHandler = function (f) { var index = this.delegates.indexOf(f); if (index > -1) this.delegates.splice(index, 1); }; Event.prototype.AddHandler = function (handler) { if (this._dotnetDelegates == null) { this._dotnetDelegates = new Map(); } var f = function (x) { handler(null, x); }; this._dotnetDelegates.set(handler, f); this._addHandler(f); }; Event.prototype.RemoveHandler = function (handler) { if (this._dotnetDelegates != null) { var f = this._dotnetDelegates.get(handler); if (f != null) { this._dotnetDelegates.delete(handler); this._removeHandler(f); } } }; Event.prototype._subscribeFromObserver = function (observer) { var _this = this; if (this._subscriber) return this._subscriber(observer); var callback = observer.OnNext; this._addHandler(callback); return Util_1.createDisposable(function () { return _this._removeHandler(callback); }); }; Event.prototype._subscribeFromCallback = function (callback) { var _this = this; this._addHandler(callback); return Util_1.createDisposable(function () { return _this._removeHandler(callback); }); }; Event.prototype.Subscribe = function (arg) { return typeof arg == "function" ? this._subscribeFromCallback(arg) : this._subscribeFromObserver(arg); }; return Event; }()); exports.default = Event; function add(callback, sourceEvent) { sourceEvent.Subscribe(new Observable_1.Observer(callback)); } exports.add = add; function choose(chooser, sourceEvent) { var source = sourceEvent; return new Event(function (observer) { return source.Subscribe(new Observable_1.Observer(function (t) { return Observable_2.protect(function () { return chooser(t); }, function (u) { if (u != null) observer.OnNext(u); }, observer.OnError); }, observer.OnError, observer.OnCompleted)); }, source.delegates); } exports.choose = choose; function filter(predicate, sourceEvent) { return choose(function (x) { return predicate(x) ? x : null; }, sourceEvent); } exports.filter = filter; function map(mapping, sourceEvent) { var source = sourceEvent; return new Event(function (observer) { return source.Subscribe(new Observable_1.Observer(function (t) { return Observable_2.protect(function () { return mapping(t); }, observer.OnNext, observer.OnError); }, observer.OnError, observer.OnCompleted)); }, source.delegates); } exports.map = map; function merge(event1, event2) { var source1 = event1; var source2 = event2; return new Event(function (observer) { var stopped = false, completed1 = false, completed2 = false; var h1 = source1.Subscribe(new Observable_1.Observer(function (v) { if (!stopped) observer.OnNext(v); }, function (e) { if (!stopped) { stopped = true; observer.OnError(e); } }, function () { if (!stopped) { completed1 = true; if (completed2) { stopped = true; observer.OnCompleted(); } } })); var h2 = source2.Subscribe(new Observable_1.Observer(function (v) { if (!stopped) observer.OnNext(v); }, function (e) { if (!stopped) { stopped = true; observer.OnError(e); } }, function () { if (!stopped) { completed2 = true; if (completed1) { stopped = true; observer.OnCompleted(); } } })); return Util_1.createDisposable(function () { h1.Dispose(); h2.Dispose(); }); }, source1.delegates.concat(source2.delegates)); } exports.merge = merge; function pairwise(sourceEvent) { var source = sourceEvent; return new Event(function (observer) { var last = null; return source.Subscribe(new Observable_1.Observer(function (next) { if (last != null) observer.OnNext([last, next]); last = next; }, observer.OnError, observer.OnCompleted)); }, source.delegates); } exports.pairwise = pairwise; function partition(predicate, sourceEvent) { return [filter(predicate, sourceEvent), filter(function (x) { return !predicate(x); }, sourceEvent)]; } exports.partition = partition; function scan(collector, state, sourceEvent) { var source = sourceEvent; return new Event(function (observer) { return source.Subscribe(new Observable_1.Observer(function (t) { Observable_2.protect(function () { return collector(state, t); }, function (u) { state = u; observer.OnNext(u); }, observer.OnError); }, observer.OnError, observer.OnCompleted)); }, source.delegates); } exports.scan = scan; function split(splitter, sourceEvent) { return [choose(function (v) { return splitter(v).valueIfChoice1; }, sourceEvent), choose(function (v) { return splitter(v).valueIfChoice2; }, sourceEvent)]; } exports.split = split; });
generalelectrix/wiggles
view/node_modules/fable-core/umd/Event.js
JavaScript
gpl-2.0
7,324
#!/usr/bin/env python3 # Copyright (c) 2008-9 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 2 of the License, or # version 3 of the License, or (at your option) any later version. It is # provided for educational purposes and is distributed in the hope that # it will be useful, but WITHOUT ANY WARRANTY; without even the implied # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See # the GNU General Public License for more details. import re from PyQt4.QtCore import (Qt, SIGNAL, pyqtSignature) from PyQt4.QtGui import (QApplication, QDialog) import ui_findandreplacedlg MAC = True try: from PyQt4.QtGui import qt_mac_set_native_menubar except ImportError: MAC = False class FindAndReplaceDlg(QDialog, ui_findandreplacedlg.Ui_FindAndReplaceDlg): def __init__(self, text, parent=None): super(FindAndReplaceDlg, self).__init__(parent) self.__text = str(text) self.__index = 0 self.setupUi(self) if not MAC: self.findButton.setFocusPolicy(Qt.NoFocus) self.replaceButton.setFocusPolicy(Qt.NoFocus) self.replaceAllButton.setFocusPolicy(Qt.NoFocus) self.closeButton.setFocusPolicy(Qt.NoFocus) self.updateUi() @pyqtSignature("QString") def on_findLineEdit_textEdited(self, text): self.__index = 0 self.updateUi() def makeRegex(self): findText = str(self.findLineEdit.text()) if str(self.syntaxComboBox.currentText()) == "Literal": findText = re.escape(findText) flags = re.MULTILINE|re.DOTALL|re.UNICODE if not self.caseCheckBox.isChecked(): flags |= re.IGNORECASE if self.wholeCheckBox.isChecked(): findText = r"\b{0}\b".format(findText) return re.compile(findText, flags) @pyqtSignature("") def on_findButton_clicked(self): regex = self.makeRegex() match = regex.search(self.__text, self.__index) if match is not None: self.__index = match.end() self.emit(SIGNAL("found"), match.start()) else: self.emit(SIGNAL("notfound")) @pyqtSignature("") def on_replaceButton_clicked(self): regex = self.makeRegex() self.__text = regex.sub(str(self.replaceLineEdit.text()), self.__text, 1) @pyqtSignature("") def on_replaceAllButton_clicked(self): regex = self.makeRegex() self.__text = regex.sub(str(self.replaceLineEdit.text()), self.__text) def updateUi(self): enable = not self.findLineEdit.text().isEmpty() self.findButton.setEnabled(enable) self.replaceButton.setEnabled(enable) self.replaceAllButton.setEnabled(enable) def text(self): return self.__text if __name__ == "__main__": import sys text = """US experience shows that, unlike traditional patents, software patents do not encourage innovation and R&D, quite the contrary. In particular they hurt small and medium-sized enterprises and generally newcomers in the market. They will just weaken the market and increase spending on patents and litigation, at the expense of technological innovation and research. Especially dangerous are attempts to abuse the patent system by preventing interoperability as a means of avoiding competition with technological ability. --- Extract quoted from Linus Torvalds and Alan Cox's letter to the President of the European Parliament http://www.effi.org/patentit/patents_torvalds_cox.html""" def found(where): print("Found at {0}".format(where)) def nomore(): print("No more found") app = QApplication(sys.argv) form = FindAndReplaceDlg(text) form.connect(form, SIGNAL("found"), found) form.connect(form, SIGNAL("notfound"), nomore) form.show() app.exec_() print(form.text())
paradiseOffice/Bash_and_Cplus-plus
CPP/full_examples/pyqt/chap07/findandreplacedlg.py
Python
gpl-2.0
4,146
using System; /// <summary> /// 当Csv文件校验失败时抛出该异常类型 /// </summary> public class InvalidCsvFileException : Exception { /// <summary> /// 构建异常实例 /// </summary> /// <param name="fileName">Csv文件名称</param> public InvalidCsvFileException(String fileName) : base(String.Format("配置文件 {0} 不是有效的配置文件(指纹校验失败)。", fileName)) { } }
xclouder/godbattle
Assets/Plugins/CVSTools/InvalidCsvFileException.cs
C#
gpl-2.0
451
// $Id: form.js,v 1.15 2010/04/09 12:24:53 dries Exp $ (function ($) { /** * Retrieves the summary for the first element. */ $.fn.drupalGetSummary = function () { var callback = this.data('summaryCallback'); return (this[0] && callback) ? $.trim(callback(this[0])) : ''; }; /** * Sets the summary for all matched elements. * * @param callback * Either a function that will be called each time the summary is * retrieved or a string (which is returned each time). */ $.fn.drupalSetSummary = function (callback) { var self = this; // To facilitate things, the callback should always be a function. If it's // not, we wrap it into an anonymous function which just returns the value. if (typeof callback != 'function') { var val = callback; callback = function () { return val; }; } return this .data('summaryCallback', callback) // To prevent duplicate events, the handlers are first removed and then // (re-)added. .unbind('formUpdated.summary') .bind('formUpdated.summary', function () { self.trigger('summaryUpdated'); }) // The actual summaryUpdated handler doesn't fire when the callback is // changed, so we have to do this manually. .trigger('summaryUpdated'); }; /** * Sends a 'formUpdated' event each time a form element is modified. */ Drupal.behaviors.formUpdated = { attach: function (context) { // These events are namespaced so that we can remove them later. var events = 'change.formUpdated click.formUpdated blur.formUpdated keyup.formUpdated'; $(context) // Since context could be an input element itself, it's added back to // the jQuery object and filtered again. .find(':input').andSelf().filter(':input') // To prevent duplicate events, the handlers are first removed and then // (re-)added. .unbind(events).bind(events, function () { $(this).trigger('formUpdated'); }); } }; /** * Prepopulate form fields with information from the visitor cookie. */ Drupal.behaviors.fillUserInfoFromCookie = { attach: function (context, settings) { $('form.user-info-from-cookie').once('user-info-from-cookie', function () { var formContext = this; $.each(['name', 'mail', 'homepage'], function () { var $element = $('[name=' + this + ']', formContext); var cookie = $.cookie('Drupal.visitor.' + this); if ($element.length && cookie) { $element.val(cookie); } }); }); } }; })(jQuery); ; // $Id: ajax.js,v 1.32 2010/12/04 01:49:21 webchick Exp $ (function ($) { /** * Provides AJAX page updating via jQuery $.ajax (Asynchronous JavaScript and XML). * * AJAX is a method of making a request via Javascript while viewing an HTML * page. The request returns an array of commands encoded in JSON, which is * then executed to make any changes that are necessary to the page. * * Drupal uses this file to enhance form elements with #ajax['path'] and * #ajax['wrapper'] properties. If set, this file will automatically be included * to provide AJAX capabilities. */ Drupal.ajax = Drupal.ajax || {}; /** * Attaches the AJAX behavior to each AJAX form element. */ Drupal.behaviors.AJAX = { attach: function (context, settings) { // Load all AJAX behaviors specified in the settings. for (var base in settings.ajax) { if (!$('#' + base + '.ajax-processed').length) { var element_settings = settings.ajax[base]; $(element_settings.selector).each(function () { element_settings.element = this; Drupal.ajax[base] = new Drupal.ajax(base, this, element_settings); }); $('#' + base).addClass('ajax-processed'); } } // Bind AJAX behaviors to all items showing the class. $('.use-ajax:not(.ajax-processed)').addClass('ajax-processed').each(function () { var element_settings = {}; // Clicked links look better with the throbber than the progress bar. element_settings.progress = { 'type': 'throbber' }; // For anchor tags, these will go to the target of the anchor rather // than the usual location. if ($(this).attr('href')) { element_settings.url = $(this).attr('href'); element_settings.event = 'click'; } var base = $(this).attr('id'); Drupal.ajax[base] = new Drupal.ajax(base, this, element_settings); }); // This class means to submit the form to the action using AJAX. $('.use-ajax-submit:not(.ajax-processed)').addClass('ajax-processed').each(function () { var element_settings = {}; // AJAX submits specified in this manner automatically submit to the // normal form action. element_settings.url = $(this.form).attr('action'); // Form submit button clicks need to tell the form what was clicked so // it gets passed in the POST request. element_settings.setClick = true; // Form buttons use the 'click' event rather than mousedown. element_settings.event = 'click'; // Clicked form buttons look better with the throbber than the progress bar. element_settings.progress = { 'type': 'throbber' }; var base = $(this).attr('id'); Drupal.ajax[base] = new Drupal.ajax(base, this, element_settings); }); } }; /** * AJAX object. * * All AJAX objects on a page are accessible through the global Drupal.ajax * object and are keyed by the submit button's ID. You can access them from * your module's JavaScript file to override properties or functions. * * For example, if your AJAX enabled button has the ID 'edit-submit', you can * redefine the function that is called to insert the new content like this * (inside a Drupal.behaviors attach block): * @code * Drupal.behaviors.myCustomAJAXStuff = { * attach: function (context, settings) { * Drupal.ajax['edit-submit'].commands.insert = function (ajax, response, status) { * new_content = $(response.data); * $('#my-wrapper').append(new_content); * alert('New content was appended to #my-wrapper'); * } * } * }; * @endcode */ Drupal.ajax = function (base, element, element_settings) { var defaults = { url: 'system/ajax', event: 'mousedown', keypress: true, selector: '#' + base, effect: 'none', speed: 'slow', method: 'replaceWith', progress: { type: 'bar', message: 'Please wait...' }, submit: { 'js': true } }; $.extend(this, defaults, element_settings); this.element = element; this.element_settings = element_settings; // Replacing 'nojs' with 'ajax' in the URL allows for an easy method to let // the server detect when it needs to degrade gracefully. // There are five scenarios to check for: // 1. /nojs/ // 2. /nojs$ - The end of a URL string. // 3. /nojs? - Followed by a query (with clean URLs enabled). // E.g.: path/nojs?destination=foobar // 4. /nojs& - Followed by a query (without clean URLs enabled). // E.g.: ?q=path/nojs&destination=foobar // 5. /nojs# - Followed by a fragment. // E.g.: path/nojs#myfragment this.url = element_settings.url.replace(/\/nojs(\/|$|\?|&|#)/g, '/ajax$1'); this.wrapper = '#' + element_settings.wrapper; // If there isn't a form, jQuery.ajax() will be used instead, allowing us to // bind AJAX to links as well. if (this.element.form) { this.form = $(this.element.form); } // Set the options for the ajaxSubmit function. // The 'this' variable will not persist inside of the options object. var ajax = this; ajax.options = { url: ajax.url, data: ajax.submit, beforeSerialize: function (element_settings, options) { return ajax.beforeSerialize(element_settings, options); }, beforeSubmit: function (form_values, element_settings, options) { ajax.ajaxing = true; return ajax.beforeSubmit(form_values, element_settings, options); }, beforeSend: function (xmlhttprequest) { ajax.ajaxing = true; return ajax.beforeSend(xmlhttprequest, ajax.options); }, success: function (response, status) { // Sanity check for browser support (object expected). // When using iFrame uploads, responses must be returned as a string. if (typeof response == 'string') { response = $.parseJSON(response); } return ajax.success(response, status); }, complete: function (response, status) { ajax.ajaxing = false; if (status == 'error' || status == 'parsererror') { return ajax.error(response, ajax.url); } }, dataType: 'json', type: 'POST' }; // Bind the ajaxSubmit function to the element event. $(ajax.element).bind(element_settings.event, function (event) { return ajax.eventResponse(this, event); }); // If necessary, enable keyboard submission so that AJAX behaviors // can be triggered through keyboard input as well as e.g. a mousedown // action. if (element_settings.keypress) { $(element_settings.element).keypress(function (event) { return ajax.keypressResponse(this, event); }); } }; /** * Handle a key press. * * The AJAX object will, if instructed, bind to a key press response. This * will test to see if the key press is valid to trigger this event and * if it is, trigger it for us and prevent other keypresses from triggering. */ Drupal.ajax.prototype.keypressResponse = function (element, event) { // Create a synonym for this to reduce code confusion. var ajax = this; // Detect enter key and space bar. if (event.which == 13 || event.which == 32) { $(ajax.element_settings.element).trigger(ajax.element_settings.event); return false; } }; /** * Handle an event that triggers an AJAX response. * * When an event that triggers an AJAX response happens, this method will * perform the actual AJAX call. It is bound to the event using * bind() in the constructor, and it uses the options specified on the * ajax object. */ Drupal.ajax.prototype.eventResponse = function (element, event) { // Create a synonym for this to reduce code confusion. var ajax = this; // Do not perform another ajax command if one is already in progress. if (ajax.ajaxing) { return false; } try { if (ajax.form) { // If setClick is set, we must set this to ensure that the button's // value is passed. if (ajax.setClick) { // Mark the clicked button. 'form.clk' is a special variable for // ajaxSubmit that tells the system which element got clicked to // trigger the submit. Without it there would be no 'op' or // equivalent. element.form.clk = element; } ajax.form.ajaxSubmit(ajax.options); } else { ajax.beforeSerialize(ajax.element, ajax.options); $.ajax(ajax.options); } } catch (e) { // Unset the ajax.ajaxing flag here because it won't be unset during // the complete response. ajax.ajaxing = false; alert("An error occurred while attempting to process " + ajax.options.url + ": " + e.message); } // For radio/checkbox, allow the default event. On IE, this means letting // it actually check the box. if (typeof element.type != 'undefined' && (element.type == 'checkbox' || element.type == 'radio')) { return true; } else { return false; } }; /** * Handler for the form serialization. * * Runs before the beforeSend() handler (see below), and unlike that one, runs * before field data is collected. */ Drupal.ajax.prototype.beforeSerialize = function (element, options) { // Allow detaching behaviors to update field values before collecting them. // This is only needed when field values are added to the POST data, so only // when there is a form such that this.form.ajaxSubmit() is used instead of // $.ajax(). When there is no form and $.ajax() is used, beforeSerialize() // isn't called, but don't rely on that: explicitly check this.form. if (this.form) { var settings = this.settings || Drupal.settings; Drupal.detachBehaviors(this.form, settings, 'serialize'); } // Prevent duplicate HTML ids in the returned markup. // @see drupal_html_id() options.data['ajax_html_ids[]'] = []; $('[id]').each(function () { options.data['ajax_html_ids[]'].push(this.id); }); // Allow Drupal to return new JavaScript and CSS files to load without // returning the ones already loaded. // @see ajax_base_page_theme() // @see drupal_get_css() // @see drupal_get_js() options.data['ajax_page_state[theme]'] = Drupal.settings.ajaxPageState.theme; options.data['ajax_page_state[theme_token]'] = Drupal.settings.ajaxPageState.theme_token; for (var key in Drupal.settings.ajaxPageState.css) { options.data['ajax_page_state[css][' + key + ']'] = 1; } for (var key in Drupal.settings.ajaxPageState.js) { options.data['ajax_page_state[js][' + key + ']'] = 1; } }; /** * Modify form values prior to form submission. */ Drupal.ajax.prototype.beforeSubmit = function (form_values, element, options) { // This function is left empty to make it simple to override for modules // that wish to add functionality here. } /** * Prepare the AJAX request before it is sent. */ Drupal.ajax.prototype.beforeSend = function (xmlhttprequest, options) { // Disable the element that received the change. $(this.element).addClass('progress-disabled').attr('disabled', true); // Insert progressbar or throbber. if (this.progress.type == 'bar') { var progressBar = new Drupal.progressBar('ajax-progress-' + this.element.id, eval(this.progress.update_callback), this.progress.method, eval(this.progress.error_callback)); if (this.progress.message) { progressBar.setProgress(-1, this.progress.message); } if (this.progress.url) { progressBar.startMonitoring(this.progress.url, this.progress.interval || 1500); } this.progress.element = $(progressBar.element).addClass('ajax-progress ajax-progress-bar'); this.progress.object = progressBar; $(this.element).after(this.progress.element); } else if (this.progress.type == 'throbber') { this.progress.element = $('<div class="ajax-progress ajax-progress-throbber"><div class="throbber">&nbsp;</div></div>'); if (this.progress.message) { $('.throbber', this.progress.element).after('<div class="message">' + this.progress.message + '</div>'); } $(this.element).after(this.progress.element); } }; /** * Handler for the form redirection completion. */ Drupal.ajax.prototype.success = function (response, status) { // Remove the progress element. if (this.progress.element) { $(this.progress.element).remove(); } if (this.progress.object) { this.progress.object.stopMonitoring(); } $(this.element).removeClass('progress-disabled').removeAttr('disabled'); Drupal.freezeHeight(); for (var i in response) { if (response[i]['command'] && this.commands[response[i]['command']]) { this.commands[response[i]['command']](this, response[i], status); } } // Reattach behaviors, if they were detached in beforeSerialize(). The // attachBehaviors() called on the new content from processing the response // commands is not sufficient, because behaviors from the entire form need // to be reattached. if (this.form) { var settings = this.settings || Drupal.settings; Drupal.attachBehaviors(this.form, settings); } Drupal.unfreezeHeight(); // Remove any response-specific settings so they don't get used on the next // call by mistake. this.settings = null; }; /** * Build an effect object which tells us how to apply the effect when adding new HTML. */ Drupal.ajax.prototype.getEffect = function (response) { var type = response.effect || this.effect; var speed = response.speed || this.speed; var effect = {}; if (type == 'none') { effect.showEffect = 'show'; effect.hideEffect = 'hide'; effect.showSpeed = ''; } else if (type == 'fade') { effect.showEffect = 'fadeIn'; effect.hideEffect = 'fadeOut'; effect.showSpeed = speed; } else { effect.showEffect = type + 'Toggle'; effect.hideEffect = type + 'Toggle'; effect.showSpeed = speed; } return effect; }; /** * Handler for the form redirection error. */ Drupal.ajax.prototype.error = function (response, uri) { alert(Drupal.ajaxError(response, uri)); // Remove the progress element. if (this.progress.element) { $(this.progress.element).remove(); } if (this.progress.object) { this.progress.object.stopMonitoring(); } // Undo hide. $(this.wrapper).show(); // Re-enable the element. $(this.element).removeClass('progress-disabled').removeAttr('disabled'); // Reattach behaviors, if they were detached in beforeSerialize(). if (this.form) { var settings = response.settings || this.settings || Drupal.settings; Drupal.attachBehaviors(this.form, settings); } }; /** * Provide a series of commands that the server can request the client perform. */ Drupal.ajax.prototype.commands = { /** * Command to insert new content into the DOM. */ insert: function (ajax, response, status) { // Get information from the response. If it is not there, default to // our presets. var wrapper = response.selector ? $(response.selector) : $(ajax.wrapper); var method = response.method || ajax.method; var effect = ajax.getEffect(response); // We don't know what response.data contains: it might be a string of text // without HTML, so don't rely on jQuery correctly iterpreting // $(response.data) as new HTML rather than a CSS selector. Also, if // response.data contains top-level text nodes, they get lost with either // $(response.data) or $('<div></div>').replaceWith(response.data). var new_content_wrapped = $('<div></div>').html(response.data); var new_content = new_content_wrapped.contents(); // For legacy reasons, the effects processing code assumes that new_content // consists of a single top-level element. Also, it has not been // sufficiently tested whether attachBehaviors() can be successfully called // with a context object that includes top-level text nodes. However, to // give developers full control of the HTML appearing in the page, and to // enable AJAX content to be inserted in places where DIV elements are not // allowed (e.g., within TABLE, TR, and SPAN parents), we check if the new // content satisfies the requirement of a single top-level element, and // only use the container DIV created above when it doesn't. For more // information, please see http://drupal.org/node/736066. if (new_content.length != 1 || new_content.get(0).nodeType != 1) { new_content = new_content_wrapped; } // If removing content from the wrapper, detach behaviors first. switch (method) { case 'html': case 'replaceWith': case 'replaceAll': case 'empty': case 'remove': var settings = response.settings || ajax.settings || Drupal.settings; Drupal.detachBehaviors(wrapper, settings); } // Add the new content to the page. wrapper[method](new_content); // Immediately hide the new content if we're using any effects. if (effect.showEffect != 'show') { new_content.hide(); } // Determine which effect to use and what content will receive the // effect, then show the new content. if ($('.ajax-new-content', new_content).length > 0) { $('.ajax-new-content', new_content).hide(); new_content.show(); $('.ajax-new-content', new_content)[effect.showEffect](effect.showSpeed); } else if (effect.showEffect != 'show') { new_content[effect.showEffect](effect.showSpeed); } // Attach all JavaScript behaviors to the new content, if it was successfully // added to the page, this if statement allows #ajax['wrapper'] to be // optional. if (new_content.parents('html').length > 0) { // Apply any settings from the returned JSON if available. var settings = response.settings || ajax.settings || Drupal.settings; Drupal.attachBehaviors(new_content, settings); } }, /** * Command to remove a chunk from the page. */ remove: function (ajax, response, status) { var settings = response.settings || ajax.settings || Drupal.settings; Drupal.detachBehaviors($(response.selector), settings); $(response.selector).remove(); }, /** * Command to mark a chunk changed. */ changed: function (ajax, response, status) { if (!$(response.selector).hasClass('ajax-changed')) { $(response.selector).addClass('ajax-changed'); if (response.asterisk) { $(response.selector).find(response.asterisk).append(' <span class="ajax-changed">*</span> '); } } }, /** * Command to provide an alert. */ alert: function (ajax, response, status) { alert(response.text, response.title); }, /** * Command to provide the jQuery css() function. */ css: function (ajax, response, status) { $(response.selector).css(response.argument); }, /** * Command to set the settings that will be used for other commands in this response. */ settings: function (ajax, response, status) { if (response.merge) { $.extend(true, Drupal.settings, response.settings); } else { ajax.settings = response.settings; } }, /** * Command to attach data using jQuery's data API. */ data: function (ajax, response, status) { $(response.selector).data(response.name, response.value); }, /** * Command to apply a jQuery method. */ invoke: function (ajax, response, status) { var $element = $(response.selector); $element[response.method].apply($element, response.arguments); }, /** * Command to restripe a table. */ restripe: function (ajax, response, status) { // :even and :odd are reversed because jQuery counts from 0 and // we count from 1, so we're out of sync. // Match immediate children of the parent element to allow nesting. $('> tbody > tr:visible, > tr:visible', $(response.selector)) .removeClass('odd even') .filter(':even').addClass('odd').end() .filter(':odd').addClass('even'); } }; })(jQuery); ;
alayham/Druteam-Agency
sites/default/files/js/js_xQakYN1JdEe2CVqj3lwGPtFTa7lWeqakpJ85uyNlf0c.js
JavaScript
gpl-2.0
22,398
package com.wordpress.xmlrpc.post; import java.util.Hashtable; import java.util.Vector; import com.wordpress.io.DraftDAO; import com.wordpress.model.Blog; import com.wordpress.model.Post; import com.wordpress.utils.log.Log; import com.wordpress.xmlrpc.BlogConn; public class GetPostConn extends BlogConn { private final Blog blog; private final String postID; public GetPostConn(String hint, String userHint, String passwordHint, Blog blog, String postID) { super(hint, userHint, passwordHint); this.blog = blog; this.postID = postID; if(blog.isHTTPBasicAuthRequired()) { this.setHttp401Password(blog.getHTTPAuthPassword()); this.setHttp401Username(blog.getHTTPAuthUsername()); } } /** * Carica un post da remoto * @param provider */ public void run() { try{ Vector args = new Vector(3); args.addElement(postID); args.addElement(mUsername); args.addElement(mPassword); Post aPost; Object response = execute("metaWeblog.getPost", args); if(connResponse.isError()) { //se il server xml-rpc è andato in err notifyObservers(connResponse); return; } try { Hashtable postData = (Hashtable) response; aPost= DraftDAO.hashtable2Post(postData, blog); } catch (ClassCastException cce) { setErrorMessage(cce, "Invalid server response"); notifyObservers(connResponse); return; } response = execute("mt.getPostCategories", args); try { Vector categoryStructs = (Vector) response; int[] categories = new int[categoryStructs.size()]; Hashtable categoryStruct = null; for (int i = 0; i < categoryStructs.size(); i++) { categoryStruct = (Hashtable) categoryStructs.elementAt(i); categories[i] = Integer.parseInt((String) categoryStruct.get("categoryId")); } aPost.setCategories(categories); } catch (ClassCastException cce) { setErrorMessage(cce, "Error while reading post categories"); } connResponse.setResponseObject(aPost); } catch (Exception cce) { setErrorMessage(cce, "Error while reading the post content."); } try { notifyObservers(connResponse); } catch (Exception e) { Log.error("Get Post Conn Notify Error"); } } }
wordpress-mobile/WordPress-BlackBerry-Legacy
src/com/wordpress/xmlrpc/post/GetPostConn.java
Java
gpl-2.0
2,493
/* * devfreq: Generic Dynamic Voltage and Frequency Scaling (DVFS) Framework * for Non-CPU Devices. * * Copyright (C) 2011 Samsung Electronics * MyungJoo Ham <myungjoo.ham@samsung.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/err.h> #include <linux/init.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/stat.h> #include <linux/pm_opp.h> #include <linux/devfreq.h> #include <linux/workqueue.h> #include <linux/platform_device.h> #include <linux/list.h> #include <linux/printk.h> #include <linux/hrtimer.h> #include "governor.h" static struct class *devfreq_class; /* * devfreq core provides delayed work based load monitoring helper * functions. Governors can use these or can implement their own * monitoring mechanism. */ static struct workqueue_struct *devfreq_wq; /* The list of all device-devfreq governors */ static LIST_HEAD(devfreq_governor_list); /* The list of all device-devfreq */ static LIST_HEAD(devfreq_list); static DEFINE_MUTEX(devfreq_list_lock); /** * find_device_devfreq() - find devfreq struct using device pointer * @dev: device pointer used to lookup device devfreq. * * Search the list of device devfreqs and return the matched device's * devfreq info. devfreq_list_lock should be held by the caller. */ static struct devfreq *find_device_devfreq(struct device *dev) { struct devfreq *tmp_devfreq; if (unlikely(IS_ERR_OR_NULL(dev))) { pr_err("DEVFREQ: %s: Invalid parameters\n", __func__); return ERR_PTR(-EINVAL); } WARN(!mutex_is_locked(&devfreq_list_lock), "devfreq_list_lock must be locked."); list_for_each_entry(tmp_devfreq, &devfreq_list, node) { if (tmp_devfreq->dev.parent == dev) return tmp_devfreq; } return ERR_PTR(-ENODEV); } /** * devfreq_get_freq_level() - Lookup freq_table for the frequency * @devfreq: the devfreq instance * @freq: the target frequency */ static int devfreq_get_freq_level(struct devfreq *devfreq, unsigned long freq) { int lev; for (lev = 0; lev < devfreq->profile->max_state; lev++) if (freq == devfreq->profile->freq_table[lev]) return lev; return -EINVAL; } /** * devfreq_update_status() - Update statistics of devfreq behavior * @devfreq: the devfreq instance * @freq: the update target frequency */ static int devfreq_update_status(struct devfreq *devfreq, unsigned long freq) { int lev, prev_lev, ret = 0; unsigned long cur_time; cur_time = jiffies; prev_lev = devfreq_get_freq_level(devfreq, devfreq->previous_freq); if (prev_lev < 0) { ret = prev_lev; goto out; } devfreq->time_in_state[prev_lev] += cur_time - devfreq->last_stat_updated; lev = devfreq_get_freq_level(devfreq, freq); if (lev < 0) { ret = lev; goto out; } if (lev != prev_lev) { devfreq->trans_table[(prev_lev * devfreq->profile->max_state) + lev]++; devfreq->total_trans++; } out: devfreq->last_stat_updated = cur_time; return ret; } /** * find_devfreq_governor() - find devfreq governor from name * @name: name of the governor * * Search the list of devfreq governors and return the matched * governor's pointer. devfreq_list_lock should be held by the caller. */ static struct devfreq_governor *find_devfreq_governor(const char *name) { struct devfreq_governor *tmp_governor; if (unlikely(IS_ERR_OR_NULL(name))) { pr_err("DEVFREQ: %s: Invalid parameters\n", __func__); return ERR_PTR(-EINVAL); } WARN(!mutex_is_locked(&devfreq_list_lock), "devfreq_list_lock must be locked."); list_for_each_entry(tmp_governor, &devfreq_governor_list, node) { if (!strncmp(tmp_governor->name, name, DEVFREQ_NAME_LEN)) return tmp_governor; } return ERR_PTR(-ENODEV); } /* Load monitoring helper functions for governors use */ /** * update_devfreq() - Reevaluate the device and configure frequency. * @devfreq: the devfreq instance. * * Note: Lock devfreq->lock before calling update_devfreq * This function is exported for governors. */ int update_devfreq(struct devfreq *devfreq) { unsigned long freq; int err = 0; u32 flags = 0; if (!mutex_is_locked(&devfreq->lock)) { WARN(true, "devfreq->lock must be locked by the caller.\n"); return -EINVAL; } if (!devfreq->governor) return -EINVAL; /* Reevaluate the proper frequency */ err = devfreq->governor->get_target_freq(devfreq, &freq); if (err) return err; /* * Adjust the freuqency with user freq and QoS. * * List from the highest proiority * max_freq (probably called by thermal when it's too hot) * min_freq */ if (devfreq->min_freq && freq < devfreq->min_freq) { freq = devfreq->min_freq; flags &= ~DEVFREQ_FLAG_LEAST_UPPER_BOUND; /* Use GLB */ } if (devfreq->max_freq && freq > devfreq->max_freq) { freq = devfreq->max_freq; flags |= DEVFREQ_FLAG_LEAST_UPPER_BOUND; /* Use LUB */ } err = devfreq->profile->target(devfreq->dev.parent, &freq, flags); if (err) return err; if (devfreq->profile->freq_table) if (devfreq_update_status(devfreq, freq)) dev_err(&devfreq->dev, "Couldn't update frequency transition information.\n"); devfreq->previous_freq = freq; return err; } EXPORT_SYMBOL(update_devfreq); /** * devfreq_monitor() - Periodically poll devfreq objects. * @work: the work struct used to run devfreq_monitor periodically. * */ static void devfreq_monitor(struct work_struct *work) { int err; struct devfreq *devfreq = container_of(work, struct devfreq, work.work); mutex_lock(&devfreq->lock); err = update_devfreq(devfreq); if (err) dev_err(&devfreq->dev, "dvfs failed with (%d) error\n", err); queue_delayed_work(devfreq_wq, &devfreq->work, msecs_to_jiffies(devfreq->profile->polling_ms)); mutex_unlock(&devfreq->lock); } /** * devfreq_monitor_start() - Start load monitoring of devfreq instance * @devfreq: the devfreq instance. * * Helper function for starting devfreq device load monitoing. By * default delayed work based monitoring is supported. Function * to be called from governor in response to DEVFREQ_GOV_START * event when device is added to devfreq framework. */ void devfreq_monitor_start(struct devfreq *devfreq) { INIT_DEFERRABLE_WORK(&devfreq->work, devfreq_monitor); if (devfreq->profile->polling_ms) queue_delayed_work(devfreq_wq, &devfreq->work, msecs_to_jiffies(devfreq->profile->polling_ms)); } EXPORT_SYMBOL(devfreq_monitor_start); /** * devfreq_monitor_stop() - Stop load monitoring of a devfreq instance * @devfreq: the devfreq instance. * * Helper function to stop devfreq device load monitoing. Function * to be called from governor in response to DEVFREQ_GOV_STOP * event when device is removed from devfreq framework. */ void devfreq_monitor_stop(struct devfreq *devfreq) { cancel_delayed_work_sync(&devfreq->work); } EXPORT_SYMBOL(devfreq_monitor_stop); /** * devfreq_monitor_suspend() - Suspend load monitoring of a devfreq instance * @devfreq: the devfreq instance. * * Helper function to suspend devfreq device load monitoing. Function * to be called from governor in response to DEVFREQ_GOV_SUSPEND * event or when polling interval is set to zero. * * Note: Though this function is same as devfreq_monitor_stop(), * intentionally kept separate to provide hooks for collecting * transition statistics. */ void devfreq_monitor_suspend(struct devfreq *devfreq) { mutex_lock(&devfreq->lock); if (devfreq->stop_polling) { mutex_unlock(&devfreq->lock); return; } devfreq_update_status(devfreq, devfreq->previous_freq); devfreq->stop_polling = true; mutex_unlock(&devfreq->lock); cancel_delayed_work_sync(&devfreq->work); } EXPORT_SYMBOL(devfreq_monitor_suspend); /** * devfreq_monitor_resume() - Resume load monitoring of a devfreq instance * @devfreq: the devfreq instance. * * Helper function to resume devfreq device load monitoing. Function * to be called from governor in response to DEVFREQ_GOV_RESUME * event or when polling interval is set to non-zero. */ void devfreq_monitor_resume(struct devfreq *devfreq) { unsigned long freq; mutex_lock(&devfreq->lock); if (!devfreq->stop_polling) goto out; if (!delayed_work_pending(&devfreq->work) && devfreq->profile->polling_ms) queue_delayed_work(devfreq_wq, &devfreq->work, msecs_to_jiffies(devfreq->profile->polling_ms)); devfreq->last_stat_updated = jiffies; devfreq->stop_polling = false; if (devfreq->profile->get_cur_freq && !devfreq->profile->get_cur_freq(devfreq->dev.parent, &freq)) devfreq->previous_freq = freq; out: mutex_unlock(&devfreq->lock); } EXPORT_SYMBOL(devfreq_monitor_resume); /** * devfreq_interval_update() - Update device devfreq monitoring interval * @devfreq: the devfreq instance. * @delay: new polling interval to be set. * * Helper function to set new load monitoring polling interval. Function * to be called from governor in response to DEVFREQ_GOV_INTERVAL event. */ void devfreq_interval_update(struct devfreq *devfreq, unsigned int *delay) { unsigned int cur_delay = devfreq->profile->polling_ms; unsigned int new_delay = *delay; mutex_lock(&devfreq->lock); devfreq->profile->polling_ms = new_delay; if (devfreq->stop_polling) goto out; /* if new delay is zero, stop polling */ if (!new_delay) { mutex_unlock(&devfreq->lock); cancel_delayed_work_sync(&devfreq->work); return; } /* if current delay is zero, start polling with new delay */ if (!cur_delay) { queue_delayed_work(devfreq_wq, &devfreq->work, msecs_to_jiffies(devfreq->profile->polling_ms)); goto out; } /* if current delay is greater than new delay, restart polling */ if (cur_delay > new_delay) { mutex_unlock(&devfreq->lock); cancel_delayed_work_sync(&devfreq->work); mutex_lock(&devfreq->lock); if (!devfreq->stop_polling) queue_delayed_work(devfreq_wq, &devfreq->work, msecs_to_jiffies(devfreq->profile->polling_ms)); } out: mutex_unlock(&devfreq->lock); } EXPORT_SYMBOL(devfreq_interval_update); /** * devfreq_notifier_call() - Notify that the device frequency requirements * has been changed out of devfreq framework. * @nb: the notifier_block (supposed to be devfreq->nb) * @type: not used * @devp: not used * * Called by a notifier that uses devfreq->nb. */ static int devfreq_notifier_call(struct notifier_block *nb, unsigned long type, void *devp) { struct devfreq *devfreq = container_of(nb, struct devfreq, nb); int ret; mutex_lock(&devfreq->lock); ret = update_devfreq(devfreq); mutex_unlock(&devfreq->lock); return ret; } /** * _remove_devfreq() - Remove devfreq from the list and release its resources. * @devfreq: the devfreq struct * @skip: skip calling device_unregister(). */ static void _remove_devfreq(struct devfreq *devfreq) { mutex_lock(&devfreq_list_lock); if (IS_ERR(find_device_devfreq(devfreq->dev.parent))) { mutex_unlock(&devfreq_list_lock); dev_warn(&devfreq->dev, "releasing devfreq which doesn't exist\n"); return; } list_del(&devfreq->node); mutex_unlock(&devfreq_list_lock); if (devfreq->governor) devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_STOP, NULL); if (devfreq->profile->exit) devfreq->profile->exit(devfreq->dev.parent); mutex_destroy(&devfreq->lock); kfree(devfreq); } /** * devfreq_dev_release() - Callback for struct device to release the device. * @dev: the devfreq device * * This calls _remove_devfreq() if _remove_devfreq() is not called. */ static void devfreq_dev_release(struct device *dev) { struct devfreq *devfreq = to_devfreq(dev); _remove_devfreq(devfreq); } /** * devfreq_add_device() - Add devfreq feature to the device * @dev: the device to add devfreq feature. * @profile: device-specific profile to run devfreq. * @governor_name: name of the policy to choose frequency. * @data: private data for the governor. The devfreq framework does not * touch this value. */ struct devfreq *devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile, const char *governor_name, void *data) { struct devfreq *devfreq; struct devfreq_governor *governor; int err = 0; if (!dev || !profile || !governor_name) { dev_err(dev, "%s: Invalid parameters.\n", __func__); return ERR_PTR(-EINVAL); } mutex_lock(&devfreq_list_lock); devfreq = find_device_devfreq(dev); mutex_unlock(&devfreq_list_lock); if (!IS_ERR(devfreq)) { dev_err(dev, "%s: Unable to create devfreq for the device. It already has one.\n", __func__); err = -EINVAL; goto err_out; } devfreq = kzalloc(sizeof(struct devfreq), GFP_KERNEL); if (!devfreq) { dev_err(dev, "%s: Unable to create devfreq for the device\n", __func__); err = -ENOMEM; goto err_out; } mutex_init(&devfreq->lock); mutex_lock(&devfreq->lock); devfreq->dev.parent = dev; devfreq->dev.class = devfreq_class; devfreq->dev.release = devfreq_dev_release; devfreq->profile = profile; strncpy(devfreq->governor_name, governor_name, DEVFREQ_NAME_LEN); devfreq->previous_freq = profile->initial_freq; devfreq->data = data; devfreq->nb.notifier_call = devfreq_notifier_call; devfreq->trans_table = devm_kzalloc(dev, sizeof(unsigned int) * devfreq->profile->max_state * devfreq->profile->max_state, GFP_KERNEL); devfreq->time_in_state = devm_kzalloc(dev, sizeof(unsigned int) * devfreq->profile->max_state, GFP_KERNEL); devfreq->last_stat_updated = jiffies; dev_set_name(&devfreq->dev, "%s", dev_name(dev)); err = device_register(&devfreq->dev); if (err) { put_device(&devfreq->dev); mutex_unlock(&devfreq->lock); goto err_dev; } mutex_unlock(&devfreq->lock); mutex_lock(&devfreq_list_lock); list_add(&devfreq->node, &devfreq_list); governor = find_devfreq_governor(devfreq->governor_name); if (!IS_ERR(governor)) devfreq->governor = governor; if (devfreq->governor) err = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START, NULL); mutex_unlock(&devfreq_list_lock); if (err) { dev_err(dev, "%s: Unable to start governor for the device\n", __func__); goto err_init; } return devfreq; err_init: list_del(&devfreq->node); device_unregister(&devfreq->dev); err_dev: kfree(devfreq); err_out: return ERR_PTR(err); } EXPORT_SYMBOL(devfreq_add_device); /** * devfreq_remove_device() - Remove devfreq feature from a device. * @devfreq: the devfreq instance to be removed * * The opposite of devfreq_add_device(). */ int devfreq_remove_device(struct devfreq *devfreq) { if (!devfreq) return -EINVAL; device_unregister(&devfreq->dev); put_device(&devfreq->dev); return 0; } EXPORT_SYMBOL(devfreq_remove_device); static int devm_devfreq_dev_match(struct device *dev, void *res, void *data) { struct devfreq **r = res; if (WARN_ON(!r || !*r)) return 0; return *r == data; } static void devm_devfreq_dev_release(struct device *dev, void *res) { devfreq_remove_device(*(struct devfreq **)res); } /** * devm_devfreq_add_device() - Resource-managed devfreq_add_device() * @dev: the device to add devfreq feature. * @profile: device-specific profile to run devfreq. * @governor_name: name of the policy to choose frequency. * @data: private data for the governor. The devfreq framework does not * touch this value. * * This function manages automatically the memory of devfreq device using device * resource management and simplify the free operation for memory of devfreq * device. */ struct devfreq *devm_devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile, const char *governor_name, void *data) { struct devfreq **ptr, *devfreq; ptr = devres_alloc(devm_devfreq_dev_release, sizeof(*ptr), GFP_KERNEL); if (!ptr) return ERR_PTR(-ENOMEM); devfreq = devfreq_add_device(dev, profile, governor_name, data); if (IS_ERR(devfreq)) { devres_free(ptr); return ERR_PTR(-ENOMEM); } *ptr = devfreq; devres_add(dev, ptr); return devfreq; } EXPORT_SYMBOL(devm_devfreq_add_device); /** * devm_devfreq_remove_device() - Resource-managed devfreq_remove_device() * @dev: the device to add devfreq feature. * @devfreq: the devfreq instance to be removed */ void devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq) { WARN_ON(devres_release(dev, devm_devfreq_dev_release, devm_devfreq_dev_match, devfreq)); } EXPORT_SYMBOL(devm_devfreq_remove_device); /** * devfreq_suspend_device() - Suspend devfreq of a device. * @devfreq: the devfreq instance to be suspended * * This function is intended to be called by the pm callbacks * (e.g., runtime_suspend, suspend) of the device driver that * holds the devfreq. */ int devfreq_suspend_device(struct devfreq *devfreq) { if (!devfreq) return -EINVAL; if (!devfreq->governor) return 0; return devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_SUSPEND, NULL); } EXPORT_SYMBOL(devfreq_suspend_device); /** * devfreq_resume_device() - Resume devfreq of a device. * @devfreq: the devfreq instance to be resumed * * This function is intended to be called by the pm callbacks * (e.g., runtime_resume, resume) of the device driver that * holds the devfreq. */ int devfreq_resume_device(struct devfreq *devfreq) { if (!devfreq) return -EINVAL; if (!devfreq->governor) return 0; return devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_RESUME, NULL); } EXPORT_SYMBOL(devfreq_resume_device); /** * devfreq_add_governor() - Add devfreq governor * @governor: the devfreq governor to be added */ int devfreq_add_governor(struct devfreq_governor *governor) { struct devfreq_governor *g; struct devfreq *devfreq; int err = 0; if (!governor) { pr_err("%s: Invalid parameters.\n", __func__); return -EINVAL; } mutex_lock(&devfreq_list_lock); g = find_devfreq_governor(governor->name); if (!IS_ERR(g)) { pr_err("%s: governor %s already registered\n", __func__, g->name); err = -EINVAL; goto err_out; } list_add(&governor->node, &devfreq_governor_list); list_for_each_entry(devfreq, &devfreq_list, node) { int ret = 0; struct device *dev = devfreq->dev.parent; if (!strncmp(devfreq->governor_name, governor->name, DEVFREQ_NAME_LEN)) { /* The following should never occur */ if (devfreq->governor) { dev_warn(dev, "%s: Governor %s already present\n", __func__, devfreq->governor->name); ret = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_STOP, NULL); if (ret) { dev_warn(dev, "%s: Governor %s stop = %d\n", __func__, devfreq->governor->name, ret); } /* Fall through */ } devfreq->governor = governor; ret = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START, NULL); if (ret) { dev_warn(dev, "%s: Governor %s start=%d\n", __func__, devfreq->governor->name, ret); } } } err_out: mutex_unlock(&devfreq_list_lock); return err; } EXPORT_SYMBOL(devfreq_add_governor); /** * devfreq_remove_device() - Remove devfreq feature from a device. * @governor: the devfreq governor to be removed */ int devfreq_remove_governor(struct devfreq_governor *governor) { struct devfreq_governor *g; struct devfreq *devfreq; int err = 0; if (!governor) { pr_err("%s: Invalid parameters.\n", __func__); return -EINVAL; } mutex_lock(&devfreq_list_lock); g = find_devfreq_governor(governor->name); if (IS_ERR(g)) { pr_err("%s: governor %s not registered\n", __func__, governor->name); err = PTR_ERR(g); goto err_out; } list_for_each_entry(devfreq, &devfreq_list, node) { int ret; struct device *dev = devfreq->dev.parent; if (!strncmp(devfreq->governor_name, governor->name, DEVFREQ_NAME_LEN)) { /* we should have a devfreq governor! */ if (!devfreq->governor) { dev_warn(dev, "%s: Governor %s NOT present\n", __func__, governor->name); continue; /* Fall through */ } ret = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_STOP, NULL); if (ret) { dev_warn(dev, "%s: Governor %s stop=%d\n", __func__, devfreq->governor->name, ret); } devfreq->governor = NULL; } } list_del(&governor->node); err_out: mutex_unlock(&devfreq_list_lock); return err; } EXPORT_SYMBOL(devfreq_remove_governor); static ssize_t governor_show(struct device *dev, struct device_attribute *attr, char *buf) { if (!to_devfreq(dev)->governor) return -EINVAL; return sprintf(buf, "%s\n", to_devfreq(dev)->governor->name); } static ssize_t governor_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct devfreq *df = to_devfreq(dev); int ret; char str_governor[DEVFREQ_NAME_LEN + 1]; struct devfreq_governor *governor; ret = sscanf(buf, "%" __stringify(DEVFREQ_NAME_LEN) "s", str_governor); if (ret != 1) return -EINVAL; mutex_lock(&devfreq_list_lock); governor = find_devfreq_governor(str_governor); if (IS_ERR(governor)) { ret = PTR_ERR(governor); goto out; } if (df->governor == governor) { ret = 0; goto out; } if (df->governor) { ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); if (ret) { dev_warn(dev, "%s: Governor %s not stopped(%d)\n", __func__, df->governor->name, ret); goto out; } } df->governor = governor; strncpy(df->governor_name, governor->name, DEVFREQ_NAME_LEN); ret = df->governor->event_handler(df, DEVFREQ_GOV_START, NULL); if (ret) dev_warn(dev, "%s: Governor %s not started(%d)\n", __func__, df->governor->name, ret); out: mutex_unlock(&devfreq_list_lock); if (!ret) ret = count; return ret; } static DEVICE_ATTR_RW(governor); static ssize_t available_governors_show(struct device *d, struct device_attribute *attr, char *buf) { struct devfreq_governor *tmp_governor; ssize_t count = 0; mutex_lock(&devfreq_list_lock); list_for_each_entry(tmp_governor, &devfreq_governor_list, node) count += scnprintf(&buf[count], (PAGE_SIZE - count - 2), "%s ", tmp_governor->name); mutex_unlock(&devfreq_list_lock); /* Truncate the trailing space */ if (count) count--; count += sprintf(&buf[count], "\n"); return count; } static DEVICE_ATTR_RO(available_governors); static ssize_t cur_freq_show(struct device *dev, struct device_attribute *attr, char *buf) { unsigned long freq; struct devfreq *devfreq = to_devfreq(dev); if (devfreq->profile->get_cur_freq && !devfreq->profile->get_cur_freq(devfreq->dev.parent, &freq)) return sprintf(buf, "%lu\n", freq); return sprintf(buf, "%lu\n", devfreq->previous_freq); } static DEVICE_ATTR_RO(cur_freq); static ssize_t target_freq_show(struct device *dev, struct device_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", to_devfreq(dev)->previous_freq); } static DEVICE_ATTR_RO(target_freq); static ssize_t polling_interval_show(struct device *dev, struct device_attribute *attr, char *buf) { return sprintf(buf, "%d\n", to_devfreq(dev)->profile->polling_ms); } static ssize_t polling_interval_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct devfreq *df = to_devfreq(dev); unsigned int value; int ret; if (!df->governor) return -EINVAL; ret = sscanf(buf, "%u", &value); if (ret != 1) return -EINVAL; df->governor->event_handler(df, DEVFREQ_GOV_INTERVAL, &value); ret = count; return ret; } static DEVICE_ATTR_RW(polling_interval); static ssize_t min_freq_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct devfreq *df = to_devfreq(dev); unsigned long value; int ret; unsigned long max; ret = sscanf(buf, "%lu", &value); if (ret != 1) return -EINVAL; mutex_lock(&df->lock); max = df->max_freq; if (value && max && value > max) { ret = -EINVAL; goto unlock; } df->min_freq = value; update_devfreq(df); ret = count; unlock: mutex_unlock(&df->lock); return ret; } static ssize_t min_freq_show(struct device *dev, struct device_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", to_devfreq(dev)->min_freq); } static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct devfreq *df = to_devfreq(dev); unsigned long value; int ret; unsigned long min; ret = sscanf(buf, "%lu", &value); if (ret != 1) return -EINVAL; mutex_lock(&df->lock); min = df->min_freq; if (value && min && value < min) { ret = -EINVAL; goto unlock; } df->max_freq = value; update_devfreq(df); ret = count; unlock: mutex_unlock(&df->lock); return ret; } static DEVICE_ATTR_RW(min_freq); static ssize_t max_freq_show(struct device *dev, struct device_attribute *attr, char *buf) { return sprintf(buf, "%lu\n", to_devfreq(dev)->max_freq); } static DEVICE_ATTR_RW(max_freq); static ssize_t available_frequencies_show(struct device *d, struct device_attribute *attr, char *buf) { struct devfreq *df = to_devfreq(d); struct device *dev = df->dev.parent; struct dev_pm_opp *opp; ssize_t count = 0; unsigned long freq = 0; rcu_read_lock(); do { opp = dev_pm_opp_find_freq_ceil(dev, &freq); if (IS_ERR(opp)) break; count += scnprintf(&buf[count], (PAGE_SIZE - count - 2), "%lu ", freq); freq++; } while (1); rcu_read_unlock(); /* Truncate the trailing space */ if (count) count--; count += sprintf(&buf[count], "\n"); return count; } static DEVICE_ATTR_RO(available_frequencies); static ssize_t trans_stat_show(struct device *dev, struct device_attribute *attr, char *buf) { struct devfreq *devfreq = to_devfreq(dev); ssize_t len; int i, j; unsigned int max_state = devfreq->profile->max_state; if (!devfreq->stop_polling && devfreq_update_status(devfreq, devfreq->previous_freq)) return 0; len = sprintf(buf, " From : To\n"); len += sprintf(buf + len, " :"); for (i = 0; i < max_state; i++) len += sprintf(buf + len, "%8u", devfreq->profile->freq_table[i]); len += sprintf(buf + len, " time(ms)\n"); for (i = 0; i < max_state; i++) { if (devfreq->profile->freq_table[i] == devfreq->previous_freq) { len += sprintf(buf + len, "*"); } else { len += sprintf(buf + len, " "); } len += sprintf(buf + len, "%8u:", devfreq->profile->freq_table[i]); for (j = 0; j < max_state; j++) len += sprintf(buf + len, "%8u", devfreq->trans_table[(i * max_state) + j]); len += sprintf(buf + len, "%10u\n", jiffies_to_msecs(devfreq->time_in_state[i])); } len += sprintf(buf + len, "Total transition : %u\n", devfreq->total_trans); return len; } static DEVICE_ATTR_RO(trans_stat); static struct attribute *devfreq_attrs[] = { &dev_attr_governor.attr, &dev_attr_available_governors.attr, &dev_attr_cur_freq.attr, &dev_attr_available_frequencies.attr, &dev_attr_target_freq.attr, &dev_attr_polling_interval.attr, &dev_attr_min_freq.attr, &dev_attr_max_freq.attr, &dev_attr_trans_stat.attr, NULL, }; ATTRIBUTE_GROUPS(devfreq); static int __init devfreq_init(void) { devfreq_class = class_create(THIS_MODULE, "devfreq"); if (IS_ERR(devfreq_class)) { pr_err("%s: couldn't create class\n", __FILE__); return PTR_ERR(devfreq_class); } devfreq_wq = create_freezable_workqueue("devfreq_wq"); if (!devfreq_wq) { class_destroy(devfreq_class); pr_err("%s: couldn't create workqueue\n", __FILE__); return -ENOMEM; } devfreq_class->dev_groups = devfreq_groups; return 0; } subsys_initcall(devfreq_init); static void __exit devfreq_exit(void) { class_destroy(devfreq_class); destroy_workqueue(devfreq_wq); } module_exit(devfreq_exit); /* * The followings are helper functions for devfreq user device drivers with * OPP framework. */ /** * devfreq_recommended_opp() - Helper function to get proper OPP for the * freq value given to target callback. * @dev: The devfreq user device. (parent of devfreq) * @freq: The frequency given to target function * @flags: Flags handed from devfreq framework. * * Locking: This function must be called under rcu_read_lock(). opp is a rcu * protected pointer. The reason for the same is that the opp pointer which is * returned will remain valid for use with opp_get_{voltage, freq} only while * under the locked area. The pointer returned must be used prior to unlocking * with rcu_read_unlock() to maintain the integrity of the pointer. */ struct dev_pm_opp *devfreq_recommended_opp(struct device *dev, unsigned long *freq, u32 flags) { struct dev_pm_opp *opp; if (flags & DEVFREQ_FLAG_LEAST_UPPER_BOUND) { /* The freq is an upper bound. opp should be lower */ opp = dev_pm_opp_find_freq_floor(dev, freq); /* If not available, use the closest opp */ if (opp == ERR_PTR(-ERANGE)) opp = dev_pm_opp_find_freq_ceil(dev, freq); } else { /* The freq is an lower bound. opp should be higher */ opp = dev_pm_opp_find_freq_ceil(dev, freq); /* If not available, use the closest opp */ if (opp == ERR_PTR(-ERANGE)) opp = dev_pm_opp_find_freq_floor(dev, freq); } return opp; } EXPORT_SYMBOL(devfreq_recommended_opp); /** * devfreq_register_opp_notifier() - Helper function to get devfreq notified * for any changes in the OPP availability * changes * @dev: The devfreq user device. (parent of devfreq) * @devfreq: The devfreq object. */ int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq) { struct srcu_notifier_head *nh; int ret = 0; rcu_read_lock(); nh = dev_pm_opp_get_notifier(dev); if (IS_ERR(nh)) ret = PTR_ERR(nh); rcu_read_unlock(); if (!ret) ret = srcu_notifier_chain_register(nh, &devfreq->nb); return ret; } EXPORT_SYMBOL(devfreq_register_opp_notifier); /** * devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq * notified for any changes in the OPP * availability changes anymore. * @dev: The devfreq user device. (parent of devfreq) * @devfreq: The devfreq object. * * At exit() callback of devfreq_dev_profile, this must be included if * devfreq_recommended_opp is used. */ int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq) { struct srcu_notifier_head *nh; int ret = 0; rcu_read_lock(); nh = dev_pm_opp_get_notifier(dev); if (IS_ERR(nh)) ret = PTR_ERR(nh); rcu_read_unlock(); if (!ret) ret = srcu_notifier_chain_unregister(nh, &devfreq->nb); return ret; } EXPORT_SYMBOL(devfreq_unregister_opp_notifier); static void devm_devfreq_opp_release(struct device *dev, void *res) { devfreq_unregister_opp_notifier(dev, *(struct devfreq **)res); } /** * devm_ devfreq_register_opp_notifier() * - Resource-managed devfreq_register_opp_notifier() * @dev: The devfreq user device. (parent of devfreq) * @devfreq: The devfreq object. */ int devm_devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq) { struct devfreq **ptr; int ret; ptr = devres_alloc(devm_devfreq_opp_release, sizeof(*ptr), GFP_KERNEL); if (!ptr) return -ENOMEM; ret = devfreq_register_opp_notifier(dev, devfreq); if (ret) { devres_free(ptr); return ret; } *ptr = devfreq; devres_add(dev, ptr); return 0; } EXPORT_SYMBOL(devm_devfreq_register_opp_notifier); /** * devm_devfreq_unregister_opp_notifier() * - Resource-managed devfreq_unregister_opp_notifier() * @dev: The devfreq user device. (parent of devfreq) * @devfreq: The devfreq object. */ void devm_devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq) { WARN_ON(devres_release(dev, devm_devfreq_opp_release, devm_devfreq_dev_match, devfreq)); } EXPORT_SYMBOL(devm_devfreq_unregister_opp_notifier); MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); MODULE_DESCRIPTION("devfreq class support"); MODULE_LICENSE("GPL");
nixcloud/linux-odroid
drivers/devfreq/devfreq.c
C
gpl-2.0
31,949
/* * Copyright (C) 2016 Matt Kilgore * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License v2 as published by the * Free Software Foundation. */ #include <protura/types.h> #include <protura/debug.h> #include <protura/string.h> #include <protura/list.h> #include <protura/mutex.h> #include <protura/mm/kmalloc.h> #include <protura/mm/user_check.h> #include <arch/spinlock.h> #include <protura/block/bcache.h> #include <protura/fs/char.h> #include <protura/fs/stat.h> #include <protura/fs/file.h> #include <protura/fs/inode.h> #include <protura/fs/file_system.h> #include <protura/fs/vfs.h> #include <protura/fs/procfs.h> #include "procfs_internal.h" static int procfs_file_read(struct file *filp, struct user_buffer buf, size_t size) { struct procfs_inode *pinode = container_of(filp->inode, struct procfs_inode, i); struct procfs_node *node = pinode->node; struct procfs_entry *entry = container_of(node, struct procfs_entry, node); void *p; size_t data_len, cpysize = 0; int ret; pinode->i.atime = protura_current_time_get(); if (entry->ops->read) return (entry->ops->read) (filp, buf, size); if (filp->offset > 0) return 0; if (!entry->ops->readpage) return 0; p = palloc_va(0, PAL_KERNEL); if (!p) return -ENOMEM; ret = (entry->ops->readpage) (p, PG_SIZE, &data_len); kp(KP_TRACE, "procfs output len: %d\n", data_len); if (!ret) { cpysize = (data_len > size)? size: data_len; ret = user_memcpy_from_kernel(buf, p, cpysize); } pfree_va(p, 0); if (ret) { return ret; } else { filp->offset = cpysize; return cpysize; } } static int procfs_file_ioctl(struct file *filp, int cmd, struct user_buffer ptr) { struct procfs_inode *pinode = container_of(filp->inode, struct procfs_inode, i); struct procfs_node *node = pinode->node; struct procfs_entry *entry = container_of(node, struct procfs_entry, node); if (entry->ops->ioctl) return (entry->ops->ioctl) (filp, cmd, ptr); return -EINVAL; } struct file_ops procfs_file_file_ops = { .read = procfs_file_read, .ioctl = procfs_file_ioctl, }; struct inode_ops procfs_file_inode_ops = { /* We have nothing to implement */ };
DSMan195276/protura
src/fs/procfs/file.c
C
gpl-2.0
2,358
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.eular.sms; public final class R { public static final class attr { } public static final class dimen { /** Default screen margins, per the Android Design guidelines. Customize dimensions originally defined in res/values/dimens.xml (such as screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. */ public static final int activity_horizontal_margin=0x7f040000; public static final int activity_vertical_margin=0x7f040001; } public static final class drawable { public static final int ic_launcher=0x7f020000; } public static final class id { public static final int action_settings=0x7f080004; public static final int numberLabel=0x7f080000; public static final int numberlabel=0x7f080001; public static final int send=0x7f080003; public static final int smscontent=0x7f080002; } public static final class layout { public static final int activity_main=0x7f030000; } public static final class menu { public static final int main=0x7f070000; } public static final class string { public static final int action_settings=0x7f050001; public static final int app_name=0x7f050000; public static final int content=0x7f050003; public static final int numberLabel=0x7f050002; public static final int send=0x7f050004; public static final int success=0x7f050005; } public static final class style { /** Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. API 11 theme customizations can go here. Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. API 14 theme customizations can go here. */ public static final int AppBaseTheme=0x7f060000; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f060001; } }
Urinx/SomeCodes
Android/sms/gen/com/eular/sms/R.java
Java
gpl-2.0
2,864
public class IndeedDefaultPackage { }
X3N0-Life-Form/TestLink-Selenium_RPCServer
TLS_Dir_Generator--test/IndeedDefaultPackage.java
Java
gpl-2.0
40
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Command Line Script &mdash; PyGoogleVoice v0.5 documentation</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.5', COLLAPSE_MODINDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="top" title="PyGoogleVoice v0.5 documentation" href="index.html" /> <link rel="next" title="Examples" href="examples.html" /> <link rel="prev" title="Configuration" href="config.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="modindex.html" title="Global Module Index" accesskey="M">modules</a> |</li> <li class="right" > <a href="examples.html" title="Examples" accesskey="N">next</a> |</li> <li class="right" > <a href="config.html" title="Configuration" accesskey="P">previous</a> |</li> <li><a href="index.html">PyGoogleVoice v0.5 documentation</a> &raquo;</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="command-line-script"> <span id="scripts"></span><h1>Command Line Script<a class="headerlink" href="#command-line-script" title="Permalink to this headline">¶</a></h1> <p>The module also comes with a script called <tt class="docutils literal"><span class="pre">gvoice</span></tt> which can do all the wonderful stuff that the Python module can do easily on the command line.</p> <div class="section" id="usage"> <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2> <div class="highlight-python"><pre>Usage: gvoice [options] commands Where commands are login (li) - log into the voice service logout (lo) - log out of the service and make sure session is deleted help Voice Commands call (c) - call an outgoing number from a forwarding number cancel (cc) - cancel a particular call download (d) - download mp3 message given id hash send_sms (s) - send sms messages Folder Views search (se) inbox (i) voicemail (v) starred (st) all (a) spam (sp) trash (t) voicemail (v) sms (sm) recorded (r) placed (p) recieved (re) missed (m) Options: -h, --help show this help message and exit -e EMAIL, --email=EMAIL Google Voice Account Email -p PASSWD, --password=PASSWD Your account password (prompted if blank) -b, --batch Batch operations, asking for no interactive input</pre> </div> </div> <div class="section" id="example"> <h2>Example<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h2> <div class="highlight-python"><pre>$ gvoice -e myusername@gmail.com Password: gvoice&gt; call Outgoing number: 18004664411 Forwarding number: 14075551234 Calling...</pre> </div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="index.html">Table Of Contents</a></h3> <ul> <li><a class="reference external" href="">Command Line Script</a><ul> <li><a class="reference external" href="#usage">Usage</a></li> <li><a class="reference external" href="#example">Example</a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="config.html" title="previous chapter">Configuration</a></p> <h4>Next topic</h4> <p class="topless"><a href="examples.html" title="next chapter">Examples</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/scripts.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="modindex.html" title="Global Module Index" >modules</a> |</li> <li class="right" > <a href="examples.html" title="Examples" >next</a> |</li> <li class="right" > <a href="config.html" title="Configuration" >previous</a> |</li> <li><a href="index.html">PyGoogleVoice v0.5 documentation</a> &raquo;</li> </ul> </div> <div class="footer"> &copy; Copyright 2009, Justin Quick &lt;justquick@gmail.com&gt;. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3. </div> </body> </html>
jluellen/pygooglevoice
doc/scripts.html
HTML
gpl-2.0
6,398
<?php /** * Template Name: health Page Template * * Displays the health Page Template of the theme. * * @package ThemeGrill * @subpackage ColorMag * @since ColorMag 1.0 */ ?> <?php get_header(); ?> <div class="main-content-section clearfix"> <div id="primary"> <div id="content" class="clearfix"> <?php if( is_active_sidebar( 'colormag_health_page_content_top_section' ) ) { if ( !dynamic_sidebar( 'colormag_health_page_content_top_section' ) ): endif; } ?> <div class="clearfix"></div> <?php if (get_theme_mod('colormag_hide_blog_front', 0) == 0): ?> <?php endif; ?> </div> </div> <?php colormag_sidebar_select(); ?> </div> <?php get_footer(); ?>
dannypranoto/indomedia
wp-content/themes/colormag-child/page-templates/health.php
PHP
gpl-2.0
800
/* * Copyright 2000-2015 Rochus Keller <mailto:rkeller@nmr.ch> * * This file is part of the CARA (Computer Aided Resonance Assignment, * see <http://cara.nmr.ch/>) NMR Application Framework (NAF) library. * * The following is the license that applies to this copy of the * library. For a license to use the library under conditions * other than those described here, please email to rkeller@nmr.ch. * * GNU General Public License Usage * This file may be used under the terms of the GNU General Public * License (GPL) versions 2.0 or 3.0 as published by the Free Software * Foundation and appearing in the file LICENSE.GPL included in * the packaging of this file. Please review the following information * to ensure GNU General Public Licensing requirements will be met: * http://www.fsf.org/licensing/licenses/info/GPLv2.html and * http://www.gnu.org/copyleft/gpl.html. */ #if !defined(_QTL_TIME) #define _QTL_TIME typedef struct lua_State lua_State; namespace Qtl { class Time { public: // static int fromString ( const QString &, Qt::DateFormat ) : QTime static int fromString(lua_State * L); // ( const QString &, const QString & ) : QTime static int currentTime(lua_State * L); // () : QTime // static int isValid ( int, int, int, int ) : bool static int addMSecs(lua_State * L); // ( int ) const : QTime static int addSecs(lua_State * L); // ( int ) const : QTime static int elapsed(lua_State * L); // () const : int static int hour(lua_State * L); // () const : int static int isNull(lua_State * L); // () const : bool static int isValid(lua_State * L); // () const : bool static int minute(lua_State * L); // () const : int static int msec(lua_State * L); // () const : int static int msecsTo(lua_State * L); // ( const QTime & ) const : int static int restart(lua_State * L); // () : int static int second(lua_State * L); // () const : int static int secsTo(lua_State * L); // ( const QTime & ) const : int static int setHMS(lua_State * L); // ( int, int, int, int ) : bool static int start(lua_State * L); // () // static int toString ( const QString & ) const : QString static int toString(lua_State * L); // ( Qt::DateFormat ) const : QString static int init(lua_State * L); static int __eq(lua_State * L); static int __lt(lua_State * L); static void install(lua_State * L); }; } #endif // !defined(_QTL_TIME)
rochus-keller/NAF
Qtl/QtlTime.h
C
gpl-2.0
2,426
# Copyright (C) 2013 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. import json import ast import textwrap from mixbox import idgen from mixbox.namespaces import Namespace from stix.core import STIXHeader, STIXPackage from stix.common import InformationSource from stix.common.vocabs import VocabString from stix.incident import Incident from stix.incident.time import Time as StixTime from stix.indicator import Indicator from stix.ttp import TTP, VictimTargeting from stix.extensions.identity.ciq_identity_3_0 import CIQIdentity3_0Instance, STIXCIQIdentity3_0, OrganisationInfo from cybox.core import Observable from cybox.objects.socket_address_object import SocketAddress from cybox.objects.address_object import Address from cybox.objects.port_object import Port from cybox.objects.network_connection_object import NetworkConnection from cybox.objects.artifact_object import Artifact, ZlibCompression, Base64Encoding from cybox.common import ToolInformationList, ToolInformation from cybox.common import Time as CyboxTime from datetime import datetime import conpot CONPOT_NAMESPACE = 'mushmush-conpot' CONPOT_NAMESPACE_URL = 'http://mushmush.org/conpot' class StixTransformer(object): def __init__(self, config, dom): self.protocol_to_port_mapping = dict( modbus=502, snmp=161, http=80, s7comm=102, ) port_path_list = map(lambda x: '//conpot_template/protocols/'+x+'/@port', self.protocol_to_port_mapping.keys()) for port_path in port_path_list: try: protocol_port = ast.literal_eval(dom.xpath(port_path)[0]) protocol_name = port_path.rsplit("/", 2)[1] self.protocol_to_port_mapping[protocol_name] = protocol_port except IndexError: continue conpot_namespace = Namespace(CONPOT_NAMESPACE_URL, CONPOT_NAMESPACE, '') idgen.set_id_namespace(conpot_namespace) def _add_header(self, stix_package, title, desc): stix_header = STIXHeader() stix_header.title = title stix_header.description = desc stix_header.information_source = InformationSource() stix_header.information_source.time = CyboxTime() stix_header.information_source.time.produced_time = datetime.now() stix_package.stix_header = stix_header def transform(self, event): stix_package = STIXPackage() self._add_header(stix_package, "Unauthorized traffic to honeypot", "Describes one or more honeypot incidents") incident = Incident(id_="%s:%s-%s" % (CONPOT_NAMESPACE, 'incident', event['session_id'])) initial_time = StixTime() initial_time.initial_compromise = event['timestamp'].isoformat() incident.time = initial_time incident.title = "Conpot Event" incident.short_description = "Traffic to Conpot ICS honeypot" incident.add_category(VocabString(value='Scans/Probes/Attempted Access')) tool_list = ToolInformationList() tool_list.append(ToolInformation.from_dict({ 'name': "Conpot", 'vendor': "Conpot Team", 'version': conpot.__version__, 'description': textwrap.dedent('Conpot is a low interactive server side Industrial Control Systems ' 'honeypot designed to be easy to deploy, modify and extend.') })) incident.reporter = InformationSource(tools=tool_list) incident.add_discovery_method("Monitoring Service") incident.confidence = "High" # Victim Targeting by Sector ciq_identity = CIQIdentity3_0Instance() #identity_spec = STIXCIQIdentity3_0() #identity_spec.organisation_info = OrganisationInfo(industry_type="Electricity, Industrial Control Systems") #ciq_identity.specification = identity_spec ttp = TTP(title="Victim Targeting: Electricity Sector and Industrial Control System Sector") ttp.victim_targeting = VictimTargeting() ttp.victim_targeting.identity = ciq_identity incident.leveraged_ttps.append(ttp) indicator = Indicator(title="Conpot Event") indicator.description = "Conpot network event" indicator.confidence = "High" source_port = Port.from_dict({'port_value': event['remote'][1], 'layer4_protocol': 'tcp'}) dest_port = Port.from_dict({'port_value': self.protocol_to_port_mapping[event['data_type']], 'layer4_protocol': 'tcp'}) source_ip = Address.from_dict({'address_value': event['remote'][0], 'category': Address.CAT_IPV4}) dest_ip = Address.from_dict({'address_value': event['public_ip'], 'category': Address.CAT_IPV4}) source_address = SocketAddress.from_dict({'ip_address': source_ip.to_dict(), 'port': source_port.to_dict()}) dest_address = SocketAddress.from_dict({'ip_address': dest_ip.to_dict(), 'port': dest_port.to_dict()}) network_connection = NetworkConnection.from_dict( {'source_socket_address': source_address.to_dict(), 'destination_socket_address': dest_address.to_dict(), 'layer3_protocol': u"IPv4", 'layer4_protocol': u"TCP", 'layer7_protocol': event['data_type'], 'source_tcp_state': u"ESTABLISHED", 'destination_tcp_state': u"ESTABLISHED", } ) indicator.add_observable(Observable(network_connection)) artifact = Artifact() artifact.data = json.dumps(event['data']) artifact.packaging.append(ZlibCompression()) artifact.packaging.append(Base64Encoding()) indicator.add_observable(Observable(artifact)) incident.related_indicators.append(indicator) stix_package.add_incident(incident) stix_package_xml = stix_package.to_xml() return stix_package_xml
markes1977/conpot-master
conpot/core/loggers/stix_transform.py
Python
gpl-2.0
6,622
var graphic = require('../../util/graphic'); var modelUtil = require('../../util/model'); var zrUtil = require('zrender/lib/core/util'); var SankeyShape = graphic.extendShape({ shape: { x1: 0, y1: 0, x2: 0, y2: 0, cpx1: 0, cpy1: 0, cpx2: 0, cpy2: 0, extent: 0 }, buildPath: function (ctx, shape) { var halfExtent = shape.extent / 2; ctx.moveTo(shape.x1, shape.y1 - halfExtent); ctx.bezierCurveTo( shape.cpx1, shape.cpy1 - halfExtent, shape.cpx2, shape.cpy2 - halfExtent, shape.x2, shape.y2 - halfExtent ); ctx.lineTo(shape.x2, shape.y2 + halfExtent); ctx.bezierCurveTo( shape.cpx2, shape.cpy2 + halfExtent, shape.cpx1, shape.cpy1 + halfExtent, shape.x1, shape.y1 + halfExtent ); ctx.closePath(); } }); module.exports = require('../../echarts').extendChartView({ type: 'sankey', /** * @private * @type {module:echarts/chart/sankey/SankeySeries} */ _model: null, render: function(seriesModel, ecModel, api) { var graph = seriesModel.getGraph(); var group = this.group; var layoutInfo = seriesModel.layoutInfo; this._model = seriesModel; group.removeAll(); group.position = [layoutInfo.x, layoutInfo.y]; var edgeData = graph.edgeData; var rawOption = seriesModel.option; var formatModel = modelUtil.createDataFormatModel( seriesModel, edgeData, rawOption.edges || rawOption.links ); formatModel.formatTooltip = function (dataIndex) { var params = this.getDataParams(dataIndex); var rawDataOpt = params.data; var html = rawDataOpt.source + ' -- ' + rawDataOpt.target; if (params.value) { html += ':' + params.value; } return html; }; // generate a rect for each node graph.eachNode(function (node) { var layout = node.getLayout(); var itemModel = node.getModel(); var labelModel = itemModel.getModel('label.normal'); var textStyleModel = labelModel.getModel('textStyle'); var labelHoverModel = itemModel.getModel('label.emphasis'); var textStyleHoverModel = labelHoverModel.getModel('textStyle'); var rect = new graphic.Rect({ shape: { x: layout.x, y: layout.y, width: node.getLayout().dx, height: node.getLayout().dy }, style: { // Get formatted label in label.normal option. Use node id if it is not specified text: labelModel.get('show') ? seriesModel.getFormattedLabel(node.dataIndex, 'normal') || node.id // Use empty string to hide the label : '', textFont: textStyleModel.getFont(), textFill: textStyleModel.getTextColor(), textPosition: labelModel.get('position') } }); rect.setStyle(zrUtil.defaults( { fill: node.getVisual('color') }, itemModel.getModel('itemStyle.normal').getItemStyle() )); graphic.setHoverStyle(rect, zrUtil.extend( node.getModel('itemStyle.emphasis'), { text: labelHoverModel.get('show') ? seriesModel.getFormattedLabel(node.dataIndex, 'emphasis') || node.id : '', textFont: textStyleHoverModel.getFont(), textFill: textStyleHoverModel.getTextColor(), textPosition: labelHoverModel.get('position') } )); group.add(rect); }); // generate a bezire Curve for each edge graph.eachEdge(function (edge) { var curve = new SankeyShape(); curve.dataIndex = edge.dataIndex; curve.tooltipFormatModel = formatModel; var lineStyleModel = edge.getModel('lineStyle.normal'); var curvature = lineStyleModel.get('curveness'); var n1Layout = edge.node1.getLayout(); var n2Layout = edge.node2.getLayout(); var edgeLayout = edge.getLayout(); curve.shape.extent = Math.max(1, edgeLayout.dy); var x1 = n1Layout.x + n1Layout.dx; var y1 = n1Layout.y + edgeLayout.sy + edgeLayout.dy / 2; var x2 = n2Layout.x; var y2 = n2Layout.y + edgeLayout.ty + edgeLayout.dy /2; var cpx1 = x1 * (1 - curvature) + x2 * curvature; var cpy1 = y1; var cpx2 = x1 * curvature + x2 * (1 - curvature); var cpy2 = y2; curve.setShape({ x1: x1, y1: y1, x2: x2, y2: y2, cpx1: cpx1, cpy1: cpy1, cpx2: cpx2, cpy2: cpy2 }); curve.setStyle(lineStyleModel.getItemStyle()); graphic.setHoverStyle(curve, edge.getModel('lineStyle.emphasis').getItemStyle()); group.add(curve); }); if (!this._data) { group.setClipPath(createGridClipShape(group.getBoundingRect(), seriesModel, function () { group.removeClipPath(); })); } this._data = seriesModel.getData(); } }); //add animation to the view function createGridClipShape(rect, seriesModel, cb) { var rectEl = new graphic.Rect({ shape: { x: rect.x - 10, y: rect.y - 10, width: 0, height: rect.height + 20 } }); graphic.initProps(rectEl, { shape: { width: rect.width + 20, height: rect.height + 20 } }, seriesModel, cb); return rectEl; }
nagerenxiong/ChromeExtension
shangzheng/node_modules/echarts/lib/chart/sankey/SankeyView.js
JavaScript
gpl-2.0
6,789
<!DOCTYPE html> <html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> <head lang="en-US"> <title>My Family Tree - Garner, Eugene Stanley, Jr.</title> <meta charset="UTF-8" /> <meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" /> <meta name ="apple-mobile-web-app-capable" content="yes" /> <meta name="generator" content="Gramps 4.2.2 http://gramps-project.org/" /> <meta name="author" content="" /> <link href="../../../images/favicon2.ico" rel="shortcut icon" type="image/x-icon" /> <link href="../../../css/narrative-screen.css" media="screen" rel="stylesheet" type="text/css" /> <link href="../../../css/narrative-print.css" media="print" rel="stylesheet" type="text/css" /> <link href="../../../css/ancestortree.css" media="screen" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"> <h1 id="SiteTitle">My Family Tree</h1> </div> <div class="wrapper" id="nav" role="navigation"> <div class="container"> <ul class="menu" id="dropmenu"> <li class = "CurrentSection"><a href="../../../individuals.html" title="Individuals">Individuals</a></li> <li><a href="../../../index.html" title="Surnames">Surnames</a></li> <li><a href="../../../places.html" title="Places">Places</a></li> <li><a href="../../../sources.html" title="Sources">Sources</a></li> <li><a href="../../../media.html" title="Media">Media</a></li> <li><a href="../../../thumbnails.html" title="Thumbnails">Thumbnails</a></li> </ul> </div> </div> <div class="content" id="IndividualDetail"> <h3>Garner, Eugene Stanley, Jr.<sup><small> <a href="#sref1">1</a></small></sup></h3> <div id="summaryarea"> <table class="infolist"> <tr> <td class="ColumnAttribute">Birth Name</td> <td class="ColumnValue"> Garner, Eugene Stanley, Jr. </td> </tr> <tr> <td class="ColumnAttribute">Gramps&nbsp;ID</td> <td class="ColumnValue">I0135</td> </tr> <tr> <td class="ColumnAttribute">Gender</td> <td class="ColumnValue">male</td> </tr> </table> </div> <div class="subsection" id="events"> <h4>Events</h4> <table class="infolist eventlist"> <thead> <tr> <th class="ColumnEvent">Event</th> <th class="ColumnDate">Date</th> <th class="ColumnPlace">Place</th> <th class="ColumnDescription">Description</th> <th class="ColumnNotes">Notes</th> <th class="ColumnSources">Sources</th> </tr> </thead> <tbody> <tr> <td class="ColumnEvent"> Birth </td> <td class="ColumnDate">&nbsp;</td> <td class="ColumnPlace"> <a href="../../../plc/p/5/3NWJQC4O6BBSH10D5P.html" title="Vernon, Wilbarger, TX, USA"> Vernon, Wilbarger, TX, USA </a> </td> <td class="ColumnDescription"> Birth of Garner, Eugene Stanley, Jr. </td> <td class="ColumnNotes"> <div> </div> </td> <td class="ColumnSources"> &nbsp; </td> </tr> <tr> <td class="ColumnEvent"> LVG </td> <td class="ColumnDate">&nbsp;</td> <td class="ColumnPlace">&nbsp;</td> <td class="ColumnDescription"> Custom FTW5 tag to specify LIVING not specified in GEDCOM 5.5 </td> <td class="ColumnNotes"> <div> </div> </td> <td class="ColumnSources"> &nbsp; </td> </tr> </tbody> </table> </div> <div class="subsection" id="parents"> <h4>Parents</h4> <table class="infolist"> <thead> <tr> <th class="ColumnAttribute">Relation to main person</th> <th class="ColumnValue">Name</th> <th class="ColumnValue">Relation within this family (if not by birth)</th> </tr> </thead> <tbody> </tbody> <tr> <td class="ColumnAttribute">Father</td> <td class="ColumnValue"> <a href="../../../ppl/v/j/DPUJQCUYKKDPT78JJV.html">Garner, Eugene Stanley<span class="grampsid"> [I0046]</span></a> </td> </tr> <tr> <td class="ColumnAttribute">Mother</td> <td class="ColumnValue"> <a href="../../../ppl/a/3/1WUJQCHNH76G6YD3A.html">Reed, Frances Lucille (Babe)<span class="grampsid"> [I0053]</span></a> </td> </tr> <tr> <td class="ColumnAttribute">&nbsp;&nbsp;&nbsp;&nbsp;Brother</td> <td class="ColumnValue">&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../ppl/3/n/TDTJQCGYRS2RCCGQN3.html">Garner, Howard Lane<span class="grampsid"> [I0010]</span></a></td> <td class="ColumnValue"></td> </tr> <tr> <td class="ColumnAttribute">&nbsp;&nbsp;&nbsp;&nbsp;</td> <td class="ColumnValue">&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../ppl/9/k/SMWJQCXQ6I2GEXSPK9.html">Garner, Eugene Stanley, Jr.<span class="grampsid"> [I0135]</span></a></td> <td class="ColumnValue"></td> </tr> <tr> <td class="ColumnAttribute">&nbsp;&nbsp;&nbsp;&nbsp;Brother</td> <td class="ColumnValue">&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../ppl/9/u/GNWJQC9NLVF2MZLHU9.html">Garner, John Roger<span class="grampsid"> [I0136]</span></a></td> <td class="ColumnValue"></td> </tr> </table> </div> <div class="subsection" id="families"> <h4>Families</h4> <table class="infolist fixed_subtables"> <tr class="BeginFamily"> <td class="ColumnType">&nbsp</td> <td class="ColumnAttribute">&nbsp</td> <td class="ColumnValue"><a href="" title="Family of Garner, Eugene Stanley, Jr. and Pelletier, Josephine">Family of Garner, Eugene Stanley, Jr. and Pelletier, Josephine<span class="grampsid"> [F0031]</span></a></td> </tr> <tr class="BeginFamily"> <td class="ColumnType">Married</td> <td class="ColumnAttribute">Wife</td> <td class="ColumnValue"> <a href="../../../ppl/t/7/J9XJQC7HIKP3GC3A7T.html">Pelletier, Josephine<span class="grampsid"> [I0174]</span></a> </td> </tr> <tr> <td class="ColumnType">&nbsp;</td> <td class="ColumnAttribute">&nbsp;</td> <td class="ColumnValue"> <table class="infolist eventlist"> <thead> <tr> <th class="ColumnEvent">Event</th> <th class="ColumnDate">Date</th> <th class="ColumnPlace">Place</th> <th class="ColumnDescription">Description</th> <th class="ColumnNotes">Notes</th> <th class="ColumnSources">Sources</th> </tr> </thead> <tbody> <tr> <td class="ColumnEvent"> Marriage </td> <td class="ColumnDate">&nbsp;</td> <td class="ColumnPlace">&nbsp;</td> <td class="ColumnDescription"> Marriage of Garner, Eugene Stanley, Jr. and Pelletier, Josephine </td> <td class="ColumnNotes"> <div> </div> </td> <td class="ColumnSources"> &nbsp; </td> </tr> </tbody> </table> </td> <tr> <td class="ColumnType">&nbsp;</td> <td class="ColumnAttribute">Children</td> <td class="ColumnValue"> <ol> <li> <a href="../../../ppl/a/j/UAXJQC6HC354V7Q6JA.html">Garner, Francis William<span class="grampsid"> [I0176]</span></a> </li> <li> <a href="../../../ppl/9/8/DBXJQCJCEZMO17WZ89.html">Garner, Richard Eugene<span class="grampsid"> [I0177]</span></a> </li> <li> <a href="../../../ppl/n/r/XBXJQCS4QY316ZGHRN.html">Garner, Michael Stanley<span class="grampsid"> [I0178]</span></a> </li> <li> <a href="../../../ppl/7/0/HCXJQCRKB4K65V1C07.html">Garner, Barbara Jo<span class="grampsid"> [I0179]</span></a> </li> <li> <a href="../../../ppl/o/u/0DXJQC1T8P3CQKZIUO.html">Garner, Kathryn Mary<span class="grampsid"> [I0180]</span></a> </li> <li> <a href="../../../ppl/a/q/JDXJQCR5L0NTR21SQA.html">Garner, Peter George<span class="grampsid"> [I0181]</span></a> </li> <li> <a href="../../../ppl/h/6/3EXJQCVWOSQFGLYB6H.html">Garner, Bernadette<span class="grampsid"> [I0182]</span></a> </li> <li> <a href="../../../ppl/s/i/OEXJQCQJHF2BLSAAIS.html">Garner, Louella Marie<span class="grampsid"> [I0183]</span></a> </li> <li> <a href="../../../ppl/s/o/BFXJQCF1JBOXPRW2OS.html">Garner, Cecilia<span class="grampsid"> [I0184]</span></a> </li> <li> <a href="../../../ppl/p/r/ZFXJQCHAD8SLZZ7KRP.html">Garner, Mark Gerard<span class="grampsid"> [I0185]</span></a> </li> <li> <a href="../../../ppl/t/7/KGXJQCBQ39ON9VB37T.html">Garner, John Joseph<span class="grampsid"> [I0186]</span></a> </li> <li> <a href="../../../ppl/8/b/0HEKQCLINMQS4RB7B8.html">Garner, Margaret Ann<span class="grampsid"> [I1039]</span></a> </li> </ol> </td> </tr> </tr> <tr class="BeginFamily"> <td class="ColumnType">&nbsp</td> <td class="ColumnAttribute">&nbsp</td> <td class="ColumnValue"><a href="" title="Family of Garner, Eugene Stanley, Jr. and Washington, Pearline">Family of Garner, Eugene Stanley, Jr. and Washington, Pearline<span class="grampsid"> [F0376]</span></a></td> </tr> <tr class="BeginFamily"> <td class="ColumnType">Married</td> <td class="ColumnAttribute">Wife</td> <td class="ColumnValue"> <a href="../../../ppl/r/1/S7GKQCNHZHO3ELPX1R.html">Washington, Pearline<span class="grampsid"> [I1140]</span></a> </td> </tr> <tr> <td class="ColumnType">&nbsp;</td> <td class="ColumnAttribute">&nbsp;</td> <td class="ColumnValue"> <table class="infolist eventlist"> <thead> <tr> <th class="ColumnEvent">Event</th> <th class="ColumnDate">Date</th> <th class="ColumnPlace">Place</th> <th class="ColumnDescription">Description</th> <th class="ColumnNotes">Notes</th> <th class="ColumnSources">Sources</th> </tr> </thead> <tbody> <tr> <td class="ColumnEvent"> Marriage </td> <td class="ColumnDate">&nbsp;</td> <td class="ColumnPlace">&nbsp;</td> <td class="ColumnDescription"> Marriage of Garner, Eugene Stanley, Jr. and Washington, Pearline </td> <td class="ColumnNotes"> <div> </div> </td> <td class="ColumnSources"> &nbsp; </td> </tr> </tbody> </table> </td> </tr> </table> </div> <div class="subsection" id="pedigree"> <h4>Pedigree</h4> <ol class="pedigreegen"> <li> <a href="../../../ppl/v/j/DPUJQCUYKKDPT78JJV.html">Garner, Eugene Stanley<span class="grampsid"> [I0046]</span></a> <ol> <li class="spouse"> <a href="../../../ppl/a/3/1WUJQCHNH76G6YD3A.html">Reed, Frances Lucille (Babe)<span class="grampsid"> [I0053]</span></a> <ol> <li> <a href="../../../ppl/3/n/TDTJQCGYRS2RCCGQN3.html">Garner, Howard Lane<span class="grampsid"> [I0010]</span></a> </li> <li class="thisperson"> Garner, Eugene Stanley, Jr. <ol class="spouselist"> <li class="spouse"> <a href="../../../ppl/t/7/J9XJQC7HIKP3GC3A7T.html">Pelletier, Josephine<span class="grampsid"> [I0174]</span></a> <ol> <li> <a href="../../../ppl/a/j/UAXJQC6HC354V7Q6JA.html">Garner, Francis William<span class="grampsid"> [I0176]</span></a> </li> <li> <a href="../../../ppl/9/8/DBXJQCJCEZMO17WZ89.html">Garner, Richard Eugene<span class="grampsid"> [I0177]</span></a> </li> <li> <a href="../../../ppl/n/r/XBXJQCS4QY316ZGHRN.html">Garner, Michael Stanley<span class="grampsid"> [I0178]</span></a> </li> <li> <a href="../../../ppl/7/0/HCXJQCRKB4K65V1C07.html">Garner, Barbara Jo<span class="grampsid"> [I0179]</span></a> </li> <li> <a href="../../../ppl/o/u/0DXJQC1T8P3CQKZIUO.html">Garner, Kathryn Mary<span class="grampsid"> [I0180]</span></a> </li> <li> <a href="../../../ppl/a/q/JDXJQCR5L0NTR21SQA.html">Garner, Peter George<span class="grampsid"> [I0181]</span></a> </li> <li> <a href="../../../ppl/h/6/3EXJQCVWOSQFGLYB6H.html">Garner, Bernadette<span class="grampsid"> [I0182]</span></a> </li> <li> <a href="../../../ppl/s/i/OEXJQCQJHF2BLSAAIS.html">Garner, Louella Marie<span class="grampsid"> [I0183]</span></a> </li> <li> <a href="../../../ppl/s/o/BFXJQCF1JBOXPRW2OS.html">Garner, Cecilia<span class="grampsid"> [I0184]</span></a> </li> <li> <a href="../../../ppl/p/r/ZFXJQCHAD8SLZZ7KRP.html">Garner, Mark Gerard<span class="grampsid"> [I0185]</span></a> </li> <li> <a href="../../../ppl/t/7/KGXJQCBQ39ON9VB37T.html">Garner, John Joseph<span class="grampsid"> [I0186]</span></a> </li> <li> <a href="../../../ppl/8/b/0HEKQCLINMQS4RB7B8.html">Garner, Margaret Ann<span class="grampsid"> [I1039]</span></a> </li> </ol> </li> <li class="spouse"> <a href="../../../ppl/r/1/S7GKQCNHZHO3ELPX1R.html">Washington, Pearline<span class="grampsid"> [I1140]</span></a> </li> </ol> </li> <li> <a href="../../../ppl/9/u/GNWJQC9NLVF2MZLHU9.html">Garner, John Roger<span class="grampsid"> [I0136]</span></a> </li> </ol> </li> </ol> </li> </ol> </div> <div class="subsection" id="tree"> <h4>Ancestors</h4> <div id="treeContainer" style="width:735px; height:602px;"> <div class="boxbg male AncCol0" style="top: 269px; left: 6px;"> <a class="noThumb" href="../../../ppl/9/k/SMWJQCXQ6I2GEXSPK9.html"> Garner, Eugene Stanley, Jr. </a> </div> <div class="shadow" style="top: 274px; left: 10px;"></div> <div class="bvline" style="top: 301px; left: 165px; width: 15px"></div> <div class="gvline" style="top: 306px; left: 165px; width: 20px"></div> <div class="boxbg male AncCol1" style="top: 119px; left: 196px;"> <a href="../../../ppl/v/j/DPUJQCUYKKDPT78JJV.html"> <span class="thumbnail"> <img alt="Image: Garner, Eugene Stanley" src="../../../thumb/e/h/78V2GQX2FKNSYQ3OHE.png" /> </span> Garner, Eugene Stanley </a> </div> <div class="shadow" style="top: 124px; left: 200px;"></div> <div class="bvline" style="top: 151px; left: 180px; width: 15px;"></div> <div class="gvline" style="top: 156px; left: 185px; width: 20px;"></div> <div class="bhline" style="top: 151px; left: 180px; height: 150px;"></div> <div class="gvline" style="top: 156px; left: 185px; height: 150px;"></div> <div class="bvline" style="top: 151px; left: 355px; width: 15px"></div> <div class="gvline" style="top: 156px; left: 355px; width: 20px"></div> <div class="boxbg male AncCol2" style="top: 44px; left: 386px;"> <a href="../../../ppl/h/o/GNUJQCL9MD64AM56OH.html"> <span class="thumbnail"> <img alt="Image: Garner von Zieliński, Lewis Anderson Sr" src="../../../thumb/m/z/B1AUFQV7H8R9NR4SZM.png" /> </span> Garner von Zieliński, Lewis Anderson Sr </a> </div> <div class="shadow" style="top: 49px; left: 390px;"></div> <div class="bvline" style="top: 76px; left: 370px; width: 15px;"></div> <div class="gvline" style="top: 81px; left: 375px; width: 20px;"></div> <div class="bhline" style="top: 76px; left: 370px; height: 75px;"></div> <div class="gvline" style="top: 81px; left: 375px; height: 75px;"></div> <div class="bvline" style="top: 76px; left: 545px; width: 15px"></div> <div class="gvline" style="top: 81px; left: 545px; width: 20px"></div> <div class="boxbg male AncCol3" style="top: 7px; left: 576px;"> <a class="noThumb" href="../../../ppl/v/l/35WJQC1B7T7NPV8OLV.html"> Garner, Robert W. </a> </div> <div class="shadow" style="top: 12px; left: 580px;"></div> <div class="bvline" style="top: 39px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 44px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 39px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 44px; left: 565px; height: 37px;"></div> <div class="boxbg female AncCol3" style="top: 81px; left: 576px;"> <a class="noThumb" href="../../../ppl/c/c/46WJQCIOLQ0KOX2XCC.html"> Zieliński, Phoebe Emily </a> </div> <div class="shadow" style="top: 86px; left: 580px;"></div> <div class="bvline" style="top: 113px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 118px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 76px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 81px; left: 565px; height: 37px;"></div> <div class="boxbg female AncCol2" style="top: 194px; left: 386px;"> <a href="../../../ppl/i/0/FOUJQC7PMC15VC4P0I.html"> <span class="thumbnail"> <img alt="Image: Martel, Luella Jacques" src="../../../thumb/h/d/Y3ARGQWE088EQRTTDH.png" /> </span> Martel, Luella Jacques </a> </div> <div class="shadow" style="top: 199px; left: 390px;"></div> <div class="bvline" style="top: 226px; left: 370px; width: 15px;"></div> <div class="gvline" style="top: 231px; left: 375px; width: 20px;"></div> <div class="bhline" style="top: 151px; left: 370px; height: 75px;"></div> <div class="gvline" style="top: 156px; left: 375px; height: 75px;"></div> <div class="bvline" style="top: 226px; left: 545px; width: 15px"></div> <div class="gvline" style="top: 231px; left: 545px; width: 20px"></div> <div class="boxbg male AncCol3" style="top: 157px; left: 576px;"> <a class="noThumb" href="../../../ppl/j/7/N4DKQCPEMZ7OO62O7J.html"> Martel, Henry </a> </div> <div class="shadow" style="top: 162px; left: 580px;"></div> <div class="bvline" style="top: 189px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 194px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 189px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 194px; left: 565px; height: 37px;"></div> <div class="boxbg female AncCol3" style="top: 231px; left: 576px;"> <a class="noThumb" href="../../../ppl/2/2/O5DKQC8EQ25LDQ0D22.html"> Hébert, Ruth Ann </a> </div> <div class="shadow" style="top: 236px; left: 580px;"></div> <div class="bvline" style="top: 263px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 268px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 226px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 231px; left: 565px; height: 37px;"></div> <div class="boxbg female AncCol1" style="top: 419px; left: 196px;"> <a class="noThumb" href="../../../ppl/a/3/1WUJQCHNH76G6YD3A.html"> Reed, Frances Lucille (Babe) </a> </div> <div class="shadow" style="top: 424px; left: 200px;"></div> <div class="bvline" style="top: 451px; left: 180px; width: 15px;"></div> <div class="gvline" style="top: 456px; left: 185px; width: 20px;"></div> <div class="bhline" style="top: 301px; left: 180px; height: 150px;"></div> <div class="gvline" style="top: 306px; left: 185px; height: 150px;"></div> <div class="bvline" style="top: 451px; left: 355px; width: 15px"></div> <div class="gvline" style="top: 456px; left: 355px; width: 20px"></div> <div class="boxbg male AncCol2" style="top: 344px; left: 386px;"> <a class="noThumb" href="../../../ppl/r/c/9QUJQCCSWRZNSAPCR.html"> Reed, Francis Vincent </a> </div> <div class="shadow" style="top: 349px; left: 390px;"></div> <div class="bvline" style="top: 376px; left: 370px; width: 15px;"></div> <div class="gvline" style="top: 381px; left: 375px; width: 20px;"></div> <div class="bhline" style="top: 376px; left: 370px; height: 75px;"></div> <div class="gvline" style="top: 381px; left: 375px; height: 75px;"></div> <div class="bvline" style="top: 376px; left: 545px; width: 15px"></div> <div class="gvline" style="top: 381px; left: 545px; width: 20px"></div> <div class="boxbg male AncCol3" style="top: 307px; left: 576px;"> <a class="noThumb" href="../../../ppl/5/a/9PVJQCLLCJI6KC6A5.html"> Reed, John </a> </div> <div class="shadow" style="top: 312px; left: 580px;"></div> <div class="bvline" style="top: 339px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 344px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 339px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 344px; left: 565px; height: 37px;"></div> <div class="boxbg female AncCol3" style="top: 381px; left: 576px;"> <a class="noThumb" href="../../../ppl/b/e/6QVJQCD1E6Z7C67YEB.html"> Goodwin, Sarah </a> </div> <div class="shadow" style="top: 386px; left: 580px;"></div> <div class="bvline" style="top: 413px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 418px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 376px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 381px; left: 565px; height: 37px;"></div> <div class="boxbg female AncCol2" style="top: 494px; left: 386px;"> <a class="noThumb" href="../../../ppl/5/a/9RUJQCBU39EKP1CRA5.html"> Тихонов, Catherine Virginia </a> </div> <div class="shadow" style="top: 499px; left: 390px;"></div> <div class="bvline" style="top: 526px; left: 370px; width: 15px;"></div> <div class="gvline" style="top: 531px; left: 375px; width: 20px;"></div> <div class="bhline" style="top: 451px; left: 370px; height: 75px;"></div> <div class="gvline" style="top: 456px; left: 375px; height: 75px;"></div> <div class="bvline" style="top: 526px; left: 545px; width: 15px"></div> <div class="gvline" style="top: 531px; left: 545px; width: 20px"></div> <div class="boxbg male AncCol3" style="top: 457px; left: 576px;"> <a class="noThumb" href="../../../ppl/j/l/ZQVJQCTEOBIDQBVCLJ.html"> Тихонов, Moses </a> </div> <div class="shadow" style="top: 462px; left: 580px;"></div> <div class="bvline" style="top: 489px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 494px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 489px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 494px; left: 565px; height: 37px;"></div> <div class="boxbg female AncCol3" style="top: 531px; left: 576px;"> <a class="noThumb" href="../../../ppl/w/t/YRVJQCW19QU583G3TW.html"> Holt, Bridget </a> </div> <div class="shadow" style="top: 536px; left: 580px;"></div> <div class="bvline" style="top: 563px; left: 560px; width: 15px;"></div> <div class="gvline" style="top: 568px; left: 565px; width: 20px;"></div> <div class="bhline" style="top: 526px; left: 560px; height: 37px;"></div> <div class="gvline" style="top: 531px; left: 565px; height: 37px;"></div> </div> </div> <div class="subsection" id="sourcerefs"> <h4>Source References</h4> <ol> <li> <a href="../../../src/x/a/X5TJQC9JXU4RKT6VAX.html" title="Import from test2.ged" name ="sref1"> Import from test2.ged <span class="grampsid"> [S0003]</span> </a> </li> </ol> </div> </div> <div class="fullclear"></div> <div id="footer"> <p id="createdate"> Generated by <a href="http://gramps-project.org/">Gramps</a> 4.2.2 on 2015-12-25<br />Last change was the 2007-07-26 08:34:25 </p> <p id="copyright"> </p> </div> </body> </html>
belissent/testing-example-reports
gramps42/gramps/example_NAVWEB0/ppl/9/k/SMWJQCXQ6I2GEXSPK9.html
HTML
gpl-2.0
24,158
<?php /* * file for customizer theme options */ require_once get_template_directory() . '/acmethemes/customizer/customizer.php'; /* * file for additional functions files */ require_once get_template_directory() . '/acmethemes/functions.php'; /* * files for hooks */ require_once get_template_directory() . '/acmethemes/hooks/front-page.php'; require_once get_template_directory() . '/acmethemes/hooks/slider-selection.php'; require_once get_template_directory() . '/acmethemes/hooks/header.php'; require_once get_template_directory() . '/acmethemes/hooks/social-links.php'; require_once get_template_directory() . '/acmethemes/hooks/dynamic-css.php'; require_once get_template_directory() . '/acmethemes/hooks/footer.php'; require_once get_template_directory() . '/acmethemes/hooks/comment-forms.php'; require_once get_template_directory() . '/acmethemes/hooks/excerpts.php'; /* * file for sidebar and widgets */ require_once get_template_directory() . '/acmethemes/sidebar-widget/acme-about.php'; require_once get_template_directory() . '/acmethemes/sidebar-widget/acme-featured.php'; require_once get_template_directory() . '/acmethemes/sidebar-widget/acme-service.php'; require_once get_template_directory() . '/acmethemes/sidebar-widget/acme-contact.php'; require_once get_template_directory() . '/acmethemes/sidebar-widget/acme-col-posts.php'; require_once get_template_directory() . '/acmethemes/sidebar-widget/sidebar.php'; /*file for metaboxes*/ require_once get_template_directory() . '/acmethemes/metabox/metabox.php'; /* * file for core functions imported from functions.php while downloading Underscores */ require_once get_template_directory() . '/acmethemes/core.php';
jutobop/jutobop.github.io
wp-content/themes/corporate-plus/acmethemes/init.php
PHP
gpl-2.0
1,699
#include "Click_7x10_R_types.h" const uint32_t _C7X10R_SPI_CFG[ 2 ] = { _SPI_FPCLK_DIV2, _SPI_FIRST_CLK_EDGE_TRANSITION | _SPI_CLK_IDLE_LOW | _SPI_MASTER | _SPI_MSB_FIRST | _SPI_8_BIT | _SPI_SSM_ENABLE | _SPI_SS_DISABLE | _SPI_SSI_1 };
MikroElektronika/Click_7x10_Led_Matrix
example/c/ARM/STM/Click_7x10_R_config.h
C
gpl-2.0
318
/** * Created by rchyla on 3/31/14. */ define(['underscore', 'jquery', 'js/components/query_mediator', 'js/components/beehive', 'js/services/pubsub', 'js/services/api', 'js/components/generic_module', 'js/components/pubsub_key', 'js/components/api_query', 'js/components/api_request' ], function(_, $, QueryMediator, BeeHive, PubSub, Api, GenericModule, PubSubKey, ApiQuery, ApiRequest) { var beehive, debug = false; describe('Query Mediator (Scaffolding)', function() { beforeEach(function(done) { this.server = sinon.fakeServer.create(); this.server.autoRespond = true; this.server.respondWith(/\/api\/1\/search.*/, [200, { "Content-Type": "application/json" }, validResponse]); beehive = new BeeHive(); var api = new Api(); sinon.spy(api, 'request'); beehive.addService('Api', api); beehive.addService('PubSub', new PubSub()); done(); }); afterEach(function(done) { beehive.close(); beehive = null; this.server.restore(); done(); }); it("returns QueryMediator object", function(done) { expect(new QueryMediator()).to.be.instanceof(QueryMediator); expect(new QueryMediator()).to.be.instanceof(GenericModule); done(); }); it("has 'activate' function - which does the appropriate setup", function(done) { var qm = new QueryMediator(); var pubsub = beehive.Services.get('PubSub'); sinon.stub(pubsub, 'subscribe'); qm.activate(beehive); expect(qm.hasBeeHive()).to.be.true; expect(qm.getBeeHive()).to.be.equal(beehive); expect(qm.pubSubKey).to.be.instanceof(PubSubKey); expect(pubsub.subscribe.callCount).to.be.eql(3); expect(pubsub.subscribe.args[0].slice(0,2)).to.be.eql([qm.pubSubKey, pubsub.START_SEARCH]); expect(pubsub.subscribe.args[1].slice(0,2)).to.be.eql([qm.pubSubKey, pubsub.DELIVERING_REQUEST]); done(); }); it("should mediate between modules; passing data back and forth", function(done) { var qm = new QueryMediator({'debug': debug}); qm.activate(beehive); // install spies into pubsub and api var pubsub = beehive.Services.get('PubSub'); var pubsubSpy = sinon.spy(function(){if (debug) {console.log('[pubsub:all]', arguments)}}); pubsub.on('all', pubsubSpy); var api = beehive.Services.get('Api'); var apiSpy = sinon.spy(function(){if (debug) {console.log('[api:all]', arguments)}}); api.on('all', apiSpy); // test counter for number of responses received var globalCounter = 0; // create fake UI widgets that simulate interaction with mediator // they send signals and receive responses var M = GenericModule.extend({ activate: function(beehive) { this.bee = beehive; pubsub = beehive.Services.get('PubSub'); pubsub.subscribe(pubsub.INVITING_REQUEST, _.bind(this.sendRequest, this)); pubsub.subscribe(pubsub.DELIVERING_RESPONSE, _.bind(this.receiveResponse, this)); }, userAction: function(q) { if (debug) console.log('[' + this.mid + '] User Action:', q.url()); var pubsub = this.bee.Services.get('PubSub'); pubsub.publish(pubsub.START_SEARCH, q); }, sendRequest: function(q) { q = q.clone(); q.unlock(); q.add('q', 'field:' + this.mid); var pubsub = this.bee.Services.get('PubSub'); var r = new ApiRequest({target: 'search', query:q}); if (debug) console.log('[' + this.mid + '] Returning Request:', r.url()); pubsub.publish(pubsub.DELIVERING_REQUEST, r); this._q = q; }, receiveResponse: function(r) { if (debug) console.log('[' + this.mid + '] Receiving Response:', JSON.stringify(r.toJSON())); // do something with response... expect(r.get('responseHeader.QTime')).to.equal(88); // check the query was the same expect(r.getApiQuery().url()).to.equal(this._q.url()); // actually, even the same instance expect(r.getApiQuery()).to.equal(this._q); globalCounter += 1; if (globalCounter > 1) { if (debug) console.log('test: closing'); checkIt(); done(); } } }); // create components var m1 = new M(); var m2 = new M(); // install spies into components sinon.spy(m1, 'sendRequest', m1.sendRequest); sinon.spy(m1, 'receiveResponse', m1.receiveResponse); sinon.spy(m2, 'sendRequest', m2.sendRequest); sinon.spy(m2, 'receiveResponse', m2.receiveResponse); // because of the spies, we must activate only now... m1.activate(beehive.getHardenedInstance()); m2.activate(beehive.getHardenedInstance()); // pretend user clicked and a new query is fired var q = new ApiQuery({'q': '*:*'}); m1.userAction(q); /* whole chain of events should happen: - user clicked: START_SEARCH - mediator issues: INVITING_REQUEST - m1 and m2 respond with: DELIVERING_REQUEST - mediator calls api: api.request(apiRequest) - api gets data and sends them back to mediator - mediator wraps it into ApiResponse and issues: DELIVERING_RESPONSE - m1 & m2 receive the apiResponse (each for their own request only) */ // must be called after we have collected everything var checkIt = function() { // each was called once expect(m1.sendRequest.callCount).to.be.equal(1); expect(m2.sendRequest.callCount).to.be.equal(1); // they received a clone of the query (but not the original) expect(m1.sendRequest.args[0][0].url()).to.equal(q.url()); expect(m2.sendRequest.args[0][0].url()).to.equal(q.url()); expect(m1.sendRequest.args[0][0]).to.not.equal(q); expect(m2.sendRequest.args[0][0]).to.not.equal(q); // and it was 'locked' expect(m1.sendRequest.args[0][0].isLocked()).to.be.true; expect(m2.sendRequest.args[0][0].isLocked()).to.be.true; // each UI must receive only its own data expect(m1.receiveResponse.callCount).to.be.equal(1); expect(m2.receiveResponse.callCount).to.be.equal(1); } if (debug) console.log('test: reached end'); }); it("has getCacheKey function", function(done) { var qm = new QueryMediator(); var req = new ApiRequest({target: 'search', query:new ApiQuery({'q': 'pluto'})}); req.get('query').set('__x', 'foo'); expect(req.url()).to.be.equal('search?__x=foo&q=pluto'); var key = qm.getCacheKey(req); expect(req.url()).to.be.equal('search?__x=foo&q=pluto'); expect(key).to.be.equal('search?q=pluto'); done(); }); it("should use cache (if configured)", function(done) { var qm = new QueryMediator({cache: {}, debug:false}); var pubsub = beehive.Services.get('PubSub'); var key = pubsub.getPubSubKey(); var key2 = pubsub.getPubSubKey(); sinon.spy(pubsub, 'subscribe'); sinon.spy(qm, 'onApiResponse'); sinon.spy(qm, 'onApiRequestFailure'); qm.activate(beehive); var q = new ApiQuery({'q': 'pluto'}); var req = new ApiRequest({target: 'search', query:q}); qm.receiveRequests(req, key); qm.receiveRequests(req, key2); expect(qm.onApiResponse.callCount, 2); var api = beehive.Services.get('Api'); expect(api.request.callCount).to.be.equal(1); for (var i=0; i<10; i++) { qm.receiveRequests(req, pubsub.getPubSubKey()); } expect(qm.onApiResponse.callCount, 12); expect(api.request.callCount).to.be.equal(1); q.set('__boo', 'hey'); qm.receiveRequests(req, key2); expect(qm.onApiResponse.callCount, 13); expect(api.request.callCount).to.be.equal(1); q.set('fq', 'hey'); qm.receiveRequests(req, key2); expect(qm.onApiResponse.callCount, 14); expect(api.request.callCount).to.be.equal(2); this.server.respond(); api.request.reset(); // errors should not be cached this.server.responses[0].response[0] = 502; //this.server.respondWith(/\/api\/1\/search.*/, // [503, { "Content-Type": "application/json" }, validResponse]); q.set('fq', 'bey'); qm.receiveRequests(req, key2); this.server.respond(); expect(qm.onApiResponse.callCount, 14); expect(qm.onApiRequestFailure.callCount, 1); expect(api.request.callCount).to.be.equal(1); //this.server.respondWith(/\/api\/1\/search.*/, // [200, { "Content-Type": "application/json" }, validResponse]); this.server.responses[0].response[0] = 200; qm.receiveRequests(req, key2); this.server.respond(); expect(qm.onApiResponse.callCount, 15); expect(qm.onApiRequestFailure.callCount, 1); expect(api.request.callCount).to.be.equal(2); // but this this will be served from cache qm.receiveRequests(req, key); this.server.respond(); expect(qm.onApiResponse.callCount, 16); expect(qm.onApiRequestFailure.callCount, 1); expect(api.request.callCount).to.be.equal(2); // constant failures should trigger safety mechanism of max-retries this.server.responses[0].response[0] = 502; q.set('fq', 'ha'); qm.onApiResponse.reset(); qm.onApiRequestFailure.reset(); api.request.reset(); for (var i=0;i<3;i++) { qm.receiveRequests(req, key2); this.server.respond(); expect(qm.onApiResponse.callCount, 0); expect(qm.onApiRequestFailure.callCount, i+1); expect(api.request.callCount).to.be.equal(i+1); } for (var i=0;i<3;i++) { qm.receiveRequests(req, key2); this.server.respond(); expect(qm.onApiResponse.callCount, 0); expect(qm.onApiRequestFailure.callCount, 4+i); expect(api.request.callCount).to.be.equal(3); } done(); }); it("knows to recover from certain error situations (such as hangup)", function(done) { var qm = new QueryMediator({cache: true, debug:false, recoveryDelayInMs: 50}); var pubsub = beehive.Services.get('PubSub'); var api = beehive.Services.get('Api'); var key = pubsub.getPubSubKey(); var key2 = pubsub.getPubSubKey(); sinon.spy(qm, 'onApiResponse'); sinon.spy(qm, 'onApiRequestFailure'); sinon.spy(qm, 'tryToRecover'); qm.activate(beehive); this.server.autoRespond = false; var q = new ApiQuery({'q': 'pluto'}); var req = new ApiRequest({target: 'search', query:q}); this.server.responses[0].response[0] = 503; qm.receiveRequests(req, key); this.server.respond(); // first request expect(api.request.callCount).to.be.equal(1); expect(qm.onApiResponse.callCount, 0); expect(qm.onApiRequestFailure.callCount, 1); expect(qm.tryToRecover.callCount, 1); this.server.respond(); // first re-try var self = this; setTimeout(function() { expect(api.request.callCount).to.be.equal(2); expect(qm.onApiResponse.callCount, 0); expect(qm.onApiRequestFailure.callCount, 2); expect(qm.tryToRecover.callCount, 2); self.server.respond(); // second re-try setTimeout(function() { expect(api.request.callCount).to.be.equal(3); expect(qm.onApiResponse.callCount, 0); expect(qm.onApiRequestFailure.callCount, 3); expect(qm.tryToRecover.callCount, 3); self.server.respond(); // all next requests should be ignored self.server.respond(); // all next requests should be ignored expect(api.request.callCount).to.be.equal(3); expect(qm.onApiResponse.callCount, 0); expect(qm.onApiRequestFailure.callCount, 5); expect(qm.tryToRecover.callCount, 3); done(); }, 50); }, 50); }); }); var validResponse = '{\ "responseHeader":{\ "status":0,\ "QTime":88,\ "params":{\ "facet":"true",\ "indent":"true",\ "hl.simple.pre":"<em>",\ "hl.fl":"title",\ "wt":"json",\ "hl":"true",\ "rows":"5",\ "fl":"title,bibcode,author",\ "start":"10",\ "facet.query":"title:star",\ "q":"title:star",\ "hl.simple.post":"</em>",\ "facet.field":"author",\ "fq":"database:astronomy"}},\ "response":{"numFound":172978,"start":10,"docs":[\ {\ "author":["Morrison, J."],\ "bibcode":"1903PA.....11...88M",\ "title":["The Star of Bethlehem"]},\ {\ "author":["Morrison, J."],\ "bibcode":"1903PA.....11..122M",\ "title":["The Star of Bethlehem (cont.)"]},\ {\ "author":["Wing, Daniel E."],\ "bibcode":"1903PA.....11..481W",\ "title":["Star Dust"]},\ {\ "bibcode":"1906PA.....14R.507.",\ "title":["Star Charts"]},\ {\ "author":["Holmes, Edwin"],\ "bibcode":"1894JBAA....5...26H",\ "title":["Star Streams"]}]\ },\ "facet_counts":{\ "facet_queries":{\ "title:star":172978},\ "facet_fields":{\ "author":[\ "heber, u",301,\ "linsky, j l",299,\ "mayor, m",273,\ "kurtz, d w",270,\ "pickering, edward c",262,\ "maeder, a",260,\ "schmitt, j h m m",259,\ "campbell, leon",256,\ "mundt, r",138]},\ "facet_dates":{},\ "facet_ranges":{}},\ "highlighting":{\ "166243":{\ "title":["The <em>Star</em> of Bethlehem"]},\ "166285":{\ "title":["The <em>Star</em> of Bethlehem (cont.)"]},\ "166785":{\ "title":["<em>Star</em> Dust"]},\ "192734":{\ "title":["<em>Star</em> Charts"]},\ "139757":{\ "title":["<em>Star</em> Streams"]}}}'; });
jonnybazookatone/bumblebee_benchmark
test/mocha/js/components/query_mediator.spec.js
JavaScript
gpl-2.0
14,848
/* ***** BEGIN LICENSE BLOCK ***** * Source last modified: $Id: dist_lic_requester.h,v 1.3 2003/09/04 22:39:08 dcollins Exp $ * * Portions Copyright (c) 1995-2003 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, * are subject to the current version of the RealNetworks Public * Source License (the "RPSL") available at * http://www.helixcommunity.org/content/rpsl unless you have licensed * the file under the current version of the RealNetworks Community * Source License (the "RCSL") available at * http://www.helixcommunity.org/content/rcsl, in which case the RCSL * will apply. You may also obtain the license terms directly from * RealNetworks. You may not use this file except in compliance with * the RPSL or, if you have a valid RCSL with RealNetworks applicable * to this file, the RCSL. Please see the applicable RPSL or RCSL for * the rights, obligations and limitations governing use of the * contents of the file. * * This file is part of the Helix DNA Technology. RealNetworks is the * developer of the Original Code and owns the copyrights in the * portions it created. * * This file, and the files included with this file, is distributed * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET * ENJOYMENT OR NON-INFRINGEMENT. * * Technology Compatibility Kit Test Suite(s) Location: * http://www.helixcommunity.org/content/tck * * Contributor(s): * * ***** END LICENSE BLOCK ***** */ #ifndef _DIST_LIC_REQUESTER_H_ #define _DIST_LIC_REQUESTER_H_ #include <limits.h> #include "hxtypes.h" #include "hxcom.h" #include "hxengin.h" #include "hxmap.h" #include "simple_callback.h" #include "mutex.h" #include "proc_container.h" #include "dispatchq.h" #include "proc.h" #include "servlist.h" #include "simple_callback.h" #include "id.h" #include "hxdist_lic_requester.h" class LicenseRequesterCallback : public SimpleCallback { public: LicenseRequesterCallback(IHXCallback* pCb); INT32 AddRef(); INT32 Release(); void SetStatus(DistLicReqStatus eLicStatus, Process* pProc); void func(Process* pProc); IHXCallback* m_pCb; IHXDistributedLicenseRequestStatus* m_pDLRS; DistLicReqStatus m_eLicStatus; INT32 m_lRefCount; inline void MutexUnlock(Process* pProc) { HX_ASSERT(m_nLockedBy == pProc->procnum()); m_nLockedBy = -1; HXMutexUnlock(m_pMutex); }; inline BOOL MutexLockIfNeeded(Process* pProc) { if (m_nLockedBy != pProc->procnum()) { HXMutexLock(m_pMutex, TRUE); m_nLockedBy = (UINT32)(pProc->procnum()); m_pProc = pProc; return TRUE; } return FALSE; }; #define LRC_ISLOCKED() HX_ASSERT(m_nLockedBy != -1) #ifdef VERBOSE_REGISTRY_LOCKING //for debugging #define LRC_LOCK(p) \ BOOL bLocked = MutexLockIfNeeded(p); \ bLocked ? \ printf("PendLic: lock at line %d pid=%d\n", __LINE__, (p)->procnum()) : \ printf("PendLic: already locked at line %d (pid=%d, %s)\n", \ __LINE__, (p)->procnum(), (p)->pc->ProcessType()) #define LRC_UNLOCK(p) \ (bLocked ? (MutexUnlock(p), \ printf("PendLic: unlock at line %d pid=%d\n", \ __LINE__, (p)->procnum())) : \ (printf("PendLic: skipped unlock at line %d (pid=%d, %s)\n", \ __LINE__, (p)->procnum(), (p)->pc->ProcessType()))) #else #define LRC_LOCK(p) BOOL bLocked = MutexLockIfNeeded(p) #define LRC_UNLOCK(p) if (bLocked) MutexUnlock(p) #endif protected: HX_MUTEX m_pMutex; int m_nLockedBy; Process* m_pProc; ~LicenseRequesterCallback(); }; class LicenseRequesterListElem : public HXListElem { public: LicenseRequesterListElem() : HXListElem() { }; LicenseRequesterListElem(UINT32 ulCID, LicenseRequesterCallback* pCb, IHXCallback* pParentCb, DistLicReqStatus eDLRS, Process* pProc) : HXListElem() , m_pCb(pCb) , m_pParentCb(pParentCb) , m_bCbDispatched(FALSE) , m_bDone(FALSE) , m_ulCID(ulCID) , m_eDLRS(eDLRS) , m_pProc(pProc) { if (m_pCb) m_pCb->AddRef(); if (m_pParentCb) m_pParentCb->AddRef(); // fprintf(stderr, "LRLE(%p)::LRLE() -- cid(%lu)\n", this, m_ulCID); }; ~LicenseRequesterListElem() { // fprintf(stderr, "LRLE(%p)::~LRLE() -- cid(%lu) start\n", this, m_ulCID); HX_RELEASE(m_pCb); HX_RELEASE(m_pParentCb); // fprintf(stderr, "LRLE(%p)::~LRLE() -- cid(%lu) end\n", this, m_ulCID); }; #if 0 /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj); STDMETHOD_(ULONG32,AddRef) (THIS); STDMETHOD_(ULONG32,Release) (THIS); /* * IHXDistributedLicenseRequestListElement methods */ STDMETHOD_(DistLicReqStatus,SetLicenseRequestStatus)(THIS); STDMETHOD_(DistLicReqStatus,GetLicenseRequestStatus)(THIS); #endif LicenseRequesterCallback* m_pCb; IHXCallback* m_pParentCb; BOOL m_bCbDispatched; BOOL m_bDone; UINT32 m_ulCID; DistLicReqStatus m_eDLRS; Process* m_pProc; }; class DistributedLicenseRequester { public: // XXX need to decide how to correctly implment the copy constructor DistributedLicenseRequester(); ~DistributedLicenseRequester(); DistLicReqStatus LicenseRequestStatus(ULONG32 ulClientID, Process* p); DistLicReqStatus Insert(ULONG32 ulClientID, IHXCallback* pCb, IHXCallback*& pParentCb, Process* p); INT32 Execute(INT32 nNumLicenses, Process* p); HX_RESULT Remove(ULONG32 ulClientID, IHXCallback* pCb, Process* p); HX_RESULT RemoveAll(Process* p); UINT32 Count(Process* p); inline void MutexUnlock(Process* pProc) { HX_ASSERT(m_nLockedBy == pProc->procnum()); m_nLockedBy = -1; HXMutexUnlock(m_pMutex); }; inline BOOL MutexLockIfNeeded(Process* pProc) { if (m_nLockedBy != pProc->procnum()) { HXMutexLock(m_pMutex, TRUE); m_nLockedBy = (UINT32)(pProc->procnum()); m_pProc = pProc; return TRUE; } return FALSE; }; #define PL_ISLOCKED() HX_ASSERT(m_nLockedBy != -1) #ifdef VERBOSE_REGISTRY_LOCKING //for debugging #define PL_LOCK(p) \ BOOL bLocked = MutexLockIfNeeded(p); \ bLocked ? \ printf("PendLic: lock at line %d pid=%d\n", __LINE__, (p)->procnum()) : \ printf("PendLic: already locked at line %d (pid=%d, %s)\n", \ __LINE__, (p)->procnum(), (p)->pc->ProcessType()) #define PL_UNLOCK(p) \ (bLocked ? (MutexUnlock(p), \ printf("PendLic: unlock at line %d pid=%d\n", \ __LINE__, (p)->procnum())) : \ (printf("PendLic: skipped unlock at line %d (pid=%d, %s)\n", \ __LINE__, (p)->procnum(), (p)->pc->ProcessType()))) #else #define PL_LOCK(p) BOOL bLocked = MutexLockIfNeeded(p) #define PL_UNLOCK(p) if (bLocked) MutexUnlock(p) #endif protected: HX_MUTEX m_pMutex; int m_nLockedBy; HXList* m_pLicenseRequesterList; CHXID* m_pIDs; CHXMapLongToObj* m_pCIDMap; CHXMapPtrToPtr* m_pCbMap; UINT32 m_ulCount; Process* m_pProc; }; #endif /* _DIST_LIC_REQUESTER_H_ */
muromec/qtopia-ezx
src/3rdparty/libraries/helix/src/server/engine/core/pub/dist_lic_requester.h
C
gpl-2.0
7,483
/* Copyright (c) 2007, 2009 Volker Krause <vkrause@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AKONADI_COLLECTIONSYNC_P_H #define AKONADI_COLLECTIONSYNC_P_H #include <akonadi/collection.h> #include <akonadi/transactionsequence.h> namespace Akonadi { /** @internal Syncs remote and local collections. Basic terminology: - "local": The current state in the Akonadi server - "remote": The state in the backend, which is also the state the Akonadi server is supposed to have afterwards. There are three options to influence the way syncing is done: - Streaming vs. complete delivery: If streaming is enabled remote collections do not need to be delivered in a single batch but can be delivered in multiple chunks. This improves performance but requires an explicit notification when delivery has been completed. - Incremental vs. non-incremental: In the incremental case only remote changes since the last sync have to be delivered, in the non-incremental mode the full remote state has to be provided. The first is obviously the preferred way, but requires support by the backend. - Hierarchical vs. global RIDs: The first requires RIDs to be unique per parent collection, the second one requires globally unique RIDs (per resource). Those have different advantages and disadvantages, esp. regarding moving. Which one to chose mostly depends on what the backend provides in this regard. */ class CollectionSync : public Job { Q_OBJECT public: /** Creates a new collection synchronzier. @param resourceId The identifier of the resource we are syncing. @param parent The parent object. */ explicit CollectionSync(const QString &resourceId, QObject *parent = 0); /** Destroys this job. */ ~CollectionSync(); /** Sets the result of a full remote collection listing. @param remoteCollections A list of collections. Important: All of these need a unique remote identifier and parent remote identifier. */ void setRemoteCollections(const Collection::List &remoteCollections); /** Sets the result of an incremental remote collection listing. @param changedCollections A list of remotely added or changed collections. @param removedCollections A list of remotely deleted collections. */ void setRemoteCollections(const Collection::List &changedCollections, const Collection::List &removedCollections); /** Enables streaming, that is not all collections are delivered at once. Use setRemoteCollections() multiple times when streaming is enabled and call retrievalDone() when all collections have been retrieved. Must be called before the first call to setRemoteCollections(). @param streaming enables streaming if set as @c true */ void setStreamingEnabled(bool streaming); /** Indicate that all collections have been retrieved in streaming mode. */ void retrievalDone(); /** Indicate whether the resource supplies collections with hierarchical or global remote identifiers. @c false by default. Must be called before the first call to setRemoteCollections(). @param hierarchical @c true if collection remote IDs are relative to their parents' remote IDs */ void setHierarchicalRemoteIds(bool hierarchical); /** Do a rollback operation if needed. In read only cases this is a noop. */ void rollback(); /** * Allows to specify parts of the collection that should not be changed if locally available. * * This is useful for resources to provide default values during the collection sync, while * preserving more up-to date values if available. * * Use CONTENTMIMETYPES as identifier to not overwrite the content mimetypes. * * @since 4.14 */ void setKeepLocalChanges(const QSet<QByteArray> &parts); protected: void doStart(); private: class Private; Private *const d; Q_PRIVATE_SLOT(d, void localCollectionsReceived(const Akonadi::Collection::List &localCols)) Q_PRIVATE_SLOT(d, void localCollectionFetchResult(KJob *job)) Q_PRIVATE_SLOT(d, void updateLocalCollectionResult(KJob *job)) Q_PRIVATE_SLOT(d, void createLocalCollectionResult(KJob *job)) Q_PRIVATE_SLOT(d, void deleteLocalCollectionsResult(KJob *job)) Q_PRIVATE_SLOT(d, void transactionSequenceResult(KJob *job)) }; } #endif
kolab-groupware/kdepimlibs
akonadi/collectionsync_p.h
C
gpl-2.0
5,273
/* * SYSCALL_DEFINE3(getrandom, char __user *, buf, size_t, count, unsigned int, flags) */ #include <errno.h> #include "maps.h" #include "sanitise.h" #include "trinity.h" #define GRND_NONBLOCK 0x0001 #define GRND_RANDOM 0x0002 static void sanitise_getrandom(__unused__ struct syscallrecord *rec) { (void) common_set_mmap_ptr_len(); } static unsigned long getrandom_flags[] = { GRND_NONBLOCK, GRND_RANDOM, }; struct syscallentry syscall_getrandom = { .name = "getrandom", .num_args = 3, .arg1name = "buf", .arg1type = ARG_MMAP, .arg2name = "count", .arg3name = "flags", .arg3type = ARG_LIST, .arg3list = ARGLIST(getrandom_flags), .sanitise = sanitise_getrandom, };
kernelslacker/trinity
syscalls/getrandom.c
C
gpl-2.0
685
<?php declare(strict_types=1); /* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * The TYPO3 project - inspiring people to share! */ namespace TYPO3\CMS\Form\Controller; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Symfony\Component\Yaml\Yaml; use TYPO3\CMS\Backend\Routing\UriBuilder; use TYPO3\CMS\Backend\Template\Components\ButtonBar; use TYPO3\CMS\Backend\Template\ModuleTemplate; use TYPO3\CMS\Backend\Template\ModuleTemplateFactory; use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; use TYPO3\CMS\Core\Charset\CharsetConverter; use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Localization\LanguageService; use TYPO3\CMS\Core\Messaging\AbstractMessage; use TYPO3\CMS\Core\Page\JavaScriptModuleInstruction; use TYPO3\CMS\Core\Page\PageRenderer; use TYPO3\CMS\Core\Pagination\ArrayPaginator; use TYPO3\CMS\Core\Pagination\SimplePagination; use TYPO3\CMS\Core\Utility\ArrayUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Mvc\View\JsonView; use TYPO3\CMS\Form\Exception as FormException; use TYPO3\CMS\Form\Mvc\Persistence\Exception\PersistenceManagerException; use TYPO3\CMS\Form\Service\DatabaseService; use TYPO3\CMS\Form\Service\TranslationService; /** * The form manager controller * * Scope: backend * @internal */ class FormManagerController extends AbstractBackendController { protected const JS_MODULE_NAMES = ['app', 'viewModel']; protected ModuleTemplateFactory $moduleTemplateFactory; protected PageRenderer $pageRenderer; protected IconFactory $iconFactory; protected DatabaseService $databaseService; protected int $limit = 20; public function __construct( ModuleTemplateFactory $moduleTemplateFactory, PageRenderer $pageRenderer, IconFactory $iconFactory, DatabaseService $databaseService ) { $this->moduleTemplateFactory = $moduleTemplateFactory; $this->pageRenderer = $pageRenderer; $this->iconFactory = $iconFactory; $this->databaseService = $databaseService; } /** * Displays the Form Manager * * @param int $page * @return ResponseInterface * @internal */ public function indexAction(int $page = 1): ResponseInterface { $forms = $this->getAvailableFormDefinitions(); $arrayPaginator = new ArrayPaginator($forms, $page, $this->limit); $pagination = new SimplePagination($arrayPaginator); $this->view->assignMultiple( [ 'paginator' => $arrayPaginator, 'pagination' => $pagination, 'stylesheets' => $this->resolveResourcePaths($this->formSettings['formManager']['stylesheets']), 'dynamicRequireJsModules' => $this->formSettings['formManager']['dynamicRequireJsModules'], 'formManagerAppInitialData' => json_encode($this->getFormManagerAppInitialData()), ] ); if (!empty($this->formSettings['formManager']['javaScriptTranslationFile'])) { $this->pageRenderer->addInlineLanguageLabelFile($this->formSettings['formManager']['javaScriptTranslationFile']); } $requireJsModules = array_filter( $this->formSettings['formManager']['dynamicRequireJsModules'], fn (string $name) => in_array($name, self::JS_MODULE_NAMES, true), ARRAY_FILTER_USE_KEY ); $this->pageRenderer->getJavaScriptRenderer()->addJavaScriptModuleInstruction( JavaScriptModuleInstruction::forRequireJS('TYPO3/CMS/Form/Backend/Helper', 'Helper') ->invoke('dispatchFormManager', $requireJsModules, $this->getFormManagerAppInitialData()) ); $moduleTemplate = $this->initializeModuleTemplate($this->request); $moduleTemplate->setModuleClass($this->request->getPluginName() . '_' . $this->request->getControllerName()); $moduleTemplate->setFlashMessageQueue($this->getFlashMessageQueue()); $moduleTemplate->setTitle( $this->getLanguageService()->sL('LLL:EXT:form/Resources/Private/Language/locallang_module.xlf:mlang_tabs_tab') ); $moduleTemplate->setContent($this->view->render()); return $this->htmlResponse($moduleTemplate->renderContent()); } /** * Initialize the create action. * This action uses the Fluid JsonView::class as view. * * @internal */ public function initializeCreateAction() { $this->defaultViewObjectName = JsonView::class; } /** * Creates a new Form and redirects to the Form Editor * * @param string $formName * @param string $templatePath * @param string $prototypeName * @param string $savePath * @return ResponseInterface * @throws FormException * @throws PersistenceManagerException * @internal */ public function createAction(string $formName, string $templatePath, string $prototypeName, string $savePath): ResponseInterface { if (!$this->formPersistenceManager->isAllowedPersistencePath($savePath)) { throw new PersistenceManagerException(sprintf('Save to path "%s" is not allowed', $savePath), 1614500657); } if (!$this->isValidTemplatePath($prototypeName, $templatePath)) { throw new FormException(sprintf('The template path "%s" is not allowed', $templatePath), 1329233410); } if (empty($formName)) { throw new FormException('No form name', 1472312204); } $templatePath = GeneralUtility::getFileAbsFileName($templatePath); $form = Yaml::parse((string)file_get_contents($templatePath)); $form['label'] = $formName; $form['identifier'] = $this->formPersistenceManager->getUniqueIdentifier($this->convertFormNameToIdentifier($formName)); $form['prototypeName'] = $prototypeName; $formPersistenceIdentifier = $this->formPersistenceManager->getUniquePersistenceIdentifier($form['identifier'], $savePath); foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeFormCreate'] ?? [] as $className) { $hookObj = GeneralUtility::makeInstance($className); if (method_exists($hookObj, 'beforeFormCreate')) { $form = $hookObj->beforeFormCreate( $formPersistenceIdentifier, $form ); } } $response = [ 'status' => 'success', 'url' => $this->uriBuilder->uriFor('index', ['formPersistenceIdentifier' => $formPersistenceIdentifier], 'FormEditor'), ]; try { $this->formPersistenceManager->save($formPersistenceIdentifier, $form); } catch (PersistenceManagerException $e) { $response = [ 'status' => 'error', 'message' => $e->getMessage(), 'code' => $e->getCode(), ]; } $this->view->assign('response', $response); // createAction uses the Extbase JsonView::class. // That's why we have to set the view variables in this way. $this->view->setVariablesToRender([ 'response', ]); return $this->jsonResponse(); } /** * Initialize the duplicate action. * This action uses the Fluid JsonView::class as view. * * @internal */ public function initializeDuplicateAction() { $this->defaultViewObjectName = JsonView::class; } /** * Duplicates a given formDefinition and redirects to the Form Editor * * @param string $formName * @param string $formPersistenceIdentifier persistence identifier of the form to duplicate * @param string $savePath * @return ResponseInterface * @throws PersistenceManagerException * @internal */ public function duplicateAction(string $formName, string $formPersistenceIdentifier, string $savePath): ResponseInterface { if (!$this->formPersistenceManager->isAllowedPersistencePath($savePath)) { throw new PersistenceManagerException(sprintf('Save to path "%s" is not allowed', $savePath), 1614500658); } if (!$this->formPersistenceManager->isAllowedPersistencePath($formPersistenceIdentifier)) { throw new PersistenceManagerException(sprintf('Read of "%s" is not allowed', $formPersistenceIdentifier), 1614500659); } $formToDuplicate = $this->formPersistenceManager->load($formPersistenceIdentifier); $formToDuplicate['label'] = $formName; $formToDuplicate['identifier'] = $this->formPersistenceManager->getUniqueIdentifier($this->convertFormNameToIdentifier($formName)); $formPersistenceIdentifier = $this->formPersistenceManager->getUniquePersistenceIdentifier($formToDuplicate['identifier'], $savePath); foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeFormDuplicate'] ?? [] as $className) { $hookObj = GeneralUtility::makeInstance($className); if (method_exists($hookObj, 'beforeFormDuplicate')) { $formToDuplicate = $hookObj->beforeFormDuplicate( $formPersistenceIdentifier, $formToDuplicate ); } } $response = [ 'status' => 'success', 'url' => $this->uriBuilder->uriFor('index', ['formPersistenceIdentifier' => $formPersistenceIdentifier], 'FormEditor'), ]; try { $this->formPersistenceManager->save($formPersistenceIdentifier, $formToDuplicate); } catch (PersistenceManagerException $e) { $response = [ 'status' => 'error', 'message' => $e->getMessage(), 'code' => $e->getCode(), ]; } $this->view->assign('response', $response); // createAction uses the Extbase JsonView::class. // That's why we have to set the view variables in this way. $this->view->setVariablesToRender([ 'response', ]); return $this->jsonResponse(); } /** * Initialize the references action. * This action uses the Fluid JsonView::class as view. * * @internal */ public function initializeReferencesAction() { $this->defaultViewObjectName = JsonView::class; } /** * Show references to this persistence identifier * * @param string $formPersistenceIdentifier persistence identifier of the form to duplicate * @return ResponseInterface * @throws PersistenceManagerException * @internal */ public function referencesAction(string $formPersistenceIdentifier): ResponseInterface { if (!$this->formPersistenceManager->isAllowedPersistencePath($formPersistenceIdentifier)) { throw new PersistenceManagerException(sprintf('Read from "%s" is not allowed', $formPersistenceIdentifier), 1614500660); } $this->view->assign('references', $this->getProcessedReferencesRows($formPersistenceIdentifier)); $this->view->assign('formPersistenceIdentifier', $formPersistenceIdentifier); // referencesAction uses the extbase JsonView::class. // That's why we have to set the view variables in this way. $this->view->setVariablesToRender([ 'references', 'formPersistenceIdentifier', ]); return $this->jsonResponse(); } /** * Delete a formDefinition identified by the $formPersistenceIdentifier. * * @param string $formPersistenceIdentifier persistence identifier to delete * @throws PersistenceManagerException * @internal */ public function deleteAction(string $formPersistenceIdentifier) { if (!$this->formPersistenceManager->isAllowedPersistencePath($formPersistenceIdentifier)) { throw new PersistenceManagerException(sprintf('Delete "%s" is not allowed', $formPersistenceIdentifier), 1614500661); } if (empty($this->databaseService->getReferencesByPersistenceIdentifier($formPersistenceIdentifier))) { foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeFormDelete'] ?? [] as $className) { $hookObj = GeneralUtility::makeInstance($className); if (method_exists($hookObj, 'beforeFormDelete')) { $hookObj->beforeFormDelete( $formPersistenceIdentifier ); } } $this->formPersistenceManager->delete($formPersistenceIdentifier); } else { $controllerConfiguration = GeneralUtility::makeInstance(TranslationService::class)->translateValuesRecursive( $this->formSettings['formManager']['controller'], $this->formSettings['formManager']['translationFiles'] ?? [] ); $this->addFlashMessage( sprintf($controllerConfiguration['deleteAction']['errorMessage'], $formPersistenceIdentifier), $controllerConfiguration['deleteAction']['errorTitle'], AbstractMessage::ERROR, true ); } $this->redirect('index'); } /** * Return a list of all accessible file mountpoints. * * Only registered mountpoints from * TYPO3.CMS.Form.persistenceManager.allowedFileMounts * are listed. This list will be reduced by the configured * mountpoints for the current backend user. * * @return array */ protected function getAccessibleFormStorageFolders(): array { $preparedAccessibleFormStorageFolders = []; foreach ($this->formPersistenceManager->getAccessibleFormStorageFolders() as $identifier => $folder) { $preparedAccessibleFormStorageFolders[] = [ 'label' => $folder->getStorage()->isPublic() ? $folder->getPublicUrl() : $identifier, 'value' => $identifier, ]; } if ($this->formSettings['persistenceManager']['allowSaveToExtensionPaths']) { foreach ($this->formPersistenceManager->getAccessibleExtensionFolders() as $relativePath => $fullPath) { $preparedAccessibleFormStorageFolders[] = [ 'label' => $relativePath, 'value' => $relativePath, ]; } } return $preparedAccessibleFormStorageFolders; } /** * Returns the json encoded data which is used by the form editor * JavaScript app. * * @return array */ protected function getFormManagerAppInitialData(): array { $formManagerAppInitialData = [ 'selectablePrototypesConfiguration' => $this->formSettings['formManager']['selectablePrototypesConfiguration'], 'accessibleFormStorageFolders' => $this->getAccessibleFormStorageFolders(), 'endpoints' => [ 'create' => $this->uriBuilder->uriFor('create'), 'duplicate' => $this->uriBuilder->uriFor('duplicate'), 'delete' => $this->uriBuilder->uriFor('delete'), 'references' => $this->uriBuilder->uriFor('references'), ], ]; $formManagerAppInitialData = ArrayUtility::reIndexNumericArrayKeysRecursive($formManagerAppInitialData); $formManagerAppInitialData = GeneralUtility::makeInstance(TranslationService::class)->translateValuesRecursive( $formManagerAppInitialData, $this->formSettings['formManager']['translationFiles'] ?? [] ); return $formManagerAppInitialData; } /** * List all formDefinitions which can be loaded through t form persistence * manager. Enrich this data by a reference counter. * @return array */ protected function getAvailableFormDefinitions(): array { $allReferencesForFileUid = $this->databaseService->getAllReferencesForFileUid(); $allReferencesForPersistenceIdentifier = $this->databaseService->getAllReferencesForPersistenceIdentifier(); $availableFormDefinitions = []; foreach ($this->formPersistenceManager->listForms() as $formDefinition) { $referenceCount = 0; if ( isset($formDefinition['fileUid']) && array_key_exists($formDefinition['fileUid'], $allReferencesForFileUid) ) { $referenceCount = $allReferencesForFileUid[$formDefinition['fileUid']]; } elseif (array_key_exists($formDefinition['persistenceIdentifier'], $allReferencesForPersistenceIdentifier)) { $referenceCount = $allReferencesForPersistenceIdentifier[$formDefinition['persistenceIdentifier']]; } $formDefinition['referenceCount'] = $referenceCount; $availableFormDefinitions[] = $formDefinition; } return $availableFormDefinitions; } /** * Returns an array with information about the references for a * formDefinition identified by $persistenceIdentifier. * * @param string $persistenceIdentifier * @return array * @throws \InvalidArgumentException */ protected function getProcessedReferencesRows(string $persistenceIdentifier): array { if (empty($persistenceIdentifier)) { throw new \InvalidArgumentException('$persistenceIdentifier must not be empty.', 1477071939); } $references = []; $iconFactory = GeneralUtility::makeInstance(IconFactory::class); $referenceRows = $this->databaseService->getReferencesByPersistenceIdentifier($persistenceIdentifier); foreach ($referenceRows as &$referenceRow) { $record = $this->getRecord($referenceRow['tablename'], $referenceRow['recuid']); if (!$record) { continue; } $pageRecord = $this->getRecord('pages', $record['pid']); $urlParameters = [ 'edit' => [ $referenceRow['tablename'] => [ $referenceRow['recuid'] => 'edit', ], ], 'returnUrl' => $this->getModuleUrl('web_FormFormbuilder'), ]; $references[] = [ 'recordPageTitle' => is_array($pageRecord) ? $this->getRecordTitle('pages', $pageRecord) : '', 'recordTitle' => $this->getRecordTitle($referenceRow['tablename'], $record, true), 'recordIcon' => $iconFactory->getIconForRecord($referenceRow['tablename'], $record, Icon::SIZE_SMALL)->render(), 'recordUid' => $referenceRow['recuid'], 'recordEditUrl' => $this->getModuleUrl('record_edit', $urlParameters), ]; } return $references; } /** * Check if a given $templatePath for a given $prototypeName is valid * and accessible. * * Valid template paths has to be configured within * TYPO3.CMS.Form.formManager.selectablePrototypesConfiguration.[('identifier': $prototypeName)].newFormTemplates.[('templatePath': $templatePath)] * * @param string $prototypeName * @param string $templatePath * @return bool */ protected function isValidTemplatePath(string $prototypeName, string $templatePath): bool { $isValid = false; foreach ($this->formSettings['formManager']['selectablePrototypesConfiguration'] as $prototypesConfiguration) { if ($prototypesConfiguration['identifier'] !== $prototypeName) { continue; } foreach ($prototypesConfiguration['newFormTemplates'] as $templatesConfiguration) { if ($templatesConfiguration['templatePath'] !== $templatePath) { continue; } $isValid = true; break; } } $templatePath = GeneralUtility::getFileAbsFileName($templatePath); if (!is_file($templatePath)) { $isValid = false; } return $isValid; } /** * Init ModuleTemplate and register document header buttons */ protected function initializeModuleTemplate(ServerRequestInterface $request): ModuleTemplate { $moduleTemplate = $this->moduleTemplateFactory->create($request); $buttonBar = $moduleTemplate->getDocHeaderComponent()->getButtonBar(); // Create new $addFormButton = $buttonBar->makeLinkButton() ->setDataAttributes(['identifier' => 'newForm']) ->setHref('#') ->setTitle($this->getLanguageService()->sL('LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.create_new_form')) ->setIcon($this->iconFactory->getIcon('actions-add', Icon::SIZE_SMALL)); $buttonBar->addButton($addFormButton, ButtonBar::BUTTON_POSITION_LEFT); // Reload $reloadButton = $buttonBar->makeLinkButton() ->setHref($this->request->getAttribute('normalizedParams')->getRequestUri()) ->setTitle($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.reload')) ->setIcon($this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL)); $buttonBar->addButton($reloadButton, ButtonBar::BUTTON_POSITION_RIGHT); // Shortcut $shortcutButton = $buttonBar->makeShortcutButton() ->setRouteIdentifier('web_FormFormbuilder') ->setDisplayName($this->getLanguageService()->sL('LLL:EXT:form/Resources/Private/Language/Database.xlf:module.shortcut_name')); $buttonBar->addButton($shortcutButton, ButtonBar::BUTTON_POSITION_RIGHT); return $moduleTemplate; } /** * Returns a form identifier which is the lower cased form name. * * @param string $formName * @return string */ protected function convertFormNameToIdentifier(string $formName): string { $csConverter = GeneralUtility::makeInstance(CharsetConverter::class); $formName = \Normalizer::normalize($formName) ?: $formName; $formIdentifier = $csConverter->specCharsToASCII('utf-8', $formName); $formIdentifier = (string)preg_replace('/[^a-zA-Z0-9-_]/', '', $formIdentifier); $formIdentifier = lcfirst($formIdentifier); return $formIdentifier; } /** * Wrapper used for unit testing. * * @param string $table * @param int $uid * @return array|null */ protected function getRecord(string $table, int $uid) { return BackendUtility::getRecord($table, $uid); } /** * Wrapper used for unit testing. * * @param string $table * @param array $row * @param bool $prep * @return string */ protected function getRecordTitle(string $table, array $row, bool $prep = false): string { return BackendUtility::getRecordTitle($table, $row, $prep); } /** * Wrapper used for unit testing. * * @param string $moduleName * @param array $urlParameters * @return string */ protected function getModuleUrl(string $moduleName, array $urlParameters = []): string { /** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */ $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class); return (string)$uriBuilder->buildUriFromRoute($moduleName, $urlParameters); } /** * Returns the current BE user. * * @return BackendUserAuthentication */ protected function getBackendUser(): BackendUserAuthentication { return $GLOBALS['BE_USER']; } /** * Returns the Language Service * * @return LanguageService */ protected function getLanguageService(): LanguageService { return $GLOBALS['LANG']; } }
stweil/TYPO3.CMS
typo3/sysext/form/Classes/Controller/FormManagerController.php
PHP
gpl-2.0
24,438
#include <linux/blkdev.h> /* hm. sometimes this pragma is ignored :( * use BUILD_BUG_ON instead. #pragma GCC diagnostic warning "-Werror" */ /* in Commit 5a7bbad27a410350e64a2d7f5ec18fc73836c14f (between Linux-3.1 and 3.2) make_request() becomes type void. Before it had type int. */ void drbd_make_request(struct request_queue *q, struct bio *bio) { } void foo(void) { BUILD_BUG_ON(!(__same_type(&drbd_make_request, make_request_fn))); }
DestroyFX/remused-drbd
drbd/compat/tests/have_void_make_request.c
C
gpl-2.0
450
/* * Copyright (C) 2012 Team XBMC * http://www.xbmc.org * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This Program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with XBMC; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * http://www.gnu.org/copyleft/gpl.html * */ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string> #include "../../../addons/library.xbmc.gui/libXBMC_gui.h" #include "addons/AddonCallbacks.h" #ifdef _WIN32 #include <windows.h> #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT #endif using namespace std; AddonCB *m_Handle = NULL; CB_GUILib *m_cb = NULL; extern "C" { DLLEXPORT int GUI_register_me(void *hdl) { if (!hdl) fprintf(stderr, "libXBMC_gui-ERROR: GUILib_register_me is called with NULL handle !!!\n"); else { m_Handle = (AddonCB*) hdl; m_cb = m_Handle->GUILib_RegisterMe(m_Handle->addonData); if (!m_cb) fprintf(stderr, "libXBMC_gui-ERROR: GUILib_register_me can't get callback table from XBMC !!!\n"); else return 1; } return 0; } DLLEXPORT void GUI_unregister_me() { if (m_Handle && m_cb) m_Handle->GUILib_UnRegisterMe(m_Handle->addonData, m_cb); } DLLEXPORT void GUI_lock() { m_cb->Lock(); } DLLEXPORT void GUI_unlock() { m_cb->Unlock(); } DLLEXPORT int GUI_get_screen_height() { return m_cb->GetScreenHeight(); } DLLEXPORT int GUI_get_screen_width() { return m_cb->GetScreenWidth(); } DLLEXPORT int GUI_get_video_resolution() { return m_cb->GetVideoResolution(); } DLLEXPORT CAddonGUIWindow* GUI_Window_create(const char *xmlFilename, const char *defaultSkin, bool forceFallback, bool asDialog) { return new CAddonGUIWindow(xmlFilename, defaultSkin, forceFallback, asDialog); } DLLEXPORT void GUI_Window_destroy(CAddonGUIWindow* p) { delete p; } DLLEXPORT bool GUI_Window_OnClick(GUIHANDLE handle, int controlId) { CAddonGUIWindow *window = (CAddonGUIWindow*) handle; return window->OnClick(controlId); } DLLEXPORT bool GUI_Window_OnFocus(GUIHANDLE handle, int controlId) { CAddonGUIWindow *window = (CAddonGUIWindow*) handle; return window->OnFocus(controlId); } DLLEXPORT bool GUI_Window_OnInit(GUIHANDLE handle) { CAddonGUIWindow *window = (CAddonGUIWindow*) handle; return window->OnInit(); } DLLEXPORT bool GUI_Window_OnAction(GUIHANDLE handle, int actionId) { CAddonGUIWindow *window = (CAddonGUIWindow*) handle; return window->OnAction(actionId); } CAddonGUIWindow::CAddonGUIWindow(const char *xmlFilename, const char *defaultSkin, bool forceFallback, bool asDialog) { CBOnInit = NULL; CBOnClick = NULL; CBOnFocus = NULL; if (m_Handle && m_cb) { m_WindowHandle = m_cb->Window_New(m_Handle->addonData, xmlFilename, defaultSkin, forceFallback, asDialog); if (!m_WindowHandle) fprintf(stderr, "libXBMC_gui-ERROR: cGUIWindow can't create window class from XBMC !!!\n"); m_cb->Window_SetCallbacks(m_Handle->addonData, m_WindowHandle, this, GUI_Window_OnInit, GUI_Window_OnClick, GUI_Window_OnFocus, GUI_Window_OnAction); } } CAddonGUIWindow::~CAddonGUIWindow() { if (m_Handle && m_cb && m_WindowHandle) { m_cb->Window_Delete(m_Handle->addonData, m_WindowHandle); m_WindowHandle = NULL; } } bool CAddonGUIWindow::Show() { return m_cb->Window_Show(m_Handle->addonData, m_WindowHandle); } void CAddonGUIWindow::Close() { m_cb->Window_Close(m_Handle->addonData, m_WindowHandle); } void CAddonGUIWindow::DoModal() { m_cb->Window_DoModal(m_Handle->addonData, m_WindowHandle); } bool CAddonGUIWindow::OnInit() { if (!CBOnInit) return false; return CBOnInit(m_cbhdl); } bool CAddonGUIWindow::OnClick(int controlId) { if (!CBOnClick) return false; return CBOnClick(m_cbhdl, controlId); } bool CAddonGUIWindow::OnFocus(int controlId) { if (!CBOnFocus) return false; return CBOnFocus(m_cbhdl, controlId); } bool CAddonGUIWindow::OnAction(int actionId) { if (!CBOnAction) return false; return CBOnAction(m_cbhdl, actionId); } bool CAddonGUIWindow::SetFocusId(int iControlId) { return m_cb->Window_SetFocusId(m_Handle->addonData, m_WindowHandle, iControlId); } int CAddonGUIWindow::GetFocusId() { return m_cb->Window_GetFocusId(m_Handle->addonData, m_WindowHandle); } bool CAddonGUIWindow::SetCoordinateResolution(int res) { return m_cb->Window_SetCoordinateResolution(m_Handle->addonData, m_WindowHandle, res); } void CAddonGUIWindow::SetProperty(const char *key, const char *value) { m_cb->Window_SetProperty(m_Handle->addonData, m_WindowHandle, key, value); } void CAddonGUIWindow::SetPropertyInt(const char *key, int value) { m_cb->Window_SetPropertyInt(m_Handle->addonData, m_WindowHandle, key, value); } void CAddonGUIWindow::SetPropertyBool(const char *key, bool value) { m_cb->Window_SetPropertyBool(m_Handle->addonData, m_WindowHandle, key, value); } void CAddonGUIWindow::SetPropertyDouble(const char *key, double value) { m_cb->Window_SetPropertyDouble(m_Handle->addonData, m_WindowHandle, key, value); } const char *CAddonGUIWindow::GetProperty(const char *key) const { return m_cb->Window_GetProperty(m_Handle->addonData, m_WindowHandle, key); } int CAddonGUIWindow::GetPropertyInt(const char *key) const { return m_cb->Window_GetPropertyInt(m_Handle->addonData, m_WindowHandle, key); } bool CAddonGUIWindow::GetPropertyBool(const char *key) const { return m_cb->Window_GetPropertyBool(m_Handle->addonData, m_WindowHandle, key); } double CAddonGUIWindow::GetPropertyDouble(const char *key) const { return m_cb->Window_GetPropertyDouble(m_Handle->addonData, m_WindowHandle, key); } void CAddonGUIWindow::ClearProperties() { m_cb->Window_ClearProperties(m_Handle->addonData, m_WindowHandle); } int CAddonGUIWindow::GetListSize() { return m_cb->Window_GetListSize(m_Handle->addonData, m_WindowHandle); } void CAddonGUIWindow::ClearList() { m_cb->Window_ClearList(m_Handle->addonData, m_WindowHandle); } GUIHANDLE CAddonGUIWindow::AddStringItem(const char *name, int itemPosition) { return m_cb->Window_AddStringItem(m_Handle->addonData, m_WindowHandle, name, itemPosition); } void CAddonGUIWindow::AddItem(GUIHANDLE item, int itemPosition) { m_cb->Window_AddItem(m_Handle->addonData, m_WindowHandle, item, itemPosition); } void CAddonGUIWindow::AddItem(CAddonListItem *item, int itemPosition) { m_cb->Window_AddItem(m_Handle->addonData, m_WindowHandle, item->m_ListItemHandle, itemPosition); } void CAddonGUIWindow::RemoveItem(int itemPosition) { m_cb->Window_RemoveItem(m_Handle->addonData, m_WindowHandle, itemPosition); } GUIHANDLE CAddonGUIWindow::GetListItem(int listPos) { return m_cb->Window_GetListItem(m_Handle->addonData, m_WindowHandle, listPos); } void CAddonGUIWindow::SetCurrentListPosition(int listPos) { m_cb->Window_SetCurrentListPosition(m_Handle->addonData, m_WindowHandle, listPos); } int CAddonGUIWindow::GetCurrentListPosition() { return m_cb->Window_GetCurrentListPosition(m_Handle->addonData, m_WindowHandle); } void CAddonGUIWindow::SetControlLabel(int controlId, const char *label) { m_cb->Window_SetControlLabel(m_Handle->addonData, m_WindowHandle, controlId, label); } ///------------------------------------- /// cGUISpinControl DLLEXPORT CAddonGUISpinControl* GUI_control_get_spin(CAddonGUIWindow *window, int controlId) { return new CAddonGUISpinControl(window, controlId); } DLLEXPORT void GUI_control_release_spin(CAddonGUISpinControl* p) { delete p; } CAddonGUISpinControl::CAddonGUISpinControl(CAddonGUIWindow *window, int controlId) : m_Window(window) , m_ControlId(controlId) { m_SpinHandle = m_cb->Window_GetControl_Spin(m_Handle->addonData, m_Window->m_WindowHandle, controlId); } void CAddonGUISpinControl::SetVisible(bool yesNo) { if (m_SpinHandle) m_cb->Control_Spin_SetVisible(m_Handle->addonData, m_SpinHandle, yesNo); } void CAddonGUISpinControl::SetText(const char *label) { if (m_SpinHandle) m_cb->Control_Spin_SetText(m_Handle->addonData, m_SpinHandle, label); } void CAddonGUISpinControl::Clear() { if (m_SpinHandle) m_cb->Control_Spin_Clear(m_Handle->addonData, m_SpinHandle); } void CAddonGUISpinControl::AddLabel(const char *label, int iValue) { if (m_SpinHandle) m_cb->Control_Spin_AddLabel(m_Handle->addonData, m_SpinHandle, label, iValue); } int CAddonGUISpinControl::GetValue() { if (!m_SpinHandle) return -1; return m_cb->Control_Spin_GetValue(m_Handle->addonData, m_SpinHandle); } void CAddonGUISpinControl::SetValue(int iValue) { if (m_SpinHandle) m_cb->Control_Spin_SetValue(m_Handle->addonData, m_SpinHandle, iValue); } ///------------------------------------- /// cGUIRadioButton DLLEXPORT CAddonGUIRadioButton* GUI_control_get_radiobutton(CAddonGUIWindow *window, int controlId) { return new CAddonGUIRadioButton(window, controlId); } DLLEXPORT void GUI_control_release_radiobutton(CAddonGUIRadioButton* p) { delete p; } CAddonGUIRadioButton::CAddonGUIRadioButton(CAddonGUIWindow *window, int controlId) : m_Window(window) , m_ControlId(controlId) { m_ButtonHandle = m_cb->Window_GetControl_RadioButton(m_Handle->addonData, m_Window->m_WindowHandle, controlId); } void CAddonGUIRadioButton::SetVisible(bool yesNo) { if (m_ButtonHandle) m_cb->Control_RadioButton_SetVisible(m_Handle->addonData, m_ButtonHandle, yesNo); } void CAddonGUIRadioButton::SetText(const char *label) { if (m_ButtonHandle) m_cb->Control_RadioButton_SetText(m_Handle->addonData, m_ButtonHandle, label); } void CAddonGUIRadioButton::SetSelected(bool yesNo) { if (m_ButtonHandle) m_cb->Control_RadioButton_SetSelected(m_Handle->addonData, m_ButtonHandle, yesNo); } bool CAddonGUIRadioButton::IsSelected() { if (!m_ButtonHandle) return false; return m_cb->Control_RadioButton_IsSelected(m_Handle->addonData, m_ButtonHandle); } ///------------------------------------- /// cGUIProgressControl DLLEXPORT CAddonGUIProgressControl* GUI_control_get_progress(CAddonGUIWindow *window, int controlId) { return new CAddonGUIProgressControl(window, controlId); } DLLEXPORT void GUI_control_release_progress(CAddonGUIProgressControl* p) { delete p; } CAddonGUIProgressControl::CAddonGUIProgressControl(CAddonGUIWindow *window, int controlId) : m_Window(window) , m_ControlId(controlId) { m_ProgressHandle = m_cb->Window_GetControl_Progress(m_Handle->addonData, m_Window->m_WindowHandle, controlId); } void CAddonGUIProgressControl::SetPercentage(float fPercent) { if (m_ProgressHandle) m_cb->Control_Progress_SetPercentage(m_Handle->addonData, m_ProgressHandle, fPercent); } float CAddonGUIProgressControl::GetPercentage() const { if (!m_ProgressHandle) return 0.0; return m_cb->Control_Progress_GetPercentage(m_Handle->addonData, m_ProgressHandle); } void CAddonGUIProgressControl::SetInfo(int iInfo) { if (m_ProgressHandle) m_cb->Control_Progress_SetInfo(m_Handle->addonData, m_ProgressHandle, iInfo); } int CAddonGUIProgressControl::GetInfo() const { if (!m_ProgressHandle) return -1; return m_cb->Control_Progress_GetInfo(m_Handle->addonData, m_ProgressHandle); } string CAddonGUIProgressControl::GetDescription() const { if (!m_ProgressHandle) return ""; return m_cb->Control_Progress_GetDescription(m_Handle->addonData, m_ProgressHandle); } ///------------------------------------- /// cListItem DLLEXPORT CAddonListItem* GUI_ListItem_create(const char *label, const char *label2, const char *iconImage, const char *thumbnailImage, const char *path) { return new CAddonListItem(label, label2, iconImage, thumbnailImage, path); } DLLEXPORT void GUI_ListItem_destroy(CAddonListItem* p) { delete p; } CAddonListItem::CAddonListItem(const char *label, const char *label2, const char *iconImage, const char *thumbnailImage, const char *path) { m_ListItemHandle = m_cb->ListItem_Create(m_Handle->addonData, label, label2, iconImage, thumbnailImage, path); } const char *CAddonListItem::GetLabel() { if (!m_ListItemHandle) return ""; return m_cb->ListItem_GetLabel(m_Handle->addonData, m_ListItemHandle); } void CAddonListItem::SetLabel(const char *label) { if (m_ListItemHandle) m_cb->ListItem_SetLabel(m_Handle->addonData, m_ListItemHandle, label); } const char *CAddonListItem::GetLabel2() { if (!m_ListItemHandle) return ""; return m_cb->ListItem_GetLabel2(m_Handle->addonData, m_ListItemHandle); } void CAddonListItem::SetLabel2(const char *label) { if (m_ListItemHandle) m_cb->ListItem_SetLabel2(m_Handle->addonData, m_ListItemHandle, label); } void CAddonListItem::SetIconImage(const char *image) { if (m_ListItemHandle) m_cb->ListItem_SetIconImage(m_Handle->addonData, m_ListItemHandle, image); } void CAddonListItem::SetThumbnailImage(const char *image) { if (m_ListItemHandle) m_cb->ListItem_SetThumbnailImage(m_Handle->addonData, m_ListItemHandle, image); } void CAddonListItem::SetInfo(const char *Info) { if (m_ListItemHandle) m_cb->ListItem_SetInfo(m_Handle->addonData, m_ListItemHandle, Info); } void CAddonListItem::SetProperty(const char *key, const char *value) { if (m_ListItemHandle) m_cb->ListItem_SetProperty(m_Handle->addonData, m_ListItemHandle, key, value); } const char *CAddonListItem::GetProperty(const char *key) const { if (!m_ListItemHandle) return ""; return m_cb->ListItem_GetProperty(m_Handle->addonData, m_ListItemHandle, key); } void CAddonListItem::SetPath(const char *Path) { if (m_ListItemHandle) m_cb->ListItem_SetPath(m_Handle->addonData, m_ListItemHandle, Path); } };
herrnst/xbmc-opdenkamp
lib/addons/library.xbmc.gui/libXBMC_gui.cpp
C++
gpl-2.0
14,070
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Copyright 2000-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sun.org.apache.xerces.internal.jaxp; import com.sun.org.apache.xerces.internal.impl.Constants; import com.sun.org.apache.xerces.internal.impl.validation.ValidationManager; import com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator; import com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer; import com.sun.org.apache.xerces.internal.util.SAXMessageFormatter; import com.sun.org.apache.xerces.internal.util.Status; import com.sun.org.apache.xerces.internal.utils.XMLSecurityManager; import com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager; import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler; import com.sun.org.apache.xerces.internal.xni.parser.XMLComponent; import com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager; import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; import com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource; import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration; import com.sun.org.apache.xerces.internal.xs.AttributePSVI; import com.sun.org.apache.xerces.internal.xs.ElementPSVI; import com.sun.org.apache.xerces.internal.xs.PSVIProvider; import java.io.IOException; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import java.util.Locale; import java.util.Map; import javax.xml.XMLConstants; import javax.xml.validation.Schema; import org.xml.sax.EntityResolver; import org.xml.sax.ErrorHandler; import org.xml.sax.HandlerBase; import org.xml.sax.InputSource; import org.xml.sax.Parser; import org.xml.sax.SAXException; import org.xml.sax.SAXNotRecognizedException; import org.xml.sax.SAXNotSupportedException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.DefaultHandler; /** * This is the implementation specific class for the * <code>javax.xml.parsers.SAXParser</code>. * * @author Rajiv Mordani * @author Edwin Goei * * @version $Id: SAXParserImpl.java,v 1.7 2010-11-01 04:40:06 joehw Exp $ */ public class SAXParserImpl extends javax.xml.parsers.SAXParser implements JAXPConstants, PSVIProvider { /** Feature identifier: namespaces. */ private static final String NAMESPACES_FEATURE = Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE; /** Feature identifier: namespace prefixes. */ private static final String NAMESPACE_PREFIXES_FEATURE = Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACE_PREFIXES_FEATURE; /** Feature identifier: validation. */ private static final String VALIDATION_FEATURE = Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE; /** Feature identifier: XML Schema validation */ private static final String XMLSCHEMA_VALIDATION_FEATURE = Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_VALIDATION_FEATURE; /** Feature identifier: XInclude processing */ private static final String XINCLUDE_FEATURE = Constants.XERCES_FEATURE_PREFIX + Constants.XINCLUDE_FEATURE; /** Property identifier: security manager. */ private static final String SECURITY_MANAGER = Constants.XERCES_PROPERTY_PREFIX + Constants.SECURITY_MANAGER_PROPERTY; /** Property identifier: Security property manager. */ private static final String XML_SECURITY_PROPERTY_MANAGER = Constants.XML_SECURITY_PROPERTY_MANAGER; private final JAXPSAXParser xmlReader; private String schemaLanguage = null; // null means DTD private final Schema grammar; private final XMLComponent fSchemaValidator; private final XMLComponentManager fSchemaValidatorComponentManager; private final ValidationManager fSchemaValidationManager; private final UnparsedEntityHandler fUnparsedEntityHandler; /** Initial ErrorHandler */ private final ErrorHandler fInitErrorHandler; /** Initial EntityResolver */ private final EntityResolver fInitEntityResolver; private final XMLSecurityManager fSecurityManager; private final XMLSecurityPropertyManager fSecurityPropertyMgr; /** * Create a SAX parser with the associated features * @param features Hashtable of SAX features, may be null */ SAXParserImpl(SAXParserFactoryImpl spf, Hashtable features) throws SAXException { this(spf, features, false); } /** * Create a SAX parser with the associated features * @param features Hashtable of SAX features, may be null */ SAXParserImpl(SAXParserFactoryImpl spf, Hashtable features, boolean secureProcessing) throws SAXException { fSecurityManager = new XMLSecurityManager(secureProcessing); fSecurityPropertyMgr = new XMLSecurityPropertyManager(); // Instantiate a SAXParser directly and not through SAX so that we use the right ClassLoader xmlReader = new JAXPSAXParser(this, fSecurityPropertyMgr, fSecurityManager); // JAXP "namespaceAware" == SAX Namespaces feature // Note: there is a compatibility problem here with default values: // JAXP default is false while SAX 2 default is true! xmlReader.setFeature0(NAMESPACES_FEATURE, spf.isNamespaceAware()); // SAX "namespaces" and "namespace-prefixes" features should not // both be false. We make them opposite for backward compatibility // since JAXP 1.0 apps may want to receive xmlns* attributes. xmlReader.setFeature0(NAMESPACE_PREFIXES_FEATURE, !spf.isNamespaceAware()); // Avoid setting the XInclude processing feature if the value is false. // This will keep the configuration from throwing an exception if it // does not support XInclude. if (spf.isXIncludeAware()) { xmlReader.setFeature0(XINCLUDE_FEATURE, true); } xmlReader.setProperty0(XML_SECURITY_PROPERTY_MANAGER, fSecurityPropertyMgr); xmlReader.setProperty0(SECURITY_MANAGER, fSecurityManager); if (secureProcessing) { /** * By default, secure processing is set, no external access is allowed. * However, we need to check if it is actively set on the factory since we * allow the use of the System Property or jaxp.properties to override * the default value */ if (features != null) { Object temp = features.get(XMLConstants.FEATURE_SECURE_PROCESSING); if (temp != null) { boolean value = ((Boolean) temp).booleanValue(); if (value && Constants.IS_JDK8_OR_ABOVE) { fSecurityPropertyMgr.setValue(XMLSecurityPropertyManager.Property.ACCESS_EXTERNAL_DTD, XMLSecurityPropertyManager.State.FSP, Constants.EXTERNAL_ACCESS_DEFAULT_FSP); fSecurityPropertyMgr.setValue(XMLSecurityPropertyManager.Property.ACCESS_EXTERNAL_SCHEMA, XMLSecurityPropertyManager.State.FSP, Constants.EXTERNAL_ACCESS_DEFAULT_FSP); } } } } // Set application's features, followed by validation features. setFeatures(features); // If validating, provide a default ErrorHandler that prints // validation errors with a warning telling the user to set an // ErrorHandler. if (spf.isValidating()) { fInitErrorHandler = new DefaultValidationErrorHandler(xmlReader.getLocale()); xmlReader.setErrorHandler(fInitErrorHandler); } else { fInitErrorHandler = xmlReader.getErrorHandler(); } xmlReader.setFeature0(VALIDATION_FEATURE, spf.isValidating()); // Get the Schema object from the factory this.grammar = spf.getSchema(); if (grammar != null) { XMLParserConfiguration config = xmlReader.getXMLParserConfiguration(); XMLComponent validatorComponent = null; /** For Xerces grammars, use built-in schema validator. **/ if (grammar instanceof XSGrammarPoolContainer) { validatorComponent = new XMLSchemaValidator(); fSchemaValidationManager = new ValidationManager(); fUnparsedEntityHandler = new UnparsedEntityHandler(fSchemaValidationManager); config.setDTDHandler(fUnparsedEntityHandler); fUnparsedEntityHandler.setDTDHandler(xmlReader); xmlReader.setDTDSource(fUnparsedEntityHandler); fSchemaValidatorComponentManager = new SchemaValidatorConfiguration(config, (XSGrammarPoolContainer) grammar, fSchemaValidationManager); } /** For third party grammars, use the JAXP validator component. **/ else { validatorComponent = new JAXPValidatorComponent(grammar.newValidatorHandler()); fSchemaValidationManager = null; fUnparsedEntityHandler = null; fSchemaValidatorComponentManager = config; } config.addRecognizedFeatures(validatorComponent.getRecognizedFeatures()); config.addRecognizedProperties(validatorComponent.getRecognizedProperties()); config.setDocumentHandler((XMLDocumentHandler) validatorComponent); ((XMLDocumentSource)validatorComponent).setDocumentHandler(xmlReader); xmlReader.setDocumentSource((XMLDocumentSource) validatorComponent); fSchemaValidator = validatorComponent; } else { fSchemaValidationManager = null; fUnparsedEntityHandler = null; fSchemaValidatorComponentManager = null; fSchemaValidator = null; } // Initial EntityResolver fInitEntityResolver = xmlReader.getEntityResolver(); } /** * Set any features of our XMLReader based on any features set on the * SAXParserFactory. * * XXX Does not handle possible conflicts between SAX feature names and * JAXP specific feature names, eg. SAXParserFactory.isValidating() */ private void setFeatures(Hashtable features) throws SAXNotSupportedException, SAXNotRecognizedException { if (features != null) { Iterator entries = features.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = (Map.Entry) entries.next(); String feature = (String) entry.getKey(); boolean value = ((Boolean) entry.getValue()).booleanValue(); xmlReader.setFeature0(feature, value); } } } public Parser getParser() throws SAXException { // Xerces2 AbstractSAXParser implements SAX1 Parser // assert(xmlReader instanceof Parser); return (Parser) xmlReader; } /** * Returns the XMLReader that is encapsulated by the implementation of * this class. */ public XMLReader getXMLReader() { return xmlReader; } public boolean isNamespaceAware() { try { return xmlReader.getFeature(NAMESPACES_FEATURE); } catch (SAXException x) { throw new IllegalStateException(x.getMessage()); } } public boolean isValidating() { try { return xmlReader.getFeature(VALIDATION_FEATURE); } catch (SAXException x) { throw new IllegalStateException(x.getMessage()); } } /** * Gets the XInclude processing mode for this parser * @return the state of XInclude processing mode */ public boolean isXIncludeAware() { try { return xmlReader.getFeature(XINCLUDE_FEATURE); } catch (SAXException exc) { return false; } } /** * Sets the particular property in the underlying implementation of * org.xml.sax.XMLReader. */ public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { xmlReader.setProperty(name, value); } /** * returns the particular property requested for in the underlying * implementation of org.xml.sax.XMLReader. */ public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { return xmlReader.getProperty(name); } public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException(); } if (dh != null) { xmlReader.setContentHandler(dh); xmlReader.setEntityResolver(dh); xmlReader.setErrorHandler(dh); xmlReader.setDTDHandler(dh); xmlReader.setDocumentHandler(null); } xmlReader.parse(is); } public void parse(InputSource is, HandlerBase hb) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException(); } if (hb != null) { xmlReader.setDocumentHandler(hb); xmlReader.setEntityResolver(hb); xmlReader.setErrorHandler(hb); xmlReader.setDTDHandler(hb); xmlReader.setContentHandler(null); } xmlReader.parse(is); } public Schema getSchema() { return grammar; } public void reset() { try { /** Restore initial values of features and properties. **/ xmlReader.restoreInitState(); } catch (SAXException exc) { // This should never happen. We only store recognized // features and properties in the hash maps. For now // just ignore it. } /** Restore various handlers. **/ xmlReader.setContentHandler(null); xmlReader.setDTDHandler(null); if (xmlReader.getErrorHandler() != fInitErrorHandler) { xmlReader.setErrorHandler(fInitErrorHandler); } if (xmlReader.getEntityResolver() != fInitEntityResolver) { xmlReader.setEntityResolver(fInitEntityResolver); } } /* * PSVIProvider methods */ public ElementPSVI getElementPSVI() { return ((PSVIProvider)xmlReader).getElementPSVI(); } public AttributePSVI getAttributePSVI(int index) { return ((PSVIProvider)xmlReader).getAttributePSVI(index); } public AttributePSVI getAttributePSVIByName(String uri, String localname) { return ((PSVIProvider)xmlReader).getAttributePSVIByName(uri, localname); } /** * Extension of SAXParser. This class tracks changes to * features and properties to allow the parser to be reset to * its initial state. */ public static class JAXPSAXParser extends com.sun.org.apache.xerces.internal.parsers.SAXParser { private final HashMap fInitFeatures = new HashMap(); private final HashMap fInitProperties = new HashMap(); private final SAXParserImpl fSAXParser; private XMLSecurityManager fSecurityManager; private XMLSecurityPropertyManager fSecurityPropertyMgr; public JAXPSAXParser() { this(null, null, null); } JAXPSAXParser(SAXParserImpl saxParser, XMLSecurityPropertyManager securityPropertyMgr, XMLSecurityManager securityManager) { super(); fSAXParser = saxParser; fSecurityManager = securityManager; fSecurityPropertyMgr = securityPropertyMgr; /** * This class may be used directly. So initialize the security manager if * it is null. */ if (fSecurityManager == null) { fSecurityManager = new XMLSecurityManager(true); try { super.setProperty(SECURITY_MANAGER, fSecurityManager); } catch (SAXException e) { throw new UnsupportedOperationException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "property-not-recognized", new Object [] {SECURITY_MANAGER}), e); } } if (fSecurityPropertyMgr == null) { fSecurityPropertyMgr = new XMLSecurityPropertyManager(); try { super.setProperty(XML_SECURITY_PROPERTY_MANAGER, fSecurityPropertyMgr); } catch (SAXException e) { throw new UnsupportedOperationException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "property-not-recognized", new Object [] {XML_SECURITY_PROPERTY_MANAGER}), e); } } } /** * Override SAXParser's setFeature method to track the initial state * of features. This keeps us from affecting the performance of the * SAXParser when it is created with XMLReaderFactory. */ public synchronized void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { // TODO: Add localized error message. throw new NullPointerException(); } if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) { try { fSecurityManager.setSecureProcessing(value); setProperty(SECURITY_MANAGER, fSecurityManager); } catch (SAXNotRecognizedException exc) { // If the property is not supported // re-throw the exception if the value is true. if (value) { throw exc; } } catch (SAXNotSupportedException exc) { // If the property is not supported // re-throw the exception if the value is true. if (value) { throw exc; } } return; } if (!fInitFeatures.containsKey(name)) { boolean current = super.getFeature(name); fInitFeatures.put(name, current ? Boolean.TRUE : Boolean.FALSE); } /** Forward feature to the schema validator if there is one. **/ if (fSAXParser != null && fSAXParser.fSchemaValidator != null) { setSchemaValidatorFeature(name, value); } super.setFeature(name, value); } public synchronized boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { // TODO: Add localized error message. throw new NullPointerException(); } if (name.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) { return fSecurityManager.isSecureProcessing(); } return super.getFeature(name); } /** * Override SAXParser's setProperty method to track the initial state * of properties. This keeps us from affecting the performance of the * SAXParser when it is created with XMLReaderFactory. */ public synchronized void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { // TODO: Add localized error message. throw new NullPointerException(); } if (fSAXParser != null) { // JAXP 1.2 support if (JAXP_SCHEMA_LANGUAGE.equals(name)) { // The spec says if a schema is given via SAXParserFactory // the JAXP 1.2 properties shouldn't be allowed. if (fSAXParser.grammar != null) { throw new SAXNotSupportedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "schema-already-specified", new Object[] {name})); } if ( W3C_XML_SCHEMA.equals(value) ) { //None of the properties will take effect till the setValidating(true) has been called if( fSAXParser.isValidating() ) { fSAXParser.schemaLanguage = W3C_XML_SCHEMA; setFeature(XMLSCHEMA_VALIDATION_FEATURE, true); // this will allow the parser not to emit DTD-related // errors, as the spec demands if (!fInitProperties.containsKey(JAXP_SCHEMA_LANGUAGE)) { fInitProperties.put(JAXP_SCHEMA_LANGUAGE, super.getProperty(JAXP_SCHEMA_LANGUAGE)); } super.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA); } } else if (value == null) { fSAXParser.schemaLanguage = null; setFeature(XMLSCHEMA_VALIDATION_FEATURE, false); } else { // REVISIT: It would be nice if we could format this message // using a user specified locale as we do in the underlying // XMLReader -- mrglavas throw new SAXNotSupportedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "schema-not-supported", null)); } return; } else if (JAXP_SCHEMA_SOURCE.equals(name)) { // The spec says if a schema is given via SAXParserFactory // the JAXP 1.2 properties shouldn't be allowed. if (fSAXParser.grammar != null) { throw new SAXNotSupportedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "schema-already-specified", new Object[] {name})); } String val = (String)getProperty(JAXP_SCHEMA_LANGUAGE); if ( val != null && W3C_XML_SCHEMA.equals(val) ) { if (!fInitProperties.containsKey(JAXP_SCHEMA_SOURCE)) { fInitProperties.put(JAXP_SCHEMA_SOURCE, super.getProperty(JAXP_SCHEMA_SOURCE)); } super.setProperty(name, value); } else { throw new SAXNotSupportedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "jaxp-order-not-supported", new Object[] {JAXP_SCHEMA_LANGUAGE, JAXP_SCHEMA_SOURCE})); } return; } } /** Forward property to the schema validator if there is one. **/ if (fSAXParser != null && fSAXParser.fSchemaValidator != null) { setSchemaValidatorProperty(name, value); } //check if the property is managed by security manager if (fSecurityManager == null || !fSecurityManager.setLimit(name, XMLSecurityManager.State.APIPROPERTY, value)) { //check if the property is managed by security property manager if (fSecurityPropertyMgr == null || !fSecurityPropertyMgr.setValue(name, XMLSecurityPropertyManager.State.APIPROPERTY, value)) { //fall back to the existing property manager if (!fInitProperties.containsKey(name)) { fInitProperties.put(name, super.getProperty(name)); } super.setProperty(name, value); } } } public synchronized Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (name == null) { // TODO: Add localized error message. throw new NullPointerException(); } if (fSAXParser != null && JAXP_SCHEMA_LANGUAGE.equals(name)) { // JAXP 1.2 support return fSAXParser.schemaLanguage; } /** Check to see if the property is managed by the security manager **/ String propertyValue = (fSecurityManager != null) ? fSecurityManager.getLimitAsString(name) : null; if (propertyValue != null) { return propertyValue; } else { propertyValue = (fSecurityPropertyMgr != null) ? fSecurityPropertyMgr.getValue(name) : null; if (propertyValue != null) { return propertyValue; } } return super.getProperty(name); } synchronized void restoreInitState() throws SAXNotRecognizedException, SAXNotSupportedException { Iterator iter; if (!fInitFeatures.isEmpty()) { iter = fInitFeatures.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); String name = (String) entry.getKey(); boolean value = ((Boolean) entry.getValue()).booleanValue(); super.setFeature(name, value); } fInitFeatures.clear(); } if (!fInitProperties.isEmpty()) { iter = fInitProperties.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); String name = (String) entry.getKey(); Object value = entry.getValue(); super.setProperty(name, value); } fInitProperties.clear(); } } public void parse(InputSource inputSource) throws SAXException, IOException { if (fSAXParser != null && fSAXParser.fSchemaValidator != null) { if (fSAXParser.fSchemaValidationManager != null) { fSAXParser.fSchemaValidationManager.reset(); fSAXParser.fUnparsedEntityHandler.reset(); } resetSchemaValidator(); } super.parse(inputSource); } public void parse(String systemId) throws SAXException, IOException { if (fSAXParser != null && fSAXParser.fSchemaValidator != null) { if (fSAXParser.fSchemaValidationManager != null) { fSAXParser.fSchemaValidationManager.reset(); fSAXParser.fUnparsedEntityHandler.reset(); } resetSchemaValidator(); } super.parse(systemId); } XMLParserConfiguration getXMLParserConfiguration() { return fConfiguration; } void setFeature0(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { super.setFeature(name, value); } boolean getFeature0(String name) throws SAXNotRecognizedException, SAXNotSupportedException { return super.getFeature(name); } void setProperty0(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { super.setProperty(name, value); } Object getProperty0(String name) throws SAXNotRecognizedException, SAXNotSupportedException { return super.getProperty(name); } Locale getLocale() { return fConfiguration.getLocale(); } private void setSchemaValidatorFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { try { fSAXParser.fSchemaValidator.setFeature(name, value); } // This should never be thrown from the schema validator. catch (XMLConfigurationException e) { String identifier = e.getIdentifier(); if (e.getType() == Status.NOT_RECOGNIZED) { throw new SAXNotRecognizedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "feature-not-recognized", new Object [] {identifier})); } else { throw new SAXNotSupportedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "feature-not-supported", new Object [] {identifier})); } } } private void setSchemaValidatorProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { try { fSAXParser.fSchemaValidator.setProperty(name, value); } // This should never be thrown from the schema validator. catch (XMLConfigurationException e) { String identifier = e.getIdentifier(); if (e.getType() == Status.NOT_RECOGNIZED) { throw new SAXNotRecognizedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "property-not-recognized", new Object [] {identifier})); } else { throw new SAXNotSupportedException( SAXMessageFormatter.formatMessage(fConfiguration.getLocale(), "property-not-supported", new Object [] {identifier})); } } } private void resetSchemaValidator() throws SAXException { try { fSAXParser.fSchemaValidator.reset(fSAXParser.fSchemaValidatorComponentManager); } // This should never be thrown from the schema validator. catch (XMLConfigurationException e) { throw new SAXException(e); } } } }
zarue/jdk7u-hotspot
jaxp/src/com/sun/org/apache/xerces/internal/jaxp/SAXParserImpl.java
Java
gpl-2.0
31,363