repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
shutchings/azure-sdk-for-net
src/SDKs/Resource/Management.ResourceManager/Generated/ManagementGroupsAPIClient.cs
13178
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.ResourceManager { using Microsoft.Azure; using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Models; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; /// <summary> /// The Azure Management Groups API enables consolidation of multiple /// subscriptions/resources into an organizational hierarchy and centrally /// manage access control, policies, alerting and reporting for those /// resources. /// /// </summary> public partial class ManagementGroupsAPIClient : ServiceClient<ManagementGroupsAPIClient>, IManagementGroupsAPIClient, IAzureClient { /// <summary> /// The base URI of the service. /// </summary> public System.Uri BaseUri { get; set; } /// <summary> /// Gets or sets json serialization settings. /// </summary> public JsonSerializerSettings SerializationSettings { get; private set; } /// <summary> /// Gets or sets json deserialization settings. /// </summary> public JsonSerializerSettings DeserializationSettings { get; private set; } /// <summary> /// Credentials needed for the client to connect to Azure. /// </summary> public ServiceClientCredentials Credentials { get; private set; } /// <summary> /// Management Group ID. /// </summary> public System.Guid GroupId { get; set; } /// <summary> /// Version of the API to be used with the client request. The current version /// is 2017-08-31-preview. /// </summary> public string ApiVersion { get; private set; } /// <summary> /// Gets or sets the preferred language for the response. /// </summary> public string AcceptLanguage { get; set; } /// <summary> /// Gets or sets the retry timeout in seconds for Long Running Operations. /// Default value is 30. /// </summary> public int? LongRunningOperationRetryTimeout { get; set; } /// <summary> /// When set to true a unique x-ms-client-request-id value is generated and /// included in each request. Default is true. /// </summary> public bool? GenerateClientRequestId { get; set; } /// <summary> /// Gets the IManagementGroupsOperations. /// </summary> public virtual IManagementGroupsOperations ManagementGroups { get; private set; } /// <summary> /// Gets the IOperations. /// </summary> public virtual IOperations Operations { get; private set; } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> protected ManagementGroupsAPIClient(params DelegatingHandler[] handlers) : base(handlers) { Initialize(); } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> protected ManagementGroupsAPIClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { Initialize(); } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="System.ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> protected ManagementGroupsAPIClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { throw new System.ArgumentNullException("baseUri"); } BaseUri = baseUri; } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="System.ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> protected ManagementGroupsAPIClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { throw new System.ArgumentNullException("baseUri"); } BaseUri = baseUri; } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="System.ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public ManagementGroupsAPIClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } Credentials = credentials; if (Credentials != null) { Credentials.InitializeServiceClient(this); } } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="System.ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public ManagementGroupsAPIClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } Credentials = credentials; if (Credentials != null) { Credentials.InitializeServiceClient(this); } } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="System.ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public ManagementGroupsAPIClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { throw new System.ArgumentNullException("baseUri"); } if (credentials == null) { throw new System.ArgumentNullException("credentials"); } BaseUri = baseUri; Credentials = credentials; if (Credentials != null) { Credentials.InitializeServiceClient(this); } } /// <summary> /// Initializes a new instance of the ManagementGroupsAPIClient class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="System.ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public ManagementGroupsAPIClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { throw new System.ArgumentNullException("baseUri"); } if (credentials == null) { throw new System.ArgumentNullException("credentials"); } BaseUri = baseUri; Credentials = credentials; if (Credentials != null) { Credentials.InitializeServiceClient(this); } } /// <summary> /// An optional partial-method to perform custom initialization. /// </summary> partial void CustomInitialize(); /// <summary> /// Initializes client properties. /// </summary> private void Initialize() { ManagementGroups = new ManagementGroupsOperations(this); Operations = new Operations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2017-08-31-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List<JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List<JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); } } }
mit
apinf/api-umbrella
src/api-umbrella/admin-ui/app/routes/api-users/base.js
388
import $ from 'jquery'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; import Route from '@ember/routing/route'; export default Route.extend(AuthenticatedRouteMixin, { setupController(controller, model) { controller.set('model', model); $('ul.nav li').removeClass('active'); $('ul.nav li.nav-users').addClass('active'); }, });
mit
NakupOrg/nakupujem
vendor/friendsofsymfony/elastica-bundle/Finder/PaginatedFinderInterface.php
761
<?php namespace FOS\ElasticaBundle\Finder; use FOS\ElasticaBundle\Paginator\PaginatorAdapterInterface; use Pagerfanta\Pagerfanta; use Elastica\Query; interface PaginatedFinderInterface extends FinderInterface { /** * Searches for query results and returns them wrapped in a paginator * * @param mixed $query Can be a string, an array or an \Elastica\Query object * @param array $options * @return Pagerfanta paginated results */ function findPaginated($query, $options = array()); /** * Creates a paginator adapter for this query * * @param mixed $query * @param array $options * @return PaginatorAdapterInterface */ function createPaginatorAdapter($query, $options = array()); }
mit
Galbar/hummingbird
docs/html/search/functions_a.js
4208
var searchData= [ ['onactivate',['onActivate',['../classhum_1_1Behavior.html#a3f4a8b6e102e87d67c821cba1095edc7',1,'hum::Behavior']]], ['ondeactivate',['onDeactivate',['../classhum_1_1Behavior.html#a6b1c24d930466071fb01d0edd62b1515',1,'hum::Behavior']]], ['ondestroy',['onDestroy',['../classhum_1_1Actor.html#a91fb34d30b48b0b0491efe10da57551b',1,'hum::Actor::onDestroy()'],['../classhum_1_1Behavior.html#a9c034baad3e236a9d014d45fc8ae946d',1,'hum::Behavior::onDestroy()'],['../classhum_1_1Kinematic.html#ac2c1e777d31e5cd55dcdc6ace15b5146',1,'hum::Kinematic::onDestroy()']]], ['operator_21_3d',['operator!=',['../classhum_1_1Vector2.html#ac6d7c87948f58ba49078bc41aa0b0d87',1,'hum::Vector2::operator!=()'],['../classhum_1_1Vector3.html#a79630f1942fa1cc24881de29969b5481',1,'hum::Vector3::operator!=()']]], ['operator_2a',['operator*',['../classhum_1_1Vector2.html#acee873276931635b9afd064c9f40f2ee',1,'hum::Vector2::operator*(const hum::Vector2&lt; T &gt; &amp;left, T right)'],['../classhum_1_1Vector2.html#ac7cdcdd7048e43e0d6f06d441ac85f40',1,'hum::Vector2::operator*(T left, const hum::Vector2&lt; T &gt; &amp;right)'],['../classhum_1_1Vector3.html#aa164c5beabec6ec2afa028aaf0037a61',1,'hum::Vector3::operator*(const hum::Vector3&lt; T &gt; &amp;left, T right)'],['../classhum_1_1Vector3.html#af525efd50abd539684023d874e99f7f3',1,'hum::Vector3::operator*(T left, const hum::Vector3&lt; T &gt; &amp;right)']]], ['operator_2a_3d',['operator*=',['../classhum_1_1Vector2.html#a4e7d6a64e07f04fb0b7461a7f424f86d',1,'hum::Vector2::operator*=()'],['../classhum_1_1Vector3.html#a0f8740a8d2b8421645458bf865917118',1,'hum::Vector3::operator*=()']]], ['operator_2b',['operator+',['../classhum_1_1Vector2.html#a0329352bda451147d48d01dcd6e3f804',1,'hum::Vector2::operator+()'],['../classhum_1_1Vector3.html#a9780849ba061ec98c099e01513b4f4f2',1,'hum::Vector3::operator+()']]], ['operator_2b_3d',['operator+=',['../classhum_1_1Vector2.html#afffbfdabe37ba17ac12d819cef2dc404',1,'hum::Vector2::operator+=()'],['../classhum_1_1Vector3.html#a3120d68c2e8c1df38056a3fb9dec6a83',1,'hum::Vector3::operator+=()']]], ['operator_2d',['operator-',['../classhum_1_1Vector2.html#a86a90d13d1a815d08bb97ba2e9c86832',1,'hum::Vector2::operator-(const hum::Vector2&lt; T &gt; &amp;right)'],['../classhum_1_1Vector2.html#adee13e4bd62a6138a394f0c542faf2a4',1,'hum::Vector2::operator-(const hum::Vector2&lt; T &gt; &amp;left, const hum::Vector2&lt; T &gt; &amp;right)'],['../classhum_1_1Vector3.html#a3ca6c66aaa636916d7f0994bca097993',1,'hum::Vector3::operator-(const hum::Vector3&lt; T &gt; &amp;right)'],['../classhum_1_1Vector3.html#a97f077cefe073cdedcb5adc938f2596e',1,'hum::Vector3::operator-(const hum::Vector3&lt; T &gt; &amp;left, const hum::Vector3&lt; T &gt; &amp;right)']]], ['operator_2d_3d',['operator-=',['../classhum_1_1Vector2.html#a279615393fca57d5484e09967c10a093',1,'hum::Vector2::operator-=()'],['../classhum_1_1Vector3.html#a800f8419bbeeaaa2bc7e7c70347e1ba9',1,'hum::Vector3::operator-=()']]], ['operator_2f',['operator/',['../classhum_1_1Vector2.html#adea1533146961bacff639b6a95c8d458',1,'hum::Vector2::operator/()'],['../classhum_1_1Vector3.html#afe5c99c600a29468340cc9fdba2e8951',1,'hum::Vector3::operator/()']]], ['operator_2f_3d',['operator/=',['../classhum_1_1Vector2.html#a65843ce37b116d5695435b776ec177a7',1,'hum::Vector2::operator/=()'],['../classhum_1_1Vector3.html#a47d43a03261dba9c313ad2371a494c1d',1,'hum::Vector3::operator/=()']]], ['operator_3d_3d',['operator==',['../classhum_1_1Vector2.html#ad28cb2119904e34a77d741f9adf59a28',1,'hum::Vector2::operator==()'],['../classhum_1_1Vector3.html#a901fd42384a77ccb8c2ebe081b3061c4',1,'hum::Vector3::operator==()']]], ['operator_5b_5d',['operator[]',['../classhum_1_1Vector2.html#af88ea0b9d288a1448ad25b59022fe73f',1,'hum::Vector2::operator[](unsigned int position)'],['../classhum_1_1Vector2.html#ad9680f938e6fd11da1d184a18763320b',1,'hum::Vector2::operator[](unsigned int position) const '],['../classhum_1_1Vector3.html#a4413678ed31147e864e67ebfd38eff45',1,'hum::Vector3::operator[](unsigned int position)'],['../classhum_1_1Vector3.html#af7c56796a14f2a0f7a543ed3cb4b33f4',1,'hum::Vector3::operator[](unsigned int position) const ']]] ];
mit
bdamore/logostest
client/components/socket/socket.service.js
2588
/* global io */ 'use strict'; angular.module('app') .factory('socket', function(socketFactory, $rootScope) { // socket.io now auto-configures its connection when we ommit a connection url var ioSocket = io('', { // Send auth token on connection, you will need to DI the Auth service above // 'query': 'token=' + Auth.getToken() path: '/socket.io-client' }); var socket = socketFactory({ ioSocket: ioSocket }); return { socket: socket, /** * Register listeners to sync an array with updates on a model * * Takes the array we want to sync, the model name that socket updates are sent from, * and an optional callback function after new items are updated. * * @param {String} modelName * @param {Array} array * @param {Function} cb */ syncUpdates: function (modelName, array, cb) { cb = cb || angular.noop; /** * Syncs item creation/updates on 'model:save' */ socket.on(modelName + ':save', function (item) { var oldItem = _.find(array, {_id: item._id}); var index = array.indexOf(oldItem); var event = 'created'; // replace oldItem if it exists // otherwise just add item to the collection if (oldItem) { array.splice(index, 1, item); event = 'updated'; } else { array.push(item); } cb(event, item, array); }); /** * Syncs removed items on 'model:remove' */ socket.on(modelName + ':remove', function (item) { var event = 'deleted'; _.remove(array, {_id: item._id}); cb(event, item, array); }); }, /** * Removes listeners for a models updates on the socket * * @param modelName */ unsyncUpdates: function (modelName) { socket.removeAllListeners(modelName + ':save'); socket.removeAllListeners(modelName + ':remove'); }, on: function (eventName, callback) { socket.on(eventName, function () { var args = arguments; $rootScope.$apply(function () { callback.apply(socket, args); }); }); }, emit: function (eventName, data, callback) { socket.emit(eventName, data, function () { var args = arguments; $rootScope.$apply(function () { if (callback) { callback.apply(socket, args); } }); }); } }; });
mit
valadas/Dnn.Platform
Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Extensions/InstallController.cs
11829
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information namespace Dnn.PersonaBar.Extensions.Components { using System; using System.Data; using System.IO; using System.Linq; using System.Xml; using Dnn.PersonaBar.Extensions.Components.Dto; using DotNetNuke.Common; using DotNetNuke.Common.Utilities; using DotNetNuke.Data; using DotNetNuke.Data.PetaPoco; using DotNetNuke.Entities.Portals; using DotNetNuke.Entities.Users; using DotNetNuke.Framework; using DotNetNuke.Instrumentation; using DotNetNuke.Services.Installer; using ICSharpCode.SharpZipLib; public class InstallController : ServiceLocator<IInstallController, InstallController>, IInstallController { private static readonly ILog Logger = LoggerSource.Instance.GetLogger(typeof(InstallController)); public ParseResultDto ParsePackage(PortalSettings portalSettings, UserInfo user, string filePath, Stream stream) { var parseResult = new ParseResultDto(); var fileName = Path.GetFileName(filePath); var extension = Path.GetExtension(fileName ?? "").ToLowerInvariant(); if (extension != ".zip" && extension != ".resources") { parseResult.Failed("InvalidExt"); } else { try { var installer = GetInstaller(stream, fileName, portalSettings.PortalId); try { if (installer.IsValid) { if (installer.Packages.Count > 0) { parseResult = new ParseResultDto(installer.Packages[0].Package); } parseResult.AzureCompact = AzureCompact(installer).GetValueOrDefault(false); parseResult.NoManifest = string.IsNullOrEmpty(installer.InstallerInfo.ManifestFile.TempFileName); parseResult.LegacyError = installer.InstallerInfo.LegacyError; parseResult.HasInvalidFiles = !installer.InstallerInfo.HasValidFiles; parseResult.AlreadyInstalled = installer.InstallerInfo.Installed; parseResult.AddLogs(installer.InstallerInfo.Log.Logs); } else { if (installer.InstallerInfo.ManifestFile == null) { parseResult.LegacySkinInstalled = CheckIfSkinAlreadyInstalled(fileName, installer, "Skin"); parseResult.LegacyContainerInstalled = CheckIfSkinAlreadyInstalled(fileName, installer, "Container"); } parseResult.Failed("InvalidFile", installer.InstallerInfo.Log.Logs); parseResult.NoManifest = string.IsNullOrEmpty(installer.InstallerInfo.ManifestFile?.TempFileName); if (parseResult.NoManifest) { // we still can install when the manifest is missing parseResult.Success = true; } } } finally { DeleteTempInstallFiles(installer); } } catch (SharpZipBaseException) { parseResult.Failed("ZipCriticalError"); } } return parseResult; } public InstallResultDto InstallPackage(PortalSettings portalSettings, UserInfo user, string legacySkin, string filePath, Stream stream, bool isPortalPackage = false) { var installResult = new InstallResultDto(); var fileName = Path.GetFileName(filePath); var extension = Path.GetExtension(fileName ?? "").ToLowerInvariant(); if (extension != ".zip" && extension != ".resources") { installResult.Failed("InvalidExt"); } else { try { var installer = GetInstaller(stream, fileName, portalSettings.PortalId, legacySkin, isPortalPackage); try { if (installer.IsValid) { // Reset Log installer.InstallerInfo.Log.Logs.Clear(); // Set the IgnnoreWhiteList flag installer.InstallerInfo.IgnoreWhiteList = true; // Set the Repair flag installer.InstallerInfo.RepairInstall = true; // Install installer.Install(); installResult.AddLogs(installer.InstallerInfo.Log.Logs); if (!installer.IsValid) { installResult.Failed("InstallError"); } else { installResult.NewPackageId = installer.Packages.Count == 0 ? Null.NullInteger : installer.Packages.First().Value.Package.PackageID; installResult.Succeed(); DeleteInstallFile(filePath); } } else { installResult.Failed("InstallError"); } } finally { DeleteTempInstallFiles(installer); } } catch (SharpZipBaseException) { installResult.Failed("ZipCriticalError"); } } return installResult; } protected override Func<IInstallController> GetFactory() { return () => new InstallController(); } private static Installer GetInstaller(Stream stream, string fileName, int portalId, string legacySkin = null, bool isPortalPackage = false) { var installer = new Installer(stream, Globals.ApplicationMapPath, false, false); if (string.IsNullOrEmpty(installer.InstallerInfo.ManifestFile?.TempFileName) && !string.IsNullOrEmpty(legacySkin)) { var manifestFile = CreateManifest(installer, fileName, legacySkin); // Re-evaluate the package after creating a temporary manifest installer = new Installer(installer.TempInstallFolder, manifestFile, Globals.ApplicationMapPath, false); } // We always assume we are installing from //Host/Extensions (in the previous releases) // This will not work when we try to install a skin/container under a specific portal. installer.InstallerInfo.PortalID = isPortalPackage ? portalId : Null.NullInteger; // Read the manifest if (installer.InstallerInfo.ManifestFile != null) { installer.ReadManifest(true); } return installer; } private static string CreateManifest(Installer installer, string fileName, string legacySkin) { var manifestFile = Path.Combine(installer.TempInstallFolder, Path.GetFileNameWithoutExtension(fileName) + ".dnn"); using (var manifestWriter = new StreamWriter(manifestFile)) { manifestWriter.Write(LegacyUtil.CreateSkinManifest(fileName, legacySkin ?? "Skin", installer.TempInstallFolder)); manifestWriter.Close(); } return manifestFile; } private static bool CheckIfSkinAlreadyInstalled(string fileName, Installer installer, string legacySkin) { // this whole thing is to check for if already installed var manifestFile = CreateManifest(installer, fileName, legacySkin); var installer2 = new Installer(installer.TempInstallFolder, manifestFile, Globals.ApplicationMapPath, false); installer2.InstallerInfo.PortalID = installer.InstallerInfo.PortalID; if (installer2.InstallerInfo.ManifestFile != null) { installer2.ReadManifest(true); } return installer2.IsValid && installer2.InstallerInfo.Installed; } private static void DeleteTempInstallFiles(Installer installer) { try { var tempFolder = installer.TempInstallFolder; if (!string.IsNullOrEmpty(tempFolder) && Directory.Exists(tempFolder)) { Globals.DeleteFolderRecursive(tempFolder); } } catch (Exception ex) { Logger.Error(ex); } } private static void DeleteInstallFile(string installerFile) { try { if (File.Exists(installerFile)) { File.SetAttributes(installerFile, FileAttributes.Normal); File.Delete(installerFile); } } catch (Exception ex) { Logger.Error(ex); } } private static bool? AzureCompact(Installer installer) { bool? compact = null; string manifestFile = null; if (installer.InstallerInfo.ManifestFile != null) { manifestFile = installer.InstallerInfo.ManifestFile.TempFileName; } if (installer.Packages.Count > 0) { if (installer.Packages[0].Package.PackageType.Equals("CoreLanguagePack", StringComparison.OrdinalIgnoreCase) || installer.Packages[0].Package.PackageType.Equals("ExtensionLanguagePack", StringComparison.OrdinalIgnoreCase)) { compact = true; } } if (!IsAzureDatabase()) { compact = true; } else if (manifestFile != null && File.Exists(manifestFile)) { try { var document = new XmlDocument { XmlResolver = null }; document.Load(manifestFile); var compactNode = document.SelectSingleNode("/dotnetnuke/packages/package/azureCompatible"); if (compactNode != null && !string.IsNullOrEmpty(compactNode.InnerText)) { compact = compactNode.InnerText.ToLowerInvariant() == "true"; } } catch (Exception ex) { Logger.Error(ex); } } return compact; } private static bool IsAzureDatabase() { return PetaPocoHelper.ExecuteScalar<int>(DataProvider.Instance().ConnectionString, CommandType.Text, "SELECT CAST(ServerProperty('EngineEdition') as INT)") == 5; } } }
mit
liszd/whyliam.workflows.youdao
sentry_sdk/integrations/django/templates.py
3398
from django.template import TemplateSyntaxError from sentry_sdk._types import MYPY if MYPY: from typing import Any from typing import Dict from typing import Optional from typing import Iterator from typing import Tuple try: # support Django 1.9 from django.template.base import Origin except ImportError: # backward compatibility from django.template.loader import LoaderOrigin as Origin def get_template_frame_from_exception(exc_value): # type: (Optional[BaseException]) -> Optional[Dict[str, Any]] # As of Django 1.9 or so the new template debug thing showed up. if hasattr(exc_value, "template_debug"): return _get_template_frame_from_debug(exc_value.template_debug) # type: ignore # As of r16833 (Django) all exceptions may contain a # ``django_template_source`` attribute (rather than the legacy # ``TemplateSyntaxError.source`` check) if hasattr(exc_value, "django_template_source"): return _get_template_frame_from_source( exc_value.django_template_source # type: ignore ) if isinstance(exc_value, TemplateSyntaxError) and hasattr(exc_value, "source"): source = exc_value.source if isinstance(source, (tuple, list)) and isinstance(source[0], Origin): return _get_template_frame_from_source(source) # type: ignore return None def _get_template_frame_from_debug(debug): # type: (Dict[str, Any]) -> Dict[str, Any] if debug is None: return None lineno = debug["line"] filename = debug["name"] if filename is None: filename = "<django template>" pre_context = [] post_context = [] context_line = None for i, line in debug["source_lines"]: if i < lineno: pre_context.append(line) elif i > lineno: post_context.append(line) else: context_line = line return { "filename": filename, "lineno": lineno, "pre_context": pre_context[-5:], "post_context": post_context[:5], "context_line": context_line, "in_app": True, } def _linebreak_iter(template_source): # type: (str) -> Iterator[int] yield 0 p = template_source.find("\n") while p >= 0: yield p + 1 p = template_source.find("\n", p + 1) def _get_template_frame_from_source(source): # type: (Tuple[Origin, Tuple[int, int]]) -> Optional[Dict[str, Any]] if not source: return None origin, (start, end) = source filename = getattr(origin, "loadname", None) if filename is None: filename = "<django template>" template_source = origin.reload() lineno = None upto = 0 pre_context = [] post_context = [] context_line = None for num, next in enumerate(_linebreak_iter(template_source)): line = template_source[upto:next] if start >= upto and end <= next: lineno = num context_line = line elif lineno is None: pre_context.append(line) else: post_context.append(line) upto = next if context_line is None or lineno is None: return None return { "filename": filename, "lineno": lineno, "pre_context": pre_context[-5:], "post_context": post_context[:5], "context_line": context_line, }
mit
ahey/docxtemplater
node_modules/docxtemplater/js/xmlUtil.js
2058
var DocUtils, XmlUtil; DocUtils = require('./docUtils'); XmlUtil = {}; XmlUtil.getListXmlElements = function(text, start, end) { var i, innerCurrentTag, innerLastTag, justOpened, lastTag, result, tag, tags, _i, _len; if (start == null) { start = 0; } if (end == null) { end = text.length - 1; } /* get the different closing and opening tags between two texts (doesn't take into account tags that are opened then closed (those that are closed then opened are returned)): returns:[{"tag":"</w:r>","offset":13},{"tag":"</w:p>","offset":265},{"tag":"</w:tc>","offset":271},{"tag":"<w:tc>","offset":828},{"tag":"<w:p>","offset":883},{"tag":"<w:r>","offset":1483}] */ tags = DocUtils.preg_match_all("<(\/?[^/> ]+)([^>]*)>", text.substr(start, end)); result = []; for (i = _i = 0, _len = tags.length; _i < _len; i = ++_i) { tag = tags[i]; if (tag[1][0] === '/') { justOpened = false; if (result.length > 0) { lastTag = result[result.length - 1]; innerLastTag = lastTag.tag.substr(1, lastTag.tag.length - 2); innerCurrentTag = tag[1].substr(1); if (innerLastTag === innerCurrentTag) { justOpened = true; } } if (justOpened) { result.pop(); } else { result.push({ tag: '<' + tag[1] + '>', offset: tag.offset }); } } else if (tag[2][tag[2].length - 1] === '/') { } else { result.push({ tag: '<' + tag[1] + '>', offset: tag.offset }); } } return result; }; XmlUtil.getListDifferenceXmlElements = function(text, start, end) { var scope; if (start == null) { start = 0; } if (end == null) { end = text.length - 1; } scope = this.getListXmlElements(text, start, end); while (1.) { if (scope.length <= 1) { break; } if (scope[0].tag.substr(2) === scope[scope.length - 1].tag.substr(1)) { scope.pop(); scope.shift(); } else { break; } } return scope; }; module.exports = XmlUtil;
mit
marcomatteocci/shine.js
lib/shine.shadow.js
4649
/** * @fileOverview Adds a shadow to a DOM elment using CSS. * @author <a href="http://benjaminbojko.com">Benjamin Bojko</a> * Copyright (c) 2015 Big Spaceship; Licensed MIT */ 'use strict'; /** * @constructor * @param {!HTMLElement} domElement */ shinejs.Shadow = function(domElement) { /** @type {!shinejs.Point} */ this.position = new shinejs.Point(0, 0); /** @type {!HTMLElement} */ this.domElement = domElement; /** @type {!string} */ this.shadowProperty = 'textShadow'; /** * @const * @type {Function} */ this.fnHandleViewportUpdate = null; this.fnHandleWindowLoaded = this.handleWindowLoaded.bind(this); this.enableAutoUpdates(); this.handleViewportUpdate(); // this.fnHandleViewportUpdate will get set in enableAutoUpdates(); window.addEventListener('load', this.fnHandleWindowLoaded, false); }; /** * Removes all listeners and frees resources. * Destroyed instances can't be reused. */ shinejs.Shadow.prototype.destroy = function() { window.removeEventListener('load', this.fnHandleWindowLoaded, false); this.disableAutoUpdates(); this.fnHandleWindowLoaded = null; this.domElement = null; this.position = null; }; /** * Draw this shadow with based on a light source * @param {shinejs.Light} light * @param {!Config} config */ shinejs.Shadow.prototype.draw = function(light, config) { var delta = this.position.delta(light.position); var distance = Math.sqrt(delta.x * delta.x + delta.y * delta.y); distance = Math.max(32, distance); // keep a min amount of shadow var shadows = []; for (var i = 0; i < config.numSteps; i++) { var ratio = i / config.numSteps; var ratioOpacity = Math.pow(ratio, config.opacityPow); var ratioOffset = Math.pow(ratio, config.offsetPow); var ratioBlur = Math.pow(ratio, config.blurPow); var opacity = light.intensity * Math.max(0, config.opacity * (1.0 - ratioOpacity)); var offsetX = - config.offset * delta.x * ratioOffset; var offsetY = - config.offset * delta.y * ratioOffset; var blurRadius = distance * config.blur * ratioBlur / 512; var shadow = this.getShadow(config.shadowRGB, opacity, offsetX, offsetY, blurRadius); shadows.push(shadow); } this.drawShadows(shadows); }; /** * Returns an individual shadow step for this caster * @param {shinejs.Color} colorRGB * @param {number} opacity * @param {number} offsetX * @param {number} offsetY * @param {number} blurRadius * @return {string} */ shinejs.Shadow.prototype.getShadow = function(colorRGB, opacity, offsetX, offsetY, blurRadius) { var color = 'rgba(' + colorRGB.r + ', ' + colorRGB.g + ', ' + colorRGB.b + ', ' + opacity + ')'; return color + ' ' + offsetX + 'px ' + offsetY + 'px ' + Math.round(blurRadius) + 'px'; }; /** * Applies shadows to the DOM element * @param {Array.<string>} shadows */ shinejs.Shadow.prototype.drawShadows = function(shadows) { this.domElement.style[this.shadowProperty] = shadows.join(', '); }; /** * Adds DOM event listeners for resize, scroll and load */ shinejs.Shadow.prototype.enableAutoUpdates = function() { this.disableAutoUpdates(); // store reference fore more efficient minification var fnHandleViewportUpdate = this.fnHandleViewportUpdate = shinejs.Timing.debounce(this.handleViewportUpdate, 1000/15, this); // this.handleViewportUpdate.bind(this); document.addEventListener('resize', fnHandleViewportUpdate, false); window.addEventListener('resize', fnHandleViewportUpdate, false); window.addEventListener('scroll', fnHandleViewportUpdate, false); }; /** * Removes DOM event listeners for resize, scroll and load */ shinejs.Shadow.prototype.disableAutoUpdates = function() { // store reference fore more efficient minification var fnHandleViewportUpdate = this.fnHandleViewportUpdate; // old FF versions break when removing listeners that haven't been added if (!fnHandleViewportUpdate) { return; } this.fnHandleViewportUpdate = null; document.removeEventListener('resize', fnHandleViewportUpdate, false); window.removeEventListener('resize', fnHandleViewportUpdate, false); window.removeEventListener('scroll', fnHandleViewportUpdate, false); }; /** * @private Called when DOM event listeners fire */ shinejs.Shadow.prototype.handleViewportUpdate = function() { var boundingRect = this.domElement.getBoundingClientRect(); this.position.x = boundingRect.left + boundingRect.width * 0.5; this.position.y = boundingRect.top + boundingRect.height * 0.5; }; /** * @private Called when window loads */ shinejs.Shadow.prototype.handleWindowLoaded = function() { this.handleViewportUpdate(); };
mit
aybabtme/compress
zlib/reader.go
4347
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package zlib implements reading and writing of zlib format compressed data, as specified in RFC 1950. The implementation provides filters that uncompress during reading and compress during writing. For example, to write compressed data to a buffer: var b bytes.Buffer w := zlib.NewWriter(&b) w.Write([]byte("hello, world\n")) w.Close() and to read that data back: r, err := zlib.NewReader(&b) io.Copy(os.Stdout, r) r.Close() */ package zlib import ( "bufio" "errors" "github.com/klauspost/compress/flate" "hash" "hash/adler32" "io" ) const zlibDeflate = 8 var ( // ErrChecksum is returned when reading ZLIB data that has an invalid checksum. ErrChecksum = errors.New("zlib: invalid checksum") // ErrDictionary is returned when reading ZLIB data that has an invalid dictionary. ErrDictionary = errors.New("zlib: invalid dictionary") // ErrHeader is returned when reading ZLIB data that has an invalid header. ErrHeader = errors.New("zlib: invalid header") ) type reader struct { r flate.Reader decompressor io.ReadCloser digest hash.Hash32 err error scratch [4]byte } // Resetter resets a ReadCloser returned by NewReader or NewReaderDict to // to switch to a new underlying Reader. This permits reusing a ReadCloser // instead of allocating a new one. type Resetter interface { // Reset discards any buffered data and resets the Resetter as if it was // newly initialized with the given reader. Reset(r io.Reader, dict []byte) error } // NewReader creates a new ReadCloser. // Reads from the returned ReadCloser read and decompress data from r. // The implementation buffers input and may read more data than necessary from r. // It is the caller's responsibility to call Close on the ReadCloser when done. // // The ReadCloser returned by NewReader also implements Resetter. func NewReader(r io.Reader) (io.ReadCloser, error) { return NewReaderDict(r, nil) } // NewReaderDict is like NewReader but uses a preset dictionary. // NewReaderDict ignores the dictionary if the compressed data does not refer to it. // If the compressed data refers to a different dictionary, NewReaderDict returns ErrDictionary. // // The ReadCloser returned by NewReaderDict also implements Resetter. func NewReaderDict(r io.Reader, dict []byte) (io.ReadCloser, error) { z := new(reader) err := z.Reset(r, dict) if err != nil { return nil, err } return z, nil } func (z *reader) Read(p []byte) (n int, err error) { if z.err != nil { return 0, z.err } if len(p) == 0 { return 0, nil } n, err = z.decompressor.Read(p) z.digest.Write(p[0:n]) if n != 0 || err != io.EOF { z.err = err return } // Finished file; check checksum. if _, err := io.ReadFull(z.r, z.scratch[0:4]); err != nil { z.err = err return 0, err } // ZLIB (RFC 1950) is big-endian, unlike GZIP (RFC 1952). checksum := uint32(z.scratch[0])<<24 | uint32(z.scratch[1])<<16 | uint32(z.scratch[2])<<8 | uint32(z.scratch[3]) if checksum != z.digest.Sum32() { z.err = ErrChecksum return 0, z.err } return } // Calling Close does not close the wrapped io.Reader originally passed to NewReader. func (z *reader) Close() error { if z.err != nil { return z.err } z.err = z.decompressor.Close() return z.err } func (z *reader) Reset(r io.Reader, dict []byte) error { if fr, ok := r.(flate.Reader); ok { z.r = fr } else { z.r = bufio.NewReader(r) } _, err := io.ReadFull(z.r, z.scratch[0:2]) if err != nil { return err } h := uint(z.scratch[0])<<8 | uint(z.scratch[1]) if (z.scratch[0]&0x0f != zlibDeflate) || (h%31 != 0) { return ErrHeader } haveDict := z.scratch[1]&0x20 != 0 if haveDict { _, err = io.ReadFull(z.r, z.scratch[0:4]) if err != nil { return err } checksum := uint32(z.scratch[0])<<24 | uint32(z.scratch[1])<<16 | uint32(z.scratch[2])<<8 | uint32(z.scratch[3]) if checksum != adler32.Checksum(dict) { return ErrDictionary } } if z.decompressor == nil { if haveDict { z.decompressor = flate.NewReaderDict(z.r, dict) } else { z.decompressor = flate.NewReader(z.r) } } else { z.decompressor.(flate.Resetter).Reset(z.r, dict) } z.digest = adler32.New() return nil }
mit
kenzierocks/SpongeForge
src/main/java/org/spongepowered/mod/mixin/core/world/biome/MixinBiomeDecorator.java
2668
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package org.spongepowered.mod.mixin.core.world.biome; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraft.world.WorldServer; import net.minecraft.world.biome.BiomeDecorator; import net.minecraft.world.biome.BiomeGenBase; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import java.util.Random; @Mixin(BiomeDecorator.class) public class MixinBiomeDecorator { @Inject(method = "decorate", at = @At("HEAD") , cancellable = true) protected void onBiomeDecorateHead(World worldIn, Random random, BiomeGenBase biome, BlockPos pos, CallbackInfo ci) { if (!worldIn.isRemote) { WorldServer world = (WorldServer) worldIn; // don't allow chunks to load while decorating world.theChunkProviderServer.chunkLoadOverride = false; } } @Inject(method = "decorate", at = @At("RETURN") , cancellable = true) protected void onBiomeDecorateReturn(World worldIn, Random random, BiomeGenBase biome, BlockPos pos, CallbackInfo ci) { if (!worldIn.isRemote) { WorldServer world = (WorldServer) worldIn; // decorate is finished, allow chunks to load world.theChunkProviderServer.chunkLoadOverride = true; } } }
mit
51Degrees/Dnn.Platform
DNN Platform/Providers/NavigationProviders/ASP2MenuNavigationProvider/ASP2MenuNavigationProvider.cs
20156
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2014 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and // to permit persons to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or substantial portions // of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. #endregion #region Usings using System; using System.Web.UI; using System.Web.UI.WebControls; using DotNetNuke.Modules.NavigationProvider; using DotNetNuke.UI.WebControls; #endregion namespace DotNetNuke.NavigationControl { public class ASP2MenuNavigationProvider : NavigationProvider { #region "Member Variables" private Menu m_objMenu; private string m_strControlID; private string m_strNodeLeftHTMLBreadCrumbRoot = ""; private string m_strNodeLeftHTMLBreadCrumbSub = ""; private string m_strNodeLeftHTMLRoot = ""; private string m_strNodeLeftHTMLSub = ""; private string m_strNodeRightHTMLBreadCrumbRoot = ""; private string m_strNodeRightHTMLBreadCrumbSub = ""; private string m_strNodeRightHTMLRoot = ""; private string m_strNodeRightHTMLSub = ""; private string m_strPathImage = ""; private string m_strSystemPathImage = ""; #endregion #region "Properties" #region "General" public Menu Menu { get { return m_objMenu; } } public override Control NavigationControl { get { return Menu; } } public override bool SupportsPopulateOnDemand { get { return false; } } public override string ControlID { get { return m_strControlID; } set { m_strControlID = value; } } #endregion #region "Paths" public override string PathImage { get { return m_strPathImage; } set { m_strPathImage = value; } } public override string PathSystemImage { get { return m_strSystemPathImage; } set { m_strSystemPathImage = value; } } #endregion #region "Rendering" public override string ForceDownLevel { get { return (Menu.StaticDisplayLevels > 1).ToString(); } set { if (Convert.ToBoolean(value)) { Menu.StaticDisplayLevels = 99; } else { Menu.StaticDisplayLevels = 1; } } } public override Orientation ControlOrientation { get { switch (Menu.Orientation) { case System.Web.UI.WebControls.Orientation.Horizontal: return Orientation.Horizontal; default: return Orientation.Vertical; } } set { switch (value) { case Orientation.Horizontal: Menu.Orientation = System.Web.UI.WebControls.Orientation.Horizontal; break; case Orientation.Vertical: Menu.Orientation = System.Web.UI.WebControls.Orientation.Vertical; break; } } } #endregion #region "Mouse Properties" public override decimal MouseOutHideDelay { get { return Menu.DisappearAfter; } set { Menu.DisappearAfter = Convert.ToInt32(value); } } #endregion #region "Indicate Children" public override bool IndicateChildren { get { return Menu.DynamicEnableDefaultPopOutImage; } set { Menu.DynamicEnableDefaultPopOutImage = value; } } public override string IndicateChildImageSub { get { return Menu.DynamicPopOutImageUrl; } set { Menu.DynamicPopOutImageUrl = value; } } public override string IndicateChildImageRoot { get { return Menu.StaticPopOutImageUrl; } set { Menu.StaticPopOutImageUrl = value; } } #endregion #region "Custom HTML" public override string NodeLeftHTMLRoot { get { return m_strNodeLeftHTMLRoot; } set { m_strNodeLeftHTMLRoot = value; } } public override string NodeRightHTMLRoot { get { return m_strNodeRightHTMLRoot; } set { m_strNodeRightHTMLRoot = value; } } public override string NodeLeftHTMLSub { get { return m_strNodeLeftHTMLSub; } set { m_strNodeLeftHTMLSub = value; } } public override string NodeRightHTMLSub { get { return m_strNodeRightHTMLSub; } set { m_strNodeRightHTMLSub = value; } } public override string NodeLeftHTMLBreadCrumbSub { get { return m_strNodeLeftHTMLBreadCrumbSub; } set { m_strNodeLeftHTMLBreadCrumbSub = value; } } public override string NodeRightHTMLBreadCrumbSub { get { return m_strNodeRightHTMLBreadCrumbSub; } set { m_strNodeRightHTMLBreadCrumbSub = value; } } public override string NodeLeftHTMLBreadCrumbRoot { get { return m_strNodeLeftHTMLBreadCrumbRoot; } set { m_strNodeLeftHTMLBreadCrumbRoot = value; } } public override string NodeRightHTMLBreadCrumbRoot { get { return m_strNodeRightHTMLBreadCrumbRoot; } set { m_strNodeRightHTMLBreadCrumbRoot = value; } } #endregion #region "CSS" public override string CSSControl { get { return Menu.DynamicMenuStyle.CssClass; } set { Menu.DynamicMenuStyle.CssClass = value; } } public override string CSSNode { get { return Menu.DynamicMenuItemStyle.CssClass; } set { Menu.DynamicMenuItemStyle.CssClass = value; for (int i = 0; i <= Menu.LevelMenuItemStyles.Count - 1; i++) { Menu.LevelMenuItemStyles[i].CssClass = value; } } } public override string CSSNodeRoot { get { return Menu.LevelMenuItemStyles[0].CssClass; } set { Menu.LevelMenuItemStyles[0].CssClass = value; } } public override string CSSNodeSelectedRoot { get { return Menu.LevelSelectedStyles[0].CssClass; } set { Menu.LevelSelectedStyles[0].CssClass = value; } } public override string CSSNodeSelectedSub { get { return Menu.LevelSelectedStyles[1].CssClass; } set { for (int i = 1; i <= Menu.LevelSelectedStyles.Count - 1; i++) { Menu.LevelSelectedStyles[i].CssClass = value; } } } //* Same as CSSNodeHoverSub public override string CSSNodeHover { get { return Menu.DynamicHoverStyle.CssClass; } set { Menu.DynamicHoverStyle.CssClass = value; Menu.StaticHoverStyle.CssClass = value; } } public override string CSSNodeHoverSub { get { return Menu.DynamicHoverStyle.CssClass; } set { Menu.DynamicHoverStyle.CssClass = value; } } public override string CSSNodeHoverRoot { get { return Menu.StaticHoverStyle.CssClass; } set { Menu.StaticHoverStyle.CssClass = value; } } #endregion #endregion #region "Event Handlers" /// <summary> /// This method is called by the provider to allow for the control to default values and set up /// event handlers /// </summary> /// <remarks></remarks> public override void Initialize() { m_objMenu = new Menu(); Menu.ID = m_strControlID; Menu.EnableViewState = false; //Not sure why, but when we disable viewstate the menuitemclick does not fire... //default properties to match DNN defaults Menu.DynamicPopOutImageUrl = ""; Menu.StaticPopOutImageUrl = ""; ControlOrientation = Orientation.Horizontal; //add event handlers Menu.MenuItemClick += Menu_NodeClick; Menu.PreRender += Menu_PreRender; //add how many levels worth of styles??? for (int i = 0; i <= 6; i++) { Menu.LevelMenuItemStyles.Add(new MenuItemStyle()); Menu.LevelSelectedStyles.Add(new MenuItemStyle()); } } /// <summary> /// Responsible for the populating of the underlying navigation control /// </summary> /// <param name="objNodes">Node hierarchy used in control population</param> /// <remarks></remarks> public override void Bind(DNNNodeCollection objNodes) { MenuItem objMenuItem = null; DNNNode objPrevNode; if (IndicateChildren == false) { IndicateChildImageSub = ""; IndicateChildImageRoot = ""; } string strLeftHTML = ""; string strRightHTML = ""; foreach (DNNNode objNode in objNodes) { if (objNode.IsBreak) { } else { strLeftHTML = ""; strRightHTML = ""; if (objNode.Level == 0) //root menu { Menu.Items.Add(GetMenuItem(objNode)); objMenuItem = Menu.Items[Menu.Items.Count - 1]; if (!String.IsNullOrEmpty(NodeLeftHTMLRoot)) { strLeftHTML = NodeLeftHTMLRoot; } if (objNode.BreadCrumb) { if (!String.IsNullOrEmpty(NodeLeftHTMLBreadCrumbRoot)) { strLeftHTML = NodeLeftHTMLBreadCrumbRoot; } if (!String.IsNullOrEmpty(NodeRightHTMLBreadCrumbRoot)) { strRightHTML = NodeRightHTMLBreadCrumbRoot; } } if (!String.IsNullOrEmpty(NodeRightHTMLRoot)) { strRightHTML = NodeRightHTMLRoot; } } else { try { MenuItem objParent = Menu.FindItem(GetValuePath(objNode.ParentNode)); objParent.ChildItems.Add(GetMenuItem(objNode)); objMenuItem = objParent.ChildItems[objParent.ChildItems.Count - 1]; if (!String.IsNullOrEmpty(NodeLeftHTMLSub)) { strLeftHTML = NodeLeftHTMLSub; } if (objNode.BreadCrumb) { if (!String.IsNullOrEmpty(NodeLeftHTMLBreadCrumbSub)) { strLeftHTML = NodeLeftHTMLBreadCrumbSub; } if (!String.IsNullOrEmpty(NodeRightHTMLBreadCrumbSub)) { strRightHTML = NodeRightHTMLBreadCrumbSub; } } if (!String.IsNullOrEmpty(NodeRightHTMLSub)) { strRightHTML = NodeRightHTMLSub; } } catch { //throws exception if the parent tab has not been loaded ( may be related to user role security not allowing access to a parent tab ) objMenuItem = null; } } if (objMenuItem != null) { //Append LeftHTML/RightHTML to menu's text property if (!String.IsNullOrEmpty(strLeftHTML)) { objMenuItem.Text = strLeftHTML + objMenuItem.Text; } if (!String.IsNullOrEmpty(strRightHTML)) { objMenuItem.Text = objMenuItem.Text + strRightHTML; } } //Figure out image paths if (!String.IsNullOrEmpty(objNode.Image)) { if (objNode.Image.StartsWith("~/images/")) { objNode.Image = objNode.Image.Replace("~/images/", PathSystemImage); } else if (!objNode.Image.Contains("://") && objNode.Image.StartsWith("/") == false && !String.IsNullOrEmpty(PathImage)) { objNode.Image = PathImage + objNode.Image; } objMenuItem.ImageUrl = objNode.Image; } Bind(objNode.DNNNodes); objPrevNode = objNode; } } } private void Menu_NodeClick(object source, MenuEventArgs e) { base.RaiseEvent_NodeClick(e.Item.Value); } private void Menu_PreRender(object sender, EventArgs e) { if (!String.IsNullOrEmpty(Menu.StaticPopOutImageUrl)) { Menu.StaticPopOutImageUrl = PathSystemImage + Menu.StaticPopOutImageUrl; } if (!String.IsNullOrEmpty(Menu.DynamicPopOutImageUrl)) { Menu.DynamicPopOutImageUrl = PathSystemImage + Menu.DynamicPopOutImageUrl; } } #endregion #region "Private Methods" /// <summary> /// Loops through each of the nodes parents and concatenates the keys to derive its valuepath /// </summary> /// <param name="objNode">DNNNode object to obtain valuepath from</param> /// <returns>ValuePath of node</returns> /// <remarks> /// the ASP.NET Menu creates a unique key based off of all the menuitem's parents, delimited by a string. /// I wish there was a way around this, for we are already guaranteeing the uniqueness of the key since is it pulled from the /// database. /// </remarks> private string GetValuePath(DNNNode objNode) { DNNNode objParent = objNode.ParentNode; string strPath = objNode.Key; do { if (objParent == null || objParent.Level == -1) { break; } strPath = objParent.Key + Menu.PathSeparator + strPath; objParent = objParent.ParentNode; } while (true); return strPath; } /// <summary> /// Create a ASP.NET Menu item for a given DNNNode /// </summary> /// <param name="objNode">Node to create item off of</param> /// <returns></returns> /// <remarks> /// Due to ValuePath needed for postback routine, there is a HACK to replace out the /// id with the valuepath if a JSFunciton is specified /// </remarks> private MenuItem GetMenuItem(DNNNode objNode) { var objItem = new MenuItem(); objItem.Text = objNode.Text; objItem.Value = objNode.Key; if (!String.IsNullOrEmpty(objNode.JSFunction)) { //HACK... The postback event needs to have the entire ValuePath to the menu item, not just the unique id //__doPostBack('dnn:ctr365:dnnACTIONS:ctldnnACTIONS','6') -> __doPostBack('dnn:ctr365:dnnACTIONS:ctldnnACTIONS','0\\6')} objItem.NavigateUrl = "javascript:" + objNode.JSFunction.Replace(Menu.ID + "','" + objNode.Key + "'", Menu.ID + "'.'" + GetValuePath(objNode).Replace("/", "\\\\") + "'") + objNode.NavigateURL; } else { objItem.NavigateUrl = objNode.NavigateURL; } objItem.Target = objNode.Target; objItem.Selectable = objNode.Enabled; objItem.ImageUrl = objNode.Image; //possibly fix for path objItem.Selected = objNode.Selected; objItem.ToolTip = objNode.ToolTip; return objItem; } #endregion } }
mit
lejar/CustomViewer
external/glm-0.9.1/glm/core/type_mat2x3.hpp
6496
/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2006-10-01 // Updated : 2010-02-03 // Licence : This source is under MIT License // File : glm/core/type_mat2x3.hpp /////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef glm_core_type_mat2x3 #define glm_core_type_mat2x3 #include "type_mat.hpp" namespace glm { namespace test { void main_mat2x3(); }//namespace test namespace detail { template <typename T> struct tvec1; template <typename T> struct tvec2; template <typename T> struct tvec3; template <typename T> struct tvec4; template <typename T> struct tmat2x2; template <typename T> struct tmat2x3; template <typename T> struct tmat2x4; template <typename T> struct tmat3x2; template <typename T> struct tmat3x3; template <typename T> struct tmat3x4; template <typename T> struct tmat4x2; template <typename T> struct tmat4x3; template <typename T> struct tmat4x4; //! \brief Template for 2 columns and 3 rows matrix of floating-point numbers. //! \ingroup core_template template <typename T> struct tmat2x3 { enum ctor{null}; typedef T value_type; typedef std::size_t size_type; typedef tvec3<T> col_type; typedef tvec2<T> row_type; static size_type col_size(); static size_type row_size(); typedef tmat2x3<T> type; typedef tmat3x2<T> transpose_type; private: // Data col_type value[2]; public: // Constructors tmat2x3(); tmat2x3(tmat2x3 const & m); explicit tmat2x3( ctor); explicit tmat2x3( value_type const & s); explicit tmat2x3( value_type const & x0, value_type const & y0, value_type const & z0, value_type const & x1, value_type const & y1, value_type const & z1); explicit tmat2x3( col_type const & v0, col_type const & v1); // Conversion template <typename U> explicit tmat2x3(tmat2x3<U> const & m); explicit tmat2x3(tmat2x2<T> const & x); explicit tmat2x3(tmat3x3<T> const & x); explicit tmat2x3(tmat4x4<T> const & x); explicit tmat2x3(tmat2x4<T> const & x); explicit tmat2x3(tmat3x2<T> const & x); explicit tmat2x3(tmat3x4<T> const & x); explicit tmat2x3(tmat4x2<T> const & x); explicit tmat2x3(tmat4x3<T> const & x); // Accesses col_type & operator[](size_type i); col_type const & operator[](size_type i) const; // Unary updatable operators tmat2x3<T> & operator= (tmat2x3<T> const & m); template <typename U> tmat2x3<T> & operator= (tmat2x3<U> const & m); template <typename U> tmat2x3<T> & operator+= (U const & s); template <typename U> tmat2x3<T> & operator+= (tmat2x3<U> const & m); template <typename U> tmat2x3<T> & operator-= (U const & s); template <typename U> tmat2x3<T> & operator-= (tmat2x3<U> const & m); template <typename U> tmat2x3<T> & operator*= (U const & s); template <typename U> tmat2x3<T> & operator*= (tmat2x3<U> const & m); template <typename U> tmat2x3<T> & operator/= (U const & s); tmat2x3<T> & operator++ (); tmat2x3<T> & operator-- (); }; // Binary operators template <typename T> tmat2x3<T> operator+ ( tmat2x3<T> const & m, typename tmat2x3<T>::value_type const & s); template <typename T> tmat2x3<T> operator+ ( tmat2x3<T> const & m1, tmat2x3<T> const & m2); template <typename T> tmat2x3<T> operator- ( tmat2x3<T> const & m, typename tmat2x3<T>::value_type const & s); template <typename T> tmat2x3<T> operator- ( tmat2x3<T> const & m1, tmat2x3<T> const & m2); template <typename T> tmat2x3<T> operator* ( tmat2x3<T> const & m, typename tmat2x3<T>::value_type const & s); template <typename T> tmat2x3<T> operator* ( typename tmat2x3<T>::value_type const & s, tmat2x3<T> const & m); template <typename T> typename tmat2x3<T>::col_type operator* ( tmat2x3<T> const & m, typename tmat2x3<T>::row_type const & v); template <typename T> typename tmat2x3<T>::row_type operator* ( typename tmat2x3<T>::col_type const & v, tmat2x3<T> const & m); template <typename T> tmat3x3<T> operator* ( tmat2x3<T> const & m1, tmat3x2<T> const & m2); template <typename T> tmat2x3<T> operator/ ( tmat2x3<T> const & m, typename tmat2x3<T>::value_type const & s); template <typename T> tmat2x3<T> operator/ ( typename tmat2x3<T>::value_type const & s, tmat2x3<T> const & m); // Unary constant operators template <typename T> tmat2x3<T> const operator- ( tmat2x3<T> const & m); template <typename T> tmat2x3<T> const operator-- ( tmat2x3<T> const & m, int); template <typename T> tmat2x3<T> const operator++ ( tmat2x3<T> const & m, int); } //namespace detail namespace core{ namespace type{ namespace precision { //! 2 columns of 3 components matrix of low precision floating-point numbers. //! There is no guarantee on the actual precision. //! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers) //! \ingroup core_precision typedef detail::tmat2x3<lowp_float> lowp_mat2x3; //! 2 columns of 3 components matrix of medium precision floating-point numbers. //! There is no guarantee on the actual precision. //! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers) //! \ingroup core_precision typedef detail::tmat2x3<mediump_float> mediump_mat2x3; //! 2 columns of 3 components matrix of high precision floating-point numbers. //! There is no guarantee on the actual precision. //! (From GLSL 1.30.8 specification, section 4.1.6 Matrices and section 4.5 Precision and Precision Qualifiers) //! \ingroup core_precision typedef detail::tmat2x3<highp_float> highp_mat2x3; } //namespace precision }//namespace type }//namespace core } //namespace glm #ifndef GLM_EXTERNAL_TEMPLATE #include "type_mat2x3.inl" #endif #endif //glm_core_type_mat2x3
mit
infinityworksltd/sample-jenkins-pipeline-job
src/main/java/com/example/helloworld/auth/ExampleAuthenticator.java
629
package com.example.helloworld.auth; import com.example.helloworld.core.User; import io.dropwizard.auth.AuthenticationException; import io.dropwizard.auth.Authenticator; import io.dropwizard.auth.basic.BasicCredentials; import java.util.Optional; public class ExampleAuthenticator implements Authenticator<BasicCredentials, User> { @Override public Optional<User> authenticate(BasicCredentials credentials) throws AuthenticationException { if ("secret".equals(credentials.getPassword())) { return Optional.of(new User(credentials.getUsername())); } return Optional.empty(); } }
mit
ebewe/Slider
slider/img/index.php
1696
<?php /** * NOTICE OF LICENSE * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * ........................................................................... * * @package Slider * @author Paul MORA * @copyright Copyright (c) 2012-2014 EURL ébewè - www.ebewe.net - Paul MORA * @license MIT license * Support by mail : contact@ebewe.net */ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Location: ../"); exit;
mit
unaio/una
modules/boonex/organizations/updates/8.0.3_8.0.4/source/js/manage_tools.js
1891
/** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ * * @defgroup Organizations Organizations * @ingroup TridentModules * * @{ */ function BxOrgsManageTools(oOptions) { this._sActionsUrl = oOptions.sActionUrl; this._sObjNameGrid = oOptions.sObjNameGrid; this._sObjName = oOptions.sObjName == undefined ? 'oBxOrgsManageTools' : oOptions.sObjName; this._sAnimationEffect = oOptions.sAnimationEffect == undefined ? 'fade' : oOptions.sAnimationEffect; this._iAnimationSpeed = oOptions.iAnimationSpeed == undefined ? 'slow' : oOptions.iAnimationSpeed; this._sParamsDivider = oOptions.sParamsDivider == undefined ? '#-#' : oOptions.sParamsDivider; this._aHtmlIds = oOptions.aHtmlIds == undefined ? {} : oOptions.aHtmlIds; this._oRequestParams = oOptions.oRequestParams == undefined ? {} : oOptions.oRequestParams; } BxOrgsManageTools.prototype.onChangeFilter = function(oFilter) { var oFilter1 = $('#bx-grid-filter1-' + this._sObjNameGrid); var sValueFilter1 = oFilter1.length > 0 ? oFilter1.val() : ''; var oSearch = $('#bx-grid-search-' + this._sObjNameGrid); var sValueSearch = oSearch.length > 0 ? oSearch.val() : ''; if(sValueSearch == _t('_sys_grid_search')) sValueSearch = ''; glGrids[this._sObjNameGrid].setFilter(sValueFilter1 + this._sParamsDivider + sValueSearch, true); }; BxOrgsManageTools.prototype.onClickSettings = function(sMenuObject, oButton) { if($(oButton).hasClass('bx-btn-disabled')) return false; bx_menu_popup(sMenuObject, oButton, {}, { content_id: $(oButton).attr('bx_grid_action_data') }); }; BxOrgsManageTools.prototype.onClickDeleteWithContent = function(iContentId) { $('.bx-popup-applied:visible').dolPopupHide(); glGrids[this._sObjNameGrid].actionWithId(iContentId, 'delete_with_content', {}, '', false, 1); }; /** @} */
mit
mmohan01/ReFactory
data/apachexmlrpc/apachexmlrpc-2.0/java/org/apache/xmlrpc/TypeDecoder.java
1178
/* * Copyright 1999,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 org.apache.xmlrpc; /** * Allows developers to customize the types translated to the XML-RPC * &lt;i4&gt; and &lt;double&gt . * * @author <a href="mailto:andrew@kungfoocoder.org">Andrew Evers</a> * @see org.apache.xmlrpc.DefaultTypeDecoder * @since 1.2 */ public interface TypeDecoder { /** * Test if a local object translates to an &lt;i4&gt; tag. */ public boolean isXmlRpcI4(Object o); /** * Test if a local object translates to a &lt;double&gt; tag. */ public boolean isXmlRpcDouble(Object o); }
mit
Clairety/ConnectMe
CSharp/Library/Microsoft.Bot.Builder.Calling/Models/Misc/MultiPartConstants.cs
1010
namespace Microsoft.Bot.Builder.Calling.ObjectModel.Misc { public static class MultiPartConstants { /// <summary> /// content disposition name to use for the binary recorded audio (in a multipart response) /// </summary> public static readonly string RecordingContentDispositionName = "recordedAudio"; /// <summary> /// content disposition name to use for the result object (in a multipart response) /// </summary> public static readonly string ResultContentDispositionName = "conversationResult"; /// <summary> /// mime type for wav /// </summary> public static readonly string WavMimeType = "audio/wav"; /// <summary> /// mime type for wma /// </summary> public static readonly string WmaMimeType = "audio/x-ms-wma"; /// <summary> /// mime type for mp3 /// </summary> public static readonly string Mp3MimeType = "audio/mpeg"; } }
mit
kadkin/vk
VkNet/Model/RequestParams/Market/MarketProductParams.cs
4590
using System.Collections.Generic; using VkNet.Utils; namespace VkNet.Model.RequestParams { /// <summary> /// Параметр для добавления / редактирования товара /// </summary> public struct MarketProductParams { /// <summary> /// Параметр для добавления / редактирования товара /// </summary> public MarketProductParams(bool gog = false) { OwnerId = 0; Name = null; Description = null; CategoryId = 0; Price = 0; Deleted = false; MainPhotoId = 0; PhotoIds = null; ItemId = null; } /// <summary> /// Идентификатор владельца товара. Обратите внимание, идентификатор сообщества в параметре owner_id необходимо указывать со знаком "-" — например, owner_id=-1 соответствует идентификатору сообщества ВКонтакте API (club1) целое число, обязательный параметр (целое число, обязательный параметр). /// </summary> public long OwnerId { get; set; } /// <summary> /// Идентификатор товара. /// </summary> public long? ItemId { get; set; } /// <summary> /// Название товара. строка, минимальная длина 4, максимальная длина 100, обязательный параметр (строка, минимальная длина 4, максимальная длина 100, обязательный параметр). /// </summary> public string Name { get; set; } /// <summary> /// Описание товара. строка, минимальная длина 10, обязательный параметр (строка, минимальная длина 10, обязательный параметр). /// </summary> public string Description { get; set; } /// <summary> /// Идентификатор категории товара. положительное число, обязательный параметр (положительное число, обязательный параметр). /// </summary> public long CategoryId { get; set; } /// <summary> /// Цена товара. дробное число, обязательный параметр, минимальное значение 0.01 (дробное число, обязательный параметр, минимальное значение 0.01). /// </summary> public decimal Price { get; set; } /// <summary> /// Статус товара (1 — товар удален, 0 — товар не удален). флаг, может принимать значения 1 или 0 (флаг, может принимать значения 1 или 0). /// </summary> public bool Deleted { get; set; } /// <summary> /// Идентификатор фотографии обложки товара. положительное число, обязательный параметр (положительное число, обязательный параметр). /// </summary> public long MainPhotoId { get; set; } /// <summary> /// Идентификаторы дополнительных фотографий товара. список положительных чисел, разделенных запятыми, количество элементов должно составлять не более 4 (список положительных чисел, разделенных запятыми, количество элементов должно составлять не более 4). /// </summary> public IEnumerable<long> PhotoIds { get; set; } /// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> internal static VkParameters ToVkParameters(MarketProductParams p) { var parameters = new VkParameters { { "owner_id", p.OwnerId }, { "item_id", p.ItemId}, { "name", p.Name }, { "description", p.Description }, { "category_id", p.CategoryId }, { "price", p.Price }, { "deleted", p.Deleted }, { "main_photo_id", p.MainPhotoId }, { "photo_ids", p.PhotoIds } }; return parameters; } } }
mit
davewasmer/liquid-fire
app/helpers/liquid-if.js
218
import { makeHelperShim } from "liquid-fire/ember-internals"; export default makeHelperShim('liquid-if', function(params, hash, options) { hash.helperName = 'liquid-if'; hash.inverseTemplate = options.inverse; });
mit
afrogeek/SharpNative
Tests/MonoTests/Basic/401-450/test-413-lib.cs
215
// Compiler options: -t:library namespace Foo { namespace Bar { public class Baz { public class Inner { public static void Frob() { } } } } }
mit
locusf/go-ipfs
test/supernode_client/main.go
6096
package main import ( "bytes" "flag" "fmt" "io" "io/ioutil" "log" "math" "os" gopath "path" "time" ma "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr" random "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-random" context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" "github.com/ipfs/go-ipfs/util/ipfsaddr" "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" syncds "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync" commands "github.com/ipfs/go-ipfs/commands" core "github.com/ipfs/go-ipfs/core" corehttp "github.com/ipfs/go-ipfs/core/corehttp" corerouting "github.com/ipfs/go-ipfs/core/corerouting" "github.com/ipfs/go-ipfs/core/coreunix" peer "github.com/ipfs/go-ipfs/p2p/peer" "github.com/ipfs/go-ipfs/repo" config "github.com/ipfs/go-ipfs/repo/config" fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo" unit "github.com/ipfs/go-ipfs/thirdparty/unit" ds2 "github.com/ipfs/go-ipfs/util/datastore2" logging "github.com/ipfs/go-ipfs/vendor/QmQg1J6vikuXF9oDvm4wpdeAUvvkVEKW1EYDw9HhTMnP2b/go-log" ) var elog = logging.Logger("gc-client") var ( cat = flag.Bool("cat", false, "else add") seed = flag.Int64("seed", 1, "") nBitsForKeypair = flag.Int("b", 1024, "number of bits for keypair (if repo is uninitialized)") ) func main() { flag.Parse() if err := run(); err != nil { fmt.Fprintf(os.Stderr, "error: %s\n", err) os.Exit(1) } } func run() error { servers := config.DefaultSNRServers fmt.Println("using gcr remotes:") for _, p := range servers { fmt.Println("\t", p) } ctx, cancel := context.WithCancel(context.Background()) defer cancel() cwd, err := os.Getwd() if err != nil { return err } repoPath := gopath.Join(cwd, config.DefaultPathName) if err := ensureRepoInitialized(repoPath); err != nil { } repo, err := fsrepo.Open(repoPath) if err != nil { // owned by node return err } cfg, err := repo.Config() if err != nil { return err } cfg.Bootstrap = servers if err := repo.SetConfig(cfg); err != nil { return err } var addrs []ipfsaddr.IPFSAddr for _, info := range servers { addr, err := ipfsaddr.ParseString(info) if err != nil { return err } addrs = append(addrs, addr) } var infos []peer.PeerInfo for _, addr := range addrs { infos = append(infos, peer.PeerInfo{ ID: addr.ID(), Addrs: []ma.Multiaddr{addr.Transport()}, }) } node, err := core.NewNode(ctx, &core.BuildCfg{ Online: true, Repo: repo, Routing: corerouting.SupernodeClient(infos...), }) if err != nil { return err } defer node.Close() opts := []corehttp.ServeOption{ corehttp.CommandsOption(cmdCtx(node, repoPath)), corehttp.GatewayOption(false), } if *cat { if err := runFileCattingWorker(ctx, node); err != nil { return err } } else { if err := runFileAddingWorker(node); err != nil { return err } } return corehttp.ListenAndServe(node, cfg.Addresses.API, opts...) } func ensureRepoInitialized(path string) error { if !fsrepo.IsInitialized(path) { conf, err := config.Init(ioutil.Discard, *nBitsForKeypair) if err != nil { return err } if err := fsrepo.Init(path, conf); err != nil { return err } } return nil } func sizeOfIthFile(i int64) int64 { return (1 << uint64(i)) * unit.KB } func runFileAddingWorker(n *core.IpfsNode) error { go func() { var i int64 for i = 1; i < math.MaxInt32; i++ { piper, pipew := io.Pipe() go func() { defer pipew.Close() if err := random.WritePseudoRandomBytes(sizeOfIthFile(i), pipew, *seed); err != nil { log.Fatal(err) } }() k, err := coreunix.Add(n, piper) if err != nil { log.Fatal(err) } log.Println("added file", "seed", *seed, "#", i, "key", k, "size", unit.Information(sizeOfIthFile(i))) time.Sleep(1 * time.Second) } }() return nil } func runFileCattingWorker(ctx context.Context, n *core.IpfsNode) error { conf, err := config.Init(ioutil.Discard, *nBitsForKeypair) if err != nil { return err } r := &repo.Mock{ D: ds2.CloserWrap(syncds.MutexWrap(datastore.NewMapDatastore())), C: *conf, } dummy, err := core.NewNode(ctx, &core.BuildCfg{ Repo: r, }) if err != nil { return err } go func() { defer dummy.Close() var i int64 = 1 for { buf := new(bytes.Buffer) if err := random.WritePseudoRandomBytes(sizeOfIthFile(i), buf, *seed); err != nil { log.Fatal(err) } // add to a dummy node to discover the key k, err := coreunix.Add(dummy, bytes.NewReader(buf.Bytes())) if err != nil { log.Fatal(err) } e := elog.EventBegin(ctx, "cat", logging.LoggableF(func() map[string]interface{} { return map[string]interface{}{ "key": k, "localPeer": n.Identity, } })) if r, err := coreunix.Cat(ctx, n, k); err != nil { e.Done() log.Printf("failed to cat file. seed: %d #%d key: %s err: %s", *seed, i, k, err) } else { log.Println("found file", "seed", *seed, "#", i, "key", k, "size", unit.Information(sizeOfIthFile(i))) io.Copy(ioutil.Discard, r) e.Done() log.Println("catted file", "seed", *seed, "#", i, "key", k, "size", unit.Information(sizeOfIthFile(i))) i++ } time.Sleep(time.Second) } }() return nil } func toPeerInfos(bpeers []config.BootstrapPeer) ([]peer.PeerInfo, error) { var peers []peer.PeerInfo for _, bootstrap := range bpeers { p, err := toPeerInfo(bootstrap) if err != nil { return nil, err } peers = append(peers, p) } return peers, nil } func toPeerInfo(bootstrap config.BootstrapPeer) (p peer.PeerInfo, err error) { p = peer.PeerInfo{ ID: bootstrap.ID(), Addrs: []ma.Multiaddr{bootstrap.Multiaddr()}, } return p, nil } func cmdCtx(node *core.IpfsNode, repoPath string) commands.Context { return commands.Context{ Online: true, ConfigRoot: repoPath, LoadConfig: func(path string) (*config.Config, error) { return node.Repo.Config() }, ConstructNode: func() (*core.IpfsNode, error) { return node, nil }, } }
mit
dlee0113/java-design-patterns
flyweight/src/test/java/com/iluwatar/flyweight/AlchemistShopTest.java
1003
package com.iluwatar.flyweight; import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; /** * Date: 12/12/15 - 10:54 PM * * @author Jeroen Meulemeester */ public class AlchemistShopTest { @Test public void testShop() throws Exception { final AlchemistShop shop = new AlchemistShop(); final List<Potion> bottomShelf = shop.getBottomShelf(); assertNotNull(bottomShelf); assertEquals(5, bottomShelf.size()); final List<Potion> topShelf = shop.getTopShelf(); assertNotNull(topShelf); assertEquals(8, topShelf.size()); final List<Potion> allPotions = new ArrayList<>(); allPotions.addAll(topShelf); allPotions.addAll(bottomShelf); // There are 13 potion instances, but only 5 unique instance types assertEquals(13, allPotions.size()); assertEquals(5, allPotions.stream().map(System::identityHashCode).distinct().count()); } }
mit
aarswells/AndrewsDistributing
vendor/engines/managements/db/seeds/managements.rb
510
User.find(:all).each do |user| user.plugins.create(:name => "managements", :position => (user.plugins.maximum(:position) || -1) +1) end page = Page.create( :title => "Managements", :link_url => "/managements", :deletable => false, :position => ((Page.maximum(:position, :conditions => {:parent_id => nil}) || -1)+1), :menu_match => "^/managements(\/|\/.+?|)$" ) Page.default_parts.each do |default_page_part| page.parts.create(:title => default_page_part, :body => nil) end
mit
yahyaKacem/facial_recog_demo
node_modules/bower-canary/lib/core/resolvers/Resolver.js
5954
var fs = require('graceful-fs'); var path = require('path'); var Q = require('q'); var tmp = require('tmp'); var mkdirp = require('mkdirp'); var bowerJson = require('bower-json'); var createError = require('../../util/createError'); var removeIgnores = require('../../util/removeIgnores'); tmp.setGracefulCleanup(); function Resolver(decEndpoint, config, logger) { this._source = decEndpoint.source; this._target = decEndpoint.target || '*'; this._name = decEndpoint.name || path.basename(this._source); this._config = config; this._logger = logger; this._guessedName = !decEndpoint.name; } // ----------------- Resolver.prototype.getSource = function () { return this._source; }; Resolver.prototype.getName = function () { return this._name; }; Resolver.prototype.getTarget = function () { return this._target; }; Resolver.prototype.getTempDir = function () { return this._tempDir; }; Resolver.prototype.getPkgMeta = function () { return this._pkgMeta; }; Resolver.prototype.hasNew = function (canonicalDir, pkgMeta) { var promise; var metaFile; var that = this; // If already working, error out if (this._working) { return Q.reject(createError('Already working', 'EWORKING')); } this._working = true; // Avoid reading the package meta if already given if (pkgMeta) { promise = this._hasNew(canonicalDir, pkgMeta); // Otherwise call _hasNew with both the package meta and the canonical dir } else { metaFile = path.join(canonicalDir, '.bower.json'); promise = Q.nfcall(bowerJson.read, metaFile) .then(function (pkgMeta) { return that._hasNew(canonicalDir, pkgMeta); }, function () { return true; // Simply resolve to true if there was an error reading the file }); } return promise.fin(function () { that._working = false; }); }; Resolver.prototype.resolve = function () { var that = this; // If already working, error out if (this._working) { return Q.reject(createError('Already working', 'EWORKING')); } this._working = true; // Create temporary dir return this._createTempDir() // Resolve self .then(this._resolve.bind(this)) // Read json, generating the package meta .then(this._readJson.bind(this, null)) // Apply and save package meta .then(function (meta) { return that._applyPkgMeta(meta) .then(that._savePkgMeta.bind(that, meta)); }) .then(function () { // Resolve with the folder return that._tempDir; }, function (err) { // If something went wrong, unset the temporary dir that._tempDir = null; throw err; }) .fin(function () { that._working = false; }); }; // ----------------- // Abstract functions that must be implemented by concrete resolvers Resolver.prototype._resolve = function () { throw new Error('_resolve not implemented'); }; // Abstract functions that can be re-implemented by concrete resolvers // as necessary Resolver.prototype._hasNew = function (canonicalDir, pkgMeta) { return Q.resolve(true); }; Resolver.isTargetable = function () { return true; }; Resolver.versions = function (source) { return Q.resolve([]); }; Resolver.clearRuntimeCache = function () {}; // ----------------- Resolver.prototype._createTempDir = function () { var baseDir = path.join(this._config.tmp, 'bower'); return Q.nfcall(mkdirp, baseDir) .then(function () { return Q.nfcall(tmp.dir, { template: path.join(baseDir, this._name + '-' + process.pid + '-XXXXXX'), mode: 0777 & ~process.umask(), unsafeCleanup: true }); }.bind(this)) .then(function (dir) { this._tempDir = dir; return dir; }.bind(this)); }; Resolver.prototype._readJson = function (dir) { dir = dir || this._tempDir; return Q.nfcall(bowerJson.find, dir) .then(function (filename) { // If it is a component.json, warn about the deprecation if (path.basename(filename) === 'component.json') { this._logger.warn('deprecated', 'Package ' + this._name + ' is using the deprecated component.json file', { json: filename }); } // Read it return Q.nfcall(bowerJson.read, filename) .fail(function (err) { throw createError('Something went wrong while reading ' + filename, err.code, { details: err.message, data: { json: filename } }); }); }.bind(this), function () { // No json file was found, assume one return Q.nfcall(bowerJson.parse, { name: this._name }); }.bind(this)); }; Resolver.prototype._applyPkgMeta = function (meta) { // Check if name defined in the json is different // If so and if the name was "guessed", assume the json name if (meta.name !== this._name && this._guessedName) { this._name = meta.name; } // Handle ignore property, deleting all files from the temporary directory // If no ignores were specified, simply resolve if (!meta.ignore || !meta.ignore.length) { return Q.resolve(meta); } // Otherwise remove them from the temp dir return removeIgnores(this._tempDir, meta.ignore) .then(function () { return meta; }); }; Resolver.prototype._savePkgMeta = function (meta) { var contents; // Store original source & target meta._source = this._source; meta._target = this._target; // Stringify contents contents = JSON.stringify(meta, null, 2); return Q.nfcall(fs.writeFile, path.join(this._tempDir, '.bower.json'), contents) .then(function () { return this._pkgMeta = meta; }.bind(this)); }; module.exports = Resolver;
mit
xizhonghua/wesee
human_detection/boost_1_50_0/boost/intrusive/link_mode.hpp
1782
///////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2006-2009 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/intrusive for documentation. // ///////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTRUSIVE_VALUE_LINK_TYPE_HPP #define BOOST_INTRUSIVE_VALUE_LINK_TYPE_HPP namespace boost { namespace intrusive { //!This enumeration defines the type of value_traits that can be defined //!for Boost.Intrusive containers enum link_mode_type{ //!If this linking policy is specified in a value_traits class //!as the link_mode, containers //!configured with such value_traits won't set the hooks //!of the erased values to a default state. Containers also won't //!check that the hooks of the new values are default initialized. normal_link, //!If this linking policy is specified in a value_traits class //!as the link_mode, containers //!configured with such value_traits will set the hooks //!of the erased values to a default state. Containers also will //!check that the hooks of the new values are default initialized. safe_link, //!Same as "safe_link" but the user type is an auto-unlink //!type, so the containers with constant-time size features won't be //!compatible with value_traits configured with this policy. //!Containers also know that the a value can be silently erased from //!the container without using any function provided by the containers. auto_unlink }; } //namespace intrusive } //namespace boost #endif //BOOST_INTRUSIVE_VALUE_LINK_TYPE_HPP
mit
duoduo369/gulp-frontend-scaffold
node_modules/webpack/hot/signal.js
1793
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ /*globals __resourceQuery */ if(module.hot) { function checkForUpdate(fromUpdate) { module.hot.check().then(function(updatedModules) { if(!updatedModules) { if(fromUpdate) console.log("[HMR] Update applied."); else console.warn("[HMR] Cannot find update."); return; } module.hot.apply({ ignoreUnaccepted: true }, function(err, renewedModules) { if(err) { if(module.hot.status() in { abort: 1, fail: 1 }) { console.warn("[HMR] Cannot apply update (Need to do a full reload!)"); console.warn("[HMR] " + err.stack || err.message); console.warn("[HMR] You need to restart the application!"); } else { console.warn("[HMR] Update failed: " + err.stack || err.message); } return; } require("./log-apply-result")(updatedModules, renewedModules); checkForUpdate(true); }); }).catch(function(err) { if(module.hot.status() in { abort: 1, fail: 1 }) { console.warn("[HMR] Cannot apply update."); console.warn("[HMR] " + err.stack || err.message); console.warn("[HMR] You need to restart the application!"); } else { console.warn("[HMR] Update failed: " + err.stack || err.message); } }); } process.on(__resourceQuery.substr(1) || "SIGUSR2", function() { if(module.hot.status() !== "idle") { console.warn("[HMR] Got signal but currently in " + module.hot.status() + " state."); console.warn("[HMR] Need to be in idle state to start hot update."); return; } checkForUpdate(); }); } else { throw new Error("[HMR] Hot Module Replacement is disabled."); }
mit
mlocati/concrete5
concrete/themes/dashboard/marketplace.php
2595
<?php defined('C5_EXECUTE') or die("Access Denied."); $this->inc('elements/header.php'); ?> <div id="ccm-marketplace-wrapper"> <header class="ccm-marketplace"> <?php if ($controller->getTask() == 'view_detail') { ?> <div class="ccm-marketplace-nav"> <nav> <li><a href="<?=$controller->action('view')?>"><i class="fas fa-chevron-left"></i> <?=t('Back')?></a></li> </nav> </div> <?php } else { ?> <form action="<?=$controller->action('view')?>" method="get"> <input type="hidden" name="ccm_order_by" value="<?=$sort?>" /> <div class="ccm-marketplace-nav"> <nav> <li><a href="<?=URL::to('/dashboard/extend/themes')?>" <?php if ($type == 'themes') { ?>class="active"<?php } ?>><?=t('Themes')?></a></li> <li><a href="<?=URL::to('/dashboard/extend/addons')?>" <?php if ($type == 'addons') { ?>class="active"<?php } ?>><?=t('Add-Ons')?></a></li> </nav> </div> <div class="ccm-marketplace-search"> <?=$form->select('marketplaceRemoteItemSetID', $sets, $selectedSet, array('style' => 'width: 150px'))?> <div class="ccm-marketplace-search-input"> <i class="fas fa-search"></i> <input type="search" name="keywords" value="<?=$keywords?>" /> </div> <button type="submit" class="btn btn-primary btn-sm"><?=t('Search')?></button> </div> </form> <?php } ?> </header> <?php if ($controller->getTask() != 'view_detail') { ?> <header class="ccm-marketplace-list"> <div class="ccm-marketplace-sort"> <nav> <li><a href="<?=$list->getSortByURL('popularity')?>" <?php if ($sort == 'popularity') { ?>class="active"<?php } ?>><?=t('Most Popular')?></a></li> <li><a href="<?=$list->getSortByURL('recent')?>" <?php if ($sort == 'recent') { ?>class="active"<?php } ?>><?=t('Recent')?></a></li> <li><a href="<?=$list->getSortByURL('price')?>" <?php if ($sort == 'price') { ?>class="active"<?php } ?>><?=t('Price')?></a></li> <li><a href="<?=$list->getSortByURL('rating')?>" <?php if ($sort == 'rating') { ?>class="active"<?php } ?>><?=t('Rating')?></a></li> <li><a href="<?=$list->getSortByURL('skill_level')?>" <?php if ($sort == 'skill_level') { ?>class="active"<?php } ?>><?=t('Skill Level')?></a></li> </nav> </div> </header> <?php } ?> <?php echo $innerContent; ?> </div> <?php $this->inc('elements/footer.php');
mit
ayarger/michigames_cabinet_frontend
Assets/InControl/Source/Unity/DeviceProfiles/BuffaloClassicAmazonProfile.cs
1768
namespace InControl { // @cond nodoc [AutoDiscover] public class BuffaloClassicAmazonProfile : UnityInputDeviceProfile { // Right Bumper, Start and Select aren't supported. // Possibly they fall outside the number of buttons Unity supports? // public BuffaloClassicAmazonProfile() { Name = "Buffalo Class Gamepad"; Meta = "Buffalo Class Gamepad on Amazon Fire TV"; IncludePlatforms = new[] { "Amazon AFT", }; JoystickNames = new[] { "USB,2-axis 8-button gamepad " }; ButtonMappings = new[] { new InputControlMapping { Handle = "A", Target = InputControlType.Action2, Source = Button15 }, new InputControlMapping { Handle = "B", Target = InputControlType.Action1, Source = Button16 }, new InputControlMapping { Handle = "X", Target = InputControlType.Action4, Source = Button17 }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action3, Source = Button18 }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = Button19 }, // new InputControlMapping { // Handle = "Right Bumper", // Target = InputControlType.RightBumper, // Source = new UnityButtonSource( 20 ) // }, // new InputControlMapping { // Handle = "Select", // Target = InputControlType.Select, // Source = Button21 // }, // new InputControlMapping { // Handle = "Start", // Target = InputControlType.Start, // Source = Button22 // }, }; AnalogMappings = new[] { DPadLeftMapping( Analog0 ), DPadRightMapping( Analog0 ), DPadUpMapping( Analog1 ), DPadDownMapping( Analog1 ), }; } } // @endcond }
mit
DKrepsky/CC3200-Linux-SDK
docs/simplelink_api/html/files.js
547
var files = [ [ "device.h", "device_8h_source.html", null ], [ "fs.h", "fs_8h_source.html", null ], [ "netapp.h", "netapp_8h_source.html", null ], [ "netcfg.h", "netcfg_8h_source.html", null ], [ "simplelink.h", "simplelink_8h_source.html", null ], [ "socket.h", "socket_8h_source.html", null ], [ "trace.h", "trace_8h_source.html", null ], [ "user.h", "user_8h_source.html", null ], [ "wlan.h", "wlan_8h_source.html", null ], [ "wlan_rx_filters.h", "wlan__rx__filters_8h_source.html", null ] ];
mit
ctoran/aurelia-ts-port
dist/es6/router/pipeline.js
2020
function createResult(ctx, next) { return { status: next.status, context: ctx, output: next.output, completed: next.status == pipelineStatus.completed }; } export const pipelineStatus = { completed: 'completed', cancelled: 'cancelled', rejected: 'rejected', running: 'running' }; export class Pipeline { constructor() { this.steps = []; } withStep(step) { var run, steps, i, l; if (typeof step == 'function') { run = step; } else if (step.isMultiStep) { steps = step.getSteps(); for (i = 0, l = steps.length; i < l; i++) { this.withStep(steps[i]); } return this; } else { run = step.run.bind(step); } this.steps.push(run); return this; } run(ctx) { var index = -1, steps = this.steps, next, currentStep; next = function () { index++; if (index < steps.length) { currentStep = steps[index]; try { return currentStep(ctx, next); } catch (e) { return next.reject(e); } } else { return next.complete(); } }; next.complete = output => { next.status = pipelineStatus.completed; next.output = output; return Promise.resolve(createResult(ctx, next)); }; next.cancel = reason => { next.status = pipelineStatus.cancelled; next.output = reason; return Promise.resolve(createResult(ctx, next)); }; next.reject = error => { next.status = pipelineStatus.rejected; next.output = error; return Promise.resolve(createResult(ctx, next)); }; next.status = pipelineStatus.running; return next(); } }
mit
skaarthik/Mobius
csharp/Adapter/Microsoft.Spark.CSharp/Proxy/ISparkSessionProxy.cs
947
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Spark.CSharp.Sql; namespace Microsoft.Spark.CSharp.Proxy { internal interface IUdfRegistrationProxy { void RegisterFunction(string name, byte[] command, string returnType); } interface ISparkSessionProxy { ISqlContextProxy SqlContextProxy { get; } IUdfRegistrationProxy Udf { get; } ICatalogProxy GetCatalog(); IDataFrameReaderProxy Read(); ISparkSessionProxy NewSession(); IDataFrameProxy CreateDataFrame(IRDDProxy rddProxy, IStructTypeProxy structTypeProxy); IDataFrameProxy Table(string tableName); IDataFrameProxy Sql(string query); void Stop(); } }
mit
extend1994/cdnjs
ajax/libs/angular-ui-grid/4.8.1/i18n/ui-grid.language.ta.js
4915
/*! * ui-grid - v4.8.1 - 2019-06-27 * Copyright (c) 2019 ; License: MIT */ (function () { angular.module('ui.grid').config(['$provide', function($provide) { $provide.decorator('i18nService', ['$delegate', function($delegate) { $delegate.add('ta', { aggregate: { label: 'உருப்படிகள்' }, groupPanel: { description: 'ஒரு பத்தியை குழுவாக அமைக்க அப்பத்தியின் தலைப்பை இங்கே இழுத்து வரவும் ' }, search: { placeholder: 'தேடல் ...', showingItems: 'உருப்படிகளை காண்பித்தல்:', selectedItems: 'தேர்ந்தெடுக்கப்பட்ட உருப்படிகள்:', totalItems: 'மொத்த உருப்படிகள்:', size: 'பக்க அளவு: ', first: 'முதல் பக்கம்', next: 'அடுத்த பக்கம்', previous: 'முந்தைய பக்கம் ', last: 'இறுதி பக்கம்' }, menu: { text: 'பத்திகளை தேர்ந்தெடு:' }, sort: { ascending: 'மேலிருந்து கீழாக', descending: 'கீழிருந்து மேலாக', remove: 'வரிசையை நீக்கு' }, column: { hide: 'பத்தியை மறைத்து வை ' }, aggregation: { count: 'மொத்த வரிகள்:', sum: 'மொத்தம்: ', avg: 'சராசரி: ', min: 'குறைந்தபட்ச: ', max: 'அதிகபட்ச: ' }, pinning: { pinLeft: 'இடதுபுறமாக தைக்க ', pinRight: 'வலதுபுறமாக தைக்க', unpin: 'பிரி' }, gridMenu: { columns: 'பத்திகள்:', importerTitle: 'கோப்பு : படித்தல்', exporterAllAsCsv: 'எல்லா தரவுகளையும் கோப்பாக்கு: csv', exporterVisibleAsCsv: 'இருக்கும் தரவுகளை கோப்பாக்கு: csv', exporterSelectedAsCsv: 'தேர்ந்தெடுத்த தரவுகளை கோப்பாக்கு: csv', exporterAllAsPdf: 'எல்லா தரவுகளையும் கோப்பாக்கு: pdf', exporterVisibleAsPdf: 'இருக்கும் தரவுகளை கோப்பாக்கு: pdf', exporterSelectedAsPdf: 'தேர்ந்தெடுத்த தரவுகளை கோப்பாக்கு: pdf', clearAllFilters: 'Clear all filters' }, importer: { noHeaders: 'பத்தியின் தலைப்புகளை பெற இயலவில்லை, கோப்பிற்கு தலைப்பு உள்ளதா?', noObjects: 'இலக்குகளை உருவாக்க முடியவில்லை, கோப்பில் தலைப்புகளை தவிர தரவு ஏதேனும் உள்ளதா? ', invalidCsv: 'சரிவர நடைமுறை படுத்த இயலவில்லை, கோப்பு சரிதானா? - csv', invalidJson: 'சரிவர நடைமுறை படுத்த இயலவில்லை, கோப்பு சரிதானா? - json', jsonNotArray: 'படித்த கோப்பில் வரிசைகள் உள்ளது, நடைமுறை ரத்து செய் : json' }, pagination: { sizes : 'உருப்படிகள் / பக்கம்', totalItems : 'உருப்படிகள் ' }, grouping: { group : 'குழு', ungroup : 'பிரி', aggregate_count : 'மதிப்பீட்டு : எண்ணு', aggregate_sum : 'மதிப்பீட்டு : கூட்டல்', aggregate_max : 'மதிப்பீட்டு : அதிகபட்சம்', aggregate_min : 'மதிப்பீட்டு : குறைந்தபட்சம்', aggregate_avg : 'மதிப்பீட்டு : சராசரி', aggregate_remove : 'மதிப்பீட்டு : நீக்கு' } }); return $delegate; }]); }]); })();
mit
TysonAndre/php-parser-to-php-ast
test_files/src/incdecr.php
30
<?php $i++; ++$i; --$i; $i--;
mit
afrog33k/SharpNative
Tests/MonoTests/Basic/150-200/test-151.cs
349
using System; namespace A { public class Iface { void bah() {} } class my { A.Iface b; void doit (Object A) { b = (A.Iface)A; } public static int Main () { return 0; } } }
mit
jomahoney/Ghost
core/server/data/migrations/hooks/migrate/before.js
187
var backup = require('../../../schema/backup'), models = require('../../../../models'); module.exports = function before(options) { models.init(); return backup(options); };
mit
YunnuY/xrp-old
client/tests/unit/pods/s/media/albums/album/controller-test.js
354
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:s/media/albums/album', 'SMediaAlbumsAlbumController', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function() { var controller = this.subject(); ok(controller); });
mit
seuffert/rclone
vendor/github.com/Azure/azure-sdk-for-go/services/sql/mgmt/2017-10-01-preview/sql/client.go
2226
// Package sql implements the Azure ARM Sql service API version 2017-10-01-preview. // // The Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database // services to manage your databases. The API enables you to create, retrieve, update, and delete databases. package sql // Copyright (c) Microsoft and contributors. All rights reserved. // // 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. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "github.com/Azure/go-autorest/autorest" ) const ( // DefaultBaseURI is the default URI used for the service Sql DefaultBaseURI = "https://management.azure.com" ) // Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql instead. // BaseClient is the base client for Sql. type BaseClient struct { autorest.Client BaseURI string SubscriptionID string } // Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql instead. // New creates an instance of the BaseClient client. func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } // Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql instead. // NewWithBaseURI creates an instance of the BaseClient client. func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), BaseURI: baseURI, SubscriptionID: subscriptionID, } }
mit
tlan16/price-match-crawler
core/3rdParty/framework/Web/UI/TClientScriptManager.php
23758
<?php /** * TClientScriptManager and TClientSideOptions class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @author Gabor Berczi <gabor.berczi@devworx.hu> (lazyload additions & progressive rendering) * @link http://www.pradosoft.com/ * @copyright Copyright &copy; 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ * @package System.Web.UI */ /** * TClientScriptManager class. * * TClientScriptManager manages javascript and CSS stylesheets for a page. * * @author Qiang Xue <qiang.xue@gmail.com> * @author Gabor Berczi <gabor.berczi@devworx.hu> (lazyload additions & progressive rendering) * @package System.Web.UI * @since 3.0 */ class TClientScriptManager extends TApplicationComponent { /** * directory containing Prado javascript files */ const SCRIPT_PATH='Web/Javascripts/source'; /** * file containing javascript packages and their cross dependencies */ const PACKAGES_FILE='Web/Javascripts/packages.php'; /** * @var TPage page who owns this manager */ private $_page; /** * @var array registered hidden fields, indexed by hidden field names */ private $_hiddenFields=array(); /** * @var array javascript blocks to be rendered at the beginning of the form */ private $_beginScripts=array(); /** * @var array javascript blocks to be rendered at the end of the form */ private $_endScripts=array(); /** * @var array javascript files to be rendered in the form */ private $_scriptFiles=array(); /** * @var array javascript files to be rendered in page head section */ private $_headScriptFiles=array(); /** * @var array javascript blocks to be rendered in page head section */ private $_headScripts=array(); /** * @var array CSS files */ private $_styleSheetFiles=array(); /** * @var array CSS declarations */ private $_styleSheets=array(); /** * @var array registered PRADO script libraries */ private $_registeredPradoScripts=array(); /** * Client-side javascript library dependencies, loads from PACKAGES_FILE; * @var array */ private static $_pradoScripts; /** * Client-side javascript library packages, loads from PACKAGES_FILE; * @var array */ private static $_pradoPackages; private $_renderedHiddenFields; private $_renderedScriptFiles=array(); private $_expandedPradoScripts; /** * Constructor. * @param TPage page that owns this client script manager */ public function __construct(TPage $owner) { $this->_page=$owner; } /** * @return boolean whether THead is required in order to render CSS and js within head * @since 3.1.1 */ public function getRequiresHead() { return count($this->_styleSheetFiles) || count($this->_styleSheets) || count($this->_headScriptFiles) || count($this->_headScripts); } public static function getPradoPackages() { return self::$_pradoPackages; } public static function getPradoScripts() { return self::$_pradoScripts; } /** * Registers Prado javascript by library name. See "Web/Javascripts/packages.php" * for library names. * @param string script library name. */ public function registerPradoScript($name) { $this->registerPradoScriptInternal($name); $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerPradoScript',$params); } /** * Registers a Prado javascript library to be loaded. */ protected function registerPradoScriptInternal($name) { // $this->checkIfNotInRender(); if(!isset($this->_registeredPradoScripts[$name])) { if(self::$_pradoScripts === null) { $packageFile = Prado::getFrameworkPath().DIRECTORY_SEPARATOR.self::PACKAGES_FILE; list($packages,$deps)= include($packageFile); self::$_pradoScripts = $deps; self::$_pradoPackages = $packages; } if (isset(self::$_pradoScripts[$name])) $this->_registeredPradoScripts[$name]=true; else throw new TInvalidOperationException('csmanager_pradoscript_invalid',$name); if(($packages=array_keys($this->_registeredPradoScripts))!==array()) { $base = Prado::getFrameworkPath().DIRECTORY_SEPARATOR.self::SCRIPT_PATH; list($path,$baseUrl)=$this->getPackagePathUrl($base); $packagesUrl=array(); $isDebug=$this->getApplication()->getMode()===TApplicationMode::Debug; foreach ($packages as $p) { foreach (self::$_pradoScripts[$p] as $dep) { foreach (self::$_pradoPackages[$dep] as $script) if (!isset($this->_expandedPradoScripts[$script])) { $this->_expandedPradoScripts[$script] = true; if($isDebug) { if (!in_array($url=$baseUrl.'/'.$script,$packagesUrl)) $packagesUrl[]=$url; } else { if (!in_array($url=$baseUrl.'/min/'.$script,$packagesUrl)) { if(!is_file($filePath=$path.'/min/'.$script)) { $dirPath=dirname($filePath); if(!is_dir($dirPath)) mkdir($dirPath, PRADO_CHMOD, true); file_put_contents($filePath, TJavaScript::JSMin(file_get_contents($base.'/'.$script))); chmod($filePath, PRADO_CHMOD); } $packagesUrl[]=$url; } } } } } foreach($packagesUrl as $url) $this->registerScriptFile($url,$url); } } } /** * @return string Prado javascript library base asset url. */ public function getPradoScriptAssetUrl() { $base = Prado::getFrameworkPath().DIRECTORY_SEPARATOR.self::SCRIPT_PATH; $assets = Prado::getApplication()->getAssetManager(); return $assets->getPublishedUrl($base); } /** * Returns the URLs of all script files referenced on the page * @return array Combined list of all script urls used in the page */ public function getScriptUrls() { $scripts = array_values($this->_headScriptFiles); $scripts = array_merge($scripts, array_values($this->_scriptFiles)); $scripts = array_unique($scripts); return $scripts; } /** * @param string javascript package path. * @return array tuple($path,$url). */ protected function getPackagePathUrl($base) { $assets = Prado::getApplication()->getAssetManager(); if(strpos($base, $assets->getBaseUrl())===false) { if(($dir = Prado::getPathOfNameSpace($base)) !== null) { $base = $dir; } return array($assets->getPublishedPath($base), $assets->publishFilePath($base)); } else { return array($assets->getBasePath().str_replace($assets->getBaseUrl(),'',$base), $base); } } /** * Returns javascript statement that create a new callback request object. * @param ICallbackEventHandler callback response handler * @param array additional callback options * @return string javascript statement that creates a new callback request. */ public function getCallbackReference(ICallbackEventHandler $callbackHandler, $options=null) { $options = !is_array($options) ? array() : $options; $class = new ReflectionClass($callbackHandler); $clientSide = $callbackHandler->getActiveControl()->getClientSide(); $options = array_merge($options, $clientSide->getOptions()->toArray()); $optionString = TJavaScript::encode($options); $this->registerPradoScriptInternal('ajax'); $id = $callbackHandler->getUniqueID(); return "new Prado.CallbackRequest('{$id}',{$optionString})"; } /** * Registers callback javascript for a control. * @param string javascript class responsible for the control being registered for callback * @param array callback options */ public function registerCallbackControl($class, $options) { $optionString=TJavaScript::encode($options); $code="new {$class}({$optionString});"; $this->_endScripts[sprintf('%08X', crc32($code))]=$code; $this->registerPradoScriptInternal('ajax'); $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerCallbackControl',$params); } /** * Registers postback javascript for a control. A null class parameter will prevent * the javascript code registration. * @param string javascript class responsible for the control being registered for postback * @param array postback options */ public function registerPostBackControl($class,$options) { if($class === null) { return; } if(!isset($options['FormID']) && ($form=$this->_page->getForm())!==null) $options['FormID']=$form->getClientID(); $optionString=TJavaScript::encode($options); $code="new {$class}({$optionString});"; $this->_endScripts[sprintf('%08X', crc32($code))]=$code; $this->_hiddenFields[TPage::FIELD_POSTBACK_TARGET]=''; $this->_hiddenFields[TPage::FIELD_POSTBACK_PARAMETER]=''; $this->registerPradoScriptInternal('prado'); $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerPostBackControl',$params); } /** * Register a default button to panel. When the $panel is in focus and * the 'enter' key is pressed, the $button will be clicked. * @param TControl|string panel (or its unique ID) to register the default button action * @param TControl|string button (or its unique ID) to trigger a postback */ public function registerDefaultButton($panel, $button) { $panelID=is_string($panel)?$panel:$panel->getUniqueID(); if(is_string($button)) $buttonID=$button; else { $button->setIsDefaultButton(true); $buttonID=$button->getUniqueID(); } $options = TJavaScript::encode($this->getDefaultButtonOptions($panelID, $buttonID)); $code = "new Prado.WebUI.DefaultButton($options);"; $this->_endScripts['prado:'.$panelID]=$code; $this->_hiddenFields[TPage::FIELD_POSTBACK_TARGET]=''; $this->registerPradoScriptInternal('prado'); $params=array($panelID,$buttonID); $this->_page->registerCachingAction('Page.ClientScript','registerDefaultButton',$params); } /** * @param string the unique ID of the container control * @param string the unique ID of the button control * @return array default button options. */ protected function getDefaultButtonOptions($panelID, $buttonID) { $options['ID'] = TControl::convertUniqueIdToClientId($panelID); $options['Panel'] = TControl::convertUniqueIdToClientId($panelID); $options['Target'] = TControl::convertUniqueIdToClientId($buttonID); $options['EventTarget'] = $buttonID; $options['Event'] = 'click'; return $options; } /** * Registers the control to receive default focus. * @param string the client ID of the control to receive default focus */ public function registerFocusControl($target) { $this->registerPradoScriptInternal('effects'); if($target instanceof TControl) $target=$target->getClientID(); $id = TJavaScript::quoteString($target); $this->_endScripts['prado:focus'] = 'Prado.Element.focus('.$id.');'; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerFocusControl',$params); } /** * Registers a CSS file to be rendered in the page head * * The CSS files in themes are registered in {@link OnPreRenderComplete onPreRenderComplete} if you want to override * CSS styles in themes you need to register it after this event is completed. * * Example: * <code> * <?php * class BasePage extends TPage { * public function onPreRenderComplete($param) { * parent::onPreRenderComplete($param); * $url = 'path/to/your/stylesheet.css'; * $this->Page->ClientScript->registerStyleSheetFile($url, $url); * } * } * </code> * * @param string a unique key identifying the file * @param string URL to the CSS file * @param string media type of the CSS (such as 'print', 'screen', etc.). Defaults to empty, meaning the CSS applies to all media types. */ public function registerStyleSheetFile($key,$url,$media='') { if($media==='') $this->_styleSheetFiles[$key]=$url; else $this->_styleSheetFiles[$key]=array($url,$media); $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerStyleSheetFile',$params); } /** * Registers a CSS block to be rendered in the page head * @param string a unique key identifying the CSS block * @param string CSS block */ public function registerStyleSheet($key,$css,$media='') { $this->_styleSheets[$key]=$css; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerStyleSheet',$params); } /** * Returns the URLs of all stylesheet files referenced on the page * @return array List of all stylesheet urls used in the page */ public function getStyleSheetUrls() { $stylesheets = array_values( array_map( create_function('$e', 'return is_array($e) ? $e[0] : $e;'), $this->_styleSheetFiles) ); foreach(Prado::getApplication()->getAssetManager()->getPublished() as $path=>$url) if (substr($url,strlen($url)-4)=='.css') $stylesheets[] = $url; $stylesheets = array_unique($stylesheets); return $stylesheets; } /** * Returns all the stylesheet code snippets referenced on the page * @return array List of all stylesheet snippets used in the page */ public function getStyleSheetCodes() { return array_unique(array_values($this->_styleSheets)); } /** * Registers a javascript file in the page head * @param string a unique key identifying the file * @param string URL to the javascript file */ public function registerHeadScriptFile($key,$url) { $this->checkIfNotInRender(); $this->_headScriptFiles[$key]=$url; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerHeadScriptFile',$params); } /** * Registers a javascript block in the page head. * @param string a unique key identifying the script block * @param string javascript block */ public function registerHeadScript($key,$script) { $this->checkIfNotInRender(); $this->_headScripts[$key]=$script; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerHeadScript',$params); } /** * Registers a javascript file to be rendered within the form * @param string a unique key identifying the file * @param string URL to the javascript file to be rendered */ public function registerScriptFile($key, $url) { $this->_scriptFiles[$key]=$url; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerScriptFile',$params); } /** * Registers a javascript script block at the beginning of the form * @param string a unique key identifying the script block * @param string javascript block */ public function registerBeginScript($key,$script) { $this->checkIfNotInRender(); $this->_beginScripts[$key]=$script; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerBeginScript',$params); } /** * Registers a javascript script block at the end of the form * @param string a unique key identifying the script block * @param string javascript block */ public function registerEndScript($key,$script) { $this->_endScripts[$key]=$script; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerEndScript',$params); } /** * Registers a hidden field to be rendered in the form. * @param string a unique key identifying the hidden field * @param string|array hidden field value, if the value is an array, every element * in the array will be rendered as a hidden field value. */ public function registerHiddenField($name,$value) { $this->_hiddenFields[$name]=$value; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerHiddenField',$params); } /** * @param string a unique key * @return boolean whether there is a CSS file registered with the specified key */ public function isStyleSheetFileRegistered($key) { return isset($this->_styleSheetFiles[$key]); } /** * @param string a unique key * @return boolean whether there is a CSS block registered with the specified key */ public function isStyleSheetRegistered($key) { return isset($this->_styleSheets[$key]); } /** * @param string a unique key * @return boolean whether there is a head javascript file registered with the specified key */ public function isHeadScriptFileRegistered($key) { return isset($this->_headScriptFiles[$key]); } /** * @param string a unique key * @return boolean whether there is a head javascript block registered with the specified key */ public function isHeadScriptRegistered($key) { return isset($this->_headScripts[$key]); } /** * @param string a unique key * @return boolean whether there is a javascript file registered with the specified key */ public function isScriptFileRegistered($key) { return isset($this->_scriptFiles[$key]); } /** * @param string a unique key * @return boolean whether there is a beginning javascript block registered with the specified key */ public function isBeginScriptRegistered($key) { return isset($this->_beginScripts[$key]); } /** * @param string a unique key * @return boolean whether there is an ending javascript block registered with the specified key */ public function isEndScriptRegistered($key) { return isset($this->_endScripts[$key]); } /** * @return boolean true if any end scripts are registered. */ public function hasEndScripts() { return count($this->_endScripts) > 0; } /** * @return boolean true if any begin scripts are registered. */ public function hasBeginScripts() { return count($this->_beginScripts) > 0; } /** * @param string a unique key * @return boolean whether there is a hidden field registered with the specified key */ public function isHiddenFieldRegistered($key) { return isset($this->_hiddenFields[$key]); } /** * @param THtmlWriter writer for the rendering purpose */ public function renderStyleSheetFiles($writer) { $str=''; foreach($this->_styleSheetFiles as $url) { if(is_array($url)) $str.="<link rel=\"stylesheet\" type=\"text/css\" media=\"{$url[1]}\" href=\"".THttpUtility::htmlEncode($url[0])."\" />\n"; else $str.="<link rel=\"stylesheet\" type=\"text/css\" href=\"".THttpUtility::htmlEncode($url)."\" />\n"; } $writer->write($str); } /** * @param THtmlWriter writer for the rendering purpose */ public function renderStyleSheets($writer) { if(count($this->_styleSheets)) $writer->write("<style type=\"text/css\">\n/*<![CDATA[*/\n".implode("\n",$this->_styleSheets)."\n/*]]>*/\n</style>\n"); } /** * @param THtmlWriter writer for the rendering purpose */ public function renderHeadScriptFiles($writer) { $this->renderScriptFiles($writer,$this->_headScriptFiles); } /** * @param THtmlWriter writer for the rendering purpose */ public function renderHeadScripts($writer) { $writer->write(TJavaScript::renderScriptBlocks($this->_headScripts)); } public function renderScriptFilesBegin($writer) { $this->renderAllPendingScriptFiles($writer); } public function renderScriptFilesEnd($writer) { $this->renderAllPendingScriptFiles($writer); } public function markScriptFileAsRendered($url) { $this->_renderedScriptFiles[$url] = $url; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','markScriptFileAsRendered',$params); } protected function renderScriptFiles($writer, Array $scripts) { foreach($scripts as $script) { $writer->write(TJavaScript::renderScriptFile($script)); $this->markScriptFileAsRendered($script); } } protected function getRenderedScriptFiles() { return $this->_renderedScriptFiles; } /** * @param THtmlWriter writer for the rendering purpose */ public function renderAllPendingScriptFiles($writer) { if(!empty($this->_scriptFiles)) { $addedScripts = array_diff($this->_scriptFiles,$this->getRenderedScriptFiles()); $this->renderScriptFiles($writer,$addedScripts); } } /** * @param THtmlWriter writer for the rendering purpose */ public function renderBeginScripts($writer) { $writer->write(TJavaScript::renderScriptBlocks($this->_beginScripts)); } /** * @param THtmlWriter writer for the rendering purpose */ public function renderEndScripts($writer) { $writer->write(TJavaScript::renderScriptBlocks($this->_endScripts)); } public function renderHiddenFieldsBegin($writer) { $this->renderHiddenFieldsInt($writer,true); } public function renderHiddenFieldsEnd($writer) { $this->renderHiddenFieldsInt($writer,false); } /** * Flushes all pending script registrations * @param THtmlWriter writer for the rendering purpose * @param TControl the control forcing the flush (used only in error messages) */ public function flushScriptFiles($writer, $control=null) { if(!$this->_page->getIsCallback()) { $this->_page->ensureRenderInForm($control); $this->renderAllPendingScriptFiles($writer); } } /** * @param THtmlWriter writer for the rendering purpose */ protected function renderHiddenFieldsInt($writer, $initial) { if ($initial) $this->_renderedHiddenFields = array(); $str=''; foreach($this->_hiddenFields as $name=>$value) { if (in_array($name,$this->_renderedHiddenFields)) continue; $id=strtr($name,':','_'); if(is_array($value)) { foreach($value as $v) $str.='<input type="hidden" name="'.$name.'[]" id="'.$id.'" value="'.THttpUtility::htmlEncode($value)."\" />\n"; } else { $str.='<input type="hidden" name="'.$name.'" id="'.$id.'" value="'.THttpUtility::htmlEncode($value)."\" />\n"; } $this->_renderedHiddenFields[] = $name; } if($str!=='') $writer->write("<div style=\"visibility:hidden;\">\n".$str."</div>\n"); } public function getHiddenFields() { return $this->_hiddenFields; } /** * Checks whether page rendering has not begun yet */ protected function checkIfNotInRender() { if ($form = $this->_page->InFormRender) throw new Exception('Operation invalid when page is already rendering'); } } /** * TClientSideOptions abstract class. * * TClientSideOptions manages client-side options for components that have * common client-side javascript behaviours and client-side events such as * between ActiveControls and validators. * * @author <weizhuo[at]gmail[dot]com> * @package System.Web.UI * @since 3.0 */ abstract class TClientSideOptions extends TComponent { /** * @var TMap list of client-side options. */ private $_options; /** * Adds on client-side event handler by wrapping the code within a * javascript function block. If the code begins with "javascript:", the * code is assumed to be a javascript function block rather than arbiturary * javascript statements. * @param string option name * @param string javascript statements. */ protected function setFunction($name, $code) { if(!TJavaScript::isJsLiteral($code)) $code = TJavaScript::quoteJsLiteral($this->ensureFunction($code)); $this->setOption($name, $code); } /** * @return string gets a particular option, null if not set. */ protected function getOption($name) { if ($this->_options) return $this->_options->itemAt($name); else return null; } /** * @param string option name * @param mixed option value. */ protected function setOption($name, $value) { $this->getOptions()->add($name, $value); } /** * @return TMap gets the list of options as TMap */ public function getOptions() { if (!$this->_options) $this->_options = Prado::createComponent('System.Collections.TMap'); return $this->_options; } /** * Ensure that the javascript statements are wrapped in a javascript * function block as <code>function(sender, parameter){ //code }</code>. */ protected function ensureFunction($javascript) { return "function(sender, parameter){ {$javascript} }"; } }
mit
gkalpak/angular
packages/compiler-cli/test/version_helpers_spec.ts
2324
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {compareNumbers, compareVersions, isVersionBetween, toNumbers} from '../src/version_helpers'; describe('toNumbers', () => { it('should handle strings', () => { expect(toNumbers('2')).toEqual([2]); expect(toNumbers('2.1')).toEqual([2, 1]); expect(toNumbers('2.0.1')).toEqual([2, 0, 1]); }); }); describe('compareNumbers', () => { it('should handle empty arrays', () => { expect(compareNumbers([], [])).toEqual(0); }); it('should handle arrays of same length', () => { expect(compareNumbers([1], [3])).toEqual(-1); expect(compareNumbers([3], [1])).toEqual(1); expect(compareNumbers([1, 0], [1, 0])).toEqual(0); expect(compareNumbers([1, 1], [1, 0])).toEqual(1); expect(compareNumbers([1, 0], [1, 1])).toEqual(-1); expect(compareNumbers([1, 0, 9], [1, 1, 0])).toEqual(-1); expect(compareNumbers([1, 1, 0], [1, 0, 9])).toEqual(1); }); it('should handle arrays of different length', () => { expect(compareNumbers([2], [2, 1])).toEqual(-1); expect(compareNumbers([2, 1], [2])).toEqual(1); expect(compareNumbers([0, 9], [1])).toEqual(-1); expect(compareNumbers([1], [0, 9])).toEqual(1); expect(compareNumbers([2], [])).toEqual(1); expect(compareNumbers([], [2])).toEqual(-1); expect(compareNumbers([1, 0], [1, 0, 0, 0])).toEqual(0); }); }); describe('isVersionBetween', () => { it('should correctly check if a typescript version is within a given range', () => { expect(isVersionBetween('2.7.0', '2.40')).toEqual(false); expect(isVersionBetween('2.40', '2.7.0')).toEqual(true); expect(isVersionBetween('2.7.2', '2.7.0', '2.8.0')).toEqual(true); expect(isVersionBetween('2.7.2', '2.7.7', '2.8.0')).toEqual(false); }); }); describe('compareVersions', () => { it('should correctly compare versions', () => { expect(compareVersions('2.7.0', '2.40')).toEqual(-1); expect(compareVersions('2.40', '2.7.0')).toEqual(1); expect(compareVersions('2.40', '2.40')).toEqual(0); expect(compareVersions('2.40', '2.41')).toEqual(-1); expect(compareVersions('2', '2.1')).toEqual(-1); }); });
mit
unaio/una
modules/boonex/ocean/updates/8.0.5_8.0.6/source/data/template/system/scripts/BxTemplMenuHomepage.php
325
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ * * @defgroup TridentCore Trident Core * @{ */ /** * @see BxDolMenu */ class BxTemplMenuHomepage extends BxBaseMenuHomepage { } /** @} */
mit
sufuf3/cdnjs
ajax/libs/highcharts/7.1.2/modules/treegrid.js
22257
/* Highcharts JS v7.1.2 (2019-06-03) Tree Grid (c) 2016-2019 Jon Arild Nygard License: www.highcharts.com/license */ (function(k){"object"===typeof module&&module.exports?(k["default"]=k,module.exports=k):"function"===typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts"],function(A){k(A);k.Highcharts=A;return k}):k("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(k){function A(b,w,k,p){b.hasOwnProperty(w)||(b[w]=p.apply(null,k))}k=k?k._modules:{};A(k,"parts-gantt/GridAxis.js",[k["parts/Globals.js"]],function(b){var w=b.addEvent,k=b.dateFormat,p=b.defined,B=b.isArray,y=b.isNumber, v=function(a){return b.isObject(a,!0)},m=b.merge,q=b.pick,h=b.wrap,f=b.Chart,d=b.Axis,n=b.Tick,l=function(a){var e=a.options,g=e&&v(e.grid)?e.grid:{},c=25/11,t=a.chart.renderer.fontMetrics(e.labels.style.fontSize);e.labels||(e.labels={});e.labels.align=q(e.labels.align,"center");a.categories||(e.showLastLabel=!1);a.horiz&&(e.tickLength=g.cellHeight||t.h*c);a.labelRotation=0;e.labels.rotation=0},c={top:0,right:1,bottom:2,left:3,0:"top",1:"right",2:"bottom",3:"left"};d.prototype.isNavigatorAxis=function(){return/highcharts-navigator-[xy]axis/.test(this.options.className)}; d.prototype.isOuterAxis=function(){var a=this,e=-1,g=!0;a.chart.axes.forEach(function(c,t){c.side!==a.side||c.isNavigatorAxis()||(c===a?e=t:0<=e&&t>e&&(g=!1))});g&&y(a.columnIndex)&&(g=(a.linkedParent&&a.linkedParent.columns||a.columns).length===a.columnIndex);return g};d.prototype.getMaxLabelDimensions=function(a,e){var g={width:0,height:0};e.forEach(function(e){e=a[e];var c;v(e)&&(c=v(e.label)?e.label:{},e=c.getBBox?c.getBBox().height:0,c.textStr&&!y(c.textPxLength)&&(c.textPxLength=c.getBBox().width), c=y(c.textPxLength)?c.textPxLength:0,g.height=Math.max(e,g.height),g.width=Math.max(c,g.width))});return g};b.dateFormats.W=function(a){a=new Date(a);var e;a.setHours(0,0,0,0);a.setDate(a.getDate()-(a.getDay()||7));e=new Date(a.getFullYear(),0,1);return Math.ceil(((a-e)/864E5+1)/7)};b.dateFormats.E=function(a){return k("%a",a,!0).charAt(0)};w(n,"afterGetLabelPosition",function(a){var e=this.label,g=this.axis,d=g.reversed,t=g.chart,f=g.options,b=f&&v(f.grid)?f.grid:{},f=g.options.labels,n=f.align, h=c[g.side],m=a.tickmarkOffset,u=g.tickPositions,r=this.pos-m,u=y(u[a.index+1])?u[a.index+1]-m:g.max+m,x=g.tickSize("tick",!0),m=B(x)?x[0]:0,x=x&&x[1]/2,l;!0===b.enabled&&("top"===h?(b=g.top+g.offset,l=b-m):"bottom"===h?(l=t.chartHeight-g.bottom+g.offset,b=l+m):(b=g.top+g.len-g.translate(d?u:r),l=g.top+g.len-g.translate(d?r:u)),"right"===h?(h=t.chartWidth-g.right+g.offset,d=h+m):"left"===h?(d=g.left+g.offset,h=d-m):(h=Math.round(g.left+g.translate(d?u:r))-x,d=Math.round(g.left+g.translate(d?r:u))- x),this.slotWidth=d-h,a.pos.x="left"===n?h:"right"===n?d:h+(d-h)/2,a.pos.y=l+(b-l)/2,t=t.renderer.fontMetrics(f.style.fontSize,e.element),e=e.getBBox().height,f.useHTML?a.pos.y+=t.b+-(e/2):(e=Math.round(e/t.h),a.pos.y+=(t.b-(t.h-t.f))/2+-((e-1)*t.h/2)),a.pos.x+=g.horiz&&f.x||0)});w(d,"afterTickSize",function(a){var e=this.maxLabelDimensions,g=this.options;!0===(g&&v(g.grid)?g.grid:{}).enabled&&(g=2*Math.abs(this.defaultLeftAxisOptions.labels.x),e=g+(this.horiz?e.height:e.width),B(a.tickSize)?a.tickSize[0]= e:a.tickSize=[e])});w(d,"afterGetTitlePosition",function(a){var e=this.options;if(!0===(e&&v(e.grid)?e.grid:{}).enabled){var g=this.axisTitle,d=g&&g.getBBox().width,f=this.horiz,b=this.left,h=this.top,n=this.width,m=this.height,l=e.title,e=this.opposite,u=this.offset,r=this.tickSize()||[0],x=l.x||0,G=l.y||0,H=q(l.margin,f?5:10),g=this.chart.renderer.fontMetrics(l.style&&l.style.fontSize,g).f,r=(f?h+m:b)+r[0]/2*(e?-1:1)*(f?1:-1)+(this.side===c.bottom?g:0);a.titlePosition.x=f?b-d/2-H+x:r+(e?n:0)+u+ x;a.titlePosition.y=f?r-(e?m:0)+(e?g:-g)/2+u+G:h-H+G}});h(d.prototype,"unsquish",function(a){var e=this.options;return!0===(e&&v(e.grid)?e.grid:{}).enabled&&this.categories?this.tickInterval:a.apply(this,Array.prototype.slice.call(arguments,1))});w(d,"afterSetOptions",function(a){var e=this.options;a=a.userOptions;var g,c=e&&v(e.grid)?e.grid:{};!0===c.enabled&&(g=m(!0,{className:"highcharts-grid-axis "+(a.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b", "%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},a),"xAxis"===this.coll&&(p(a.linkedTo)&&!p(a.tickPixelInterval)&&(g.tickPixelInterval=350),p(a.tickPixelInterval)||!p(a.linkedTo)||p(a.tickPositioner)||p(a.tickInterval)||(g.tickPositioner= function(a,e){var c=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(c){var d,f,h,u,r=g.units;for(u=0;u<r.length;u++)if(r[u][0]===c.unitName){d=u;break}if(r[d][1])return r[d+1]&&(h=r[d+1][0],f=(r[d+1][1]||[1])[0]),c=b.timeUnits[h],this.tickInterval=c*f,this.getTimeTicks({unitRange:c,count:f,unitName:h},a,e,this.options.startOfWeek)}})),m(!0,this.options,g),this.horiz&&(e.minPadding=q(a.minPadding,0),e.maxPadding=q(a.maxPadding,0)),y(e.grid.borderWidth)&& (e.tickWidth=e.lineWidth=c.borderWidth))});w(d,"afterSetAxisTranslation",function(){var a=this.options,e=a&&v(a.grid)?a.grid:{},c=this.tickPositions&&this.tickPositions.info,d=this.userOptions.labels||{};this.horiz&&(!0===e.enabled&&this.series.forEach(function(a){a.options.pointRange=0}),c&&(!1===a.dateTimeLabelFormats[c.unitName].range||1<c.count)&&!p(d.align)&&(a.labels.align="left",p(d.x)||(a.labels.x=3)))});w(d,"trimTicks",function(){var a=this.options,e=a&&v(a.grid)?a.grid:{},c=this.categories, d=this.tickPositions,f=d[0],b=d[d.length-1],h=this.linkedParent&&this.linkedParent.min||this.min,n=this.linkedParent&&this.linkedParent.max||this.max,l=this.tickInterval;!0!==e.enabled||c||!this.horiz&&!this.isLinked||(f<h&&f+l>h&&!a.startOnTick&&(d[0]=h),b>n&&b-l<n&&!a.endOnTick&&(d[d.length-1]=n))});w(d,"afterRender",function(){var a=this.options,e=a&&v(a.grid)?a.grid:{},g,d,f,h,b,n,l=this.chart.renderer,m=this.horiz;if(!0===e.enabled){e=2*Math.abs(this.defaultLeftAxisOptions.labels.x);this.maxLabelDimensions= this.getMaxLabelDimensions(this.ticks,this.tickPositions);e=this.maxLabelDimensions.width+e;g=a.lineWidth;this.rightWall&&this.rightWall.destroy();d=this.axisGroup.getBBox();if(this.isOuterAxis()&&this.axisLine&&(m&&(e=d.height-1),g)){d=this.getLinePath(g);b=d.indexOf("M")+1;n=d.indexOf("L")+1;f=d.indexOf("M")+2;h=d.indexOf("L")+2;if(this.side===c.top||this.side===c.left)e=-e;m?(d[f]+=e,d[h]+=e):(d[b]+=e,d[n]+=e);this.axisLineExtra?this.axisLineExtra.animate({d:d}):this.axisLineExtra=l.path(d).attr({stroke:a.lineColor, "stroke-width":g,zIndex:7}).addClass("highcharts-axis-line").add(this.axisGroup);this.axisLine[this.showAxis?"show":"hide"](!0)}(this.columns||[]).forEach(function(a){a.render()})}});var C={afterGetOffset:function(){(this.columns||[]).forEach(function(a){a.getOffset()})},afterInit:function(){var a=this.chart,e=this.userOptions,c=this.options,c=c&&v(c.grid)?c.grid:{};c.enabled&&(l(this),h(this,"labelFormatter",function(a){var c=this.axis,e=c.tickPositions,d=this.value,g=(c.isLinked?c.linkedParent: c).series[0],r=d===e[0],e=d===e[e.length-1],g=g&&b.find(g.options.data,function(a){return a[c.isXAxis?"x":"y"]===d});this.isFirst=r;this.isLast=e;this.point=g;return a.call(this)}));if(c.columns)for(var f=this.columns=[],n=this.columnIndex=0;++n<c.columns.length;){var q=m(e,c.columns[c.columns.length-n-1],{linkedTo:0,type:"category"});delete q.grid.columns;q=new d(this.chart,q,!0);q.isColumn=!0;q.columnIndex=n;b.erase(a.axes,q);b.erase(a[this.coll],q);f.push(q)}},afterSetOptions:function(a){a=(a= a.userOptions)&&v(a.grid)?a.grid:{};var c=a.columns;a.enabled&&c&&m(!0,this.options,c[c.length-1])},afterSetScale:function(){(this.columns||[]).forEach(function(a){a.setScale()})},destroy:function(a){(this.columns||[]).forEach(function(c){c.destroy(a.keepEvents)})},init:function(a){var c=(a=a.userOptions)&&v(a.grid)?a.grid:{};c.enabled&&p(c.borderColor)&&(a.tickColor=a.lineColor=c.borderColor)}};Object.keys(C).forEach(function(a){w(d,a,C[a])});w(f,"afterSetChartSize",function(){this.axes.forEach(function(a){(a.columns|| []).forEach(function(a){a.setAxisSize();a.setAxisTranslation()})})})});A(k,"parts-gantt/Tree.js",[k["parts/Globals.js"]],function(b){var w=b.extend,k=b.isNumber,p=b.pick,B=function(b,m){var q=b.reduce(function(b,f){var d=p(f.parent,"");void 0===b[d]&&(b[d]=[]);b[d].push(f);return b},{});Object.keys(q).forEach(function(b,f){var d=q[b];""!==b&&-1===m.indexOf(b)&&(d.forEach(function(d){f[""].push(d)}),delete f[b])});return q},y=function(b,m,q,h,f,d){var n=0,l=0,c=d&&d.after,C=d&&d.before;m={data:h,depth:q- 1,id:b,level:q,parent:m};var a,e;"function"===typeof C&&C(m,d);C=(f[b]||[]).map(function(c){var g=y(c.id,b,q+1,c,f,d),h=c.start;c=!0===c.milestone?h:c.end;a=!k(a)||h<a?h:a;e=!k(e)||c>e?c:e;n=n+1+g.descendants;l=Math.max(g.height+1,l);return g});h&&(h.start=p(h.start,a),h.end=p(h.end,e));w(m,{children:C,descendants:n,height:l});"function"===typeof c&&c(m,d);return m};return{getListOfParents:B,getNode:y,getTree:function(b,m){var q=b.map(function(b){return b.id});b=B(b,q);return y("",null,1,null,b,m)}}}); A(k,"mixins/tree-series.js",[k["parts/Globals.js"]],function(b){var k=b.extend,z=b.isArray,p=b.isObject,B=b.isNumber,y=b.merge,v=b.pick;return{getColor:function(m,q){var h=q.index,f=q.mapOptionsToLevel,d=q.parentColor,n=q.parentColorIndex,l=q.series,c=q.colors,k=q.siblings,a=l.points,e=l.chart.options.chart,g,p,t,w;if(m){a=a[m.i];m=f[m.level]||{};if(f=a&&m.colorByPoint)p=a.index%(c?c.length:e.colorCount),g=c&&c[p];if(!l.chart.styledMode){c=a&&a.options.color;e=m&&m.color;if(t=d)t=(t=m&&m.colorVariation)&& "brightness"===t.key?b.color(d).brighten(h/k*t.to).get():d;t=v(c,e,g,t,l.color)}w=v(a&&a.options.colorIndex,m&&m.colorIndex,p,n,q.colorIndex)}return{color:t,colorIndex:w}},getLevelOptions:function(b){var m=null,h,f,d,n;if(p(b))for(m={},d=B(b.from)?b.from:1,n=b.levels,f={},h=p(b.defaults)?b.defaults:{},z(n)&&(f=n.reduce(function(b,c){var f,a;p(c)&&B(c.level)&&(a=y({},c),f="boolean"===typeof a.levelIsConstant?a.levelIsConstant:h.levelIsConstant,delete a.levelIsConstant,delete a.level,c=c.level+(f?0: d-1),p(b[c])?k(b[c],a):b[c]=a);return b},{})),n=B(b.to)?b.to:1,b=0;b<=n;b++)m[b]=y({},h,p(f[b])?f[b]:{});return m},setTreeValues:function q(b,f){var d=f.before,n=f.idRoot,l=f.mapIdToNode[n],c=f.points[b.i],h=c&&c.options||{},a=0,e=[];k(b,{levelDynamic:b.level-(("boolean"===typeof f.levelIsConstant?f.levelIsConstant:1)?0:l.level),name:v(c&&c.name,""),visible:n===b.id||("boolean"===typeof f.visible?f.visible:!1)});"function"===typeof d&&(b=d(b,f));b.children.forEach(function(c,d){var g=k({},f);k(g, {index:d,siblings:b.children.length,visible:b.visible});c=q(c,g);e.push(c);c.visible&&(a+=c.val)});b.visible=0<a||b.visible;d=v(h.value,a);k(b,{children:e,childrenTotal:a,isLeaf:b.visible&&!a,val:d});return b},updateRootId:function(b){var h;p(b)&&(h=p(b.options)?b.options:{},h=v(b.rootNode,h.rootId,""),p(b.userOptions)&&(b.userOptions.rootId=h),b.rootNode=h);return h}}});A(k,"modules/broken-axis.src.js",[k["parts/Globals.js"]],function(b){var k=b.addEvent,z=b.pick,p=b.extend,B=b.isArray,y=b.find, v=b.fireEvent,m=b.Axis,q=b.Series,h=function(b,d){return y(d,function(d){return d.from<b&&b<d.to})};p(m.prototype,{isInBreak:function(b,d){var f=b.repeat||Infinity,l=b.from,c=b.to-b.from;d=d>=l?(d-l)%f:f-(l-d)%f;return b.inclusive?d<=c:d<c&&0!==d},isInAnyBreak:function(b,d){var f=this.options.breaks,l=f&&f.length,c,h,a;if(l){for(;l--;)this.isInBreak(f[l],b)&&(c=!0,h||(h=z(f[l].showPoints,!this.isXAxis)));a=c&&d?c&&!h:c}return a}});k(m,"afterInit",function(){"function"===typeof this.setBreaks&&this.setBreaks(this.options.breaks, !1)});k(m,"afterSetTickPositions",function(){if(this.isBroken){var b=this.tickPositions,d=this.tickPositions.info,h=[],l;for(l=0;l<b.length;l++)this.isInAnyBreak(b[l])||h.push(b[l]);this.tickPositions=h;this.tickPositions.info=d}});k(m,"afterSetOptions",function(){this.isBroken&&(this.options.ordinal=!1)});m.prototype.setBreaks=function(b,d){function f(a){var b=a,d,f;for(f=0;f<c.breakArray.length;f++)if(d=c.breakArray[f],d.to<=a)b-=d.len;else if(d.from>=a)break;else if(c.isInBreak(d,a)){b-=a-d.from; break}return b}function l(a){var b,d;for(d=0;d<c.breakArray.length&&!(b=c.breakArray[d],b.from>=a);d++)b.to<a?a+=b.len:c.isInBreak(b,a)&&(a+=b.len);return a}var c=this,k=B(b)&&!!b.length;c.isDirty=c.isBroken!==k;c.isBroken=k;c.options.breaks=c.userOptions.breaks=b;c.forceRedraw=!0;k||c.val2lin!==f||(delete c.val2lin,delete c.lin2val);k&&(c.userOptions.ordinal=!1,c.val2lin=f,c.lin2val=l,c.setExtremes=function(a,b,c,d,f){if(this.isBroken){for(var e,g=this.options.breaks;e=h(a,g);)a=e.to;for(;e=h(b, g);)b=e.from;b<a&&(b=a)}m.prototype.setExtremes.call(this,a,b,c,d,f)},c.setAxisTranslation=function(a){m.prototype.setAxisTranslation.call(this,a);this.unitLength=null;if(this.isBroken){a=c.options.breaks;var b=[],d=[],f=0,h,l,n=c.userMin||c.min,k=c.userMax||c.max,q=z(c.pointRangePadding,0),p,u;a.forEach(function(a){l=a.repeat||Infinity;c.isInBreak(a,n)&&(n+=a.to%l-n%l);c.isInBreak(a,k)&&(k-=k%l-a.from%l)});a.forEach(function(a){p=a.from;for(l=a.repeat||Infinity;p-l>n;)p-=l;for(;p<n;)p+=l;for(u=p;u< k;u+=l)b.push({value:u,move:"in"}),b.push({value:u+(a.to-a.from),move:"out",size:a.breakSize})});b.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});h=0;p=n;b.forEach(function(a){h+="in"===a.move?1:-1;1===h&&"in"===a.move&&(p=a.value);0===h&&(d.push({from:p,to:a.value,len:a.value-p-(a.size||0)}),f+=a.value-p-(a.size||0))});c.breakArray=d;c.unitLength=k-n-f+q;v(c,"afterBreaks");c.staticScale?c.transA=c.staticScale:c.unitLength&&(c.transA*=(k-c.min+ q)/c.unitLength);q&&(c.minPixelPadding=c.transA*c.minPointOffset);c.min=n;c.max=k}});z(d,!0)&&this.chart.redraw()};k(q,"afterGeneratePoints",function(){var b=this.xAxis,d=this.yAxis,h=this.points,l,c=h.length,k=this.options.connectNulls,a;if(b&&d&&(b.options.breaks||d.options.breaks))for(;c--;)l=h[c],a=null===l.y&&!1===k,a||!b.isInAnyBreak(l.x,!0)&&!d.isInAnyBreak(l.y,!0)||(h.splice(c,1),this.data[c]&&this.data[c].destroyElements())});k(q,"afterRender",function(){this.drawBreaks(this.xAxis,["x"]); this.drawBreaks(this.yAxis,z(this.pointArrayMap,["y"]))});b.Series.prototype.drawBreaks=function(b,d){var f=this,h=f.points,c,k,a,e;b&&d.forEach(function(d){c=b.breakArray||[];k=b.isXAxis?b.min:z(f.options.threshold,b.min);h.forEach(function(f){e=z(f["stack"+d.toUpperCase()],f[d]);c.forEach(function(c){a=!1;if(k<c.from&&e>c.to||k>c.from&&e<c.from)a="pointBreak";else if(k<c.from&&e>c.from&&e<c.to||k>c.from&&e>c.to&&e<c.from)a="pointInBreak";a&&v(b,a,{point:f,brk:c})})})})};b.Series.prototype.gappedPath= function(){var f=this.currentDataGrouping,d=f&&f.gapSize,f=this.options.gapSize,h=this.points.slice(),l=h.length-1,c=this.yAxis;if(f&&0<l)for("value"!==this.options.gapUnit&&(f*=this.closestPointRange),d&&d>f&&(f=d);l--;)h[l+1].x-h[l].x>f&&(d=(h[l].x+h[l+1].x)/2,h.splice(l+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=c.stacks[this.stackKey][d]=new b.StackItem(c,c.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(h)}});A(k,"parts-gantt/TreeGrid.js",[k["parts/Globals.js"], k["parts-gantt/Tree.js"],k["mixins/tree-series.js"]],function(b,k,z){var p=b.addEvent,w=function(a){return Array.prototype.slice.call(a,1)},y=b.defined,v=b.extend,m=b.find,q=b.fireEvent,h=z.getLevelOptions,f=b.merge,d=b.isNumber,n=function(a){return b.isObject(a,!0)},l=b.isString,c=b.pick,A=b.wrap;z=b.Axis;var a=b.Tick,e=function(a,b){var c,d;for(c in b)b.hasOwnProperty(c)&&(d=b[c],A(a,c,d))},g=function(a,b){var c=a.collapseStart;a=a.collapseEnd;a>=b&&(c-=.5);return{from:c,to:a,showPoints:!1}},I= function(a){return Object.keys(a.mapOfPosToGridNode).reduce(function(b,c){c=+c;a.min<=c&&a.max>=c&&!a.isInAnyBreak(c)&&b.push(c);return b},[])},t=function(a,b){var c=a.options.breaks||[],d=g(b,a.max);return c.some(function(a){return a.from===d.from&&a.to===d.to})},D=function(a,b){var c=a.options.breaks||[];a=g(b,a.max);c.push(a);return c},E=function(a,b){var c=a.options.breaks||[],d=g(b,a.max);return c.reduce(function(a,b){b.to===d.to&&b.from===d.from||a.push(b);return a},[])},J=function(a,d){var e= a.labelIcon,f=!e,h=d.renderer,g=d.xy,r=d.options,l=r.width,k=r.height,m=g.x-l/2-r.padding,g=g.y-k/2,n=d.collapsed?90:180,u=d.show&&b.isNumber(g);f&&(a.labelIcon=e=h.path(h.symbols[r.type](r.x,r.y,l,k)).addClass("highcharts-label-icon").add(d.group));u||e.attr({y:-9999});h.styledMode||e.attr({"stroke-width":1,fill:c(d.color,"#666666")}).css({cursor:"pointer",stroke:r.lineColor,strokeWidth:r.lineWidth});e[f?"attr":"animate"]({translateX:m,translateY:g,rotation:n})},K=function(a,b,c){var d=[],e=[],f= {},g={},h=-1,r="boolean"===typeof b?b:!1;a=k.getTree(a,{after:function(a){a=g[a.pos];var b=0,c=0;a.children.forEach(function(a){c+=a.descendants+1;b=Math.max(a.height+1,b)});a.descendants=c;a.height=b;a.collapsed&&e.push(a)},before:function(a){var b=n(a.data)?a.data:{},c=l(b.name)?b.name:"",e=f[a.parent],e=n(e)?g[e.pos]:null,k=function(a){return a.name===c},x;r&&n(e)&&(x=m(e.children,k))?(k=x.pos,x.nodes.push(a)):k=h++;g[k]||(g[k]=x={depth:e?e.depth+1:0,name:c,nodes:[a],children:[],pos:k},-1!==k&& d.push(c),n(e)&&e.children.push(x));l(a.id)&&(f[a.id]=a);!0===b.collapsed&&(x.collapsed=!0);a.pos=k}});g=function(a,b){var c=function(a,d,e){var f=d+(-1===d?0:b-1),g=(f-d)/2,h=d+g;a.nodes.forEach(function(a){var b=a.data;n(b)&&(b.y=d+b.seriesIndex,delete b.seriesIndex);a.pos=h});e[h]=a;a.pos=h;a.tickmarkOffset=g+.5;a.collapseStart=f+.5;a.children.forEach(function(a){c(a,f+1,e);f=a.collapseEnd-.5});a.collapseEnd=f+.5;return e};return c(a["-1"],-1,{})}(g,c);return{categories:d,mapOfIdToNode:f,mapOfPosToGridNode:g, collapsedNodes:e,tree:a}},F=function(a){a.target.axes.filter(function(a){return"treegrid"===a.options.type}).forEach(function(c){var d=c.options||{},e=d.labels,g,k=d.uniqueNames,l=0,r;c.series.some(function(a){return!a.hasRendered||a.isDirtyData||a.isDirty})&&(d=c.series.reduce(function(a,b){b.visible&&(b.options.data.forEach(function(b){n(b)&&(b.seriesIndex=l,a.push(b))}),!0===k&&l++);return a},[]),r=K(d,k,!0===k?l:1),c.categories=r.categories,c.mapOfPosToGridNode=r.mapOfPosToGridNode,c.hasNames= !0,c.tree=r.tree,c.series.forEach(function(a){var b=a.options.data.map(function(a){return n(a)?f(a):a});a.visible&&a.setData(b,!1)}),c.mapOptionsToLevel=h({defaults:e,from:1,levels:e.levels,to:c.tree.height}),"beforeRender"===a.type&&(g=b.addEvent(c,"foundExtremes",function(){r.collapsedNodes.forEach(function(a){a=D(c,a);c.setBreaks(a,!1)});g()})))})};e(z.prototype,{init:function(a,b,c){var d="treegrid"===c.type;d&&(p(b,"beforeRender",F),p(b,"beforeRedraw",F),c=f({grid:{enabled:!0},labels:{align:"left", levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:!1},c,{reversed:!0,grid:{columns:void 0}}));a.apply(this,[b,c]);d&&(this.hasNames=!0,this.options.showLastLabel=!0)},getMaxLabelDimensions:function(a){var b=this.options,c=b&&b.labels,b=c&&d(c.indentation)?b.labels.indentation:0,c=a.apply(this,w(arguments)),e;"treegrid"===this.options.type&&this.mapOfPosToGridNode&&(e=this.mapOfPosToGridNode[-1].height,c.width+= b*(e-1));return c},generateTick:function(b,c){var d=n(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},e=this.ticks,f=e[c],g,h;"treegrid"===this.options.type?(h=this.mapOfPosToGridNode[c],(d=d[h.depth])&&(g={labels:d}),f?(f.parameters.category=h.name,f.options=g,f.addLabel()):e[c]=new a(this,c,null,void 0,{category:h.name,tickmarkOffset:h.tickmarkOffset,options:g})):b.apply(this,w(arguments))},setTickInterval:function(a){var b=this.options;"treegrid"===b.type?(this.min=c(this.userMin,b.min,this.dataMin), this.max=c(this.userMax,b.max,this.dataMax),q(this,"foundExtremes"),this.setAxisTranslation(!0),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.mapOfPosToGridNode?I(this):[]):a.apply(this,w(arguments))}});e(a.prototype,{getLabelPosition:function(a,b,e,f,g,h,k,l,m){var r=c(this.options&&this.options.labels,h);h=this.pos;var p=this.axis,q="treegrid"===p.options.type;a=a.apply(this,[b,e,f,g,r,k,l,m]);q&&(b=r&&n(r.symbol)?r.symbol:{},r=r&&d(r.indentation)?r.indentation:0,h=(h=(p=p.mapOfPosToGridNode)&& p[h])&&h.depth||1,a.x+=b.width+2*b.padding+(h-1)*r);return a},renderLabel:function(a){var d=this,e=d.pos,f=d.axis,g=d.label,h=f.mapOfPosToGridNode,k=f.options,l=c(d.options&&d.options.labels,k&&k.labels),m=l&&n(l.symbol)?l.symbol:{},p=(h=h&&h[e])&&h.depth,k="treegrid"===k.type,q=!(!g||!g.element),u=-1<f.tickPositions.indexOf(e),e=f.chart.styledMode;k&&h&&q&&g.addClass("highcharts-treegrid-node-level-"+p);a.apply(d,w(arguments));k&&h&&q&&0<h.descendants&&(f=t(f,h),J(d,{color:!e&&g.styles.color,collapsed:f, group:g.parentGroup,options:m,renderer:g.renderer,show:u,xy:g.xy}),m="highcharts-treegrid-node-"+(f?"expanded":"collapsed"),g.addClass("highcharts-treegrid-node-"+(f?"collapsed":"expanded")).removeClass(m),e||g.css({cursor:"pointer"}),[g,d.labelIcon].forEach(function(a){a.attachedTreeGridEvents||(b.addEvent(a.element,"mouseover",function(){var a=g;a.addClass("highcharts-treegrid-node-active");a.renderer.styledMode||a.css({textDecoration:"underline"})}),b.addEvent(a.element,"mouseout",function(){var a= g,b=l,b=y(b.style)?b.style:{};a.removeClass("highcharts-treegrid-node-active");a.renderer.styledMode||a.css({textDecoration:b.textDecoration})}),b.addEvent(a.element,"click",function(){d.toggleCollapse()}),a.attachedTreeGridEvents=!0)}))}});v(a.prototype,{collapse:function(a){var b=this.axis,d=D(b,b.mapOfPosToGridNode[this.pos]);b.setBreaks(d,c(a,!0))},expand:function(a){var b=this.axis,d=E(b,b.mapOfPosToGridNode[this.pos]);b.setBreaks(d,c(a,!0))},toggleCollapse:function(a){var b=this.axis,d;d=b.mapOfPosToGridNode[this.pos]; d=t(b,d)?E(b,d):D(b,d);b.setBreaks(d,c(a,!0))}});z.prototype.utils={getNode:k.getNode}});A(k,"masters/modules/treegrid.src.js",[],function(){})}); //# sourceMappingURL=treegrid.js.map
mit
brentstineman/nether
src/Nether.Web/Features/Identity/Models/User/UserLoginModel.cs
550
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Newtonsoft.Json; namespace Nether.Web.Features.Identity.Models.User { public class UserLoginModel { public string ProviderType { get; set; } public string ProviderId { get; set; } // Don't include ProviderData as that may be sensitive (e.g. password hash!) [JsonProperty(PropertyName = "_link")] public string _Link { get; set; } } }
mit
Fayho/scalaxb
cli/src/main/scala/scalaxb/compiler/xsd/Lookup.scala
11389
/* * Copyright (c) 2010 e.e d3si9n * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package scalaxb.compiler.xsd import scalashim._ import scalaxb.compiler.{Log, ReferenceNotFound} import scala.collection.mutable trait Lookup extends ContextProcessor { private val logger = Log.forName("xsd.Lookup") def schema: SchemaDecl def context: XsdContext val schemas = context.schemas.toList val compositorWrapper = mutable.ListMap.empty[ComplexTypeDecl, HasParticle] val INTERNAL_NAMESPACE = "http://scalaxb.org/internal" def elements(qname: (Option[String], String)): ElemDecl = elements(qname._1, qname._2) def elements(namespace: Option[String], name: String) = (for (schema <- schemas; if schema.targetNamespace == namespace; if schema.topElems.contains(name)) yield schema.topElems(name)) match { case x :: xs => x case Nil => (namespace, name) match { case (Some(XS_URL), "schema") => ElemDecl(namespace, name, XsAnyType, None, None, 1, 1) case _ => throw new ReferenceNotFound("element" , namespace, name) } } // http://www.w3.org/TR/xmlschema-0/#Globals // In other words, global declarations cannot contain the attributes // minOccurs, maxOccurs, or use. def buildElement(ref: ElemRef) = Some(elements(ref.namespace, ref.name)) map { that => that.copy(minOccurs = ref.minOccurs, maxOccurs = ref.maxOccurs, nillable = ref.nillable match { case None => that.nillable case _ => ref.nillable }, global = true) } get def buildSymbolElement(symbol: XsTypeSymbol): ElemDecl = ElemDecl(schema.targetNamespace, "value", symbol, None, None, 1, 1) def groups(namespace: Option[String], name: String) = (for (schema <- schemas; if schema.targetNamespace == namespace; if schema.topGroups.contains(name)) yield schema.topGroups(name)) match { case x :: xs => x case Nil => throw new ReferenceNotFound("group" , namespace, name) } def buildGroup(ref: GroupRef) = { val that = groups(ref.namespace, ref.name) // http://www.w3.org/TR/xmlschema-0/#Globals // In other words, global declarations cannot contain the attributes // minOccurs, maxOccurs, or use. GroupDecl(that.namespace, that.name, that.particles, ref.minOccurs, ref.maxOccurs, that.annotation) } lazy val xmlAttrs = Map[String, AttributeDecl]( ("lang" -> AttributeDecl(Some(XML_URI), "lang", XsString)), ("space" -> AttributeDecl(Some(XML_URI), "space", XsString)), ("base" -> AttributeDecl(Some(XML_URI), "base", XsAnyURI)), ("id" -> AttributeDecl(Some(XML_URI), "id", XsID)) ) def attrs(namespace: Option[String], name: String) = if (namespace == Some(XML_URI)) xmlAttrs(name) else (for (schema <- schemas; if schema.targetNamespace == namespace; if schema.topAttrs.contains(name)) yield schema.topAttrs(name)) match { case x :: xs => x case Nil => throw new ReferenceNotFound("attribute" , namespace, name) } // http://www.w3.org/TR/xmlschema-0/#Globals // In other words, global declarations cannot contain the attributes // minOccurs, maxOccurs, or use. def buildAttribute(ref: AttributeRef) = Some(attrs(ref.namespace, ref.name)) map { that => that.copy(defaultValue = ref.defaultValue, fixedValue = ref.fixedValue, use = ref.use) } get def attributeGroups(namespace: Option[String], name: String) = (for (schema <- schemas; if schema.targetNamespace == namespace; if schema.topAttrGroups.contains(name)) yield schema.topAttrGroups(name)) match { case x :: xs => x case Nil => throw new ReferenceNotFound("attribute group" , namespace, name) } def buildAttributeGroup(ref: AttributeGroupRef) = attributeGroups(ref.namespace, ref.name) def buildTypeName(typeSymbol: XsTypeSymbol, shortLocal: Boolean = false): String = typeSymbol match { case AnyType(symbol) => "scalaxb.DataRecord[Any]" case XsNillableAny => "scalaxb.DataRecord[Option[Any]]" case XsLongAll => "Map[String, scalaxb.DataRecord[Any]]" case XsLongAttribute => "Map[String, scalaxb.DataRecord[Any]]" case XsAnyAttribute => "Map[String, scalaxb.DataRecord[Any]]" case XsDataRecord(ReferenceTypeSymbol(decl: ComplexTypeDecl)) if compositorWrapper.contains(decl) => compositorWrapper(decl) match { case choice: ChoiceDecl => buildChoiceTypeName(decl, choice, shortLocal) case _ => "scalaxb.DataRecord[Any]" } case r: XsDataRecord => "scalaxb.DataRecord[Any]" case XsMixed => "scalaxb.DataRecord[Any]" case symbol: BuiltInSimpleTypeSymbol => symbol.name case ReferenceTypeSymbol(decl: SimpleTypeDecl) => buildTypeName(decl, shortLocal) case ReferenceTypeSymbol(decl: ComplexTypeDecl) => buildTypeName(decl, shortLocal) case symbol: AttributeGroupSymbol => buildTypeName(attributeGroups(symbol.namespace, symbol.name), shortLocal) case XsXMLFormat(decl: ComplexTypeDecl) => "scalaxb.XMLFormat[" + buildTypeName(decl, shortLocal) + "]" case XsXMLFormat(group: AttributeGroupDecl) => "scalaxb.XMLFormat[" + buildTypeName(group, shortLocal) + "]" } def buildChoiceTypeName(decl: ComplexTypeDecl, choice: ChoiceDecl, shortLocal: Boolean): String def xmlFormatTypeName(decl: ComplexTypeDecl): String = "scalaxb.XMLFormat[" + buildTypeName(decl, false) + "]" def buildTypeName(decl: ComplexTypeDecl, shortLocal: Boolean): String = buildTypeName(packageName(decl, context), decl, shortLocal) def buildEnumTypeName(decl: SimpleTypeDecl, shortLocal: Boolean): String = buildTypeName(packageName(decl, context), decl, shortLocal) def buildTypeName(pkg: Option[String], decl: Decl, shortLocal: Boolean): String = { if (!context.typeNames.contains(decl)) sys.error(pkg + ": Type name not found: " + decl.toString) if (shortLocal && pkg == packageName(schema, context)) context.typeNames(decl) else buildFullyQualifiedNameFromPackage(pkg, context.typeNames(decl)) } def buildTypeName(decl: SimpleTypeDecl, shortLocal: Boolean): String = decl.content match { case x@SimpTypRestrictionDecl(_, _) if containsEnumeration(decl) => buildEnumTypeName(decl, shortLocal) case x: SimpTypRestrictionDecl => buildTypeName(baseType(decl), shortLocal) case x: SimpTypListDecl => "Seq[" + buildTypeName(baseType(decl), shortLocal) + "]" case x: SimpTypUnionDecl => buildTypeName(baseType(decl), shortLocal) } def buildTypeName(group: AttributeGroupDecl, shortLocal: Boolean): String = buildTypeName(packageName(group, context), group, shortLocal) def buildTypeName(enumTypeName: String, enum: EnumerationDecl[_], shortLocal: Boolean): String = { val pkg = packageName(schema, context) val typeNames = context.enumValueNames(pkg) if (!typeNames.contains(enumTypeName, enum)) sys.error(pkg + ": Type name not found: " + enum.toString) if (shortLocal && pkg == packageName(schema, context)) typeNames(enumTypeName, enum) else buildFullyQualifiedNameFromPackage(pkg, typeNames(enumTypeName, enum)) } def buildFullyQualifiedNameFromNS(namespace: Option[String], localName: String): String = { val pkg = packageName(namespace, context) buildFullyQualifiedNameFromPackage(pkg, localName) } def buildFullyQualifiedNameFromPackage(pkg: Option[String], localName: String): String = pkg.map(_ + ".").getOrElse("") + localName def buildFormatterName(group: AttributeGroupDecl): String = buildFormatterName(group.namespace, buildTypeName(group, true)) def buildFormatterName(namespace: Option[String], name: String): String = { val pkg = packageName(namespace, context) getOrElse {""} val lastPart = pkg.split('.').reverse.head lastPart.capitalize + name + "Format" } def baseType(decl: SimpleTypeDecl): XsTypeSymbol = decl.content match { case SimpTypRestrictionDecl(base, _) => base case SimpTypListDecl(itemType) => itemType case SimpTypUnionDecl() => XsString case _ => sys.error("GenSource: Unsupported content " + decl.content.toString) } def containsForeignType(compositor: HasParticle): Boolean = { def elemContainsForeignType(elem: ElemDecl): Boolean = elem.typeSymbol match { case ReferenceTypeSymbol(decl: ComplexTypeDecl) => packageName(decl.namespace, context) != packageName(compositor.namespace, context) case ReferenceTypeSymbol(decl: SimpleTypeDecl) => packageName(decl.namespace, context) != packageName(compositor.namespace, context) case _ => true } compositor.particles.exists(_ match { case elem: ElemDecl => elemContainsForeignType(elem) case ref: ElemRef => elemContainsForeignType(buildElement(ref)) case ref: GroupRef => ref.namespace != schema.targetNamespace case _ => false } ) } def isSubstitutionGroup(elem: ElemDecl) = elem.global && (elem.namespace map { x => context.substituteGroups.contains((elem.namespace, elem.name)) } getOrElse { false }) def substitutionGroupMembers(elem: ElemDecl): Seq[ElemDecl] = schemas flatMap { _.topElems.valuesIterator.toSeq collect { case e: ElemDecl if e.name == elem.name && e.namespace == elem.namespace => e case e: ElemDecl if e.substitutionGroup == Some(elem.namespace, elem.name) => e } filter { e: ElemDecl => e.typeSymbol match { case ReferenceTypeSymbol(decl: ComplexTypeDecl) => !decl.abstractValue case _ => true } } } // don't name targetNamespace as "targetNamespace" since this would cause problem with mixing in groups. def quoteNamespace(namespace: Option[String]): String = quote(namespace) def elementNamespace(global: Boolean, namespace: Option[String], qualified: Boolean): Option[String] = if (global || qualified) namespace else None def elementNamespaceString(global: Boolean, namespace: Option[String], qualified: Boolean): String = quoteNamespace(elementNamespace(global, namespace, qualified)) }
mit
ist-dresden/composum
jslibs/src/main/resources/root/libs/jslibs/highlight/9.15.6/languages/gml.js
59885
/* Language: GML Author: Meseta <meseta@gmail.com> Description: Game Maker Language for GameMaker Studio 2 Category: scripting */ function(hljs) { var GML_KEYWORDS = { keywords: 'begin end if then else while do for break continue with until ' + 'repeat exit and or xor not return mod div switch case default var ' + 'globalvar enum #macro #region #endregion', built_in: 'is_real is_string is_array is_undefined is_int32 is_int64 ' + 'is_ptr is_vec3 is_vec4 is_matrix is_bool typeof ' + 'variable_global_exists variable_global_get variable_global_set ' + 'variable_instance_exists variable_instance_get variable_instance_set ' + 'variable_instance_get_names array_length_1d array_length_2d ' + 'array_height_2d array_equals array_create array_copy random ' + 'random_range irandom irandom_range random_set_seed random_get_seed ' + 'randomize randomise choose abs round floor ceil sign frac sqrt sqr ' + 'exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos ' + 'dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn ' + 'min max mean median clamp lerp dot_product dot_product_3d ' + 'dot_product_normalised dot_product_3d_normalised ' + 'dot_product_normalized dot_product_3d_normalized math_set_epsilon ' + 'math_get_epsilon angle_difference point_distance_3d point_distance ' + 'point_direction lengthdir_x lengthdir_y real string int64 ptr ' + 'string_format chr ansi_char ord string_length string_byte_length ' + 'string_pos string_copy string_char_at string_ord_at string_byte_at ' + 'string_set_byte_at string_delete string_insert string_lower ' + 'string_upper string_repeat string_letters string_digits ' + 'string_lettersdigits string_replace string_replace_all string_count ' + 'string_hash_to_newline clipboard_has_text clipboard_set_text ' + 'clipboard_get_text date_current_datetime date_create_datetime ' + 'date_valid_datetime date_inc_year date_inc_month date_inc_week ' + 'date_inc_day date_inc_hour date_inc_minute date_inc_second ' + 'date_get_year date_get_month date_get_week date_get_day ' + 'date_get_hour date_get_minute date_get_second date_get_weekday ' + 'date_get_day_of_year date_get_hour_of_year date_get_minute_of_year ' + 'date_get_second_of_year date_year_span date_month_span ' + 'date_week_span date_day_span date_hour_span date_minute_span ' + 'date_second_span date_compare_datetime date_compare_date ' + 'date_compare_time date_date_of date_time_of date_datetime_string ' + 'date_date_string date_time_string date_days_in_month ' + 'date_days_in_year date_leap_year date_is_today date_set_timezone ' + 'date_get_timezone game_set_speed game_get_speed motion_set ' + 'motion_add place_free place_empty place_meeting place_snapped ' + 'move_random move_snap move_towards_point move_contact_solid ' + 'move_contact_all move_outside_solid move_outside_all ' + 'move_bounce_solid move_bounce_all move_wrap distance_to_point ' + 'distance_to_object position_empty position_meeting path_start ' + 'path_end mp_linear_step mp_potential_step mp_linear_step_object ' + 'mp_potential_step_object mp_potential_settings mp_linear_path ' + 'mp_potential_path mp_linear_path_object mp_potential_path_object ' + 'mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell ' + 'mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell ' + 'mp_grid_add_rectangle mp_grid_add_instances mp_grid_path ' + 'mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle ' + 'collision_circle collision_ellipse collision_line ' + 'collision_point_list collision_rectangle_list collision_circle_list ' + 'collision_ellipse_list collision_line_list instance_position_list ' + 'instance_place_list point_in_rectangle ' + 'point_in_triangle point_in_circle rectangle_in_rectangle ' + 'rectangle_in_triangle rectangle_in_circle instance_find ' + 'instance_exists instance_number instance_position instance_nearest ' + 'instance_furthest instance_place instance_create_depth ' + 'instance_create_layer instance_copy instance_change instance_destroy ' + 'position_destroy position_change instance_id_get ' + 'instance_deactivate_all instance_deactivate_object ' + 'instance_deactivate_region instance_activate_all ' + 'instance_activate_object instance_activate_region room_goto ' + 'room_goto_previous room_goto_next room_previous room_next ' + 'room_restart game_end game_restart game_load game_save ' + 'game_save_buffer game_load_buffer event_perform event_user ' + 'event_perform_object event_inherited show_debug_message ' + 'show_debug_overlay debug_event debug_get_callstack alarm_get ' + 'alarm_set font_texture_page_size keyboard_set_map keyboard_get_map ' + 'keyboard_unset_map keyboard_check keyboard_check_pressed ' + 'keyboard_check_released keyboard_check_direct keyboard_get_numlock ' + 'keyboard_set_numlock keyboard_key_press keyboard_key_release ' + 'keyboard_clear io_clear mouse_check_button ' + 'mouse_check_button_pressed mouse_check_button_released ' + 'mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite ' + 'draw_sprite_pos draw_sprite_ext draw_sprite_stretched ' + 'draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext ' + 'draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear ' + 'draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle ' + 'draw_roundrect draw_roundrect_ext draw_triangle draw_circle ' + 'draw_ellipse draw_set_circle_precision draw_arrow draw_button ' + 'draw_path draw_healthbar draw_getpixel draw_getpixel_ext ' + 'draw_set_colour draw_set_color draw_set_alpha draw_get_colour ' + 'draw_get_color draw_get_alpha merge_colour make_colour_rgb ' + 'make_colour_hsv colour_get_red colour_get_green colour_get_blue ' + 'colour_get_hue colour_get_saturation colour_get_value merge_color ' + 'make_color_rgb make_color_hsv color_get_red color_get_green ' + 'color_get_blue color_get_hue color_get_saturation color_get_value ' + 'merge_color screen_save screen_save_part draw_set_font ' + 'draw_set_halign draw_set_valign draw_text draw_text_ext string_width ' + 'string_height string_width_ext string_height_ext ' + 'draw_text_transformed draw_text_ext_transformed draw_text_colour ' + 'draw_text_ext_colour draw_text_transformed_colour ' + 'draw_text_ext_transformed_colour draw_text_color draw_text_ext_color ' + 'draw_text_transformed_color draw_text_ext_transformed_color ' + 'draw_point_colour draw_line_colour draw_line_width_colour ' + 'draw_rectangle_colour draw_roundrect_colour ' + 'draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour ' + 'draw_ellipse_colour draw_point_color draw_line_color ' + 'draw_line_width_color draw_rectangle_color draw_roundrect_color ' + 'draw_roundrect_color_ext draw_triangle_color draw_circle_color ' + 'draw_ellipse_color draw_primitive_begin draw_vertex ' + 'draw_vertex_colour draw_vertex_color draw_primitive_end ' + 'sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture ' + 'texture_get_width texture_get_height texture_get_uvs ' + 'draw_primitive_begin_texture draw_vertex_texture ' + 'draw_vertex_texture_colour draw_vertex_texture_color ' + 'texture_global_scale surface_create surface_create_ext ' + 'surface_resize surface_free surface_exists surface_get_width ' + 'surface_get_height surface_get_texture surface_set_target ' + 'surface_set_target_ext surface_reset_target surface_depth_disable ' + 'surface_get_depth_disable draw_surface draw_surface_stretched ' + 'draw_surface_tiled draw_surface_part draw_surface_ext ' + 'draw_surface_stretched_ext draw_surface_tiled_ext ' + 'draw_surface_part_ext draw_surface_general surface_getpixel ' + 'surface_getpixel_ext surface_save surface_save_part surface_copy ' + 'surface_copy_part application_surface_draw_enable ' + 'application_get_position application_surface_enable ' + 'application_surface_is_enabled display_get_width display_get_height ' + 'display_get_orientation display_get_gui_width display_get_gui_height ' + 'display_reset display_mouse_get_x display_mouse_get_y ' + 'display_mouse_set display_set_ui_visibility ' + 'window_set_fullscreen window_get_fullscreen ' + 'window_set_caption window_set_min_width window_set_max_width ' + 'window_set_min_height window_set_max_height window_get_visible_rects ' + 'window_get_caption window_set_cursor window_get_cursor ' + 'window_set_colour window_get_colour window_set_color ' + 'window_get_color window_set_position window_set_size ' + 'window_set_rectangle window_center window_get_x window_get_y ' + 'window_get_width window_get_height window_mouse_get_x ' + 'window_mouse_get_y window_mouse_set window_view_mouse_get_x ' + 'window_view_mouse_get_y window_views_mouse_get_x ' + 'window_views_mouse_get_y audio_listener_position ' + 'audio_listener_velocity audio_listener_orientation ' + 'audio_emitter_position audio_emitter_create audio_emitter_free ' + 'audio_emitter_exists audio_emitter_pitch audio_emitter_velocity ' + 'audio_emitter_falloff audio_emitter_gain audio_play_sound ' + 'audio_play_sound_on audio_play_sound_at audio_stop_sound ' + 'audio_resume_music audio_music_is_playing audio_resume_sound ' + 'audio_pause_sound audio_pause_music audio_channel_num ' + 'audio_sound_length audio_get_type audio_falloff_set_model ' + 'audio_play_music audio_stop_music audio_master_gain audio_music_gain ' + 'audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all ' + 'audio_pause_all audio_is_playing audio_is_paused audio_exists ' + 'audio_sound_set_track_position audio_sound_get_track_position ' + 'audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x ' + 'audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx ' + 'audio_emitter_get_vy audio_emitter_get_vz ' + 'audio_listener_set_position audio_listener_set_velocity ' + 'audio_listener_set_orientation audio_listener_get_data ' + 'audio_set_master_gain audio_get_master_gain audio_sound_get_gain ' + 'audio_sound_get_pitch audio_get_name audio_sound_set_track_position ' + 'audio_sound_get_track_position audio_create_stream ' + 'audio_destroy_stream audio_create_sync_group ' + 'audio_destroy_sync_group audio_play_in_sync_group ' + 'audio_start_sync_group audio_stop_sync_group audio_pause_sync_group ' + 'audio_resume_sync_group audio_sync_group_get_track_pos ' + 'audio_sync_group_debug audio_sync_group_is_playing audio_debug ' + 'audio_group_load audio_group_unload audio_group_is_loaded ' + 'audio_group_load_progress audio_group_name audio_group_stop_all ' + 'audio_group_set_gain audio_create_buffer_sound ' + 'audio_free_buffer_sound audio_create_play_queue ' + 'audio_free_play_queue audio_queue_sound audio_get_recorder_count ' + 'audio_get_recorder_info audio_start_recording audio_stop_recording ' + 'audio_sound_get_listener_mask audio_emitter_get_listener_mask ' + 'audio_get_listener_mask audio_sound_set_listener_mask ' + 'audio_emitter_set_listener_mask audio_set_listener_mask ' + 'audio_get_listener_count audio_get_listener_info audio_system ' + 'show_message show_message_async clickable_add clickable_add_ext ' + 'clickable_change clickable_change_ext clickable_delete ' + 'clickable_exists clickable_set_style show_question ' + 'show_question_async get_integer get_string get_integer_async ' + 'get_string_async get_login_async get_open_filename get_save_filename ' + 'get_open_filename_ext get_save_filename_ext show_error ' + 'highscore_clear highscore_add highscore_value highscore_name ' + 'draw_highscore sprite_exists sprite_get_name sprite_get_number ' + 'sprite_get_width sprite_get_height sprite_get_xoffset ' + 'sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right ' + 'sprite_get_bbox_top sprite_get_bbox_bottom sprite_save ' + 'sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext ' + 'sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush ' + 'sprite_flush_multi sprite_set_speed sprite_get_speed_type ' + 'sprite_get_speed font_exists font_get_name font_get_fontname ' + 'font_get_bold font_get_italic font_get_first font_get_last ' + 'font_get_size font_set_cache_size path_exists path_get_name ' + 'path_get_length path_get_time path_get_kind path_get_closed ' + 'path_get_precision path_get_number path_get_point_x path_get_point_y ' + 'path_get_point_speed path_get_x path_get_y path_get_speed ' + 'script_exists script_get_name timeline_add timeline_delete ' + 'timeline_clear timeline_exists timeline_get_name ' + 'timeline_moment_clear timeline_moment_add_script timeline_size ' + 'timeline_max_moment object_exists object_get_name object_get_sprite ' + 'object_get_solid object_get_visible object_get_persistent ' + 'object_get_mask object_get_parent object_get_physics ' + 'object_is_ancestor room_exists room_get_name sprite_set_offset ' + 'sprite_duplicate sprite_assign sprite_merge sprite_add ' + 'sprite_replace sprite_create_from_surface sprite_add_from_surface ' + 'sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask ' + 'font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite ' + 'font_add_sprite_ext font_replace font_replace_sprite ' + 'font_replace_sprite_ext font_delete path_set_kind path_set_closed ' + 'path_set_precision path_add path_assign path_duplicate path_append ' + 'path_delete path_add_point path_insert_point path_change_point ' + 'path_delete_point path_clear_points path_reverse path_mirror ' + 'path_flip path_rotate path_rescale path_shift script_execute ' + 'object_set_sprite object_set_solid object_set_visible ' + 'object_set_persistent object_set_mask room_set_width room_set_height ' + 'room_set_persistent room_set_background_colour ' + 'room_set_background_color room_set_view room_set_viewport ' + 'room_get_viewport room_set_view_enabled room_add room_duplicate ' + 'room_assign room_instance_add room_instance_clear room_get_camera ' + 'room_set_camera asset_get_index asset_get_type ' + 'file_text_open_from_string file_text_open_read file_text_open_write ' + 'file_text_open_append file_text_close file_text_write_string ' + 'file_text_write_real file_text_writeln file_text_read_string ' + 'file_text_read_real file_text_readln file_text_eof file_text_eoln ' + 'file_exists file_delete file_rename file_copy directory_exists ' + 'directory_create directory_destroy file_find_first file_find_next ' + 'file_find_close file_attributes filename_name filename_path ' + 'filename_dir filename_drive filename_ext filename_change_ext ' + 'file_bin_open file_bin_rewrite file_bin_close file_bin_position ' + 'file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte ' + 'parameter_count parameter_string environment_get_variable ' + 'ini_open_from_string ini_open ini_close ini_read_string ' + 'ini_read_real ini_write_string ini_write_real ini_key_exists ' + 'ini_section_exists ini_key_delete ini_section_delete ' + 'ds_set_precision ds_exists ds_stack_create ds_stack_destroy ' + 'ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ' + 'ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ' + 'ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ' + 'ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ' + 'ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ' + 'ds_list_create ds_list_destroy ds_list_clear ds_list_copy ' + 'ds_list_size ds_list_empty ds_list_add ds_list_insert ' + 'ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ' + 'ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ' + 'ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ' + 'ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ' + 'ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ' + 'ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ' + 'ds_map_find_value ds_map_find_previous ds_map_find_next ' + 'ds_map_find_first ds_map_find_last ds_map_write ds_map_read ' + 'ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ' + 'ds_map_secure_save_buffer ds_map_set ds_priority_create ' + 'ds_priority_destroy ds_priority_clear ds_priority_copy ' + 'ds_priority_size ds_priority_empty ds_priority_add ' + 'ds_priority_change_priority ds_priority_find_priority ' + 'ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ' + 'ds_priority_delete_max ds_priority_find_max ds_priority_write ' + 'ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ' + 'ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ' + 'ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ' + 'ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ' + 'ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ' + 'ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ' + 'ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ' + 'ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ' + 'ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ' + 'ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ' + 'ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ' + 'ds_grid_sort ds_grid_set ds_grid_get effect_create_below ' + 'effect_create_above effect_clear part_type_create part_type_destroy ' + 'part_type_exists part_type_clear part_type_shape part_type_sprite ' + 'part_type_size part_type_scale part_type_orientation part_type_life ' + 'part_type_step part_type_death part_type_speed part_type_direction ' + 'part_type_gravity part_type_colour1 part_type_colour2 ' + 'part_type_colour3 part_type_colour_mix part_type_colour_rgb ' + 'part_type_colour_hsv part_type_color1 part_type_color2 ' + 'part_type_color3 part_type_color_mix part_type_color_rgb ' + 'part_type_color_hsv part_type_alpha1 part_type_alpha2 ' + 'part_type_alpha3 part_type_blend part_system_create ' + 'part_system_create_layer part_system_destroy part_system_exists ' + 'part_system_clear part_system_draw_order part_system_depth ' + 'part_system_position part_system_automatic_update ' + 'part_system_automatic_draw part_system_update part_system_drawit ' + 'part_system_get_layer part_system_layer part_particles_create ' + 'part_particles_create_colour part_particles_create_color ' + 'part_particles_clear part_particles_count part_emitter_create ' + 'part_emitter_destroy part_emitter_destroy_all part_emitter_exists ' + 'part_emitter_clear part_emitter_region part_emitter_burst ' + 'part_emitter_stream external_call external_define external_free ' + 'window_handle window_device matrix_get matrix_set ' + 'matrix_build_identity matrix_build matrix_build_lookat ' + 'matrix_build_projection_ortho matrix_build_projection_perspective ' + 'matrix_build_projection_perspective_fov matrix_multiply ' + 'matrix_transform_vertex matrix_stack_push matrix_stack_pop ' + 'matrix_stack_multiply matrix_stack_set matrix_stack_clear ' + 'matrix_stack_top matrix_stack_is_empty browser_input_capture ' + 'os_get_config os_get_info os_get_language os_get_region ' + 'os_lock_orientation display_get_dpi_x display_get_dpi_y ' + 'display_set_gui_size display_set_gui_maximise ' + 'display_set_gui_maximize device_mouse_dbclick_enable ' + 'display_set_timing_method display_get_timing_method ' + 'display_set_sleep_margin display_get_sleep_margin virtual_key_add ' + 'virtual_key_hide virtual_key_delete virtual_key_show ' + 'draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level ' + 'draw_get_swf_aa_level draw_texture_flush draw_flush ' + 'gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc ' + 'gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog ' + 'gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext ' + 'gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable ' + 'gpu_set_colourwriteenable gpu_set_alphatestenable ' + 'gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter ' + 'gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext ' + 'gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat ' + 'gpu_set_tex_repeat_ext gpu_set_tex_mip_filter ' + 'gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias ' + 'gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext ' + 'gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso ' + 'gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable ' + 'gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable ' + 'gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable ' + 'gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext ' + 'gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src ' + 'gpu_get_blendmode_dest gpu_get_blendmode_srcalpha ' + 'gpu_get_blendmode_destalpha gpu_get_colorwriteenable ' + 'gpu_get_colourwriteenable gpu_get_alphatestenable ' + 'gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter ' + 'gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext ' + 'gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat ' + 'gpu_get_tex_repeat_ext gpu_get_tex_mip_filter ' + 'gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias ' + 'gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext ' + 'gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso ' + 'gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable ' + 'gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state ' + 'gpu_get_state gpu_set_state draw_light_define_ambient ' + 'draw_light_define_direction draw_light_define_point ' + 'draw_light_enable draw_set_lighting draw_light_get_ambient ' + 'draw_light_get draw_get_lighting shop_leave_rating url_get_domain ' + 'url_open url_open_ext url_open_full get_timer achievement_login ' + 'achievement_logout achievement_post achievement_increment ' + 'achievement_post_score achievement_available ' + 'achievement_show_achievements achievement_show_leaderboards ' + 'achievement_load_friends achievement_load_leaderboard ' + 'achievement_send_challenge achievement_load_progress ' + 'achievement_reset achievement_login_status achievement_get_pic ' + 'achievement_show_challenge_notifications achievement_get_challenges ' + 'achievement_event achievement_show achievement_get_info ' + 'cloud_file_save cloud_string_save cloud_synchronise ads_enable ' + 'ads_disable ads_setup ads_engagement_launch ads_engagement_available ' + 'ads_engagement_active ads_event ads_event_preload ' + 'ads_set_reward_callback ads_get_display_height ads_get_display_width ' + 'ads_move ads_interstitial_available ads_interstitial_display ' + 'device_get_tilt_x device_get_tilt_y device_get_tilt_z ' + 'device_is_keypad_open device_mouse_check_button ' + 'device_mouse_check_button_pressed device_mouse_check_button_released ' + 'device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y ' + 'device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status ' + 'iap_enumerate_products iap_restore_all iap_acquire iap_consume ' + 'iap_product_details iap_purchase_details facebook_init ' + 'facebook_login facebook_status facebook_graph_request ' + 'facebook_dialog facebook_logout facebook_launch_offerwall ' + 'facebook_post_message facebook_send_invite facebook_user_id ' + 'facebook_accesstoken facebook_check_permission ' + 'facebook_request_read_permissions ' + 'facebook_request_publish_permissions gamepad_is_supported ' + 'gamepad_get_device_count gamepad_is_connected ' + 'gamepad_get_description gamepad_get_button_threshold ' + 'gamepad_set_button_threshold gamepad_get_axis_deadzone ' + 'gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check ' + 'gamepad_button_check_pressed gamepad_button_check_released ' + 'gamepad_button_value gamepad_axis_count gamepad_axis_value ' + 'gamepad_set_vibration gamepad_set_colour gamepad_set_color ' + 'os_is_paused window_has_focus code_is_compiled http_get ' + 'http_get_file http_post_string http_request json_encode json_decode ' + 'zip_unzip load_csv base64_encode base64_decode md5_string_unicode ' + 'md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode ' + 'sha1_string_utf8 sha1_file os_powersave_enable analytics_event ' + 'analytics_event_ext win8_livetile_tile_notification ' + 'win8_livetile_tile_clear win8_livetile_badge_notification ' + 'win8_livetile_badge_clear win8_livetile_queue_enable ' + 'win8_secondarytile_pin win8_secondarytile_badge_notification ' + 'win8_secondarytile_delete win8_livetile_notification_begin ' + 'win8_livetile_notification_secondary_begin ' + 'win8_livetile_notification_expiry win8_livetile_notification_tag ' + 'win8_livetile_notification_text_add ' + 'win8_livetile_notification_image_add win8_livetile_notification_end ' + 'win8_appbar_enable win8_appbar_add_element ' + 'win8_appbar_remove_element win8_settingscharm_add_entry ' + 'win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry ' + 'win8_settingscharm_set_xaml_property ' + 'win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry ' + 'win8_share_image win8_share_screenshot win8_share_file ' + 'win8_share_url win8_share_text win8_search_enable ' + 'win8_search_disable win8_search_add_suggestions ' + 'win8_device_touchscreen_available win8_license_initialize_sandbox ' + 'win8_license_trial_version winphone_license_trial_version ' + 'winphone_tile_title winphone_tile_count winphone_tile_back_title ' + 'winphone_tile_back_content winphone_tile_back_content_wide ' + 'winphone_tile_front_image winphone_tile_front_image_small ' + 'winphone_tile_front_image_wide winphone_tile_back_image ' + 'winphone_tile_back_image_wide winphone_tile_background_colour ' + 'winphone_tile_background_color winphone_tile_icon_image ' + 'winphone_tile_small_icon_image winphone_tile_wide_content ' + 'winphone_tile_cycle_images winphone_tile_small_background_image ' + 'physics_world_create physics_world_gravity ' + 'physics_world_update_speed physics_world_update_iterations ' + 'physics_world_draw_debug physics_pause_enable physics_fixture_create ' + 'physics_fixture_set_kinematic physics_fixture_set_density ' + 'physics_fixture_set_awake physics_fixture_set_restitution ' + 'physics_fixture_set_friction physics_fixture_set_collision_group ' + 'physics_fixture_set_sensor physics_fixture_set_linear_damping ' + 'physics_fixture_set_angular_damping physics_fixture_set_circle_shape ' + 'physics_fixture_set_box_shape physics_fixture_set_edge_shape ' + 'physics_fixture_set_polygon_shape physics_fixture_set_chain_shape ' + 'physics_fixture_add_point physics_fixture_bind ' + 'physics_fixture_bind_ext physics_fixture_delete physics_apply_force ' + 'physics_apply_impulse physics_apply_angular_impulse ' + 'physics_apply_local_force physics_apply_local_impulse ' + 'physics_apply_torque physics_mass_properties physics_draw_debug ' + 'physics_test_overlap physics_remove_fixture physics_set_friction ' + 'physics_set_density physics_set_restitution physics_get_friction ' + 'physics_get_density physics_get_restitution ' + 'physics_joint_distance_create physics_joint_rope_create ' + 'physics_joint_revolute_create physics_joint_prismatic_create ' + 'physics_joint_pulley_create physics_joint_wheel_create ' + 'physics_joint_weld_create physics_joint_friction_create ' + 'physics_joint_gear_create physics_joint_enable_motor ' + 'physics_joint_get_value physics_joint_set_value physics_joint_delete ' + 'physics_particle_create physics_particle_delete ' + 'physics_particle_delete_region_circle ' + 'physics_particle_delete_region_box ' + 'physics_particle_delete_region_poly physics_particle_set_flags ' + 'physics_particle_set_category_flags physics_particle_draw ' + 'physics_particle_draw_ext physics_particle_count ' + 'physics_particle_get_data physics_particle_get_data_particle ' + 'physics_particle_group_begin physics_particle_group_circle ' + 'physics_particle_group_box physics_particle_group_polygon ' + 'physics_particle_group_add_point physics_particle_group_end ' + 'physics_particle_group_join physics_particle_group_delete ' + 'physics_particle_group_count physics_particle_group_get_data ' + 'physics_particle_group_get_mass physics_particle_group_get_inertia ' + 'physics_particle_group_get_centre_x ' + 'physics_particle_group_get_centre_y physics_particle_group_get_vel_x ' + 'physics_particle_group_get_vel_y physics_particle_group_get_ang_vel ' + 'physics_particle_group_get_x physics_particle_group_get_y ' + 'physics_particle_group_get_angle physics_particle_set_group_flags ' + 'physics_particle_get_group_flags physics_particle_get_max_count ' + 'physics_particle_get_radius physics_particle_get_density ' + 'physics_particle_get_damping physics_particle_get_gravity_scale ' + 'physics_particle_set_max_count physics_particle_set_radius ' + 'physics_particle_set_density physics_particle_set_damping ' + 'physics_particle_set_gravity_scale network_create_socket ' + 'network_create_socket_ext network_create_server ' + 'network_create_server_raw network_connect network_connect_raw ' + 'network_send_packet network_send_raw network_send_broadcast ' + 'network_send_udp network_send_udp_raw network_set_timeout ' + 'network_set_config network_resolve network_destroy buffer_create ' + 'buffer_write buffer_read buffer_seek buffer_get_surface ' + 'buffer_set_surface buffer_delete buffer_exists buffer_get_type ' + 'buffer_get_alignment buffer_poke buffer_peek buffer_save ' + 'buffer_save_ext buffer_load buffer_load_ext buffer_load_partial ' + 'buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize ' + 'buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode ' + 'buffer_base64_decode_ext buffer_sizeof buffer_get_address ' + 'buffer_create_from_vertex_buffer ' + 'buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer ' + 'buffer_async_group_begin buffer_async_group_option ' + 'buffer_async_group_end buffer_load_async buffer_save_async ' + 'gml_release_mode gml_pragma steam_activate_overlay ' + 'steam_is_overlay_enabled steam_is_overlay_activated ' + 'steam_get_persona_name steam_initialised ' + 'steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account ' + 'steam_file_persisted steam_get_quota_total steam_get_quota_free ' + 'steam_file_write steam_file_write_file steam_file_read ' + 'steam_file_delete steam_file_exists steam_file_size steam_file_share ' + 'steam_is_screenshot_requested steam_send_screenshot ' + 'steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc ' + 'steam_user_installed_dlc steam_set_achievement steam_get_achievement ' + 'steam_clear_achievement steam_set_stat_int steam_set_stat_float ' + 'steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float ' + 'steam_get_stat_avg_rate steam_reset_all_stats ' + 'steam_reset_all_stats_achievements steam_stats_ready ' + 'steam_create_leaderboard steam_upload_score steam_upload_score_ext ' + 'steam_download_scores_around_user steam_download_scores ' + 'steam_download_friends_scores steam_upload_score_buffer ' + 'steam_upload_score_buffer_ext steam_current_game_language ' + 'steam_available_languages steam_activate_overlay_browser ' + 'steam_activate_overlay_user steam_activate_overlay_store ' + 'steam_get_user_persona_name steam_get_app_id ' + 'steam_get_user_account_id steam_ugc_download steam_ugc_create_item ' + 'steam_ugc_start_item_update steam_ugc_set_item_title ' + 'steam_ugc_set_item_description steam_ugc_set_item_visibility ' + 'steam_ugc_set_item_tags steam_ugc_set_item_content ' + 'steam_ugc_set_item_preview steam_ugc_submit_item_update ' + 'steam_ugc_get_item_update_progress steam_ugc_subscribe_item ' + 'steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items ' + 'steam_ugc_get_subscribed_items steam_ugc_get_item_install_info ' + 'steam_ugc_get_item_update_info steam_ugc_request_item_details ' + 'steam_ugc_create_query_user steam_ugc_create_query_user_ex ' + 'steam_ugc_create_query_all steam_ugc_create_query_all_ex ' + 'steam_ugc_query_set_cloud_filename_filter ' + 'steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text ' + 'steam_ugc_query_set_ranked_by_trend_days ' + 'steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag ' + 'steam_ugc_query_set_return_long_description ' + 'steam_ugc_query_set_return_total_only ' + 'steam_ugc_query_set_allow_cached_response steam_ugc_send_query ' + 'shader_set shader_get_name shader_reset shader_current ' + 'shader_is_compiled shader_get_sampler_index shader_get_uniform ' + 'shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f ' + 'shader_set_uniform_f_array shader_set_uniform_matrix ' + 'shader_set_uniform_matrix_array shader_enable_corner_id ' + 'texture_set_stage texture_get_texel_width texture_get_texel_height ' + 'shaders_are_supported vertex_format_begin vertex_format_end ' + 'vertex_format_delete vertex_format_add_position ' + 'vertex_format_add_position_3d vertex_format_add_colour ' + 'vertex_format_add_color vertex_format_add_normal ' + 'vertex_format_add_texcoord vertex_format_add_textcoord ' + 'vertex_format_add_custom vertex_create_buffer ' + 'vertex_create_buffer_ext vertex_delete_buffer vertex_begin ' + 'vertex_end vertex_position vertex_position_3d vertex_colour ' + 'vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 ' + 'vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 ' + 'vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size ' + 'vertex_create_buffer_from_buffer ' + 'vertex_create_buffer_from_buffer_ext push_local_notification ' + 'push_get_first_local_notification push_get_next_local_notification ' + 'push_cancel_local_notification skeleton_animation_set ' + 'skeleton_animation_get skeleton_animation_mix ' + 'skeleton_animation_set_ext skeleton_animation_get_ext ' + 'skeleton_animation_get_duration skeleton_animation_get_frames ' + 'skeleton_animation_clear skeleton_skin_set skeleton_skin_get ' + 'skeleton_attachment_set skeleton_attachment_get ' + 'skeleton_attachment_create skeleton_collision_draw_set ' + 'skeleton_bone_data_get skeleton_bone_data_set ' + 'skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax ' + 'skeleton_get_num_bounds skeleton_get_bounds ' + 'skeleton_animation_get_frame skeleton_animation_set_frame ' + 'draw_skeleton draw_skeleton_time draw_skeleton_instance ' + 'draw_skeleton_collision skeleton_animation_list skeleton_skin_list ' + 'skeleton_slot_data layer_get_id layer_get_id_at_depth ' + 'layer_get_depth layer_create layer_destroy layer_destroy_instances ' + 'layer_add_instance layer_has_instance layer_set_visible ' + 'layer_get_visible layer_exists layer_x layer_y layer_get_x ' + 'layer_get_y layer_hspeed layer_vspeed layer_get_hspeed ' + 'layer_get_vspeed layer_script_begin layer_script_end layer_shader ' + 'layer_get_script_begin layer_get_script_end layer_get_shader ' + 'layer_set_target_room layer_get_target_room layer_reset_target_room ' + 'layer_get_all layer_get_all_elements layer_get_name layer_depth ' + 'layer_get_element_layer layer_get_element_type layer_element_move ' + 'layer_force_draw_depth layer_is_draw_depth_forced ' + 'layer_get_forced_depth layer_background_get_id ' + 'layer_background_exists layer_background_create ' + 'layer_background_destroy layer_background_visible ' + 'layer_background_change layer_background_sprite ' + 'layer_background_htiled layer_background_vtiled ' + 'layer_background_stretch layer_background_yscale ' + 'layer_background_xscale layer_background_blend ' + 'layer_background_alpha layer_background_index layer_background_speed ' + 'layer_background_get_visible layer_background_get_sprite ' + 'layer_background_get_htiled layer_background_get_vtiled ' + 'layer_background_get_stretch layer_background_get_yscale ' + 'layer_background_get_xscale layer_background_get_blend ' + 'layer_background_get_alpha layer_background_get_index ' + 'layer_background_get_speed layer_sprite_get_id layer_sprite_exists ' + 'layer_sprite_create layer_sprite_destroy layer_sprite_change ' + 'layer_sprite_index layer_sprite_speed layer_sprite_xscale ' + 'layer_sprite_yscale layer_sprite_angle layer_sprite_blend ' + 'layer_sprite_alpha layer_sprite_x layer_sprite_y ' + 'layer_sprite_get_sprite layer_sprite_get_index ' + 'layer_sprite_get_speed layer_sprite_get_xscale ' + 'layer_sprite_get_yscale layer_sprite_get_angle ' + 'layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x ' + 'layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists ' + 'layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x ' + 'tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset ' + 'tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width ' + 'tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get ' + 'tilemap_get_at_pixel tilemap_get_cell_x_at_pixel ' + 'tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile ' + 'tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask ' + 'tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index ' + 'tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty ' + 'tile_get_index tile_get_flip tile_get_mirror tile_get_rotate ' + 'layer_tile_exists layer_tile_create layer_tile_destroy ' + 'layer_tile_change layer_tile_xscale layer_tile_yscale ' + 'layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y ' + 'layer_tile_region layer_tile_visible layer_tile_get_sprite ' + 'layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend ' + 'layer_tile_get_alpha layer_tile_get_x layer_tile_get_y ' + 'layer_tile_get_region layer_tile_get_visible ' + 'layer_instance_get_instance instance_activate_layer ' + 'instance_deactivate_layer camera_create camera_create_view ' + 'camera_destroy camera_apply camera_get_active camera_get_default ' + 'camera_set_default camera_set_view_mat camera_set_proj_mat ' + 'camera_set_update_script camera_set_begin_script ' + 'camera_set_end_script camera_set_view_pos camera_set_view_size ' + 'camera_set_view_speed camera_set_view_border camera_set_view_angle ' + 'camera_set_view_target camera_get_view_mat camera_get_proj_mat ' + 'camera_get_update_script camera_get_begin_script ' + 'camera_get_end_script camera_get_view_x camera_get_view_y ' + 'camera_get_view_width camera_get_view_height camera_get_view_speed_x ' + 'camera_get_view_speed_y camera_get_view_border_x ' + 'camera_get_view_border_y camera_get_view_angle ' + 'camera_get_view_target view_get_camera view_get_visible ' + 'view_get_xport view_get_yport view_get_wport view_get_hport ' + 'view_get_surface_id view_set_camera view_set_visible view_set_xport ' + 'view_set_yport view_set_wport view_set_hport view_set_surface_id ' + 'gesture_drag_time gesture_drag_distance gesture_flick_speed ' + 'gesture_double_tap_time gesture_double_tap_distance ' + 'gesture_pinch_distance gesture_pinch_angle_towards ' + 'gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle ' + 'gesture_tap_count gesture_get_drag_time gesture_get_drag_distance ' + 'gesture_get_flick_speed gesture_get_double_tap_time ' + 'gesture_get_double_tap_distance gesture_get_pinch_distance ' + 'gesture_get_pinch_angle_towards gesture_get_pinch_angle_away ' + 'gesture_get_rotate_time gesture_get_rotate_angle ' + 'gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide ' + 'keyboard_virtual_status keyboard_virtual_height', literal: 'self other all noone global local undefined pointer_invalid ' + 'pointer_null path_action_stop path_action_restart ' + 'path_action_continue path_action_reverse true false pi GM_build_date ' + 'GM_version GM_runtime_version timezone_local timezone_utc ' + 'gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ' + 'ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ' + 'ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ' + 'ev_keyrelease ev_trigger ev_left_button ev_right_button ' + 'ev_middle_button ev_no_button ev_left_press ev_right_press ' + 'ev_middle_press ev_left_release ev_right_release ev_middle_release ' + 'ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ' + 'ev_global_left_button ev_global_right_button ev_global_middle_button ' + 'ev_global_left_press ev_global_right_press ev_global_middle_press ' + 'ev_global_left_release ev_global_right_release ' + 'ev_global_middle_release ev_joystick1_left ev_joystick1_right ' + 'ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ' + 'ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ' + 'ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ' + 'ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ' + 'ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ' + 'ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ' + 'ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ' + 'ev_joystick2_button8 ev_outside ev_boundary ev_game_start ' + 'ev_game_end ev_room_start ev_room_end ev_no_more_lives ' + 'ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ' + 'ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ' + 'ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ' + 'ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ' + 'ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ' + 'ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ' + 'ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ' + 'ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ' + 'ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ' + 'ev_global_gesture_tap ev_global_gesture_double_tap ' + 'ev_global_gesture_drag_start ev_global_gesture_dragging ' + 'ev_global_gesture_drag_end ev_global_gesture_flick ' + 'ev_global_gesture_pinch_start ev_global_gesture_pinch_in ' + 'ev_global_gesture_pinch_out ev_global_gesture_pinch_end ' + 'ev_global_gesture_rotate_start ev_global_gesture_rotating ' + 'ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return ' + 'vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab ' + 'vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home ' + 'vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 ' + 'vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 ' + 'vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 ' + 'vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract ' + 'vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift ' + 'vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle ' + 'c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime ' + 'c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal ' + 'c_white c_yellow c_orange fa_left fa_center fa_right fa_top ' + 'fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip ' + 'pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal ' + 'bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour ' + 'bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha ' + 'bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour ' + 'bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat ' + 'tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly ' + 'audio_falloff_none audio_falloff_inverse_distance ' + 'audio_falloff_inverse_distance_clamped audio_falloff_linear_distance ' + 'audio_falloff_linear_distance_clamped ' + 'audio_falloff_exponent_distance ' + 'audio_falloff_exponent_distance_clamped audio_old_system ' + 'audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none ' + 'cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse ' + 'cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint ' + 'cr_size_all spritespeed_framespersecond ' + 'spritespeed_framespergameframe asset_object asset_unknown ' + 'asset_sprite asset_sound asset_room asset_path asset_script ' + 'asset_font asset_timeline asset_tiles asset_shader fa_readonly ' + 'fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ' + 'ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ' + 'ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ' + 'ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ' + 'ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line ' + 'pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere ' + 'pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud ' + 'pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ' + 'ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ' + 'ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl ' + 'dll_stdcall matrix_view matrix_projection matrix_world os_win32 ' + 'os_windows os_macosx os_ios os_android os_symbian os_linux ' + 'os_unknown os_winphone os_tizen os_win8native ' + 'os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone ' + 'os_ps3 os_xbox360 os_uwp os_tvos os_switch ' + 'browser_not_a_browser browser_unknown browser_ie browser_firefox ' + 'browser_chrome browser_safari browser_safari_mobile browser_opera ' + 'browser_tizen browser_edge browser_windows_store browser_ie_mobile ' + 'device_ios_unknown device_ios_iphone device_ios_iphone_retina ' + 'device_ios_ipad device_ios_ipad_retina device_ios_iphone5 ' + 'device_ios_iphone6 device_ios_iphone6plus device_emulator ' + 'device_tablet display_landscape display_landscape_flipped ' + 'display_portrait display_portrait_flipped tm_sleep tm_countvsyncs ' + 'of_challenge_win of_challen ge_lose of_challenge_tie ' + 'leaderboard_type_number leaderboard_type_time_mins_secs ' + 'cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal ' + 'cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always ' + 'cull_noculling cull_clockwise cull_counterclockwise lighttype_dir ' + 'lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase ' + 'iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed ' + 'iap_status_uninitialised iap_status_unavailable iap_status_loading ' + 'iap_status_available iap_status_processing iap_status_restoring ' + 'iap_failed iap_unavailable iap_available iap_purchased iap_canceled ' + 'iap_refunded fb_login_default fb_login_fallback_to_webview ' + 'fb_login_no_fallback_to_webview fb_login_forcing_webview ' + 'fb_login_use_system_account fb_login_forcing_safari ' + 'phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x ' + 'phy_joint_anchor_2_y phy_joint_reaction_force_x ' + 'phy_joint_reaction_force_y phy_joint_reaction_torque ' + 'phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque ' + 'phy_joint_max_motor_torque phy_joint_translation phy_joint_speed ' + 'phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 ' + 'phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency ' + 'phy_joint_lower_angle_limit phy_joint_upper_angle_limit ' + 'phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque ' + 'phy_joint_max_force phy_debug_render_aabb ' + 'phy_debug_render_collision_pairs phy_debug_render_coms ' + 'phy_debug_render_core_shapes phy_debug_render_joints ' + 'phy_debug_render_obb phy_debug_render_shapes ' + 'phy_particle_flag_water phy_particle_flag_zombie ' + 'phy_particle_flag_wall phy_particle_flag_spring ' + 'phy_particle_flag_elastic phy_particle_flag_viscous ' + 'phy_particle_flag_powder phy_particle_flag_tensile ' + 'phy_particle_flag_colourmixing phy_particle_flag_colormixing ' + 'phy_particle_group_flag_solid phy_particle_group_flag_rigid ' + 'phy_particle_data_flag_typeflags phy_particle_data_flag_position ' + 'phy_particle_data_flag_velocity phy_particle_data_flag_colour ' + 'phy_particle_data_flag_color phy_particle_data_flag_category ' + 'achievement_our_info achievement_friends_info ' + 'achievement_leaderboard_info achievement_achievement_info ' + 'achievement_filter_all_players achievement_filter_friends_only ' + 'achievement_filter_favorites_only ' + 'achievement_type_achievement_challenge ' + 'achievement_type_score_challenge achievement_pic_loaded ' + 'achievement_show_ui achievement_show_profile ' + 'achievement_show_leaderboard achievement_show_achievement ' + 'achievement_show_bank achievement_show_friend_picker ' + 'achievement_show_purchase_prompt network_socket_tcp ' + 'network_socket_udp network_socket_bluetooth network_type_connect ' + 'network_type_disconnect network_type_data ' + 'network_type_non_blocking_connect network_config_connect_timeout ' + 'network_config_use_non_blocking_socket ' + 'network_config_enable_reliable_udp ' + 'network_config_disable_reliable_udp buffer_fixed buffer_grow ' + 'buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 ' + 'buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 ' + 'buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text ' + 'buffer_string buffer_surface_copy buffer_seek_start ' + 'buffer_seek_relative buffer_seek_end ' + 'buffer_generalerror buffer_outofspace buffer_outofbounds ' + 'buffer_invalidtype text_type button_type input_type ANSI_CHARSET ' + 'DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET ' + 'SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET ' + 'JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET ' + 'TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET ' + 'BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 ' + 'gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select ' + 'gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr ' + 'gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ' + 'ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none ' + 'lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric ' + 'lb_disp_time_sec lb_disp_time_ms ugc_result_success ' + 'ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ' + 'ugc_visibility_friends_only ugc_visibility_private ' + 'ugc_query_RankedByVote ugc_query_RankedByPublicationDate ' + 'ugc_query_AcceptedForGameRankedByAcceptanceDate ' + 'ugc_query_RankedByTrend ' + 'ugc_query_FavoritedByFriendsRankedByPublicationDate ' + 'ugc_query_CreatedByFriendsRankedByPublicationDate ' + 'ugc_query_RankedByNumTimesReported ' + 'ugc_query_CreatedByFollowedUsersRankedByPublicationDate ' + 'ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ' + 'ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ' + 'ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ' + 'ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ' + 'ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ' + 'ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ' + 'ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ' + 'ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ' + 'ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ' + 'ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ' + 'ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ' + 'ugc_match_WebGuides ugc_match_IntegratedGuides ' + 'ugc_match_UsableInGame ugc_match_ControllerBindings ' + 'vertex_usage_position vertex_usage_colour vertex_usage_color ' + 'vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord ' + 'vertex_usage_blendweight vertex_usage_blendindices ' + 'vertex_usage_psize vertex_usage_tangent vertex_usage_binormal ' + 'vertex_usage_fog vertex_usage_depth vertex_usage_sample ' + 'vertex_type_float1 vertex_type_float2 vertex_type_float3 ' + 'vertex_type_float4 vertex_type_colour vertex_type_color ' + 'vertex_type_ubyte4 layerelementtype_undefined ' + 'layerelementtype_background layerelementtype_instance ' + 'layerelementtype_oldtilemap layerelementtype_sprite ' + 'layerelementtype_tilemap layerelementtype_particlesystem ' + 'layerelementtype_tile tile_rotate tile_flip tile_mirror ' + 'tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url ' + 'kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name ' + 'kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google ' + 'kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route ' + 'kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo ' + 'kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency ' + 'kbv_autocapitalize_none kbv_autocapitalize_words ' + 'kbv_autocapitalize_sentences kbv_autocapitalize_characters', symbol: 'argument_relative argument argument0 argument1 argument2 ' + 'argument3 argument4 argument5 argument6 argument7 argument8 ' + 'argument9 argument10 argument11 argument12 argument13 argument14 ' + 'argument15 argument_count x y xprevious yprevious xstart ystart ' + 'hspeed vspeed direction speed friction gravity gravity_direction ' + 'path_index path_position path_positionprevious path_speed ' + 'path_scale path_orientation path_endaction object_index id solid ' + 'persistent mask_index instance_count instance_id room_speed fps ' + 'fps_real current_time current_year current_month current_day ' + 'current_weekday current_hour current_minute current_second alarm ' + 'timeline_index timeline_position timeline_speed timeline_running ' + 'timeline_loop room room_first room_last room_width room_height ' + 'room_caption room_persistent score lives health show_score ' + 'show_lives show_health caption_score caption_lives caption_health ' + 'event_type event_number event_object event_action ' + 'application_surface gamemaker_pro gamemaker_registered ' + 'gamemaker_version error_occurred error_last debug_mode ' + 'keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string ' + 'mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite ' + 'visible sprite_index sprite_width sprite_height sprite_xoffset ' + 'sprite_yoffset image_number image_index image_speed depth ' + 'image_xscale image_yscale image_angle image_alpha image_blend ' + 'bbox_left bbox_right bbox_top bbox_bottom layer background_colour ' + 'background_showcolour background_color background_showcolor ' + 'view_enabled view_current view_visible view_xview view_yview ' + 'view_wview view_hview view_xport view_yport view_wport view_hport ' + 'view_angle view_hborder view_vborder view_hspeed view_vspeed ' + 'view_object view_surface_id view_camera game_id game_display_name ' + 'game_project_name game_save_id working_directory temp_directory ' + 'program_directory browser_width browser_height os_type os_device ' + 'os_browser os_version display_aa async_load delta_time ' + 'webgl_enabled event_data iap_data phy_rotation phy_position_x ' + 'phy_position_y phy_angular_velocity phy_linear_velocity_x ' + 'phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed ' + 'phy_angular_damping phy_linear_damping phy_bullet ' + 'phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x ' + 'phy_com_y phy_dynamic phy_kinematic phy_sleeping ' + 'phy_collision_points phy_collision_x phy_collision_y ' + 'phy_col_normal_x phy_col_normal_y phy_position_xprevious ' + 'phy_position_yprevious' }; return { aliases: ['gml', 'GML'], case_insensitive: false, // language is case-insensitive keywords: GML_KEYWORDS, contains: [ hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE, hljs.C_NUMBER_MODE ] }; }
mit
chriskuehl/pre-commit-hooks
pre_commit_hooks/detect_private_key.py
859
from __future__ import print_function import argparse import sys BLACKLIST = [ b'BEGIN RSA PRIVATE KEY', b'BEGIN DSA PRIVATE KEY', b'BEGIN EC PRIVATE KEY', ] def detect_private_key(argv=None): parser = argparse.ArgumentParser() parser.add_argument('filenames', nargs='*', help='Filenames to check') args = parser.parse_args(argv) private_key_files = [] for filename in args.filenames: with open(filename, 'rb') as f: content = f.read() if any(line in content for line in BLACKLIST): private_key_files.append(filename) if private_key_files: for private_key_file in private_key_files: print('Private key found: {0}'.format(private_key_file)) return 1 else: return 0 if __name__ == '__main__': sys.exit(detect_private_key())
mit
rfleschenberg/djangocms-cascade
cmsplugin_cascade/apps.py
262
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class CascadeConfig(AppConfig): name = 'cmsplugin_cascade' verbose_name = _("django CMS Cascade")
mit
riskcoin/riskcoin
src/qt/invoiceviewpage.cpp
6976
#include "invoiceviewpage.h" #include "ui_invoiceviewpage.h" #include "messagemodel.h" #include "optionsmodel.h" #include "sendmessagesdialog.h" #include "bitcoinunits.h" #include "bitcoingui.h" #include "guiutil.h" #include <QSortFilterProxyModel> InvoiceViewPage::InvoiceViewPage(QWidget *parent) : QDialog(parent), ui(new Ui::InvoiceViewPage) { ui->setupUi(this); } InvoiceViewPage::~InvoiceViewPage() { delete ui; } void InvoiceViewPage::setModel(InvoiceTableModel *model) { this->model = model; if(!model) return; proxyModel = new QSortFilterProxyModel(this); proxyModel->setSourceModel(model->getInvoiceItemTableModel()); proxyModel->setDynamicSortFilter(true); proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive); proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); invoiceProxyModel = new QSortFilterProxyModel(this); invoiceProxyModel->setSourceModel(model); invoiceProxyModel->setDynamicSortFilter(true); invoiceProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive); invoiceProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); ui->invoiceItemTableView->setModel(proxyModel); // Set column widths ui->invoiceItemTableView->horizontalHeader()->resizeSection(InvoiceItemTableModel::Code, 100); ui->invoiceItemTableView->horizontalHeader()->resizeSection(InvoiceItemTableModel::Description, 320); ui->invoiceItemTableView->horizontalHeader()->setResizeMode(InvoiceItemTableModel::Description, QHeaderView::Stretch); ui->invoiceItemTableView->horizontalHeader()->resizeSection(InvoiceItemTableModel::Quantity, 100); //ui->invoiceItemTableView->horizontalHeader()->resizeSection(InvoiceItemTableModel::Tax, 100); ui->invoiceItemTableView->horizontalHeader()->resizeSection(InvoiceItemTableModel::Price, 100); ui->invoiceItemTableView->horizontalHeader()->resizeSection(InvoiceItemTableModel::Amount, 100); // Hidden columns ui->invoiceItemTableView->setColumnHidden(InvoiceItemTableModel::Type, true); ui->subtotalLabel->setVisible(false); ui->taxLabel->setVisible(false); ui->subtotal->setVisible(false); ui->tax->setVisible(false); connect(model->getInvoiceItemTableModel(), SIGNAL(dataChanged(QModelIndex,QModelIndex,QVector<int>)), this, SLOT(updateTotal())); //connect(ui->invoiceItemTableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)), this, SLOT(selectionChanged())); //selectionChanged(); } void InvoiceViewPage::loadRow(int row, bool allowEdit) { ui->companyInfoLeft ->setText(model->data(model->index(row, model->CompanyInfoLeft, QModelIndex()), Qt::DisplayRole).toString()); ui->companyInfoRight->setText(model->data(model->index(row, model->CompanyInfoRight, QModelIndex()), Qt::DisplayRole).toString()); ui->billingInfoLeft ->setText(model->data(model->index(row, model->BillingInfoLeft, QModelIndex()), Qt::DisplayRole).toString()); ui->billingInfoRight->setText(model->data(model->index(row, model->BillingInfoRight, QModelIndex()), Qt::DisplayRole).toString()); ui->footer ->setText(model->data(model->index(row, model->Footer, QModelIndex()), Qt::DisplayRole).toString()); ui->dueDate ->setDate(model->data(model->index(row, model->DueDate, QModelIndex()), Qt::DisplayRole).toDate()); ui->invoiceNumber ->setText(model->data(model->index(row, model->InvoiceNumber, QModelIndex()), Qt::DisplayRole).toString()); ui->total ->setText(model->data(model->index(row, model->Total, QModelIndex()), Qt::DisplayRole).toString()); proxyModel->setFilterRole(Qt::UserRole); proxyModel->setFilterFixedString(model->data(model->index(row, 999, QModelIndex()), Qt::UserRole).toString()); ui->sendButton->setVisible(allowEdit); resend = allowEdit; curRow = row; } void InvoiceViewPage::newInvoice() { /* TODO: Pre-populate... ui->companyInfoLeft ->setText(model->data(model->index(row, model->CompanyInfoLeft, QModelIndex()), Qt::DisplayRole).toString()); ui->companyInfoRight->setText(model->data(model->index(row, model->CompanyInfoRight, QModelIndex()), Qt::DisplayRole).toString()); ui->billingInfoLeft ->setText(model->data(model->index(row, model->BillingInfoLeft, QModelIndex()), Qt::DisplayRole).toString()); ui->billingInfoRight->setText(model->data(model->index(row, model->BillingInfoRight, QModelIndex()), Qt::DisplayRole).toString()); ui->footer ->setText(model->data(model->index(row, model->Footer, QModelIndex()), Qt::DisplayRole).toString()); ui->dueDate ->setDate(model->data(model->index(row, model->DueDate, QModelIndex()), Qt::DisplayRole).toDate()); ui->invoiceNumber ->setText(model->data(model->index(row, model->InvoiceNumber, QModelIndex()), Qt::DisplayRole).toString()); ui->total ->setText(model->data(model->index(row, model->Total, QModelIndex()), Qt::DisplayRole).toString()); */ proxyModel->setFilterRole(Qt::UserRole); proxyModel->setFilterFixedString("new"); if(proxyModel->rowCount() == 0) { model->newInvoiceItem(); } ui->sendButton->setVisible(true); } void InvoiceViewPage::on_sendButton_clicked() { if(!model) return; SendMessagesDialog dlg(SendMessagesDialog::Encrypted, SendMessagesDialog::Dialog, this); dlg.setModel(model->getMessageModel()); if(resend) { dlg.loadInvoice(model->getInvoiceJSON(curRow), model->data(model->index(curRow, model->FromAddress, QModelIndex()), Qt::DisplayRole).toString(), model->data(model->index(curRow, model->ToAddress, QModelIndex()), Qt::DisplayRole).toString()); } else { model->newInvoice(ui->companyInfoLeft->document()->toPlainText(), ui->companyInfoRight->document()->toPlainText(), ui->billingInfoLeft->document()->toPlainText(), ui->billingInfoRight->document()->toPlainText(), ui->footer->document()->toPlainText(), ui->dueDate->date(), ui->invoiceNumber->text()); dlg.loadInvoice(model->getInvoiceJSON(0)); } if(dlg.exec() == 0) done(0); } void InvoiceViewPage::updateTotal() { if(!model) return; int64 total = 0; int rows = proxyModel->rowCount(); for(int i = 0; i < rows; i++) { total += proxyModel->data(proxyModel->index(i, InvoiceItemTableModel::Amount), Qt::EditRole).toLongLong(); if(i+1==rows && proxyModel->data(proxyModel->index(i, InvoiceItemTableModel::Code)).toString() != "") model->newInvoiceItem(); } ui->total->setText(BitcoinUnits::formatWithUnit(model->getMessageModel()->getOptionsModel()->getDisplayUnit(), total)); }
mit
cdnjs/cdnjs
ajax/libs/tom-select/2.0.0-rc.2/esm/plugins/caret_position/plugin.min.js
808
import TomSelect from"../../tom-select.js";const latin_convert={"æ":"ae","ⱥ":"a","ø":"o"};new RegExp(Object.keys(latin_convert).join("|"),"g");const nodeIndex=(e,t)=>{if(!e)return-1;t=t||e.nodeName;for(var n=0;e=e.previousElementSibling;)e.matches(t)&&n++;return n};TomSelect.define("caret_position",function(){var o=this;o.hook("instead","setCaret",n=>{"single"!==o.settings.mode&&o.control.contains(o.control_input)?(n=Math.max(0,Math.min(o.items.length,n)))==o.caretPos||o.isPending||o.controlChildren().forEach((e,t)=>{t<n?o.control_input.insertAdjacentElement("beforebegin",e):o.control.appendChild(e)}):n=o.items.length,o.caretPos=n}),o.hook("instead","moveCaret",e=>{var t;o.isFocused&&((t=o.getLastActive(e))?(t=nodeIndex(t),o.setCaret(0<e?t+1:t),o.setActiveItem()):o.setCaret(o.caretPos+e))})});
mit
adityasubawa/mechanic-visitor-counter
src/js/_enqueues/admin/common.js
52405
/** * @output wp-admin/js/common.js */ /* global setUserSetting, ajaxurl, alert, confirm, pagenow */ /* global columns, screenMeta */ /** * Adds common WordPress functionality to the window. * * @param {jQuery} $ jQuery object. * @param {Object} window The window object. * @param {mixed} undefined Unused. */ ( function( $, window, undefined ) { var $document = $( document ), $window = $( window ), $body = $( document.body ), __ = wp.i18n.__, sprintf = wp.i18n.sprintf; /** * Throws an error for a deprecated property. * * @since 5.5.1 * * @param {string} propName The property that was used. * @param {string} version The version of WordPress that deprecated the property. * @param {string} replacement The property that should have been used. */ function deprecatedProperty( propName, version, replacement ) { var message; if ( 'undefined' !== typeof replacement ) { message = sprintf( /* translators: 1: Deprecated property name, 2: Version number, 3: Alternative property name. */ __( '%1$s is deprecated since version %2$s! Use %3$s instead.' ), propName, version, replacement ); } else { message = sprintf( /* translators: 1: Deprecated property name, 2: Version number. */ __( '%1$s is deprecated since version %2$s with no alternative available.' ), propName, version ); } window.console.warn( message ); } /** * Deprecate all properties on an object. * * @since 5.5.1 * @since 5.6.0 Added the `version` parameter. * * @param {string} name The name of the object, i.e. commonL10n. * @param {object} l10nObject The object to deprecate the properties on. * @param {string} version The version of WordPress that deprecated the property. * * @return {object} The object with all its properties deprecated. */ function deprecateL10nObject( name, l10nObject, version ) { var deprecatedObject = {}; Object.keys( l10nObject ).forEach( function( key ) { var prop = l10nObject[ key ]; var propName = name + '.' + key; if ( 'object' === typeof prop ) { Object.defineProperty( deprecatedObject, key, { get: function() { deprecatedProperty( propName, version, prop.alternative ); return prop.func(); } } ); } else { Object.defineProperty( deprecatedObject, key, { get: function() { deprecatedProperty( propName, version, 'wp.i18n' ); return prop; } } ); } } ); return deprecatedObject; } window.wp.deprecateL10nObject = deprecateL10nObject; /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.6.0 * @deprecated 5.5.0 */ window.commonL10n = window.commonL10n || { warnDelete: '', dismiss: '', collapseMenu: '', expandMenu: '' }; window.commonL10n = deprecateL10nObject( 'commonL10n', window.commonL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 3.3.0 * @deprecated 5.5.0 */ window.wpPointerL10n = window.wpPointerL10n || { dismiss: '' }; window.wpPointerL10n = deprecateL10nObject( 'wpPointerL10n', window.wpPointerL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 4.3.0 * @deprecated 5.5.0 */ window.userProfileL10n = window.userProfileL10n || { warn: '', warnWeak: '', show: '', hide: '', cancel: '', ariaShow: '', ariaHide: '' }; window.userProfileL10n = deprecateL10nObject( 'userProfileL10n', window.userProfileL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 4.9.6 * @deprecated 5.5.0 */ window.privacyToolsL10n = window.privacyToolsL10n || { noDataFound: '', foundAndRemoved: '', noneRemoved: '', someNotRemoved: '', removalError: '', emailSent: '', noExportFile: '', exportError: '' }; window.privacyToolsL10n = deprecateL10nObject( 'privacyToolsL10n', window.privacyToolsL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 3.6.0 * @deprecated 5.5.0 */ window.authcheckL10n = { beforeunload: '' }; window.authcheckL10n = window.authcheckL10n || deprecateL10nObject( 'authcheckL10n', window.authcheckL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.8.0 * @deprecated 5.5.0 */ window.tagsl10n = { noPerm: '', broken: '' }; window.tagsl10n = window.tagsl10n || deprecateL10nObject( 'tagsl10n', window.tagsl10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.5.0 * @deprecated 5.5.0 */ window.adminCommentsL10n = window.adminCommentsL10n || { hotkeys_highlight_first: { alternative: 'window.adminCommentsSettings.hotkeys_highlight_first', func: function() { return window.adminCommentsSettings.hotkeys_highlight_first; } }, hotkeys_highlight_last: { alternative: 'window.adminCommentsSettings.hotkeys_highlight_last', func: function() { return window.adminCommentsSettings.hotkeys_highlight_last; } }, replyApprove: '', reply: '', warnQuickEdit: '', warnCommentChanges: '', docTitleComments: '', docTitleCommentsCount: '' }; window.adminCommentsL10n = deprecateL10nObject( 'adminCommentsL10n', window.adminCommentsL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.5.0 * @deprecated 5.5.0 */ window.tagsSuggestL10n = window.tagsSuggestL10n || { tagDelimiter: '', removeTerm: '', termSelected: '', termAdded: '', termRemoved: '' }; window.tagsSuggestL10n = deprecateL10nObject( 'tagsSuggestL10n', window.tagsSuggestL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 3.5.0 * @deprecated 5.5.0 */ window.wpColorPickerL10n = window.wpColorPickerL10n || { clear: '', clearAriaLabel: '', defaultString: '', defaultAriaLabel: '', pick: '', defaultLabel: '' }; window.wpColorPickerL10n = deprecateL10nObject( 'wpColorPickerL10n', window.wpColorPickerL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.7.0 * @deprecated 5.5.0 */ window.attachMediaBoxL10n = window.attachMediaBoxL10n || { error: '' }; window.attachMediaBoxL10n = deprecateL10nObject( 'attachMediaBoxL10n', window.attachMediaBoxL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.5.0 * @deprecated 5.5.0 */ window.postL10n = window.postL10n || { ok: '', cancel: '', publishOn: '', publishOnFuture: '', publishOnPast: '', dateFormat: '', showcomm: '', endcomm: '', publish: '', schedule: '', update: '', savePending: '', saveDraft: '', 'private': '', 'public': '', publicSticky: '', password: '', privatelyPublished: '', published: '', saveAlert: '', savingText: '', permalinkSaved: '' }; window.postL10n = deprecateL10nObject( 'postL10n', window.postL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.7.0 * @deprecated 5.5.0 */ window.inlineEditL10n = window.inlineEditL10n || { error: '', ntdeltitle: '', notitle: '', comma: '', saved: '' }; window.inlineEditL10n = deprecateL10nObject( 'inlineEditL10n', window.inlineEditL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.7.0 * @deprecated 5.5.0 */ window.plugininstallL10n = window.plugininstallL10n || { plugin_information: '', plugin_modal_label: '', ays: '' }; window.plugininstallL10n = deprecateL10nObject( 'plugininstallL10n', window.plugininstallL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 3.0.0 * @deprecated 5.5.0 */ window.navMenuL10n = window.navMenuL10n || { noResultsFound: '', warnDeleteMenu: '', saveAlert: '', untitled: '' }; window.navMenuL10n = deprecateL10nObject( 'navMenuL10n', window.navMenuL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.5.0 * @deprecated 5.5.0 */ window.commentL10n = window.commentL10n || { submittedOn: '', dateFormat: '' }; window.commentL10n = deprecateL10nObject( 'commentL10n', window.commentL10n, '5.5.0' ); /** * Removed in 5.5.0, needed for back-compatibility. * * @since 2.9.0 * @deprecated 5.5.0 */ window.setPostThumbnailL10n = window.setPostThumbnailL10n || { setThumbnail: '', saving: '', error: '', done: '' }; window.setPostThumbnailL10n = deprecateL10nObject( 'setPostThumbnailL10n', window.setPostThumbnailL10n, '5.5.0' ); /** * Removed in 3.3.0, needed for back-compatibility. * * @since 2.7.0 * @deprecated 3.3.0 */ window.adminMenu = { init : function() {}, fold : function() {}, restoreMenuState : function() {}, toggle : function() {}, favorites : function() {} }; // Show/hide/save table columns. window.columns = { /** * Initializes the column toggles in the screen options. * * Binds an onClick event to the checkboxes to show or hide the table columns * based on their toggled state. And persists the toggled state. * * @since 2.7.0 * * @return {void} */ init : function() { var that = this; $('.hide-column-tog', '#adv-settings').click( function() { var $t = $(this), column = $t.val(); if ( $t.prop('checked') ) that.checked(column); else that.unchecked(column); columns.saveManageColumnsState(); }); }, /** * Saves the toggled state for the columns. * * Saves whether the columns should be shown or hidden on a page. * * @since 3.0.0 * * @return {void} */ saveManageColumnsState : function() { var hidden = this.hidden(); $.post(ajaxurl, { action: 'hidden-columns', hidden: hidden, screenoptionnonce: $('#screenoptionnonce').val(), page: pagenow }); }, /** * Makes a column visible and adjusts the column span for the table. * * @since 3.0.0 * @param {string} column The column name. * * @return {void} */ checked : function(column) { $('.column-' + column).removeClass( 'hidden' ); this.colSpanChange(+1); }, /** * Hides a column and adjusts the column span for the table. * * @since 3.0.0 * @param {string} column The column name. * * @return {void} */ unchecked : function(column) { $('.column-' + column).addClass( 'hidden' ); this.colSpanChange(-1); }, /** * Gets all hidden columns. * * @since 3.0.0 * * @return {string} The hidden column names separated by a comma. */ hidden : function() { return $( '.manage-column[id]' ).filter( '.hidden' ).map(function() { return this.id; }).get().join( ',' ); }, /** * Gets the checked column toggles from the screen options. * * @since 3.0.0 * * @return {string} String containing the checked column names. */ useCheckboxesForHidden : function() { this.hidden = function(){ return $('.hide-column-tog').not(':checked').map(function() { var id = this.id; return id.substring( id, id.length - 5 ); }).get().join(','); }; }, /** * Adjusts the column span for the table. * * @since 3.1.0 * * @param {number} diff The modifier for the column span. */ colSpanChange : function(diff) { var $t = $('table').find('.colspanchange'), n; if ( !$t.length ) return; n = parseInt( $t.attr('colspan'), 10 ) + diff; $t.attr('colspan', n.toString()); } }; $document.ready(function(){columns.init();}); /** * Validates that the required form fields are not empty. * * @since 2.9.0 * * @param {jQuery} form The form to validate. * * @return {boolean} Returns true if all required fields are not an empty string. */ window.validateForm = function( form ) { return !$( form ) .find( '.form-required' ) .filter( function() { return $( ':input:visible', this ).val() === ''; } ) .addClass( 'form-invalid' ) .find( ':input:visible' ) .change( function() { $( this ).closest( '.form-invalid' ).removeClass( 'form-invalid' ); } ) .length; }; // Stub for doing better warnings. /** * Shows message pop-up notice or confirmation message. * * @since 2.7.0 * * @type {{warn: showNotice.warn, note: showNotice.note}} * * @return {void} */ window.showNotice = { /** * Shows a delete confirmation pop-up message. * * @since 2.7.0 * * @return {boolean} Returns true if the message is confirmed. */ warn : function() { if ( confirm( __( 'You are about to permanently delete these items from your site.\nThis action cannot be undone.\n\'Cancel\' to stop, \'OK\' to delete.' ) ) ) { return true; } return false; }, /** * Shows an alert message. * * @since 2.7.0 * * @param text The text to display in the message. */ note : function(text) { alert(text); } }; /** * Represents the functions for the meta screen options panel. * * @since 3.2.0 * * @type {{element: null, toggles: null, page: null, init: screenMeta.init, * toggleEvent: screenMeta.toggleEvent, open: screenMeta.open, * close: screenMeta.close}} * * @return {void} */ window.screenMeta = { element: null, // #screen-meta toggles: null, // .screen-meta-toggle page: null, // #wpcontent /** * Initializes the screen meta options panel. * * @since 3.2.0 * * @return {void} */ init: function() { this.element = $('#screen-meta'); this.toggles = $( '#screen-meta-links' ).find( '.show-settings' ); this.page = $('#wpcontent'); this.toggles.click( this.toggleEvent ); }, /** * Toggles the screen meta options panel. * * @since 3.2.0 * * @return {void} */ toggleEvent: function() { var panel = $( '#' + $( this ).attr( 'aria-controls' ) ); if ( !panel.length ) return; if ( panel.is(':visible') ) screenMeta.close( panel, $(this) ); else screenMeta.open( panel, $(this) ); }, /** * Opens the screen meta options panel. * * @since 3.2.0 * * @param {jQuery} panel The screen meta options panel div. * @param {jQuery} button The toggle button. * * @return {void} */ open: function( panel, button ) { $( '#screen-meta-links' ).find( '.screen-meta-toggle' ).not( button.parent() ).css( 'visibility', 'hidden' ); panel.parent().show(); /** * Sets the focus to the meta options panel and adds the necessary CSS classes. * * @since 3.2.0 * * @return {void} */ panel.slideDown( 'fast', function() { panel.focus(); button.addClass( 'screen-meta-active' ).attr( 'aria-expanded', true ); }); $document.trigger( 'screen:options:open' ); }, /** * Closes the screen meta options panel. * * @since 3.2.0 * * @param {jQuery} panel The screen meta options panel div. * @param {jQuery} button The toggle button. * * @return {void} */ close: function( panel, button ) { /** * Hides the screen meta options panel. * * @since 3.2.0 * * @return {void} */ panel.slideUp( 'fast', function() { button.removeClass( 'screen-meta-active' ).attr( 'aria-expanded', false ); $('.screen-meta-toggle').css('visibility', ''); panel.parent().hide(); }); $document.trigger( 'screen:options:close' ); } }; /** * Initializes the help tabs in the help panel. * * @param {Event} e The event object. * * @return {void} */ $('.contextual-help-tabs').delegate('a', 'click', function(e) { var link = $(this), panel; e.preventDefault(); // Don't do anything if the click is for the tab already showing. if ( link.is('.active a') ) return false; // Links. $('.contextual-help-tabs .active').removeClass('active'); link.parent('li').addClass('active'); panel = $( link.attr('href') ); // Panels. $('.help-tab-content').not( panel ).removeClass('active').hide(); panel.addClass('active').show(); }); /** * Update custom permalink structure via buttons. */ var permalinkStructureFocused = false, $permalinkStructure = $( '#permalink_structure' ), $permalinkStructureInputs = $( '.permalink-structure input:radio' ), $permalinkCustomSelection = $( '#custom_selection' ), $availableStructureTags = $( '.form-table.permalink-structure .available-structure-tags button' ); // Change permalink structure input when selecting one of the common structures. $permalinkStructureInputs.on( 'change', function() { if ( 'custom' === this.value ) { return; } $permalinkStructure.val( this.value ); // Update button states after selection. $availableStructureTags.each( function() { changeStructureTagButtonState( $( this ) ); } ); } ); $permalinkStructure.on( 'click input', function() { $permalinkCustomSelection.prop( 'checked', true ); } ); // Check if the permalink structure input field has had focus at least once. $permalinkStructure.on( 'focus', function( event ) { permalinkStructureFocused = true; $( this ).off( event ); } ); /** * Enables or disables a structure tag button depending on its usage. * * If the structure is already used in the custom permalink structure, * it will be disabled. * * @param {Object} button Button jQuery object. */ function changeStructureTagButtonState( button ) { if ( -1 !== $permalinkStructure.val().indexOf( button.text().trim() ) ) { button.attr( 'data-label', button.attr( 'aria-label' ) ); button.attr( 'aria-label', button.attr( 'data-used' ) ); button.attr( 'aria-pressed', true ); button.addClass( 'active' ); } else if ( button.attr( 'data-label' ) ) { button.attr( 'aria-label', button.attr( 'data-label' ) ); button.attr( 'aria-pressed', false ); button.removeClass( 'active' ); } } // Check initial button state. $availableStructureTags.each( function() { changeStructureTagButtonState( $( this ) ); } ); // Observe permalink structure field and disable buttons of tags that are already present. $permalinkStructure.on( 'change', function() { $availableStructureTags.each( function() { changeStructureTagButtonState( $( this ) ); } ); } ); $availableStructureTags.on( 'click', function() { var permalinkStructureValue = $permalinkStructure.val(), selectionStart = $permalinkStructure[ 0 ].selectionStart, selectionEnd = $permalinkStructure[ 0 ].selectionEnd, textToAppend = $( this ).text().trim(), textToAnnounce = $( this ).attr( 'data-added' ), newSelectionStart; // Remove structure tag if already part of the structure. if ( -1 !== permalinkStructureValue.indexOf( textToAppend ) ) { permalinkStructureValue = permalinkStructureValue.replace( textToAppend + '/', '' ); $permalinkStructure.val( '/' === permalinkStructureValue ? '' : permalinkStructureValue ); // Announce change to screen readers. $( '#custom_selection_updated' ).text( textToAnnounce ); // Disable button. changeStructureTagButtonState( $( this ) ); return; } // Input field never had focus, move selection to end of input. if ( ! permalinkStructureFocused && 0 === selectionStart && 0 === selectionEnd ) { selectionStart = selectionEnd = permalinkStructureValue.length; } $permalinkCustomSelection.prop( 'checked', true ); // Prepend and append slashes if necessary. if ( '/' !== permalinkStructureValue.substr( 0, selectionStart ).substr( -1 ) ) { textToAppend = '/' + textToAppend; } if ( '/' !== permalinkStructureValue.substr( selectionEnd, 1 ) ) { textToAppend = textToAppend + '/'; } // Insert structure tag at the specified position. $permalinkStructure.val( permalinkStructureValue.substr( 0, selectionStart ) + textToAppend + permalinkStructureValue.substr( selectionEnd ) ); // Announce change to screen readers. $( '#custom_selection_updated' ).text( textToAnnounce ); // Disable button. changeStructureTagButtonState( $( this ) ); // If input had focus give it back with cursor right after appended text. if ( permalinkStructureFocused && $permalinkStructure[0].setSelectionRange ) { newSelectionStart = ( permalinkStructureValue.substr( 0, selectionStart ) + textToAppend ).length; $permalinkStructure[0].setSelectionRange( newSelectionStart, newSelectionStart ); $permalinkStructure.focus(); } } ); $document.ready( function() { var checks, first, last, checked, sliced, mobileEvent, transitionTimeout, focusedRowActions, lastClicked = false, pageInput = $('input.current-page'), currentPage = pageInput.val(), isIOS = /iPhone|iPad|iPod/.test( navigator.userAgent ), isAndroid = navigator.userAgent.indexOf( 'Android' ) !== -1, $adminMenuWrap = $( '#adminmenuwrap' ), $wpwrap = $( '#wpwrap' ), $adminmenu = $( '#adminmenu' ), $overlay = $( '#wp-responsive-overlay' ), $toolbar = $( '#wp-toolbar' ), $toolbarPopups = $toolbar.find( 'a[aria-haspopup="true"]' ), $sortables = $('.meta-box-sortables'), wpResponsiveActive = false, $adminbar = $( '#wpadminbar' ), lastScrollPosition = 0, pinnedMenuTop = false, pinnedMenuBottom = false, menuTop = 0, menuState, menuIsPinned = false, height = { window: $window.height(), wpwrap: $wpwrap.height(), adminbar: $adminbar.height(), menu: $adminMenuWrap.height() }, $headerEnd = $( '.wp-header-end' ); /** * Makes the fly-out submenu header clickable, when the menu is folded. * * @param {Event} e The event object. * * @return {void} */ $adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){ $(e.target).parent().siblings('a').get(0).click(); }); /** * Collapses the admin menu. * * @return {void} */ $( '#collapse-button' ).on( 'click.collapse-menu', function() { var viewportWidth = getViewportWidth() || 961; // Reset any compensation for submenus near the bottom of the screen. $('#adminmenu div.wp-submenu').css('margin-top', ''); if ( viewportWidth < 960 ) { if ( $body.hasClass('auto-fold') ) { $body.removeClass('auto-fold').removeClass('folded'); setUserSetting('unfold', 1); setUserSetting('mfold', 'o'); menuState = 'open'; } else { $body.addClass('auto-fold'); setUserSetting('unfold', 0); menuState = 'folded'; } } else { if ( $body.hasClass('folded') ) { $body.removeClass('folded'); setUserSetting('mfold', 'o'); menuState = 'open'; } else { $body.addClass('folded'); setUserSetting('mfold', 'f'); menuState = 'folded'; } } $document.trigger( 'wp-collapse-menu', { state: menuState } ); }); /** * Handles the `aria-haspopup` attribute on the current menu item when it has a submenu. * * @since 4.4.0 * * @return {void} */ function currentMenuItemHasPopup() { var $current = $( 'a.wp-has-current-submenu' ); if ( 'folded' === menuState ) { // When folded or auto-folded and not responsive view, the current menu item does have a fly-out sub-menu. $current.attr( 'aria-haspopup', 'true' ); } else { // When expanded or in responsive view, reset aria-haspopup. $current.attr( 'aria-haspopup', 'false' ); } } $document.on( 'wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate', currentMenuItemHasPopup ); /** * Ensures an admin submenu is within the visual viewport. * * @since 4.1.0 * * @param {jQuery} $menuItem The parent menu item containing the submenu. * * @return {void} */ function adjustSubmenu( $menuItem ) { var bottomOffset, pageHeight, adjustment, theFold, menutop, wintop, maxtop, $submenu = $menuItem.find( '.wp-submenu' ); menutop = $menuItem.offset().top; wintop = $window.scrollTop(); maxtop = menutop - wintop - 30; // max = make the top of the sub almost touch admin bar. bottomOffset = menutop + $submenu.height() + 1; // Bottom offset of the menu. pageHeight = $wpwrap.height(); // Height of the entire page. adjustment = 60 + bottomOffset - pageHeight; theFold = $window.height() + wintop - 50; // The fold. if ( theFold < ( bottomOffset - adjustment ) ) { adjustment = bottomOffset - theFold; } if ( adjustment > maxtop ) { adjustment = maxtop; } if ( adjustment > 1 ) { $submenu.css( 'margin-top', '-' + adjustment + 'px' ); } else { $submenu.css( 'margin-top', '' ); } } if ( 'ontouchstart' in window || /IEMobile\/[1-9]/.test(navigator.userAgent) ) { // Touch screen device. // iOS Safari works with touchstart, the rest work with click. mobileEvent = isIOS ? 'touchstart' : 'click'; /** * Closes any open submenus when touch/click is not on the menu. * * @param {Event} e The event object. * * @return {void} */ $body.on( mobileEvent+'.wp-mobile-hover', function(e) { if ( $adminmenu.data('wp-responsive') ) { return; } if ( ! $( e.target ).closest( '#adminmenu' ).length ) { $adminmenu.find( 'li.opensub' ).removeClass( 'opensub' ); } }); /** * Handles the opening or closing the submenu based on the mobile click|touch event. * * @param {Event} event The event object. * * @return {void} */ $adminmenu.find( 'a.wp-has-submenu' ).on( mobileEvent + '.wp-mobile-hover', function( event ) { var $menuItem = $(this).parent(); if ( $adminmenu.data( 'wp-responsive' ) ) { return; } /* * Show the sub instead of following the link if: * - the submenu is not open. * - the submenu is not shown inline or the menu is not folded. */ if ( ! $menuItem.hasClass( 'opensub' ) && ( ! $menuItem.hasClass( 'wp-menu-open' ) || $menuItem.width() < 40 ) ) { event.preventDefault(); adjustSubmenu( $menuItem ); $adminmenu.find( 'li.opensub' ).removeClass( 'opensub' ); $menuItem.addClass('opensub'); } }); } if ( ! isIOS && ! isAndroid ) { $adminmenu.find( 'li.wp-has-submenu' ).hoverIntent({ /** * Opens the submenu when hovered over the menu item for desktops. * * @return {void} */ over: function() { var $menuItem = $( this ), $submenu = $menuItem.find( '.wp-submenu' ), top = parseInt( $submenu.css( 'top' ), 10 ); if ( isNaN( top ) || top > -5 ) { // The submenu is visible. return; } if ( $adminmenu.data( 'wp-responsive' ) ) { // The menu is in responsive mode, bail. return; } adjustSubmenu( $menuItem ); $adminmenu.find( 'li.opensub' ).removeClass( 'opensub' ); $menuItem.addClass( 'opensub' ); }, /** * Closes the submenu when no longer hovering the menu item. * * @return {void} */ out: function(){ if ( $adminmenu.data( 'wp-responsive' ) ) { // The menu is in responsive mode, bail. return; } $( this ).removeClass( 'opensub' ).find( '.wp-submenu' ).css( 'margin-top', '' ); }, timeout: 200, sensitivity: 7, interval: 90 }); /** * Opens the submenu on when focused on the menu item. * * @param {Event} event The event object. * * @return {void} */ $adminmenu.on( 'focus.adminmenu', '.wp-submenu a', function( event ) { if ( $adminmenu.data( 'wp-responsive' ) ) { // The menu is in responsive mode, bail. return; } $( event.target ).closest( 'li.menu-top' ).addClass( 'opensub' ); /** * Closes the submenu on blur from the menu item. * * @param {Event} event The event object. * * @return {void} */ }).on( 'blur.adminmenu', '.wp-submenu a', function( event ) { if ( $adminmenu.data( 'wp-responsive' ) ) { return; } $( event.target ).closest( 'li.menu-top' ).removeClass( 'opensub' ); /** * Adjusts the size for the submenu. * * @return {void} */ }).find( 'li.wp-has-submenu.wp-not-current-submenu' ).on( 'focusin.adminmenu', function() { adjustSubmenu( $( this ) ); }); } /* * The `.below-h2` class is here just for backward compatibility with plugins * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570. * If '.wp-header-end' is found, append the notices after it otherwise * after the first h1 or h2 heading found within the main content. */ if ( ! $headerEnd.length ) { $headerEnd = $( '.wrap h1, .wrap h2' ).first(); } $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $headerEnd ); /** * Makes notices dismissible. * * @since 4.4.0 * * @return {void} */ function makeNoticesDismissible() { $( '.notice.is-dismissible' ).each( function() { var $el = $( this ), $button = $( '<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>' ); if ( $el.find( '.notice-dismiss' ).length ) { return; } // Ensure plain text. $button.find( '.screen-reader-text' ).text( __( 'Dismiss this notice.' ) ); $button.on( 'click.wp-dismiss-notice', function( event ) { event.preventDefault(); $el.fadeTo( 100, 0, function() { $el.slideUp( 100, function() { $el.remove(); }); }); }); $el.append( $button ); }); } $document.on( 'wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error', makeNoticesDismissible ); // Init screen meta. screenMeta.init(); /** * Checks a checkbox. * * This event needs to be delegated. Ticket #37973. * * @return {boolean} Returns whether a checkbox is checked or not. */ $body.on( 'click', 'tbody > tr > .check-column :checkbox', function( event ) { // Shift click to select a range of checkboxes. if ( 'undefined' == event.shiftKey ) { return true; } if ( event.shiftKey ) { if ( !lastClicked ) { return true; } checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ).filter( ':visible:enabled' ); first = checks.index( lastClicked ); last = checks.index( this ); checked = $(this).prop('checked'); if ( 0 < first && 0 < last && first != last ) { sliced = ( last > first ) ? checks.slice( first, last ) : checks.slice( last, first ); sliced.prop( 'checked', function() { if ( $(this).closest('tr').is(':visible') ) return checked; return false; }); } } lastClicked = this; // Toggle the "Select all" checkboxes depending if the other ones are all checked or not. var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked'); /** * Determines if all checkboxes are checked. * * @return {boolean} Returns true if there are no unchecked checkboxes. */ $(this).closest('table').children('thead, tfoot').find(':checkbox').prop('checked', function() { return ( 0 === unchecked.length ); }); return true; }); /** * Controls all the toggles on bulk toggle change. * * When the bulk checkbox is changed, all the checkboxes in the tables are changed accordingly. * When the shift-button is pressed while changing the bulk checkbox the checkboxes in the table are inverted. * * This event needs to be delegated. Ticket #37973. * * @param {Event} event The event object. * * @return {boolean} */ $body.on( 'click.wp-toggle-checkboxes', 'thead .check-column :checkbox, tfoot .check-column :checkbox', function( event ) { var $this = $(this), $table = $this.closest( 'table' ), controlChecked = $this.prop('checked'), toggle = event.shiftKey || $this.data('wp-toggle'); $table.children( 'tbody' ).filter(':visible') .children().children('.check-column').find(':checkbox') /** * Updates the checked state on the checkbox in the table. * * @return {boolean} True checks the checkbox, False unchecks the checkbox. */ .prop('checked', function() { if ( $(this).is(':hidden,:disabled') ) { return false; } if ( toggle ) { return ! $(this).prop( 'checked' ); } else if ( controlChecked ) { return true; } return false; }); $table.children('thead, tfoot').filter(':visible') .children().children('.check-column').find(':checkbox') /** * Syncs the bulk checkboxes on the top and bottom of the table. * * @return {boolean} True checks the checkbox, False unchecks the checkbox. */ .prop('checked', function() { if ( toggle ) { return false; } else if ( controlChecked ) { return true; } return false; }); }); /** * Shows row actions on focus of its parent container element or any other elements contained within. * * @return {void} */ $( '#wpbody-content' ).on({ focusin: function() { clearTimeout( transitionTimeout ); focusedRowActions = $( this ).find( '.row-actions' ); // transitionTimeout is necessary for Firefox, but Chrome won't remove the CSS class without a little help. $( '.row-actions' ).not( this ).removeClass( 'visible' ); focusedRowActions.addClass( 'visible' ); }, focusout: function() { // Tabbing between post title and .row-actions links needs a brief pause, otherwise // the .row-actions div gets hidden in transit in some browsers (ahem, Firefox). transitionTimeout = setTimeout( function() { focusedRowActions.removeClass( 'visible' ); }, 30 ); } }, '.table-view-list .has-row-actions' ); // Toggle list table rows on small screens. $( 'tbody' ).on( 'click', '.toggle-row', function() { $( this ).closest( 'tr' ).toggleClass( 'is-expanded' ); }); $('#default-password-nag-no').click( function() { setUserSetting('default_password_nag', 'hide'); $('div.default-password-nag').hide(); return false; }); /** * Handles tab keypresses in theme and plugin editor textareas. * * @param {Event} e The event object. * * @return {void} */ $('#newcontent').bind('keydown.wpevent_InsertTab', function(e) { var el = e.target, selStart, selEnd, val, scroll, sel; // After pressing escape key (keyCode: 27), the tab key should tab out of the textarea. if ( e.keyCode == 27 ) { // When pressing Escape: Opera 12 and 27 blur form fields, IE 8 clears them. e.preventDefault(); $(el).data('tab-out', true); return; } // Only listen for plain tab key (keyCode: 9) without any modifiers. if ( e.keyCode != 9 || e.ctrlKey || e.altKey || e.shiftKey ) return; // After tabbing out, reset it so next time the tab key can be used again. if ( $(el).data('tab-out') ) { $(el).data('tab-out', false); return; } selStart = el.selectionStart; selEnd = el.selectionEnd; val = el.value; // If any text is selected, replace the selection with a tab character. if ( document.selection ) { el.focus(); sel = document.selection.createRange(); sel.text = '\t'; } else if ( selStart >= 0 ) { scroll = this.scrollTop; el.value = val.substring(0, selStart).concat('\t', val.substring(selEnd) ); el.selectionStart = el.selectionEnd = selStart + 1; this.scrollTop = scroll; } // Cancel the regular tab functionality, to prevent losing focus of the textarea. if ( e.stopPropagation ) e.stopPropagation(); if ( e.preventDefault ) e.preventDefault(); }); // Reset page number variable for new filters/searches but not for bulk actions. See #17685. if ( pageInput.length ) { /** * Handles pagination variable when filtering the list table. * * Set the pagination argument to the first page when the post-filter form is submitted. * This happens when pressing the 'filter' button on the list table page. * * The pagination argument should not be touched when the bulk action dropdowns are set to do anything. * * The form closest to the pageInput is the post-filter form. * * @return {void} */ pageInput.closest('form').submit( function() { /* * action = bulk action dropdown at the top of the table * action2 = bulk action dropdow at the bottom of the table */ if ( $('select[name="action"]').val() == -1 && $('select[name="action2"]').val() == -1 && pageInput.val() == currentPage ) pageInput.val('1'); }); } /** * Resets the bulk actions when the search button is clicked. * * @return {void} */ $('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function () { $('select[name^="action"]').val('-1'); }); /** * Scrolls into view when focus.scroll-into-view is triggered. * * @param {Event} e The event object. * * @return {void} */ $('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){ if ( e.target.scrollIntoView ) e.target.scrollIntoView(false); }); /** * Disables the submit upload buttons when no data is entered. * * @return {void} */ (function(){ var button, input, form = $('form.wp-upload-form'); // Exit when no upload form is found. if ( ! form.length ) return; button = form.find('input[type="submit"]'); input = form.find('input[type="file"]'); /** * Determines if any data is entered in any file upload input. * * @since 3.5.0 * * @return {void} */ function toggleUploadButton() { // When no inputs have a value, disable the upload buttons. button.prop('disabled', '' === input.map( function() { return $(this).val(); }).get().join('')); } // Update the status initially. toggleUploadButton(); // Update the status when any file input changes. input.on('change', toggleUploadButton); })(); /** * Pins the menu while distraction-free writing is enabled. * * @param {Event} event Event data. * * @since 4.1.0 * * @return {void} */ function pinMenu( event ) { var windowPos = $window.scrollTop(), resizing = ! event || event.type !== 'scroll'; if ( isIOS || $adminmenu.data( 'wp-responsive' ) ) { return; } /* * When the menu is higher than the window and smaller than the entire page. * It should be adjusted to be able to see the entire menu. * * Otherwise it can be accessed normally. */ if ( height.menu + height.adminbar < height.window || height.menu + height.adminbar + 20 > height.wpwrap ) { unpinMenu(); return; } menuIsPinned = true; // If the menu is higher than the window, compensate on scroll. if ( height.menu + height.adminbar > height.window ) { // Check for overscrolling, this happens when swiping up at the top of the document in modern browsers. if ( windowPos < 0 ) { // Stick the menu to the top. if ( ! pinnedMenuTop ) { pinnedMenuTop = true; pinnedMenuBottom = false; $adminMenuWrap.css({ position: 'fixed', top: '', bottom: '' }); } return; } else if ( windowPos + height.window > $document.height() - 1 ) { // When overscrolling at the bottom, stick the menu to the bottom. if ( ! pinnedMenuBottom ) { pinnedMenuBottom = true; pinnedMenuTop = false; $adminMenuWrap.css({ position: 'fixed', top: '', bottom: 0 }); } return; } if ( windowPos > lastScrollPosition ) { // When a down scroll has been detected. // If it was pinned to the top, unpin and calculate relative scroll. if ( pinnedMenuTop ) { pinnedMenuTop = false; // Calculate new offset position. menuTop = $adminMenuWrap.offset().top - height.adminbar - ( windowPos - lastScrollPosition ); if ( menuTop + height.menu + height.adminbar < windowPos + height.window ) { menuTop = windowPos + height.window - height.menu - height.adminbar; } $adminMenuWrap.css({ position: 'absolute', top: menuTop, bottom: '' }); } else if ( ! pinnedMenuBottom && $adminMenuWrap.offset().top + height.menu < windowPos + height.window ) { // Pin it to the bottom. pinnedMenuBottom = true; $adminMenuWrap.css({ position: 'fixed', top: '', bottom: 0 }); } } else if ( windowPos < lastScrollPosition ) { // When a scroll up is detected. // If it was pinned to the bottom, unpin and calculate relative scroll. if ( pinnedMenuBottom ) { pinnedMenuBottom = false; // Calculate new offset position. menuTop = $adminMenuWrap.offset().top - height.adminbar + ( lastScrollPosition - windowPos ); if ( menuTop + height.menu > windowPos + height.window ) { menuTop = windowPos; } $adminMenuWrap.css({ position: 'absolute', top: menuTop, bottom: '' }); } else if ( ! pinnedMenuTop && $adminMenuWrap.offset().top >= windowPos + height.adminbar ) { // Pin it to the top. pinnedMenuTop = true; $adminMenuWrap.css({ position: 'fixed', top: '', bottom: '' }); } } else if ( resizing ) { // Window is being resized. pinnedMenuTop = pinnedMenuBottom = false; // Calculate the new offset. menuTop = windowPos + height.window - height.menu - height.adminbar - 1; if ( menuTop > 0 ) { $adminMenuWrap.css({ position: 'absolute', top: menuTop, bottom: '' }); } else { unpinMenu(); } } } lastScrollPosition = windowPos; } /** * Determines the height of certain elements. * * @since 4.1.0 * * @return {void} */ function resetHeights() { height = { window: $window.height(), wpwrap: $wpwrap.height(), adminbar: $adminbar.height(), menu: $adminMenuWrap.height() }; } /** * Unpins the menu. * * @since 4.1.0 * * @return {void} */ function unpinMenu() { if ( isIOS || ! menuIsPinned ) { return; } pinnedMenuTop = pinnedMenuBottom = menuIsPinned = false; $adminMenuWrap.css({ position: '', top: '', bottom: '' }); } /** * Pins and unpins the menu when applicable. * * @since 4.1.0 * * @return {void} */ function setPinMenu() { resetHeights(); if ( $adminmenu.data('wp-responsive') ) { $body.removeClass( 'sticky-menu' ); unpinMenu(); } else if ( height.menu + height.adminbar > height.window ) { pinMenu(); $body.removeClass( 'sticky-menu' ); } else { $body.addClass( 'sticky-menu' ); unpinMenu(); } } if ( ! isIOS ) { $window.on( 'scroll.pin-menu', pinMenu ); $document.on( 'tinymce-editor-init.pin-menu', function( event, editor ) { editor.on( 'wp-autoresize', resetHeights ); }); } /** * Changes the sortables and responsiveness of metaboxes. * * @since 3.8.0 * * @return {void} */ window.wpResponsive = { /** * Initializes the wpResponsive object. * * @since 3.8.0 * * @return {void} */ init: function() { var self = this; this.maybeDisableSortables = this.maybeDisableSortables.bind( this ); // Modify functionality based on custom activate/deactivate event. $document.on( 'wp-responsive-activate.wp-responsive', function() { self.activate(); }).on( 'wp-responsive-deactivate.wp-responsive', function() { self.deactivate(); }); $( '#wp-admin-bar-menu-toggle a' ).attr( 'aria-expanded', 'false' ); // Toggle sidebar when toggle is clicked. $( '#wp-admin-bar-menu-toggle' ).on( 'click.wp-responsive', function( event ) { event.preventDefault(); // Close any open toolbar submenus. $adminbar.find( '.hover' ).removeClass( 'hover' ); $wpwrap.toggleClass( 'wp-responsive-open' ); if ( $wpwrap.hasClass( 'wp-responsive-open' ) ) { $(this).find('a').attr( 'aria-expanded', 'true' ); $( '#adminmenu a:first' ).focus(); } else { $(this).find('a').attr( 'aria-expanded', 'false' ); } } ); // Add menu events. $adminmenu.on( 'click.wp-responsive', 'li.wp-has-submenu > a', function( event ) { if ( ! $adminmenu.data('wp-responsive') ) { return; } $( this ).parent( 'li' ).toggleClass( 'selected' ); event.preventDefault(); }); self.trigger(); $document.on( 'wp-window-resized.wp-responsive', $.proxy( this.trigger, this ) ); // This needs to run later as UI Sortable may be initialized later on $(document).ready(). $window.on( 'load.wp-responsive', this.maybeDisableSortables ); $document.on( 'postbox-toggled', this.maybeDisableSortables ); // When the screen columns are changed, potentially disable sortables. $( '#screen-options-wrap input' ).on( 'click', this.maybeDisableSortables ); }, /** * Disable sortables if there is only one metabox, or the screen is in one column mode. Otherwise, enable sortables. * * @since 5.3.0 * * @return {void} */ maybeDisableSortables: function() { var width = navigator.userAgent.indexOf('AppleWebKit/') > -1 ? $window.width() : window.innerWidth; if ( ( width <= 782 ) || ( 1 >= $sortables.find( '.ui-sortable-handle:visible' ).length && jQuery( '.columns-prefs-1 input' ).prop( 'checked' ) ) ) { this.disableSortables(); } else { this.enableSortables(); } }, /** * Changes properties of body and admin menu. * * Pins and unpins the menu and adds the auto-fold class to the body. * Makes the admin menu responsive and disables the metabox sortables. * * @since 3.8.0 * * @return {void} */ activate: function() { setPinMenu(); if ( ! $body.hasClass( 'auto-fold' ) ) { $body.addClass( 'auto-fold' ); } $adminmenu.data( 'wp-responsive', 1 ); this.disableSortables(); }, /** * Changes properties of admin menu and enables metabox sortables. * * Pin and unpin the menu. * Removes the responsiveness of the admin menu and enables the metabox sortables. * * @since 3.8.0 * * @return {void} */ deactivate: function() { setPinMenu(); $adminmenu.removeData('wp-responsive'); this.maybeDisableSortables(); }, /** * Sets the responsiveness and enables the overlay based on the viewport width. * * @since 3.8.0 * * @return {void} */ trigger: function() { var viewportWidth = getViewportWidth(); // Exclude IE < 9, it doesn't support @media CSS rules. if ( ! viewportWidth ) { return; } if ( viewportWidth <= 782 ) { if ( ! wpResponsiveActive ) { $document.trigger( 'wp-responsive-activate' ); wpResponsiveActive = true; } } else { if ( wpResponsiveActive ) { $document.trigger( 'wp-responsive-deactivate' ); wpResponsiveActive = false; } } if ( viewportWidth <= 480 ) { this.enableOverlay(); } else { this.disableOverlay(); } this.maybeDisableSortables(); }, /** * Inserts a responsive overlay and toggles the window. * * @since 3.8.0 * * @return {void} */ enableOverlay: function() { if ( $overlay.length === 0 ) { $overlay = $( '<div id="wp-responsive-overlay"></div>' ) .insertAfter( '#wpcontent' ) .hide() .on( 'click.wp-responsive', function() { $toolbar.find( '.menupop.hover' ).removeClass( 'hover' ); $( this ).hide(); }); } $toolbarPopups.on( 'click.wp-responsive', function() { $overlay.show(); }); }, /** * Disables the responsive overlay and removes the overlay. * * @since 3.8.0 * * @return {void} */ disableOverlay: function() { $toolbarPopups.off( 'click.wp-responsive' ); $overlay.hide(); }, /** * Disables sortables. * * @since 3.8.0 * * @return {void} */ disableSortables: function() { if ( $sortables.length ) { try { $sortables.sortable( 'disable' ); $sortables.find( '.ui-sortable-handle' ).addClass( 'is-non-sortable' ); } catch ( e ) {} } }, /** * Enables sortables. * * @since 3.8.0 * * @return {void} */ enableSortables: function() { if ( $sortables.length ) { try { $sortables.sortable( 'enable' ); $sortables.find( '.ui-sortable-handle' ).removeClass( 'is-non-sortable' ); } catch ( e ) {} } } }; /** * Add an ARIA role `button` to elements that behave like UI controls when JavaScript is on. * * @since 4.5.0 * * @return {void} */ function aria_button_if_js() { $( '.aria-button-if-js' ).attr( 'role', 'button' ); } $( document ).ajaxComplete( function() { aria_button_if_js(); }); /** * Get the viewport width. * * @since 4.7.0 * * @return {number|boolean} The current viewport width or false if the * browser doesn't support innerWidth (IE < 9). */ function getViewportWidth() { var viewportWidth = false; if ( window.innerWidth ) { // On phones, window.innerWidth is affected by zooming. viewportWidth = Math.max( window.innerWidth, document.documentElement.clientWidth ); } return viewportWidth; } /** * Sets the admin menu collapsed/expanded state. * * Sets the global variable `menuState` and triggers a custom event passing * the current menu state. * * @since 4.7.0 * * @return {void} */ function setMenuState() { var viewportWidth = getViewportWidth() || 961; if ( viewportWidth <= 782 ) { menuState = 'responsive'; } else if ( $body.hasClass( 'folded' ) || ( $body.hasClass( 'auto-fold' ) && viewportWidth <= 960 && viewportWidth > 782 ) ) { menuState = 'folded'; } else { menuState = 'open'; } $document.trigger( 'wp-menu-state-set', { state: menuState } ); } // Set the menu state when the window gets resized. $document.on( 'wp-window-resized.set-menu-state', setMenuState ); /** * Sets ARIA attributes on the collapse/expand menu button. * * When the admin menu is open or folded, updates the `aria-expanded` and * `aria-label` attributes of the button to give feedback to assistive * technologies. In the responsive view, the button is always hidden. * * @since 4.7.0 * * @return {void} */ $document.on( 'wp-menu-state-set wp-collapse-menu', function( event, eventData ) { var $collapseButton = $( '#collapse-button' ), ariaExpanded, ariaLabelText; if ( 'folded' === eventData.state ) { ariaExpanded = 'false'; ariaLabelText = __( 'Expand Main menu' ); } else { ariaExpanded = 'true'; ariaLabelText = __( 'Collapse Main menu' ); } $collapseButton.attr({ 'aria-expanded': ariaExpanded, 'aria-label': ariaLabelText }); }); window.wpResponsive.init(); setPinMenu(); setMenuState(); currentMenuItemHasPopup(); makeNoticesDismissible(); aria_button_if_js(); $document.on( 'wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu', setPinMenu ); // Set initial focus on a specific element. $( '.wp-initial-focus' ).focus(); // Toggle update details on update-core.php. $body.on( 'click', '.js-update-details-toggle', function() { var $updateNotice = $( this ).closest( '.js-update-details' ), $progressDiv = $( '#' + $updateNotice.data( 'update-details' ) ); /* * When clicking on "Show details" move the progress div below the update * notice. Make sure it gets moved just the first time. */ if ( ! $progressDiv.hasClass( 'update-details-moved' ) ) { $progressDiv.insertAfter( $updateNotice ).addClass( 'update-details-moved' ); } // Toggle the progress div visibility. $progressDiv.toggle(); // Toggle the Show Details button expanded state. $( this ).attr( 'aria-expanded', $progressDiv.is( ':visible' ) ); }); }); /** * Hides the update button for expired plugin or theme uploads. * * On the "Update plugin/theme from uploaded zip" screen, once the upload has expired, * hides the "Replace current with uploaded" button and displays a warning. * * @since 5.5.0 */ $document.ready( function( $ ) { var $overwrite, $warning; if ( ! $body.hasClass( 'update-php' ) ) { return; } $overwrite = $( 'a.update-from-upload-overwrite' ); $warning = $( '.update-from-upload-expired' ); if ( ! $overwrite.length || ! $warning.length ) { return; } window.setTimeout( function() { $overwrite.hide(); $warning.removeClass( 'hidden' ); if ( window.wp && window.wp.a11y ) { window.wp.a11y.speak( $warning.text() ); } }, 7140000 // 119 minutes. The uploaded file is deleted after 2 hours. ); } ); // Fire a custom jQuery event at the end of window resize. ( function() { var timeout; /** * Triggers the WP window-resize event. * * @since 3.8.0 * * @return {void} */ function triggerEvent() { $document.trigger( 'wp-window-resized' ); } /** * Fires the trigger event again after 200 ms. * * @since 3.8.0 * * @return {void} */ function fireOnce() { window.clearTimeout( timeout ); timeout = window.setTimeout( triggerEvent, 200 ); } $window.on( 'resize.wp-fire-once', fireOnce ); }()); // Make Windows 8 devices play along nicely. (function(){ if ( '-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/) ) { var msViewportStyle = document.createElement( 'style' ); msViewportStyle.appendChild( document.createTextNode( '@-ms-viewport{width:auto!important}' ) ); document.getElementsByTagName( 'head' )[0].appendChild( msViewportStyle ); } })(); }( jQuery, window ));
cc0-1.0
angussidney/metasmoke
db/migrate/20160123011023_fixed_mixed_content_errors.rb
208
# frozen_string_literal: true class FixedMixedContentErrors < ActiveRecord::Migration[4.2] def change Site.all.each do |site| site.site_logo.gsub!(/http:/, '') site.save! end end end
cc0-1.0
sudaraka94/che
plugins/plugin-java/che-plugin-java-ext-lang-client/src/main/java/org/eclipse/che/ide/ext/java/client/editor/JavaReconcileClient.java
3805
/* * Copyright (c) 2012-2017 Red Hat, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Red Hat, Inc. - initial API and implementation */ package org.eclipse.che.ide.ext.java.client.editor; import com.google.inject.Inject; import com.google.inject.Singleton; import org.eclipse.che.api.core.jsonrpc.commons.JsonRpcPromise; import org.eclipse.che.api.core.jsonrpc.commons.RequestTransmitter; import org.eclipse.che.ide.api.app.AppContext; import org.eclipse.che.ide.dto.DtoFactory; import org.eclipse.che.ide.ext.java.shared.dto.JavaClassInfo; import org.eclipse.che.ide.ext.java.shared.dto.ReconcileResult; import org.eclipse.che.ide.rest.AsyncRequestCallback; import org.eclipse.che.ide.rest.AsyncRequestFactory; import org.eclipse.che.ide.rest.DtoUnmarshallerFactory; import org.eclipse.che.ide.util.loging.Log; /** @author Evgen Vidolob */ @Singleton public class JavaReconcileClient { private static final String ENDPOINT_ID = "ws-agent"; private static final String OUTCOMING_METHOD = "request:java-reconcile"; private final RequestTransmitter requestTransmitter; private final DtoUnmarshallerFactory dtoUnmarshallerFactory; private final AsyncRequestFactory asyncRequestFactory; private final AppContext appContext; private DtoFactory dtoFactory; @Inject public JavaReconcileClient( DtoUnmarshallerFactory dtoUnmarshallerFactory, AppContext appContext, RequestTransmitter requestTransmitter, AsyncRequestFactory asyncRequestFactory, DtoFactory dtoFactory) { this.appContext = appContext; this.dtoUnmarshallerFactory = dtoUnmarshallerFactory; this.asyncRequestFactory = asyncRequestFactory; this.requestTransmitter = requestTransmitter; this.dtoFactory = dtoFactory; } /** * Sends request on server side to reconcile entity by given fqn * * @param fqn fully qualified name of entity to reconcile * @param projectPath path to the project which contains the entity to reconcile * @return promise which represents result of reconcile operation */ public JsonRpcPromise<ReconcileResult> reconcile(String fqn, String projectPath) { JavaClassInfo javaClassInfo = dtoFactory.createDto(JavaClassInfo.class).withFQN(fqn).withProjectPath(projectPath); return requestTransmitter .newRequest() .endpointId(ENDPOINT_ID) .methodName(OUTCOMING_METHOD) .paramsAsDto(javaClassInfo) .sendAndReceiveResultAsDto(ReconcileResult.class); } /** @deprecated in favor of {@link #reconcile(String, String)} */ @Deprecated public void reconcile(String projectPath, String fqn, final ReconcileCallback callback) { String url = appContext.getDevMachine().getWsAgentBaseUrl() + "/java/reconcile/?projectpath=" + projectPath + "&fqn=" + fqn; asyncRequestFactory .createGetRequest(url) .send( new AsyncRequestCallback<ReconcileResult>( dtoUnmarshallerFactory.newUnmarshaller(ReconcileResult.class)) { @Override protected void onSuccess(ReconcileResult result) { callback.onReconcile(result); } @Override protected void onFailure(Throwable exception) { Log.error(JavaReconcileClient.class, exception); } }); } /** @deprecated use {@link #reconcile(String, String)} which does not use callback */ @Deprecated public interface ReconcileCallback { void onReconcile(ReconcileResult result); } }
epl-1.0
Panthro/che-plugins
plugin-java/che-plugin-java-ext-java/src/main/java/org/eclipse/che/ide/ext/java/jdt/core/dom/Message.java
4445
/******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.che.ide.ext.java.jdt.core.dom; /** * Error message used to report potential errors found during the AST parsing or name resolution. Instances of this class are * immutable. * * @since 2.0 */ public class Message { /** The message. */ private String message; /** The character index into the original source string, or -1 if none. */ private int startPosition; /** * The length in characters of the original source file indicating where the source fragment corresponding to this message * ends. */ private int length; /** * Creates a message. * * @param message * the localized message reported by the compiler * @param startPosition * the 0-based character index into the original source file, or <code>-1</code> if no source position * information is to be recorded for this message * @throws IllegalArgumentException * if the message is null * @throws IllegalArgumentException * if the startPosition is lower than -1. */ public Message(String message, int startPosition) { if (message == null) { throw new IllegalArgumentException(); } if (startPosition < -1) { throw new IllegalArgumentException(); } this.message = message; this.startPosition = startPosition; this.length = 0; } /** * Creates a message. * * @param message * the localized message reported by the compiler * @param startPosition * the 0-based character index into the original source file, or <code>-1</code> if no source position * information is to be recorded for this message * @param length * the length in character of the original source file indicating where the source fragment corresponding to this * message ends. 0 or a negative number if none. A negative number will be converted to a 0-length. * @throws IllegalArgumentException * if the message is null * @throws IllegalArgumentException * if the startPosition is lower than -1. */ public Message(String message, int startPosition, int length) { if (message == null) { throw new IllegalArgumentException(); } if (startPosition < -1) { throw new IllegalArgumentException(); } this.message = message; this.startPosition = startPosition; if (length <= 0) { this.length = 0; } else { this.length = length; } } /** * Returns the localized message. * * @return the localized message */ public String getMessage() { return this.message; } /** * Returns the character index into the original source file. * * @return the 0-based character index, or <code>-1</code> if no source position information is recorded for this message * @see #getLength() * @deprecated Use {@link #getStartPosition()} instead. */ public int getSourcePosition() { return getStartPosition(); } /** * Returns the character index into the original source file. * * @return the 0-based character index, or <code>-1</code> if no source position information is recorded for this message * @see #getLength() */ public int getStartPosition() { return this.startPosition; } /** * Returns the length in characters of the original source file indicating where the source fragment corresponding to this * message ends. * * @return a length, or <code>0</code> if no source length information is recorded for this message * @see #getStartPosition() */ public int getLength() { return this.length; } }
epl-1.0
liveoak-io/liveoak
modules/mongo-gridfs/src/main/java/io/liveoak/mongo/gridfs/GridFSUserspaceResource.java
2785
/* * Copyright 2014 Red Hat, Inc. and/or its affiliates. * * Licensed under the Eclipse Public License version 1.0, available at http://www.eclipse.org/legal/epl-v10.html */ package io.liveoak.mongo.gridfs; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import com.mongodb.BasicDBObject; import com.mongodb.DBCollection; import com.mongodb.DBCursor; import com.mongodb.DBObject; import com.mongodb.gridfs.GridFS; import io.liveoak.spi.RequestContext; import io.liveoak.spi.resource.async.Resource; import org.bson.types.ObjectId; /** * @author <a href="mailto:marko.strukelj@gmail.com">Marko Strukelj</a> */ public class GridFSUserspaceResource extends GridFSDirectoryResource { private String rootDirId; public GridFSUserspaceResource(RequestContext ctx, GridFSDirectoryResource parent, String id, GridFSResourcePath remainingPath) { super(ctx, parent, id, remainingPath); } @Override public Resource member(RequestContext ctx, String id) { // delegate to the proper resource based on url if (".files".equals(id)) { return new GridFSFilesDirResource(ctx, this, id, path().append(id)); } else if (".blobs".equals(id)) { return new GridFSBlobsDirResource(ctx, this, id, path().append(id)); } else { return super.member(ctx, id); } } @Override public Collection<Resource> members(RequestContext ctx) throws Exception { DBCollection col = getFilesCollection(); String rootId = getRootDirId(col); if (rootId == null) { // no root yet => no children return Collections.emptyList(); } LinkedList members = new LinkedList<>(); // find children of root DBCursor result = col.find(new BasicDBObject("parent", new ObjectId(rootId))); while (result.hasNext()) { DBObject child = result.next(); members.add(wrapDBObject(path(), new GridFSDBObject(child))); } return members; } protected String getRootDirId(DBCollection col) { if (this.rootDirId == null) { DBObject rootObj = col.findOne(new BasicDBObject("parent", null).append("filename", "")); if (rootObj != null) { rootDirId = new GridFSDBObject(rootObj).getId().toString(); } } return rootDirId; } public DBCollection getFilesCollection() { return getRoot().getDB().getCollection(id() + ".files"); } public GridFS getGridFS() { return new GridFS(getRoot().getDB(), id()); } @Override public String toString() { return "[GridFSUserspaceResource: id=" + this.id() + ", path=" + path() + "]"; } }
epl-1.0
sarpkayanehta/mdht
cts2/plugins/org.openhealthtools.mdht.cts2.core/src/org/openhealthtools/mdht/cts2/core/impl/FilterImpl.java
4090
/******************************************************************************* * Copyright (c) 2012 David A Carlson. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * David A Carlson (XMLmodeling.com) - initial API and implementation *******************************************************************************/ package org.openhealthtools.mdht.cts2.core.impl; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.EObjectImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; import org.openhealthtools.mdht.cts2.core.CorePackage; import org.openhealthtools.mdht.cts2.core.Filter; import org.openhealthtools.mdht.cts2.core.FilterComponent; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Filter</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.openhealthtools.mdht.cts2.core.impl.FilterImpl#getComponent <em>Component</em>}</li> * </ul> * </p> * * @generated */ public class FilterImpl extends EObjectImpl implements Filter { /** * The cached value of the '{@link #getComponent() <em>Component</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @see #getComponent() * @generated * @ordered */ protected EList<FilterComponent> component; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ protected FilterImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override protected EClass eStaticClass() { return CorePackage.Literals.FILTER; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public EList<FilterComponent> getComponent() { if (component == null) { component = new EObjectContainmentEList<FilterComponent>( FilterComponent.class, this, CorePackage.FILTER__COMPONENT); } return component; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case CorePackage.FILTER__COMPONENT: return ((InternalEList<?>) getComponent()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CorePackage.FILTER__COMPONENT: return getComponent(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CorePackage.FILTER__COMPONENT: getComponent().clear(); getComponent().addAll((Collection<? extends FilterComponent>) newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CorePackage.FILTER__COMPONENT: getComponent().clear(); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CorePackage.FILTER__COMPONENT: return component != null && !component.isEmpty(); } return super.eIsSet(featureID); } } // FilterImpl
epl-1.0
jsight/windup
rules-java/tests/src/test/java/org/jboss/windup/rules/java/JavaClassXmlRulesTest.java
5746
package org.jboss.windup.rules.java; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collections; import javax.inject.Inject; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.RandomStringUtils; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.forge.arquillian.AddonDependencies; import org.jboss.forge.arquillian.AddonDependency; import org.jboss.forge.arquillian.archive.AddonArchive; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.windup.exec.WindupProcessor; import org.jboss.windup.exec.configuration.WindupConfiguration; import org.jboss.windup.graph.GraphContext; import org.jboss.windup.graph.GraphContextFactory; import org.jboss.windup.graph.model.ProjectModel; import org.jboss.windup.graph.model.resource.FileModel; import org.jboss.windup.graph.service.GraphService; import org.jboss.windup.reporting.model.InlineHintModel; import org.jboss.windup.rules.apps.java.config.ScanPackagesOption; import org.jboss.windup.rules.apps.java.config.SourceModeOption; import org.jboss.windup.rules.apps.java.scan.ast.JavaTypeReferenceModel; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(Arquillian.class) public class JavaClassXmlRulesTest { @Deployment @AddonDependencies({ @AddonDependency(name = "org.jboss.windup.config:windup-config"), @AddonDependency(name = "org.jboss.windup.exec:windup-exec"), @AddonDependency(name = "org.jboss.windup.rules.apps:windup-rules-java"), @AddonDependency(name = "org.jboss.windup.reporting:windup-reporting"), @AddonDependency(name = "org.jboss.windup.utils:windup-utils"), @AddonDependency(name = "org.jboss.forge.furnace.container:cdi") }) public static AddonArchive getDeployment() { return ShrinkWrap.create(AddonArchive.class) .addBeansXML() .addAsResource("org/jboss/windup/rules/java/JavaClassXmlRulesTest.windup.xml"); } @Inject private WindupProcessor processor; @Inject private GraphContextFactory factory; @Test public void testJavaClassCondition() throws IOException, InstantiationException, IllegalAccessException { try (GraphContext context = factory.create(getDefaultPath(), true)) { final String inputDir = "src/test/resources/org/jboss/windup/rules/java"; final Path outputPath = Paths.get(FileUtils.getTempDirectory().toString(), "windup_" + RandomStringUtils.randomAlphanumeric(6)); FileUtils.deleteDirectory(outputPath.toFile()); Files.createDirectories(outputPath); ProjectModel pm = context.getFramed().addFramedVertex(ProjectModel.class); pm.setName("Main Project"); FileModel inputPathFrame = context.getFramed().addFramedVertex(FileModel.class); inputPathFrame.setFilePath(inputDir); pm.addFileModel(inputPathFrame); pm.setRootFileModel(inputPathFrame); FileModel fileModel = context.getFramed().addFramedVertex(FileModel.class); fileModel.setFilePath(inputDir + "/JavaClassTestFile1.java"); pm.addFileModel(fileModel); fileModel = context.getFramed().addFramedVertex(FileModel.class); fileModel.setFilePath(inputDir + "/JavaClassTestFile2.java"); pm.addFileModel(fileModel); context.commit(); final WindupConfiguration processorConfig = new WindupConfiguration().setOutputDirectory(outputPath); processorConfig.setGraphContext(context); processorConfig.addInputPath(Paths.get(inputDir)); processorConfig.setOutputDirectory(outputPath); processorConfig.setOptionValue(ScanPackagesOption.NAME, Collections.singletonList("")); processorConfig.setOptionValue(SourceModeOption.NAME, true); processor.execute(processorConfig); GraphService<JavaTypeReferenceModel> typeRefService = new GraphService<>(context, JavaTypeReferenceModel.class); Iterable<JavaTypeReferenceModel> typeReferences = typeRefService.findAll(); int count = 0; for (JavaTypeReferenceModel ref : typeReferences) { String sourceSnippit = ref.getResolvedSourceSnippit(); System.out.println("Ref: " + ref); if (sourceSnippit.contains("org.apache.commons") || sourceSnippit.contains("org.jboss.windup.rules.java.JavaClassTestFile")) count++; } Assert.assertTrue(count >= 13); GraphService<InlineHintModel> hintService = new GraphService<>(context, InlineHintModel.class); Iterable<InlineHintModel> hints = hintService.findAll(); count = 0; for (InlineHintModel hint : hints) { if (hint.getHint().contains("Rule1")) count++; } Assert.assertEquals(3, count); count = 0; for (InlineHintModel hint : hints) { if (hint.getHint().contains("Rule2")) count++; } Assert.assertEquals(3, count); } } private Path getDefaultPath() { return FileUtils.getTempDirectory().toPath().resolve("Windup") .resolve("windupgraph_javaclasstest_" + RandomStringUtils.randomAlphanumeric(6)); } }
epl-1.0
mdht/mdht
cda/deprecated/org.openhealthtools.mdht.uml.cda.ihe/src/org/openhealthtools/mdht/uml/cda/ihe/impl/EncounterHistorySectionImpl.java
2397
/** * <copyright> * </copyright> * * $Id$ */ package org.openhealthtools.mdht.uml.cda.ihe.impl; import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.openhealthtools.mdht.uml.cda.ccd.impl.EncountersSectionImpl; import org.openhealthtools.mdht.uml.cda.ihe.EncounterEntry; import org.openhealthtools.mdht.uml.cda.ihe.EncounterHistorySection; import org.openhealthtools.mdht.uml.cda.ihe.IHEPackage; import org.openhealthtools.mdht.uml.cda.ihe.operations.EncounterHistorySectionOperations; import org.openhealthtools.mdht.uml.cda.util.CDAUtil; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Encounter History Section</b></em>'. * <!-- end-user-doc --> * <p> * </p> * * @generated */ public class EncounterHistorySectionImpl extends EncountersSectionImpl implements EncounterHistorySection { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EncounterHistorySectionImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return IHEPackage.Literals.ENCOUNTER_HISTORY_SECTION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateEncounterHistorySectionTemplateId(DiagnosticChain diagnostics, Map<Object, Object> context) { return EncounterHistorySectionOperations.validateEncounterHistorySectionTemplateId(this, diagnostics, context); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateEncounterHistorySectionEncounterEntry(DiagnosticChain diagnostics, Map<Object, Object> context) { return EncounterHistorySectionOperations.validateEncounterHistorySectionEncounterEntry(this, diagnostics, context); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<EncounterEntry> getEncounterEntries() { return EncounterHistorySectionOperations.getEncounterEntries(this); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EncounterHistorySection init() { CDAUtil.init(this); return this; } } //EncounterHistorySectionImpl
epl-1.0
ryenus/vbox
src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp
6309
/* $Id$ */ /** @file * * VBox frontends: Qt GUI ("VirtualBox"): * Global definitions and function implementations */ /* * Copyright (C) 2006-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. */ /* GUI includes: */ #include "UIDefs.h" /* Global definitions: */ const char* UIDefs::GUI_RenderMode = "GUI/RenderMode"; const char* UIDefs::GUI_LanguageId = "GUI/LanguageID"; const char* UIDefs::GUI_ExtPackName = "Oracle VM VirtualBox Extension Pack"; const char* UIDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning"; const char* UIDefs::GUI_RecentFolderHD = "GUI/RecentFolderHD"; const char* UIDefs::GUI_RecentFolderCD = "GUI/RecentFolderCD"; const char* UIDefs::GUI_RecentFolderFD = "GUI/RecentFolderFD"; const char* UIDefs::GUI_RecentListHD = "GUI/RecentListHD"; const char* UIDefs::GUI_RecentListCD = "GUI/RecentListCD"; const char* UIDefs::GUI_RecentListFD = "GUI/RecentListFD"; /* Selector-window definitions: */ const char* UIDefs::GUI_Input_SelectorShortcuts = "GUI/Input/SelectorShortcuts"; const char* UIDefs::GUI_LastSelectorWindowPosition = "GUI/LastWindowPosition"; const char* UIDefs::GUI_SplitterSizes = "GUI/SplitterSizes"; const char* UIDefs::GUI_Toolbar = "GUI/Toolbar"; const char* UIDefs::GUI_Statusbar = "GUI/Statusbar"; const char* UIDefs::GUI_PreviewUpdate = "GUI/PreviewUpdate"; const char* UIDefs::GUI_DetailsPageBoxes = "GUI/DetailsPageBoxes"; const char* UIDefs::GUI_SelectorVMPositions = "GUI/SelectorVMPositions"; const char* UIDefs::GUI_LastVMSelected = "GUI/LastVMSelected"; const char* UIDefs::GUI_LastItemSelected = "GUI/LastItemSelected"; const char* UIDefs::GUI_GroupDefinitions = "GUI/GroupDefinitions"; /* Machine-window definitions: */ const char* UIDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts"; const char* UIDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition"; const char* UIDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition"; const char* UIDefs::GUI_LastWindowState_Max = "max"; const char* UIDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint"; const char* UIDefs::GUI_LastGuestSizeHintWasFullscreen = "GUI/LastGuestSizeHintWasFullscreen"; const char* UIDefs::GUI_Fullscreen = "GUI/Fullscreen"; const char* UIDefs::GUI_Seamless = "GUI/Seamless"; const char* UIDefs::GUI_Scale = "GUI/Scale"; const char* UIDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen"; const char* UIDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest"; const char* UIDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime"; const char* UIDefs::GUI_PassCAD = "GUI/PassCAD"; /* Mini tool-bar definitions: */ const char* UIDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar"; const char* UIDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment"; const char* UIDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide"; /* Close-dialog definitions: */ const char* UIDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions"; const char* UIDefs::GUI_LastCloseAction = "GUI/LastCloseAction"; const char* UIDefs::GUI_CloseActionHook = "GUI/CloseActionHook"; /* Wizards definitions: */ const char* UIDefs::GUI_FirstRun = "GUI/FirstRun"; const char* UIDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards"; const char* UIDefs::GUI_Export_StorageType = "GUI/Export/StorageType"; const char* UIDefs::GUI_Export_Username = "GUI/Export/Username"; const char* UIDefs::GUI_Export_Hostname = "GUI/Export/Hostname"; const char* UIDefs::GUI_Export_Bucket = "GUI/Export/Bucket"; /* Message-center definitions: */ const char* UIDefs::GUI_SuppressMessages = "GUI/SuppressMessages"; const char* UIDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption"; /* Registration dialog definitions: */ const char* UIDefs::GUI_RegistrationDlgWinID = "GUI/RegistrationDlgWinID"; const char* UIDefs::GUI_RegistrationData = "GUI/SUNOnlineData"; /* Update manager definitions: */ const char* UIDefs::GUI_UpdateDate = "GUI/UpdateDate"; const char* UIDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount"; /* Information dialog definitions: */ const char* UIDefs::GUI_InfoDlgState = "GUI/InfoDlgState"; #ifdef VBOX_WITH_DEBUGGER_GUI /* Debugger GUI declarations: */ const char* UIDefs::GUI_DbgEnabled = "GUI/Dbg/Enabled"; const char* UIDefs::GUI_DbgAutoShow = "GUI/Dbg/AutoShow"; #endif /* VBOX_WITH_DEBUGGER_GUI */ #ifdef Q_WS_X11 /* License GUI declarations: */ const char* UIDefs::GUI_LicenseKey = "GUI/LicenseAgreed"; #endif /* Q_WS_X11 */ #ifdef Q_WS_MAC /* Mac dock declarations: */ const char* UIDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled"; const char* UIDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor"; const char* UIDefs::GUI_PresentationModeEnabled = "GUI/PresentationModeEnabled"; #endif /* Q_WS_MAC */ #ifdef VBOX_WITH_VIDEOHWACCEL /* Video-acceleration declarations: */ const char* UIDefs::GUI_Accelerate2D_StretchLinear = "GUI/Accelerate2D/StretchLinear"; const char* UIDefs::GUI_Accelerate2D_PixformatYV12 = "GUI/Accelerate2D/PixformatYV12"; const char* UIDefs::GUI_Accelerate2D_PixformatUYVY = "GUI/Accelerate2D/PixformatUYVY"; const char* UIDefs::GUI_Accelerate2D_PixformatYUY2 = "GUI/Accelerate2D/PixformatYUY2"; const char* UIDefs::GUI_Accelerate2D_PixformatAYUV = "GUI/Accelerate2D/PixformatAYUV"; #endif /* VBOX_WITH_VIDEOHWACCEL */ #ifdef VBOX_GUI_WITH_SYSTRAY /* Tray icon declarations: */ const char* UIDefs::GUI_TrayIconWinID = "GUI/TrayIcon/WinID"; const char* UIDefs::GUI_TrayIconEnabled = "GUI/TrayIcon/Enabled"; const char* UIDefs::GUI_MainWindowCount = "GUI/MainWindowCount"; #endif /* VBOX_GUI_WITH_SYSTRAY */ /* File extensions definitions: */ QStringList UIDefs::VBoxFileExts = QStringList() << "xml" << "vbox"; QStringList UIDefs::VBoxExtPackFileExts = QStringList() << "vbox-extpack"; QStringList UIDefs::OVFFileExts = QStringList() << "ovf" << "ova";
gpl-2.0
LaPaillasse/network
wp-content/themes/wiki-lapaillasse/searchform.php
1058
<?php /** * The template for displaying search forms in iPanelThemes Knowledgebase * * @package iPanelThemes Knowledgebase */ $stext = esc_attr_x( 'Search Knowledgebase&hellip;', 'placeholder', 'ipt_kb' ); ?> <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <?php // Check to see if category, if yes, then modify the search parameters ?> <?php if ( is_category() ) : ?> <input type="hidden" name="cat" value="<?php echo esc_attr( get_query_var( 'cat' ) ); ?>" /> <?php $stext = esc_attr( sprintf( __( 'Search Knowledgebase for %s&hellip;', 'ipt_kb' ), single_cat_title( '', false ) ) ); ?> <?php endif; ?> <div class="form-group"> <div class="input-group input-group-lg"> <input type="search" class="search-field form-control" placeholder="<?php echo $stext; ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" /> <span class="input-group-btn"><button type="submit" class="btn btn-default"><span class="ipt-icon-search"></span></button></span> </div> </div> </form>
gpl-2.0
nehresma/bvcms
CmsWeb/Areas/Manage/Models/UsersModel.cs
4291
using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using CmsData; using UtilityExtensions; namespace CmsWeb.Models { public class UsersModel : PagerModel2 { public class UserInfo { public int? peopleid { get; set; } public int? userid { get; set; } public string username { get; set; } public string name { get; set; } public bool online { get; set; } public string email { get; set; } public DateTime? activity { get; set; } public string roles { get; set; } } public string name { get; set; } public string[] Role { get; set; } int? _count; public int Count() { if (!_count.HasValue) _count = FetchUsers().Count(); return _count.Value; } public UsersModel() { Sort = "Activity"; Direction = "desc"; GetCount = Count; } public IEnumerable<UserInfo> Users() { var q = ApplySort(); var q2 = q.Skip(StartRow).Take(PageSize).ToList(); var dt = DateTime.Now.AddMinutes(-10); var q3 = from u in q2 let online = u.LastActivityDate > dt select new UserInfo { userid = u.UserId, name = u.Person.Name, username = u.Username, email = u.EmailAddress, online = online, peopleid = u.PeopleId, activity = u.LastActivityDate, roles = string.Join(", ", u.Roles.OrderBy(rr => rr)) }; return q3; } public IEnumerable<SelectListItem> Roles() { var q = from r in DbUtil.Db.Roles orderby r.RoleName select new SelectListItem { Value = r.RoleId.ToString(), Text = r.RoleName }; var list = q.ToList(); list.Insert(0, new SelectListItem { Value = "-1", Text = "(not assigned)" }); list.Insert(0, new SelectListItem { Value = "0", Text = "(not specified)", Selected = true}); return list; } private IQueryable<User> _users; private IQueryable<User> FetchUsers() { if (_users != null) return _users; _users = from u in DbUtil.Db.Users select u; if (name.AllDigits()) _users = from u in _users where u.UserId == name.ToInt() select u; else if (name.HasValue()) _users = from u in _users where u.Username == name || u.Person.Name.Contains(name) select u; if (Role != null && Role.Length > 0) { var rids = Role.Select(rr => rr.ToInt()).ToArray(); _users = from u in _users /* below we use a trick for match all * if they select more than role to match on * then we get a count of the number of roles that match * and that count should equal the length of the array. * We also look for not specified (-1) and not assigned (0) */ let rc = u.UserRoles.Count(ur => rids.Contains(ur.RoleId)) where rc == Role.Length || rids[0] <= 0 where !u.UserRoles.Any() || rids[0] != -1 select u; } return _users; } public IQueryable<User> ApplySort() { var q = FetchUsers(); if (Direction == "asc") switch (Sort) { case "User": q = from u in q orderby u.Username select u; break; case "Name": q = from u in q orderby u.Person.Name select u; break; case "Online": q = from u in q orderby u.Person.Name select u; break; case "Email": q = from u in q orderby u.EmailAddress select u; break; case "Activity": q = from u in q orderby u.LastActivityDate select u; break; } else switch (Sort) { case "User": q = from u in q orderby u.Username descending select u; break; case "Name": q = from u in q orderby u.Person.Name descending select u; break; case "Online": q = from u in q orderby u.Person.Name descending select u; break; case "Email": q = from u in q orderby u.EmailAddress descending select u; break; case "Activity": q = from u in q orderby u.LastActivityDate descending select u; break; } return q; } } }
gpl-2.0
prabhu9484/ClusterLogic
administrator/components/com_phocagallery/models/phocagallerycos.php
4196
<?php /* * @package Joomla 1.5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * * @component Phoca Gallery * @copyright Copyright (C) Jan Pavelka www.phoca.cz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ defined('_JEXEC') or die(); jimport('joomla.application.component.model'); jimport( 'joomla.filesystem.folder' ); jimport( 'joomla.filesystem.file' ); class PhocaGalleryCpModelPhocaGalleryCos extends JModel { var $_data = null; var $_total = null; var $_pagination = null; var $_context = 'com_phocagallery.phocagalleryco'; function __construct() { parent::__construct(); global $mainframe, $option; // Get the pagination request variables $limit = $mainframe->getUserStateFromRequest( $this->_context.'.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' ); $limitstart = $mainframe->getUserStateFromRequest( $this->_context.'.limitstart', 'limitstart', 0, 'int' ); // In case limit has been changed, adjust limitstart accordingly $limitstart = ($limit != 0 ? (floor($limitstart / $limit) * $limit) : 0); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); } function getData() { if (empty($this->_data)) { $query = $this->_buildQuery(); $this->_data = $this->_getList($query, $this->getState('limitstart'), $this->getState('limit')); } return $this->_data; } function getTotal() { if (empty($this->_total)) { $query = $this->_buildQuery(); $this->_total = $this->_getListCount($query); } return $this->_total; } function getPagination() { if (empty($this->_pagination)) { jimport('joomla.html.pagination'); $this->_pagination = new JPagination( $this->getTotal(), $this->getState('limitstart'), $this->getState('limit') ); } return $this->_pagination; } function _buildQuery() { $where = $this->_buildContentWhere(); $orderby = $this->_buildContentOrderBy(); $query = ' SELECT a.*, cc.title AS category, ua.name AS editor, u.id AS commentuserid, u.username AS commentusername ' . ' FROM #__phocagallery_comments AS a ' . ' LEFT JOIN #__phocagallery_categories AS cc ON cc.id = a.catid ' . ' LEFT JOIN #__users AS ua ON ua.id = a.checked_out ' . ' LEFT JOIN #__users AS u ON u.id = a.userid' . $where . ' GROUP by a.id' . $orderby ; return $query; } function _buildContentOrderBy() { global $mainframe; $filter_order = $mainframe->getUserStateFromRequest( $this->_context.'.filter_order', 'filter_order', 'a.ordering', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( $this->_context.'.filter_order_Dir', 'filter_order_Dir', '', 'word' ); if ($filter_order == 'a.ordering'){ $orderby = ' ORDER BY category, a.ordering '.$filter_order_Dir; } else { $orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir.' , category, a.ordering '; } return $orderby; } function _buildContentWhere() { global $mainframe; $filter_state = $mainframe->getUserStateFromRequest( $this->_context.'.filter_state', 'filter_state', '', 'word' ); $filter_catid = $mainframe->getUserStateFromRequest( $this->_context.'.filter_catid', 'filter_catid', 0, 'int' ); $filter_order = $mainframe->getUserStateFromRequest( $this->_context.'.filter_order', 'filter_order', 'a.ordering', 'cmd' ); $filter_order_Dir = $mainframe->getUserStateFromRequest( $this->_context.'.filter_order_Dir', 'filter_order_Dir', '', 'word' ); $search = $mainframe->getUserStateFromRequest( $this->_context.'.search', 'search', '', 'string' ); $search = JString::strtolower( $search ); $where = array(); if ($filter_catid > 0) { $where[] = 'a.catid = '.(int) $filter_catid; } if ($search) { $where[] = 'LOWER(a.title) LIKE '.$this->_db->Quote('%'.$search.'%'); } if ( $filter_state ) { if ( $filter_state == 'P' ) { $where[] = 'a.published = 1'; } else if ($filter_state == 'U' ) { $where[] = 'a.published = 0'; } } $where = ( count( $where ) ? ' WHERE '. implode( ' AND ', $where ) : '' ); return $where; } } ?>
gpl-2.0
tsuibin/qtextended
qtopiacore/qt/tools/assistant/compat/tabbedbrowser.cpp
15705
/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the Qt Assistant of the Qt Toolkit. ** ** Commercial Usage ** Licensees holding valid Qt Commercial licenses may use this file in ** accordance with the Qt Commercial License Agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Nokia. ** ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License 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. In addition, as a special ** exception, Nokia gives you certain additional rights. These rights ** are described in the Nokia Qt GPL Exception version 1.3, included in ** the file GPL_EXCEPTION.txt in this package. ** ** Qt for Windows(R) Licensees ** As a special exception, Nokia, as the sole copyright holder for Qt ** Designer, grants users of the Qt/Eclipse Integration plug-in the ** right for the Qt/Eclipse Integration to link to functionality ** provided by Qt Designer and its related libraries. ** ** If you are unsure which license is appropriate for your use, please ** contact the sales department at qt-sales@nokia.com. ** ****************************************************************************/ #include "tabbedbrowser.h" #include "mainwindow.h" #include "helpwindow.h" #include "config.h" #include <QStyleOptionTab> #include <QToolTip> #include <QFileInfo> #include <QToolButton> #include <QPixmap> #include <QIcon> #include <QStyle> #include <QTimer> #include <QStackedWidget> #include <QTimer> #include <QTextBlock> #include <QKeyEvent> QT_BEGIN_NAMESPACE #ifdef Q_WS_MAC const QLatin1String ImageLocation(":trolltech/assistant/images/mac/"); #else const QLatin1String ImageLocation(":trolltech/assistant/images/win/"); #endif TabbedBrowser::TabbedBrowser(MainWindow *parent) : QWidget(parent) { ui.setupUi(this); init(); QStackedWidget *stack = qFindChild<QStackedWidget*>(ui.tab); Q_ASSERT(stack); stack->setContentsMargins(0, 0, 0, 0); connect(stack, SIGNAL(currentChanged(int)), parent, SLOT(browserTabChanged())); QPalette p = palette(); p.setColor(QPalette::Inactive, QPalette::Highlight, p.color(QPalette::Active, QPalette::Highlight)); p.setColor(QPalette::Inactive, QPalette::HighlightedText, p.color(QPalette::Active, QPalette::HighlightedText)); setPalette(p); } TabbedBrowser::~TabbedBrowser() { } MainWindow *TabbedBrowser::mainWindow() const { return static_cast<MainWindow*>(parentWidget()); } void TabbedBrowser::forward() { currentBrowser()->forward(); emit browserUrlChanged(currentBrowser()->source().toString()); } void TabbedBrowser::backward() { currentBrowser()->backward(); emit browserUrlChanged(currentBrowser()->source().toString()); } void TabbedBrowser::setSource( const QString &ref ) { HelpWindow * win = currentBrowser(); win->setSource(ref); } void TabbedBrowser::reload() { currentBrowser()->reload(); } void TabbedBrowser::home() { currentBrowser()->home(); } HelpWindow *TabbedBrowser::currentBrowser() const { return static_cast<HelpWindow*>(ui.tab->currentWidget()); } void TabbedBrowser::nextTab() { if(ui.tab->currentIndex()<=ui.tab->count()-1) ui.tab->setCurrentIndex(ui.tab->currentIndex()+1); } void TabbedBrowser::previousTab() { int idx = ui.tab->currentIndex()-1; if(idx>=0) ui.tab->setCurrentIndex(idx); } HelpWindow *TabbedBrowser::createHelpWindow() { MainWindow *mainWin = mainWindow(); HelpWindow *win = new HelpWindow(mainWin, 0); win->setFrameStyle(QFrame::NoFrame); win->setPalette(palette()); win->setSearchPaths(Config::configuration()->mimePaths()); ui.tab->addTab(win, tr("...")); connect(win, SIGNAL(highlighted(QString)), (const QObject*) (mainWin->statusBar()), SLOT(showMessage(QString))); connect(win, SIGNAL(backwardAvailable(bool)), mainWin, SLOT(backwardAvailable(bool))); connect(win, SIGNAL(forwardAvailable(bool)), mainWin, SLOT(forwardAvailable(bool))); connect(win, SIGNAL(sourceChanged(QUrl)), this, SLOT(sourceChanged())); ui.tab->cornerWidget(Qt::TopRightCorner)->setEnabled(ui.tab->count() > 1); win->installEventFilter(this); win->viewport()->installEventFilter(this); ui.editFind->installEventFilter(this); return win; } HelpWindow *TabbedBrowser::newBackgroundTab() { HelpWindow *win = createHelpWindow(); emit tabCountChanged(ui.tab->count()); return win; } void TabbedBrowser::newTab(const QString &lnk) { QString link(lnk); if(link.isNull()) { HelpWindow *w = currentBrowser(); if(w) link = w->source().toString(); } HelpWindow *win = createHelpWindow(); ui.tab->setCurrentIndex(ui.tab->indexOf(win)); if(!link.isNull()) { win->setSource(link); } emit tabCountChanged(ui.tab->count()); } void TabbedBrowser::zoomIn() { currentBrowser()->zoomIn(); Config::configuration()->setFontPointSize(currentBrowser()->font().pointSizeF()); } void TabbedBrowser::zoomOut() { currentBrowser()->zoomOut(); Config::configuration()->setFontPointSize(currentBrowser()->font().pointSizeF()); } void TabbedBrowser::init() { lastCurrentTab = 0; while(ui.tab->count()) { QWidget *page = ui.tab->widget(0); ui.tab->removeTab(0); delete page; } connect(ui.tab, SIGNAL(currentChanged(int)), this, SLOT(transferFocus())); QTabBar *tabBar = qFindChild<QTabBar*>(ui.tab); QStyleOptionTab opt; if (tabBar) { opt.init(tabBar); opt.shape = tabBar->shape(); tabBar->setContextMenuPolicy(Qt::CustomContextMenu); connect(tabBar, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(openTabMenu(const QPoint&))); } // workaround for sgi style QPalette pal = palette(); pal.setColor(QPalette::Active, QPalette::Button, pal.color(QPalette::Active, QPalette::Window)); pal.setColor(QPalette::Disabled, QPalette::Button, pal.color(QPalette::Disabled, QPalette::Window)); pal.setColor(QPalette::Inactive, QPalette::Button, pal.color(QPalette::Inactive, QPalette::Window)); QToolButton *newTabButton = new QToolButton(this); ui.tab->setCornerWidget(newTabButton, Qt::TopLeftCorner); newTabButton->setCursor(Qt::ArrowCursor); newTabButton->setAutoRaise(true); newTabButton->setIcon(QIcon(ImageLocation + QLatin1String("addtab.png"))); QObject::connect(newTabButton, SIGNAL(clicked()), this, SLOT(newTab())); newTabButton->setToolTip(tr("Add page")); QToolButton *closeTabButton = new QToolButton(this); closeTabButton->setPalette(pal); ui.tab->setCornerWidget(closeTabButton, Qt::TopRightCorner); closeTabButton->setCursor(Qt::ArrowCursor); closeTabButton->setAutoRaise(true); closeTabButton->setIcon(QIcon(ImageLocation + QLatin1String("closetab.png"))); QObject::connect(closeTabButton, SIGNAL(clicked()), this, SLOT(closeTab())); closeTabButton->setToolTip(tr("Close page")); closeTabButton->setEnabled(false); QObject::connect(ui.toolClose, SIGNAL(clicked()), ui.frameFind, SLOT(hide())); QObject::connect(ui.toolPrevious, SIGNAL(clicked()), this, SLOT(findPrevious())); QObject::connect(ui.toolNext, SIGNAL(clicked()), this, SLOT(findNext())); QObject::connect(ui.editFind, SIGNAL(returnPressed()), this, SLOT(findNext())); QObject::connect(ui.editFind, SIGNAL(textEdited(const QString&)), this, SLOT(find(QString))); ui.frameFind->setVisible(false); ui.labelWrapped->setVisible(false); autoHideTimer = new QTimer(this); autoHideTimer->setInterval(5000); autoHideTimer->setSingleShot(true); QObject::connect(autoHideTimer, SIGNAL(timeout()), ui.frameFind, SLOT(hide())); } void TabbedBrowser::updateTitle(const QString &title) { ui.tab->setTabText(ui.tab->indexOf(currentBrowser()), title.trimmed()); } void TabbedBrowser::newTab() { newTab(QString()); } void TabbedBrowser::transferFocus() { if(currentBrowser()) { currentBrowser()->setFocus(); } mainWindow()->setWindowTitle(Config::configuration()->title() + QLatin1String(" - ") + currentBrowser()->documentTitle()); } void TabbedBrowser::initHelpWindow(HelpWindow * /*win*/) { } void TabbedBrowser::setup() { newTab(QString()); } void TabbedBrowser::copy() { currentBrowser()->copy(); } void TabbedBrowser::closeTab() { if(ui.tab->count()==1) return; HelpWindow *win = currentBrowser(); mainWindow()->removePendingBrowser(win); ui.tab->removeTab(ui.tab->indexOf(win)); QTimer::singleShot(0, win, SLOT(deleteLater())); ui.tab->cornerWidget(Qt::TopRightCorner)->setEnabled(ui.tab->count() > 1); emit tabCountChanged(ui.tab->count()); } QStringList TabbedBrowser::sources() const { QStringList lst; int cnt = ui.tab->count(); for(int i=0; i<cnt; i++) { lst.append(((QTextBrowser*) ui.tab->widget(i))->source().toString()); } return lst; } QList<HelpWindow*> TabbedBrowser::browsers() const { QList<HelpWindow*> list; for (int i=0; i<ui.tab->count(); ++i) { Q_ASSERT(qobject_cast<HelpWindow*>(ui.tab->widget(i))); list.append(static_cast<HelpWindow*>(ui.tab->widget(i))); } return list; } void TabbedBrowser::sourceChanged() { HelpWindow *win = qobject_cast<HelpWindow *>(QObject::sender()); Q_ASSERT(win); QString docTitle(win->documentTitle()); if (docTitle.isEmpty()) docTitle = QLatin1String("..."); // Make the classname in the title a bit more visible (otherwise // we just see the "Qt 4.0 : Q..." which isn't really helpful ;-) QString qtTitle = QLatin1String("Qt ") + QString::number( (QT_VERSION >> 16) & 0xff ) + QLatin1String(".") + QString::number( (QT_VERSION >> 8) & 0xff ) + QLatin1String(": "); if (docTitle.startsWith(qtTitle)) docTitle = docTitle.mid(qtTitle.length()); setTitle(win, docTitle); ui.frameFind->hide(); ui.labelWrapped->hide(); win->setTextCursor(win->cursorForPosition(QPoint(0, 0))); } void TabbedBrowser::setTitle(HelpWindow *win, const QString &title) { const QString tt = title.trimmed(); ui.tab->setTabText(ui.tab->indexOf(win), tt); if (win == currentBrowser()) mainWindow()->setWindowTitle(Config::configuration()->title() + QLatin1String(" - ") + tt); } void TabbedBrowser::keyPressEvent(QKeyEvent *e) { int key = e->key(); QString ttf = ui.editFind->text(); QString text = e->text(); if (ui.frameFind->isVisible()) { switch (key) { case Qt::Key_Escape: ui.frameFind->hide(); ui.labelWrapped->hide(); return; case Qt::Key_Backspace: ttf.chop(1); break; case Qt::Key_Return: case Qt::Key_Enter: // Return/Enter key events are not accepted by QLineEdit return; default: if (text.isEmpty()) { QWidget::keyPressEvent(e); return; } ttf += text; } } else { if (text.isEmpty() || text[0].isSpace() || !text[0].isPrint()) { QWidget::keyPressEvent(e); return; } if (text.startsWith(QLatin1Char('/'))) { ui.editFind->clear(); find(); return; } ttf = text; ui.frameFind->show(); } ui.editFind->setText(ttf); find(ttf, false, false); } void TabbedBrowser::findNext() { find(ui.editFind->text(), true, false); } void TabbedBrowser::findPrevious() { find(ui.editFind->text(), false, true); } void TabbedBrowser::find() { ui.frameFind->show(); ui.editFind->setFocus(Qt::ShortcutFocusReason); ui.editFind->selectAll(); autoHideTimer->stop(); } void TabbedBrowser::find(QString ttf, bool forward, bool backward) { HelpWindow *browser = currentBrowser(); QTextDocument *doc = browser->document(); QString oldText = ui.editFind->text(); QTextCursor c = browser->textCursor(); QTextDocument::FindFlags options; QPalette p = ui.editFind->palette(); p.setColor(QPalette::Active, QPalette::Base, Qt::white); if (c.hasSelection()) c.setPosition(forward ? c.position() : c.anchor(), QTextCursor::MoveAnchor); QTextCursor newCursor = c; if (!ttf.isEmpty()) { if (backward) options |= QTextDocument::FindBackward; if (ui.checkCase->isChecked()) options |= QTextDocument::FindCaseSensitively; if (ui.checkWholeWords->isChecked()) options |= QTextDocument::FindWholeWords; newCursor = doc->find(ttf, c, options); ui.labelWrapped->hide(); if (newCursor.isNull()) { QTextCursor ac(doc); ac.movePosition(options & QTextDocument::FindBackward ? QTextCursor::End : QTextCursor::Start); newCursor = doc->find(ttf, ac, options); if (newCursor.isNull()) { p.setColor(QPalette::Active, QPalette::Base, QColor(255, 102, 102)); newCursor = c; } else ui.labelWrapped->show(); } } if (!ui.frameFind->isVisible()) ui.frameFind->show(); browser->setTextCursor(newCursor); ui.editFind->setPalette(p); if (!ui.editFind->hasFocus()) autoHideTimer->start(); } bool TabbedBrowser::eventFilter(QObject *o, QEvent *e) { if (o == ui.editFind) { if (e->type() == QEvent::FocusIn && autoHideTimer->isActive()) autoHideTimer->stop(); } else if (e->type() == QEvent::KeyPress && ui.frameFind->isVisible()) { // assume textbrowser QKeyEvent *ke = static_cast<QKeyEvent *>(e); if (ke->key() == Qt::Key_Space) { keyPressEvent(ke); return true; } } return QWidget::eventFilter(o, e); } void TabbedBrowser::openTabMenu(const QPoint& pos) { QTabBar *tabBar = qFindChild<QTabBar*>(ui.tab); QMenu m(QLatin1String(""), tabBar); QAction *new_action = m.addAction(tr("New Tab")); QAction *close_action = m.addAction(tr("Close Tab")); QAction *close_others_action = m.addAction(tr("Close Other Tabs")); if (tabBar->count() == 1) { close_action->setEnabled(false); close_others_action->setEnabled(false); } QAction *action_picked = m.exec(tabBar->mapToGlobal(pos)); if (!action_picked) return; if (action_picked == new_action) { newTab(); return; } QList<HelpWindow*> windowList = browsers(); for (int i = 0; i < tabBar->count(); ++i) { if (tabBar->tabRect(i).contains(pos)) { HelpWindow *win = static_cast<HelpWindow*>(ui.tab->widget(i)); if (action_picked == close_action) { mainWindow()->removePendingBrowser(win); QTimer::singleShot(0, win, SLOT(deleteLater())); } windowList.removeOne(win); break; } } if (action_picked == close_others_action) { foreach (HelpWindow* win, windowList) { mainWindow()->removePendingBrowser(win); QTimer::singleShot(0, win, SLOT(deleteLater())); windowList.removeOne(win); } } ui.tab->cornerWidget(Qt::TopRightCorner)->setEnabled(windowList.count() > 1); emit tabCountChanged(windowList.count()); } QT_END_NAMESPACE
gpl-2.0
tamtranvn2012/jobroller
wp-content/themes/old backup/jobroller7-6-2013/header.php
1687
<div id="topNav"> <div class="inner"> <?php wp_nav_menu( array( 'theme_location' => 'top', 'sort_column' => 'menu_order', 'container' => 'menu-header', 'fallback_cb' => 'default_top_nav' ) ); ?> <div class="clear"></div> </div><!-- end inner --> </div><!-- end topNav --> <div id="header"> <div class="inner"> <div class="logo_wrap"> <?php if (is_front_page()) { ?><h1 id="logo"><?php } else { ?><div id="logo"><?php } ?> <?php if (get_option('jr_use_logo') != 'no') { ?> <?php if (get_option('jr_logo_url')) { ?> <a href="<?php echo esc_url( home_url() ); ?>"><img class="logo" src="<?php echo esc_url( get_option('jr_logo_url') ); ?>" alt="<?php esc_attr( bloginfo('name') ); ?>" /></a> <?php } else { ?> <a href="<?php echo esc_url( home_url() ); ?>"><img class="logo" src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/logo.png" alt="<?php esc_attr( bloginfo('name') ); ?>" /></a> <?php } ?> <?php } else { ?> <a href="<?php echo esc_url( home_url() ); ?>"><?php bloginfo('name'); ?></a> <small><?php bloginfo('description'); ?></small> <?php } ?> <?php if (is_front_page()) { ?></h1><?php } else { ?></div><?php } ?> <?php if (get_option('jr_enable_header_banner')=='yes') : ?> <div id="headerAd"><?php echo stripslashes(get_option('jr_header_banner')); ?></div> <?php else : ?> <div id="mainNav"><?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => '', 'depth' => 1, 'fallback_cb' => 'default_primary_nav' ) );?></div> <?php endif; ?> <div class="clear"></div> </div><!-- end logo_wrap --> </div><!-- end inner --> </div><!-- end header -->
gpl-2.0
darconeous/sdcc
sim/ucsim/cmd.src/get.cc
3308
/* * Simulator of microcontrollers (cmd.src/get.cc) * * Copyright (C) 1999,99 Drotos Daniel, Talker Bt. * * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu * */ /* This file is part of microcontroller simulator: ucsim. UCSIM 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. UCSIM 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 UCSIM; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*@1@*/ #include "ddconfig.h" #include <ctype.h> #include "i_string.h" // prj #include "utils.h" // sim #include "simcl.h" #include "optioncl.h" // local #include "cmdsetcl.h" #include "getcl.h" #include "cmdutil.h" /* * Command: get sfr *---------------------------------------------------------------------------- */ //int //cl_get_sfr_cmd::do_work(class cl_sim *sim, // class cl_cmdline *cmdline, class cl_console_base *con) COMMAND_DO_WORK_UC(cl_get_sfr_cmd) { class cl_address_space *mem= uc->address_space(MEM_SFR_ID); class cl_cmd_arg *parm; int i; if (!mem) { con->dd_printf("Error: No SFR\n"); return(DD_FALSE); } for (i= 0, parm= cmdline->param(i); parm; i++, parm= cmdline->param(i)) { if (!parm->as_address(uc) || !mem->valid_address(parm->value.address)) con->dd_printf("Warning: Invalid address %s\n", (char*)cmdline->tokens->at(i+1)); else mem->dump(parm->value.address, parm->value.address, 1, con); } return(DD_FALSE);; } /* * Command: get option *---------------------------------------------------------------------------- */ //int //cl_get_option_cmd::do_work(class cl_sim *sim, // class cl_cmdline *cmdline, class cl_console_base *con) COMMAND_DO_WORK_APP(cl_get_option_cmd) { class cl_cmd_arg *parm= cmdline->param(0); char *s= 0; if (!parm) ; else if (cmdline->syntax_match(0/*app->get_uc()*/, STRING)) { s= parm->value.string.string; } else con->dd_printf("%s\n", short_help?short_help:"Error: wrong syntax\n"); int i; for (i= 0; i < app->options->count; i++) { class cl_option *o= (class cl_option *)(/*uc*/app->options->at(i)); if ((!s || !strcmp(s, o->get_name()))) { if (!o->hidden) { con->dd_printf("%2d. %s(by %s): ", i, object_name(o), object_name(o->get_creator())); o->print(con); con->dd_printf(" - %s\n", o->help); } else { /* con->dd_printf("%2d. %s(by %s) is hidden!\n", i, object_name(o), object_name(o->get_creator())); */ } } } return(DD_FALSE);; } /* End of cmd.src/get.cc */
gpl-2.0
shchiu/hotspot
src/cpu/zero/vm/globals_zero.hpp
2057
/* * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. * */ // Set the default values for platform dependent flags used by the // runtime system. See globals.hpp for details of what they do. define_pd_global(bool, ConvertSleepToYield, true); define_pd_global(bool, ShareVtableStubs, true); define_pd_global(bool, CountInterpCalls, true); define_pd_global(bool, NeedsDeoptSuspend, false); define_pd_global(bool, ImplicitNullChecks, true); define_pd_global(bool, UncommonNullCast, true); define_pd_global(intx, CodeEntryAlignment, 32); define_pd_global(intx, OptoLoopAlignment, 16); define_pd_global(intx, InlineFrequencyCount, 100); define_pd_global(intx, PreInflateSpin, 10); define_pd_global(intx, StackYellowPages, 2); define_pd_global(intx, StackRedPages, 1); define_pd_global(intx, StackShadowPages, 5 LP64_ONLY(+1) DEBUG_ONLY(+3)); define_pd_global(bool, RewriteBytecodes, true); define_pd_global(bool, RewriteFrequentPairs, true);
gpl-2.0
uliux/myPrivate
ruby/src/ex1314.rb
69
# Sample code from Programing Ruby, page 602 "hEllO".upcase
gpl-2.0
srcclr/open-core
spec/dummy/lib/discourse.rb
7847
require 'cache' require_dependency 'plugin/instance' require_dependency 'auth/default_current_user_provider' module Discourse require 'sidekiq/exception_handler' class SidekiqExceptionHandler extend Sidekiq::ExceptionHandler end # Log an exception. # # If your code is in a scheduled job, it is recommended to use the # error_context() method in Jobs::Base to pass the job arguments and any # other desired context. # See app/jobs/base.rb for the error_context function. def self.handle_exception(ex, context = {}, parent_logger = nil) context ||= {} parent_logger ||= SidekiqExceptionHandler cm = RailsMultisite::ConnectionManagement parent_logger.handle_exception(ex, { current_db: cm.current_db, current_hostname: cm.current_hostname }.merge(context)) end # Expected less matches than what we got in a find class TooManyMatches < Exception; end # When they try to do something they should be logged in for class NotLoggedIn < Exception; end # When the input is somehow bad class InvalidParameters < Exception; end # When they don't have permission to do something class InvalidAccess < Exception; end # When something they want is not found class NotFound < Exception; end # When a setting is missing class SiteSettingMissing < Exception; end # When ImageMagick is missing class ImageMagickMissing < Exception; end class InvalidPost < Exception; end # When read-only mode is enabled class ReadOnly < Exception; end # Cross site request forgery class CSRF < Exception; end def self.filters @filters ||= [:latest, :unread, :new, :read, :posted] end def self.feed_filters @feed_filters ||= [:latest] end def self.anonymous_filters @anonymous_filters ||= [:latest, :top, :categories] end def self.logged_in_filters @logged_in_filters ||= Discourse.filters - Discourse.anonymous_filters end def self.top_menu_items @top_menu_items ||= Discourse.filters + [:category, :categories, :top] end def self.anonymous_top_menu_items @anonymous_top_menu_items ||= Discourse.anonymous_filters + [:category, :categories, :top] end def self.activate_plugins! @plugins = Plugin::Instance.find_all("#{Rails.root}/plugins") @plugins.each { |plugin| plugin.activate! } end def self.plugins @plugins end def self.assets_digest @assets_digest ||= begin digest = Digest::MD5.hexdigest(ActionView::Base.assets_manifest.assets.values.sort.join) channel = "/global/asset-version" message = MessageBus.last_message(channel) unless message && message.data == digest MessageBus.publish channel, digest end digest end end def self.authenticators # TODO: perhaps we don't need auth providers and authenticators maybe one object is enough # NOTE: this bypasses the site settings and gives a list of everything, we need to register every middleware # for the cases of multisite # In future we may change it so we don't include them all for cases where we are not a multisite, but we would # require a restart after site settings change Users::OmniauthCallbacksController::BUILTIN_AUTH + auth_providers.map(&:authenticator) end def self.auth_providers providers = [] if plugins plugins.each do |p| next unless p.auth_providers p.auth_providers.each do |prov| providers << prov end end end providers end def self.cache @cache ||= Cache.new end # Get the current base URL for the current site def self.current_hostname if SiteSetting.force_hostname.present? SiteSetting.force_hostname else RailsMultisite::ConnectionManagement.current_hostname end end def self.base_uri(default_value = "") if !ActionController::Base.config.relative_url_root.blank? ActionController::Base.config.relative_url_root else default_value end end def self.base_url_no_prefix default_port = 80 protocol = "http" if SiteSetting.use_https? protocol = "https" default_port = 443 end result = "#{protocol}://#{current_hostname}" port = SiteSetting.port.present? && SiteSetting.port.to_i > 0 ? SiteSetting.port.to_i : default_port result << ":#{SiteSetting.port}" if port != default_port result end def self.base_url return base_url_no_prefix + base_uri end def self.enable_readonly_mode $redis.set readonly_mode_key, 1 MessageBus.publish(readonly_channel, true) true end def self.disable_readonly_mode $redis.del readonly_mode_key MessageBus.publish(readonly_channel, false) true end def self.readonly_mode? !!$redis.get(readonly_mode_key) end def self.request_refresh! # Causes refresh on next click for all clients # # This is better than `MessageBus.publish "/file-change", ["refresh"]` because # it spreads the refreshes out over a time period MessageBus.publish '/global/asset-version', 'clobber' end def self.git_version return $git_version if $git_version # load the version stamped by the "build:stamp" task f = Rails.root.to_s + "/config/version" require f if File.exists?("#{f}.rb") begin $git_version ||= `git rev-parse HEAD`.strip rescue $git_version = "unknown" end end def self.git_branch return $git_branch if $git_branch begin $git_branch ||= `git rev-parse --abbrev-ref HEAD`.strip rescue $git_branch = "unknown" end end # Either returns the site_contact_username user or the first admin. def self.site_contact_user user = User.find_by(username_lower: SiteSetting.site_contact_username.downcase) if SiteSetting.site_contact_username.present? user ||= User.admins.real.order(:id).first end SYSTEM_USER_ID = -1 unless defined? SYSTEM_USER_ID def self.system_user User.find_by(id: SYSTEM_USER_ID) end def self.store if SiteSetting.enable_s3_uploads? @s3_store_loaded ||= require 'file_store/s3_store' FileStore::S3Store.new else @local_store_loaded ||= require 'file_store/local_store' FileStore::LocalStore.new end end def self.current_user_provider @current_user_provider || Auth::DefaultCurrentUserProvider end def self.current_user_provider=(val) @current_user_provider = val end def self.asset_host Rails.configuration.action_controller.asset_host end def self.readonly_mode_key "readonly_mode" end def self.readonly_channel "/site/read-only" end # all forking servers must call this # after fork, otherwise Discourse will be # in a bad state def self.after_fork current_db = RailsMultisite::ConnectionManagement.current_db RailsMultisite::ConnectionManagement.establish_connection(db: current_db) MessageBus.after_fork SiteSetting.after_fork $redis.client.reconnect Rails.cache.reconnect Logster.store.redis.reconnect # shuts down all connections in the pool Sidekiq.redis_pool.shutdown{|c| nil} # re-establish Sidekiq.redis = sidekiq_redis_config start_connection_reaper nil end def self.start_connection_reaper(interval=30, age=30) # this helps keep connection counts in check Thread.new do while true sleep interval pools = [] ObjectSpace.each_object(ActiveRecord::ConnectionAdapters::ConnectionPool){|pool| pools << pool} pools.each do |pool| pool.drain(age.seconds) end end end end def self.sidekiq_redis_config { url: $redis.url, namespace: 'sidekiq' } end def self.static_doc_topic_ids [SiteSetting.tos_topic_id, SiteSetting.guidelines_topic_id, SiteSetting.privacy_topic_id] end end
gpl-2.0
liuyanghejerry/qtextended
qtopiacore/qt/tools/assistant/tools/qhelpgenerator/main.cpp
5043
/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the Qt Assistant of the Qt Toolkit. ** ** Commercial Usage ** Licensees holding valid Qt Commercial licenses may use this file in ** accordance with the Qt Commercial License Agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Nokia. ** ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License 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. In addition, as a special ** exception, Nokia gives you certain additional rights. These rights ** are described in the Nokia Qt GPL Exception version 1.3, included in ** the file GPL_EXCEPTION.txt in this package. ** ** Qt for Windows(R) Licensees ** As a special exception, Nokia, as the sole copyright holder for Qt ** Designer, grants users of the Qt/Eclipse Integration plug-in the ** right for the Qt/Eclipse Integration to link to functionality ** provided by Qt Designer and its related libraries. ** ** If you are unsure which license is appropriate for your use, please ** contact the sales department at qt-sales@nokia.com. ** ****************************************************************************/ #include "../shared/helpgenerator.h" #include <QtCore/QDir> #include <QtCore/QFileInfo> #include <QtCore/QCoreApplication> #include <private/qhelpprojectdata_p.h> QT_USE_NAMESPACE int main(int argc, char *argv[]) { QString error; QString arg; QString compressedFile; QString projectFile; QString basePath; bool showHelp = false; bool showVersion = false; for (int i=1; i<argc; ++i) { arg = QString::fromLocal8Bit(argv[i]); if (arg == QLatin1String("-o")) { if (++i < argc) { QFileInfo fi(QString::fromLocal8Bit(argv[i])); compressedFile = fi.absoluteFilePath(); } else { error = QObject::tr("Missing output file name!"); } } else if (arg == QLatin1String("-v")) { showVersion = true; } else if (arg == QLatin1String("-h")) { showHelp = true; } else { QFileInfo fi(arg); projectFile = fi.absoluteFilePath(); basePath = fi.absolutePath(); } } if (showVersion) { fprintf(stdout, "Qt Help Generator version 1.0 (Qt %s)\n", QT_VERSION_STR); return 0; } if (projectFile.isEmpty() && !showHelp) error = QObject::tr("Missing Qt help project file!"); QString help = QObject::tr("\nUsage:\n\n" "qhelpgenerator <help-project-file> [options]\n\n" " -o <compressed-file> Generates a Qt compressed help\n" " file called <compressed-file>.\n" " If this option is not specified\n" " a default name will be used.\n" " -v Displays the version of \n" " qhelpgenerator.\n\n"); if (showHelp) { fprintf(stdout, "%s", qPrintable(help)); return 0; }else if (!error.isEmpty()) { fprintf(stderr, "%s\n\n%s", qPrintable(error), qPrintable(help)); return -1; } QFile file(projectFile); if (!file.open(QIODevice::ReadOnly)) { fprintf(stderr, "Could not open %s!\n", qPrintable(projectFile)); return -1; } if (compressedFile.isEmpty()) { QFileInfo fi(projectFile); compressedFile = basePath + QDir::separator() + fi.baseName() + QLatin1String(".qch"); } else { // check if the output dir exists -- create if it doesn't QFileInfo fi(compressedFile); QDir parentDir = fi.dir(); if (!parentDir.exists()) { if (!parentDir.mkpath(".")) { fprintf(stderr, "Could not create output directory: %s\n", qPrintable(parentDir.path())); } } } QHelpProjectData *helpData = new QHelpProjectData(); if (!helpData->readData(projectFile)) { fprintf(stderr, "%s\n", qPrintable(helpData->errorMessage())); return -1; } QCoreApplication app(argc, argv); HelpGenerator generator; bool success = generator.generate(helpData, compressedFile); delete helpData; if (!success) { fprintf(stderr, "%s\n", qPrintable(generator.error())); return -1; } return 0; }
gpl-2.0
yeKcim/warmux
old/wormux-0.8alpha1/src/tool/debug.cpp
2557
/****************************************************************************** * Wormux is a convivial mass murder game. * Copyright (C) 2001-2004 Lawrence Azzoug. * * 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 ******************************************************************************/ #include <iostream> #include <vector> #include <string> #include <string.h> #include <stdarg.h> #include <sys/types.h> #include <unistd.h> #include "../include/base.h" /** * The debug modes in use. */ std::vector<std::string> debugModes; /** * Print a debug message if needed. * * @param filename * @param line * @param level * @param message */ void PrintDebug (const char *filename, const char *function, unsigned long line, const char *level, const char *message, ...) { int levelSize = strlen(level); unsigned int i = 0; for( i = 0; i < debugModes.size(); i++ ){ int modeSize = debugModes[i].size(); const char *strMode = debugModes[i].c_str(); if( strncmp(strMode, level, modeSize) == 0){ if( (levelSize != modeSize) && ( level[modeSize] != '.' ) && modeSize != 0) continue; va_list argp; int pid = (int)getpid(); fprintf(stderr, "%i|%s:%s:%ld| %s : ", pid, filename, function, line, level); va_start(argp, message); vfprintf(stderr, message, argp); va_end(argp); fprintf(stderr, "\n"); return; } } } /** * Add a new debug mode to check. */ void AddDebugMode( std::string mode ){ debugModes.push_back( mode ); } /** * Parse the command line arguments to find new debug mode to use. * * @param argc Number of arguments. * @param argv The arguments. */ void InitDebugModes( int argc, char **argv ){ int i; for( i=0; i<argc; i++ ){ if( strcmp(argv[i], "-d") == 0 ){ i = i + 1; if( i == argc ) Error( "Usage : -d mode.truc" ); AddDebugMode( argv[i] ); } } }
gpl-2.0
OurDigitalWorld/odw-drupal
modules/contrib/paragraphs/src/ParagraphInterface.php
4096
<?php namespace Drupal\paragraphs; use Drupal\Core\Entity\EntityPublishedInterface; use Drupal\user\EntityOwnerInterface; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\entity_reference_revisions\EntityNeedsSaveInterface; /** * Provides an interface defining a paragraphs entity. * @ingroup paragraphs */ interface ParagraphInterface extends ContentEntityInterface, EntityOwnerInterface, EntityNeedsSaveInterface, EntityPublishedInterface { /** * Gets the parent entity of the paragraph. * * Preserves language context with translated entities. * * @return ContentEntityInterface * The parent entity. */ public function getParentEntity(); /** * Set the parent entity of the paragraph. * * @param \Drupal\Core\Entity\ContentEntityInterface $parent * The parent entity. * @param string $parent_field_name * The parent field name. * * @return $this */ public function setParentEntity(ContentEntityInterface $parent, $parent_field_name); /** * Returns short summary for paragraph. * * @param array $options * (optional) Array of additional options, with the following elements: * - 'show_behavior_summary': Whether the summary should contain the * behavior settings. Defaults to TRUE to show behavior settings in the * summary. * - 'depth_limit': Depth limit of how many nested paragraph summaries are * allowed. Defaults to 1 to show nested paragraphs only on top level. * * @return string * The text without tags. */ public function getSummary(array $options = []); /** * Returns info icons render array for a paragraph. * * @param array $options * (optional) Array of additional options, with the following elements: * - 'show_behavior_icon': Whether the icons should contain the * behavior settings. Defaults to TRUE to show behavior icons in the * summary. * * @return array * A list of render arrays that will be rendered as icons. */ public function getIcons(array $options = []); /** * Returns a flag whether a current revision has been changed. * * The current instance is being compared with the latest saved revision. * * @return bool * TRUE in case the current revision changed. Otherwise, FALSE. * * @see \Drupal\Core\Entity\ContentEntityBase::hasTranslationChanges() */ public function isChanged(); /** * Returns the paragraph type / bundle name as string. * * @return string * The Paragraph bundle name. */ public function getType(); /** * Returns the paragraph type. * * @return ParagraphsTypeInterface * The Paragraph Type. */ public function getParagraphType(); /** * Gets all the behavior settings. * * @return array * The array of behavior settings. */ public function getAllBehaviorSettings(); /** * Gets the behavior setting of an specific plugin. * * @param string $plugin_id * The plugin ID for which to get the settings. * @param string|array $key * Values are stored as a multi-dimensional associative array. If $key is a * string, it will return $values[$key]. If $key is an array, each element * of the array will be used as a nested key. If $key = array('foo', 'bar') * it will return $values['foo']['bar']. * @param mixed $default * (optional) The default value if the specified key does not exist. * * @return mixed * The value for the given key. */ public function &getBehaviorSetting($plugin_id, $key, $default = NULL); /** * Sets all the behavior settings of a plugin. * * @param array $settings * The behavior settings from the form. */ public function setAllBehaviorSettings(array $settings); /** * Sets the behavior settings of a plugin. * * @param string $plugin_id * The plugin ID for which to set the settings. * @param array $settings * The behavior settings from the form. */ public function setBehaviorSettings($plugin_id, array $settings); }
gpl-2.0
liang860908/translationstudio8
base_plugins/net.heartsome.xml/src/com/ximpleware/parser/ISO8859_4.java
4151
/* * Copyright (C) 2002-2012 XimpleWare, info@ximpleware.com * * 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.ximpleware.parser; /** * this class contains method to map a ISO-8859-4 char * into a Unicode char * */ public class ISO8859_4 { static final char[] chars = new char[0x100]; static { for (int i=0;i<128;i++){ chars[i] = (char)i; } for (int i=128;i<256;i++){ chars[i]=0xfffd; } chars[0xA0 ]=0x00A0; chars[0xA1 ]=0x0104; chars[0xA2 ]=0x0138; chars[0xA3 ]=0x0156; chars[0xA4 ]=0x00A4; chars[0xA5 ]=0x0128; chars[0xA6 ]=0x013B; chars[0xA7 ]=0x00A7; chars[0xA8 ]=0x00A8; chars[0xA9 ]=0x0160; chars[0xAA ]=0x0112; chars[0xAB ]=0x0122; chars[0xAC ]=0x0166; chars[0xAD ]=0x00AD; chars[0xAE ]=0x017D; chars[0xAF ]=0x00AF; chars[0xB0 ]=0x00B0; chars[0xB1 ]=0x0105; chars[0xB2 ]=0x02DB; chars[0xB3 ]=0x0157; chars[0xB4 ]=0x00B4; chars[0xB5 ]=0x0129; chars[0xB6 ]=0x013C; chars[0xB7 ]=0x02C7; chars[0xB8 ]=0x00B8; chars[0xB9 ]=0x0161; chars[0xBA ]=0x0113; chars[0xBB ]=0x0123; chars[0xBC ]=0x0167; chars[0xBD ]=0x014A; chars[0xBE ]=0x017E; chars[0xBF ]=0x014B; chars[0xC0 ]=0x0100; chars[0xC1 ]=0x00C1; chars[0xC2 ]=0x00C2; chars[0xC3 ]=0x00C3; chars[0xC4 ]=0x00C4; chars[0xC5 ]=0x00C5; chars[0xC6 ]=0x00C6; chars[0xC7 ]=0x012E; chars[0xC8 ]=0x010C; chars[0xC9 ]=0x00C9; chars[0xCA ]=0x0118; chars[0xCB ]=0x00CB; chars[0xCC ]=0x0116; chars[0xCD ]=0x00CD; chars[0xCE ]=0x00CE; chars[0xCF ]=0x012A; chars[0xD0 ]=0x0110; chars[0xD1 ]=0x0145; chars[0xD2 ]=0x014C; chars[0xD3 ]=0x0136; chars[0xD4 ]=0x00D4; chars[0xD5 ]=0x00D5; chars[0xD6 ]=0x00D6; chars[0xD7 ]=0x00D7; chars[0xD8 ]=0x00D8; chars[0xD9 ]=0x0172; chars[0xDA ]=0x00DA; chars[0xDB ]=0x00DB; chars[0xDC ]=0x00DC; chars[0xDD ]=0x0168; chars[0xDE ]=0x016A; chars[0xDF ]=0x00DF; chars[0xE0 ]=0x0101; chars[0xE1 ]=0x00E1; chars[0xE2 ]=0x00E2; chars[0xE3 ]=0x00E3; chars[0xE4 ]=0x00E4; chars[0xE5 ]=0x00E5; chars[0xE6 ]=0x00E6; chars[0xE7 ]=0x012F; chars[0xE8 ]=0x010D; chars[0xE9 ]=0x00E9; chars[0xEA ]=0x0119; chars[0xEB ]=0x00EB; chars[0xEC ]=0x0117; chars[0xED ]=0x00ED; chars[0xEE ]=0x00EE; chars[0xEF ]=0x012B; chars[0xF0 ]=0x0111; chars[0xF1 ]=0x0146; chars[0xF2 ]=0x014D; chars[0xF3 ]=0x0137; chars[0xF4 ]=0x00F4; chars[0xF5 ]=0x00F5; chars[0xF6 ]=0x00F6; chars[0xF7 ]=0x00F7; chars[0xF8 ]=0x00F8; chars[0xF9 ]=0x0173; chars[0xFA ]=0x00FA; chars[0xFB ]=0x00FB; chars[0xFC ]=0x00FC; chars[0xFD ]=0x0169; chars[0xFE ]=0x016B; chars[0xFF ]=0x02D9; } public static char decode(byte b){ return chars[b & 0xff]; } }
gpl-2.0
phookajoe/zoogitsocial
components/com_community/tables/invitation.php
1339
<?php /** * @category Tables * @package JomSocial * @subpackage Activities * @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved! * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die('Restricted access'); class CTableInvitation extends JTable { var $id = null; /** * Callback method **/ var $callback = null; /** * Unique identifier for the current invitation **/ var $cid = null; /** * Comma separated values for user id's **/ var $users = null; public function __construct( &$db ) { parent::__construct( '#__community_invitations' , 'id' , $db ); } /** * Override parent's method as the loading method will be based on the * unique callback and cid **/ public function load( $callback = null , $cid = null ) { $db = JFactory::getDBO(); $query = 'SELECT * FROM ' . $db->quoteName( $this->_tbl ) . ' WHERE ' . $db->quoteName( 'callback' ) . '=' . $db->Quote( $callback ) . ' ' . 'AND ' . $db->quoteName( 'cid' ) . '=' . $db->Quote( $cid ); $db->setQuery( $query ); $result = $db->loadAssoc(); $this->bind( $result ); } /** * Retrieves invited members from this table * * @return Array $users An array containing user id's **/ public function getInvitedUsers() { $users = explode( ',' , $this->users ); return $users; } }
gpl-2.0
RJRetro/mame
src/devices/sound/x1_010.cpp
9062
// license:BSD-3-Clause // copyright-holders:Luca Elia /*************************************************************************** -= Seta Hardware =- driver by Luca Elia (l.elia@tin.it) rewrite by Manbow-J(manbowj@hamal.freemail.ne.jp) X1-010 Seta Custom Sound Chip (80 Pin PQFP) Custom programmed Mitsubishi M60016 Gate Array, 3608 gates, 148 Max I/O ports The X1-010 is 16 Voices sound generator, each channel gets it's waveform from RAM (128 bytes per waveform, 8 bit unsigned data) or sampling PCM(8bit unsigned data). Registers: 8 registers per channel (mapped to the lower bytes of 16 words on the 68K) Reg: Bits: Meaning: 0 7--- ---- Frequency divider flag (only downtown seems to set this) -654 3--- ---- -2-- PCM/Waveform repeat flag (0:Ones 1:Repeat) (*1) ---- --1- Sound out select (0:PCM 1:Waveform) ---- ---0 Key on / off 1 7654 ---- PCM Volume 1 (L?) ---- 3210 PCM Volume 2 (R?) Waveform No. 2 PCM Frequency Waveform Pitch Lo 3 Waveform Pitch Hi 4 PCM Sample Start / 0x1000 [Start/End in bytes] Waveform Envelope Time 5 PCM Sample End 0x100 - (Sample End / 0x1000) [PCM ROM is Max 1MB?] Waveform Envelope No. 6 Reserved 7 Reserved offset 0x0000 - 0x0fff Wave form data offset 0x1000 - 0x1fff Envelope data *1 : when 0 is specified, hardware interrupt is caused(allways return soon) ***************************************************************************/ #include "emu.h" #include "x1_010.h" #define VERBOSE_SOUND 0 #define VERBOSE_REGISTER_WRITE 0 #define VERBOSE_REGISTER_READ 0 #define LOG_SOUND(x) do { if (VERBOSE_SOUND) logerror x; } while (0) #define LOG_REGISTER_WRITE(x) do { if (VERBOSE_REGISTER_WRITE) logerror x; } while (0) #define LOG_REGISTER_READ(x) do { if (VERBOSE_REGISTER_READ) logerror x; } while (0) #define FREQ_BASE_BITS 8 // Frequency fixed decimal shift bits #define ENV_BASE_BITS 16 // wave form envelope fixed decimal shift bits #define VOL_BASE (2*32*256/30) // Volume base /* this structure defines the parameters for a channel */ struct X1_010_CHANNEL { unsigned char status; unsigned char volume; // volume / wave form no. unsigned char frequency; // frequency / pitch lo unsigned char pitch_hi; // reserved / pitch hi unsigned char start; // start address / envelope time unsigned char end; // end address / envelope no. unsigned char reserve[2]; }; /* mixer tables and internal buffers */ //static short *mixer_buffer = NULL; const device_type X1_010 = &device_creator<x1_010_device>; x1_010_device::x1_010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, X1_010, "X1-010", tag, owner, clock, "x1_010", __FILE__), device_sound_interface(mconfig, *this), m_region(*this, DEVICE_SELF), m_rate(0), m_adr(0), m_stream(nullptr), m_sound_enable(0), m_base_clock(0) { memset(m_reg, 0, sizeof(m_reg)); memset(m_HI_WORD_BUF, 0, sizeof(m_HI_WORD_BUF)); memset(m_smp_offset, 0, sizeof(SETA_NUM_CHANNELS)); memset(m_env_offset, 0, sizeof(SETA_NUM_CHANNELS)); } //------------------------------------------------- // device_start - device-specific startup //------------------------------------------------- void x1_010_device::device_start() { int i; m_base_clock = clock(); m_rate = clock() / 512; for( i = 0; i < SETA_NUM_CHANNELS; i++ ) { m_smp_offset[i] = 0; m_env_offset[i] = 0; } /* Print some more debug info */ LOG_SOUND(("masterclock = %d rate = %d\n", clock(), m_rate )); /* get stream channels */ m_stream = machine().sound().stream_alloc(*this, 0, 2, m_rate); save_item(NAME(m_rate)); save_item(NAME(m_sound_enable)); save_item(NAME(m_reg)); save_item(NAME(m_HI_WORD_BUF)); save_item(NAME(m_smp_offset)); save_item(NAME(m_env_offset)); save_item(NAME(m_base_clock)); } void x1_010_device::enable_w(int data) { m_sound_enable = data; } /* Use these for 8 bit CPUs */ READ8_MEMBER( x1_010_device::read ) { offset ^= m_adr; return m_reg[offset]; } WRITE8_MEMBER( x1_010_device::write ) { int channel, reg; offset ^= m_adr; channel = offset/sizeof(X1_010_CHANNEL); reg = offset%sizeof(X1_010_CHANNEL); if( channel < SETA_NUM_CHANNELS && reg == 0 && (m_reg[offset]&1) == 0 && (data&1) != 0 ) { m_smp_offset[channel] = 0; m_env_offset[channel] = 0; } LOG_REGISTER_WRITE(("%s: offset %6X : data %2X\n", machine().describe_context(), offset, data )); m_reg[offset] = data; } /* Use these for 16 bit CPUs */ READ16_MEMBER( x1_010_device::word_r ) { UINT16 ret; ret = m_HI_WORD_BUF[offset]<<8; ret += (read( space, offset )&0xff); LOG_REGISTER_READ(( "%s: Read X1-010 Offset:%04X Data:%04X\n", machine().describe_context(), offset, ret )); return ret; } WRITE16_MEMBER( x1_010_device::word_w ) { m_HI_WORD_BUF[offset] = (data>>8)&0xff; write( space, offset, data&0xff ); LOG_REGISTER_WRITE(( "%s: Write X1-010 Offset:%04X Data:%04X\n", machine().describe_context(), offset, data )); } //------------------------------------------------- // sound_stream_update - handle a stream update //------------------------------------------------- void x1_010_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) { X1_010_CHANNEL *reg; int ch, i, volL, volR, freq, div; INT8 *start, *end, data; UINT8 *env; UINT32 smp_offs, smp_step, env_offs, env_step, delta; // mixer buffer zero clear memset( outputs[0], 0, samples*sizeof(*outputs[0]) ); memset( outputs[1], 0, samples*sizeof(*outputs[1]) ); // if( m_sound_enable == 0 ) return; for( ch = 0; ch < SETA_NUM_CHANNELS; ch++ ) { reg = (X1_010_CHANNEL *)&(m_reg[ch*sizeof(X1_010_CHANNEL)]); if( (reg->status&1) != 0 ) { // Key On stream_sample_t *bufL = outputs[0]; stream_sample_t *bufR = outputs[1]; div = (reg->status&0x80) ? 1 : 0; if( (reg->status&2) == 0 ) { // PCM sampling start = m_region + reg->start*0x1000; end = m_region + (0x100-reg->end)*0x1000; volL = ((reg->volume>>4)&0xf)*VOL_BASE; volR = ((reg->volume>>0)&0xf)*VOL_BASE; smp_offs = m_smp_offset[ch]; freq = reg->frequency>>div; // Meta Fox does write the frequency register, but this is a hack to make it "work" with the current setup // This is broken for Arbalester (it writes 8), but that'll be fixed later. if( freq == 0 ) freq = 4; smp_step = (UINT32)((float)m_base_clock/8192.0f *freq*(1<<FREQ_BASE_BITS)/(float)m_rate); if( smp_offs == 0 ) { LOG_SOUND(( "Play sample %p - %p, channel %X volume %d:%d freq %X step %X offset %X\n", start, end, ch, volL, volR, freq, smp_step, smp_offs )); } for( i = 0; i < samples; i++ ) { delta = smp_offs>>FREQ_BASE_BITS; // sample ended? if( start+delta >= end ) { reg->status &= 0xfe; // Key off break; } data = *(start+delta); *bufL++ += (data*volL/256); *bufR++ += (data*volR/256); smp_offs += smp_step; } m_smp_offset[ch] = smp_offs; } else { // Wave form start = (INT8 *)&(m_reg[reg->volume*128+0x1000]); smp_offs = m_smp_offset[ch]; freq = ((reg->pitch_hi<<8)+reg->frequency)>>div; smp_step = (UINT32)((float)m_base_clock/128.0f/1024.0f/4.0f*freq*(1<<FREQ_BASE_BITS)/(float)m_rate); env = (UINT8 *)&(m_reg[reg->end*128]); env_offs = m_env_offset[ch]; env_step = (UINT32)((float)m_base_clock/128.0f/1024.0f/4.0f*reg->start*(1<<ENV_BASE_BITS)/(float)m_rate); /* Print some more debug info */ if( smp_offs == 0 ) { LOG_SOUND(( "Play waveform %X, channel %X volume %X freq %4X step %X offset %X\n", reg->volume, ch, reg->end, freq, smp_step, smp_offs )); } for( i = 0; i < samples; i++ ) { int vol; delta = env_offs>>ENV_BASE_BITS; // Envelope one shot mode if( (reg->status&4) != 0 && delta >= 0x80 ) { reg->status &= 0xfe; // Key off break; } vol = *(env+(delta&0x7f)); volL = ((vol>>4)&0xf)*VOL_BASE; volR = ((vol>>0)&0xf)*VOL_BASE; data = *(start+((smp_offs>>FREQ_BASE_BITS)&0x7f)); *bufL++ += (data*volL/256); *bufR++ += (data*volR/256); smp_offs += smp_step; env_offs += env_step; } m_smp_offset[ch] = smp_offs; m_env_offset[ch] = env_offs; } } } }
gpl-2.0
dev-joker-dev/Joker-Developer
plugins/block.lua
2524
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] local function addword(msg, name) local hash = 'chat:'..msg.to.id..':badword' redis:hset(hash, name, 'newword') return "word has been add\n>"..name end local function get_variables_hash(msg) return 'chat:'..msg.to.id..':badword' end local function list_variablesbad(msg) local hash = get_variables_hash(msg) if hash then local names = redis:hkeys(hash) local text = 'No badword in this group:\n\n' for i=1, #names do text = text..'> '..names[i]..'\n' end return text else return end end function clear_commandbad(msg, var_name) --Save on redis local hash = get_variables_hash(msg) redis:del(hash, var_name) return 'has been removed' end local function list_variables2(msg, value) local hash = get_variables_hash(msg) if hash then local names = redis:hkeys(hash) local text = '' for i=1, #names do if string.match(value, names[i]) and not is_momod(msg) then if msg.to.type == 'channel' then delete_msg(msg.id,ok_cb,false) else kick_user(msg.from.id, msg.to.id) end return end --text = text..names[i]..'\n' end end end local function get_valuebad(msg, var_name) local hash = get_variables_hash(msg) if hash then local value = redis:hget(hash, var_name) if not value then return else return value end end end function clear_commandsbad(msg, cmd_name) --Save on redis local hash = get_variables_hash(msg) redis:hdel(hash, cmd_name) return ''..cmd_name..'has been removed CHANNEL BLT : @iq_dev8' end local function run(msg, matches) if matches[2] == 'block' then if not is_momod(msg) then return 'only for moderators' end local name = string.sub(matches[3], 1, 50) local text = addword(msg, name) return text end if matches[2] == 'words' then return list_variablesbad(msg) elseif matches[2] == 'clearbadwords' then if not is_momod(msg) then return '_|_' end local asd = '1' return clear_commandbad(msg, asd) elseif matches[2] == 'unblock' or matches[2] == 'rw' then if not is_momod(msg) then return '_|_' end return clear_commandsbad(msg, matches[3]) else local name = user_print_name(msg.from) return list_variables2(msg, matches[1]) end end return { patterns = { "^()(rw) (.*)$", "^()(block) (.*)$", "^()(unblock) (.*)$", "^()(words)$", "^(clearbadwords)$", "^(.+)$", }, run = run }
gpl-2.0
stager94/skmz-joomla
administrator/components/com_media/views/images/view.html.php
2034
<?php /** * @version $Id: view.html.php 14401 2010-01-26 14:10:00Z louis $ * @package Joomla * @subpackage Media * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! 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. * See COPYRIGHT.php for copyright notices and details. */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die( 'Restricted access' ); jimport( 'joomla.application.component.view'); /** * HTML View class for the WebLinks component * * @static * @package Joomla * @subpackage Media * @since 1.0 */ class MediaViewImages extends JView { function display($tpl = null) { global $mainframe; $config =& JComponentHelper::getParams('com_media'); $app = JFactory::getApplication(); $append = ''; if($app->getClientId() == 1) $append = 'administrator/'; JHTML::_('script' , 'popup-imagemanager.js', $append .'components/com_media/assets/'); JHTML::_('stylesheet', 'popup-imagemanager.css', $append .'components/com_media/assets/'); if ($config->get('enable_flash', 0)) { JHTML::_('behavior.uploader', 'file-upload', array('onAllComplete' => 'function(){ ImageManager.refreshFrame(); }')); } /* * Display form for FTP credentials? * Don't set them here, as there are other functions called before this one if there is any file write operation */ jimport('joomla.client.helper'); $ftp = !JClientHelper::hasCredentials('ftp'); $this->assignRef( 'session', JFactory::getSession()); $this->assignRef( 'config', $config); $this->assignRef( 'state', $this->get('state')); $this->assignRef( 'folderList', $this->get('folderList')); $this->assign('require_ftp', $ftp); parent::display($tpl); } }
gpl-2.0
BravadoToDeath/BlackWing
src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
18341
/* * Copyright (C) 2008-2014 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 "ObjectMgr.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "SpellAuras.h" #include "icecrown_citadel.h" enum ScriptTexts { SAY_STINKY_DEAD = 0, SAY_AGGRO = 1, EMOTE_GAS_SPORE = 2, EMOTE_WARN_GAS_SPORE = 3, SAY_PUNGENT_BLIGHT = 4, EMOTE_WARN_PUNGENT_BLIGHT = 5, EMOTE_PUNGENT_BLIGHT = 6, SAY_KILL = 7, SAY_BERSERK = 8, SAY_DEATH = 9, }; enum Spells { // Festergut SPELL_INHALE_BLIGHT = 69165, SPELL_PUNGENT_BLIGHT = 69195, SPELL_GASTRIC_BLOAT = 72219, // 72214 is the proper way (with proc) but atm procs can't have cooldown for creatures SPELL_GASTRIC_EXPLOSION = 72227, SPELL_GAS_SPORE = 69278, SPELL_VILE_GAS = 69240, SPELL_INOCULATED = 69291, // Stinky SPELL_MORTAL_WOUND = 71127, SPELL_DECIMATE = 71123, SPELL_PLAGUE_STENCH = 71805, }; // Used for HasAura checks #define PUNGENT_BLIGHT_HELPER RAID_MODE<uint32>(69195, 71219, 73031, 73032) #define INOCULATED_HELPER RAID_MODE<uint32>(69291, 72101, 72102, 72103) uint32 const gaseousBlight[3] = {69157, 69162, 69164}; uint32 const gaseousBlightVisual[3] = {69126, 69152, 69154}; enum Events { EVENT_BERSERK = 1, EVENT_INHALE_BLIGHT = 2, EVENT_VILE_GAS = 3, EVENT_GAS_SPORE = 4, EVENT_GASTRIC_BLOAT = 5, EVENT_DECIMATE = 6, EVENT_MORTAL_WOUND = 7, }; enum Misc { DATA_INOCULATED_STACK = 69291 }; class boss_festergut : public CreatureScript { public: boss_festergut() : CreatureScript("boss_festergut") { } struct boss_festergutAI : public BossAI { boss_festergutAI(Creature* creature) : BossAI(creature, DATA_FESTERGUT) { _maxInoculatedStack = 0; _inhaleCounter = 0; _gasDummyGUID = 0; } void Reset() override { _Reset(); me->SetReactState(REACT_DEFENSIVE); events.ScheduleEvent(EVENT_BERSERK, 300000); events.ScheduleEvent(EVENT_INHALE_BLIGHT, urand(25000, 30000)); events.ScheduleEvent(EVENT_GAS_SPORE, urand(20000, 25000)); events.ScheduleEvent(EVENT_GASTRIC_BLOAT, urand(12500, 15000)); _maxInoculatedStack = 0; _inhaleCounter = 0; me->RemoveAurasDueToSpell(SPELL_BERSERK2); if (Creature* gasDummy = me->FindNearestCreature(NPC_GAS_DUMMY, 100.0f, true)) { _gasDummyGUID = gasDummy->GetGUID(); for (uint8 i = 0; i < 3; ++i) { me->RemoveAurasDueToSpell(gaseousBlight[i]); gasDummy->RemoveAurasDueToSpell(gaseousBlightVisual[i]); } } } void EnterCombat(Unit* who) override { if (!instance->CheckRequiredBosses(DATA_FESTERGUT, who->ToPlayer())) { EnterEvadeMode(); instance->DoCastSpellOnPlayers(LIGHT_S_HAMMER_TELEPORT); return; } me->setActive(true); Talk(SAY_AGGRO); if (Creature* gasDummy = me->FindNearestCreature(NPC_GAS_DUMMY, 100.0f, true)) _gasDummyGUID = gasDummy->GetGUID(); if (Creature* professor = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_PROFESSOR_PUTRICIDE))) professor->AI()->DoAction(ACTION_FESTERGUT_COMBAT); DoZoneInCombat(); } void JustDied(Unit* /*killer*/) override { _JustDied(); Talk(SAY_DEATH); if (Creature* professor = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_PROFESSOR_PUTRICIDE))) professor->AI()->DoAction(ACTION_FESTERGUT_DEATH); RemoveBlight(); } void JustReachedHome() override { _JustReachedHome(); instance->SetBossState(DATA_FESTERGUT, FAIL); } void EnterEvadeMode() override { ScriptedAI::EnterEvadeMode(); if (Creature* professor = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_PROFESSOR_PUTRICIDE))) professor->AI()->EnterEvadeMode(); } void KilledUnit(Unit* victim) override { if (victim->GetTypeId() == TYPEID_PLAYER) Talk(SAY_KILL); } void SpellHitTarget(Unit* target, SpellInfo const* spell) override { if (spell->Id == PUNGENT_BLIGHT_HELPER) target->RemoveAurasDueToSpell(INOCULATED_HELPER); } void UpdateAI(uint32 diff) override { if (!UpdateVictim() || !CheckInRoom()) return; events.Update(diff); if (me->HasUnitState(UNIT_STATE_CASTING)) return; while (uint32 eventId = events.ExecuteEvent()) { switch (eventId) { case EVENT_INHALE_BLIGHT: { RemoveBlight(); if (_inhaleCounter == 3) { Talk(EMOTE_WARN_PUNGENT_BLIGHT); Talk(SAY_PUNGENT_BLIGHT); DoCast(me, SPELL_PUNGENT_BLIGHT); _inhaleCounter = 0; if (Creature* professor = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_PROFESSOR_PUTRICIDE))) professor->AI()->DoAction(ACTION_FESTERGUT_GAS); events.RescheduleEvent(EVENT_GAS_SPORE, urand(20000, 25000)); } else { DoCast(me, SPELL_INHALE_BLIGHT); // just cast and dont bother with target, conditions will handle it ++_inhaleCounter; if (_inhaleCounter < 3) me->CastSpell(me, gaseousBlight[_inhaleCounter], true, NULL, NULL, me->GetGUID()); } events.ScheduleEvent(EVENT_INHALE_BLIGHT, urand(33500, 35000)); break; } case EVENT_VILE_GAS: { std::list<Unit*> ranged, melee; uint32 minTargets = RAID_MODE<uint32>(3, 8, 3, 8); SelectTargetList(ranged, 25, SELECT_TARGET_RANDOM, -5.0f, true); SelectTargetList(melee, 25, SELECT_TARGET_RANDOM, 5.0f, true); while (ranged.size() < minTargets) { if (melee.empty()) break; Unit* target = Trinity::Containers::SelectRandomContainerElement(melee); ranged.push_back(target); melee.remove(target); } if (!ranged.empty()) { Trinity::Containers::RandomResizeList(ranged, RAID_MODE<uint32>(1, 3, 1, 3)); for (std::list<Unit*>::iterator itr = ranged.begin(); itr != ranged.end(); ++itr) DoCast(*itr, SPELL_VILE_GAS); } events.ScheduleEvent(EVENT_VILE_GAS, urand(28000, 35000)); break; } case EVENT_GAS_SPORE: Talk(EMOTE_WARN_GAS_SPORE); Talk(EMOTE_GAS_SPORE); me->CastCustomSpell(SPELL_GAS_SPORE, SPELLVALUE_MAX_TARGETS, RAID_MODE<int32>(2, 3, 2, 3), me); events.ScheduleEvent(EVENT_GAS_SPORE, urand(40000, 45000)); events.RescheduleEvent(EVENT_VILE_GAS, urand(28000, 35000)); break; case EVENT_GASTRIC_BLOAT: DoCastVictim(SPELL_GASTRIC_BLOAT); events.ScheduleEvent(EVENT_GASTRIC_BLOAT, urand(15000, 17500)); break; case EVENT_BERSERK: DoCast(me, SPELL_BERSERK2); Talk(SAY_BERSERK); break; default: break; } } DoMeleeAttackIfReady(); } void SetData(uint32 type, uint32 data) override { if (type == DATA_INOCULATED_STACK && data > _maxInoculatedStack) _maxInoculatedStack = data; } uint32 GetData(uint32 type) const override { if (type == DATA_INOCULATED_STACK) return uint32(_maxInoculatedStack); return 0; } void RemoveBlight() { if (Creature* gasDummy = ObjectAccessor::GetCreature(*me, _gasDummyGUID)) for (uint8 i = 0; i < 3; ++i) { me->RemoveAurasDueToSpell(gaseousBlight[i]); gasDummy->RemoveAurasDueToSpell(gaseousBlightVisual[i]); } } private: uint64 _gasDummyGUID; uint32 _maxInoculatedStack; uint32 _inhaleCounter; }; CreatureAI* GetAI(Creature* creature) const override { return GetIcecrownCitadelAI<boss_festergutAI>(creature); } }; class npc_stinky_icc : public CreatureScript { public: npc_stinky_icc() : CreatureScript("npc_stinky_icc") { } struct npc_stinky_iccAI : public ScriptedAI { npc_stinky_iccAI(Creature* creature) : ScriptedAI(creature) { _instance = creature->GetInstanceScript(); } void Reset() override { _events.Reset(); _events.ScheduleEvent(EVENT_DECIMATE, urand(20000, 25000)); _events.ScheduleEvent(EVENT_MORTAL_WOUND, urand(3000, 7000)); } void EnterCombat(Unit* /*target*/) override { DoCast(me, SPELL_PLAGUE_STENCH); } void UpdateAI(uint32 diff) override { if (!UpdateVictim()) return; _events.Update(diff); if (me->HasUnitState(UNIT_STATE_CASTING)) return; while (uint32 eventId = _events.ExecuteEvent()) { switch (eventId) { case EVENT_DECIMATE: DoCastVictim(SPELL_DECIMATE); _events.ScheduleEvent(EVENT_DECIMATE, urand(20000, 25000)); break; case EVENT_MORTAL_WOUND: DoCastVictim(SPELL_MORTAL_WOUND); _events.ScheduleEvent(EVENT_MORTAL_WOUND, urand(10000, 12500)); break; default: break; } } DoMeleeAttackIfReady(); } void JustDied(Unit* /*killer*/) override { if (Creature* festergut = me->GetCreature(*me, _instance->GetData64(DATA_FESTERGUT))) if (festergut->IsAlive()) festergut->AI()->Talk(SAY_STINKY_DEAD); } private: EventMap _events; InstanceScript* _instance; }; CreatureAI* GetAI(Creature* creature) const override { return GetIcecrownCitadelAI<npc_stinky_iccAI>(creature); } }; class spell_festergut_pungent_blight : public SpellScriptLoader { public: spell_festergut_pungent_blight() : SpellScriptLoader("spell_festergut_pungent_blight") { } class spell_festergut_pungent_blight_SpellScript : public SpellScript { PrepareSpellScript(spell_festergut_pungent_blight_SpellScript); bool Load() override { return GetCaster()->GetTypeId() == TYPEID_UNIT; } void HandleScript(SpellEffIndex /*effIndex*/) { // Get Inhaled Blight id for our difficulty uint32 blightId = sSpellMgr->GetSpellIdForDifficulty(uint32(GetEffectValue()), GetCaster()); // ...and remove it GetCaster()->RemoveAurasDueToSpell(blightId); GetCaster()->ToCreature()->AI()->Talk(EMOTE_PUNGENT_BLIGHT); } void Register() override { OnEffectHitTarget += SpellEffectFn(spell_festergut_pungent_blight_SpellScript::HandleScript, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT); } }; SpellScript* GetSpellScript() const override { return new spell_festergut_pungent_blight_SpellScript(); } }; class spell_festergut_gastric_bloat : public SpellScriptLoader { public: spell_festergut_gastric_bloat() : SpellScriptLoader("spell_festergut_gastric_bloat") { } class spell_festergut_gastric_bloat_SpellScript : public SpellScript { PrepareSpellScript(spell_festergut_gastric_bloat_SpellScript); bool Validate(SpellInfo const* /*spell*/) override { if (!sSpellMgr->GetSpellInfo(SPELL_GASTRIC_EXPLOSION)) return false; return true; } void HandleScript(SpellEffIndex /*effIndex*/) { Aura const* aura = GetHitUnit()->GetAura(GetSpellInfo()->Id); if (!(aura && aura->GetStackAmount() == 10)) return; GetHitUnit()->RemoveAurasDueToSpell(GetSpellInfo()->Id); GetHitUnit()->CastSpell(GetHitUnit(), SPELL_GASTRIC_EXPLOSION, true); } void Register() override { OnEffectHitTarget += SpellEffectFn(spell_festergut_gastric_bloat_SpellScript::HandleScript, EFFECT_2, SPELL_EFFECT_SCRIPT_EFFECT); } }; SpellScript* GetSpellScript() const override { return new spell_festergut_gastric_bloat_SpellScript(); } }; class spell_festergut_blighted_spores : public SpellScriptLoader { public: spell_festergut_blighted_spores() : SpellScriptLoader("spell_festergut_blighted_spores") { } class spell_festergut_blighted_spores_AuraScript : public AuraScript { PrepareAuraScript(spell_festergut_blighted_spores_AuraScript); bool Validate(SpellInfo const* /*spell*/) override { if (!sSpellMgr->GetSpellInfo(SPELL_INOCULATED)) return false; return true; } void ExtraEffect(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { GetTarget()->CastSpell(GetTarget(), SPELL_INOCULATED, true); if (InstanceScript* instance = GetTarget()->GetInstanceScript()) if (Creature* festergut = ObjectAccessor::GetCreature(*GetTarget(), instance->GetData64(DATA_FESTERGUT))) festergut->AI()->SetData(DATA_INOCULATED_STACK, GetStackAmount()); } void Register() override { AfterEffectApply += AuraEffectApplyFn(spell_festergut_blighted_spores_AuraScript::ExtraEffect, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE, AURA_EFFECT_HANDLE_REAL_OR_REAPPLY_MASK); } }; AuraScript* GetAuraScript() const override { return new spell_festergut_blighted_spores_AuraScript(); } }; class achievement_flu_shot_shortage : public AchievementCriteriaScript { public: achievement_flu_shot_shortage() : AchievementCriteriaScript("achievement_flu_shot_shortage") { } bool OnCheck(Player* /*source*/, Unit* target) override { if (target && target->GetTypeId() == TYPEID_UNIT) return target->ToCreature()->AI()->GetData(DATA_INOCULATED_STACK) < 3; return false; } }; void AddSC_boss_festergut() { new boss_festergut(); new npc_stinky_icc(); new spell_festergut_pungent_blight(); new spell_festergut_gastric_bloat(); new spell_festergut_blighted_spores(); new achievement_flu_shot_shortage(); }
gpl-2.0
tracyapps/chad
node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-build/node_modules/decompress/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/node_modules/es5-ext/test/array/from/shim.js
2636
// Some tests taken from: https://github.com/mathiasbynens/Array.from/blob/master/tests/tests.js 'use strict'; module.exports = function( t, a ) { var o = [1, 2, 3], MyType; a.not( t( o ), o, "Array" ); a.deep( t( o ), o, "Array: same content" ); a.deep( t( '12r3v' ), ['1', '2', 'r', '3', 'v'], "String" ); a.deep( t( (function() { return arguments; }( 3, o, 'raz' )) ), [3, o, 'raz'], "Arguments" ); a.deep( t( (function() { return arguments; }( 3 )) ), [3], "Arguments with one numeric value" ); a.deep( t( { 0: 'raz', 1: 'dwa', length: 2 } ), ['raz', 'dwa'], "Other" ); a.deep( t( o, function( val ) { return (val + 2) * 10; }, 10 ), [30, 40, 50], "Mapping" ); a.throws( function() { t(); }, TypeError, "Undefined" ); a.deep( t( 3 ), [], "Primitive" ); a( t.length, 1, "Length" ); a.deep( t( { length: 0 } ), [], "No values Array-like" ); a.deep( t( { length: -1 } ), [], "Invalid length Array-like" ); a.deep( t( { length: -Infinity } ), [], "Invalid length Array-like #2" ); a.throws( function() { t( undefined ); }, TypeError, "Undefined" ); a.throws( function() { t( null ); }, TypeError, "Null" ); a.deep( t( false ), [], "Boolean" ); a.deep( t( -Infinity ), [], "Inifity" ); a.deep( t( -0 ), [], "-0" ); a.deep( t( +0 ), [], "+0" ); a.deep( t( 1 ), [], "1" ); a.deep( t( +Infinity ), [], "+Infinity" ); a.deep( t( {} ), [], "Plain object" ); a.deep( t( { length: 1 } ), [undefined], "Sparse array-like" ); a.deep( t( { '0': 'a', '1': 'b', length: 2 }, function( x ) { return x + x; } ), ['aa', 'bb'], "Map" ); a.deep( t( { '0': 'a', '1': 'b', length: 2 }, function( x ) { return String( this ); }, undefined ), ['undefined', 'undefined'], "Map context" ); a.deep( t( { '0': 'a', '1': 'b', length: 2 }, function( x ) { return String( this ); }, 'x' ), ['x', 'x'], "Map primitive context" ); a.throws( function() { t( {}, 'foo', 'x' ); }, TypeError, "Non callable for map" ); a.deep( t.call( null, { length: 1, '0': 'a' } ), ['a'], "Null context" ); a( t( { __proto__: { '0': 'abc', length: 1 } } )[0], 'abc', "Values on prototype" ); a.throws( function() { t.call( function() { return Object.freeze( {} ); }, {} ); }, TypeError, "Contructor producing freezed objects" ); // Ensure no setters are called for the indexes // Ensure no setters are called for the indexes MyType = function() { }; Object.defineProperty( MyType.prototype, '0', { set: function( x ) { throw new Error( 'Setter called: ' + x ); } } ); a.deep( t.call( MyType, { '0': 'abc', length: 1 } ), { '0': 'abc', length: 1 }, "Defined not set" ); };
gpl-2.0
sameed7/sesc-drowsy
src/libll/Instruction.cpp
3933
/* SESC: Super ESCalar simulator Copyright (C) 2003 University of Illinois. Contributed by Jose Renau Luis Ceze This file is part of SESC. SESC 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. SESC 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 SESC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* This code is inspired in smt:scodes.c It translates MIPS codes to a * easier to manipulate format. MIPSInstruction.cpp, Instruction.h, * and ExecutionFlow.h should be the only files to modify if VESC is * ported to another fronted (embra,i386...) * */ #include "icode.h" #include "opcodes.h" #include "globals.h" #include "Instruction.h" #include "PPCDecoder.h" #include "SescConf.h" #include "TraceFlow.h" #ifdef SESC_RSTTRACE #include "RSTFlow.h" #endif #ifdef QEMU_DRIVEN #include "qemu_sesc.h" #endif #if (defined MIPS_EMUL) #include "EmulInit.h" #else void mint_init(int32_t argc, char **argv, char **envp); #endif OP(mint_getpid); int32_t isFirstInFuncCall(uint32_t addr); char *print_instr_regs(icode_ptr picode, thread_ptr pthread, int32_t maxlen); // iBJUncond is also true for all the conditional instruction // marked as likely. If the compiler tells me that most of the // time is taken. Do you believe the compiler? // For crafty, the results are worse. // Following the ISA advice can backfire through two places: // // 1-You have a very good predictor, and it's better than the ISA // suggested. // // After playing with it for a while, I recommend not to follow the // ISA advice // //#define FOLLOW_MIPSPRO_ADVICE 1 static const char *opcode2NameTable[] = { "iOpInvalid", "iALU", "iMult", "iDiv", "iBJ", "iLoad", "iStore", "fpALU", "fpMult", "fpDiv", "iFence", "iEvent" }; icode_ptr Instruction::LowerLimit; icode_ptr Instruction::UpperLimit; int32_t Instruction::maxFuncID=0; Instruction *Instruction::InstTable = 0; Instruction::InstHash Instruction::instHash; size_t Instruction::InstTableSize = 0; void Instruction::initialize(int32_t argc ,char **argv ,char **envp) { #ifdef SESC_RSTTRACE RSTFlow::setTraceFile(argv[2]); #elif QEMU_DRIVEN ThreadContext::staticConstructor(); qemu_loader(argc, argv); #elif TRACE_DRIVEN const char *traceMode = SescConf->getCharPtr("","traceMode"); printf("getting the trace mode parameter parameter from the Instruction.cpp file"); if(argc < 1) { MSG("No trace parameter given"); exit(0); } TraceFlow::setTraceFile(argv[2]); if(strcmp(traceMode, "ppctt6") == 0) { initializePPCTrace(argc, argv, envp); } else if(strcmp(traceMode, "simics") == 0) { //initializeSimicsTrace(argc, argv, envp); } #elif (defined MIPS_EMUL) emulInit(argc, argv, envp); #else initializeMINT(argc, argv, envp); #endif } void Instruction::finalize() { #ifdef TRACE_DRIVEN //TODO: go through the instHash deleting the insts #else free(InstTable); InstTable = 0; #endif } const char *Instruction::opcode2Name(InstType op) { return opcode2NameTable[op]; } void Instruction::dump(const char *str) const { MSG("%s:0x%8x: reg[%2d] = reg[%2d] [%8s:%2d] reg[%2d] (uEvent=%d)", str, (int)getAddr(), dest, src1, opcode2Name(opcode), subCode, src2, uEvent); #if !((defined TRACE_DRIVEN)||(defined MIPS_EMUL)||(defined QEMU_DRIVEN)) // This is mint-only junk Itext[currentID()]->dump(); #endif }
gpl-2.0
mab0130/lvl5AF
wp-content/plugins/contact-form-plugin/bws_menu/bws_menu.php
23068
<?php /* Function for displaying BestWebSoft menu */ if ( ! function_exists( 'bws_add_menu_render' ) ) { function bws_add_menu_render() { global $wpdb, $wp_version, $title; if ( ! function_exists( 'is_plugin_active_for_network' ) ) require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); $all_plugins = get_plugins(); $error = ''; $message = ''; $bwsmn_form_email = ''; $active_plugins = get_option( 'active_plugins' ); $array_activate = array(); $array_install = array(); $array_recomend = array(); $count_activate = $count_install = $count_recomend = 0; $array_plugins = array( array( 'captcha\/captcha.php', 'Captcha', 'http://bestwebsoft.com/plugin/captcha-plugin/', 'http://bestwebsoft.com/plugin/captcha-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=captcha.php' ), array( 'contact-form-plugin\/contact_form.php', 'Contact Form', 'http://bestwebsoft.com/plugin/contact-form/', 'http://bestwebsoft.com/plugin/contact-form/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=contact_form.php' ), array( 'facebook-button-plugin\/facebook-button-plugin.php', 'Facebook Like Button Plugin', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=facebook-button-plugin.php' ), array( 'twitter-plugin\/twitter.php', 'Twitter Plugin', 'http://bestwebsoft.com/plugin/twitter-plugin/', 'http://bestwebsoft.com/plugin/twitter-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=twitter.php' ), array( 'portfolio\/portfolio.php', 'Portfolio', 'http://bestwebsoft.com/plugin/portfolio-plugin/', 'http://bestwebsoft.com/plugin/portfolio-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=portfolio.php' ), array( 'gallery-plugin\/gallery-plugin.php', 'Gallery', 'http://bestwebsoft.com/plugin/gallery-plugin/', 'http://bestwebsoft.com/plugin/gallery-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=gallery-plugin.php' ), array( 'adsense-plugin\/adsense-plugin.php', 'Google AdSense Plugin', 'http://bestwebsoft.com/plugin/google-adsense-plugin/', 'http://bestwebsoft.com/plugin/google-adsense-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=adsense-plugin.php' ), array( 'custom-search-plugin\/custom-search-plugin.php', 'Custom Search Plugin', 'http://bestwebsoft.com/plugin/custom-search-plugin/', 'http://bestwebsoft.com/plugin/custom-search-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_search.php' ), array( 'quotes-and-tips\/quotes-and-tips.php', 'Quotes and Tips', 'http://bestwebsoft.com/plugin/quotes-and-tips/', 'http://bestwebsoft.com/plugin/quotes-and-tips/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=quotes-and-tips.php' ), array( 'google-sitemap-plugin\/google-sitemap-plugin.php', 'Google sitemap plugin', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-sitemap-plugin.php' ), array( 'updater\/updater.php', 'Updater', 'http://bestwebsoft.com/plugin/updater-plugin/', 'http://bestwebsoft.com/plugin/updater-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=updater-options' ), array( 'custom-fields-search\/custom-fields-search.php', 'Custom Fields Search', 'http://bestwebsoft.com/plugin/custom-fields-search/', 'http://bestwebsoft.com/plugin/custom-fields-search/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_fields_search.php' ), array( 'google-one\/google-plus-one.php', 'Google +1', 'http://bestwebsoft.com/plugin/google-plus-one/', 'http://bestwebsoft.com/plugin/google-plus-one/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-plus-one.php' ), array( 'relevant\/related-posts-plugin.php', 'Related Posts Plugin', 'http://bestwebsoft.com/plugin/related-posts-plugin/', 'http://bestwebsoft.com/plugin/related-posts-plugin/#download', '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=related-posts-plugin.php' ), array( 'contact-form-to-db\/contact_form_to_db.php', 'Contact Form to DB', 'http://bestwebsoft.com/plugin/contact-form-to-db/', 'http://bestwebsoft.com/plugin/contact-form-to-db/#download', '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=cntctfrmtdb_settings' ), array( 'pdf-print\/pdf-print.php', 'PDF & Print', 'http://bestwebsoft.com/plugin/pdf-print/', 'http://bestwebsoft.com/plugin/pdf-print/#download', '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=pdf-print.php' ) ); foreach ( $array_plugins as $plugins ) { if ( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) || is_plugin_active_for_network( str_replace( '\\', '', $plugins[0] ) ) ) { $array_activate[ $count_activate ]["title"] = $plugins[1]; $array_activate[ $count_activate ]["link"] = $plugins[2]; $array_activate[ $count_activate ]["href"] = $plugins[3]; $array_activate[ $count_activate ]["url"] = $plugins[5]; $count_activate++; } else if ( array_key_exists( str_replace( "\\", "", $plugins[0] ), $all_plugins ) ) { $array_install[ $count_install ]["title"] = $plugins[1]; $array_install[ $count_install ]["link"] = $plugins[2]; $array_install[ $count_install ]["href"] = $plugins[3]; $count_install++; } else { $array_recomend[ $count_recomend ]["title"] = $plugins[1]; $array_recomend[ $count_recomend ]["link"] = $plugins[2]; $array_recomend[ $count_recomend ]["href"] = $plugins[3]; $array_recomend[ $count_recomend ]["slug"] = $plugins[4]; $count_recomend++; } } $array_activate_pro = array(); $array_install_pro = array(); $array_recomend_pro = array(); $count_activate_pro = $count_install_pro = $count_recomend_pro = 0; $array_plugins_pro = array( array( 'gallery-plugin-pro\/gallery-plugin-pro.php', 'Gallery Pro', 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0', 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0#purchase', 'admin.php?page=gallery-plugin-pro.php' ), array( 'contact-form-pro\/contact_form_pro.php', 'Contact Form Pro', 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71', 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71#purchase', 'admin.php?page=contact_form_pro.php' ), array( 'captcha-pro\/captcha_pro.php', 'Captcha Pro', 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e', 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e#purchase', 'admin.php?page=captcha_pro.php' ), array( 'updater-pro\/updater_pro.php', 'Updater Pro', 'http://bestwebsoft.com/plugin/updater-pro/?k=cf633acbefbdff78545347fe08a3aecb', 'http://bestwebsoft.com/plugin/updater-pro?k=cf633acbefbdff78545347fe08a3aecb#purchase', 'admin.php?page=updater-pro-options' ), array( 'contact-form-to-db-pro\/contact_form_to_db_pro.php', 'Contact Form to DB Pro', 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a', 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a#purchase', 'admin.php?page=cntctfrmtdbpr_settings' ) ); foreach ( $array_plugins_pro as $plugins ) { if ( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) || is_plugin_active_for_network( str_replace( '\\', '', $plugins[0] ) ) ) { $array_activate_pro[ $count_activate_pro ]["title"] = $plugins[1]; $array_activate_pro[ $count_activate_pro ]["link"] = $plugins[2]; $array_activate_pro[ $count_activate_pro ]["href"] = $plugins[3]; $array_activate_pro[ $count_activate_pro ]["url"] = $plugins[4]; $count_activate_pro++; } else if ( array_key_exists( str_replace( "\\", "", $plugins[0]), $all_plugins ) ) { $array_install_pro[ $count_install_pro ]["title"] = $plugins[1]; $array_install_pro[ $count_install_pro ]["link"] = $plugins[2]; $array_install_pro[ $count_install_pro ]["href"] = $plugins[3]; $count_install_pro++; } else { $array_recomend_pro[ $count_recomend_pro ]["title"] = $plugins[1]; $array_recomend_pro[ $count_recomend_pro ]["link"] = $plugins[2]; $array_recomend_pro[ $count_recomend_pro ]["href"] = $plugins[3]; $count_recomend_pro++; } } $sql_version = $wpdb->get_var( "SELECT VERSION() AS version" ); $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" ); if ( is_array( $mysql_info) ) $sql_mode = $mysql_info[0]->Value; if ( empty( $sql_mode ) ) $sql_mode = __( 'Not set', 'bestwebsoft' ); if ( ini_get( 'safe_mode' ) ) $safe_mode = __( 'On', 'bestwebsoft' ); else $safe_mode = __( 'Off', 'bestwebsoft' ); if ( ini_get( 'allow_url_fopen' ) ) $allow_url_fopen = __( 'On', 'bestwebsoft' ); else $allow_url_fopen = __( 'Off', 'bestwebsoft' ); if ( ini_get( 'upload_max_filesize' ) ) $upload_max_filesize = ini_get( 'upload_max_filesize' ); else $upload_max_filesize = __( 'N/A', 'bestwebsoft' ); if ( ini_get('post_max_size') ) $post_max_size = ini_get('post_max_size'); else $post_max_size = __( 'N/A', 'bestwebsoft' ); if ( ini_get( 'max_execution_time' ) ) $max_execution_time = ini_get( 'max_execution_time' ); else $max_execution_time = __( 'N/A', 'bestwebsoft' ); if ( ini_get( 'memory_limit' ) ) $memory_limit = ini_get( 'memory_limit' ); else $memory_limit = __( 'N/A', 'bestwebsoft' ); if ( function_exists( 'memory_get_usage' ) ) $memory_usage = round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' ); else $memory_usage = __( 'N/A', 'bestwebsoft' ); if ( is_callable( 'exif_read_data' ) ) $exif_read_data = __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" ; else $exif_read_data = __( 'No', 'bestwebsoft' ); if ( is_callable( 'iptcparse' ) ) $iptcparse = __( 'Yes', 'bestwebsoft' ); else $iptcparse = __( 'No', 'bestwebsoft' ); if ( is_callable( 'xml_parser_create' ) ) $xml_parser_create = __( 'Yes', 'bestwebsoft' ); else $xml_parser_create = __( 'No', 'bestwebsoft' ); if ( function_exists( 'wp_get_theme' ) ) $theme = wp_get_theme(); else $theme = get_theme( get_current_theme() ); if ( function_exists( 'is_multisite' ) ) { if ( is_multisite() ) { $multisite = __( 'Yes', 'bestwebsoft' ); } else { $multisite = __( 'No', 'bestwebsoft' ); } } else $multisite = __( 'N/A', 'bestwebsoft' ); $site_url = get_option( 'siteurl' ); $home_url = get_option( 'home' ); $db_version = get_option( 'db_version' ); $system_info = array( 'system_info' => '', 'active_plugins' => '', 'inactive_plugins' => '' ); $system_info['system_info'] = array( __( 'Operating System', 'bestwebsoft' ) => PHP_OS, __( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"], __( 'Memory usage', 'bestwebsoft' ) => $memory_usage, __( 'MYSQL Version', 'bestwebsoft' ) => $sql_version, __( 'SQL Mode', 'bestwebsoft' ) => $sql_mode, __( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION, __( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode, __( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen, __( 'PHP Memory Limit', 'bestwebsoft' ) => $memory_limit, __( 'PHP Max Upload Size', 'bestwebsoft' ) => $upload_max_filesize, __( 'PHP Max Post Size', 'bestwebsoft' ) => $post_max_size, __( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time, __( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data, __( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse, __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create, __( 'Site URL', 'bestwebsoft' ) => $site_url, __( 'Home URL', 'bestwebsoft' ) => $home_url, __( 'WordPress Version', 'bestwebsoft' ) => $wp_version, __( 'WordPress DB Version', 'bestwebsoft' ) => $db_version, __( 'Multisite', 'bestwebsoft' ) => $multisite, __( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version'] ); foreach ( $all_plugins as $path => $plugin ) { if ( is_plugin_active( $path ) ) { $system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version']; } else { $system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version']; } } if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) || ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) { if ( isset( $_REQUEST['bwsmn_form_email'] ) ) { $bwsmn_form_email = trim( $_REQUEST['bwsmn_form_email'] ); if ( $bwsmn_form_email == "" || !preg_match( "/^((?:[a-z0-9']+(?:[a-z0-9\-_\.']+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})[, ]*)+$/i", $bwsmn_form_email ) ) { $error = __( "Please enter a valid email address.", 'bestwebsoft' ); } else { $email = $bwsmn_form_email; $bwsmn_form_email = ''; $message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email; } } else { $email = 'plugin_system_status@bestwebsoft.com'; $message = __( 'Thank you for contacting us.', 'bestwebsoft' ); } if ( $error == '' ) { $headers = 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\n"; $headers .= 'From: ' . get_option( 'admin_email' ); $message_text = '<html><head><title>System Info From ' . $home_url . '</title></head><body> <h4>Environment</h4> <table>'; foreach ( $system_info['system_info'] as $key => $value ) { $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>'; } $message_text .= '</table> <h4>Active Plugins</h4> <table>'; foreach ( $system_info['active_plugins'] as $key => $value ) { $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>'; } $message_text .= '</table> <h4>Inactive Plugins</h4> <table>'; foreach ( $system_info['inactive_plugins'] as $key => $value ) { $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>'; } $message_text .= '</table></body></html>'; $result = wp_mail( $email, 'System Info From ' . $home_url, $message_text, $headers ); if ( $result != true ) $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' ); } } ?><div class="wrap"> <div class="icon32 icon32-bws" id="icon-options-general"></div> <h2><?php echo $title; ?></h2> <div class="updated fade" <?php if ( ! ( isset( $_REQUEST['bwsmn_form_submit'] ) || isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) ) || $error != "" ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div> <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div> <h3 style="color: blue;"><?php _e( 'Pro plugins', 'bestwebsoft' ); ?></h3> <?php if ( 0 < $count_activate_pro ) { ?> <div style="padding-left:15px;"> <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4> <?php foreach ( $array_activate_pro as $activate_plugin ) { ?> <div style="float:left; width:200px;"><?php echo $activate_plugin["title"]; ?></div> <p><a href="<?php echo $activate_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $activate_plugin["url"]; ?>"><?php echo __( "Settings", 'bestwebsoft' ); ?></a></p> <?php } ?> </div> <?php } ?> <?php if ( 0 < $count_install_pro ) { ?> <div style="padding-left:15px;"> <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4> <?php foreach ( $array_install_pro as $install_plugin) { ?> <div style="float:left; width:200px;"><?php echo $install_plugin["title"]; ?></div> <p><a href="<?php echo $install_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p> <?php } ?> </div> <?php } ?> <?php if ( 0 < $count_recomend_pro ) { ?> <div style="padding-left:15px;"> <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4> <?php foreach ( $array_recomend_pro as $recomend_plugin ) { ?> <div style="float:left; width:200px;"><?php echo $recomend_plugin["title"]; ?></div> <p><a href="<?php echo $recomend_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_plugin["href"]; ?>" target="_blank"><?php echo __( "Purchase", 'bestwebsoft' ); ?></a></p> <?php } ?> </div> <?php } ?> <br /> <h3 style="color: green"><?php _e( 'Free plugins', 'bestwebsoft' ); ?></h3> <?php if ( 0 < $count_activate ) { ?> <div style="padding-left:15px;"> <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4> <?php foreach ( $array_activate as $activate_plugin ) { ?> <div style="float:left; width:200px;"><?php echo $activate_plugin["title"]; ?></div> <p><a href="<?php echo $activate_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $activate_plugin["url"]; ?>"><?php echo __( "Settings", 'bestwebsoft' ); ?></a></p> <?php } ?> </div> <?php } ?> <?php if ( 0 < $count_install ) { ?> <div style="padding-left:15px;"> <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4> <?php foreach ( $array_install as $install_plugin ) { ?> <div style="float:left; width:200px;"><?php echo $install_plugin["title"]; ?></div> <p><a href="<?php echo $install_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p> <?php } ?> </div> <?php } ?> <?php if ( 0 < $count_recomend ) { ?> <div style="padding-left:15px;"> <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4> <?php foreach ( $array_recomend as $recomend_plugin ) { ?> <div style="float:left; width:200px;"><?php echo $recomend_plugin["title"]; ?></div> <p><a href="<?php echo $recomend_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_plugin["href"]; ?>" target="_blank"><?php echo __( "Download", 'bestwebsoft' ); ?></a> <a class="install-now" href="<?php echo get_bloginfo( "url" ) . $recomend_plugin["slug"]; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_plugin["title"] ) ) ?>" target="_blank"><?php echo __( 'Install now from wordpress.org', 'bestwebsoft' ) ?></a></p> <?php } ?> </div> <?php } ?> <br /> <span style="color: rgb(136, 136, 136); font-size: 10px;"><?php _e( 'If you have any questions, please contact us via', 'bestwebsoft' ); ?> <a href="http://support.bestwebsoft.com">http://support.bestwebsoft.com</a></span> <div id="poststuff" class="bws_system_info_meta_box"> <div class="postbox"> <div class="handlediv" title="Click to toggle"> <br> </div> <h3 class="hndle"> <span><?php _e( 'System status', 'bestwebsoft' ); ?></span> </h3> <div class="inside"> <table class="bws_system_info"> <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead> <tbody> <?php foreach ( $system_info['system_info'] as $key => $value ) { ?> <tr> <td scope="row"><?php echo $key; ?></td> <td scope="row"><?php echo $value; ?></td> </tr> <?php } ?> </tbody> </table> <table class="bws_system_info"> <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead> <tbody> <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?> <tr> <td scope="row"><?php echo $key; ?></td> <td scope="row"><?php echo $value; ?></td> </tr> <?php } ?> </tbody> </table> <table class="bws_system_info"> <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead> <tbody> <?php foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?> <tr> <td scope="row"><?php echo $key; ?></td> <td scope="row"><?php echo $value; ?></td> </tr> <?php } ?> </tbody> </table> <div class="clear"></div> <form method="post" action="admin.php?page=bws_plugins"> <p> <input type="hidden" name="bwsmn_form_submit" value="submit" /> <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" /> <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?> </p> </form> <form method="post" action="admin.php?page=bws_plugins"> <p> <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" /> <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" /> <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" /> <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?> </p> </form> </div> </div> </div> </div> <?php } } ?>
gpl-2.0
blablacio/uwsgi
tests/fileserve_async.py
422
import sys import mimetypes basedir = sys.argv[1] mimetypes.init() def application(environ, start_response): filename = basedir + environ['PATH_INFO'] (content_type, encoding) = mimetypes.guess_type(filename) if not content_type: content_type = 'text/plain' start_response('200 OK', [('Content-Type', content_type)]) fd = open(filename) yield environ['wsgi.file_wrapper'](fd, 32*1024)
gpl-2.0
Alexpux/GCC
libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/requirements/typedefs.cc
1247
// { dg-do compile } // { dg-options "-std=gnu++11" } // { dg-require-cstdint "" } // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // // Copyright (C) 2008-2014 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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, 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 General Public License for more details. // // You should have received a copy of the GNU General Public License along // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. // 26.4.8.4.3 Class template chi_squared_distribution [rand.dist.norm.chisq] // 26.4.2.4 Concept RandomNumberDistribution [rand.concept.dist] #include <random> void test01() { typedef std::chi_squared_distribution<double> test_type; typedef test_type::result_type result_type; typedef test_type::param_type param_type; }
gpl-2.0
abthefish/flatpress-csi-280
setup/lib/step1.lib.php
511
<?php function check_step() { global $err; if(check_write(SETUPTEMP_FILE, 2)) { $r = fs_mkdir(CACHE_DIR); $r &= fs_mkdir(INDEX_DIR); $r &= fs_copy(CONFIG_DEFAULT, CONFIG_FILE); $r &= fs_copy(FP_DEFAULTS. 'plugins.conf.php', CONFIG_DIR . 'plugins.conf.php'); $r &= fs_copy(FP_DEFAULTS. 'widgets.conf.php', CONFIG_DIR . 'widgets.conf.php'); //$r &= create_content(); return true; } $err[] = 'Write error'; return false; } ?>
gpl-2.0
topic2k/EventGhost
languages/nl_NL.py
37840
# -*- coding: UTF-8 -*- class General: apply = u"Toepassen" autostartItem = u"Automatisch Starten" browse = u"Bladeren" cancel = u"Annuleren" choose = u"Kiezen" configTree = u"Configuratie Boom" deleteLinkedItems = u"Ten minste 1 element buiten je selectie, verwijst naar een element in je selectie. Als je doorgaat met deze selectie te verwijderen zal het verwijzende element niet goed meer werken.\n\nBen je zeker dat je deze selectie wenst te verwijderen?" deleteManyQuestion = u"Dit element heeft %s onderliggende elementen.\nBen je zeker dat je ze allemaal wenst te verwijderen?" deletePlugin = u"Deze invoegtoepassing is in gebruik door acties in je configuratie.\nJe kan het niet verwijderen zolang er acties zijn die deze invoegtoepassing gebruiken." deleteQuestion = u"Ben je zeker dat je dit element wenst te verwijderen?" help = u"&Help" moreTag = u"meer..." noOptionsAction = u"Deze actie heeft geen configureerbare opties." noOptionsPlugin = u"Deze invoegtoepassing heeft geen opties om in te stellen." ok = u"OK" pluginLabel = u"Invoegtoepassing: %s" test = u"&Test" unnamedEvent = u"<onbenoemde gebeurtenis>" unnamedFile = u"<onbenoemd bestand>" unnamedFolder = u"<onbenoemde Map>" unnamedMacro = u"<onbenoemde Makro>" class MainFrame: onlyLogAssigned = u"&Log enkel toegewezen en geactiveerde gebeurtenissen." class Logger: caption = u"Log" descriptionHeader = u"Beschrijving" timeHeader = u"Tijd" welcomeText = u"---> Welkom bij EventGhost <---" class Menu: About = u"&Over EventGhost..." AddAction = u"Actie Toevoegen" AddEvent = u"Gebeurtenis Toevoegen" AddFolder = u"Map Toevoegen" AddMacro = u"Makro Toevoegen" AddPlugin = u"Invoegtoepassing Toevoegen" Apply = u"&Wijzigingen Toepassen" CheckUpdate = u"Controleren op nieuwe versies..." ClearLog = u"Wis Log" Close = u"&Sluiten" CollapseAll = u"Alles &Toeklappen" ConfigurationMenu = u"&Configuratie" Configure = u"Configureer Element" Copy = u"&Kopiëren" Cut = u"&Knippen" Delete = u"&Wissen" Disabled = u"Element Uitschakelen" EditMenu = u"&Bewerken" Execute = u"Uitvoeren Element" Exit = u"&Sluiten" ExpandAll = u"Alles &Openklappen" ExpandOnEvents = u"Autom. markeren bij gebeurtenis" ExpandTillMacro = u"Autom. uitklappen enkel tot Makro" Export = u"Exporteren..." FileMenu = u"&Bestand" Find = u"&Zoeken" FindNext = u"Zoek &Volgende" HelpMenu = u"&Help" HideShowToolbar = u"Werkbalk" Import = u"Importeer..." LogActions = u"Log Acties" LogMacros = u"Log Makros" LogTime = u"Log Tijd" New = u"&Nieuw" Open = u"&Openen..." Options = u"&Opties..." Paste = u"&Plakken" Redo = u"&Opnieuw" Rename = u"Naam wijzigen" Reset = u"Reset" Save = u"&Opslaan" SaveAs = u"Opslaan &Als..." SelectAll = u"&Alles Selecteren" Undo = u"&Ongedaan Maken" ViewMenu = u"Weergave" WebForum = u"Ondersteunings Forum" WebHomepage = u"Thuis Pagina" WebWiki = u"Wiki" class SaveChanges: mesg = u"Het bestand werd gewijzigd.\n\nWenst u de wijzigingen op te slaan?" title = u"Wijzigingen opslaan?" class TaskBarMenu: Exit = u"&Sluiten" Hide = u"Verberg EventGhost" Show = u"Toon EventGhost" class Tree: caption = u"Configuratie" class Error: FileNotFound = u'Bestand "%s" kon niet worden gevonden.' InAction = u'Fout in Actie: "%s"' configureError = u"Fout gedurende configuratie: %s" pluginLoadError = u"Fout gedurende laden van invoegtoepassing %s." pluginNotActivated = u'Invoegtoepassing "%s" is niet geactiveerd' pluginStartError = u"Fout tijdens opstarten Invoegtoepassing: %s" class Exceptions: DeviceInitFailed = u"Initialisatie Apparaat Mislukt!" DeviceNotFound = u"Apparaat niet gevonden!" DeviceNotReady = u"Apparaat niet klaar!" DriverNotFound = u"Driver niet gevonden!" DriverNotOpen = u"Driver kon niet worden geopend!" InitFailed = u"Initialisatie Mislukt!" PluginNotFound = u"Invoegtoepassing niet gevonden!" ProgramNotFound = u"Applicatie niet gevonden!" ProgramNotRunning = u"Applicatie is niet aan het uitvoeren!" SerialOpenFailed = u"Kan de seriële poort niet openen!" class CheckUpdate: ManErrorMesg = u"Het was niet mogelijk de informatie van de EventGhost website te halen.\n\nProbeer later opnieuw a.u.b." ManErrorTitle = u"Fout tijdens het controleren op nieuwere versies." ManOkMesg = u"Deze versie van EventGhost is de nieuwste." ManOkTitle = u"Geen nieuwere versie beschikbaar." downloadButton = u"Ga naar Download Pagina" newVersionMesg = u"Een nieuwere versie van EventGhost is beschikbaar.\n\n Jouw Versie : %s\n Laatste Versie : %s\n\nWens je de download pagina te bezoeken ?" title = u"Nieuwe EventGhost versie beschikbaar..." waitMesg = u"Gelieve te wachten terwijl EventGhost de update informatie verzamelt." class AddActionDialog: descriptionLabel = u"Beschrijving" title = u"Selecteer een actie om toe te voegen..." class AddPluginDialog: author = u"Auteur:" descriptionBox = u"Beschrijving" externalPlugins = u"Externe Invoegtoepassing" noInfo = u"Geen Info beschikbaar." noMultiload = u"Deze Invoeg toepassing ondersteunt niet om meerdere malen te worden opgeladen en er is reeds een instantie in je configuratie aanwezig." noMultiloadTitle = u"Geen meermaals laden mogelijk." otherPlugins = u"Andere" programPlugins = u"Programma Besturing" remotePlugins = u"Afstandsbediening" title = u"Kies een Invoegtoepassing om toe te voegen..." version = u"Versie:" class AddActionGroupDialog: caption = u"Acties toevoegen?" message = u"Eventghost kan een Map met alle acties voor deze Invoegtoepassing in uw configuratie toevoegen. Indien je dat wenst, selecteer eerst de lokatie waar het moet worden toegevoegd en druk dan op OK.\n\nIndien niet, druk op Cancel." class OptionsDialog: CheckUpdate = u"Controleer op nieuwere versies bij het opstarten." HideOnClose = u"Zend naar systeemlade bij het afsluiten." HideOnStartup = u"Verbergen bij het opstarten." LanguageGroup = u"Taal" StartGroup = u"Bij Start" StartWithWindows = u"Opstarten als Windows start." Tab1 = u"Algemeen" Title = u"Opties" UseAutoloadFile = u"Bestand vanzelf laden" Warning = u"Taal veranderingen worden pas zichtbaar na een herstart van de applicatie." confirmDelete = u"Bevestig verwijderen van de boom elementen." limitMemory1 = u"Bespaar geheugenverbruik tijdens minimaliseren." limitMemory2 = u"MB" class FindDialog: caseSensitive = u"&Hoofdlettergevoelig" direction = u"Richting" down = u"&Neerwaarts" findButton = u"&Zoek Volgende" notFoundMesg = u'"%s" kon niet worden gevonden.' searchLabel = u"Zoek:" searchParameters = u"Zoek ook in actie parameters" title = u"Zoeken" up = u"&Opwaarts" wholeWordsOnly = u"Enkel op het volledige woord zoeken" class AboutDialog: Author = u"Auteur: %s" CreationDate = u"%a, %d %b %Y %H:%M:%S" Title = u"Over EventGhost" Version = u"Versie: %s (compilatie %s)" tabAbout = u"Over" tabChangelog = u"Versie wijzigingen" tabLicense = u"Licentie Overeenkomst" tabSpecialThanks = u"Speciale Dank" tabSystemInfo = u"Systeem Informatie" class Plugin: class EventGhost: name = u"EventGhost" description = u"Hier vind je acties die hoofdzakelijk de kernfunctionaliteit van EventGhost controleren." class AutoRepeat: name = u"Herhaal vanzelf huidige macro" description = u"Verandert de makro waar dit commando wordt toegevoegd in een zelf herhalende macro." seconds = u"seconden" text1 = u"Eerste herhaling starten na" text2 = u"met één herhaling elke" text3 = u"verhoog de herhaling de volgende" text4 = u"tot één herhaling elke" class Comment: name = u"Opmerking" description = u"Gewoon een doe-niets actie die kan gebruikt worden om een opmerking in uw configuratie toe te voegen." class DisableItem: name = u"Schakel een element uit" description = u"Schakel een element uit" label = u"Uitschakelen: %s" text1 = u"Selecteer het uit te schakelen element:" class EnableExclusive: name = u"Schakel exclusief een element aan" description = u"Dit schakelt een specifieke map of makro in uw configuratie aan, maar schakelt ook alle andere broer/zuster mappen en makros uit, die in dezelfde hoogte in de boom hangen." label = u"Schakel exclusief aan: %s" text1 = u"Selecteer het exclusief aan te schakelen element:" class EnableItem: name = u"Schakel een element aan" description = u"Schakel een element aan" label = u"Schakel aan: %s" text1 = u"Selecteer het aan te schakelen element:" class FlushEvents: name = u"Wis uitstaande gebeurtenissen" description = u'De "Wis Uitstaande Gebeurtenissen" wist alle onverwerkte gebeurtenissen die momenteel in de wachtrij om te verwerken zitten.\n\n<p>Het is nuttig in het geval een makro een lange uitvoeringsduur heeft en er ondertussen gebeurtenissen in de wachtrij zitten die niet meer verwerkt hoeven te worden.<p><b>Voorbeeld:</b> U heeft een lange "Start Systeem" makro die 90 seconden duurt om te verwerken. De gebruiker zal niets merken tot de projector oplicht, welke 60 seconden duurt. Het is te verwachten dat de gebruiker verschillende keren de afstandsbedieningsknop gebruikt die dan deze makro verschillende keren probeert uit te voeren en dus de lange wachttijd opnieuw teweeg brengt. Als je een "Wis Uitstaande Gebeurtenissen" makro aan het einde toevoegt, zullen de afstandsbedieningsknopdrukken die te veel zijn, verworpen worden.' class JumpIf: name = u"Spring als" description = u"Springt naar een andere makro, als de gespecifieerde python-evaluatie waar is." label1 = u"Als %s ga naar %s" label2 = u"Als %s ga langs %s" mesg1 = u"Selecteer de makro..." mesg2 = u"Gelieve de makro te selecteren die moet worden uitgevoerd indien de conditie waar is." text1 = u"Als:" text2 = u"Ga Naar:" text3 = u"Keer terug na uitvoering" class JumpIfLongPress: name = u"Spring als langdurig gedrukt" description = u"Springt naar een andere makro, als de knop op de afstandsbediening langer dan de geconfigureerde tijd werd ingedrukt." label = u"Als de knop %s seconden werd ingedrukt, ga naar: %s" text1 = u"Als de knop langer werd ingedrukt dan" text2 = u"seconden," text3 = u"spring naar:" text4 = u"Selecteer de lange druk makro..." text5 = u"Gelieve de makro te selecteren, die moet worden uitgevoerd als de gebeurtenis een lange gebeurtenis is." class NewJumpIf: name = u"Spring" description = u"Spring naar een andere makro, als de opgegeven conditie vervuld is." choices = [ u"laatste actie succesvol was ", u"laatste actie onsuccesvol was", u"altijd", ] labels = [ u'Indien succesvol spring naar "%s"', u'Indien onsuccesvol spring naar "%s"', u'Spring naar "%s"', u'Indien succesvol spring naar "%s" en keer terug', u'Indien onsuccesvol spring naar "%s" en keer terug', u'Spring naar "%s" en keer terug', ] mesg1 = u"Selecteer de makro..." mesg2 = u"Gelieve de makro te selecteren die moet worden uitgevoerd als de conditie is vervuld." text1 = u"Als:" text2 = u"Spring Naar:" text3 = u"en keer terug na uitvoering." class PythonCommand: name = u"Python Opdracht" description = u"Voert één Python opdracht uit." parameterDescription = u"Python Opdracht:" class PythonScript: name = u"Python Script" description = u"Voert volledig functionerend Python script uit." class ShowOSD: name = u"Toon OSD" description = u"Toont een eenvoudige tekst op het scherm" alignment = u"Uitlijning:" alignmentChoices = [ u"Boven Links", u"Boven Rechts", u"Onder Links", u"Onder Rechts", u"Scherm Centrum", u"Onderaan Centrum", u"Boven Centrum", u"Links Centrum", u"Rechts Centrum", ] display = u"Toont op scherm:" editText = u"Te tonen Tekst :" label = u"Toon OSD: %s" osdColour = u"Tekst kleur:" osdFont = u"Tekst Lettertype:" outlineFont = u"omlijn OSD:" skin = u"Gebruik 'Skin'" wait1 = u"Verberg OSD na" wait2 = u"seconden (0 = nooit)" xOffset = u"Horizontale verschuiving X: " yOffset = u"Verticale verschuiving Y: " class StopIf: name = u"Stop als" description = u"Stopt een makro uit te voeren, als de opgegeven Python-evaluatie waar is." label = u"Stop als %s" parameterDescription = u"Python conditie:" class StopProcessing: name = u"Stop deze gebeurtenis te verwerken" description = u"Na deze actie zal EventGhost niet langer zoeken naar makros die met deze momenteel uit aan het voeren gebeurtenis overeenkomen." class TriggerEvent: name = u"Genereer Gebeurtenis" description = u"Zorgt er voor dat een gebeurtenis wordt gegenereerd (optioneel na enige tijd)" labelWithTime = u'Genereer gebeurtenis "%s" na %.2f seconden' labelWithoutTime = u'Genereer gebeurtenis "%s"' text1 = u"Genereer Gebeurtenis string :" text2 = u"Vertraag de generatie met:" text3 = u"seconden. (0 = onmiddelijk)" class Wait: name = u"Wacht enige tijd" description = u"Wacht enige tijd" label = u"Wacht: %s sec" seconds = u"seconden" wait = u"Wacht" class System: name = u"Systeem" description = u"Controleert verschillende aspecten van je systeem, zoals geluidskaart, grafische kaart, voedingsbeheer, etc." forced = u"Geforceerd: %s" forcedCB = u"Geforceerd sluiten van alle programmas" class ChangeDisplaySettings: name = u"Verander Scherm Instellingen" description = u"Verander Scherm Instellingen" colourDepth = u"Kleur Diepte:" display = u"Scherm:" frequency = u"Frequentie:" includeAll = u"Voeg schermconfiguraties die deze Monitor niet ondersteunt ook toe." label = u"Configureer Scherm%d in configuratie %dx%d@%d Hz" resolution = u"Resolutie:" storeInRegistry = u"Sla configuratie in Windows Register op." class ChangeMasterVolumeBy: name = u"Verander Hoofd Volume" description = u"Verandert hoofdvolume relatief t.o.v. huidige waarde." text1 = u"Verandert hoofdvolume met" text2 = u"percent." class Execute: name = u"Start Toepassing" description = u"Start een *.exe bestand" FilePath = u"Bestandspad naar *.exe:" Parameters = u"Commando lijn opties:" ProcessOptions = ( u"Ware tijd", u"Boven normaal", u"Normaal", u"onder normaal", u"inactief", ) ProcessOptionsDesc = u"Process prioriteit:" WaitCheckbox = u"Wachten tot toepassing is beëindigt alvorens verder te gaan." WindowOptions = ( u"Normaal", u"Geminimaliseerd", u"Gemaximaliseerd", u"Verborgen", ) WindowOptionsDesc = u"Scherm opties:" WorkingDir = u"Werkpad:" browseExecutableDialogTitle = u"Kies de *.exe " browseWorkingDirDialogTitle = u"Kies het werkpad." label = u"Start Toepassing: %s" class Hibernate: name = u"Hibernate Computer " description = u"Deze functie zorgt ervoor dat het systeem in (hibernate) sluimerstand (S4) gaat. \n\nHibernate zorgt ervoor dat je de computer kan afsluiten en hem vervolgens terug kan inschakelen, waarna hij terug zal schakelen naar de toestand wanneer je hem hebt uitgeschakeld (alle programma's,... zullen geladen zijn). Het opstart proces zal ook sneller verlopen (bij traag opstartende computers)." class LockWorkstation: name = u"Vergrendel Werkstation" description = u"Deze functie zend een verzoek om het werkstation's scherm te vergrendelen. Een Werkstation vergrendelen verhindert ongeauthoriseerd gebruik. Deze functie heeft dezelfde werking als Crtl+Alt+Del drukken en vervolgens op vergrendel werkstation te klikken." class LogOff: name = u"Afmelden huidige gebruiker" description = u"Sluit alle lopende processen in de huidige aangemelde sessie. Daarna meldt het de gebruiker af." class MonitorGroup: name = u"Scherm" description = u"Deze acties controleren het stroomgebruik van het computerscherm." class MonitorPowerOff: name = u"Zet het scherm uit" description = u"Zet het scherm in de uit toestand. Dit is de meest stroomverbruik sparende configuratie die het scherm ondersteund." class MonitorPowerOn: name = u"Zet het scherm aan" description = u"Zet het scherm aan, als het in lage stroomverbruik of uit toestand is. Zal ook een uitvoerende screensaver stoppen met uitvoeren." class MonitorStandby: name = u"Zet het scherm in spaarstand" description = u"Zet het scherm in een lage stroomverbruik toestand." class MuteOff: name = u"Zet Mute Uit" description = u"Zet Mute Uit" class MuteOn: name = u"Zet Mute Aan" description = u"Zet Mute Aan" class OpenDriveTray: name = u"Openen/Sluiten disk lade" description = u"Bestuurt de disk lade van de CD/DVD-ROM speler." driveLabel = u"Disk:" labels = [ u"Schakel disk lade om: %s", u"Open disk lade", u"Sluit disk lade", ] options = [ u"Schakel tussen openen en sluiten van de disk lade", u"Enkel openen disk lade", u"Enkel sluiten disk lade", ] optionsLabel = u"Kies actie" class PlaySound: name = u"Speel Geluid af" description = u"Speel Geluid af" fileMask = u"Wav-Bestanden (*.WAV)|*.wav|Alle-Bestanden (*.*)|*.*" text1 = u"Pad naar geuidsbestand:" text2 = u"Wacht tot beëindigt" class PowerDown: name = u"Sluit computer af" description = u"Sluit het systeem af en schakel de stroom uit. Het systeem moet de stroom-uit functie ondersteunen." class PowerGroup: name = u"Stroomverbruik Beheer" description = u"Deze acties zijn om de computer te onderbreken, slapen, herstarten en uit te schakelen. Je kan ook het werkstation vergrendelen en de gebruiker afmelden." class Reboot: name = u"Herstart Computer" description = u"Sluit systeem af en herstart de computer." class RegistryChange: name = u"Verander Register Waarde" description = u"Wijzigt een waarde in het Windows Register." actions = ( u"creëer of wijzig", u"wijzig indien bestaand", u"verwijder", ) labels = ( u'Wijzig "%s" in %s', u'Wijzig "%s" in %s indien bestaand', u'Verwijder "%s"', ) class RegistryGroup: name = u"Register" description = u"Bevraagt of wijzigt waarden in het Windows Register" actionText = u"Actie:" chooseText = u"Kies Register sleutel:" defaultText = u"(Standaard)" keyOpenError = u"Fout bij openen register sleutel" keyText = u"Sleutel:" keyText2 = u"Sleutel" newValue = u"Nieuwe waarde:" noKeyError = u"Geen sleutel opgegeven" noNewValueError = u"Geen nieuwe waarde opgegeven" noSubkeyError = u"Geen ondersleutel opgegeven" noTypeError = u"Geen type opgegeven" noValueNameError = u"Geen waarde naam opgegeven" noValueText = u"Waarde niet gevonden" oldType = u"Huidig Type:" oldValue = u"Huidige Waarde:" typeText = u"Type:" valueChangeError = u"Fout bij wijzigen waarde" valueName = u"Waarde naam:" valueText = u"Waarde:" class RegistryQuery: name = u"Bevraag Register" description = u"Zoekt in het Windows register en levert of vergelijkt de waarde" actions = ( u"verifieer bestaan", u"terug als uitkomst", u"vergelijk met", ) labels = ( u'Verifieer of "%s" bestaat', u'Lever "%s" als uitkomst', u'Vergelijk "%s" met %s', ) class ResetIdleTimer: name = u"Initialiseer inactieve Timer" description = u"Initialiseer inactieve Timer" class SetClipboard: name = u"Kopieer string naar klipbord" description = u"Kopieert een string parameter naar het systeem klipbord." error = u"Kan het klipbord niet openen." class SetDisplayPreset: name = u"Configureer Scherm standaard instellingen" description = u"Configureer Scherm standaard instellingen" fields = ( u"Toestel", u"Links", u"Boven", u"Breedte", u"Hoogte", u"Frequentie", u"Kleur Diepte", u"Aangesloten", u"Primair", u"Vlaggen", ) query = u"Bevraag huidige systeem instellingen" class SetIdleTime: name = u"Configureer inactieve tijd" description = u"Configureer inactieve tijd. \nDit stelt de tijd in alvorens de inactive gebeurtenis (Idle) wordt gegenereerd." label1 = u"Wacht" label2 = u"seconden voor genereren van de inactieve gebeurtenis (Idle)." class SetMasterVolume: name = u"Zet Hoofd Volume" description = u"Configureer het hoofd volume met een absolute waarde." text1 = u"Zet hoofd volume op" text2 = u"percent." class SetSystemIdleTimer: name = u"Configureer Systeem Inactieve timer" description = u"Configureer Systeem Inactieve timer" choices = [ u"Schakel Systeem Inactive Timer uit", u"Schakel Systeem Inactive Timer aan", ] text = u"Kies optie:" class SetWallpaper: name = u"Verander behangpapier" description = u"Verander behangpapier" choices = ( u"Gecentreerd", u"Overlappend", u"Uitgerokken", ) fileMask = u"Alle Fotos|*.jpg;*.bmp;*.gif;*.png|Alle Bestanden (*.*)|*.*" text1 = u"pad naar Foto bestand:" text2 = u"Uitlijning:" class ShowPicture: name = u"Toon Foto" description = u"Toont een foto op het scherm." allFiles = u"Alle Bestanden" allImageFiles = u"Alle Fotos" display = u"Scherm" path = u"Pad naar foto (gebruik leeg pad om te wissen):" class SoundGroup: name = u"Geluidskaart" description = u"Deze acties controleren de Geluidskaart van je computer." class Standby: name = u"Slaapstand" description = u"Deze functie zet de computer uit, onderbreekt de stroom en gaat in een slaapstand. (Stand-By)" class StartScreenSaver: name = u"Start de Windows schermbeveiliging" description = u"Start de momenteel in Windows ingestelde schermbeveiliging." class ToggleMute: name = u"Toggel Mute" description = u"Toggel Mute" class WakeOnLan: name = u"Wake on LAN" description = u"Ontwaakt een andere computer door een speciaal netwerk pakket te verzenden." parameterDescription = u"Te ontwaken Ethernet adapter MAC adres:" class Window: name = u"Venster" description = u"Acties gerelateerd aan het controleren van vensters op de desktop, zoals zoeken van specifieke vensters, verplaatsen, grootte veranderen en toetsen zenden naar vensters." class BringToFront: name = u"Naar voorgrond brengen" description = u"Naar de voorgrond brengen van een specifiek venster" class Close: name = u"Sluiten" description = u"Sluit een windows toepassing." class FindWindow: name = u"Vind een venster" description = u'Zoekt een venster dat later als doel wordt gebruikt in daaropvolgende acties in de makro.\n\n<p>Als een makro geen "Vind Venster" actie bevat, zullen alle acties op het venster in de voorgrond worden toegepast.<p>In de invoervelden gebruik de accolade wildcard {*} om gelijk welke string volgorde en de {?} om een enkele letter te vinden.' drag1 = u"Sleep me naar\neen venster" drag2 = u"En Sleep me nu\nnaar een venster" hide_box = u"Verberg EventGhost gedurende het slepen" invisible_box = u"Zoek ook onzichtbare elementen" label = u"Zoek Venster: %s" label2 = u"Zoek bovenste venster" matchNum1 = u"Enkel terugkeren" matchNum2 = u"'de overeenkomst" onlyFrontmost = u"Enkel overeenkomst bovenste venster " options = ( u"Toepassing:", u"Venster Naam:", u"Venster Klasse:", u"Kind Naam:", u"Kind Klasse:", ) refresh_btn = u"&Ververs" stopMacro = [ u"Stop de makro als het doel niet is gevonden", u"Stop de makro als het doel is gevonden", u"Nooit makro stoppen", ] testButton = u"Testen" wait1 = u"Wacht " wait2 = u"seconden om het venster te laten verschijnen" class Maximize: name = u"Maximaliseer" description = u"Maximaliseer" class Minimize: name = u"Minimaliseer" description = u"Minimaliseer" class MoveTo: name = u"Verplaats Absoluut" description = u"Verplaats Absoluut" label = u"Verplaats venster naar %s" text1 = u"Zet horizontale positie X op" text2 = u"pixels" text3 = u"Zet verticale positie Y op" text4 = u"pixels" class Resize: name = u"Formaat" description = u"Pas het Formaat van het venster aan tot de gewenste grootte." label = u"Formaat Venster %s, %s" text1 = u"Zet Breedte op" text2 = u"pixels" text3 = u"Zet hoogte op" text4 = u"pixels" class Restore: name = u"Herstel" description = u"Herstel" class SendKeys: name = u"Simuleer Toetsen" description = u"Deze actie simuleert de toetsen van het toetsenbord om andere programmas te besturen. Typ gewoon de tekst die je wil in de edit box.\n\n<p>\nOm speciale toetsen te simuleren, moet je het sleutelwoord in accolades omsluiten.\nVb. Als je een pijltje naar boven toets wenst, schrijf je <b>{Up}</b>. Je kan ook meerdere sleutelwoorden combineren met het plus teken om toetscombinaties te verkrijgen zoals <b>{Shift+Ctrl+F1}</b> of <b>{Ctrl+V}</b>. De sleutelwoorden zijn niet hoofdlettergevoelig, dus je kan ook {SHIFT+ctrl+F1} schrijven indien gewenst.\n<p>" insertButton = u"&Invoegen" specialKeyTool = u"Speciale toets" textToType = u"Tekst te typen:" useAlternativeMethod = u"Gebruik alternative methode om toetsen te emuleren." class SendMessage: name = u"Zend Bericht" description = u"Gebruikt de Windows-API SendMessage functie om een venster een specifiek bericht te zenden. Kan ook de PostMessage functie gebruiken indien gewenst." text1 = u"Gebruik de PostMessage i.p.v. de SendMessage functie." class SetAlwaysOnTop: name = u"Zet de 'Altijd bovenaan' eigenschap aan" description = u"Zet de 'Altijd bovenaan' eigenschap aan" actions = ( u"Wis altijd bovenaan", u"Zet altijd bovenaan", u"Toggel altijd bovenaan", ) radioBox = u"Kies actie:" class Mouse: name = u"Muis" description = u"Bevat de acties om de muis wijzer te besturen en om muis gebeurtenissen te emuleren." class GoDirection: name = u"Start muisbeweging in een richting" description = u"Start muisbeweging in een richting" label = u"Start muisbeweging in richting van %.2f°" text1 = u"Start muisbeweging in richting van" text2 = u"graden. (0-360)" class LeftButton: name = u"Linker muis knop" description = u"Linker muis knop" class LeftDoubleClick: name = u"Linker muis knop dubbelklik" description = u"Linker muis knop dubbelklik" class MiddleButton: name = u"Middenste muis knop" description = u"Middenste muis knop" class MouseWheel: name = u"Draai Muiswiel" description = u"Draai Muiswiel" label = u"Draai Muiswiel %d klikken" text1 = u"Draai Muiswiel met" text2 = u"klikken. (Negatief draait neerwaarts)" class MoveAbsolute: name = u"Beweeg Absoluut" description = u"Beweeg Absoluut" label = u"Beweeg muis naar x:%s, y:%s" text1 = u"Zet horizontale positie x op" text2 = u"pixels" text3 = u"Zet verticale positie y op" text4 = u"pixels" class MoveRelative: name = u"Beweeg Relatief" description = u"Beweeg Relatief" label = u"Verander muis positie met x:%s, y:%s" text1 = u"Verander horizontale positie x met" text2 = u"pixels" text3 = u"Verander verticale positie y met" text4 = u"pixels" class RightButton: name = u"Rechter muis knop" description = u"Rechter muis knop" class RightDoubleClick: name = u"Rechter muis knop dubbelklik" description = u"Rechter muis knop dubbelklik" class ToggleLeftButton: name = u"Toggel linker muis knop" description = u"Toggel linker muis knop" class SoundMixerEx: name = u"Sound Mixer Ex" description = u"Deze invoegtoepassing laat toe om bijna elke instelling die beschikbaar is op je geluidskaart in te stellen.\n\n<p>Werkt momenteel niet onder Windows Vista.</p>" class SetSoundFader: name = u"Verander geluids demper/schuifknop" description = u"Veranderen naar een selecteerbare geluids demper/schuifknop" class SetSoundSwitch: name = u"Verander geluids schakelaar" description = u"Veranderen naar een selecteerbare geluids schakelaar." class Speech: name = u"Spraak" description = u"Gebruikt de Tekst-naar-Spraak service van de Microsoft Speech API (SAPI)" class TextToSpeech: name = u"Tekst naar Spraak" description = u"Gebruikt de Microsoft Speech API (SAPI) om een tekst te spreken." buttonInsertDate = u"Invoegen Datum" buttonInsertTime = u"Invoegen Tijd" errorCreate = u"Kan het stem object niet creëren." errorNoVoice = u"Stem met naam %s is niet beschikbaar" fast = u"Snel" label = u"Spreek: %s" labelRate = u"Snelheid:" labelVoice = u"Stem:" labelVolume = u"Geluidssterkte:" loud = u"Luid" normal = u"Normaal" silent = u"Stil" slow = u"Traag" textBoxLabel = u"Tekst" voiceProperties = u"Stem eigenschappen" class USB_UIRT: name = u"USB-UIRT" description = u'Hardware Invoegtoepassing voor de <a href="http://www.usbuirt.com/">USB-UIRT</a> transceiver.\n\n<p><a href="http://www.usbuirt.com/"><p><center><img src="picture.jpg" alt="USB-UIRT" /></a></center>' blinkRx = u"LED Licht op bij ontvangst IR" blinkTx = u"LED Licht op bij verzenden IR" irReception = u"IR ontvangst" legacyCodes = u"Genereer 'legacy' UIRT2-compatibele gebeurtenissen" notFound = u"<niet gevonden>" redIndicator = u"Rood indicatie LED in werking" stopCodes = u"Geef korte herhaal kodes door als langer durende gebeurtenissen" uuFirmDate = u"Firmware Datum:" uuFirmVersion = u"Firmware Versie:" uuInfo = u"USB-UIRT Informatie" uuProtocol = u"Protokol Versie:" class TransmitIR: name = u"Verzend IR" description = u"Verzend een IR kode via de USB-UIRT hardware." infinite = u"Oneindig" irCode = u"IR Kode:" learnButton = u"Leer een IR Kode..." repeatCount = u"Herhalings teller:" wait1 = u"Wacht:" wait2 = u"ms van IR inactiviteit alvorens te verzenden" zone = u"Zone:" zoneChoices = ( u"Alle", u"Ext. Jack R-Pin", u"Ext. Jack L-Pin", u"Interne Zender", ) class LearnDialog: acceptBurstButton = u"Accepteer 'Burst'" forceRaw = u"Forceer RAW-Mode leren" frequency = u"Frequentie" helpText = u"1. Richt afstandsbediening direct naar USB-UIRT ongeveer 20cm van de USB-UIRT voorkant.\n\n2. DRUK en BLIJF INGEDRUKT HOUDEN de gewenste knop op je afstandsbediening totdat het leren volledig gedaan is." progress = u"Leer voortgang" signalQuality = u"Signaal" title = u"Leer IR Kode" class WMPlayer: name = u"Windows Media Player" description = u'Voegt Acties toe om de <a href="http://www.microsoft.com/windows/windowsmedia/">Windows Media Player</a> te besturen.' class Exit: name = u"Exit" description = u"Sluit Windows Media Player." class FastForward: name = u"Fast Forward" description = u"Snel Vooruit Spoelen." class FastRewind: name = u"Rewind" description = u"Snel Achteruit Spoelen." class Fullscreen: name = u"Fullscreen" description = u"Wisselt tussen volledig scherm en normaal venster." class Library: name = u"Library" description = u'Wisselt naar het "Library" venster.' class NextTrack: name = u"Next Track" description = u"Simuleert een druk op de 'volgende nummer' knop." class NowPlaying: name = u"Now Playing" description = u'Wisselt naar het "Now Playing" venster.' class PreviousTrack: name = u"Previous Track" description = u"Simuleert een druk op de 'vorige nummer' knop." class Stop: name = u"Stop" description = u"Simuleert een druk op de 'stop' knop." class ToggleMute: name = u"Toggle Mute" description = u"Simuleert een druk op de 'Geluid Dempen' knop." class TogglePlay: name = u"Toggle Play" description = u"Simuleert een druk op de 'play / pauze' knop." class ToggleRepeat: name = u"Toggle Repeat" description = u"Toggelt 'Herhaal'." class ToggleShuffle: name = u"Toggle Shuffle" description = u"Toggelt 'Willekeurige Volgorde'." class VolumeDown: name = u"Volume Down" description = u"Verlaagt het WMPlayer volume met 5%." class VolumeUp: name = u"Volume Up" description = u"Verhoogt het WMPlayer volume met 5%."
gpl-2.0
ahsparrow/xcsoar_orig
src/Form/DataField/String.hpp
1826
/* Copyright_License { XCSoar Glide Computer - http://www.xcsoar.org/ Copyright (C) 2000-2015 The XCSoar Project A detailed list of copyright holders can be found in the file "AUTHORS". 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. } */ #ifndef XCSOAR_DATA_FIELD_STRING_HPP #define XCSOAR_DATA_FIELD_STRING_HPP #include "Base.hpp" #include "Util/StaticString.hpp" #define EDITSTRINGSIZE 32 class DataFieldString: public DataField { StaticString<EDITSTRINGSIZE> mValue; protected: DataFieldString(Type _type, const TCHAR *_value, DataFieldListener *listener=nullptr) :DataField(_type, false, listener), mValue(_value) {} public: DataFieldString(const TCHAR *_value, DataFieldListener *listener=nullptr) :DataField(Type::STRING, false, listener), mValue(_value) {} DataFieldString(const TCHAR *Default, DataAccessCallback OnDataAccess) : DataField(Type::STRING, false, OnDataAccess), mValue(Default) {} void Set(const TCHAR *Value); /* virtual methods from class DataField */ virtual const TCHAR *GetAsString() const override; virtual void SetAsString(const TCHAR *Value) override; }; #endif
gpl-2.0
SayenkoDesign/markmagic.com
wp-content/themes/amax/libraries/aq_resizer/aq_resizer.php
4578
<?php /** * Title : Aqua Resizer * Description : Resizes WordPress images on the fly * Version : 1.1.6 / ( 1.0.2 by OM) * Author : Syamil MJ * Author URI : http://aquagraphite.com * License : WTFPL - http://sam.zoy.org/wtfpl/ * Documentation : https://github.com/sy4mil/Aqua-Resizer/ * * @param string $url - (required) must be uploaded using wp media uploader * @param int $width - (required) * @param int $height - (optional) * @param bool $crop - (optional) default to soft crop * @param bool $single - (optional) returns an array if false * @uses wp_upload_dir() * @uses image_resize_dimensions() * @uses wp_get_image_editor() * * @return str|array */ if(!defined('OMAQ_RESIZER')) { define('OMAQ_RESIZER', true); function omaq_resize( $url, $width, $height = null, $crop = null, $single = true ) { //validate inputs if(!$url OR !$width ) return false; //define upload path & dir $upload_info = wp_upload_dir(); $upload_dir = $upload_info['basedir']; $upload_url = $upload_info['baseurl']; $url_nop=preg_replace('/^https?:/i','',$url); $upload_url_nop=preg_replace('/^https?:/i','',$upload_url); //check if $img_url is local if(strpos( $url_nop, $upload_url_nop ) === false) return false; //define path of image $rel_path = str_replace( $upload_url_nop, '', $url_nop); $img_path = $upload_dir . $rel_path; //check if img path exists, and is an image indeed if( !file_exists($img_path) OR !getimagesize($img_path) ) return false; //get image info $info = pathinfo($img_path); $ext = $info['extension']; list($orig_w,$orig_h) = getimagesize($img_path); //get image size after cropping $dims = image_resize_dimensions($orig_w, $orig_h, $width, $height, $crop); $dst_w = $dims[4]; $dst_h = $dims[5]; //use this to check if cropped image already exists, so we can return that instead $suffix = "{$dst_w}x{$dst_h}"; $dst_rel_path = str_replace( '.'.$ext, '', $rel_path); $destfilename = "{$upload_dir}{$dst_rel_path}-{$suffix}.{$ext}"; if(!$dst_h) { //can't resize, so return original url $img_url = $url; $dst_w = $orig_w; $dst_h = $orig_h; } //else check if cache exists elseif(file_exists($destfilename) && getimagesize($destfilename)) { $img_url = "{$upload_url}{$dst_rel_path}-{$suffix}.{$ext}"; } //else, we resize the image and return the new resized image url else { // Note: This pre-3.5 fallback check will edited out in subsequent version if(function_exists('wp_get_image_editor')) { $editor = wp_get_image_editor($img_path); if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) ) return false; $resized_img_path = $editor->save(); if ( is_wp_error( $resized_img_path ) ) return false; $resized_img_path=$resized_img_path['path']; } else { $resized_img_path = $img_path; // Fallback foo } if(!is_wp_error($resized_img_path)) { $resized_rel_path = str_replace( $upload_dir, '', $resized_img_path); $img_url = $upload_url . $resized_rel_path; } else { return false; } // store generated sized into array $aq_files=get_option('_aq_resizer_generated_files', true); if(!is_array($aq_files)) $aq_files=array(); $aq_files_key=ltrim($rel_path,'/'); $aq_files_value=ltrim($resized_rel_path,'/'); if(!isset($aq_files[$aq_files_key])) $aq_files[$aq_files_key]=array(); $aq_files[$aq_files_key][$aq_files_value]=1; update_option('_aq_resizer_generated_files', $aq_files); } //return the output if($single) { //str return $image = $img_url; } else { //array return $image = array ( 0 => $img_url, 1 => $dst_w, 2 => $dst_h ); } return $image; } // remove generated by aq_resizer thumbnails on attachment deletion function omaq_delete_aq_resize_image($postid) { $aq_files=get_option('_aq_resizer_generated_files', true); if(!is_array($aq_files)) return false; $uploadpath = wp_upload_dir(); $meta=wp_get_attachment_metadata($postid); if(isset($meta['file']) && isset($aq_files[$meta['file']]) && is_array($aq_files[$meta['file']])) { foreach( $aq_files[$meta['file']] as $file => $v) { @ unlink( path_join($uploadpath['basedir'], $file) ); } unset($aq_files[$meta['file']]); } update_option('_aq_resizer_generated_files', $aq_files); } if(!has_action('delete_attachment','omaq_delete_aq_resize_image')) add_action('delete_attachment','omaq_delete_aq_resize_image'); }
gpl-2.0
cjw-network/cjw_newsletter
modules/newsletter/import_list.php
1891
<?php /** * File import_list.php * * @copyright Copyright (C) 2007-2012 CJW Network - Coolscreen.de, JAC Systeme GmbH, Webmanufaktur. All rights reserved. * @license http://ez.no/licenses/gnu_gpl GNU GPL v2 * @version //autogentag// * @package cjw_newsletter * @subpackage modules * @filesource */ // Blacklist User by nl user id or by email // update all nessesarry status fields to blacklisted $module = $Params['Module']; $templateFile = 'design:newsletter/import_list.tpl'; require_once( 'kernel/common/i18n.php' ); include_once( 'kernel/common/template.php' ); $http = eZHTTPTool::instance(); $tpl = templateInit(); $http = eZHTTPTool::instance(); $db = eZDB::instance(); $viewParameters = array( 'offset' => 0, 'namefilter' => '' ); $userParameters = $Params['UserParameters']; $viewParameters = array_merge( $viewParameters, $userParameters ); $limit = 10; $limitArray = array( 10, 10, 25, 50 ); $limitArrayKey = eZPreferences::value( 'admin_import_list_limit' ); // get user limit preference if ( isset( $limitArray[ $limitArrayKey ] ) ) { $limit = $limitArray[ $limitArrayKey ]; } $importList = CjwNewsletterImport::fetchAllImportItems( $limit, $viewParameters[ 'offset' ] ); $importListCount = CjwNewsletterImport::fetchAllImportItemsCount( ); $tpl->setVariable( 'view_parameters', $viewParameters ); $tpl->setVariable( 'import_list', $importList ); $tpl->setVariable( 'import_list_count', $importListCount ); $tpl->setVariable( 'limit', $limit ); $Result = array(); $Result['content'] = $tpl->fetch( $templateFile ); $Result['path'] = array( array( 'url' => 'newsletter/index', 'text' => ezi18n( 'cjw_newsletter/path', 'Newsletter' ) ), array( 'url' => false, 'text' => ezi18n( 'cjw_newsletter/import_list', 'Imports' ) ) ); ?>
gpl-2.0
agustinhenze/crrcsim.debian
src/mod_fdm/power/battery.cpp
6197
/* * CRRCsim - the Charles River Radio Control Club Flight Simulator Project * Copyright (C) 2005, 2006, 2008, 2009 - Jens Wilhelm Wulf (original author) * Copyright (C) 2005, 2006, 2008 - Jan Reucker * * 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. * * 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. * */ #include "battery.h" #include <iostream> #include <fstream> #include <cstdlib> #include "../../mod_misc/filesystools.h" #include "../../mod_misc/lib_conversions.h" Power::Battery::Battery() { shafts.push_back(new Shaft()); } Power::Battery::Battery(SimpleXMLTransfer* xml) { // create children { SimpleXMLTransfer* shaft; for (int n=0; n<xml->getChildCount(); n++) { shaft = xml->getChildAt(n); if (shaft->getName().compare("shaft") == 0) shafts.push_back(new Shaft(shaft)); } } } void Power::Battery::ReloadParams(SimpleXMLTransfer* xml) { throttle_min = xml->getDouble("throttle_min"); SimpleXMLTransfer* bat; bool fExtern = true; if (xml->indexOfAttribute("filename") >= 0) bat = new SimpleXMLTransfer(FileSysTools::getDataPath("models/battery/" + xml->getString("filename") + ".xml", true)); else { bat = xml; fExtern = false; } C_0 = bat->getDouble("C")*60*60; R_I = bat->getDouble("R_I"); U_off = bat->getDouble("U_off"); std::cout << "Battery: C=" << C_0/(60*60) << " Ah, R_I=" << R_I << " Ohm, U_off=" << U_off << "V\n"; // voltage over capacity { double U_0 = bat->getDouble("U_0"); std::string tab = bat->getChild("U_0rel")->getContentString(); std::string::size_type pos; std::string::size_type start = 0; double U; voltage.clear(); while ( (pos = tab.find(';', start)) != std::string::npos && start < tab.length()) { U = U_0*atof(tab.substr(start, pos-start).c_str()); std::cout << " " << U << " V\n"; voltage.push_back(U); start = pos+1; } // Calculate factor for easy interpolation: // There are size values: int size = voltage.size(); // So I want to have an index in the range 0..(size-2). // C_0 has to be converted to (size-1)*2^10. dInterpFact = ((size-1)<<10)/C_0; } if (fExtern) delete bat; // children { SimpleXMLTransfer* shaft; int nShaftCnt = 0; for (int n=0; n<xml->getChildCount(); n++) { shaft = xml->getChildAt(n); if (shaft->getName().compare("shaft") == 0) shafts[nShaftCnt++]->ReloadParams(shaft); } } } void Power::Battery::ReloadParams_automagic(SimpleXMLTransfer* xml) { SimpleXMLTransfer* mydescr = xml->getChild("battery"); // automagic configuration works bottom up: shafts[0]->ReloadParams_automagic(xml); R_I = 0; U_off = 1; U = mydescr->getDouble("shaft.engine.automagic.U"); C_0 = mydescr->getDouble("shaft.engine.automagic.I")*mydescr->getDouble("automagic.T"); mydescr->setAttribute("C", doubleToString(C_0/60/60)); mydescr->setAttribute("U_0", doubleToString(U)); mydescr->setAttribute("U_off", doubleToString(U_off)); mydescr->setAttribute("R_I", doubleToString(R_I)); throttle_min = mydescr->getDouble("throttle_min"); { SimpleXMLTransfer* g = new SimpleXMLTransfer(); g->setName("U_0rel"); g->setContent("\n 1.00;\n 1.00;\n"); mydescr->addChild(g); } voltage.clear(); voltage.push_back(U); voltage.push_back(U); // Calculate factor for easy interpolation: // There are size values: int size = voltage.size(); // So I want to have an index in the range 0..(size-2). // C_0 has to be converted to (size-1)*2^10. dInterpFact = ((size-1)<<10)/C_0; } Power::Battery::~Battery() { // deallocate shafts for (unsigned int i = 0; i < shafts.size(); i++) { delete shafts[i]; shafts[i] = NULL; } } void Power::Battery::step(PowerValuesStep* values) { int size = shafts.size(); int idx; double thr; thr = values->inputs->throttle; if (thr < throttle_min && throttle_old > 0) { thr = throttle_min; values->inputs->throttle = throttle_min; } throttle_old = thr; if (U < U_off || C.val <= 0 || nUOffStatus == 1) { if (nUOffStatus == 1 && thr < 0.05) nUOffStatus = 0; else nUOffStatus = 1; values->U = 0; } else values->U = U; values->I = 0; for (int n=0; n<size; n++) { shafts[n]->step(values); } C.step(values->dt, -1*values->I); if (C.val < 0) C.init(0, 0); { double dCapLeftRel = C.val/C_0; if (values->dBatCapLeftMin > dCapLeftRel) values->dBatCapLeftMin = dCapLeftRel; } // size of table: size = voltage.size(); // max. index for interpolation: int idxmax = ((size-1)<<10)-1; // calc index idx = (int)(dInterpFact * (C_0-C.val)); if (idx > idxmax) idx = idxmax; // interpolation int idxh = idx >> 10; int idxl = idx & ((1<<10)-1); U = voltage[idxh] + (idxl * (voltage[idxh+1]-voltage[idxh]))*(1.0/1024); // std::cout << idxh << " " << U << " V, " << voltage[idxh] << " V, " << values->I << " A\n"; // voltage drop because of internal resistance U -= R_I * values->I; } void Power::Battery::showCapacity() { std::cout << C.val/(60*60) << " Ah\n"; } void Power::Battery::InitStates(CRRCMath::Vector3 vInitialVelocity) { // set initial state U = voltage[0]; throttle_old = 0; nUOffStatus = 0; C.init(C_0, 0); for (unsigned int n=0; n<shafts.size(); n++) shafts[n]->InitStates(vInitialVelocity); }
gpl-2.0
Fizztastic/Cockatrice
cockatrice/translations/cockatrice_pt.ts
236722
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt" version="2.1"> <context> <name>AbstractCounter</name> <message> <location filename="../src/abstractcounter.cpp" line="62"/> <source>&amp;Set counter...</source> <translation>Definir marcador</translation> </message> <message> <location filename="../src/abstractcounter.cpp" line="148"/> <source>Set counter</source> <translation>Definir marcador</translation> </message> <message> <location filename="../src/abstractcounter.cpp" line="148"/> <source>New value for counter &apos;%1&apos;:</source> <translation>Novo valor para o marcador &apos;%1&apos;:</translation> </message> </context> <context> <name>AppearanceSettingsPage</name> <message> <location filename="../src/dlg_settings.cpp" line="366"/> <source>Theme settings</source> <translation>Definições do Tema</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="367"/> <source>Current theme:</source> <translation>Tema actual:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="369"/> <source>Card rendering</source> <translation>Rendering da carta</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="370"/> <source>Display card names on cards having a picture</source> <translation>Mostrar o nome em cartas com imagem</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="371"/> <source>Scale cards on mouse over</source> <translation>Aumentar as cartas ao passar o rato</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="373"/> <source>Hand layout</source> <translation>Disposição da Mão</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="374"/> <source>Display hand horizontally (wastes space)</source> <translation>Mostrar mão horizontalmente (desperdiça espaço)</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="375"/> <source>Enable left justification</source> <translation>Permitir justificação de texto à esquerda</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="377"/> <source>Table grid layout</source> <translation>Esquema da mesa</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="378"/> <source>Invert vertical coordinate</source> <translation>Inverter coordenada vertical</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="379"/> <source>Minimum player count for multi-column layout:</source> <translation>Número mínimo de kogadores para layout com múltiplas colunas:</translation> </message> </context> <context> <name>BanDialog</name> <message> <location filename="../src/userlist.cpp" line="32"/> <source>ban &amp;user name</source> <translation>Banir nome de &amp;utilizador</translation> </message> <message> <location filename="../src/userlist.cpp" line="35"/> <source>ban &amp;IP address</source> <translation>Banir endereço de &amp;IP</translation> </message> <message> <location filename="../src/userlist.cpp" line="38"/> <source>ban client I&amp;D</source> <translation>banir I&amp;D do cliente</translation> </message> <message> <location filename="../src/userlist.cpp" line="51"/> <source>Ban type</source> <translation>Tipo de Ban</translation> </message> <message> <location filename="../src/userlist.cpp" line="54"/> <source>&amp;permanent ban</source> <translation>Ban &amp;permanente</translation> </message> <message> <location filename="../src/userlist.cpp" line="55"/> <source>&amp;temporary ban</source> <translation>Ban &amp;temporário</translation> </message> <message> <location filename="../src/userlist.cpp" line="58"/> <source>&amp;Days:</source> <translation>&amp;Dias:</translation> </message> <message> <location filename="../src/userlist.cpp" line="64"/> <source>&amp;Hours:</source> <translation>&amp;Horas:</translation> </message> <message> <location filename="../src/userlist.cpp" line="70"/> <source>&amp;Minutes:</source> <translation>&amp;Minutos:</translation> </message> <message> <location filename="../src/userlist.cpp" line="85"/> <source>Duration of the ban</source> <translation>Duração do ban</translation> </message> <message> <location filename="../src/userlist.cpp" line="88"/> <source>Please enter the reason for the ban. This is only saved for moderators and cannot be seen by the banned person.</source> <translation>Por favor introduza o motivo do ban. Isto apenas é guardado para os moderadores e não é visível para a pessoa banida.</translation> </message> <message> <location filename="../src/userlist.cpp" line="91"/> <source>Please enter the reason for the ban that will be visible to the banned person.</source> <translation>Por favor introduza o motivo do ban que será visível à pessoa banida.</translation> </message> <message> <location filename="../src/userlist.cpp" line="94"/> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <location filename="../src/userlist.cpp" line="97"/> <source>&amp;Cancel</source> <translation>&amp;Cancelar</translation> </message> <message> <location filename="../src/userlist.cpp" line="115"/> <source>Ban user from server</source> <translation>Banir utilizador do servidor</translation> </message> <message> <location filename="../src/userlist.cpp" line="186"/> <location filename="../src/userlist.cpp" line="192"/> <location filename="../src/userlist.cpp" line="198"/> <location filename="../src/userlist.cpp" line="204"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/userlist.cpp" line="186"/> <source>You have to select a name-based, IP-based, clientId based, or some combination of the three to place a ban.</source> <translation>Tem de seleccionar um banimento baseado no nome, no IP ou ambos.</translation> </message> <message> <location filename="../src/userlist.cpp" line="192"/> <source>You must have a value in the name ban when selecting the name ban checkbox.</source> <translation>Deve preencher o campo de nome a banir quando selecciona a caixa de verificação para banir um nome.</translation> </message> <message> <location filename="../src/userlist.cpp" line="198"/> <source>You must have a value in the ip ban when selecting the ip ban checkbox.</source> <translation>Deve preencher o campo de IP a banir quando selecciona a caixa de verificação para banir um IP.</translation> </message> <message> <location filename="../src/userlist.cpp" line="204"/> <source>You must have a value in the clientid ban when selecting the clientid ban checkbox.</source> <translation>Deve preencher o campo de identificação de cliente quando selecciona a caixa de verificação para banir uma identificação de cliente.</translation> </message> </context> <context> <name>CardDatabaseModel</name> <message> <location filename="../src/carddatabasemodel.cpp" line="59"/> <source>Name</source> <translation>Nome</translation> </message> <message> <location filename="../src/carddatabasemodel.cpp" line="60"/> <source>Sets</source> <translation>Expansões</translation> </message> <message> <location filename="../src/carddatabasemodel.cpp" line="61"/> <source>Mana cost</source> <translation>Custo de mana</translation> </message> <message> <location filename="../src/carddatabasemodel.cpp" line="62"/> <source>Card type</source> <translation>Tipo de carta</translation> </message> <message> <location filename="../src/carddatabasemodel.cpp" line="63"/> <source>P/T</source> <translation>P/R</translation> </message> <message> <location filename="../src/carddatabasemodel.cpp" line="64"/> <source>Color(s)</source> <translation>Cor(es)</translation> </message> </context> <context> <name>CardFrame</name> <message> <location filename="../src/cardframe.cpp" line="65"/> <source>Image</source> <translation>Imagem</translation> </message> <message> <location filename="../src/cardframe.cpp" line="66"/> <source>Description</source> <translation>Descrição</translation> </message> <message> <location filename="../src/cardframe.cpp" line="67"/> <source>Both</source> <translation>Ambos</translation> </message> </context> <context> <name>CardInfoText</name> <message> <location filename="../src/cardinfotext.cpp" line="84"/> <source>Name:</source> <translation>Nome:</translation> </message> <message> <location filename="../src/cardinfotext.cpp" line="85"/> <source>Mana cost:</source> <translation>Custo de mana:</translation> </message> <message> <location filename="../src/cardinfotext.cpp" line="86"/> <source>Color(s):</source> <translation>Cor(es)</translation> </message> <message> <location filename="../src/cardinfotext.cpp" line="87"/> <source>Card type:</source> <translation>Tipo de carta:</translation> </message> <message> <location filename="../src/cardinfotext.cpp" line="88"/> <source>P / T:</source> <translation>P / D:</translation> </message> <message> <location filename="../src/cardinfotext.cpp" line="89"/> <source>Loyalty:</source> <translation>Lealdade:</translation> </message> </context> <context> <name>CardItem</name> <message> <location filename="../src/carditem.cpp" line="83"/> <source>&amp;Move to</source> <translation>&amp;Mover para</translation> </message> <message> <location filename="../src/carditem.cpp" line="84"/> <source>&amp;Power / toughness</source> <translation>&amp;Poder / resistência</translation> </message> </context> <context> <name>CardZone</name> <message> <location filename="../src/cardzone.cpp" line="52"/> <source>their hand</source> <comment>nominative</comment> <translation>sua mão</translation> </message> <message> <location filename="../src/cardzone.cpp" line="53"/> <source>%1&apos;s hand</source> <comment>nominative</comment> <translation>mão de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="59"/> <source>their library</source> <comment>look at zone</comment> <translation>seu grimório</translation> </message> <message> <location filename="../src/cardzone.cpp" line="60"/> <source>%1&apos;s library</source> <comment>look at zone</comment> <translation>grimório de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="64"/> <source>of their library</source> <comment>top cards of zone,</comment> <translation>do seu grimório</translation> </message> <message> <location filename="../src/cardzone.cpp" line="65"/> <source>of %1&apos;s library</source> <comment>top cards of zone</comment> <translation>do grimório de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="69"/> <source>their library</source> <comment>reveal zone</comment> <translation>seu grimório</translation> </message> <message> <location filename="../src/cardzone.cpp" line="70"/> <source>%1&apos;s library</source> <comment>reveal zone</comment> <translation>grimório de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="74"/> <source>their library</source> <comment>shuffle</comment> <translation>seu grimório</translation> </message> <message> <location filename="../src/cardzone.cpp" line="75"/> <source>%1&apos;s library</source> <comment>shuffle</comment> <translation>grimório de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="79"/> <source>their library</source> <comment>nominative</comment> <translation>seu grimório</translation> </message> <message> <location filename="../src/cardzone.cpp" line="80"/> <source>%1&apos;s library</source> <comment>nominative</comment> <translation>grimório de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="85"/> <source>their graveyard</source> <comment>nominative</comment> <translation>seu cemitério</translation> </message> <message> <location filename="../src/cardzone.cpp" line="86"/> <source>%1&apos;s graveyard</source> <comment>nominative</comment> <translation>cemitério de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="90"/> <source>their exile</source> <comment>nominative</comment> <translation>seu exílio</translation> </message> <message> <location filename="../src/cardzone.cpp" line="91"/> <source>%1&apos;s exile</source> <comment>nominative</comment> <translation>exílio de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="97"/> <source>their sideboard</source> <comment>look at zone</comment> <translation>seu sideboard</translation> </message> <message> <location filename="../src/cardzone.cpp" line="98"/> <source>%1&apos;s sideboard</source> <comment>look at zone</comment> <translation>sideboard de %1</translation> </message> <message> <location filename="../src/cardzone.cpp" line="102"/> <source>their sideboard</source> <comment>nominative</comment> <translation>seu sideboard</translation> </message> <message> <location filename="../src/cardzone.cpp" line="103"/> <source>%1&apos;s sideboard</source> <comment>nominative</comment> <translation>sideboard de %1</translation> </message> </context> <context> <name>DeckEditorSettingsPage</name> <message> <location filename="../src/dlg_settings.cpp" line="459"/> <source>Nothing is here... yet</source> <translation>Ainda não há aqui nada... por agora</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="473"/> <source>General</source> <translation>Geral</translation> </message> </context> <context> <name>DeckListModel</name> <message> <location filename="../src/decklistmodel.cpp" line="142"/> <source>Number</source> <translation>Número</translation> </message> <message> <location filename="../src/decklistmodel.cpp" line="143"/> <source>Card</source> <translation>Carta</translation> </message> <message> <location filename="../src/decklistmodel.cpp" line="144"/> <source>Price</source> <translation>Preço</translation> </message> </context> <context> <name>DeckStatsInterface</name> <message> <location filename="../src/deckstats_interface.cpp" line="23"/> <location filename="../src/deckstats_interface.cpp" line="34"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/deckstats_interface.cpp" line="34"/> <source>The reply from the server could not be parsed.</source> <translation>A resposta do servidor não pôde ser analisada.</translation> </message> </context> <context> <name>DeckViewContainer</name> <message> <location filename="../src/tab_game.cpp" line="140"/> <source>Load deck...</source> <translation>&amp;Carregar deck...</translation> </message> <message> <location filename="../src/tab_game.cpp" line="141"/> <source>Load remote deck...</source> <translation>Use um deck armazenado no servidor remoto</translation> </message> <message> <location filename="../src/tab_game.cpp" line="142"/> <source>Ready to s&amp;tart</source> <translation>&amp;Pronto para começar</translation> </message> <message> <location filename="../src/tab_game.cpp" line="157"/> <source>S&amp;ideboard unlocked</source> <translation>S&amp;ideboard desbloqueado</translation> </message> <message> <location filename="../src/tab_game.cpp" line="159"/> <source>S&amp;ideboard locked</source> <translation>S&amp;ideboard bloqueado</translation> </message> <message> <location filename="../src/tab_game.cpp" line="219"/> <source>Load deck</source> <translation>Carregar baralho</translation> </message> <message> <location filename="../src/tab_game.cpp" line="229"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/tab_game.cpp" line="229"/> <source>The selected file could not be loaded.</source> <translation>O ficheiro seleccionado não pôde ser carregado.</translation> </message> </context> <context> <name>DlgConnect</name> <message> <location filename="../src/dlg_connect.cpp" line="20"/> <source>Previous Host</source> <translation>Anfitrião anterior</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="34"/> <source>New Host</source> <translation>Novo anfitrião</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="36"/> <source>&amp;Host:</source> <translation>&amp;Servidor:</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="38"/> <source>Enter host name</source> <translation>Introduza o nome do anfitrião:</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="41"/> <source>&amp;Port:</source> <translation>&amp;Porta:</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="45"/> <source>Player &amp;name:</source> <translation>&amp;Nome do jogador:</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="49"/> <source>P&amp;assword:</source> <translation>P&amp;assword:</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="54"/> <source>&amp;Save password</source> <translation>&amp;Guardar password</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="57"/> <source>A&amp;uto connect</source> <translation>Conectar a&amp;utomaticamente no arranque</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="58"/> <source>Automatically connect to the most recent login when Cockatrice opens</source> <translation>Conectar automaticamente ao mais recente login ao abrir o Cockatrice</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="82"/> <source>Server</source> <translation>Servidor</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="92"/> <source>Login</source> <translation>Login</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="108"/> <source>Connect to server</source> <translation>Ligar ao servidor</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="175"/> <source>Connect Warning</source> <translation>Aviso de conexão</translation> </message> <message> <location filename="../src/dlg_connect.cpp" line="175"/> <source>The player name can&apos;t be empty.</source> <translation>O nome de utilizador tem de ser inserido.</translation> </message> </context> <context> <name>DlgCreateGame</name> <message> <location filename="../src/dlg_creategame.cpp" line="21"/> <source>Re&amp;member settings</source> <translation>Re&amp;lembrar definições.</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="22"/> <source>&amp;Description:</source> <translation>&amp;Descrição:</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="27"/> <source>P&amp;layers:</source> <translation>&amp;Jogadores:</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="51"/> <source>Game type</source> <translation>Tipo de jogo</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="54"/> <source>&amp;Password:</source> <translation>&amp;Password:</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="58"/> <source>Only &amp;buddies can join</source> <translation>Apenas &amp;amigos podem entrar</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="59"/> <source>Only &amp;registered users can join</source> <translation>Apenas utilizadores &amp;registados podem entrar</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="73"/> <source>Joining restrictions</source> <translation>Restrições para ligar</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="76"/> <source>&amp;Spectators can watch</source> <translation>E&amp;spectadores podem ver</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="79"/> <source>Spectators &amp;need a password to watch</source> <translation>Espectadores &amp;necessitam de palavra-passe</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="80"/> <source>Spectators can &amp;chat</source> <translation>Espectadores podem c&amp;onversar</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="81"/> <source>Spectators can see &amp;hands</source> <translation>&amp;Espectadores podem ver as mãos</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="87"/> <source>Spectators</source> <translation>Espectadores</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="132"/> <source>&amp;Clear</source> <translation>&amp;Limpar</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="138"/> <source>Create game</source> <translation>Criar jogo</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="180"/> <source>Game information</source> <translation>Informação do jogo</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="256"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/dlg_creategame.cpp" line="256"/> <source>Server error.</source> <translation>Erro do servidor.</translation> </message> </context> <context> <name>DlgCreateToken</name> <message> <location filename="../src/dlg_create_token.cpp" line="23"/> <source>&amp;Name:</source> <translation>&amp;Nome:</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="24"/> <source>Token</source> <translation>Ficha</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="29"/> <source>C&amp;olor:</source> <translation>C&amp;or:</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="31"/> <source>white</source> <translation>branco</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="32"/> <source>blue</source> <translation>azul</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="33"/> <source>black</source> <translation>preto</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="34"/> <source>red</source> <translation>vermelho</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="35"/> <source>green</source> <translation>verde</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="36"/> <source>multicolor</source> <translation>multicolor</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="37"/> <source>colorless</source> <translation>incolor</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="40"/> <source>&amp;P/T:</source> <translation>&amp;P/R:</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="44"/> <source>&amp;Annotation:</source> <translation>&amp;Nota:</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="48"/> <source>&amp;Destroy token when it leaves the table</source> <translation>&amp;Destruir ficha quando ela deixar a mesa</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="62"/> <source>Token data</source> <translation>Informação de ficha</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="69"/> <source>Show &amp;all tokens</source> <translation>Mostrar &amp;todas as fichas</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="71"/> <source>Show tokens from this &amp;deck</source> <translation>Mostrar &amp;fichas deste deck</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="103"/> <source>Choose token from list</source> <translation>Escolha ficha da lista</translation> </message> <message> <location filename="../src/dlg_create_token.cpp" line="124"/> <source>Create token</source> <translation>Criar ficha</translation> </message> </context> <context> <name>DlgEditAvatar</name> <message> <location filename="../src/dlg_edit_avatar.cpp" line="16"/> <location filename="../src/dlg_edit_avatar.cpp" line="59"/> <source>No image chosen.</source> <translation>Não escolheu nenhuma imagem.</translation> </message> <message> <location filename="../src/dlg_edit_avatar.cpp" line="21"/> <source>To change your avatar, choose a new image. To remove your current avatar, confirm without choosing a new image.</source> <translation>Para alterar o seu avatar, escolha uma nova imagem. Para remover o seu avatar actual, confirme SEM escolher uma nova imagem.</translation> </message> <message> <location filename="../src/dlg_edit_avatar.cpp" line="22"/> <source>Browse...</source> <translation>Procurar...</translation> </message> <message> <location filename="../src/dlg_edit_avatar.cpp" line="39"/> <source>Change avatar</source> <translation>Alterar avatar</translation> </message> <message> <location filename="../src/dlg_edit_avatar.cpp" line="56"/> <source>Open Image</source> <translation>Abrir Imagem</translation> </message> <message> <location filename="../src/dlg_edit_avatar.cpp" line="56"/> <source>Image Files (*.png *.jpg *.bmp)</source> <translation>Ficheiros de Imagem (*.png *.jpg *.bmp)</translation> </message> <message> <location filename="../src/dlg_edit_avatar.cpp" line="70"/> <source>Invalid image chosen.</source> <translation>Escolheu uma imagem inválida.</translation> </message> </context> <context> <name>DlgEditPassword</name> <message> <location filename="../src/dlg_edit_password.cpp" line="14"/> <source>Old password:</source> <translation>Password antiga:</translation> </message> <message> <location filename="../src/dlg_edit_password.cpp" line="23"/> <source>New password:</source> <translation>Nova password:</translation> </message> <message> <location filename="../src/dlg_edit_password.cpp" line="28"/> <source>Confirm new password:</source> <translation>Confirme a nova password:</translation> </message> <message> <location filename="../src/dlg_edit_password.cpp" line="50"/> <source>Change password</source> <translation>Alterar a password</translation> </message> <message> <location filename="../src/dlg_edit_password.cpp" line="59"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/dlg_edit_password.cpp" line="59"/> <source>The new passwords don&apos;t match.</source> <translation>As novas passwords que digitou não coincidem.</translation> </message> </context> <context> <name>DlgEditTokens</name> <message> <location filename="../src/dlg_edit_tokens.cpp" line="23"/> <source>&amp;Name:</source> <translation>&amp;Nome:</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="28"/> <source>C&amp;olor:</source> <translation>C&amp;or:</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="30"/> <source>white</source> <translation>branco</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="31"/> <source>blue</source> <translation>azul</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="32"/> <source>black</source> <translation>preto</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="33"/> <source>red</source> <translation>vermelho</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="34"/> <source>green</source> <translation>verde</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="35"/> <source>multicolor</source> <translation>multicolor</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="36"/> <source>colorless</source> <translation>incolor</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="40"/> <source>&amp;P/T:</source> <translation>&amp;P/R:</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="45"/> <source>&amp;Annotation:</source> <translation>&amp;Nota:</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="60"/> <source>Token data</source> <translation>Informação de ficha</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="85"/> <location filename="../src/dlg_edit_tokens.cpp" line="141"/> <source>Add token</source> <translation>Adicionar ficha</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="88"/> <source>Remove token</source> <translation>Remover ficha</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="113"/> <source>Edit tokens</source> <translation>Editar fichas</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="141"/> <source>Please enter the name of the token:</source> <translation>Por favor introduza o nome da ficha:</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="145"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/dlg_edit_tokens.cpp" line="145"/> <source>The chosen name conflicts with an existing card or token. Make sure to enable the &apos;token set&apos; in the &apos;Edit sets...&apos; dialog to display them correctly.</source> <translation>O nome escolhido entra em conflito com uma carta ou ficha existente. Certifique-se que autoriza o &apos;Set de fichas&apos; na aba &apos;Edição de sets&apos; para os apresentar correctamente.</translation> </message> </context> <context> <name>DlgEditUser</name> <message> <location filename="../src/dlg_edit_user.cpp" line="13"/> <source>Email:</source> <translation>Email:</translation> </message> <message> <location filename="../src/dlg_edit_user.cpp" line="18"/> <source>Country:</source> <translation>País:</translation> </message> <message> <location filename="../src/dlg_edit_user.cpp" line="21"/> <source>Undefined</source> <translation>Indefinido</translation> </message> <message> <location filename="../src/dlg_edit_user.cpp" line="35"/> <source>Real name:</source> <translation>Nome real:</translation> </message> <message> <location filename="../src/dlg_edit_user.cpp" line="57"/> <source>Edit user profile</source> <translation>Fazer alterações no seu perfil:</translation> </message> </context> <context> <name>DlgFilterGames</name> <message> <location filename="../src/dlg_filter_games.cpp" line="19"/> <source>Show &apos;&amp;buddies only&apos; games</source> <translation>Mostrar apenas jogos de amigos</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="22"/> <source>Show &amp;unavailable games</source> <translation>Mostrar jogos &amp;indisponíveis</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="25"/> <source>Show &amp;password protected games</source> <translation>Mostrar jogos protegidos por &amp;palavra-passe</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="30"/> <source>Game &amp;description:</source> <translation>&amp;Descrição de jogo:</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="35"/> <source>&amp;Creator name:</source> <translation>&amp;Nome do criador:</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="51"/> <source>&amp;Game types</source> <translation>&amp;Tipo de jogo</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="56"/> <source>at &amp;least:</source> <translation>no &amp;mínimo:</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="63"/> <source>at &amp;most:</source> <translation>no m&amp;áximo:</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="76"/> <source>Maximum player count</source> <translation>Limite máximo de jogadores</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="84"/> <source>Restrictions</source> <translation>Restrições</translation> </message> <message> <location filename="../src/dlg_filter_games.cpp" line="117"/> <source>Filter games</source> <translation>Filtrar jogos</translation> </message> </context> <context> <name>DlgLoadDeckFromClipboard</name> <message> <location filename="../src/dlg_load_deck_from_clipboard.cpp" line="20"/> <source>&amp;Refresh</source> <translation>&amp;Refrescar</translation> </message> <message> <location filename="../src/dlg_load_deck_from_clipboard.cpp" line="34"/> <source>Load deck from clipboard</source> <translation>Carregar baralho da memória</translation> </message> <message> <location filename="../src/dlg_load_deck_from_clipboard.cpp" line="67"/> <location filename="../src/dlg_load_deck_from_clipboard.cpp" line="75"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/dlg_load_deck_from_clipboard.cpp" line="67"/> <location filename="../src/dlg_load_deck_from_clipboard.cpp" line="75"/> <source>Invalid deck list.</source> <translation>Lista de deck inválida.</translation> </message> </context> <context> <name>DlgLoadRemoteDeck</name> <message> <location filename="../src/dlg_load_remote_deck.cpp" line="25"/> <source>Load deck</source> <translation>Carregar baralho</translation> </message> </context> <context> <name>DlgRegister</name> <message> <location filename="../src/dlg_register.cpp" line="16"/> <source>&amp;Host:</source> <translation>&amp;Servidor:</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="20"/> <source>&amp;Port:</source> <translation>&amp;Porta:</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="24"/> <source>Player &amp;name:</source> <translation>&amp;Nome do jogador:</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="28"/> <source>P&amp;assword:</source> <translation>P&amp;assword:</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="33"/> <source>Password (again):</source> <translation>Password (novamente):</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="38"/> <source>Email:</source> <translation>Email:</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="42"/> <source>Email (again):</source> <translation>Email (novamente):</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="46"/> <source>Country:</source> <translation>País:</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="49"/> <source>Undefined</source> <translation>Indefinido</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="304"/> <source>Real name:</source> <translation>Nome real:</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="337"/> <source>Register to server</source> <translation>Registe-se no server</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="346"/> <location filename="../src/dlg_register.cpp" line="351"/> <location filename="../src/dlg_register.cpp" line="356"/> <source>Registration Warning</source> <translation>Registo recusado</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="346"/> <source>Your passwords do not match, please try again.</source> <translation>As passwords que digitou não coincidem.</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="351"/> <source>Your email addresses do not match, please try again.</source> <translation>Os emails que digitou não coincidem.</translation> </message> <message> <location filename="../src/dlg_register.cpp" line="356"/> <source>The player name can&apos;t be empty.</source> <translation>Tem de escolher um nome de utilizador.</translation> </message> </context> <context> <name>DlgSettings</name> <message> <location filename="../src/dlg_settings.cpp" line="856"/> <source>Unknown Error loading card database</source> <translation>Erro desconhecido ao carregar a base de dados das cartas</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="865"/> <source>Your card database is invalid. Cockatrice may not function correctly with an invalid database You may need to rerun oracle to update your card database. Would you like to change your database location setting?</source> <translation>Base de dados de cartas inválida. Cockatrice pode não funcionar correctamente com uma base de dados inválida. Poderá necessitar de correr o Oracle para actualizar a base de dados. Gostaria de alterar a localização da base de dados?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="872"/> <source>Your card database version is too old. This can cause problems loading card information or images Usually this can be fixed by rerunning oracle to to update your card database. Would you like to change your database location setting?</source> <translation>A versão da base de dados está desactualizada. Poderá causar problemas ao carregar a informação ou a imagem das cartas Pode ser reparado correndo o Oracle de novo para actualizar a base de dados das cartas. Gostaria de alterar a localização da base de dados?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="879"/> <source>Your card database did not finish loading Please file a ticket at http://github.com/Cockatrice/Cockatrice/issues with your cards.xml attached Would you like to change your database location setting?</source> <translation>A base de dados não acabou de carregar Por favor, envie um ticket para http://github.com/Cockatrice/Cockatrice/issues com o ficheiro cards.xml em anexo Gostaria de mudar a definição da localização da sua base de dados?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="885"/> <source>File Error loading your card database. Would you like to change your database location setting?</source> <translation>Erro no ficheiro ao carregar a base de dados das cartas. Gostaria de alterar a localização da base de dados?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="890"/> <source>Your card database was loaded but contains no cards. Would you like to change your database location setting?</source> <translation>Base de dados de cartas carregada mas sem cartas. Gostaria de alterar a localização da base de dados?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="895"/> <source>Unknown card database load status Please file a ticket at http://github.com/Cockatrice/Cockatrice/issues Would you like to change your database location setting?</source> <translation>Estado de carregamento da base de dados das cartas desconhecido %s %s Por favor reporte em http://github.com/Cockatrice/Cockatrice/issues %s %s Gostaria de mudar a localização da sua base de dados?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="902"/> <location filename="../src/dlg_settings.cpp" line="908"/> <location filename="../src/dlg_settings.cpp" line="914"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="908"/> <source>The path to your deck directory is invalid. Would you like to go back and set the correct path?</source> <translation>O directório do seu deck é inválido. Gostaria de voltar atrás e corrigir o directório?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="914"/> <source>The path to your card pictures directory is invalid. Would you like to go back and set the correct path?</source> <translation>O directório das imagens das cartas é inválido. Gostaria de voltar atrás e corrigir o directório?</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="923"/> <source>Settings</source> <translation>Definições</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="925"/> <source>General</source> <translation>Geral</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="926"/> <source>Appearance</source> <translation>Aparência</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="927"/> <source>User Interface</source> <translation>Interface do utilizador</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="928"/> <source>Deck Editor</source> <translation>Editor de Decks</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="929"/> <source>Chat</source> <translation>Chat</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="930"/> <source>Sound</source> <translation>Som</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="931"/> <source>Shortcuts</source> <translation>Atalhos</translation> </message> </context> <context> <name>DlgUpdate</name> <message> <location filename="../src/dlg_update.cpp" line="52"/> <location filename="../src/dlg_update.cpp" line="165"/> <location filename="../src/dlg_update.cpp" line="178"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="53"/> <source>Cockatrice was not built with SSL support, so cannot download updates! Please visit the download page and update manually.</source> <translation>O Cockatrice não foi construído com suporte TLS -SSL em inglês-, pelo que não pode baixar actualizações. Por favor visite a página de download e actualize manualmente</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="134"/> <source>Your version of Cockatrice is out of date, but there are no packages available for your operating system. You may have to use a developer build or build from source yourself. Please visit the download page.</source> <translation>A sua versão do Cockatrice está desactualizada, mas não há pacotes de actualização disponíveis para o seu sistema operativo. Por favor visite a página do download.</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="133"/> <location filename="../src/dlg_update.cpp" line="142"/> <source>Cockatrice Update</source> <translation>Actualização Cockatrice</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="29"/> <source>Update Anyway</source> <translation>Actualizar à mesma</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="31"/> <source>Open Download Page</source> <translation>Abrir a página de downloads</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="87"/> <source>Downloading update...</source> <translation>A descarregar a actualização...</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="96"/> <source>Checking for updates...</source> <translation>A procurar actualizações...</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="106"/> <source>Finished checking for updates.</source> <translation>A procura de actualizações foi concluida.</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="142"/> <source>Your version of Cockatrice is up to date.</source> <translation>A sua versão do Cockatrice está actualizada.</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="161"/> <location filename="../src/dlg_update.cpp" line="167"/> <location filename="../src/dlg_update.cpp" line="179"/> <source>Update Error</source> <translation>Erro na actualização</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="161"/> <source>An error occurred while checking for updates: </source> <translation>Ocorreu um problema aquando da procura de actualizações:</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="167"/> <source>An error occurred while downloading an update: </source> <translation>Ocorreu um problema ao descarregar a actualização:</translation> </message> <message> <location filename="../src/dlg_update.cpp" line="171"/> <source>Installing...</source> <translation>A instalar...</translation> </message> </context> <context> <name>DlgViewLog</name> <message> <location filename="../src/dlg_viewlog.cpp" line="18"/> <source>Debug Log</source> <translation>Registo de erros</translation> </message> </context> <context> <name>GameSelector</name> <message> <location filename="../src/gameselector.cpp" line="144"/> <location filename="../src/gameselector.cpp" line="145"/> <location filename="../src/gameselector.cpp" line="146"/> <location filename="../src/gameselector.cpp" line="147"/> <location filename="../src/gameselector.cpp" line="148"/> <location filename="../src/gameselector.cpp" line="149"/> <location filename="../src/gameselector.cpp" line="150"/> <location filename="../src/gameselector.cpp" line="151"/> <location filename="../src/gameselector.cpp" line="180"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/gameselector.cpp" line="144"/> <source>Please join the appropriate room first.</source> <translation>Por favor entre na sala apropriada primeiro.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="145"/> <source>Wrong password.</source> <translation>Password incorrecta.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="146"/> <source>Spectators are not allowed in this game.</source> <translation>Não são permitidos espectadores neste jogo.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="147"/> <source>The game is already full.</source> <translation>O jogo já se encontra cheio.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="148"/> <source>The game does not exist any more.</source> <translation>O jogo já não existe.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="149"/> <source>This game is only open to registered users.</source> <translation>Este jogo só está aberto a utilizadores registados.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="150"/> <source>This game is only open to its creator&apos;s buddies.</source> <translation>Este jogo só está aberto aos amigos do seu criador.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="151"/> <source>You are being ignored by the creator of this game.</source> <translation>Você está a ser ignorado pelo criador deste jogo.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="167"/> <source>Join game</source> <translation>Entrar no jogo</translation> </message> <message> <location filename="../src/gameselector.cpp" line="167"/> <source>Password:</source> <translation>Password:</translation> </message> <message> <location filename="../src/gameselector.cpp" line="180"/> <source>Please join the respective room first.</source> <translation>Por favor entre na sala respectiva primeiro.</translation> </message> <message> <location filename="../src/gameselector.cpp" line="196"/> <source>Games</source> <translation>Jogos</translation> </message> <message> <location filename="../src/gameselector.cpp" line="197"/> <source>&amp;Filter games</source> <translation>&amp;Filtrar jogos</translation> </message> <message> <location filename="../src/gameselector.cpp" line="198"/> <source>C&amp;lear filter</source> <translation>&amp;Limpar filtros</translation> </message> <message> <location filename="../src/gameselector.cpp" line="200"/> <source>C&amp;reate</source> <translation>C&amp;riar</translation> </message> <message> <location filename="../src/gameselector.cpp" line="201"/> <source>&amp;Join</source> <translation>&amp;Entrar</translation> </message> <message> <location filename="../src/gameselector.cpp" line="202"/> <source>J&amp;oin as spectator</source> <translation>Entrar como &amp;espectador</translation> </message> </context> <context> <name>GamesModel</name> <message> <location filename="../src/gamesmodel.cpp" line="17"/> <source>New</source> <translation>Novo</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="109"/> <source>password</source> <translation>senha</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="111"/> <source>buddies only</source> <translation>amigos apenas</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="113"/> <source>reg. users only</source> <translation>utilizadores registados apenas</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="145"/> <location filename="../src/gamesmodel.cpp" line="149"/> <source>can chat</source> <translation>pode falar</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="145"/> <source>see hands</source> <translation>ver mãos</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="153"/> <source>can see hands</source> <translation>pode ver as mãos</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="158"/> <source>not allowed</source> <translation>não permitidos</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="174"/> <source>Room</source> <translation>Sala</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="178"/> <source>Age</source> <translation>Idade</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="185"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="183"/> <source>Description</source> <translation>Descrição</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="184"/> <source>Creator</source> <translation>Criador</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="186"/> <source>Restrictions</source> <translation>Restrições</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="190"/> <source>Players</source> <translation>Jogadores</translation> </message> <message> <location filename="../src/gamesmodel.cpp" line="195"/> <source>Spectators</source> <translation>Espectadores</translation> </message> </context> <context> <name>GeneralSettingsPage</name> <message> <location filename="../src/dlg_settings.cpp" line="180"/> <location filename="../src/dlg_settings.cpp" line="190"/> <location filename="../src/dlg_settings.cpp" line="200"/> <location filename="../src/dlg_settings.cpp" line="234"/> <location filename="../src/dlg_settings.cpp" line="244"/> <source>Choose path</source> <translation>Escolher directório</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="227"/> <source>Success</source> <translation>Sucesso</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="227"/> <source>Downloaded card pictures have been reset.</source> <translation>Imagens de cartas descarregadas reiniciadas.</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="229"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="229"/> <source>One or more downloaded card pictures could not be cleared.</source> <translation>Uma ou mais imagens de cartas descarregadas não podem ser apagadas.</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="259"/> <source>Personal settings</source> <translation>Defenições pessoais</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="260"/> <source>Language:</source> <translation>Língua:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="261"/> <source>Download card pictures on the fly</source> <translation>Baixar a imagem das cartas ao passar</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="262"/> <source>Paths</source> <translation>Directórios</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="263"/> <source>Decks directory:</source> <translation>Directório dos decks:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="264"/> <source>Replays directory:</source> <translation>Directório de replays:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="265"/> <source>Pictures directory:</source> <translation>Directório das imagens:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="266"/> <source>Card database:</source> <translation>Base de dados das cartas:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="267"/> <source>Token database:</source> <translation>Base de dados das fichas:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="268"/> <source>Picture cache size:</source> <translation>Tamanho da cache de imagens:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="269"/> <source>Primary download URL:</source> <translation>URL de dowload principal:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="270"/> <source>Fallback download URL:</source> <translation>URL de download alternativo:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="271"/> <source>How to set a custom picture url</source> <translation>Url de como definir uma imagem personalizada</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="272"/> <source>Reset/Clear Downloaded Pictures</source> <translation>Limpar/reiniciar Imagens descarregadas,</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="273"/> <source>Notify when new client features are available</source> <translation>Notificar quando novas características para cliente estiverem disponíveis</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="274"/> <location filename="../src/dlg_settings.cpp" line="275"/> <source>Reset</source> <translation>Repor</translation> </message> </context> <context> <name>MainWindow</name> <message> <location filename="../src/window_main.cpp" line="91"/> <location filename="../src/window_main.cpp" line="397"/> <source>The server has reached its maximum user capacity, please check back later.</source> <translation>O servidor atingiu a máxima capacidade de utilizadores, por favor verifique de novo mais tarde.</translation> </message> <message> <location filename="../src/window_main.cpp" line="92"/> <source>There are too many concurrent connections from your address.</source> <translation>Há demasiadas ligações concorrentes do seu endereço.</translation> </message> <message> <location filename="../src/window_main.cpp" line="94"/> <source>Banned by moderator</source> <translation>Banido por moderador</translation> </message> <message> <location filename="../src/window_main.cpp" line="96"/> <source>Expected end time: %1</source> <translation>Tempo previsto para o final:%1</translation> </message> <message> <location filename="../src/window_main.cpp" line="98"/> <source>This ban lasts indefinitely.</source> <translation>Este banimento dura indefinidamente.</translation> </message> <message> <location filename="../src/window_main.cpp" line="103"/> <source>Scheduled server shutdown.</source> <translation>Encerramento do servidor agendado.</translation> </message> <message> <location filename="../src/window_main.cpp" line="104"/> <location filename="../src/window_main.cpp" line="409"/> <source>Invalid username.</source> <translation>Nome de utilizador invalido.</translation> </message> <message> <location filename="../src/window_main.cpp" line="105"/> <source>You have been logged out due to logging in at another location.</source> <translation>Você deslogado por ter entrado numa outra localização.</translation> </message> <message> <location filename="../src/window_main.cpp" line="108"/> <source>Connection closed</source> <translation>Ligação terminada</translation> </message> <message> <location filename="../src/window_main.cpp" line="108"/> <source>The server has terminated your connection. Reason: %1</source> <translation>O servidor terminou a sua ligação. Motivo: %1</translation> </message> <message numerus="yes"> <location filename="../src/window_main.cpp" line="113"/> <source>The server is going to be restarted in %n minute(s). All running games will be lost. Reason for shutdown: %1</source> <translation><numerusform>O servidor vai ser reiniciado em %n minuto(s). Todos os jogos a decorrer serão perdidos. Motivo para o encerramento: %1</numerusform><numerusform>O servidor vai ser reiniciado em %n minuto(s). Todos os jogos a decorrer serão perdidos. Motivo para o encerramento: %1</numerusform></translation> </message> <message> <location filename="../src/window_main.cpp" line="115"/> <source>Scheduled server shutdown</source> <translation>Encerramento do servidor agendado</translation> </message> <message> <location filename="../src/window_main.cpp" line="152"/> <location filename="../src/window_main.cpp" line="162"/> <source>Success</source> <translation>Sucesso</translation> </message> <message> <location filename="../src/window_main.cpp" line="152"/> <source>Registration accepted. Will now login.</source> <translation>Registo aceite.%s Entrará agora.</translation> </message> <message> <location filename="../src/window_main.cpp" line="162"/> <source>Account activation accepted. Will now login.</source> <translation>Activação da conta aceite. %s Entrará agora.</translation> </message> <message> <location filename="../src/window_main.cpp" line="200"/> <source>Number of players</source> <translation>Número de jogadores</translation> </message> <message> <location filename="../src/window_main.cpp" line="200"/> <source>Please enter the number of players.</source> <translation>Por favor introduza o número de jogadores.</translation> </message> <message> <location filename="../src/window_main.cpp" line="210"/> <location filename="../src/window_main.cpp" line="216"/> <source>Player %1</source> <translation>Jogador %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="228"/> <source>Load replay</source> <translation>Carregar replay</translation> </message> <message> <location filename="../src/window_main.cpp" line="283"/> <source>About Cockatrice</source> <translation>Sobre o Cockatrice</translation> </message> <message> <location filename="../src/window_main.cpp" line="285"/> <source>Version %1</source> <translation>Versão %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="286"/> <source>Cockatrice Webpage</source> <translation>Website Cockatrice</translation> </message> <message> <location filename="../src/window_main.cpp" line="287"/> <source>Project Manager:</source> <translation>Gestor do projecto:</translation> </message> <message> <location filename="../src/window_main.cpp" line="288"/> <source>Past Project Managers:</source> <translation>Anteriores gestores do projecto:</translation> </message> <message> <location filename="../src/window_main.cpp" line="289"/> <source>Developers:</source> <translation>Desenvolvedores:</translation> </message> <message> <location filename="../src/window_main.cpp" line="290"/> <source>Our Developers</source> <translation>Os nossos desenvolvedores</translation> </message> <message> <location filename="../src/window_main.cpp" line="291"/> <source>Help Develop!</source> <translation>Ajuda Desenvolvimento!</translation> </message> <message> <location filename="../src/window_main.cpp" line="292"/> <source>Translators:</source> <translation>Tradutores:</translation> </message> <message> <location filename="../src/window_main.cpp" line="293"/> <source>Recognition Page</source> <translation>Página de reconhecimento</translation> </message> <message> <location filename="../src/window_main.cpp" line="294"/> <source>Help Translate!</source> <translation>Ajude a traduzir!</translation> </message> <message> <location filename="../src/window_main.cpp" line="295"/> <source>Support:</source> <translation>Ajuda técnica:</translation> </message> <message> <location filename="../src/window_main.cpp" line="296"/> <source>Report an Issue</source> <translation>Reportar um Problema</translation> </message> <message> <location filename="../src/window_main.cpp" line="297"/> <source>Troubleshooting</source> <translation>Solução de problemas</translation> </message> <message> <location filename="../src/window_main.cpp" line="298"/> <source>F.A.Q.</source> <translation>Perguntas frequentes</translation> </message> <message> <location filename="../src/window_main.cpp" line="320"/> <location filename="../src/window_main.cpp" line="353"/> <location filename="../src/window_main.cpp" line="356"/> <location filename="../src/window_main.cpp" line="367"/> <location filename="../src/window_main.cpp" line="371"/> <location filename="../src/window_main.cpp" line="375"/> <location filename="../src/window_main.cpp" line="380"/> <location filename="../src/window_main.cpp" line="383"/> <location filename="../src/window_main.cpp" line="401"/> <location filename="../src/window_main.cpp" line="471"/> <location filename="../src/window_main.cpp" line="475"/> <location filename="../src/window_main.cpp" line="479"/> <location filename="../src/window_main.cpp" line="482"/> <location filename="../src/window_main.cpp" line="489"/> <location filename="../src/window_main.cpp" line="496"/> <location filename="../src/window_main.cpp" line="503"/> <location filename="../src/window_main.cpp" line="505"/> <location filename="../src/window_main.cpp" line="901"/> <location filename="../src/window_main.cpp" line="937"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/window_main.cpp" line="320"/> <source>Server timeout</source> <translation>Tempo do servidor esgotado</translation> </message> <message> <location filename="../src/window_main.cpp" line="326"/> <source>Inactivity Timeout</source> <translation type="unfinished"/> </message> <message> <location filename="../src/window_main.cpp" line="326"/> <source>You have been signed out due to inactivity.</source> <translation type="unfinished"/> </message> <message> <location filename="../src/window_main.cpp" line="346"/> <source>Failed Login</source> <translation>Tentativa falhada de entrada</translation> </message> <message> <location filename="../src/window_main.cpp" line="347"/> <source>Your client does not support features that the server requires, please update your client and try again.</source> <translation>A sua conta cliente não suporta as características que o servidor requer, por favor actualize a sua conta cliente e tente de novo.</translation> </message> <message> <location filename="../src/window_main.cpp" line="353"/> <source>Incorrect username or password. Please check your authentication information and try again.</source> <translation>Nome de utilizador ou palavra-passe incorrecta. Por favor verifique as suas informações e tente de novo.</translation> </message> <message> <location filename="../src/window_main.cpp" line="356"/> <source>There is already an active session using this user name. Please close that session first and re-login.</source> <translation>Já existe uma sessão activa com este nome de utilizador. Por favor termine essa sessão e volte a ligar-se.</translation> </message> <message> <location filename="../src/window_main.cpp" line="361"/> <location filename="../src/window_main.cpp" line="465"/> <source>You are banned until %1.</source> <translation>Está banido até %1.</translation> </message> <message> <location filename="../src/window_main.cpp" line="363"/> <location filename="../src/window_main.cpp" line="467"/> <source>You are banned indefinitely.</source> <translation>Está banido indefinidamente.</translation> </message> <message> <location filename="../src/window_main.cpp" line="375"/> <source>This server requires user registration. Do you want to register now?</source> <translation>Este servidor requer registo de utilizador. Gostaria de se registar agora?</translation> </message> <message> <location filename="../src/window_main.cpp" line="380"/> <source>This server requires client ID's. Your client is either failing to generate an ID or you are running a modified client. Please close and reopen your client to try again.</source> <translation>Este servidor requer a identificação de cliente. Ou a sua conta cliente está a falhar na geração de uma identificação ou está a utilizar um cliente modificado.%s Por favor feche e volte a iniciar a sua conta cliente para tentar de novo.</translation> </message> <message> <location filename="../src/window_main.cpp" line="383"/> <source>An internal error has occurred, please try closing and reopening your client and try again. If the error persists try updating your client to the most recent build and if need be contact your software provider.</source> <translation>Um erro interno ocorreu, por favor feche e reabra a sua conta cliente e tente de novo. Se o erro persistir, tente actualizar a sua conta cliente para a mais recente e se necessário contacte o seu fornecedor de software.</translation> </message> <message> <location filename="../src/window_main.cpp" line="387"/> <source>Account activation</source> <translation>Activação de conta</translation> </message> <message> <location filename="../src/window_main.cpp" line="387"/> <source>Your account has not been activated yet. You need to provide the activation token received in the activation email</source> <translation>A sua conta ainda não foi activada.%s É necessário que forneça a ficha de activação que recebeu no seu mail de activação.</translation> </message> <message> <location filename="../src/window_main.cpp" line="397"/> <source>Server Full</source> <translation type="unfinished"/> </message> <message> <location filename="../src/window_main.cpp" line="401"/> <source>Unknown login error: %1</source> <translation>Erro de login desconhecido:%1</translation> </message> <message> <location filename="../src/window_main.cpp" line="401"/> <location filename="../src/window_main.cpp" line="482"/> <source> This usually means that your client version is out of date, and the server sent a reply your client doesn&apos;t understand.</source> <translation> Normalmente isto significa que a sua versão de cliente está desactualizada e que o servidor enviou uma resposta que o seu cliente não percebe.</translation> </message> <message> <location filename="../src/window_main.cpp" line="413"/> <source>Your username must respect these rules:</source> <translation>O seu nome de utilizador deve respeitar as seguintes regras:</translation> </message> <message> <location filename="../src/window_main.cpp" line="415"/> <source>is %1 - %2 characters long</source> <translation>tem %1 - %2 caracteres</translation> </message> <message> <location filename="../src/window_main.cpp" line="416"/> <source>can %1 contain lowercase characters</source> <translation>%1 pode conter caracteres em minúsculas</translation> </message> <message> <location filename="../src/window_main.cpp" line="416"/> <location filename="../src/window_main.cpp" line="417"/> <location filename="../src/window_main.cpp" line="418"/> <location filename="../src/window_main.cpp" line="423"/> <source>NOT</source> <translation>NÃO</translation> </message> <message> <location filename="../src/window_main.cpp" line="417"/> <source>can %1 contain uppercase characters</source> <translation>%1 pode conter caracteres em maiúsculas</translation> </message> <message> <location filename="../src/window_main.cpp" line="418"/> <source>can %1 contain numeric characters</source> <translation>%1 pode conter caracteres numéricos</translation> </message> <message> <location filename="../src/window_main.cpp" line="421"/> <source>can contain the following punctuation: %1</source> <translation>pode conter a seguinte pontuação: %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="423"/> <source>first character can %1 be a punctuation mark</source> <translation>o primeiro caracter %1 pode ser pontuação </translation> </message> <message> <location filename="../src/window_main.cpp" line="428"/> <source>can not contain any of the following words: %1</source> <translation type="unfinished"/> </message> <message> <location filename="../src/window_main.cpp" line="431"/> <source>can not match any of the following expressions: %1</source> <translation type="unfinished"/> </message> <message> <location filename="../src/window_main.cpp" line="438"/> <source>You may only use A-Z, a-z, 0-9, _, ., and - in your username.</source> <translation>Apenas A-Z, a-z, 0-9, _, ., e - são permitidos.</translation> </message> <message> <location filename="../src/window_main.cpp" line="448"/> <location filename="../src/window_main.cpp" line="451"/> <location filename="../src/window_main.cpp" line="454"/> <location filename="../src/window_main.cpp" line="457"/> <location filename="../src/window_main.cpp" line="460"/> <source>Registration denied</source> <translation>Registo recusado</translation> </message> <message> <location filename="../src/window_main.cpp" line="448"/> <source>Registration is currently disabled on this server</source> <translation>Os registos encontram-se indisponívels para este servidor de momento.</translation> </message> <message> <location filename="../src/window_main.cpp" line="451"/> <source>There is already an existing account with the same user name.</source> <translation>Já existe uma conta com o mesmo nome de utilizador.</translation> </message> <message> <location filename="../src/window_main.cpp" line="454"/> <source>It&apos;s mandatory to specify a valid email address when registering.</source> <translation>É obrigatório especificar um endereço de e-mail válido quando se regista.</translation> </message> <message> <location filename="../src/window_main.cpp" line="457"/> <source>Too many registration attempts from your IP address.</source> <translation>Há demasiadas tentativas de registo oriundas do seu endereço de IP.</translation> </message> <message> <location filename="../src/window_main.cpp" line="460"/> <source>Password too short.</source> <translation>A password que inseriu é demasiado curta.</translation> </message> <message> <location filename="../src/window_main.cpp" line="479"/> <source>Registration failed for a technical problem on the server.</source> <translation>Falha no registo devido a um problema técnico com o servidor</translation> </message> <message> <location filename="../src/window_main.cpp" line="482"/> <source>Unknown registration error: %1</source> <translation>Erro de registo desconhecido: %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="489"/> <source>Account activation failed</source> <translation>Falha na activação de conta</translation> </message> <message> <location filename="../src/window_main.cpp" line="496"/> <source>Socket error: %1</source> <translation>Erro de ligação:%1</translation> </message> <message> <location filename="../src/window_main.cpp" line="503"/> <source>You are trying to connect to an obsolete server. Please downgrade your Cockatrice version or connect to a suitable server. Local version is %1, remote version is %2.</source> <translation>Está a tentar ligar-se a um servidor obsoleto. Por favor faça downgrade à sua versão do Cockatrice ou ligue-se a servidor adequado. Versão local é %1, versão remota é %2.</translation> </message> <message> <location filename="../src/window_main.cpp" line="505"/> <source>Your Cockatrice client is obsolete. Please update your Cockatrice version. Local version is %1, remote version is %2.</source> <translation>A sua versão do Cockatrice é obsoleta. Por favor actualize-a. Versão local é %1, versão remota é %2.</translation> </message> <message> <location filename="../src/window_main.cpp" line="511"/> <source>Connecting to %1...</source> <translation>Ligando a %1...</translation> </message> <message> <location filename="../src/window_main.cpp" line="512"/> <source>Registering to %1 as %2...</source> <translation>Registando em %1 como %2...</translation> </message> <message> <location filename="../src/window_main.cpp" line="513"/> <source>Disconnected</source> <translation>Desligado</translation> </message> <message> <location filename="../src/window_main.cpp" line="514"/> <source>Connected, logging in at %1</source> <translation>Conectado, logando em %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="524"/> <source>&amp;Connect...</source> <translation>&amp;Ligar...</translation> </message> <message> <location filename="../src/window_main.cpp" line="525"/> <source>&amp;Disconnect</source> <translation>&amp;Desligar</translation> </message> <message> <location filename="../src/window_main.cpp" line="526"/> <source>Start &amp;local game...</source> <translation>Começar &amp;jogo local...</translation> </message> <message> <location filename="../src/window_main.cpp" line="527"/> <source>&amp;Watch replay...</source> <translation>&amp;Ver replay...</translation> </message> <message> <location filename="../src/window_main.cpp" line="528"/> <source>&amp;Deck editor</source> <translation>&amp;Editor de decks</translation> </message> <message> <location filename="../src/window_main.cpp" line="529"/> <source>&amp;Full screen</source> <translation>Ecrã &amp;inteiro</translation> </message> <message> <location filename="../src/window_main.cpp" line="530"/> <source>&amp;Register to server...</source> <translation>&amp;A registar no servidor...</translation> </message> <message> <location filename="../src/window_main.cpp" line="531"/> <source>&amp;Settings...</source> <translation>&amp;Configurações...</translation> </message> <message> <location filename="../src/window_main.cpp" line="533"/> <location filename="../src/window_main.cpp" line="748"/> <source>&amp;Exit</source> <translation>&amp;Sair</translation> </message> <message> <location filename="../src/window_main.cpp" line="536"/> <source>A&amp;ctions</source> <translation>A&amp;cções</translation> </message> <message> <location filename="../src/window_main.cpp" line="538"/> <source>&amp;Cockatrice</source> <translation>&amp;Cockatrice</translation> </message> <message> <location filename="../src/window_main.cpp" line="541"/> <source>C&amp;ard Database</source> <translation>B&amp;ase de dados de cartas</translation> </message> <message> <location filename="../src/window_main.cpp" line="542"/> <source>Open custom image folder</source> <translation>Abrir a pasta de imagens personalizadas</translation> </message> <message> <location filename="../src/window_main.cpp" line="543"/> <source>Open custom sets folder</source> <translation>Abrir a pasta de expansões personalizadas</translation> </message> <message> <location filename="../src/window_main.cpp" line="544"/> <source>Add custom sets/cards</source> <translation>Adicione cartas/expansões personalizadas</translation> </message> <message> <location filename="../src/window_main.cpp" line="545"/> <source>&amp;Edit sets...</source> <translation>&amp;Editar expansões...</translation> </message> <message> <location filename="../src/window_main.cpp" line="546"/> <source>Edit &amp;tokens...</source> <translation>Editar &amp;fichas...</translation> </message> <message> <location filename="../src/window_main.cpp" line="548"/> <source>&amp;About Cockatrice</source> <translation>S&amp;obre o Cockatrice</translation> </message> <message> <location filename="../src/window_main.cpp" line="549"/> <source>&amp;Update Cockatrice</source> <translation>&amp;Actualizar o Cockatrice</translation> </message> <message> <location filename="../src/window_main.cpp" line="550"/> <source>View &amp;debug log</source> <translation>Ver &amp;registo de erros</translation> </message> <message> <location filename="../src/window_main.cpp" line="551"/> <source>&amp;Help</source> <translation>&amp;Ajuda</translation> </message> <message> <location filename="../src/window_main.cpp" line="552"/> <source>Check for card updates...</source> <translation>Procurar por actualizações de cartas...</translation> </message> <message> <location filename="../src/window_main.cpp" line="807"/> <source>Card database</source> <translation>Base de dados de cartas</translation> </message> <message> <location filename="../src/window_main.cpp" line="809"/> <source>Cockatrice is unable to load the card database. Do you want to update your card database now? If unsure or first time user, choose &quot;Yes&quot;</source> <translation>O Cockatrice foi incapaz de carregar a base de dados de cartas.%s Deseja actualizar a sua base de dados agora?%s Se não tem a certeza ou é a primeira vez que está a utilizar o Cockatrice, escolha &quot;Sim&quot;</translation> </message> <message> <location filename="../src/window_main.cpp" line="813"/> <location filename="../src/window_main.cpp" line="838"/> <source>Yes</source> <translation>Sim</translation> </message> <message> <location filename="../src/window_main.cpp" line="814"/> <location filename="../src/window_main.cpp" line="839"/> <source>No</source> <translation>Não</translation> </message> <message> <location filename="../src/window_main.cpp" line="815"/> <source>Open settings</source> <translation>Abrir definições</translation> </message> <message> <location filename="../src/window_main.cpp" line="830"/> <source>New sets found</source> <translation>Novas expansões foram encontradas</translation> </message> <message> <location filename="../src/window_main.cpp" line="833"/> <source>%1 new set(s) found in the card database Set code(s): %2 Do you want to enable it/them?</source> <translation>%1 novas expansões foram encontradas na base de dados de cartas. Código de expansão(ões): %2 Deseja activar a nova expansão(ões)?</translation> </message> <message> <location filename="../src/window_main.cpp" line="840"/> <source>View sets</source> <translation>Ver expansões</translation> </message> <message> <location filename="../src/window_main.cpp" line="857"/> <source>Welcome</source> <translation>Bem-vindo/a</translation> </message> <message> <location filename="../src/window_main.cpp" line="857"/> <source>Hi! It seems like you're running this version of Cockatrice for the first time. All the sets in the card database have been enabled. Read more about changing the set order or disabling specific sets and consequent effects in the &quot;Edit Sets&quot; window.</source> <translation>Olá! Está a correr esta versão do Cockatrice pela primeira vez. Todas as expansões na base de dados de cartas foram activadas por pré-definição. Se quiser saber mais sobre a alteração da ordem de expansões ou sobre o activar/desactivar das mesmas, vá ao separador &quot;Editar Expansões&quot;.</translation> </message> <message> <location filename="../src/window_main.cpp" line="867"/> <location filename="../src/window_main.cpp" line="945"/> <location filename="../src/window_main.cpp" line="969"/> <source>Information</source> <translation>Informação</translation> </message> <message> <location filename="../src/window_main.cpp" line="867"/> <source>A card database update is already running.</source> <translation>A actualização da base de dados das cartas já está a correr.</translation> </message> <message> <location filename="../src/window_main.cpp" line="901"/> <source>Unable to run the card database updater: </source> <translation>Incapaz de correr o actualizador da base de dados das cartas:</translation> </message> <message> <location filename="../src/window_main.cpp" line="914"/> <source>failed to start.</source> <translation>falha no começo.</translation> </message> <message> <location filename="../src/window_main.cpp" line="917"/> <source>crashed.</source> <translation>falhou.</translation> </message> <message> <location filename="../src/window_main.cpp" line="920"/> <source>timed out.</source> <translation>esgotou o tempo.</translation> </message> <message> <location filename="../src/window_main.cpp" line="923"/> <source>write error.</source> <translation>erro na escrita.</translation> </message> <message> <location filename="../src/window_main.cpp" line="926"/> <source>read error.</source> <translation>erro na leitura.</translation> </message> <message> <location filename="../src/window_main.cpp" line="930"/> <source>unknown error.</source> <translation>erro desconhecido.</translation> </message> <message> <location filename="../src/window_main.cpp" line="937"/> <source>The card database updater exited with an error: %1</source> <translation>O actualizador da base de dados das cartas encerrou-se com um erro: %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="945"/> <source>Update completed successfully. Cockatrice will now reload the card database.</source> <translation>Actualização completa com sucesso. %s O Cockatrice irá agora recarregar a base de dados das cartas.</translation> </message> <message> <location filename="../src/window_main.cpp" line="969"/> <source>Your client appears to be missing features that the server supports. This usually means that your client version is out of date, please check to see if there is a new client available for download.</source> <translation>Aparentemente faltam características suportadas pelo servidor à sua conta cliente.%s Normalmente, isto ocorre porque a sua conta cliente está desactualizada, por favor verifique se há uma nova conta cliente disponível para baixar.</translation> </message> <message> <location filename="../src/window_main.cpp" line="1011"/> <location filename="../src/window_main.cpp" line="1019"/> <location filename="../src/window_main.cpp" line="1032"/> <location filename="../src/window_main.cpp" line="1035"/> <source>Load sets/cards</source> <translation>Carregar expansões/cartas</translation> </message> <message> <location filename="../src/window_main.cpp" line="1019"/> <source>Selected file cannot be found.</source> <translation>O ficheiro escolhido não foi encontrado.</translation> </message> <message> <location filename="../src/window_main.cpp" line="1032"/> <source>The new sets/cards have been added successfully. Cockatrice will now reload the card database.</source> <translation>Actualização completa com sucesso. %s O Cockatrice irá agora recarregar a base de dados das cartas.</translation> </message> <message> <location filename="../src/window_main.cpp" line="1035"/> <source>Sets/cards failed to import.</source> <translation>Falha na importação de expansões/cartas.</translation> </message> </context> <context> <name>MessageLogWidget</name> <message> <location filename="../src/messagelogwidget.cpp" line="53"/> <source>The game has been closed.</source> <translation>Este jogo foi encerrado.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="58"/> <source>You have been kicked out of the game.</source> <translation>Você foi expulso do jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="64"/> <source>%1 is now watching the game.</source> <translation>%1 está agora a ver o jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="70"/> <source>%1 is not watching the game any more.</source> <translation>%1 já não está a ver o jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="76"/> <source>%1 has loaded a deck (%2).</source> <translation>%1 carregou um deck (%2).</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="78"/> <source>%1 has loaded a deck with %2 sideboard cards (%3).</source> <translation>%1 carregou um deck com %2 cartas na sideboard (%3).</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="111"/> <source>The game has started.</source> <translation>O jogo começou.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="182"/> <source> from play</source> <translation>do jogo</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="186"/> <source> from exile</source> <translation> vindo do exílio</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="193"/> <source>the top card of %1&apos;s library</source> <translation>a carta do topo do grimório de %1</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="199"/> <source> from the top of %1&apos;s library</source> <translation>do topo do grimório de %1</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="206"/> <source>the bottom card of %1&apos;s library</source> <translation>a carta do fundo do grimório de %1</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="212"/> <source> from the bottom of %1&apos;s library</source> <translation>do fundo do grimório de %1</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="218"/> <source> from %1&apos;s library</source> <translation>do grimório de %1</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="223"/> <source> from sideboard</source> <translation> do sideboard</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="225"/> <source> from the stack</source> <translation> da pilha</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="251"/> <location filename="../src/messagelogwidget.cpp" line="505"/> <source>a card</source> <translation>uma carta</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="256"/> <source>%1 gives %2 control over %3.</source> <translation>%1 dá controlo sobre %3 a %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="264"/> <source>%1 puts %2 into play tapped%3.</source> <translation>%1 coloca %2 em jogo virado(a)%3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="266"/> <source>%1 puts %2 into play%3.</source> <translation>%1 coloca %2 em jogo %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="270"/> <source>%1 exiles %2%3.</source> <translation>%1 exila %2%3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="283"/> <source>%1 moves %2%3 to sideboard.</source> <translation>%1 move %2%3 para o sideboard.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="286"/> <source>%1 plays %2%3.</source> <translation>%1 joga %2%3.</translation> </message> <message numerus="yes"> <location filename="../src/messagelogwidget.cpp" line="394"/> <source>red</source> <translation><numerusform>vermelho</numerusform><numerusform>vermelhos</numerusform></translation> </message> <message numerus="yes"> <location filename="../src/messagelogwidget.cpp" line="395"/> <source>yellow</source> <translation><numerusform>amarelo</numerusform><numerusform>amarelos</numerusform></translation> </message> <message numerus="yes"> <location filename="../src/messagelogwidget.cpp" line="396"/> <source>green</source> <translation><numerusform>verde</numerusform><numerusform>verdes</numerusform></translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="550"/> <source>%1 is now keeping the top card %2 revealed.</source> <translation>%1 está agora a manter a carta do topo %2 revelada.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="551"/> <source>%1 is not revealing the top card %2 any longer.</source> <translation>%1 já não está a manter a carta do topo %2 revelada.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="31"/> <source>You have joined game #%1.</source> <translation>Você entrou no jogo #%1.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="36"/> <source>You are watching a replay of game #%1.</source> <translation>Está a ver um replay do jogo #%1.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="42"/> <source>%1 has joined the game.</source> <translation>%1 entrou no jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="48"/> <source>%1 has left the game.</source> <translation>%1 abandonou o jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="86"/> <source>%1 is ready to start the game.</source> <translation>%1 está pronto a começar o jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="91"/> <source>%1 is not ready to start the game any more.</source> <translation>%1 já não está pronto a começar o jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="97"/> <source>%1 has locked their sideboard.</source> <translation>%1 bloqueou o seu sideboard.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="99"/> <source>%1 has unlocked their sideboard.</source> <translation>%1 desbloqueou o seu sideboard.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="106"/> <source>%1 has conceded the game.</source> <translation>%1 concedeu o jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="118"/> <source>%1 has restored connection to the game.</source> <translation>%1 restabeleceu a ligação ao jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="121"/> <source>%1 has lost connection to the game.</source> <translation>%1 perdeu a ligação ao jogo.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="140"/> <source>%1 shuffles %2.</source> <translation>%1 baralha %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="148"/> <source>Heads</source> <translation>Cara</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="148"/> <source>Tails</source> <translation>Coroa</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="152"/> <source>%1 flipped a coin. It landed as %2.</source> <translation>%1 atirou uma moeda ao ar. Calhou %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="154"/> <source>%1 rolls a %2 with a %3-sided die.</source> <translation>%1 obteve %2 com um dado de %3 faces.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="163"/> <source>%1 draws %2 card(s).</source> <translation>%1 compra %2 carta(s).</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="170"/> <source>%1 undoes their last draw.</source> <translation>%1 desfaz a sua última compra.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="172"/> <source>%1 undoes their last draw (%2).</source> <translation>%1 desfaz a sua última compra (%2).</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="184"/> <source> from their graveyard</source> <translation>do seu cemitério</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="188"/> <source> from their hand</source> <translation>da sua mão</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="195"/> <source>the top card of their library</source> <translation>a carta do topo dos seus grimórios</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="201"/> <source> from the top of their library</source> <translation>do topo dos seus grimórios</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="208"/> <source>the bottom card of their library</source> <translation>a carta do fundo dos seus grimórios</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="214"/> <source> from the bottom of their library</source> <translation>do fundo dos seus grimórios</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="220"/> <source> from their library</source> <translation>dos seus grimórios</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="268"/> <source>%1 puts %2%3 into their graveyard.</source> <translation>%1 coloca %2%3 no seu grimório.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="272"/> <source>%1 moves %2%3 to their hand.</source> <translation>%1 move %2%3 para a sua mão.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="275"/> <source>%1 puts %2%3 into their library.</source> <translation>%1 coloca %2%3 no seu grimório.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="277"/> <source>%1 puts %2%3 on bottom of their library.</source> <translation>%1 coloca %2%3 no fundo do seu grimório.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="279"/> <source>%1 puts %2%3 on top of their library.</source> <translation>%1 coloca %2%3 no topo do seu grimório.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="281"/> <source>%1 puts %2%3 into their library at position %4.</source> <translation>%1 coloca %2%3 no seu grimório na posição %4.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="309"/> <source>%1 takes a mulligan to %2.</source> <translation>%1 faz mulligan a %2</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="311"/> <source>%1 draws their initial hand.</source> <translation>%1 compra a sua mão inicial.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="318"/> <source>%1 flips %2 face-down.</source> <translation>%1 volta a face de %2 para baixo</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="320"/> <source>%1 flips %2 face-up.</source> <translation>%1 volta a face de %2 para cima.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="326"/> <source>%1 destroys %2.</source> <translation>%1 destrói %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="332"/> <source>%1 attaches %2 to %3&apos;s %4.</source> <translation>%1 anexa %2 a %4 de %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="338"/> <source>%1 unattaches %2.</source> <translation>%1 desanexa %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="343"/> <source>%1 creates token: %2%3.</source> <translation>%1 cria ficha: %2%3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="353"/> <source>%1 points from their %2 to themselves.</source> <translation>%1 aponta do seu %2 para si próprio.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="356"/> <source>%1 points from their %2 to %3.</source> <translation>%1 aponta do seu %2 para %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="359"/> <source>%1 points from %2&apos;s %3 to themselves.</source> <translation>%1 aponta do %3 de %2 para si própria.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="362"/> <source>%1 points from %2&apos;s %3 to %4.</source> <translation>%1 aponta de %3 de %2 para %4.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="367"/> <source>%1 points from their %2 to their %3.</source> <translation>%1 aponta do seu %2 para %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="370"/> <source>%1 points from their %2 to %3&apos;s %4.</source> <translation>%1 aponta do seu %2 para o %4 de %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="373"/> <source>%1 points from %2&apos;s %3 to their own %4.</source> <translation>%1 aponta de %3 de %2 para o seu %4.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="376"/> <source>%1 points from %2&apos;s %3 to %4&apos;s %5.</source> <translation>%1 aponta de %3 de %2 para %5 de %4.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="388"/> <source>%1 places %2 %3 counter(s) on %4 (now %5).</source> <translation>%1 coloca %n %2 marcadores em %3 (agora com %4).</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="390"/> <source>%1 removes %2 %3 counter(s) from %4 (now %5).</source> <translation>%1 remove %2 %3 marcadores de %4 (agora com %5).</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="416"/> <source>%1 taps their permanents.</source> <translation>%1 vira as suas permanentes.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="418"/> <source>%1 untaps their permanents.</source> <translation>%1 desvira as suas permanentes.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="422"/> <source>%1 taps %2.</source> <translation>%1 vira %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="424"/> <source>%1 untaps %2.</source> <translation>%1 desvira %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="436"/> <source>%1 sets counter %2 to %3 (%4%5).</source> <translation>%1 altera o número de marcadores %2 para %3(%4%5).</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="444"/> <source>%1 sets %2 to not untap normally.</source> <translation>%1 define %2 para não desvirar normalmente.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="446"/> <source>%1 sets %2 to untap normally.</source> <translation>%1 define %2 para desvirar normalmente.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="457"/> <source>%1 sets PT of %2 to %3.</source> <translation>%1 define o P/R de %2 como %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="465"/> <source>%1 sets annotation of %2 to %3.</source> <translation>%1 coloca uma nota de %2 em%3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="473"/> <source>%1 is looking at %2.</source> <translation>%1 está a olhar para %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="478"/> <source>%1 is looking at the top %2 card(s) %3.</source> <translation>%1 está a olhar para %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="486"/> <source>%1 stops looking at %2.</source> <translation>%1 pára de olhar para %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="512"/> <source>%1 reveals %2 to %3.</source> <translation>%1 revela %2 a %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="516"/> <source>%1 reveals %2.</source> <translation>%1 revela %2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="523"/> <source>%1 randomly reveals %2%3 to %4.</source> <translation>%1 revela aleatoreamente %2%3. a %4.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="526"/> <source>%1 randomly reveals %2%3.</source> <translation>%1 revela aleatoreamente %2%3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="531"/> <source>%1 peeks at face down card #%2.</source> <translation>%1 espreita a carta virada para baixo #%2.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="534"/> <source>%1 peeks at face down card #%2: %3.</source> <translation>%1 espreita a carta virada para baixo #%2: %3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="539"/> <source>%1 reveals %2%3 to %4.</source> <translation>%1 revela %2%3 a %4.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="542"/> <source>%1 reveals %2%3.</source> <translation>%1 revela %2%3.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="561"/> <source>It is now %1&apos;s turn.</source> <translation>É agora o turno de %1.</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="569"/> <source>untap step</source> <translation>Etapa de Desvirar</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="570"/> <source>upkeep step</source> <translation>Etapa de Manutenção</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="571"/> <source>draw step</source> <translation>Etapa de Compra</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="572"/> <source>first main phase</source> <translation>1ª Fase Principal (pré-combate)</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="573"/> <source>beginning of combat step</source> <translation>Etapa de Início de Combate</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="574"/> <source>declare attackers step</source> <translation>Etapa de Declaração de Atacantes</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="575"/> <source>declare blockers step</source> <translation>Etapa de Declaração de Bloqueadores</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="576"/> <source>combat damage step</source> <translation>Etapa de Dano de Combate</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="577"/> <source>end of combat step</source> <translation>Etapa de Fim de Combate</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="578"/> <source>second main phase</source> <translation>2ª Fase Principal (pós-combate)</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="579"/> <source>ending phase</source> <translation>Fase Final</translation> </message> <message> <location filename="../src/messagelogwidget.cpp" line="581"/> <source>It is now the %1.</source> <translation>É agora a %1.</translation> </message> </context> <context> <name>MessagesSettingsPage</name> <message> <location filename="../src/dlg_settings.cpp" line="637"/> <source>Add message</source> <translation>Adicionar mensagem</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="637"/> <source>Message:</source> <translation>Mensagem:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="654"/> <source>Chat settings</source> <translation>Definições do Chat</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="655"/> <source>Custom alert words</source> <translation>Palavras alerta personalizáveis</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="656"/> <source>Enable chat mentions</source> <translation>Permitir menções no chat</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="657"/> <source>Enable mention completer</source> <translation>Permitir complementação de menções</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="658"/> <source>In-game message macros</source> <translation>Macros de mensagem no decorrer do jogo</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="659"/> <source>Ignore chat room messages sent by unregistered users</source> <translation>Ignorar mensagens de chat enviadas por utilizadores não registados</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="660"/> <source>Ignore private messages sent by unregistered users</source> <translation>Ignorar mensagens privadas enviadas por utilizadores não registados</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="661"/> <location filename="../src/dlg_settings.cpp" line="662"/> <source>Invert text color</source> <translation>Inverter cor do texto</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="663"/> <source>Enable desktop notifications for private messages</source> <translation>Permitir notificações de mensagens privadas no Ambiente de Trabalho</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="664"/> <source>Enable desktop notification for mentions</source> <translation>Permitir notificações de menções no ambiente de trabalho</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="665"/> <source>Enable room message history on join</source> <translation>Permitir o histórico de mensagens de uma sala ao entrar</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="666"/> <location filename="../src/dlg_settings.cpp" line="667"/> <source>(Color is hexadecimal)</source> <translation>(A cor é hexadecimal)</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="668"/> <source>Separate words with a space, alphanumeric characters only</source> <translation>Palavras separadas com espaço, apenas caracteres alfanuméricos</translation> </message> </context> <context> <name>PhasesToolbar</name> <message> <location filename="../src/phasestoolbar.cpp" line="151"/> <source>Untap step</source> <translation>Etapa de Desvirar</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="152"/> <source>Upkeep step</source> <translation>Etapa de manutenção</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="153"/> <source>Draw step</source> <translation>Etapa de compra</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="154"/> <source>First main phase</source> <translation>1ª Fase Principal (pré-combate)</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="155"/> <source>Beginning of combat step</source> <translation>Etapa de Início de Combate</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="156"/> <source>Declare attackers step</source> <translation>Etapa de Declaração de Atacantes</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="157"/> <source>Declare blockers step</source> <translation>Etapa de Declaração de Bloqueadores</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="158"/> <source>Combat damage step</source> <translation>Etapa de Dano de Combate</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="159"/> <source>End of combat step</source> <translation>Etapa de Fim de Combate</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="160"/> <source>Second main phase</source> <translation>2ª Fase Principal (pós-combate)</translation> </message> <message> <location filename="../src/phasestoolbar.cpp" line="161"/> <source>End of turn step</source> <translation>Fase Final</translation> </message> </context> <context> <name>Player</name> <message> <location filename="../src/player.cpp" line="519"/> <source>Reveal top cards of library</source> <translation>Mostrar as cartas do topo do grimório</translation> </message> <message> <location filename="../src/player.cpp" line="519"/> <source>Number of cards: (max. %1)</source> <translation>Número de cartas: (max. %1)</translation> </message> <message> <location filename="../src/player.cpp" line="606"/> <source>&amp;View graveyard</source> <translation>&amp;Ver cemitério</translation> </message> <message> <location filename="../src/player.cpp" line="607"/> <source>&amp;View exile</source> <translation>&amp;Ver exílio</translation> </message> <message> <location filename="../src/player.cpp" line="609"/> <source>Player &quot;%1&quot;</source> <translation>Jogador &quot;%1&quot;</translation> </message> <message> <location filename="../src/player.cpp" line="610"/> <location filename="../src/player.cpp" line="617"/> <location filename="../src/player.cpp" line="630"/> <location filename="../src/player.cpp" line="713"/> <source>&amp;Graveyard</source> <translation>&amp;Cemitério</translation> </message> <message> <location filename="../src/player.cpp" line="611"/> <location filename="../src/player.cpp" line="618"/> <location filename="../src/player.cpp" line="624"/> <location filename="../src/player.cpp" line="714"/> <source>&amp;Exile</source> <translation>&amp;Exílio</translation> </message> <message> <location filename="../src/player.cpp" line="614"/> <source>&amp;Move hand to...</source> <translation>&amp;Mover mão para...</translation> </message> <message> <location filename="../src/player.cpp" line="615"/> <location filename="../src/player.cpp" line="621"/> <location filename="../src/player.cpp" line="627"/> <location filename="../src/player.cpp" line="710"/> <source>&amp;Top of library</source> <translation>&amp;Topo do grimório</translation> </message> <message> <location filename="../src/player.cpp" line="616"/> <location filename="../src/player.cpp" line="622"/> <location filename="../src/player.cpp" line="628"/> <location filename="../src/player.cpp" line="711"/> <source>&amp;Bottom of library</source> <translation>&amp;Fundo do grimório</translation> </message> <message> <location filename="../src/player.cpp" line="620"/> <source>&amp;Move graveyard to...</source> <translation>&amp;Mover cemitério para...</translation> </message> <message> <location filename="../src/player.cpp" line="623"/> <location filename="../src/player.cpp" line="629"/> <location filename="../src/player.cpp" line="650"/> <location filename="../src/player.cpp" line="712"/> <source>&amp;Hand</source> <translation>&amp;Mão</translation> </message> <message> <location filename="../src/player.cpp" line="626"/> <source>&amp;Move exile to...</source> <translation>&amp;Mover exílio para...</translation> </message> <message> <location filename="../src/player.cpp" line="632"/> <source>&amp;View library</source> <translation>&amp;Ver grimório</translation> </message> <message> <location filename="../src/player.cpp" line="633"/> <source>View &amp;top cards of library...</source> <translation>Ver as cartas do &amp;topo do grimório...</translation> </message> <message> <location filename="../src/player.cpp" line="634"/> <source>Reveal &amp;library to...</source> <translation>&amp;Mostrar grimório a...</translation> </message> <message> <location filename="../src/player.cpp" line="635"/> <source>Reveal t&amp;op cards to...</source> <translation>Revelar c&amp;artas do topo a...</translation> </message> <message> <location filename="../src/player.cpp" line="636"/> <source>&amp;Always reveal top card</source> <translation>&amp;Revelar sempre carta do topo</translation> </message> <message> <location filename="../src/player.cpp" line="637"/> <source>O&amp;pen deck in deck editor</source> <translation>&amp;Abrir deck no editor de decks</translation> </message> <message> <location filename="../src/player.cpp" line="638"/> <source>&amp;View sideboard</source> <translation>&amp;Ver sideboard</translation> </message> <message> <location filename="../src/player.cpp" line="639"/> <source>&amp;Draw card</source> <translation>&amp;Comprar carta</translation> </message> <message> <location filename="../src/player.cpp" line="640"/> <source>D&amp;raw cards...</source> <translation>C&amp;omprar cartas...</translation> </message> <message> <location filename="../src/player.cpp" line="641"/> <source>&amp;Undo last draw</source> <translation>Desfa&amp;zer a última compra</translation> </message> <message> <location filename="../src/player.cpp" line="642"/> <source>Take &amp;mulligan</source> <translation>Fazer &amp;mulligan</translation> </message> <message> <location filename="../src/player.cpp" line="643"/> <source>&amp;Shuffle</source> <translation>&amp;Baralhar</translation> </message> <message> <location filename="../src/player.cpp" line="644"/> <source>Play top card &amp;face down</source> <translation>Jogue carta do topo &amp;virada para baixo</translation> </message> <message> <location filename="../src/player.cpp" line="645"/> <source>Move top cards to &amp;graveyard...</source> <translation>Mover as cartas do topo para o &amp;cemitério...</translation> </message> <message> <location filename="../src/player.cpp" line="646"/> <source>Move top cards to &amp;exile...</source> <translation>Mover as cartas do topo para o &amp;exílio...</translation> </message> <message> <location filename="../src/player.cpp" line="647"/> <source>Put top card on &amp;bottom</source> <translation>Colocar carta do topo no &amp;fundo</translation> </message> <message> <location filename="../src/player.cpp" line="648"/> <source>Put bottom card &amp;in graveyard</source> <translation>Coloque a carta do fundo &amp;no cemitério</translation> </message> <message> <location filename="../src/player.cpp" line="651"/> <source>&amp;Reveal hand to...</source> <translation>&amp;Mostrar mão a...</translation> </message> <message> <location filename="../src/player.cpp" line="652"/> <source>Reveal r&amp;andom card to...</source> <translation>Revele c&amp;arta aleatória a...</translation> </message> <message> <location filename="../src/player.cpp" line="653"/> <source>&amp;Sideboard</source> <translation>&amp;Sideboard</translation> </message> <message> <location filename="../src/player.cpp" line="654"/> <source>&amp;Library</source> <translation>&amp;Grimório</translation> </message> <message> <location filename="../src/player.cpp" line="655"/> <source>&amp;Counters</source> <translation>&amp;Marcadores</translation> </message> <message> <location filename="../src/player.cpp" line="657"/> <source>&amp;Untap all permanents</source> <translation>&amp;Desvirar topas as permanentes</translation> </message> <message> <location filename="../src/player.cpp" line="658"/> <source>R&amp;oll die...</source> <translation>&amp;Lançar dado...</translation> </message> <message> <location filename="../src/player.cpp" line="659"/> <source>&amp;Create token...</source> <translation>&amp;Criar token</translation> </message> <message> <location filename="../src/player.cpp" line="660"/> <source>C&amp;reate another token</source> <translation>C&amp;riar outro token</translation> </message> <message> <location filename="../src/player.cpp" line="661"/> <source>Cr&amp;eate predefined token</source> <translation>Cr&amp;iar token pré-definido</translation> </message> <message> <location filename="../src/player.cpp" line="662"/> <source>S&amp;ay</source> <translation>&amp;Dizer</translation> </message> <message> <location filename="../src/player.cpp" line="668"/> <source>C&amp;ard</source> <translation>C&amp;arta</translation> </message> <message> <location filename="../src/player.cpp" line="671"/> <source>&amp;All players</source> <translation>Todos os &amp;jogadores</translation> </message> <message> <location filename="../src/player.cpp" line="674"/> <source>&amp;Play</source> <translation>&amp;Jogar</translation> </message> <message> <location filename="../src/player.cpp" line="675"/> <source>&amp;Hide</source> <translation>Esco&amp;nder</translation> </message> <message> <location filename="../src/player.cpp" line="676"/> <source>Play &amp;Face Down</source> <translation>Jogue &amp;virada para baixo</translation> </message> <message> <location filename="../src/player.cpp" line="677"/> <source>&amp;Tap</source> <translation>&amp;Virar</translation> </message> <message> <location filename="../src/player.cpp" line="678"/> <source>&amp;Untap</source> <translation>Desv&amp;irar</translation> </message> <message> <location filename="../src/player.cpp" line="679"/> <source>Toggle &amp;normal untapping</source> <translation>A&amp;lterar desvirar normalmente</translation> </message> <message> <location filename="../src/player.cpp" line="680"/> <source>&amp;Flip</source> <translation>Vol&amp;tar</translation> </message> <message> <location filename="../src/player.cpp" line="681"/> <source>&amp;Peek at card face</source> <translation>&amp;Espreitar a face da carta</translation> </message> <message> <location filename="../src/player.cpp" line="682"/> <source>&amp;Clone</source> <translation>Copi&amp;ar</translation> </message> <message> <location filename="../src/player.cpp" line="683"/> <source>Attac&amp;h to card...</source> <translation>Ane&amp;xar a carta...</translation> </message> <message> <location filename="../src/player.cpp" line="684"/> <source>Unattac&amp;h</source> <translation>Separar as car&amp;tas</translation> </message> <message> <location filename="../src/player.cpp" line="685"/> <source>&amp;Draw arrow...</source> <translation>Desen&amp;har seta...</translation> </message> <message> <location filename="../src/player.cpp" line="686"/> <source>&amp;Increase power</source> <translation>&amp;Aumentar poder</translation> </message> <message> <location filename="../src/player.cpp" line="687"/> <source>&amp;Decrease power</source> <translation>&amp;Diminuir poder</translation> </message> <message> <location filename="../src/player.cpp" line="688"/> <source>I&amp;ncrease toughness</source> <translation>A&amp;umentar resistência</translation> </message> <message> <location filename="../src/player.cpp" line="689"/> <source>D&amp;ecrease toughness</source> <translation>Di&amp;minuir resistência</translation> </message> <message> <location filename="../src/player.cpp" line="690"/> <source>In&amp;crease power and toughness</source> <translation>Aumen&amp;tar poder e resistência</translation> </message> <message> <location filename="../src/player.cpp" line="691"/> <source>Dec&amp;rease power and toughness</source> <translation>Dimin&amp;uir poder e resistência</translation> </message> <message> <location filename="../src/player.cpp" line="692"/> <source>Set &amp;power and toughness...</source> <translation>Definir &amp;poder e resistência...</translation> </message> <message> <location filename="../src/player.cpp" line="693"/> <source>&amp;Set annotation...</source> <translation>Colocar &amp;nota...</translation> </message> <message> <location filename="../src/player.cpp" line="696"/> <source>Red</source> <translation>Vermelho</translation> </message> <message> <location filename="../src/player.cpp" line="697"/> <source>Yellow</source> <translation>Amarelo</translation> </message> <message> <location filename="../src/player.cpp" line="698"/> <source>Green</source> <translation>Verde</translation> </message> <message> <location filename="../src/player.cpp" line="701"/> <source>&amp;Add counter (%1)</source> <translation>Adicionar &amp;marcador (%1)</translation> </message> <message> <location filename="../src/player.cpp" line="704"/> <source>&amp;Remove counter (%1)</source> <translation>&amp;Remover marcador (%1)</translation> </message> <message> <location filename="../src/player.cpp" line="707"/> <source>&amp;Set counters (%1)...</source> <translation>&amp;Denifir marcadores (%1)...</translation> </message> <message> <location filename="../src/player.cpp" line="864"/> <source>View top cards of library</source> <translation>Ver as cartas do topo do grimório</translation> </message> <message> <location filename="../src/player.cpp" line="864"/> <source>Number of cards:</source> <translation>Número de cartas:</translation> </message> <message> <location filename="../src/player.cpp" line="919"/> <source>Draw cards</source> <translation>Comprar cartas</translation> </message> <message> <location filename="../src/player.cpp" line="919"/> <location filename="../src/player.cpp" line="934"/> <location filename="../src/player.cpp" line="957"/> <location filename="../src/player.cpp" line="2236"/> <source>Number:</source> <translation>Número:</translation> </message> <message> <location filename="../src/player.cpp" line="934"/> <source>Move top cards to grave</source> <translation>Mover as cartas to topo para o cemitério</translation> </message> <message> <location filename="../src/player.cpp" line="957"/> <source>Move top cards to exile</source> <translation>Mover as cartas to topo para o exílio</translation> </message> <message> <location filename="../src/player.cpp" line="1032"/> <source>Roll die</source> <translation>Lançar dado</translation> </message> <message> <location filename="../src/player.cpp" line="1032"/> <source>Number of sides:</source> <translation>Número de faces:</translation> </message> <message> <location filename="../src/player.cpp" line="2079"/> <source>Set power/toughness</source> <translation>Definir poder/resistência</translation> </message> <message> <location filename="../src/player.cpp" line="2079"/> <source>Please enter the new PT:</source> <translation>Por favor introduza o novo P/R:</translation> </message> <message> <location filename="../src/player.cpp" line="2154"/> <source>Set annotation</source> <translation>Colocar nota</translation> </message> <message> <location filename="../src/player.cpp" line="2154"/> <source>Please enter the new annotation:</source> <translation>Por favor introduza a nova nota:</translation> </message> <message> <location filename="../src/player.cpp" line="2236"/> <source>Set counters</source> <translation>Definir marcadores</translation> </message> <message> <location filename="../src/player.cpp" line="2353"/> <location filename="../src/player.cpp" line="2395"/> <source>Cr&amp;eate related card</source> <translation>Cr&amp;ie carta relacionada</translation> </message> </context> <context> <name>QMenuBar</name> <message> <location filename="../src/window_main.cpp" line="610"/> <source>Services</source> <translation>Serviços</translation> </message> <message> <location filename="../src/window_main.cpp" line="611"/> <source>Hide %1</source> <translation>Ocultar %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="612"/> <source>Hide Others</source> <translation>Ocultar outros</translation> </message> <message> <location filename="../src/window_main.cpp" line="613"/> <source>Show All</source> <translation>Mostrar tudo</translation> </message> <message> <location filename="../src/window_main.cpp" line="614"/> <source>Preferences...</source> <translation>Preferências...</translation> </message> <message> <location filename="../src/window_main.cpp" line="615"/> <source>Quit %1</source> <translation>Sair %1</translation> </message> <message> <location filename="../src/window_main.cpp" line="616"/> <source>About %1</source> <translation>Cerca %1</translation> </message> </context> <context> <name>QObject</name> <message> <location filename="../src/window_main.cpp" line="74"/> <source>Cockatrice card database (*.xml)</source> <translation>Base de dados de cartas Cockatrice (*.xml)</translation> </message> <message> <location filename="../src/window_main.cpp" line="75"/> <location filename="../src/deck_loader.cpp" line="11"/> <source>All files (*.*)</source> <translation>Todos os ficheiros (*.*)</translation> </message> <message> <location filename="../src/window_main.cpp" line="230"/> <source>Cockatrice replays (*.cor)</source> <translation>Replays do Cockatrice (*.cor)</translation> </message> <message> <location filename="../src/deck_loader.cpp" line="10"/> <source>Common deck formats (*.cod *.dec *.txt *.mwDeck)</source> <translation>Formatos de baralho comuns (*.cod, *.dec *.txt *.mwDeck)</translation> </message> <message> <location filename="../../common/decklist.cpp" line="99"/> <source>Maindeck</source> <translation>Baralho</translation> </message> <message> <location filename="../../common/decklist.cpp" line="101"/> <source>Sideboard</source> <translation>Sideboard</translation> </message> <message> <location filename="../../common/decklist.cpp" line="103"/> <source>Tokens</source> <translation>Tokens</translation> </message> </context> <context> <name>RemoteDeckList_TreeModel</name> <message> <location filename="../src/remotedecklist_treewidget.cpp" line="161"/> <source>Name</source> <translation>Nome</translation> </message> <message> <location filename="../src/remotedecklist_treewidget.cpp" line="162"/> <source>ID</source> <translation>ID</translation> </message> <message> <location filename="../src/remotedecklist_treewidget.cpp" line="163"/> <source>Upload time</source> <translation>Hora de upload</translation> </message> </context> <context> <name>RemoteReplayList_TreeModel</name> <message> <location filename="../src/remotereplaylist_treewidget.cpp" line="137"/> <source>ID</source> <translation>ID</translation> </message> <message> <location filename="../src/remotereplaylist_treewidget.cpp" line="138"/> <source>Name</source> <translation>Nome</translation> </message> <message> <location filename="../src/remotereplaylist_treewidget.cpp" line="139"/> <source>Players</source> <translation>Jogadores</translation> </message> <message> <location filename="../src/remotereplaylist_treewidget.cpp" line="140"/> <source>Keep</source> <translation>Keep</translation> </message> <message> <location filename="../src/remotereplaylist_treewidget.cpp" line="141"/> <source>Time started</source> <translation>Tempo de começo</translation> </message> <message> <location filename="../src/remotereplaylist_treewidget.cpp" line="142"/> <source>Duration (sec)</source> <translation>Duração (seg)</translation> </message> </context> <context> <name>RoomSelector</name> <message> <location filename="../src/tab_server.cpp" line="55"/> <source>Rooms</source> <translation>Salas</translation> </message> <message> <location filename="../src/tab_server.cpp" line="56"/> <source>Joi&amp;n</source> <translation>E&amp;ntrar</translation> </message> <message> <location filename="../src/tab_server.cpp" line="59"/> <source>Room</source> <translation>Sala</translation> </message> <message> <location filename="../src/tab_server.cpp" line="60"/> <source>Description</source> <translation>Descrição</translation> </message> <message> <location filename="../src/tab_server.cpp" line="61"/> <source>Permissions</source> <translation>Permissões</translation> </message> <message> <location filename="../src/tab_server.cpp" line="62"/> <source>Players</source> <translation>Jogadores</translation> </message> <message> <location filename="../src/tab_server.cpp" line="63"/> <source>Games</source> <translation>Jogos</translation> </message> </context> <context> <name>SequenceEdit</name> <message> <location filename="../src/sequenceEdit/sequenceedit.cpp" line="152"/> <source>Shortcut already in use</source> <translation>Atalho já em utilização</translation> </message> </context> <context> <name>SetsModel</name> <message> <location filename="../src/setsmodel.cpp" line="67"/> <source>Enabled</source> <translation>Activado</translation> </message> <message> <location filename="../src/setsmodel.cpp" line="68"/> <source>Set type</source> <translation>Tipo de expansão</translation> </message> <message> <location filename="../src/setsmodel.cpp" line="69"/> <source>Set code</source> <translation>Código da expansão</translation> </message> <message> <location filename="../src/setsmodel.cpp" line="70"/> <source>Long name</source> <translation>Nome longo</translation> </message> <message> <location filename="../src/setsmodel.cpp" line="71"/> <source>Release date</source> <translation>Data de lançamento</translation> </message> </context> <context> <name>ShortcutsTab</name> <message> <location filename="../src/sequenceEdit/shortcutstab.cpp" line="29"/> <source>Restore all default shortcuts</source> <translation>Recuperar todos os atalhos pré-definidos</translation> </message> <message> <location filename="../src/sequenceEdit/shortcutstab.cpp" line="30"/> <source>Do you really want to restore all default shortcuts?</source> <translation>Tem a certeza que pretende recuperar todos os atalhos pré-definidos?</translation> </message> <message> <location filename="../src/sequenceEdit/shortcutstab.cpp" line="47"/> <source>Clear all default shortcuts</source> <translation>Apague todos os atalhos pré-definidos:</translation> </message> <message> <location filename="../src/sequenceEdit/shortcutstab.cpp" line="48"/> <source>Do you really want to clear all shortcuts?</source> <translation>Tem a certeza que pretende apagar todos os atalhos pré-definidos?</translation> </message> </context> <context> <name>ShutdownDialog</name> <message> <location filename="../src/tab_admin.cpp" line="19"/> <source>&amp;Reason for shutdown:</source> <translation>&amp;Motivos para o encerramento:</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="22"/> <source>&amp;Time until shutdown (minutes):</source> <translation>&amp;Tempo até ao encerramento (minutos):</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="41"/> <source>Shut down server</source> <translation>Encerrar servidor</translation> </message> </context> <context> <name>SoundSettingsPage</name> <message> <location filename="../src/dlg_settings.cpp" line="735"/> <source>Enable &amp;sounds</source> <translation>Permitir &amp;sons</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="736"/> <source>Current sounds theme:</source> <translation>Tema sonoro actual:</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="737"/> <source>Test system sound engine</source> <translation>Teste motor de sistema de som</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="738"/> <source>Sound settings</source> <translation>Definições de Som</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="739"/> <source>Master volume</source> <translation>Volume mestre</translation> </message> </context> <context> <name>TabAdmin</name> <message> <location filename="../src/tab_admin.h" line="46"/> <source>Administration</source> <translation>Administração</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="96"/> <source>Update server &amp;message</source> <translation>&amp;Actualizar mensagem do servidor</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="97"/> <source>&amp;Shut down server</source> <translation>&amp;Encerrar servidor</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="98"/> <source>&amp;Reload configuration</source> <translation>&amp;Recarregar configuração</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="99"/> <source>Server administration functions</source> <translation>Funções do administrador do servidor</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="101"/> <source>&amp;Unlock functions</source> <translation>&amp;Desbloquear funções</translation> </message> <message> <location filename="../src/tab_admin.cpp" line="102"/> <source>&amp;Lock functions</source> <translation>&amp;Bloquear funções</translation> </message> </context> <context> <name>TabDeckEditor</name> <message> <location filename="../src/tab_deck_editor.cpp" line="530"/> <source>&amp;Clear all filters</source> <translation>&amp;Limpar filtros</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="531"/> <source>Delete selected</source> <translation>Apague seleccionados</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="533"/> <source>Deck &amp;name:</source> <translation>&amp;Nome do deck:</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="534"/> <source>&amp;Comments:</source> <translation>&amp;Comentários:</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="535"/> <source>Hash:</source> <translation>Hash:</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="540"/> <source>&amp;New deck</source> <translation>&amp;Novo deck</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="541"/> <source>&amp;Load deck...</source> <translation>&amp;Carregar deck...</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="542"/> <source>&amp;Save deck</source> <translation>&amp;Guardar deck</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="543"/> <source>Save deck &amp;as...</source> <translation>G&amp;uardar deck como...</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="544"/> <source>Load deck from cl&amp;ipboard...</source> <translation>Carregar dec&amp;k da memória...</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="545"/> <source>Save deck to clip&amp;board</source> <translation>Guardar deck na &amp;memória</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="546"/> <source>&amp;Print deck...</source> <translation>&amp;Imprimir deck...</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="548"/> <source>&amp;Analyze deck online</source> <translation>&amp;Analise o deck online</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="552"/> <source>&amp;Close</source> <translation>&amp;Fechar</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="554"/> <source>Add card to &amp;maindeck</source> <translation>Adicionar carta ao &amp;maindeck</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="555"/> <source>Add card to &amp;sideboard</source> <translation>Adicionar carta ao &amp;sideboard</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="557"/> <source>&amp;Remove row</source> <translation>&amp;Remover linha</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="559"/> <source>&amp;Increment number</source> <translation>&amp;Aumentar o número</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="561"/> <source>&amp;Decrement number</source> <translation>&amp;Diminuir o número</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="563"/> <source>&amp;Deck Editor</source> <translation>%Editor de Decks</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="565"/> <location filename="../src/tab_deck_editor.cpp" line="570"/> <source>Card Info</source> <translation>Informação da carta</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="566"/> <location filename="../src/tab_deck_editor.cpp" line="571"/> <source>Deck</source> <translation>Baralho</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="567"/> <location filename="../src/tab_deck_editor.cpp" line="572"/> <source>Filters</source> <translation>Filtros</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="569"/> <source>&amp;View</source> <translation>&amp;Vista</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="574"/> <location filename="../src/tab_deck_editor.cpp" line="577"/> <location filename="../src/tab_deck_editor.cpp" line="580"/> <source>Visible</source> <translation>Visível</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="575"/> <location filename="../src/tab_deck_editor.cpp" line="578"/> <location filename="../src/tab_deck_editor.cpp" line="581"/> <source>Floating</source> <translation>Flutuando</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="583"/> <source>Reset layout</source> <translation>Repor disposição</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="588"/> <source>Deck: %1</source> <translation>Deck:%1</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="636"/> <source>Are you sure?</source> <translation>Tem a certeza?</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="637"/> <source>The decklist has been modified. Do you want to save the changes?</source> <translation>A lista foi modificada. Gostaria de guardar as alterações?</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="667"/> <source>Load deck</source> <translation>Carregar deck</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="686"/> <location filename="../src/tab_deck_editor.cpp" line="710"/> <location filename="../src/tab_deck_editor.cpp" line="730"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="686"/> <source>The deck could not be saved.</source> <translation>O deck não pode ser guardado.</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="710"/> <location filename="../src/tab_deck_editor.cpp" line="730"/> <source>The deck could not be saved. Please check that the directory is writable and try again.</source> <translation>O deck não pode ser guardado. Por favor confirme se é possível escrever do directório e tente de novo.</translation> </message> <message> <location filename="../src/tab_deck_editor.cpp" line="716"/> <source>Save deck</source> <translation>Guardar deck</translation> </message> </context> <context> <name>TabDeckStorage</name> <message> <location filename="../src/tab_deck_storage.h" line="52"/> <source>Deck storage</source> <translation>Armazenamento de decks</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="117"/> <source>Local file system</source> <translation>Ficheiros locais</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="118"/> <source>Server deck storage</source> <translation>Decks armazenados no servidor</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="120"/> <location filename="../src/tab_deck_storage.cpp" line="122"/> <source>Open in deck editor</source> <translation>Abrir no editor de decks</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="121"/> <source>Upload deck</source> <translation>Upload do deck</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="123"/> <source>Download deck</source> <translation>Download do deck</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="124"/> <location filename="../src/tab_deck_storage.cpp" line="270"/> <source>New folder</source> <translation>Nova pasta</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="125"/> <location filename="../src/tab_deck_storage.cpp" line="126"/> <source>Delete</source> <translation>Apagar</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="156"/> <source>Enter deck name</source> <translation>Introduza o nome do deck</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="156"/> <source>This decklist does not have a name. Please enter a name:</source> <translation>Este deck nao tem um nome Por favor introduza um nome:</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="160"/> <source>Unnamed deck</source> <translation>Deck sem nome</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="195"/> <source>Delete local file</source> <translation>Apagar ficheiro local</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="195"/> <location filename="../src/tab_deck_storage.cpp" line="312"/> <location filename="../src/tab_deck_storage.cpp" line="320"/> <source>Are you sure you want to delete &quot;%1&quot;?</source> <translation>Tem a certeza que deseja apagar &quot;%1&quot;?</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="270"/> <source>Name of new folder:</source> <translation>Nome da nova pasta:</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="312"/> <source>Delete remote folder</source> <translation>Eliminar pasta remota</translation> </message> <message> <location filename="../src/tab_deck_storage.cpp" line="320"/> <source>Delete remote deck</source> <translation>Apagar deck remoto</translation> </message> </context> <context> <name>TabGame</name> <message> <location filename="../src/tab_game.cpp" line="450"/> <location filename="../src/tab_game.cpp" line="1183"/> <source>Replay</source> <translation>Repetição</translation> </message> <message> <location filename="../src/tab_game.cpp" line="450"/> <source>Game</source> <translation>Jogo</translation> </message> <message> <location filename="../src/tab_game.cpp" line="452"/> <location filename="../src/tab_game.cpp" line="496"/> <source>Card Info</source> <translation>Informação da carta</translation> </message> <message> <location filename="../src/tab_game.cpp" line="453"/> <location filename="../src/tab_game.cpp" line="498"/> <source>Player List</source> <translation>Jogadores</translation> </message> <message> <location filename="../src/tab_game.cpp" line="454"/> <location filename="../src/tab_game.cpp" line="497"/> <source>Messages</source> <translation>Mensagens</translation> </message> <message> <location filename="../src/tab_game.cpp" line="456"/> <location filename="../src/tab_game.cpp" line="511"/> <source>Replay Timeline</source> <translation>Repetir Cronologia</translation> </message> <message> <location filename="../src/tab_game.cpp" line="461"/> <source>&amp;Phases</source> <translation>Fa&amp;ses</translation> </message> <message> <location filename="../src/tab_game.cpp" line="464"/> <source>&amp;Game</source> <translation>&amp;Jogo</translation> </message> <message> <location filename="../src/tab_game.cpp" line="466"/> <source>Next &amp;phase</source> <translation>Próxima &amp;fase</translation> </message> <message> <location filename="../src/tab_game.cpp" line="469"/> <source>Next &amp;turn</source> <translation>Próximo &amp;turno</translation> </message> <message> <location filename="../src/tab_game.cpp" line="472"/> <source>&amp;Remove all local arrows</source> <translation>&amp;Remover todas as setas locais</translation> </message> <message> <location filename="../src/tab_game.cpp" line="475"/> <source>Rotate View Cl&amp;ockwise</source> <translation>Rodar a vista no se&amp;ntido dos ponteiros</translation> </message> <message> <location filename="../src/tab_game.cpp" line="478"/> <source>Rotate View Co&amp;unterclockwise</source> <translation>rodar a vista no se&amp;ntido contrário aos ponteiros</translation> </message> <message> <location filename="../src/tab_game.cpp" line="481"/> <source>Game &amp;information</source> <translation>&amp;Informação do jogo</translation> </message> <message> <location filename="../src/tab_game.cpp" line="483"/> <source>&amp;Concede</source> <translation>&amp;Conceder</translation> </message> <message> <location filename="../src/tab_game.cpp" line="486"/> <source>&amp;Leave game</source> <translation>Sair do &amp;jogo</translation> </message> <message> <location filename="../src/tab_game.cpp" line="489"/> <source>C&amp;lose replay</source> <translation>&amp;Fechar replay</translation> </message> <message> <location filename="../src/tab_game.cpp" line="492"/> <source>&amp;Say:</source> <translation>&amp;Dizer:</translation> </message> <message> <location filename="../src/tab_game.cpp" line="495"/> <source>&amp;View</source> <translation>&amp;Vista</translation> </message> <message> <location filename="../src/tab_game.cpp" line="500"/> <location filename="../src/tab_game.cpp" line="503"/> <location filename="../src/tab_game.cpp" line="506"/> <location filename="../src/tab_game.cpp" line="512"/> <source>Visible</source> <translation>Visível</translation> </message> <message> <location filename="../src/tab_game.cpp" line="501"/> <location filename="../src/tab_game.cpp" line="504"/> <location filename="../src/tab_game.cpp" line="507"/> <location filename="../src/tab_game.cpp" line="513"/> <source>Floating</source> <translation>Flutuando</translation> </message> <message> <location filename="../src/tab_game.cpp" line="516"/> <source>Reset layout</source> <translation>Repor disposição</translation> </message> <message> <location filename="../src/tab_game.cpp" line="601"/> <source>Concede</source> <translation>Conceder</translation> </message> <message> <location filename="../src/tab_game.cpp" line="601"/> <source>Are you sure you want to concede this game?</source> <translation>Tem a certeza que deseja conceder este jogo?</translation> </message> <message> <location filename="../src/tab_game.cpp" line="612"/> <source>Leave game</source> <translation>Sair do jogo</translation> </message> <message> <location filename="../src/tab_game.cpp" line="612"/> <source>Are you sure you want to leave this game?</source> <translation>Tem a certeza que deseja sair deste jogo?</translation> </message> <message> <location filename="../src/tab_game.cpp" line="811"/> <source>You are flooding the game. Please wait a couple of seconds.</source> <translation>Você está a sobrecarregar o jogo. Por favor aguarte uns segundos.</translation> </message> <message> <location filename="../src/tab_game.cpp" line="1078"/> <source>You have been kicked out of the game.</source> <translation>Foi expulso do jogo.</translation> </message> </context> <context> <name>TabLog</name> <message> <location filename="../src/tab_logs.h" line="54"/> <source>Logs</source> <translation>Registos</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="28"/> <location filename="../src/tab_logs.cpp" line="33"/> <location filename="../src/tab_logs.cpp" line="38"/> <source>Time;SenderName;SenderIP;Message;TargetID;TargetName</source> <translation>Tempo;NomeEnviador;IPEnviador;Mensagem;IDAlvo;NomeAlvo</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="41"/> <source>Room Logs</source> <translation>Registos das salas</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="42"/> <source>Game Logs</source> <translation>Registos dos jogos</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="43"/> <source>Chat Logs</source> <translation>Registos das conversas</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="65"/> <location filename="../src/tab_logs.cpp" line="75"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="65"/> <source>You must select at least one filter.</source> <translation>Deve seleccionar pelo menos um filtro</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="75"/> <source>You have to select a valid number of days to locate.</source> <translation>Deve seleccionar um número válido de dias para localizar.</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="140"/> <source>Username: </source> <translation>Nome de utilizador:</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="143"/> <source>IP Address: </source> <translation>Morada IP:</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="146"/> <source>Game Name: </source> <translation>Nome do Jogo:</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="149"/> <source>GameID: </source> <translation>ID do Jogo</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="152"/> <source>Message: </source> <translation>Mensagem:</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="156"/> <source>Main Room</source> <translation>Sala principal</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="157"/> <source>Game Room</source> <translation>Sala de Jogo</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="158"/> <source>Private Chat</source> <translation>Chat Privado</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="160"/> <source>Past X Days: </source> <translation>Últimos X Dias:</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="161"/> <source>Today</source> <translation>Hoje</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="162"/> <source>Last Hour</source> <translation>Última Hora</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="167"/> <source>Maximum Results: </source> <translation>Resultados Máximos:</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="171"/> <source>At least one filter is required. The more information you put in, the more specific your results will be.</source> <translation>É requerido pelo menos um filtro. %s Quanta mais informação der, mais específicos serão os resultados.</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="173"/> <source>Get User Logs</source> <translation>Obter registos dos utilizadores</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="177"/> <source>Clear Filters</source> <translation>Limpar Filtros</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="193"/> <source>Filters</source> <translation>Filtros:</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="202"/> <source>Log Locations</source> <translation>Localização dos Registos</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="211"/> <source>Date Range</source> <translation>Alcance de dados</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="218"/> <source>Maximum Results</source> <translation>Resultados máximos</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="255"/> <location filename="../src/tab_logs.cpp" line="260"/> <source>Message History</source> <translation>Histórico de mensagens</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="255"/> <source>Failed to collect message history information.</source> <translation>Falha na obtenção do histórico de mensagens</translation> </message> <message> <location filename="../src/tab_logs.cpp" line="260"/> <source>There are no messages for the selected filters.</source> <translation>Não há mensagens para os filtros seleccionados</translation> </message> </context> <context> <name>TabMessage</name> <message> <location filename="../src/tab_message.cpp" line="63"/> <source>Private &amp;chat</source> <translation>Chat &amp;privado</translation> </message> <message> <location filename="../src/tab_message.cpp" line="64"/> <source>&amp;Leave</source> <translation>&amp;Abandonar</translation> </message> <message> <location filename="../src/tab_message.cpp" line="80"/> <source>%1 - Private chat</source> <translation>%1 - Chat privado</translation> </message> <message> <location filename="../src/tab_message.cpp" line="108"/> <source>This user is ignoring you.</source> <translation>Este utilizador esta a ignorar-te.</translation> </message> <message> <location filename="../src/tab_message.cpp" line="138"/> <source>Private message from </source> <translation>Mensagem privada de</translation> </message> <message> <location filename="../src/tab_message.cpp" line="155"/> <source>%1 has left the server.</source> <translation>%1 abandonou o servidor.</translation> </message> <message> <location filename="../src/tab_message.cpp" line="161"/> <source>%1 has joined the server.</source> <translation>%1 entrou no servidor.</translation> </message> </context> <context> <name>TabReplays</name> <message> <location filename="../src/tab_replays.h" line="51"/> <source>Game replays</source> <translation>Repetições</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="115"/> <source>Local file system</source> <translation>Ficheiros locais</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="116"/> <source>Server replay storage</source> <translation>Armazenamento de replays no servidor</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="118"/> <location filename="../src/tab_replays.cpp" line="120"/> <source>Watch replay</source> <translation>Ver replay</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="119"/> <location filename="../src/tab_replays.cpp" line="123"/> <source>Delete</source> <translation>Apagar</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="121"/> <source>Download replay</source> <translation>Download replay</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="122"/> <source>Toggle expiration lock</source> <translation>Alternar bloqueio de expiração</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="148"/> <source>Delete local file</source> <translation>Apagar ficheiro local</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="148"/> <source>Are you sure you want to delete &quot;%1&quot;?</source> <translation>Tem a certeza que deseja apagar %1?</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="254"/> <source>Delete remote replay</source> <translation>Apagar replay remoto</translation> </message> <message> <location filename="../src/tab_replays.cpp" line="254"/> <source>Are you sure you want to delete the replay of game %1?</source> <translation>Tem a certeza que deseja apagar o replay do jogo %1?</translation> </message> </context> <context> <name>TabRoom</name> <message> <location filename="../src/tab_room.cpp" line="144"/> <source>&amp;Say:</source> <translation>&amp;Dizer:</translation> </message> <message> <location filename="../src/tab_room.cpp" line="145"/> <source>Chat</source> <translation>Chat</translation> </message> <message> <location filename="../src/tab_room.cpp" line="146"/> <source>&amp;Room</source> <translation>&amp;Sala</translation> </message> <message> <location filename="../src/tab_room.cpp" line="147"/> <source>&amp;Leave room</source> <translation>&amp;Abandonar a sala</translation> </message> <message> <location filename="../src/tab_room.cpp" line="148"/> <source>&amp;Clear chat</source> <translation>&amp;Limpar chat</translation> </message> <message> <location filename="../src/tab_room.cpp" line="149"/> <source>Chat Settings...</source> <translation>Definições do chat...</translation> </message> <message> <location filename="../src/tab_room.cpp" line="162"/> <source> mentioned you.</source> <translation>mencionou-o.</translation> </message> <message> <location filename="../src/tab_room.cpp" line="162"/> <source>Click to view</source> <translation>Clicar para ver</translation> </message> <message> <location filename="../src/tab_room.cpp" line="208"/> <source>You are flooding the chat. Please wait a couple of seconds.</source> <translation>Estás a inundar o chat .Por favor aguarde alguns segundos.</translation> </message> </context> <context> <name>TabServer</name> <message> <location filename="../src/tab_server.h" line="52"/> <source>Server</source> <translation>Servidor</translation> </message> <message> <location filename="../src/tab_server.cpp" line="183"/> <location filename="../src/tab_server.cpp" line="186"/> <location filename="../src/tab_server.cpp" line="189"/> <location filename="../src/tab_server.cpp" line="192"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/tab_server.cpp" line="183"/> <source>Failed to join the room: it doesn&apos;t exists on the server.</source> <translation>Falha ao entrar na sala: Não existe essa sala no servidor.</translation> </message> <message> <location filename="../src/tab_server.cpp" line="186"/> <source>The server thinks you are in the room but Cockatrice is unable to display it. Try restarting Cockatrice.</source> <translation>O servidor acha que você se encontra na sala mas o Cockatrice é incapaz de o apresentar. Tente reiniciar o Cockatrice.</translation> </message> <message> <location filename="../src/tab_server.cpp" line="189"/> <source>You do not have the required permission to join this room.</source> <translation>Você não tem permissão para aderir a esta sala.</translation> </message> <message> <location filename="../src/tab_server.cpp" line="192"/> <source>Failed to join the room due to an unknown error: %1.</source> <translation>Falha ao entrar na sala devido a um erro desconhecido: %1.</translation> </message> </context> <context> <name>TabSupervisor</name> <message> <location filename="../src/tab_supervisor.cpp" line="143"/> <source>Are you sure?</source> <translation>Tem a certeza?</translation> </message> <message> <location filename="../src/tab_supervisor.cpp" line="143"/> <source>There are still open games. Are you sure you want to quit?</source> <translation>Ainda estão a decorrer alguns jogos. Tem a certeza que quer sair?</translation> </message> <message> <location filename="../src/tab_supervisor.cpp" line="586"/> <source>Promotion</source> <translation>Promoção</translation> </message> <message> <location filename="../src/tab_supervisor.cpp" line="586"/> <source>You have been promoted to moderator. Please log out and back in for changes to take effect.</source> <translation>Foi promovido a moderador. Por favor saia e volte a entrar para que a mudança tenha efeito.</translation> </message> <message> <location filename="../src/tab_supervisor.cpp" line="589"/> <source>Warned</source> <translation>Avisado</translation> </message> <message> <location filename="../src/tab_supervisor.cpp" line="589"/> <source>You have received a warning due to %1. Please refrain from engaging in this activity or further actions may be taken against you. If you have any questions, please private message a moderator.</source> <translation>Recebeu um aviso devido a %1. %s Por favor evite continuar essa actividade ou acções serão tomadas contra si futuramente. Se tem alguma questão, por favor envie uma mensagem privada a um moderador.</translation> </message> </context> <context> <name>TabUserLists</name> <message> <location filename="../src/tab_userlists.h" line="48"/> <source>Account</source> <translation>Conta</translation> </message> <message> <location filename="../src/tab_userlists.cpp" line="49"/> <source>Add to Buddy List</source> <translation>Adicionar à lista de amigos</translation> </message> <message> <location filename="../src/tab_userlists.cpp" line="58"/> <source>Add to Ignore List</source> <translation>Adicionar à lista de ignorados</translation> </message> </context> <context> <name>TappedOutInterface</name> <message> <location filename="../src/tappedout_interface.cpp" line="23"/> <location filename="../src/tappedout_interface.cpp" line="67"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/tappedout_interface.cpp" line="45"/> <source>Unable to analyze the deck.</source> <translation>Incapaz de analisar o baralho.</translation> </message> </context> <context> <name>UpdateDownloader</name> <message> <location filename="../src/update_downloader.cpp" line="47"/> <source>Could not open the file for reading.</source> <translation>Incapaz de abrir o ficheiro para leitura.</translation> </message> </context> <context> <name>UserContextMenu</name> <message> <location filename="../src/user_context_menu.cpp" line="53"/> <source>User &amp;details</source> <translation>Detalhes do &amp;utilizador</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="54"/> <source>Private &amp;chat</source> <translation>Chat &amp;privado</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="55"/> <source>Show this user&apos;s &amp;games</source> <translation>Mostrar os &amp;jogos deste utilizador</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="56"/> <source>Add to &amp;buddy list</source> <translation>Adicionar à &amp;lista de amigos</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="57"/> <source>Remove from &amp;buddy list</source> <translation>Remover da lista de &amp;amigos</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="58"/> <source>Add to &amp;ignore list</source> <translation>Adicionar a lista a i&amp;gnorar</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="59"/> <source>Remove from &amp;ignore list</source> <translation>Remover da lista a &amp;ignorar</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="60"/> <source>Kick from &amp;game</source> <translation>Expulsar do &amp;jogo</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="61"/> <source>Warn user</source> <translation>Avisar utilizador</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="62"/> <source>View user&apos;s war&amp;n history</source> <translation>Ver o histórico de avi&amp;sos do utilizador</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="63"/> <source>Ban from &amp;server</source> <translation>Banir do &amp;servidor</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="64"/> <source>View user&apos;s &amp;ban history</source> <translation>Ver o histórico de &amp;bans do utilizador</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="65"/> <source>&amp;Promote user to moderator</source> <translation>&amp;Promover utilizador a moderador</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="66"/> <source>Dem&amp;ote user from moderator</source> <translation>&amp;Despromover utilizador do cargo de moderador</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="94"/> <source>%1&apos;s games</source> <translation>jogos de %1</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="149"/> <location filename="../src/user_context_menu.cpp" line="170"/> <location filename="../src/user_context_menu.cpp" line="173"/> <source>Ban History</source> <translation>Histórico de banições</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="155"/> <source>Ban Time;Moderator;Ban Length;Ban Reason;Visible Reason</source> <translation>Hora de Banição; Moderador; Duração da Banição; Razão da Banição; Razão visível</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="170"/> <source>User has never been banned.</source> <translation>O utilizador nunca foi banido.</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="173"/> <source>Failed to collecting ban information.</source> <translation>Falha na obtenção a informação de banição</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="182"/> <location filename="../src/user_context_menu.cpp" line="202"/> <location filename="../src/user_context_menu.cpp" line="205"/> <source>Warning History</source> <translation>Histórico de avisos</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="188"/> <source>Warning Time;Moderator;User Name;Reason</source> <translation>Hora do aviso; Moderador; Nome do Utilizador; Razão</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="202"/> <source>User has never been warned.</source> <translation>O utilizador nunca foi avisado.</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="205"/> <source>Failed to collecting warning information.</source> <translation>Falha na obtenção do histórico de avisos.</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="215"/> <location filename="../src/user_context_menu.cpp" line="217"/> <source>Success</source> <translation>Sucesso</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="215"/> <source>Successfully promoted user.</source> <translation>Utilizador promovido com sucesso.</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="217"/> <source>Successfully demoted user.</source> <translation>Utilizador despromovido com sucesso.</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="222"/> <location filename="../src/user_context_menu.cpp" line="224"/> <source>Failed</source> <translation>Falhou</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="222"/> <source>Failed to promote user.</source> <translation>Falha na promoção do utilizador.</translation> </message> <message> <location filename="../src/user_context_menu.cpp" line="224"/> <source>Failed to demote user.</source> <translation>Falha na despromoção do utilizador.</translation> </message> </context> <context> <name>UserInfoBox</name> <message> <location filename="../src/userinfobox.cpp" line="61"/> <source>User information</source> <translation>Informação do utilizador</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="68"/> <source>Real name:</source> <translation>Nome real:</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="69"/> <source>Location:</source> <translation>Localização:</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="70"/> <source>User level:</source> <translation>Nível de utilizador:</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="71"/> <source>Account Age:</source> <translation>Idade da Conta</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="73"/> <source>Edit</source> <translation>Editar</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="74"/> <source>Change password</source> <translation>Alterar password</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="75"/> <source>Change avatar</source> <translation>Alterar avatar</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="106"/> <source>Administrator</source> <translation>Administrador</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="108"/> <source>Moderator</source> <translation>Moderador</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="110"/> <source>Registered user</source> <translation>Utilizador registado</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="112"/> <location filename="../src/userinfobox.cpp" line="115"/> <source>Unregistered user</source> <translation>Utilizador não registado</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="118"/> <source>Unknown</source> <translation>Desconhecido </translation> </message> <message> <location filename="../src/userinfobox.cpp" line="131"/> <source>Year</source> <translation>Ano</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="131"/> <source>Years</source> <translation>Anos</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="137"/> <source>Day</source> <translation>Dia</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="137"/> <source>Days</source> <translation>Dias</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="233"/> <location filename="../src/userinfobox.cpp" line="249"/> <location filename="../src/userinfobox.cpp" line="272"/> <source>Information</source> <translation>Informação</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="233"/> <source>User information updated.</source> <translation>Informação do utilizador actualizada.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="236"/> <location filename="../src/userinfobox.cpp" line="240"/> <location filename="../src/userinfobox.cpp" line="252"/> <location filename="../src/userinfobox.cpp" line="255"/> <location filename="../src/userinfobox.cpp" line="258"/> <location filename="../src/userinfobox.cpp" line="262"/> <location filename="../src/userinfobox.cpp" line="275"/> <location filename="../src/userinfobox.cpp" line="279"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="236"/> <source>This server does not permit you to update your user informations.</source> <translation>Este servidor não permite a actualização da sua informação pessoal.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="240"/> <location filename="../src/userinfobox.cpp" line="262"/> <source>An error occured while trying to update your user informations.</source> <translation>Ocorreu um erro ao tentar actualizar a sua informação pessoal.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="249"/> <source>Password changed.</source> <translation>Password alterada.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="252"/> <source>This server does not permit you to change your password.</source> <translation>Este servidor não permite a actualização da sua password.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="255"/> <source>The new password is too short.</source> <translation>A password nova é demasiado curta.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="258"/> <source>The old password is incorrect.</source> <translation>A password antiga está incorrecta.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="272"/> <source>Avatar updated.</source> <translation>Avatar actualizado.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="275"/> <source>This server does not permit you to update your avatar.</source> <translation>Este servidor não permite a actualização do seu avatar.</translation> </message> <message> <location filename="../src/userinfobox.cpp" line="279"/> <source>An error occured while trying to updater your avatar.</source> <translation>Um erro ocorreu ao tentar actualizar o seu avatar.</translation> </message> </context> <context> <name>UserInterfaceSettingsPage</name> <message> <location filename="../src/dlg_settings.cpp" line="437"/> <source>General interface settings</source> <translation>Configurações gerais da interface</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="438"/> <source>Enable notifications in taskbar</source> <translation>Permitir notificações na barra de tarefas</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="439"/> <source>Notify in the taskbar for game events while you are spectating</source> <translation>Notificar eventos de jogos na barra de tarefas</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="440"/> <source>&amp;Double-click cards to play them (instead of single-click)</source> <translation>Clicar &amp;duas vezes nas cartas para as jogar (ao invés de clicar apenas uma vez)</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="441"/> <source>&amp;Play all nonlands onto the stack (not the battlefield) by default</source> <translation>&amp;Jogar todos os não-terrenos para a pilha (em vez de para o campo de batalha) por definição</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="442"/> <source>Annotate card text on tokens</source> <translation>Permitir anotações em tokens</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="443"/> <source>Animation settings</source> <translation>Configurações de Animações</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="444"/> <source>&amp;Tap/untap animation</source> <translation>Animação de &amp;virar/desvirar</translation> </message> <message> <location filename="../src/dlg_settings.cpp" line="445"/> <source>Disconnect from server if idle for 1 hour</source> <translation type="unfinished"/> </message> </context> <context> <name>UserList</name> <message> <location filename="../src/userlist.cpp" line="334"/> <source>Users connected to server: %1</source> <translation>Utilizadores online: %1</translation> </message> <message> <location filename="../src/userlist.cpp" line="335"/> <source>Users in this room: %1</source> <translation>Utilizadores nesta sala:%1</translation> </message> <message> <location filename="../src/userlist.cpp" line="336"/> <source>Buddies online: %1 / %2</source> <translation>Amigos online: %1 / %2</translation> </message> <message> <location filename="../src/userlist.cpp" line="337"/> <source>Ignored users online: %1 / %2</source> <translation>Utilizadores ignorados online %1 / %2</translation> </message> </context> <context> <name>WarningDialog</name> <message> <location filename="../src/userlist.cpp" line="122"/> <source>Which warning would you like to send?</source> <translation>Que aviso gostaria de enviar?</translation> </message> <message> <location filename="../src/userlist.cpp" line="128"/> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <location filename="../src/userlist.cpp" line="131"/> <source>&amp;Cancel</source> <translation>&amp;Cancelar</translation> </message> <message> <location filename="../src/userlist.cpp" line="145"/> <source>Warn user for misconduct</source> <translation>Aviso por má conduta</translation> </message> <message> <location filename="../src/userlist.cpp" line="151"/> <location filename="../src/userlist.cpp" line="156"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location filename="../src/userlist.cpp" line="151"/> <source>User name to send a warning to can not be blank, please specify a user to warn.</source> <translation>O nome de utilizador não se pode encontrar vazio, por favor especifique o utilizador que deseja avisar.</translation> </message> <message> <location filename="../src/userlist.cpp" line="156"/> <source>Warning to use can not be blank, please select a valid warning to send.</source> <translation>O aviso a enviar não se pode encontrar vazio, por favor seleccione um aviso válido para enviar.</translation> </message> </context> <context> <name>WndSets</name> <message> <location filename="../src/window_sets.cpp" line="30"/> <source>Move selected set to the top</source> <translation>Mover expansão seleccionada para o topo</translation> </message> <message> <location filename="../src/window_sets.cpp" line="37"/> <source>Move selected set up</source> <translation>Mover expansão seleccionada para cima</translation> </message> <message> <location filename="../src/window_sets.cpp" line="44"/> <source>Move selected set down</source> <translation>Mover expansão seleccionada para baixo</translation> </message> <message> <location filename="../src/window_sets.cpp" line="51"/> <source>Move selected set to the bottom</source> <translation>Mover expansão seleccionada para o fundo</translation> </message> <message> <location filename="../src/window_sets.cpp" line="85"/> <source>Enable all sets</source> <translation>Permitir todas as expansões</translation> </message> <message> <location filename="../src/window_sets.cpp" line="87"/> <source>Disable all sets</source> <translation>Inactivar todas as expansões</translation> </message> <message> <location filename="../src/window_sets.cpp" line="92"/> <source>hints:</source> <translation>pistas:</translation> </message> <message> <location filename="../src/window_sets.cpp" line="92"/> <source>Enable the sets that you want to have available in the deck editor</source> <translation>Permita as expansões que deseja ter disponíveis no editor de baralhos</translation> </message> <message> <location filename="../src/window_sets.cpp" line="92"/> <source>Move sets around to change their order, or click on a column header to sort sets on that field</source> <translation>Mova expansões para alterar as suas ordens ou clique no cabeçalho da coluna para ordenar as expansões nesse campo</translation> </message> <message> <location filename="../src/window_sets.cpp" line="92"/> <source>Sets order decides the source that will be used when loading images for a specific card</source> <translation>A ordem das expansões decide a fonte que será usada ao carregar imagens para uma carta específica</translation> </message> <message> <location filename="../src/window_sets.cpp" line="92"/> <source>Disabled sets will be used for loading images only if all the enabled sets failed</source> <translation>Expansões inactivas serão usadas para carregar imagens apenas se todas as expansões permitidos falharem</translation> </message> <message> <location filename="../src/window_sets.cpp" line="112"/> <source>Edit sets</source> <translation>Editar expansões</translation> </message> <message> <location filename="../src/window_sets.cpp" line="124"/> <source>Success</source> <translation>Sucesso</translation> </message> <message> <location filename="../src/window_sets.cpp" line="124"/> <source>The sets database has been saved successfully.</source> <translation>A base de dados das expansões foi guardada com sucesso</translation> </message> </context> <context> <name>ZoneViewWidget</name> <message> <location filename="../src/zoneviewwidget.cpp" line="133"/> <source>sort by name</source> <translation>dispor por nome</translation> </message> <message> <location filename="../src/zoneviewwidget.cpp" line="134"/> <source>sort by type</source> <translation>dispor por tipo</translation> </message> <message> <location filename="../src/zoneviewwidget.cpp" line="135"/> <source>shuffle when closing</source> <translation>baralhar quando terminar</translation> </message> <message> <location filename="../src/zoneviewwidget.cpp" line="136"/> <source>pile view</source> <translation>vista em pilha</translation> </message> </context> <context> <name>i18n</name> <message> <location filename="../src/settingscache.cpp" line="147"/> <source>English</source> <translation>Português (Portuguese)</translation> </message> </context> <context> <name>shortcutsTab</name> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1461"/> <source>Main Window</source> <translation>Janela Principal</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1462"/> <source>Deck editor</source> <translation>Editor de Baralhos</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1463"/> <source>Local gameplay</source> <translation>Jogos locais</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1464"/> <source>Watch replay</source> <translation>Ver replay</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1465"/> <source>Connect</source> <translation>Ligar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1466"/> <source>Register</source> <translation>Registar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1467"/> <source>Full screen</source> <translation>Ecrã Inteiro</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1468"/> <source>Settings</source> <translation>Definições</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1469"/> <source>Check for card updates</source> <translation>Verificar por actualizações de cartas</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1470"/> <source>Disconnect</source> <translation>Desconectar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1471"/> <source>Exit</source> <translation>Sair</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1472"/> <source>Deck Editor</source> <translation>Editor de Baralhos</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1473"/> <source>Analyze deck</source> <translation>Analisar o baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1474"/> <source>Load deck (clipboard)</source> <translation>Carregar baralho (na área de transferência)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1475"/> <source>Clear all filters</source> <translation>Limpar filtros</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1476"/> <source>New deck</source> <translation>Novo baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1477"/> <source>Clear selected filter</source> <translation>Limpar filtros seleccionados</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1478"/> <source>Open custom pic folder</source> <translation>Abrir a pasta de imagens personalizadas</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1479"/> <source>Close</source> <translation>Fechar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1480"/> <source>Print deck</source> <translation>Imprimir o baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1481"/> <source>Edit sets</source> <translation>Editar database</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1482"/> <source>Delete card</source> <translation>Apagar carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1483"/> <source>Edit tokens</source> <translation>Editar a lista de tokens</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1484"/> <source>Reset layout</source> <translation>Repor disposição</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1485"/> <source>Add card</source> <translation>Adicionar carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1486"/> <source>Save deck</source> <translation>Guardar baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1487"/> <source>Remove card</source> <translation>Retirar carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1488"/> <source>Save deck as</source> <translation>Guardar baralho como</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1489"/> <source>Load deck</source> <translation>Abrir baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1490"/> <source>Save deck (clipboard)</source> <translation>Guardar baralho (na área de transferência)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1491"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1581"/> <source>Counters</source> <translation>Contadores</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1492"/> <source>Life</source> <translation>Vida</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1493"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1497"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1501"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1505"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1513"/> <source>Set</source> <translation>Definir</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1494"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1498"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1502"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1506"/> <source>Add</source> <translation>Adicionar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1495"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1499"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1503"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1507"/> <source>Remove</source> <translation>Retirar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1496"/> <source>Red</source> <translation>Vermelho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1500"/> <source>Green</source> <translation>Verde</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1504"/> <source>Yellow</source> <translation>Amarelo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1508"/> <source>Main Window | Deck Editor</source> <translation>Janela Principal | Editor de Baralhos</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1509"/> <source>Power / Toughness</source> <translation>Poder / Resistência</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1510"/> <source>Power and Toughness</source> <translation>Poder e Resistência</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1511"/> <source>Add (+1/+1)</source> <translation>Adicionar (+1/+1)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1512"/> <source>Remove (-1/-1)</source> <translation>Subtrair (-1/-1)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1514"/> <source>Toughness</source> <translation>Resistência</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1515"/> <source>Remove (-0/-1)</source> <translation>Subtrair (-0/-1)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1516"/> <source>Add (+0/+1)</source> <translation>Adicionar (+0/+1)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1517"/> <source>Power</source> <translation>Poder</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1518"/> <source>Remove (-1/-0)</source> <translation>Subtrair (-1/-0)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1519"/> <source>Add (+1/+0)</source> <translation>Adicionar (+1/+0)</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1520"/> <source>Game Phases</source> <translation>Etapas de jogo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1521"/> <source>Untap</source> <translation>Desvirar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1522"/> <source>Upkeep</source> <translation>Etapa de Upkeep</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1523"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1574"/> <source>Draw</source> <translation>Etapa de compra de cartas</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1524"/> <source>Main 1</source> <translation>Etapa Principal 1</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1525"/> <source>Start combat</source> <translation>Etapa de início de combate</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1526"/> <source>Attack</source> <translation>Etapa de Ataque</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1527"/> <source>Block</source> <translation>Etapa de Bloqueio</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1528"/> <source>Damage</source> <translation>Etapa de atribuição de dano</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1529"/> <source>End combat</source> <translation>Etapa de fim de combate</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1530"/> <source>Main 2</source> <translation>Etapa Principal 2</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1531"/> <source>End</source> <translation>Fim de turno</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1532"/> <source>Next phase</source> <translation>Próxima etapa</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1533"/> <source>Next turn</source> <translation>Próximo turno</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1534"/> <source>Playing Area</source> <translation>Área de jogo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1535"/> <source>Tap Card</source> <translation>Virar a carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1536"/> <source>Untap Card</source> <translation>Desvirar a carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1537"/> <source>Untap all</source> <translation>Desvirar todas as cartas</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1538"/> <source>Toggle untap</source> <translation>Desactivar desvirar automático</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1539"/> <source>Flip card</source> <translation>Vire a carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1540"/> <source>Peek card</source> <translation>Espreitar a face da carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1541"/> <source>Play card</source> <translation>Jogar carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1542"/> <source>Attach card</source> <translation>Anexar a carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1543"/> <source>Unattach card</source> <translation>Separar as cartas</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1544"/> <source>Clone card</source> <translation>Clonar carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1545"/> <source>Create token</source> <translation>Criar token</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1546"/> <source>Create another token</source> <translation>Criar outro token</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1547"/> <source>Set annotation</source> <translation>Criar anotação</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1548"/> <source>Phases | P/T | Playing Area</source> <translation>Etapa | P/R / Área de jogo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1549"/> <source>Move card to</source> <translation>Mover a carta para</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1550"/> <source>Bottom library</source> <translation>Fundo do baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1551"/> <source>Top library</source> <translation>Topo do trabalho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1552"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1556"/> <source>Graveyard</source> <translation>Cemitério</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1553"/> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1560"/> <source>Exile</source> <translation>Exílio</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1554"/> <source>Hand</source> <translation>Mão</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1555"/> <source>View</source> <translation>Ver</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1557"/> <source>Library</source> <translation>Baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1558"/> <source>Tops card of library</source> <translation>Cartas do topo do baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1559"/> <source>Sideboard</source> <translation>Sideboard</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1561"/> <source>Close recent view</source> <translation>Fechar vista recente</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1562"/> <source>Game Lobby</source> <translation>Lobby de jogo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1563"/> <source>Load remote deck</source> <translation>Use um deck armazenado no servidor remoto</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1564"/> <source>Load local deck</source> <translation>Use um baralho local</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1565"/> <source>Gameplay</source> <translation>Área de jogo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1566"/> <source>Draw arrow</source> <translation>Desenhar seta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1567"/> <source>Leave game</source> <translation>Sair do jogo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1568"/> <source>Remove local arrows</source> <translation>Remover setas locais</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1569"/> <source>Concede</source> <translation>Desistir</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1570"/> <source>Roll dice</source> <translation>Atirar dados</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1571"/> <source>Rotate view CW</source> <translation>Rodar vista ponteiros</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1572"/> <source>Shuffle library</source> <translation>Baralhar</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1573"/> <source>Rotate view CCW</source> <translation>Rodar vista contra-ponteiros</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1575"/> <source>Mulligan</source> <translation>Mulligan</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1576"/> <source>Draw card</source> <translation>&apos;Compre&apos; uma carta</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1577"/> <source>Draw cards</source> <translation>&apos;Comprar&apos; cartas</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1578"/> <source>Undo draw</source> <translation>Desfazer ultima compra</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1579"/> <source>Always reveal top card</source> <translation>Revelar sempre a carta do topo do baralho</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1580"/> <source>Draw | Move | View | Gameplay</source> <translation>Comprar | Mover | Vista | Área de jogo</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1582"/> <source>How to set custom shortcuts</source> <translation>Como personalizar os seus atalhos</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1583"/> <source>Restore all default shortcuts</source> <translation>Recuperar todos os atalhos pré-definidos</translation> </message> <message> <location filename="../src/sequenceEdit/ui_shortcutstab.h" line="1584"/> <source>Clear all shortcuts</source> <translation>Apagar todos os atalhos</translation> </message> </context> </TS>
gpl-2.0
jelitox/huayra
sfp/class_folder/dao/sigesp_spe_estpr2.php
332
<?php require_once("../class_folder/sigesp_conexion_dao.php"); class spe_Estpro2Dao extends ADOdb_Active_Record { var $_table="spe_estpro2"; public function FiltrarDatos($cadena) { global $db; $Rs = $db->Execute("select * from {$this->_table} where CODEST1='{cadena}'"); return $Rs; } } ?>
gpl-2.0
teragonaudio/Arooo
JuceLibraryCode/modules/juce_core/native/juce_linux_Threads.cpp
3089
/* ============================================================================== This file is part of the JUCE library - "Jules' Utility Class Extensions" Copyright 2004-11 by Raw Material Software Ltd. ------------------------------------------------------------------------------ JUCE can be redistributed and/or modified under the terms of the GNU General Public License (Version 2), as published by the Free Software Foundation. A copy of the license is included in the JUCE distribution, or can be found online at www.gnu.org/licenses. JUCE 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. ------------------------------------------------------------------------------ To release a closed-source product which uses JUCE, commercial licenses are available: visit www.rawmaterialsoftware.com/juce for more information. ============================================================================== */ /* Note that a lot of methods that you'd expect to find in this file actually live in juce_posix_SharedCode.h! */ //============================================================================== void Process::setPriority (const ProcessPriority prior) { const int policy = (prior <= NormalPriority) ? SCHED_OTHER : SCHED_RR; const int minp = sched_get_priority_min (policy); const int maxp = sched_get_priority_max (policy); struct sched_param param; switch (prior) { case LowPriority: case NormalPriority: param.sched_priority = 0; break; case HighPriority: param.sched_priority = minp + (maxp - minp) / 4; break; case RealtimePriority: param.sched_priority = minp + (3 * (maxp - minp) / 4); break; default: jassertfalse; break; } pthread_setschedparam (pthread_self(), policy, &param); } void Process::terminate() { exit (0); } JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger() { static char testResult = 0; if (testResult == 0) { testResult = (char) ptrace (PT_TRACE_ME, 0, 0, 0); if (testResult >= 0) { ptrace (PT_DETACH, 0, (caddr_t) 1, 0); testResult = 1; } } return testResult < 0; } JUCE_API bool JUCE_CALLTYPE Process::isRunningUnderDebugger() { return juce_isRunningUnderDebugger(); } void Process::raisePrivilege() { // If running suid root, change effective user to root if (geteuid() != 0 && getuid() == 0) { setreuid (geteuid(), getuid()); setregid (getegid(), getgid()); } } void Process::lowerPrivilege() { // If runing suid root, change effective user back to real user if (geteuid() == 0 && getuid() != 0) { setreuid (geteuid(), getuid()); setregid (getegid(), getgid()); } }
gpl-2.0
joomla-projects/GSoC-SQL-Optimization
media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js
2296
/** * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ jQuery(document).ready(function() { var ajax_structure = { success: function(data, textStatus, jqXHR) { try { var updateInfoList = jQuery.parseJSON(data); } catch(e) { // An error occured jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.ERROR); } if (updateInfoList instanceof Array) { if (updateInfoList.length == 0) { // No updates jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.UPTODATE); } else { var updateString = plg_quickicon_extensionupdate_text.UPDATEFOUND_MESSAGE.replace("%s", updateInfoList.length); if (jQuery('.alert-joomlaupdate').length == 0) { jQuery('#system-message-container').prepend( '<div class="alert alert-error alert-joomlaupdate">' + updateString + ' <button class="btn btn-primary" onclick="document.location=\'' + plg_quickicon_extensionupdate_url + '\'">' + plg_quickicon_extensionupdate_text.UPDATEFOUND_BUTTON + '</button>' + '</div>' ); } else { jQuery('#system-message-container').prepend( '<div class="alert alert-error alert-joomlaupdate span6">' + updateString + ' <button class="btn btn-primary" onclick="document.location=\'' + plg_quickicon_extensionupdate_url + '\'">' + plg_quickicon_extensionupdate_text.UPDATEFOUND_BUTTON + '</button>' + '</div>' ); } var updateString = plg_quickicon_extensionupdate_text.UPDATEFOUND.replace("%s", updateInfoList.length); jQuery('#plg_quickicon_extensionupdate').find('span').html(updateString); } } else { // An error occured jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.ERROR); } }, error: function(jqXHR, textStatus, errorThrown) { // An error occured jQuery('#plg_quickicon_extensionupdate').find('span').html(plg_quickicon_extensionupdate_text.ERROR); }, url: plg_quickicon_extensionupdate_ajax_url + '&eid=0&skip=700' }; ajax_object = new jQuery.ajax(ajax_structure); });
gpl-2.0
Ruthkaveke/ecommerce-site
wp-content/themes/socute.free/core/yit/Submenu/Premium.php
2780
<?php /** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes Team <info@yithemes.com> * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ /** * YIT Buy Themes submenu page * * * @since 1.0.0 */ class YIT_Submenu_Premium extends YIT_Submenu_Abstract { /** * Menu items * * @var array * @since 1.0.0 */ public $_menu = array(); /** * Submenu items * * @var array * @since 1.0.0 */ public $_submenu = array(); /** * Constructor * */ public function __construct($tabPath, $tabName) { $this->init(); parent::__construct($tabPath, $tabName); } /** * Init helper method * */ public function init() { $this->_menu = apply_filters( 'yit_admin_menu_premium', array() ); if( isset( $_GET['page'] ) && $_GET['page'] == 'yit_panel_premium' ) { add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); } } /** * Should print the menu but here it's not needed. * * @return bool * @since 1.0.0 */ public function get_menu($id) { return false; } /** * Support forum url * * @var string */ protected $_url = 'http://yithemes.com'; /** * Enqueue style and scripts * * @return void * @since 1.0.0 */ public function enqueue_scripts() { $base_url = 'http://yithemes.com/wp-content/themes/maya-2'; //wp_enqueue_style( 'landing-style', "$base_url/style.css" ); wp_enqueue_style( 'pacifico-font', 'http://fonts.googleapis.com/css?family=Pacifico&#038;subset=latin%2Ccyrillic%2Cgreek' ); wp_enqueue_style( 'nunito-font', 'http://fonts.googleapis.com/css?family=Nunito&#038;subset=latin%2Ccyrillic%2Cgreek' ); wp_enqueue_style( 'droid-sans-font', 'http://fonts.googleapis.com/css?family=Droid+Sans&#038;subset=latin%2Ccyrillic%2Cgreek' ); wp_enqueue_style( 'shadows-into-light-font', 'http://fonts.googleapis.com/css?family=Shadows+Into+Light&#038;subset=latin%2Ccyrillic%2Cgreek' ); wp_enqueue_style( 'oswald-font', 'http://fonts.googleapis.com/css?family=Oswald%3A400%2C700' ); wp_enqueue_style( 'landing-bolder', "$base_url/landings/style.css" ); //wp_enqueue_style( 'landing-specific-bolder', "$base_url/landings/bolder/style.css" ); } /** * Print an iframe for the shop * * @return void * @since 1.0.0 */ public function display_page() { yit_get_template( 'admin/panel/premium.php' ); } }
gpl-2.0
ulearn/blogcom
wp-content/themes/mistix/includes/formatting.php
4919
<?php //Long posts should require a higher limit, see http://core.trac.wordpress.org/ticket/8553 //@ini_set('pcre.backtrack_limit', 500000); // Add RSS links to <head> section if (function_exists('add_theme_support')) { add_theme_support('automatic-feed-links'); } // remove junk from head remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'index_rel_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'start_post_rel_link', 10, 0); remove_action('wp_head', 'parent_post_rel_link', 10, 0); remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); add_filter('widget_text', 'do_shortcode'); function remove_recent_comment_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'remove_recent_comment_style' ); // Ready for theme localisation load_theme_textdomain('local'); add_theme_support('post-thumbnails'); set_post_thumbnail_size(270, 150); add_image_size('widget_pop', 75, 75, true); add_image_size('slider-image', 880, 320, true); add_image_size('slider', 650, 300, true); add_image_size('blog', 620, 180, true); add_image_size('coin', 920, 340, true); add_filter('post_thumbnail_html', 'my_post_image_html', 10, 3); function my_post_image_html($html, $post_id, $post_image_id) { $html = '<a href="' . get_permalink($post_id) . '" title="' . esc_attr(get_post_field('post_title', $post_id)) . '">' . $html . '</a>'; return $html; } function strip_single_tags($tags, $string) { foreach ($tags as $tag) { $string = preg_replace('#</?' . $tag . '[^>]*>#is', '', $string); } //remove empty a and p $string = preg_replace('/<a[^>]*><\\/a[^>]*>/', '', $string); $string = preg_replace('/<p[^>]*><\\/p[^>]*>/', '', $string); return $string; } function get_the_content_with_formatting($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]&gt;', $content); return $content; } function better_excerpt($text, $excerpt_length) { $text = str_replace(']]>', ']]&gt;', $text); $text = preg_replace('@<script[^>]*?>.*?</script>@si', '', $text); // replace </p> with <br> and remove <p> $text = str_replace("<p>", "", $text); $text = str_replace("</p>", "<br/>", $text); $text = strip_tags($text, "<br/>"); $text = str_replace("<br>", "", $text); $words = explode(' ', $text, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '...'); $text = implode(' ', $words); } $text = ltrim($text, "<br>"); $text = trim($text); if ($text == "/>") $text = ""; if (substr($text, 0, 2) == "/>") $text = substr($text, 2); //return "<p>$text</p>"; return "$text"; } function get_all_img_urls($data) { $images = array(); preg_match_all('/(img|src)\=(\"|\')[^\"\'\>]+/i', $data, $media); unset($data); $data = preg_replace('/(img|src)(\"|\'|\=\"|\=\')(.*)/i', "$3", $media[0]); foreach ($data as $url) { $info = pathinfo($url); if (isset($info['extension'])) { if (($info['extension'] == 'jpg') || ($info['extension'] == 'jpeg') || ($info['extension'] == 'gif') || ($info['extension'] == 'png')) array_push($images, $url); } } return $images; } // no more jumping for read more link //function no_more_jumping($post) //{ // return '<a href="' . get_permalink($post->ID) . '" class="read-more">' . 'Continue Reading' . '</a>'; //} //add_filter('excerpt_more', 'no_more_jumping'); /* Function To Limit Output fl Content.*/ function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]&gt;', $content); $content = strip_tags($content); if(isset($_GET['p'])){ if (strlen($_GET['p']) > 0) { echo $content; } } else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) { $content = substr($content, 0, $espacio); $content = $content; echo $content; echo "..."; } else { echo $content; } } ?>
gpl-2.0
victorkagimu/khl-care2x
modules/cafeteria/cafenews-edit-save.php
684
<?php error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR); require_once('./roots.php'); require_once($root_path.'include/inc_environment_global.php'); /** * CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02 * GNU General Public License * Copyright 2002,2003,2004,2005 Elpidio Latorilla * elpidio@care2x.org, * * See the file "copy_notice.txt" for the licence notice */ define('LANG_FILE','editor.php'); $local_user='ck_cafenews_user'; require_once($root_path.'include/inc_front_chain_lang.php'); $fileforward='cafenews-read.php'; $dept_nr=2; /* 2 = cafeteria */ if(($artnum)&&($mode=='save')) { include($root_path.'include/inc_news_save.php'); } ?>
gpl-2.0
lytranuit/wordpress
wp-content/plugins/categories-metabox-enhanced/includes/class-category-metabox-enhanced.php
6204
<?php /** * The file that defines the core plugin class * * A class definition that includes attributes and functions used across both the * public-facing side of the site and the dashboard. * * @link http://1fix.io * @since 0.1.0 * * @package Category_Metabox_Enhanced * @subpackage Category_Metabox_Enhanced/includes */ /** * The core plugin class. * * This is used to define internationalization, dashboard-specific hooks, and * public-facing site hooks. * * Also maintains the unique identifier of this plugin as well as the current * version of the plugin. * * @since 0.1.0 * @package Category_Metabox_Enhanced * @subpackage Category_Metabox_Enhanced/includes * @author 1Fix.io <1fixdotio@gmail.com> */ class Category_Metabox_Enhanced { /** * The loader that's responsible for maintaining and registering all hooks that power * the plugin. * * @since 0.1.0 * @access protected * @var Category_Metabox_Enhanced_Loader $loader Maintains and registers all hooks for the plugin. */ protected $loader; /** * The unique identifier of this plugin. * * @since 0.1.0 * @access protected * @var string $plugin_name The string used to uniquely identify this plugin. */ protected $plugin_name; /** * The current version of the plugin. * * @since 0.1.0 * @access protected * @var string $version The current version of the plugin. */ protected $version; /** * Define the core functionality of the plugin. * * Set the plugin name and the plugin version that can be used throughout the plugin. * Load the dependencies, define the locale, and set the hooks for the Dashboard and * the public-facing side of the site. * * @since 0.1.0 */ public function __construct() { $this->plugin_name = 'category-metabox-enhanced'; $this->version = '0.6.1'; $this->load_dependencies(); $this->set_locale(); $this->define_admin_hooks(); } /** * Load the required dependencies for this plugin. * * Include the following files that make up the plugin: * * - Category_Metabox_Enhanced_Loader. Orchestrates the hooks of the plugin. * - Category_Metabox_Enhanced_i18n. Defines internationalization functionality. * - Category_Metabox_Enhanced_Admin. Defines all hooks for the dashboard. * - Category_Metabox_Enhanced_Public. Defines all hooks for the public side of the site. * * Create an instance of the loader which will be used to register the hooks * with WordPress. * * @since 0.1.0 * @access private */ private function load_dependencies() { /** * The class responsible for orchestrating the actions and filters of the * core plugin. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-category-metabox-enhanced-loader.php'; /** * The class responsible for defining internationalization functionality * of the plugin. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-category-metabox-enhanced-i18n.php'; /** * The class responsible for defining all actions that occur in the Dashboard. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-category-metabox-enhanced-admin.php'; /** * The Taxonomy_Single_Term library */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/taxonomy-single-term/class.taxonomy-single-term.php'; /** * Helper functions */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/helper-functions.php'; /** * Register settings */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-category-metabox-enhanced-settings.php'; new Category_Metabox_Enhanced_Settings_Settings( 'category-metabox-enhanced' ); $this->loader = new Category_Metabox_Enhanced_Loader(); } /** * Define the locale for this plugin for internationalization. * * Uses the Category_Metabox_Enhanced_i18n class in order to set the domain and to register the hook * with WordPress. * * @since 0.1.0 * @access private */ private function set_locale() { $plugin_i18n = new Category_Metabox_Enhanced_i18n(); $plugin_i18n->set_domain( 'of-cme' ); $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); } /** * Register all of the hooks related to the dashboard functionality * of the plugin. * * @since 0.1.0 * @access private */ private function define_admin_hooks() { $plugin_admin = new Category_Metabox_Enhanced_Admin( $this->get_plugin_name(), $this->get_version() ); // Display the admin notification $this->loader->add_action( 'admin_notices', $plugin_admin, 'admin_notice_activation' ); // Add the options page and menu item. $this->loader->add_action( 'admin_menu', $plugin_admin, 'add_plugin_admin_menu' ); // Add an action link pointing to the options page. $plugin_basename = plugin_basename( plugin_dir_path( dirname( __FILE__ ) ) . 'categories-metabox-enhanced.php' ); $this->loader->add_filter( 'plugin_action_links_' . $plugin_basename, $plugin_admin, 'add_action_links' ); //Update the taxonomy metaboxes $this->loader->add_action( 'admin_init', $plugin_admin, 'customize_taxonomy_metaboxes' ); } /** * Run the loader to execute all of the hooks with WordPress. * * @since 0.1.0 */ public function run() { $this->loader->run(); } /** * The name of the plugin used to uniquely identify it within the context of * WordPress and to define internationalization functionality. * * @since 0.1.0 * @return string The name of the plugin. */ public function get_plugin_name() { return $this->plugin_name; } /** * The reference to the class that orchestrates the hooks with the plugin. * * @since 0.1.0 * @return Category_Metabox_Enhanced_Loader Orchestrates the hooks of the plugin. */ public function get_loader() { return $this->loader; } /** * Retrieve the version number of the plugin. * * @since 0.1.0 * @return string The version number of the plugin. */ public function get_version() { return $this->version; } }
gpl-2.0
ZHAW-INES/rioxo-uClinux-dist
user/python/python-2.4.4/Tools/msi/uisample.py
147975
import msilib,os;dirname=os.path.dirname(__file__) AdminExecuteSequence = [ (u'InstallValidate', None, 1400), (u'InstallInitialize', None, 1500), (u'InstallFinalize', None, 6600), (u'InstallFiles', None, 4000), (u'InstallAdminPackage', None, 3900), (u'FileCost', None, 900), (u'CostInitialize', None, 800), (u'CostFinalize', None, 1000), ] AdminUISequence = [ (u'AdminWelcomeDlg', None, 1230), (u'FileCost', None, 900), (u'CostInitialize', None, 800), (u'CostFinalize', None, 1000), (u'ExecuteAction', None, 1300), (u'ExitDialog', None, -1), (u'FatalError', None, -3), (u'PrepareDlg', None, 140), (u'ProgressDlg', None, 1280), (u'UserExit', None, -2), ] AdvtExecuteSequence = [ (u'InstallValidate', None, 1400), (u'InstallInitialize', None, 1500), (u'InstallFinalize', None, 6600), (u'CostInitialize', None, 800), (u'CostFinalize', None, 1000), (u'CreateShortcuts', None, 4500), (u'PublishComponents', None, 6200), (u'PublishFeatures', None, 6300), (u'PublishProduct', None, 6400), (u'RegisterClassInfo', None, 4600), (u'RegisterExtensionInfo', None, 4700), (u'RegisterMIMEInfo', None, 4900), (u'RegisterProgIdInfo', None, 4800), ] BBControl = [ ] Billboard = [ ] Binary = [ (u'bannrbmp', msilib.Binary(os.path.join(dirname,"bannrbmp.bin"))), (u'completi', msilib.Binary(os.path.join(dirname,"completi.bin"))), (u'custicon', msilib.Binary(os.path.join(dirname,"custicon.bin"))), (u'dlgbmp', msilib.Binary(os.path.join(dirname,"dlgbmp.bin"))), (u'exclamic', msilib.Binary(os.path.join(dirname,"exclamic.bin"))), (u'info', msilib.Binary(os.path.join(dirname,"info.bin"))), (u'insticon', msilib.Binary(os.path.join(dirname,"insticon.bin"))), (u'New', msilib.Binary(os.path.join(dirname,"New.bin"))), (u'removico', msilib.Binary(os.path.join(dirname,"removico.bin"))), (u'repairic', msilib.Binary(os.path.join(dirname,"repairic.bin"))), (u'Up', msilib.Binary(os.path.join(dirname,"Up.bin"))), ] CheckBox = [ ] Property = [ (u'BannerBitmap', u'bannrbmp'), (u'IAgree', u'No'), (u'ProductID', u'none'), (u'ARPHELPLINK', u'http://www.microsoft.com/management'), (u'ButtonText_Back', u'< &Back'), (u'ButtonText_Browse', u'Br&owse'), (u'ButtonText_Cancel', u'Cancel'), (u'ButtonText_Exit', u'&Exit'), (u'ButtonText_Finish', u'&Finish'), (u'ButtonText_Ignore', u'&Ignore'), (u'ButtonText_Install', u'&Install'), (u'ButtonText_Next', u'&Next >'), (u'ButtonText_No', u'&No'), (u'ButtonText_OK', u'OK'), (u'ButtonText_Remove', u'&Remove'), (u'ButtonText_Repair', u'&Repair'), (u'ButtonText_Reset', u'&Reset'), (u'ButtonText_Resume', u'&Resume'), (u'ButtonText_Retry', u'&Retry'), (u'ButtonText_Return', u'&Return'), (u'ButtonText_Yes', u'&Yes'), (u'CompleteSetupIcon', u'completi'), (u'ComponentDownload', u'ftp://anonymous@microsoft.com/components/'), (u'CustomSetupIcon', u'custicon'), (u'DefaultUIFont', u'DlgFont8'), (u'DialogBitmap', u'dlgbmp'), (u'DlgTitleFont', u'{&DlgFontBold8}'), (u'ErrorDialog', u'ErrorDlg'), (u'ExclamationIcon', u'exclamic'), (u'InfoIcon', u'info'), (u'InstallerIcon', u'insticon'), (u'INSTALLLEVEL', u'3'), (u'InstallMode', u'Typical'), (u'PIDTemplate', u'12345<###-%%%%%%%>@@@@@'), #(u'ProductLanguage', u'1033'), (u'Progress1', u'Installing'), (u'Progress2', u'installs'), (u'PROMPTROLLBACKCOST', u'P'), (u'RemoveIcon', u'removico'), (u'RepairIcon', u'repairic'), (u'Setup', u'Setup'), (u'ShowUserRegistrationDlg', u'1'), (u'Wizard', u'Setup Wizard'), ] ComboBox = [ ] Control = [ (u'AdminWelcomeDlg', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Back', None), (u'AdminWelcomeDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'AdminWelcomeDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'AdminWelcomeDlg', u'Description', u'Text', 135, 70, 220, 30, 196611, None, u'The [Wizard] will create a server image of [ProductName], at a specified network location. Click Next to continue or Cancel to exit the [Wizard].', None, None), (u'AdminWelcomeDlg', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}Welcome to the [ProductName] [Wizard]', None, None), (u'AdminWelcomeDlg', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Next', None), (u'AdminWelcomeDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), (u'ExitDialog', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Back', None), (u'ExitDialog', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'ExitDialog', u'Cancel', u'PushButton', 304, 243, 56, 17, 1, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'ExitDialog', u'Description', u'Text', 135, 70, 220, 20, 196611, None, u'Click the Finish button to exit the [Wizard].', None, None), (u'ExitDialog', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}Completing the [ProductName] [Wizard]', None, None), (u'ExitDialog', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Finish', None), (u'ExitDialog', u'Finish', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Finish]', u'Cancel', None), (u'FatalError', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Back', None), (u'FatalError', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'FatalError', u'Cancel', u'PushButton', 304, 243, 56, 17, 1, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'FatalError', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}[ProductName] [Wizard] ended prematurely', None, None), (u'FatalError', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Finish', None), (u'FatalError', u'Finish', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Finish]', u'Cancel', None), (u'FatalError', u'Description1', u'Text', 135, 70, 220, 40, 196611, None, u'[ProductName] setup ended prematurely because of an error. Your system has not been modified. To install this program at a later time, please run the installation again.', None, None), (u'FatalError', u'Description2', u'Text', 135, 115, 220, 20, 196611, None, u'Click the Finish button to exit the [Wizard].', None, None), (u'PrepareDlg', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Cancel', None), (u'PrepareDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'PrepareDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'PrepareDlg', u'Description', u'Text', 135, 70, 220, 20, 196611, None, u'Please wait while the [Wizard] prepares to guide you through the installation.', None, None), (u'PrepareDlg', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}Welcome to the [ProductName] [Wizard]', None, None), (u'PrepareDlg', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', None, None), (u'PrepareDlg', u'Next', u'PushButton', 236, 243, 56, 17, 1, None, u'[ButtonText_Next]', None, None), (u'PrepareDlg', u'ActionData', u'Text', 135, 125, 220, 30, 196611, None, None, None, None), (u'PrepareDlg', u'ActionText', u'Text', 135, 100, 220, 20, 196611, None, None, None, None), (u'ProgressDlg', u'Text', u'Text', 35, 65, 300, 20, 3, None, u'Please wait while the [Wizard] [Progress2] [ProductName]. This may take several minutes.', None, None), (u'ProgressDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'Back', None), (u'ProgressDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'ProgressDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'ProgressDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'ProgressDlg', u'Title', u'Text', 20, 15, 200, 15, 196611, None, u'[DlgTitleFont][Progress1] [ProductName]', None, None), (u'ProgressDlg', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Next', None), (u'ProgressDlg', u'Next', u'PushButton', 236, 243, 56, 17, 1, None, u'[ButtonText_Next]', u'Cancel', None), (u'ProgressDlg', u'ActionText', u'Text', 70, 100, 265, 10, 3, None, None, None, None), (u'ProgressDlg', u'ProgressBar', u'ProgressBar', 35, 115, 300, 10, 65537, None, u'Progress done', None, None), (u'ProgressDlg', u'StatusLabel', u'Text', 35, 100, 35, 10, 3, None, u'Status:', None, None), (u'UserExit', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Back', None), (u'UserExit', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'UserExit', u'Cancel', u'PushButton', 304, 243, 56, 17, 1, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'UserExit', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}[ProductName] [Wizard] was interrupted', None, None), (u'UserExit', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Finish', None), (u'UserExit', u'Finish', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Finish]', u'Cancel', None), (u'UserExit', u'Description1', u'Text', 135, 70, 220, 40, 196611, None, u'[ProductName] setup was interrupted. Your system has not been modified. To install this program at a later time, please run the installation again.', None, None), (u'UserExit', u'Description2', u'Text', 135, 115, 220, 20, 196611, None, u'Click the Finish button to exit the [Wizard].', None, None), (u'AdminBrowseDlg', u'Up', u'PushButton', 298, 55, 19, 19, 3670019, None, u'Up', u'NewFolder', u'Up One Level|'), (u'AdminBrowseDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'PathEdit', None), (u'AdminBrowseDlg', u'PathEdit', u'PathEdit', 84, 202, 261, 17, 3, u'TARGETDIR', None, u'OK', None), (u'AdminBrowseDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'AdminBrowseDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'AdminBrowseDlg', u'Cancel', u'PushButton', 240, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'ComboLabel', None), (u'AdminBrowseDlg', u'ComboLabel', u'Text', 25, 58, 44, 10, 3, None, u'&Look in:', u'DirectoryCombo', None), (u'AdminBrowseDlg', u'DirectoryCombo', u'DirectoryCombo', 70, 55, 220, 80, 458755, u'TARGETDIR', None, u'Up', None), (u'AdminBrowseDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'Browse to the destination folder', None, None), (u'AdminBrowseDlg', u'DirectoryList', u'DirectoryList', 25, 83, 320, 110, 7, u'TARGETDIR', None, u'PathLabel', None), (u'AdminBrowseDlg', u'PathLabel', u'Text', 25, 205, 59, 10, 3, None, u'&Folder name:', u'BannerBitmap', None), (u'AdminBrowseDlg', u'NewFolder', u'PushButton', 325, 55, 19, 19, 3670019, None, u'New', u'DirectoryList', u'Create A New Folder|'), (u'AdminBrowseDlg', u'OK', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_OK]', u'Cancel', None), (u'AdminBrowseDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Change current destination folder', None, None), (u'AdminInstallPointDlg', u'Text', u'Text', 25, 80, 320, 10, 3, None, u'&Enter a new network location or click Browse to browse to one.', u'PathEdit', None), (u'AdminInstallPointDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'Text', None), (u'AdminInstallPointDlg', u'PathEdit', u'PathEdit', 25, 93, 320, 18, 3, u'TARGETDIR', None, u'Browse', None), (u'AdminInstallPointDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'AdminInstallPointDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'AdminInstallPointDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'AdminInstallPointDlg', u'Description', u'Text', 25, 20, 280, 20, 196611, None, u'Please specify a network location for the server image of [ProductName] product', None, None), (u'AdminInstallPointDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Network Location', None, None), (u'AdminInstallPointDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Next', None), (u'AdminInstallPointDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), (u'AdminInstallPointDlg', u'Browse', u'PushButton', 289, 119, 56, 17, 3, None, u'[ButtonText_Browse]', u'Back', None), (u'AdminRegistrationDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'OrganizationLabel', None), (u'AdminRegistrationDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'AdminRegistrationDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'AdminRegistrationDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'AdminRegistrationDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'Please enter your company information', None, None), (u'AdminRegistrationDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Company Information', None, None), (u'AdminRegistrationDlg', u'Back', u'PushButton', 180, 243, 56, 17, 65539, None, u'[ButtonText_Back]', u'Next', None), (u'AdminRegistrationDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), (u'AdminRegistrationDlg', u'OrganizationLabel', u'Text', 45, 71, 285, 30, 3, None, u'&Please enter the name of your organization in the box below. This will be used as default company name for subsequent installations of [ProductName]:', u'OrganizationEdit', None), (u'AdminRegistrationDlg', u'CDKeyEdit', u'MaskedEdit', 45, 143, 250, 16, 3, u'PIDKEY', u'[PIDTemplate]', u'Back', None), (u'AdminRegistrationDlg', u'CDKeyLabel', u'Text', 45, 130, 50, 10, 3, None, u'CD &Key:', u'CDKeyEdit', None), (u'AdminRegistrationDlg', u'OrganizationEdit', u'Edit', 45, 105, 220, 18, 3, u'COMPANYNAME', u'{80}', u'CDKeyLabel', None), (u'BrowseDlg', u'Up', u'PushButton', 298, 55, 19, 19, 3670019, None, u'Up', u'NewFolder', u'Up One Level|'), (u'BrowseDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'PathEdit', None), (u'BrowseDlg', u'PathEdit', u'PathEdit', 84, 202, 261, 18, 11, u'_BrowseProperty', None, u'OK', None), (u'BrowseDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'BrowseDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'BrowseDlg', u'Cancel', u'PushButton', 240, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'ComboLabel', None), (u'BrowseDlg', u'ComboLabel', u'Text', 25, 58, 44, 10, 3, None, u'&Look in:', u'DirectoryCombo', None), (u'BrowseDlg', u'DirectoryCombo', u'DirectoryCombo', 70, 55, 220, 80, 393227, u'_BrowseProperty', None, u'Up', None), (u'BrowseDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'Browse to the destination folder', None, None), (u'BrowseDlg', u'DirectoryList', u'DirectoryList', 25, 83, 320, 110, 15, u'_BrowseProperty', None, u'PathLabel', None), (u'BrowseDlg', u'PathLabel', u'Text', 25, 205, 59, 10, 3, None, u'&Folder name:', u'BannerBitmap', None), (u'BrowseDlg', u'NewFolder', u'PushButton', 325, 55, 19, 19, 3670019, None, u'New', u'DirectoryList', u'Create A New Folder|'), (u'BrowseDlg', u'OK', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_OK]', u'Cancel', None), (u'BrowseDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Change current destination folder', None, None), (u'CancelDlg', u'Text', u'Text', 48, 15, 194, 30, 3, None, u'Are you sure you want to cancel [ProductName] installation?', None, None), (u'CancelDlg', u'Icon', u'Icon', 15, 15, 24, 24, 5242881, None, u'[InfoIcon]', None, u'Information icon|'), (u'CancelDlg', u'No', u'PushButton', 132, 57, 56, 17, 3, None, u'[ButtonText_No]', u'Yes', None), (u'CancelDlg', u'Yes', u'PushButton', 72, 57, 56, 17, 3, None, u'[ButtonText_Yes]', u'No', None), (u'CustomizeDlg', u'Text', u'Text', 25, 55, 320, 20, 3, None, u'Click on the icons in the tree below to change the way features will be installed.', None, None), (u'CustomizeDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'Tree', None), (u'CustomizeDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'CustomizeDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'CustomizeDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'CustomizeDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'Select the way you want features to be installed.', None, None), (u'CustomizeDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Custom Setup', None, None), (u'CustomizeDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Next', None), (u'CustomizeDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), (u'CustomizeDlg', u'Browse', u'PushButton', 304, 200, 56, 17, 3, None, u'[ButtonText_Browse]', u'Reset', None), (u'CustomizeDlg', u'Tree', u'SelectionTree', 25, 85, 175, 95, 7, u'_BrowseProperty', u'Tree of selections', u'Browse', None), (u'CustomizeDlg', u'Box', u'GroupBox', 210, 81, 140, 98, 1, None, None, None, None), (u'CustomizeDlg', u'Reset', u'PushButton', 42, 243, 56, 17, 3, None, u'[ButtonText_Reset]', u'DiskCost', None), (u'CustomizeDlg', u'DiskCost', u'PushButton', 111, 243, 56, 17, 3, None, u'Disk &Usage', u'Back', None), (u'CustomizeDlg', u'ItemDescription', u'Text', 215, 90, 131, 30, 3, None, u'Multiline description of the currently selected item.', None, None), (u'CustomizeDlg', u'ItemSize', u'Text', 215, 130, 131, 45, 3, None, u'The size of the currently selected item.', None, None), (u'CustomizeDlg', u'Location', u'Text', 75, 200, 215, 20, 3, None, u"<The selection's path>", None, None), (u'CustomizeDlg', u'LocationLabel', u'Text', 25, 200, 50, 10, 3, None, u'Location:', None, None), (u'DiskCostDlg', u'Text', u'Text', 20, 53, 330, 40, 3, None, u'The highlighted volumes (if any) do not have enough disk space available for the currently selected features. You can either remove some files from the highlighted volumes, or choose to install less features onto local drive(s), or select different destination drive(s).', None, None), (u'DiskCostDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'OK', None), (u'DiskCostDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'DiskCostDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'DiskCostDlg', u'Description', u'Text', 20, 20, 280, 20, 196611, None, u'The disk space required for the installation of the selected features.', None, None), (u'DiskCostDlg', u'OK', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_OK]', u'BannerBitmap', None), (u'DiskCostDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Disk Space Requirements', None, None), (u'DiskCostDlg', u'VolumeList', u'VolumeCostList', 20, 100, 330, 120, 393223, None, u'{120}{70}{70}{70}{70}', None, None), (u'ErrorDlg', u'Y', u'PushButton', 100, 80, 56, 17, 3, None, u'[ButtonText_Yes]', None, None), (u'ErrorDlg', u'A', u'PushButton', 100, 80, 56, 17, 3, None, u'[ButtonText_Cancel]', None, None), (u'ErrorDlg', u'C', u'PushButton', 100, 80, 56, 17, 3, None, u'[ButtonText_Cancel]', None, None), (u'ErrorDlg', u'ErrorIcon', u'Icon', 15, 15, 24, 24, 5242881, None, u'[InfoIcon]', None, u'Information icon|'), (u'ErrorDlg', u'ErrorText', u'Text', 48, 15, 205, 60, 3, None, u'Information text', None, None), (u'ErrorDlg', u'I', u'PushButton', 100, 80, 56, 17, 3, None, u'[ButtonText_Ignore]', None, None), (u'ErrorDlg', u'N', u'PushButton', 100, 80, 56, 17, 3, None, u'[ButtonText_No]', None, None), (u'ErrorDlg', u'O', u'PushButton', 100, 80, 56, 17, 3, None, u'[ButtonText_OK]', None, None), (u'ErrorDlg', u'R', u'PushButton', 100, 80, 56, 17, 3, None, u'[ButtonText_Retry]', None, None), (u'FilesInUse', u'Text', u'Text', 20, 55, 330, 30, 3, None, u'The following applications are using files that need to be updated by this setup. Close these applications and then click Retry to continue the installation or Cancel to exit it.', None, None), (u'FilesInUse', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'Retry', None), (u'FilesInUse', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'FilesInUse', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'FilesInUse', u'Description', u'Text', 20, 23, 280, 20, 196611, None, u'Some files that need to be updated are currently in use.', None, None), (u'FilesInUse', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Files in Use', None, None), (u'FilesInUse', u'Retry', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Retry]', u'Ignore', None), (u'FilesInUse', u'Exit', u'PushButton', 166, 243, 56, 17, 3, None, u'[ButtonText_Exit]', u'BannerBitmap', None), (u'FilesInUse', u'Ignore', u'PushButton', 235, 243, 56, 17, 3, None, u'[ButtonText_Ignore]', u'Exit', None), (u'FilesInUse', u'List', u'ListBox', 20, 87, 330, 130, 7, u'FileInUseProcess', None, None, None), (u'LicenseAgreementDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'AgreementText', None), (u'LicenseAgreementDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'LicenseAgreementDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'LicenseAgreementDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'LicenseAgreementDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'Please read the following license agreement carefully', None, None), (u'LicenseAgreementDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]End-User License Agreement', None, None), (u'LicenseAgreementDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Next', None), (u'LicenseAgreementDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), (u'LicenseAgreementDlg', u'AgreementText', u'ScrollableText', 20, 60, 330, 120, 7, None, u'{\\rtf1\\ansi\\ansicpg1252\\deff0\\deftab720{\\fonttbl{\\f0\\froman\\fprq2 Times New Roman;}}{\\colortbl\\red0\\green0\\blue0;} \\deflang1033\\horzdoc{\\*\\fchars }{\\*\\lchars }\\pard\\plain\\f0\\fs20 <Your license agreement should go here.>\\par }', u'Buttons', None), (u'LicenseAgreementDlg', u'Buttons', u'RadioButtonGroup', 20, 187, 330, 40, 3, u'IAgree', None, u'Back', None), (u'MaintenanceTypeDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'ChangeLabel', None), (u'MaintenanceTypeDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'MaintenanceTypeDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'MaintenanceTypeDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'MaintenanceTypeDlg', u'Description', u'Text', 25, 23, 280, 20, 196611, None, u'Select the operation you wish to perform.', None, None), (u'MaintenanceTypeDlg', u'Title', u'Text', 15, 6, 240, 15, 196611, None, u'[DlgTitleFont]Modify, Repair or Remove installation', None, None), (u'MaintenanceTypeDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Next', None), (u'MaintenanceTypeDlg', u'Next', u'PushButton', 236, 243, 56, 17, 1, None, u'[ButtonText_Next]', u'Cancel', None), (u'MaintenanceTypeDlg', u'ChangeLabel', u'Text', 105, 65, 100, 10, 3, None, u'[DlgTitleFont]&Modify', u'ChangeButton', None), (u'MaintenanceTypeDlg', u'ChangeButton', u'PushButton', 50, 65, 38, 38, 5767171, None, u'[CustomSetupIcon]', u'RepairLabel', u'Modify Installation|'), (u'MaintenanceTypeDlg', u'RepairLabel', u'Text', 105, 114, 100, 10, 3, None, u'[DlgTitleFont]Re&pair', u'RepairButton', None), (u'MaintenanceTypeDlg', u'ChangeText', u'Text', 105, 78, 230, 20, 3, None, u'Allows users to change the way features are installed.', None, None), (u'MaintenanceTypeDlg', u'RemoveButton', u'PushButton', 50, 163, 38, 38, 5767171, None, u'[RemoveIcon]', u'Back', u'Remove Installation|'), (u'MaintenanceTypeDlg', u'RemoveLabel', u'Text', 105, 163, 100, 10, 3, None, u'[DlgTitleFont]&Remove', u'RemoveButton', None), (u'MaintenanceTypeDlg', u'RemoveText', u'Text', 105, 176, 230, 20, 3, None, u'Removes [ProductName] from your computer.', None, None), (u'MaintenanceTypeDlg', u'RepairButton', u'PushButton', 50, 114, 38, 38, 5767171, None, u'[RepairIcon]', u'RemoveLabel', u'Repair Installation|'), (u'MaintenanceTypeDlg', u'RepairText', u'Text', 105, 127, 230, 30, 3, None, u'Repairs errors in the most recent installation state - fixes missing or corrupt files, shortcuts and registry entries.', None, None), (u'MaintenanceWelcomeDlg', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Back', None), (u'MaintenanceWelcomeDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'MaintenanceWelcomeDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'MaintenanceWelcomeDlg', u'Description', u'Text', 135, 70, 220, 60, 196611, None, u'The [Wizard] will allow you to change the way [ProductName] features are installed on your computer or even to remove [ProductName] from your computer. Click Next to continue or Cancel to exit the [Wizard].', None, None), (u'MaintenanceWelcomeDlg', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}Welcome to the [ProductName] [Wizard]', None, None), (u'MaintenanceWelcomeDlg', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Next', None), (u'MaintenanceWelcomeDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), (u'OutOfDiskDlg', u'Text', u'Text', 20, 53, 330, 40, 3, None, u'The highlighted volumes do not have enough disk space available for the currently selected features. You can either remove some files from the highlighted volumes, or choose to install less features onto local drive(s), or select different destination drive(s).', None, None), (u'OutOfDiskDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'OK', None), (u'OutOfDiskDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'OutOfDiskDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'OutOfDiskDlg', u'Description', u'Text', 20, 20, 280, 20, 196611, None, u'Disk space required for the installation exceeds available disk space.', None, None), (u'OutOfDiskDlg', u'OK', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_OK]', u'BannerBitmap', None), (u'OutOfDiskDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Out of Disk Space', None, None), (u'OutOfDiskDlg', u'VolumeList', u'VolumeCostList', 20, 100, 330, 120, 393223, None, u'{120}{70}{70}{70}{70}', None, None), (u'OutOfRbDiskDlg', u'Text', u'Text', 20, 53, 330, 40, 3, None, u'The highlighted volumes do not have enough disk space available for the currently selected features. You can either remove some files from the highlighted volumes, or choose to install less features onto local drive(s), or select different destination drive(s).', None, None), (u'OutOfRbDiskDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'No', None), (u'OutOfRbDiskDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'OutOfRbDiskDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'OutOfRbDiskDlg', u'Description', u'Text', 20, 20, 280, 20, 196611, None, u'Disk space required for the installation exceeds available disk space.', None, None), (u'OutOfRbDiskDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Out of Disk Space', None, None), (u'OutOfRbDiskDlg', u'No', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_No]', u'Yes', None), (u'OutOfRbDiskDlg', u'Yes', u'PushButton', 240, 243, 56, 17, 3, None, u'[ButtonText_Yes]', u'BannerBitmap', None), (u'OutOfRbDiskDlg', u'VolumeList', u'VolumeCostList', 20, 140, 330, 80, 4587527, None, u'{120}{70}{70}{70}{70}', None, None), (u'OutOfRbDiskDlg', u'Text2', u'Text', 20, 94, 330, 40, 3, None, u"Alternatively, you may choose to disable the installer's rollback functionality. This allows the installer to restore your computer's original state should the installation be interrupted in any way. Click Yes if you wish to take the risk to disable rollback.", None, None), (u'ResumeDlg', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Back', None), (u'ResumeDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'ResumeDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'ResumeDlg', u'Description', u'Text', 135, 70, 220, 30, 196611, None, u'The [Wizard] will complete the installation of [ProductName] on your computer. Click Install to continue or Cancel to exit the [Wizard].', None, None), (u'ResumeDlg', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}Resuming the [ProductName] [Wizard]', None, None), (u'ResumeDlg', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Install', None), (u'ResumeDlg', u'Install', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Install]', u'Cancel', None), (u'SetupTypeDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'TypicalLabel', None), (u'SetupTypeDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'SetupTypeDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'SetupTypeDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'SetupTypeDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'Choose the setup type that best suits your needs', None, None), (u'SetupTypeDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Choose Setup Type', None, None), (u'SetupTypeDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Next', None), (u'SetupTypeDlg', u'Next', u'PushButton', 236, 243, 56, 17, 1, None, u'[ButtonText_Next]', u'Cancel', None), (u'SetupTypeDlg', u'TypicalLabel', u'Text', 105, 65, 100, 10, 3, None, u'[DlgTitleFont]&Typical', u'TypicalButton', None), (u'SetupTypeDlg', u'CompleteButton', u'PushButton', 50, 171, 38, 38, 5767171, None, u'[CompleteSetupIcon]', u'Back', u'Complete Installation|'), (u'SetupTypeDlg', u'CompleteLabel', u'Text', 105, 171, 100, 10, 3, None, u'[DlgTitleFont]C&omplete', u'CompleteButton', None), (u'SetupTypeDlg', u'CompleteText', u'Text', 105, 184, 230, 20, 3, None, u'All program features will be installed. (Requires most disk space)', None, None), (u'SetupTypeDlg', u'CustomButton', u'PushButton', 50, 118, 38, 38, 5767171, None, u'[CustomSetupIcon]', u'CompleteLabel', u'Custom Installation|'), (u'SetupTypeDlg', u'CustomLabel', u'Text', 105, 118, 100, 10, 3, None, u'[DlgTitleFont]C&ustom', u'CustomButton', None), (u'SetupTypeDlg', u'CustomText', u'Text', 105, 131, 230, 30, 3, None, u'Allows users to choose which program features will be installed and where they will be installed. Recommended for advanced users.', None, None), (u'SetupTypeDlg', u'TypicalButton', u'PushButton', 50, 65, 38, 38, 5767171, None, u'[InstallerIcon]', u'CustomLabel', u'Typical Installation|'), (u'SetupTypeDlg', u'TypicalText', u'Text', 105, 78, 230, 20, 3, None, u'Installs the most common program features. Recommended for most users.', None, None), (u'UserRegistrationDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'NameLabel', None), (u'UserRegistrationDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'UserRegistrationDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'UserRegistrationDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'UserRegistrationDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'Please enter your customer information', None, None), (u'UserRegistrationDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Customer Information', None, None), (u'UserRegistrationDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Next', None), (u'UserRegistrationDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), (u'UserRegistrationDlg', u'OrganizationLabel', u'Text', 45, 110, 100, 15, 3, None, u'&Organization:', u'OrganizationEdit', None), (u'UserRegistrationDlg', u'CDKeyEdit', u'MaskedEdit', 45, 159, 250, 16, 3, u'PIDKEY', u'[PIDTemplate]', u'Back', None), (u'UserRegistrationDlg', u'CDKeyLabel', u'Text', 45, 147, 50, 10, 3, None, u'CD &Key:', u'CDKeyEdit', None), (u'UserRegistrationDlg', u'OrganizationEdit', u'Edit', 45, 122, 220, 18, 3, u'COMPANYNAME', u'{80}', u'CDKeyLabel', None), (u'UserRegistrationDlg', u'NameLabel', u'Text', 45, 73, 100, 15, 3, None, u'&User Name:', u'NameEdit', None), (u'UserRegistrationDlg', u'NameEdit', u'Edit', 45, 85, 220, 18, 3, u'USERNAME', u'{80}', u'OrganizationLabel', None), (u'VerifyReadyDlg', u'Text', u'Text', 25, 70, 320, 20, 3, None, u'Click Install to begin the installation. If you want to review or change any of your installation settings, click Back. Click Cancel to exit the wizard.', None, None), (u'VerifyReadyDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'Back', None), (u'VerifyReadyDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'VerifyReadyDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'VerifyReadyDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'VerifyReadyDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'The [Wizard] is ready to begin the [InstallMode] installation', None, None), (u'VerifyReadyDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Ready to Install', None, None), (u'VerifyReadyDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Install', None), (u'VerifyReadyDlg', u'Install', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Install]', u'Cancel', None), (u'VerifyRemoveDlg', u'Text', u'Text', 25, 70, 320, 30, 3, None, u'Click Remove to remove [ProductName] from your computer. If you want to review or change any of your installation settings, click Back. Click Cancel to exit the wizard.', None, None), (u'VerifyRemoveDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'Back', None), (u'VerifyRemoveDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'VerifyRemoveDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'VerifyRemoveDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'VerifyRemoveDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'You have chosen to remove the program from your computer.', None, None), (u'VerifyRemoveDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Remove [ProductName]', None, None), (u'VerifyRemoveDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Remove', None), (u'VerifyRemoveDlg', u'Remove', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Remove]', u'Cancel', None), (u'VerifyRepairDlg', u'Text', u'Text', 25, 70, 320, 30, 3, None, u'Click Repair to repair the installation of [ProductName]. If you want to review or change any of your installation settings, click Back. Click Cancel to exit the wizard.', None, None), (u'VerifyRepairDlg', u'BannerBitmap', u'Bitmap', 0, 0, 374, 44, 1, None, u'[BannerBitmap]', u'Back', None), (u'VerifyRepairDlg', u'BannerLine', u'Line', 0, 44, 374, 0, 1, None, None, None, None), (u'VerifyRepairDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'VerifyRepairDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'BannerBitmap', None), (u'VerifyRepairDlg', u'Description', u'Text', 25, 23, 280, 15, 196611, None, u'The [Wizard] is ready to begin the repair of [ProductName].', None, None), (u'VerifyRepairDlg', u'Title', u'Text', 15, 6, 200, 15, 196611, None, u'[DlgTitleFont]Repair [ProductName]', None, None), (u'VerifyRepairDlg', u'Back', u'PushButton', 180, 243, 56, 17, 3, None, u'[ButtonText_Back]', u'Repair', None), (u'VerifyRepairDlg', u'Repair', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Repair]', u'Cancel', None), (u'WaitForCostingDlg', u'Text', u'Text', 48, 15, 194, 30, 3, None, u'Please wait while the installer finishes determining your disk space requirements.', None, None), (u'WaitForCostingDlg', u'Icon', u'Icon', 15, 15, 24, 24, 5242881, None, u'[ExclamationIcon]', None, u'Exclamation icon|'), (u'WaitForCostingDlg', u'Return', u'PushButton', 102, 57, 56, 17, 3, None, u'[ButtonText_Return]', None, None), (u'WelcomeDlg', u'Bitmap', u'Bitmap', 0, 0, 370, 234, 1, None, u'[DialogBitmap]', u'Back', None), (u'WelcomeDlg', u'BottomLine', u'Line', 0, 234, 374, 0, 1, None, None, None, None), (u'WelcomeDlg', u'Cancel', u'PushButton', 304, 243, 56, 17, 3, None, u'[ButtonText_Cancel]', u'Bitmap', None), (u'WelcomeDlg', u'Description', u'Text', 135, 70, 220, 30, 196611, None, u'The [Wizard] will install [ProductName] on your computer. Click Next to continue or Cancel to exit the [Wizard].', None, None), (u'WelcomeDlg', u'Title', u'Text', 135, 20, 220, 60, 196611, None, u'{\\VerdanaBold13}Welcome to the [ProductName] [Wizard]', None, None), (u'WelcomeDlg', u'Back', u'PushButton', 180, 243, 56, 17, 1, None, u'[ButtonText_Back]', u'Next', None), (u'WelcomeDlg', u'Next', u'PushButton', 236, 243, 56, 17, 3, None, u'[ButtonText_Next]', u'Cancel', None), ] ListBox = [ ] ActionText = [ (u'InstallValidate', u'Validating install', None), (u'InstallFiles', u'Copying new files', u'File: [1], Directory: [9], Size: [6]'), (u'InstallAdminPackage', u'Copying network install files', u'File: [1], Directory: [9], Size: [6]'), (u'FileCost', u'Computing space requirements', None), (u'CostInitialize', u'Computing space requirements', None), (u'CostFinalize', u'Computing space requirements', None), (u'CreateShortcuts', u'Creating shortcuts', u'Shortcut: [1]'), (u'PublishComponents', u'Publishing Qualified Components', u'Component ID: [1], Qualifier: [2]'), (u'PublishFeatures', u'Publishing Product Features', u'Feature: [1]'), (u'PublishProduct', u'Publishing product information', None), (u'RegisterClassInfo', u'Registering Class servers', u'Class Id: [1]'), (u'RegisterExtensionInfo', u'Registering extension servers', u'Extension: [1]'), (u'RegisterMIMEInfo', u'Registering MIME info', u'MIME Content Type: [1], Extension: [2]'), (u'RegisterProgIdInfo', u'Registering program identifiers', u'ProgId: [1]'), (u'AllocateRegistrySpace', u'Allocating registry space', u'Free space: [1]'), (u'AppSearch', u'Searching for installed applications', u'Property: [1], Signature: [2]'), (u'BindImage', u'Binding executables', u'File: [1]'), (u'CCPSearch', u'Searching for qualifying products', None), (u'CreateFolders', u'Creating folders', u'Folder: [1]'), (u'DeleteServices', u'Deleting services', u'Service: [1]'), (u'DuplicateFiles', u'Creating duplicate files', u'File: [1], Directory: [9], Size: [6]'), (u'FindRelatedProducts', u'Searching for related applications', u'Found application: [1]'), (u'InstallODBC', u'Installing ODBC components', None), (u'InstallServices', u'Installing new services', u'Service: [2]'), (u'LaunchConditions', u'Evaluating launch conditions', None), (u'MigrateFeatureStates', u'Migrating feature states from related applications', u'Application: [1]'), (u'MoveFiles', u'Moving files', u'File: [1], Directory: [9], Size: [6]'), (u'PatchFiles', u'Patching files', u'File: [1], Directory: [2], Size: [3]'), (u'ProcessComponents', u'Updating component registration', None), (u'RegisterComPlus', u'Registering COM+ Applications and Components', u'AppId: [1]{{, AppType: [2], Users: [3], RSN: [4]}}'), (u'RegisterFonts', u'Registering fonts', u'Font: [1]'), (u'RegisterProduct', u'Registering product', u'[1]'), (u'RegisterTypeLibraries', u'Registering type libraries', u'LibID: [1]'), (u'RegisterUser', u'Registering user', u'[1]'), (u'RemoveDuplicateFiles', u'Removing duplicated files', u'File: [1], Directory: [9]'), (u'RemoveEnvironmentStrings', u'Updating environment strings', u'Name: [1], Value: [2], Action [3]'), (u'RemoveExistingProducts', u'Removing applications', u'Application: [1], Command line: [2]'), (u'RemoveFiles', u'Removing files', u'File: [1], Directory: [9]'), (u'RemoveFolders', u'Removing folders', u'Folder: [1]'), (u'RemoveIniValues', u'Removing INI files entries', u'File: [1], Section: [2], Key: [3], Value: [4]'), (u'RemoveODBC', u'Removing ODBC components', None), (u'RemoveRegistryValues', u'Removing system registry values', u'Key: [1], Name: [2]'), (u'RemoveShortcuts', u'Removing shortcuts', u'Shortcut: [1]'), (u'RMCCPSearch', u'Searching for qualifying products', None), (u'SelfRegModules', u'Registering modules', u'File: [1], Folder: [2]'), (u'SelfUnregModules', u'Unregistering modules', u'File: [1], Folder: [2]'), (u'SetODBCFolders', u'Initializing ODBC directories', None), (u'StartServices', u'Starting services', u'Service: [1]'), (u'StopServices', u'Stopping services', u'Service: [1]'), (u'UnpublishComponents', u'Unpublishing Qualified Components', u'Component ID: [1], Qualifier: [2]'), (u'UnpublishFeatures', u'Unpublishing Product Features', u'Feature: [1]'), (u'UnregisterClassInfo', u'Unregister Class servers', u'Class Id: [1]'), (u'UnregisterComPlus', u'Unregistering COM+ Applications and Components', u'AppId: [1]{{, AppType: [2]}}'), (u'UnregisterExtensionInfo', u'Unregistering extension servers', u'Extension: [1]'), (u'UnregisterFonts', u'Unregistering fonts', u'Font: [1]'), (u'UnregisterMIMEInfo', u'Unregistering MIME info', u'MIME Content Type: [1], Extension: [2]'), (u'UnregisterProgIdInfo', u'Unregistering program identifiers', u'ProgId: [1]'), (u'UnregisterTypeLibraries', u'Unregistering type libraries', u'LibID: [1]'), (u'WriteEnvironmentStrings', u'Updating environment strings', u'Name: [1], Value: [2], Action [3]'), (u'WriteIniValues', u'Writing INI files values', u'File: [1], Section: [2], Key: [3], Value: [4]'), (u'WriteRegistryValues', u'Writing system registry values', u'Key: [1], Name: [2], Value: [3]'), (u'Advertise', u'Advertising application', None), (u'GenerateScript', u'Generating script operations for action:', u'[1]'), (u'InstallSFPCatalogFile', u'Installing system catalog', u'File: [1], Dependencies: [2]'), (u'MsiPublishAssemblies', u'Publishing assembly information', u'Application Context:[1], Assembly Name:[2]'), (u'MsiUnpublishAssemblies', u'Unpublishing assembly information', u'Application Context:[1], Assembly Name:[2]'), (u'Rollback', u'Rolling back action:', u'[1]'), (u'RollbackCleanup', u'Removing backup files', u'File: [1]'), (u'UnmoveFiles', u'Removing moved files', u'File: [1], Directory: [9]'), (u'UnpublishProduct', u'Unpublishing product information', None), ] ControlCondition = [ (u'CustomizeDlg', u'Browse', u'Hide', u'Installed'), (u'CustomizeDlg', u'Location', u'Hide', u'Installed'), (u'CustomizeDlg', u'LocationLabel', u'Hide', u'Installed'), (u'LicenseAgreementDlg', u'Next', u'Disable', u'IAgree <> "Yes"'), (u'LicenseAgreementDlg', u'Next', u'Enable', u'IAgree = "Yes"'), ] ControlEvent = [ (u'AdminWelcomeDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'AdminWelcomeDlg', u'Next', u'NewDialog', u'AdminRegistrationDlg', u'1', 2), (u'AdminWelcomeDlg', u'Next', u'[InstallMode]', u'Server Image', u'1', 1), (u'ExitDialog', u'Finish', u'EndDialog', u'Return', u'1', None), (u'FatalError', u'Finish', u'EndDialog', u'Exit', u'1', None), (u'PrepareDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'ProgressDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'UserExit', u'Finish', u'EndDialog', u'Exit', u'1', None), (u'AdminBrowseDlg', u'Up', u'DirectoryListUp', u'0', u'1', None), (u'AdminBrowseDlg', u'Cancel', u'Reset', u'0', u'1', 1), (u'AdminBrowseDlg', u'Cancel', u'EndDialog', u'Return', u'1', 2), (u'AdminBrowseDlg', u'NewFolder', u'DirectoryListNew', u'0', u'1', None), (u'AdminBrowseDlg', u'OK', u'EndDialog', u'Return', u'1', 2), (u'AdminBrowseDlg', u'OK', u'SetTargetPath', u'TARGETDIR', u'1', 1), (u'AdminInstallPointDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'AdminInstallPointDlg', u'Back', u'NewDialog', u'AdminRegistrationDlg', u'1', None), (u'AdminInstallPointDlg', u'Next', u'SetTargetPath', u'TARGETDIR', u'1', 1), (u'AdminInstallPointDlg', u'Next', u'NewDialog', u'VerifyReadyDlg', u'1', 2), (u'AdminInstallPointDlg', u'Browse', u'SpawnDialog', u'AdminBrowseDlg', u'1', None), (u'AdminRegistrationDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'AdminRegistrationDlg', u'Back', u'NewDialog', u'AdminWelcomeDlg', u'1', None), (u'AdminRegistrationDlg', u'Next', u'NewDialog', u'AdminInstallPointDlg', u'ProductID', 2), (u'AdminRegistrationDlg', u'Next', u'ValidateProductID', u'0', u'0', 1), (u'BrowseDlg', u'Up', u'DirectoryListUp', u'0', u'1', None), (u'BrowseDlg', u'Cancel', u'Reset', u'0', u'1', 1), (u'BrowseDlg', u'Cancel', u'EndDialog', u'Return', u'1', 2), (u'BrowseDlg', u'NewFolder', u'DirectoryListNew', u'0', u'1', None), (u'BrowseDlg', u'OK', u'EndDialog', u'Return', u'1', 2), (u'BrowseDlg', u'OK', u'SetTargetPath', u'[_BrowseProperty]', u'1', 1), (u'CancelDlg', u'No', u'EndDialog', u'Return', u'1', None), (u'CancelDlg', u'Yes', u'EndDialog', u'Exit', u'1', None), (u'CustomizeDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'CustomizeDlg', u'Back', u'NewDialog', u'MaintenanceTypeDlg', u'InstallMode = "Change"', None), (u'CustomizeDlg', u'Back', u'NewDialog', u'SetupTypeDlg', u'InstallMode = "Custom"', None), (u'CustomizeDlg', u'Next', u'NewDialog', u'VerifyReadyDlg', u'1', None), (u'CustomizeDlg', u'Browse', u'SelectionBrowse', u'BrowseDlg', u'1', None), (u'CustomizeDlg', u'Reset', u'Reset', u'0', u'1', None), (u'CustomizeDlg', u'DiskCost', u'SpawnDialog', u'DiskCostDlg', u'1', 2), (u'DiskCostDlg', u'OK', u'EndDialog', u'Return', u'1', None), (u'ErrorDlg', u'Y', u'EndDialog', u'ErrorYes', u'1', None), (u'ErrorDlg', u'A', u'EndDialog', u'ErrorAbort', u'1', None), (u'ErrorDlg', u'C', u'EndDialog', u'ErrorCancel', u'1', None), (u'ErrorDlg', u'I', u'EndDialog', u'ErrorIgnore', u'1', None), (u'ErrorDlg', u'N', u'EndDialog', u'ErrorNo', u'1', None), (u'ErrorDlg', u'O', u'EndDialog', u'ErrorOk', u'1', None), (u'ErrorDlg', u'R', u'EndDialog', u'ErrorRetry', u'1', None), (u'FilesInUse', u'Retry', u'EndDialog', u'Retry', u'1', None), (u'FilesInUse', u'Exit', u'EndDialog', u'Exit', u'1', None), (u'FilesInUse', u'Ignore', u'EndDialog', u'Ignore', u'1', None), (u'LicenseAgreementDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'LicenseAgreementDlg', u'Back', u'NewDialog', u'WelcomeDlg', u'1', None), (u'LicenseAgreementDlg', u'Next', u'NewDialog', u'SetupTypeDlg', u'IAgree = "Yes" AND ShowUserRegistrationDlg <> 1', 3), (u'LicenseAgreementDlg', u'Next', u'NewDialog', u'UserRegistrationDlg', u'IAgree = "Yes" AND ShowUserRegistrationDlg = 1', 1), (u'LicenseAgreementDlg', u'Next', u'SpawnWaitDialog', u'WaitForCostingDlg', u'CostingComplete = 1', 2), (u'MaintenanceTypeDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'MaintenanceTypeDlg', u'Back', u'NewDialog', u'MaintenanceWelcomeDlg', u'1', None), (u'MaintenanceTypeDlg', u'ChangeButton', u'NewDialog', u'CustomizeDlg', u'1', 4), (u'MaintenanceTypeDlg', u'ChangeButton', u'[InstallMode]', u'Change', u'1', 1), (u'MaintenanceTypeDlg', u'ChangeButton', u'[Progress1]', u'Changing', u'1', 2), (u'MaintenanceTypeDlg', u'ChangeButton', u'[Progress2]', u'changes', u'1', 3), (u'MaintenanceTypeDlg', u'RemoveButton', u'NewDialog', u'VerifyRemoveDlg', u'1', 4), (u'MaintenanceTypeDlg', u'RemoveButton', u'[InstallMode]', u'Remove', u'1', 1), (u'MaintenanceTypeDlg', u'RemoveButton', u'[Progress1]', u'Removing', u'1', 2), (u'MaintenanceTypeDlg', u'RemoveButton', u'[Progress2]', u'removes', u'1', 3), (u'MaintenanceTypeDlg', u'RepairButton', u'NewDialog', u'VerifyRepairDlg', u'1', 4), (u'MaintenanceTypeDlg', u'RepairButton', u'[InstallMode]', u'Repair', u'1', 1), (u'MaintenanceTypeDlg', u'RepairButton', u'[Progress1]', u'Repairing', u'1', 2), (u'MaintenanceTypeDlg', u'RepairButton', u'[Progress2]', u'repairs', u'1', 3), (u'MaintenanceWelcomeDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'MaintenanceWelcomeDlg', u'Next', u'NewDialog', u'MaintenanceTypeDlg', u'1', 2), (u'MaintenanceWelcomeDlg', u'Next', u'SpawnWaitDialog', u'WaitForCostingDlg', u'CostingComplete = 1', 1), (u'OutOfDiskDlg', u'OK', u'EndDialog', u'Return', u'1', None), (u'OutOfRbDiskDlg', u'No', u'EndDialog', u'Return', u'1', None), (u'OutOfRbDiskDlg', u'Yes', u'EndDialog', u'Return', u'1', 2), (u'OutOfRbDiskDlg', u'Yes', u'EnableRollback', u'False', u'1', 1), (u'ResumeDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'ResumeDlg', u'Install', u'EndDialog', u'Return', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 4), (u'ResumeDlg', u'Install', u'EndDialog', u'Return', u'OutOfDiskSpace <> 1', 2), (u'ResumeDlg', u'Install', u'SpawnDialog', u'OutOfDiskDlg', u'(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")', 6), (u'ResumeDlg', u'Install', u'SpawnDialog', u'OutOfRbDiskDlg', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)', 3), (u'ResumeDlg', u'Install', u'SpawnWaitDialog', u'WaitForCostingDlg', u'CostingComplete = 1', 1), (u'ResumeDlg', u'Install', u'EnableRollback', u'False', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 5), (u'SetupTypeDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'SetupTypeDlg', u'Back', u'NewDialog', u'LicenseAgreementDlg', u'ShowUserRegistrationDlg <> 1', None), (u'SetupTypeDlg', u'Back', u'NewDialog', u'UserRegistrationDlg', u'ShowUserRegistrationDlg = 1', None), (u'SetupTypeDlg', u'CompleteButton', u'NewDialog', u'VerifyReadyDlg', u'1', 3), (u'SetupTypeDlg', u'CompleteButton', u'[InstallMode]', u'Complete', u'1', 1), (u'SetupTypeDlg', u'CompleteButton', u'SetInstallLevel', u'1000', u'1', 2), (u'SetupTypeDlg', u'CustomButton', u'NewDialog', u'CustomizeDlg', u'1', 2), (u'SetupTypeDlg', u'CustomButton', u'[InstallMode]', u'Custom', u'1', 1), (u'SetupTypeDlg', u'TypicalButton', u'NewDialog', u'VerifyReadyDlg', u'1', 3), (u'SetupTypeDlg', u'TypicalButton', u'[InstallMode]', u'Typical', u'1', 1), (u'SetupTypeDlg', u'TypicalButton', u'SetInstallLevel', u'3', u'1', 2), (u'UserRegistrationDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'UserRegistrationDlg', u'Back', u'NewDialog', u'LicenseAgreementDlg', u'1', None), (u'UserRegistrationDlg', u'Next', u'NewDialog', u'SetupTypeDlg', u'ProductID', 3), (u'UserRegistrationDlg', u'Next', u'ValidateProductID', u'0', u'0', 1), (u'UserRegistrationDlg', u'Next', u'SpawnWaitDialog', u'WaitForCostingDlg', u'CostingComplete = 1', 2), (u'VerifyReadyDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'VerifyReadyDlg', u'Back', u'NewDialog', u'AdminInstallPointDlg', u'InstallMode = "Server Image"', None), (u'VerifyReadyDlg', u'Back', u'NewDialog', u'CustomizeDlg', u'InstallMode = "Custom" OR InstallMode = "Change"', None), (u'VerifyReadyDlg', u'Back', u'NewDialog', u'MaintenanceTypeDlg', u'InstallMode = "Repair"', None), (u'VerifyReadyDlg', u'Back', u'NewDialog', u'SetupTypeDlg', u'InstallMode = "Typical" OR InstallMode = "Complete"', None), (u'VerifyReadyDlg', u'Install', u'EndDialog', u'Return', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 3), (u'VerifyReadyDlg', u'Install', u'EndDialog', u'Return', u'OutOfDiskSpace <> 1', 1), (u'VerifyReadyDlg', u'Install', u'SpawnDialog', u'OutOfDiskDlg', u'(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")', 5), (u'VerifyReadyDlg', u'Install', u'SpawnDialog', u'OutOfRbDiskDlg', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)', 2), (u'VerifyReadyDlg', u'Install', u'EnableRollback', u'False', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 4), (u'VerifyRemoveDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'VerifyRemoveDlg', u'Back', u'NewDialog', u'MaintenanceTypeDlg', u'1', None), (u'VerifyRemoveDlg', u'Remove', u'Remove', u'All', u'OutOfDiskSpace <> 1', 1), (u'VerifyRemoveDlg', u'Remove', u'EndDialog', u'Return', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 4), (u'VerifyRemoveDlg', u'Remove', u'EndDialog', u'Return', u'OutOfDiskSpace <> 1', 2), (u'VerifyRemoveDlg', u'Remove', u'SpawnDialog', u'OutOfDiskDlg', u'(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")', 6), (u'VerifyRemoveDlg', u'Remove', u'SpawnDialog', u'OutOfRbDiskDlg', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)', 3), (u'VerifyRemoveDlg', u'Remove', u'EnableRollback', u'False', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 5), (u'VerifyRepairDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'VerifyRepairDlg', u'Back', u'NewDialog', u'MaintenanceTypeDlg', u'1', None), (u'VerifyRepairDlg', u'Repair', u'EndDialog', u'Return', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 5), (u'VerifyRepairDlg', u'Repair', u'EndDialog', u'Return', u'OutOfDiskSpace <> 1', 3), (u'VerifyRepairDlg', u'Repair', u'SpawnDialog', u'OutOfDiskDlg', u'(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")', 7), (u'VerifyRepairDlg', u'Repair', u'SpawnDialog', u'OutOfRbDiskDlg', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)', 4), (u'VerifyRepairDlg', u'Repair', u'EnableRollback', u'False', u'OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"', 6), (u'VerifyRepairDlg', u'Repair', u'Reinstall', u'All', u'OutOfDiskSpace <> 1', 2), (u'VerifyRepairDlg', u'Repair', u'ReinstallMode', u'ecmus', u'OutOfDiskSpace <> 1', 1), (u'WaitForCostingDlg', u'Return', u'EndDialog', u'Exit', u'1', None), (u'WelcomeDlg', u'Cancel', u'SpawnDialog', u'CancelDlg', u'1', None), (u'WelcomeDlg', u'Next', u'NewDialog', u'LicenseAgreementDlg', u'1', None), ] Dialog = [ (u'AdminWelcomeDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Next', u'Next', u'Cancel'), (u'ExitDialog', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Finish', u'Finish', u'Finish'), (u'FatalError', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Finish', u'Finish', u'Finish'), (u'PrepareDlg', 50, 50, 370, 270, 1, u'[ProductName] [Setup]', u'Cancel', u'Cancel', u'Cancel'), (u'ProgressDlg', 50, 50, 370, 270, 1, u'[ProductName] [Setup]', u'Cancel', u'Cancel', u'Cancel'), (u'UserExit', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Finish', u'Finish', u'Finish'), (u'AdminBrowseDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'PathEdit', u'OK', u'Cancel'), (u'AdminInstallPointDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Text', u'Next', u'Cancel'), (u'AdminRegistrationDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'OrganizationLabel', u'Next', u'Cancel'), (u'BrowseDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'PathEdit', u'OK', u'Cancel'), (u'CancelDlg', 50, 10, 260, 85, 3, u'[ProductName] [Setup]', u'No', u'No', u'No'), (u'CustomizeDlg', 50, 50, 370, 270, 35, u'[ProductName] [Setup]', u'Tree', u'Next', u'Cancel'), (u'DiskCostDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'OK', u'OK', u'OK'), (u'ErrorDlg', 50, 10, 270, 105, 65539, u'Installer Information', u'ErrorText', None, None), (u'FilesInUse', 50, 50, 370, 270, 19, u'[ProductName] [Setup]', u'Retry', u'Retry', u'Retry'), (u'LicenseAgreementDlg', 50, 50, 370, 270, 3, u'[ProductName] License Agreement', u'Buttons', u'Next', u'Cancel'), (u'MaintenanceTypeDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'ChangeLabel', u'ChangeButton', u'Cancel'), (u'MaintenanceWelcomeDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Next', u'Next', u'Cancel'), (u'OutOfDiskDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'OK', u'OK', u'OK'), (u'OutOfRbDiskDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'No', u'No', u'No'), (u'ResumeDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Install', u'Install', u'Cancel'), (u'SetupTypeDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'TypicalLabel', u'TypicalButton', u'Cancel'), (u'UserRegistrationDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'NameLabel', u'Next', u'Cancel'), (u'VerifyReadyDlg', 50, 50, 370, 270, 35, u'[ProductName] [Setup]', u'Install', u'Install', u'Cancel'), (u'VerifyRemoveDlg', 50, 50, 370, 270, 35, u'[ProductName] [Setup]', u'Back', u'Back', u'Cancel'), (u'VerifyRepairDlg', 50, 50, 370, 270, 35, u'[ProductName] [Setup]', u'Repair', u'Repair', u'Cancel'), (u'WaitForCostingDlg', 50, 10, 260, 85, 3, u'[ProductName] [Setup]', u'Return', u'Return', u'Return'), (u'WelcomeDlg', 50, 50, 370, 270, 3, u'[ProductName] [Setup]', u'Next', u'Next', u'Cancel'), ] EventMapping = [ (u'PrepareDlg', u'ActionData', u'ActionData', u'Text'), (u'PrepareDlg', u'ActionText', u'ActionText', u'Text'), (u'ProgressDlg', u'ActionText', u'ActionText', u'Text'), (u'ProgressDlg', u'ProgressBar', u'SetProgress', u'Progress'), (u'AdminBrowseDlg', u'DirectoryCombo', u'IgnoreChange', u'IgnoreChange'), (u'BrowseDlg', u'DirectoryCombo', u'IgnoreChange', u'IgnoreChange'), (u'CustomizeDlg', u'Next', u'SelectionNoItems', u'Enabled'), (u'CustomizeDlg', u'Reset', u'SelectionNoItems', u'Enabled'), (u'CustomizeDlg', u'DiskCost', u'SelectionNoItems', u'Enabled'), (u'CustomizeDlg', u'ItemDescription', u'SelectionDescription', u'Text'), (u'CustomizeDlg', u'ItemSize', u'SelectionSize', u'Text'), (u'CustomizeDlg', u'Location', u'SelectionPath', u'Text'), (u'CustomizeDlg', u'Location', u'SelectionPathOn', u'Visible'), (u'CustomizeDlg', u'LocationLabel', u'SelectionPathOn', u'Visible'), ] InstallExecuteSequence = [ (u'InstallValidate', None, 1400), (u'InstallInitialize', None, 1500), (u'InstallFinalize', None, 6600), (u'InstallFiles', None, 4000), (u'FileCost', None, 900), (u'CostInitialize', None, 800), (u'CostFinalize', None, 1000), (u'CreateShortcuts', None, 4500), (u'PublishComponents', None, 6200), (u'PublishFeatures', None, 6300), (u'PublishProduct', None, 6400), (u'RegisterClassInfo', None, 4600), (u'RegisterExtensionInfo', None, 4700), (u'RegisterMIMEInfo', None, 4900), (u'RegisterProgIdInfo', None, 4800), (u'ValidateProductID', None, 700), (u'AllocateRegistrySpace', u'NOT Installed', 1550), (u'AppSearch', None, 400), (u'BindImage', None, 4300), (u'CCPSearch', u'NOT Installed', 500), (u'CreateFolders', None, 3700), (u'DeleteServices', u'VersionNT', 2000), (u'DuplicateFiles', None, 4210), (u'FindRelatedProducts', None, 200), (u'InstallODBC', None, 5400), (u'InstallServices', u'VersionNT', 5800), (u'LaunchConditions', None, 100), (u'MigrateFeatureStates', None, 1200), (u'MoveFiles', None, 3800), (u'PatchFiles', None, 4090), (u'ProcessComponents', None, 1600), (u'RegisterComPlus', None, 5700), (u'RegisterFonts', None, 5300), (u'RegisterProduct', None, 6100), (u'RegisterTypeLibraries', None, 5500), (u'RegisterUser', None, 6000), (u'RemoveDuplicateFiles', None, 3400), (u'RemoveEnvironmentStrings', None, 3300), (u'RemoveExistingProducts', None, 6700), (u'RemoveFiles', None, 3500), (u'RemoveFolders', None, 3600), (u'RemoveIniValues', None, 3100), (u'RemoveODBC', None, 2400), (u'RemoveRegistryValues', None, 2600), (u'RemoveShortcuts', None, 3200), (u'RMCCPSearch', u'NOT Installed', 600), (u'SelfRegModules', None, 5600), (u'SelfUnregModules', None, 2200), (u'SetODBCFolders', None, 1100), (u'StartServices', u'VersionNT', 5900), (u'StopServices', u'VersionNT', 1900), (u'UnpublishComponents', None, 1700), (u'UnpublishFeatures', None, 1800), (u'UnregisterClassInfo', None, 2700), (u'UnregisterComPlus', None, 2100), (u'UnregisterExtensionInfo', None, 2800), (u'UnregisterFonts', None, 2500), (u'UnregisterMIMEInfo', None, 3000), (u'UnregisterProgIdInfo', None, 2900), (u'UnregisterTypeLibraries', None, 2300), (u'WriteEnvironmentStrings', None, 5200), (u'WriteIniValues', None, 5100), (u'WriteRegistryValues', None, 5000), ] InstallUISequence = [ #(u'FileCost', None, 900), #(u'CostInitialize', None, 800), #(u'CostFinalize', None, 1000), #(u'ExecuteAction', None, 1300), #(u'ExitDialog', None, -1), #(u'FatalError', None, -3), (u'PrepareDlg', None, 140), (u'ProgressDlg', None, 1280), #(u'UserExit', None, -2), (u'MaintenanceWelcomeDlg', u'Installed AND NOT RESUME AND NOT Preselected', 1250), (u'ResumeDlg', u'Installed AND (RESUME OR Preselected)', 1240), (u'WelcomeDlg', u'NOT Installed', 1230), #(u'AppSearch', None, 400), #(u'CCPSearch', u'NOT Installed', 500), #(u'FindRelatedProducts', None, 200), #(u'LaunchConditions', None, 100), #(u'MigrateFeatureStates', None, 1200), #(u'RMCCPSearch', u'NOT Installed', 600), ] ListView = [ ] RadioButton = [ (u'IAgree', 1, u'Yes', 5, 0, 250, 15, u'{\\DlgFont8}I &accept the terms in the License Agreement', None), (u'IAgree', 2, u'No', 5, 20, 250, 15, u'{\\DlgFont8}I &do not accept the terms in the License Agreement', None), ] TextStyle = [ (u'DlgFont8', u'Tahoma', 8, None, 0), (u'DlgFontBold8', u'Tahoma', 8, None, 1), (u'VerdanaBold13', u'Verdana', 13, None, 1), ] UIText = [ (u'AbsentPath', None), (u'bytes', u'bytes'), (u'GB', u'GB'), (u'KB', u'KB'), (u'MB', u'MB'), (u'MenuAbsent', u'Entire feature will be unavailable'), (u'MenuAdvertise', u'Feature will be installed when required'), (u'MenuAllCD', u'Entire feature will be installed to run from CD'), (u'MenuAllLocal', u'Entire feature will be installed on local hard drive'), (u'MenuAllNetwork', u'Entire feature will be installed to run from network'), (u'MenuCD', u'Will be installed to run from CD'), (u'MenuLocal', u'Will be installed on local hard drive'), (u'MenuNetwork', u'Will be installed to run from network'), (u'ScriptInProgress', u'Gathering required information...'), (u'SelAbsentAbsent', u'This feature will remain uninstalled'), (u'SelAbsentAdvertise', u'This feature will be set to be installed when required'), (u'SelAbsentCD', u'This feature will be installed to run from CD'), (u'SelAbsentLocal', u'This feature will be installed on the local hard drive'), (u'SelAbsentNetwork', u'This feature will be installed to run from the network'), (u'SelAdvertiseAbsent', u'This feature will become unavailable'), (u'SelAdvertiseAdvertise', u'Will be installed when required'), (u'SelAdvertiseCD', u'This feature will be available to run from CD'), (u'SelAdvertiseLocal', u'This feature will be installed on your local hard drive'), (u'SelAdvertiseNetwork', u'This feature will be available to run from the network'), (u'SelCDAbsent', u"This feature will be uninstalled completely, you won't be able to run it from CD"), (u'SelCDAdvertise', u'This feature will change from run from CD state to set to be installed when required'), (u'SelCDCD', u'This feature will remain to be run from CD'), (u'SelCDLocal', u'This feature will change from run from CD state to be installed on the local hard drive'), (u'SelChildCostNeg', u'This feature frees up [1] on your hard drive.'), (u'SelChildCostPos', u'This feature requires [1] on your hard drive.'), (u'SelCostPending', u'Compiling cost for this feature...'), (u'SelLocalAbsent', u'This feature will be completely removed'), (u'SelLocalAdvertise', u'This feature will be removed from your local hard drive, but will be set to be installed when required'), (u'SelLocalCD', u'This feature will be removed from your local hard drive, but will be still available to run from CD'), (u'SelLocalLocal', u'This feature will remain on you local hard drive'), (u'SelLocalNetwork', u'This feature will be removed from your local hard drive, but will be still available to run from the network'), (u'SelNetworkAbsent', u"This feature will be uninstalled completely, you won't be able to run it from the network"), (u'SelNetworkAdvertise', u'This feature will change from run from network state to set to be installed when required'), (u'SelNetworkLocal', u'This feature will change from run from network state to be installed on the local hard drive'), (u'SelNetworkNetwork', u'This feature will remain to be run from the network'), (u'SelParentCostNegNeg', u'This feature frees up [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures free up [4] on your hard drive.'), (u'SelParentCostNegPos', u'This feature frees up [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures require [4] on your hard drive.'), (u'SelParentCostPosNeg', u'This feature requires [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures free up [4] on your hard drive.'), (u'SelParentCostPosPos', u'This feature requires [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures require [4] on your hard drive.'), (u'TimeRemaining', u'Time remaining: {[1] minutes }{[2] seconds}'), (u'VolumeCostAvailable', u'Available'), (u'VolumeCostDifference', u'Difference'), (u'VolumeCostRequired', u'Required'), (u'VolumeCostSize', u'Disk Size'), (u'VolumeCostVolume', u'Volume'), ] _Validation = [ (u'AdminExecuteSequence', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Name of action to invoke, either in the engine or the handler DLL.'), (u'AdminExecuteSequence', u'Sequence', u'Y', -4, 32767, None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.'), (u'AdminExecuteSequence', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.'), (u'AdminUISequence', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Name of action to invoke, either in the engine or the handler DLL.'), (u'AdminUISequence', u'Sequence', u'Y', -4, 32767, None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.'), (u'AdminUISequence', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.'), (u'Condition', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'Expression evaluated to determine if Level in the Feature table is to change.'), (u'Condition', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'Reference to a Feature entry in Feature table.'), (u'Condition', u'Level', u'N', 0, 32767, None, None, None, None, u'New selection Level to set in Feature table if Condition evaluates to TRUE.'), (u'AdvtExecuteSequence', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Name of action to invoke, either in the engine or the handler DLL.'), (u'AdvtExecuteSequence', u'Sequence', u'Y', -4, 32767, None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.'), (u'AdvtExecuteSequence', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.'), (u'BBControl', u'Type', u'N', None, None, None, None, u'Identifier', None, u'The type of the control.'), (u'BBControl', u'BBControl', u'N', None, None, None, None, u'Identifier', None, u'Name of the control. This name must be unique within a billboard, but can repeat on different billboard.'), (u'BBControl', u'Billboard_', u'N', None, None, u'Billboard', 1, u'Identifier', None, u'External key to the Billboard table, name of the billboard.'), (u'BBControl', u'X', u'N', 0, 32767, None, None, None, None, u'Horizontal coordinate of the upper left corner of the bounding rectangle of the control.'), (u'BBControl', u'Y', u'N', 0, 32767, None, None, None, None, u'Vertical coordinate of the upper left corner of the bounding rectangle of the control.'), (u'BBControl', u'Width', u'N', 0, 32767, None, None, None, None, u'Width of the bounding rectangle of the control.'), (u'BBControl', u'Height', u'N', 0, 32767, None, None, None, None, u'Height of the bounding rectangle of the control.'), (u'BBControl', u'Attributes', u'Y', 0, 2147483647, None, None, None, None, u'A 32-bit word that specifies the attribute flags to be applied to this control.'), (u'BBControl', u'Text', u'Y', None, None, None, None, u'Text', None, u'A string used to set the initial text contained within a control (if appropriate).'), (u'Billboard', u'Action', u'Y', None, None, None, None, u'Identifier', None, u'The name of an action. The billboard is displayed during the progress messages received from this action.'), (u'Billboard', u'Billboard', u'N', None, None, None, None, u'Identifier', None, u'Name of the billboard.'), (u'Billboard', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'An external key to the Feature Table. The billboard is shown only if this feature is being installed.'), (u'Billboard', u'Ordering', u'Y', 0, 32767, None, None, None, None, u'A positive integer. If there is more than one billboard corresponding to an action they will be shown in the order defined by this column.'), (u'Binary', u'Name', u'N', None, None, None, None, u'Identifier', None, u'Unique key identifying the binary data.'), (u'Binary', u'Data', u'N', None, None, None, None, u'Binary', None, u'The unformatted binary data.'), (u'CheckBox', u'Property', u'N', None, None, None, None, u'Identifier', None, u'A named property to be tied to the item.'), (u'CheckBox', u'Value', u'Y', None, None, None, None, u'Formatted', None, u'The value string associated with the item.'), (u'Property', u'Property', u'N', None, None, None, None, u'Identifier', None, u'Name of property, uppercase if settable by launcher or loader.'), (u'Property', u'Value', u'N', None, None, None, None, u'Text', None, u'String value for property. Never null or empty.'), (u'ComboBox', u'Text', u'Y', None, None, None, None, u'Formatted', None, u'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.'), (u'ComboBox', u'Property', u'N', None, None, None, None, u'Identifier', None, u'A named property to be tied to this item. All the items tied to the same property become part of the same combobox.'), (u'ComboBox', u'Value', u'N', None, None, None, None, u'Formatted', None, u'The value string associated with this item. Selecting the line will set the associated property to this value.'), (u'ComboBox', u'Order', u'N', 1, 32767, None, None, None, None, u'A positive integer used to determine the ordering of the items within one list.\tThe integers do not have to be consecutive.'), (u'Control', u'Type', u'N', None, None, None, None, u'Identifier', None, u'The type of the control.'), (u'Control', u'X', u'N', 0, 32767, None, None, None, None, u'Horizontal coordinate of the upper left corner of the bounding rectangle of the control.'), (u'Control', u'Y', u'N', 0, 32767, None, None, None, None, u'Vertical coordinate of the upper left corner of the bounding rectangle of the control.'), (u'Control', u'Width', u'N', 0, 32767, None, None, None, None, u'Width of the bounding rectangle of the control.'), (u'Control', u'Height', u'N', 0, 32767, None, None, None, None, u'Height of the bounding rectangle of the control.'), (u'Control', u'Attributes', u'Y', 0, 2147483647, None, None, None, None, u'A 32-bit word that specifies the attribute flags to be applied to this control.'), (u'Control', u'Text', u'Y', None, None, None, None, u'Formatted', None, u'A string used to set the initial text contained within a control (if appropriate).'), (u'Control', u'Property', u'Y', None, None, None, None, u'Identifier', None, u'The name of a defined property to be linked to this control. '), (u'Control', u'Control', u'N', None, None, None, None, u'Identifier', None, u'Name of the control. This name must be unique within a dialog, but can repeat on different dialogs. '), (u'Control', u'Dialog_', u'N', None, None, u'Dialog', 1, u'Identifier', None, u'External key to the Dialog table, name of the dialog.'), (u'Control', u'Control_Next', u'Y', None, None, u'Control', 2, u'Identifier', None, u'The name of an other control on the same dialog. This link defines the tab order of the controls. The links have to form one or more cycles!'), (u'Control', u'Help', u'Y', None, None, None, None, u'Text', None, u'The help strings used with the button. The text is optional. '), (u'Icon', u'Name', u'N', None, None, None, None, u'Identifier', None, u'Primary key. Name of the icon file.'), (u'Icon', u'Data', u'N', None, None, None, None, u'Binary', None, u'Binary stream. The binary icon data in PE (.DLL or .EXE) or icon (.ICO) format.'), (u'ListBox', u'Text', u'Y', None, None, None, None, u'Text', None, u'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.'), (u'ListBox', u'Property', u'N', None, None, None, None, u'Identifier', None, u'A named property to be tied to this item. All the items tied to the same property become part of the same listbox.'), (u'ListBox', u'Value', u'N', None, None, None, None, u'Formatted', None, u'The value string associated with this item. Selecting the line will set the associated property to this value.'), (u'ListBox', u'Order', u'N', 1, 32767, None, None, None, None, u'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.'), (u'ActionText', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Name of action to be described.'), (u'ActionText', u'Description', u'Y', None, None, None, None, u'Text', None, u'Localized description displayed in progress dialog and log when action is executing.'), (u'ActionText', u'Template', u'Y', None, None, None, None, u'Template', None, u'Optional localized format template used to format action data records for display during action execution.'), (u'ControlCondition', u'Action', u'N', None, None, None, None, None, u'Default;Disable;Enable;Hide;Show', u'The desired action to be taken on the specified control.'), (u'ControlCondition', u'Condition', u'N', None, None, None, None, u'Condition', None, u'A standard conditional statement that specifies under which conditions the action should be triggered.'), (u'ControlCondition', u'Dialog_', u'N', None, None, u'Dialog', 1, u'Identifier', None, u'A foreign key to the Dialog table, name of the dialog.'), (u'ControlCondition', u'Control_', u'N', None, None, u'Control', 2, u'Identifier', None, u'A foreign key to the Control table, name of the control.'), (u'ControlEvent', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'A standard conditional statement that specifies under which conditions an event should be triggered.'), (u'ControlEvent', u'Ordering', u'Y', 0, 2147483647, None, None, None, None, u'An integer used to order several events tied to the same control. Can be left blank.'), (u'ControlEvent', u'Dialog_', u'N', None, None, u'Dialog', 1, u'Identifier', None, u'A foreign key to the Dialog table, name of the dialog.'), (u'ControlEvent', u'Control_', u'N', None, None, u'Control', 2, u'Identifier', None, u'A foreign key to the Control table, name of the control'), (u'ControlEvent', u'Event', u'N', None, None, None, None, u'Formatted', None, u'An identifier that specifies the type of the event that should take place when the user interacts with control specified by the first two entries.'), (u'ControlEvent', u'Argument', u'N', None, None, None, None, u'Formatted', None, u'A value to be used as a modifier when triggering a particular event.'), (u'Dialog', u'Width', u'N', 0, 32767, None, None, None, None, u'Width of the bounding rectangle of the dialog.'), (u'Dialog', u'Height', u'N', 0, 32767, None, None, None, None, u'Height of the bounding rectangle of the dialog.'), (u'Dialog', u'Attributes', u'Y', 0, 2147483647, None, None, None, None, u'A 32-bit word that specifies the attribute flags to be applied to this dialog.'), (u'Dialog', u'Title', u'Y', None, None, None, None, u'Formatted', None, u"A text string specifying the title to be displayed in the title bar of the dialog's window."), (u'Dialog', u'Dialog', u'N', None, None, None, None, u'Identifier', None, u'Name of the dialog.'), (u'Dialog', u'HCentering', u'N', 0, 100, None, None, None, None, u'Horizontal position of the dialog on a 0-100 scale. 0 means left end, 100 means right end of the screen, 50 center.'), (u'Dialog', u'VCentering', u'N', 0, 100, None, None, None, None, u'Vertical position of the dialog on a 0-100 scale. 0 means top end, 100 means bottom end of the screen, 50 center.'), (u'Dialog', u'Control_First', u'N', None, None, u'Control', 2, u'Identifier', None, u'Defines the control that has the focus when the dialog is created.'), (u'Dialog', u'Control_Default', u'Y', None, None, u'Control', 2, u'Identifier', None, u'Defines the default control. Hitting return is equivalent to pushing this button.'), (u'Dialog', u'Control_Cancel', u'Y', None, None, u'Control', 2, u'Identifier', None, u'Defines the cancel control. Hitting escape or clicking on the close icon on the dialog is equivalent to pushing this button.'), (u'EventMapping', u'Dialog_', u'N', None, None, u'Dialog', 1, u'Identifier', None, u'A foreign key to the Dialog table, name of the Dialog.'), (u'EventMapping', u'Control_', u'N', None, None, u'Control', 2, u'Identifier', None, u'A foreign key to the Control table, name of the control.'), (u'EventMapping', u'Event', u'N', None, None, None, None, u'Identifier', None, u'An identifier that specifies the type of the event that the control subscribes to.'), (u'EventMapping', u'Attribute', u'N', None, None, None, None, u'Identifier', None, u'The name of the control attribute, that is set when this event is received.'), (u'InstallExecuteSequence', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Name of action to invoke, either in the engine or the handler DLL.'), (u'InstallExecuteSequence', u'Sequence', u'Y', -4, 32767, None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.'), (u'InstallExecuteSequence', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.'), (u'AppSearch', u'Property', u'N', None, None, None, None, u'Identifier', None, u'The property associated with a Signature'), (u'AppSearch', u'Signature_', u'N', None, None, u'Signature;RegLocator;IniLocator;DrLocator;CompLocator', 1, u'Identifier', None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature, RegLocator, IniLocator, CompLocator and the DrLocator tables.'), (u'BindImage', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'The index into the File table. This must be an executable file.'), (u'BindImage', u'Path', u'Y', None, None, None, None, u'Paths', None, u'A list of ; delimited paths that represent the paths to be searched for the import DLLS. The list is usually a list of properties each enclosed within square brackets [] .'), (u'CCPSearch', u'Signature_', u'N', None, None, u'Signature;RegLocator;IniLocator;DrLocator;CompLocator', 1, u'Identifier', None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature, RegLocator, IniLocator, CompLocator and the DrLocator tables.'), (u'InstallUISequence', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Name of action to invoke, either in the engine or the handler DLL.'), (u'InstallUISequence', u'Sequence', u'Y', -4, 32767, None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.'), (u'InstallUISequence', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.'), (u'ListView', u'Text', u'Y', None, None, None, None, u'Text', None, u'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.'), (u'ListView', u'Property', u'N', None, None, None, None, u'Identifier', None, u'A named property to be tied to this item. All the items tied to the same property become part of the same listview.'), (u'ListView', u'Value', u'N', None, None, None, None, u'Identifier', None, u'The value string associated with this item. Selecting the line will set the associated property to this value.'), (u'ListView', u'Order', u'N', 1, 32767, None, None, None, None, u'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.'), (u'ListView', u'Binary_', u'Y', None, None, u'Binary', 1, u'Identifier', None, u'The name of the icon to be displayed with the icon. The binary information is looked up from the Binary Table.'), (u'RadioButton', u'X', u'N', 0, 32767, None, None, None, None, u'The horizontal coordinate of the upper left corner of the bounding rectangle of the radio button.'), (u'RadioButton', u'Y', u'N', 0, 32767, None, None, None, None, u'The vertical coordinate of the upper left corner of the bounding rectangle of the radio button.'), (u'RadioButton', u'Width', u'N', 0, 32767, None, None, None, None, u'The width of the button.'), (u'RadioButton', u'Height', u'N', 0, 32767, None, None, None, None, u'The height of the button.'), (u'RadioButton', u'Text', u'Y', None, None, None, None, u'Text', None, u'The visible title to be assigned to the radio button.'), (u'RadioButton', u'Property', u'N', None, None, None, None, u'Identifier', None, u'A named property to be tied to this radio button. All the buttons tied to the same property become part of the same group.'), (u'RadioButton', u'Value', u'N', None, None, None, None, u'Formatted', None, u'The value string associated with this button. Selecting the button will set the associated property to this value.'), (u'RadioButton', u'Order', u'N', 1, 32767, None, None, None, None, u'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.'), (u'RadioButton', u'Help', u'Y', None, None, None, None, u'Text', None, u'The help strings used with the button. The text is optional.'), (u'TextStyle', u'TextStyle', u'N', None, None, None, None, u'Identifier', None, u'Name of the style. The primary key of this table. This name is embedded in the texts to indicate a style change.'), (u'TextStyle', u'FaceName', u'N', None, None, None, None, u'Text', None, u'A string indicating the name of the font used. Required. The string must be at most 31 characters long.'), (u'TextStyle', u'Size', u'N', 0, 32767, None, None, None, None, u'The size of the font used. This size is given in our units (1/12 of the system font height). Assuming that the system font is set to 12 point size, this is equivalent to the point size.'), (u'TextStyle', u'Color', u'Y', 0, 16777215, None, None, None, None, u'A long integer indicating the color of the string in the RGB format (Red, Green, Blue each 0-255, RGB = R + 256*G + 256^2*B).'), (u'TextStyle', u'StyleBits', u'Y', 0, 15, None, None, None, None, u'A combination of style bits.'), (u'UIText', u'Text', u'Y', None, None, None, None, u'Text', None, u'The localized version of the string.'), (u'UIText', u'Key', u'N', None, None, None, None, u'Identifier', None, u'A unique key that identifies the particular string.'), (u'_Validation', u'Table', u'N', None, None, None, None, u'Identifier', None, u'Name of table'), (u'_Validation', u'Description', u'Y', None, None, None, None, u'Text', None, u'Description of column'), (u'_Validation', u'Column', u'N', None, None, None, None, u'Identifier', None, u'Name of column'), (u'_Validation', u'Nullable', u'N', None, None, None, None, None, u'Y;N;@', u'Whether the column is nullable'), (u'_Validation', u'MinValue', u'Y', -2147483647, 2147483647, None, None, None, None, u'Minimum value allowed'), (u'_Validation', u'MaxValue', u'Y', -2147483647, 2147483647, None, None, None, None, u'Maximum value allowed'), (u'_Validation', u'KeyTable', u'Y', None, None, None, None, u'Identifier', None, u'For foreign key, Name of table to which data must link'), (u'_Validation', u'KeyColumn', u'Y', 1, 32, None, None, None, None, u'Column to which foreign key connects'), (u'_Validation', u'Category', u'Y', None, None, None, None, None, u'Text;Formatted;Template;Condition;Guid;Path;Version;Language;Identifier;Binary;UpperCase;LowerCase;Filename;Paths;AnyPath;WildCardFilename;RegPath;KeyFormatted;CustomSource;Property;Cabinet;Shortcut;URL', u'String category'), (u'_Validation', u'Set', u'Y', None, None, None, None, u'Text', None, u'Set of values that are permitted'), (u'AdvtUISequence', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Name of action to invoke, either in the engine or the handler DLL.'), (u'AdvtUISequence', u'Sequence', u'Y', -4, 32767, None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.'), (u'AdvtUISequence', u'Condition', u'Y', None, None, None, None, u'Condition', None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.'), (u'AppId', u'AppId', u'N', None, None, None, None, u'Guid', None, None), (u'AppId', u'ActivateAtStorage', u'Y', 0, 1, None, None, None, None, None), (u'AppId', u'DllSurrogate', u'Y', None, None, None, None, u'Text', None, None), (u'AppId', u'LocalService', u'Y', None, None, None, None, u'Text', None, None), (u'AppId', u'RemoteServerName', u'Y', None, None, None, None, u'Formatted', None, None), (u'AppId', u'RunAsInteractiveUser', u'Y', 0, 1, None, None, None, None, None), (u'AppId', u'ServiceParameters', u'Y', None, None, None, None, u'Text', None, None), (u'Feature', u'Attributes', u'N', None, None, None, None, None, u'0;1;2;4;5;6;8;9;10;16;17;18;20;21;22;24;25;26;32;33;34;36;37;38;48;49;50;52;53;54', u'Feature attributes'), (u'Feature', u'Description', u'Y', None, None, None, None, u'Text', None, u'Longer descriptive text describing a visible feature item.'), (u'Feature', u'Title', u'Y', None, None, None, None, u'Text', None, u'Short text identifying a visible feature item.'), (u'Feature', u'Feature', u'N', None, None, None, None, u'Identifier', None, u'Primary key used to identify a particular feature record.'), (u'Feature', u'Directory_', u'Y', None, None, u'Directory', 1, u'UpperCase', None, u'The name of the Directory that can be configured by the UI. A non-null value will enable the browse button.'), (u'Feature', u'Level', u'N', 0, 32767, None, None, None, None, u'The install level at which record will be initially selected. An install level of 0 will disable an item and prevent its display.'), (u'Feature', u'Display', u'Y', 0, 32767, None, None, None, None, u'Numeric sort order, used to force a specific display ordering.'), (u'Feature', u'Feature_Parent', u'Y', None, None, u'Feature', 1, u'Identifier', None, u'Optional key of a parent record in the same table. If the parent is not selected, then the record will not be installed. Null indicates a root item.'), (u'File', u'Sequence', u'N', 1, 32767, None, None, None, None, u'Sequence with respect to the media images; order must track cabinet order.'), (u'File', u'Attributes', u'Y', 0, 32767, None, None, None, None, u'Integer containing bit flags representing file attributes (with the decimal value of each bit position in parentheses)'), (u'File', u'File', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token, must match identifier in cabinet. For uncompressed files, this field is ignored.'), (u'File', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key referencing Component that controls the file.'), (u'File', u'FileName', u'N', None, None, None, None, u'Filename', None, u'File name used for installation, may be localized. This may contain a "short name|long name" pair.'), (u'File', u'FileSize', u'N', 0, 2147483647, None, None, None, None, u'Size of file in bytes (long integer).'), (u'File', u'Language', u'Y', None, None, None, None, u'Language', None, u'List of decimal language Ids, comma-separated if more than one.'), (u'File', u'Version', u'Y', None, None, u'File', 1, u'Version', None, u'Version string for versioned files; Blank for unversioned files.'), (u'Class', u'Attributes', u'Y', None, 32767, None, None, None, None, u'Class registration attributes.'), (u'Class', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the CLSID factory to be operational.'), (u'Class', u'Description', u'Y', None, None, None, None, u'Text', None, u'Localized description for the Class.'), (u'Class', u'Argument', u'Y', None, None, None, None, u'Formatted', None, u'optional argument for LocalServers.'), (u'Class', u'AppId_', u'Y', None, None, u'AppId', 1, u'Guid', None, u'Optional AppID containing DCOM information for associated application (string GUID).'), (u'Class', u'CLSID', u'N', None, None, None, None, u'Guid', None, u'The CLSID of an OLE factory.'), (u'Class', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.'), (u'Class', u'Context', u'N', None, None, None, None, u'Identifier', None, u'The numeric server context for this server. CLSCTX_xxxx'), (u'Class', u'DefInprocHandler', u'Y', None, None, None, None, u'Filename', u'1;2;3', u'Optional default inproc handler. Only optionally provided if Context=CLSCTX_LOCAL_SERVER. Typically "ole32.dll" or "mapi32.dll"'), (u'Class', u'FileTypeMask', u'Y', None, None, None, None, u'Text', None, u'Optional string containing information for the HKCRthis CLSID) key. If multiple patterns exist, they must be delimited by a semicolon, and numeric subkeys will be generated: 0,1,2...'), (u'Class', u'Icon_', u'Y', None, None, u'Icon', 1, u'Identifier', None, u'Optional foreign key into the Icon Table, specifying the icon file associated with this CLSID. Will be written under the DefaultIcon key.'), (u'Class', u'IconIndex', u'Y', -32767, 32767, None, None, None, None, u'Optional icon index.'), (u'Class', u'ProgId_Default', u'Y', None, None, u'ProgId', 1, u'Text', None, u'Optional ProgId associated with this CLSID.'), (u'Component', u'Condition', u'Y', None, None, None, None, u'Condition', None, u"A conditional statement that will disable this component if the specified condition evaluates to the 'True' state. If a component is disabled, it will not be installed, regardless of the 'Action' state associated with the component."), (u'Component', u'Attributes', u'N', None, None, None, None, None, None, u'Remote execution option, one of irsEnum'), (u'Component', u'Component', u'N', None, None, None, None, u'Identifier', None, u'Primary key used to identify a particular component record.'), (u'Component', u'ComponentId', u'Y', None, None, None, None, u'Guid', None, u'A string GUID unique to this component, version, and language.'), (u'Component', u'Directory_', u'N', None, None, u'Directory', 1, u'Identifier', None, u'Required key of a Directory table record. This is actually a property name whose value contains the actual path, set either by the AppSearch action or with the default setting obtained from the Directory table.'), (u'Component', u'KeyPath', u'Y', None, None, u'File;Registry;ODBCDataSource', 1, u'Identifier', None, u'Either the primary key into the File table, Registry table, or ODBCDataSource table. This extract path is stored when the component is installed, and is used to detect the presence of the component and to return the path to it.'), (u'ProgId', u'Description', u'Y', None, None, None, None, u'Text', None, u'Localized description for the Program identifier.'), (u'ProgId', u'Icon_', u'Y', None, None, u'Icon', 1, u'Identifier', None, u'Optional foreign key into the Icon Table, specifying the icon file associated with this ProgId. Will be written under the DefaultIcon key.'), (u'ProgId', u'IconIndex', u'Y', -32767, 32767, None, None, None, None, u'Optional icon index.'), (u'ProgId', u'ProgId', u'N', None, None, None, None, u'Text', None, u'The Program Identifier. Primary key.'), (u'ProgId', u'Class_', u'Y', None, None, u'Class', 1, u'Guid', None, u'The CLSID of an OLE factory corresponding to the ProgId.'), (u'ProgId', u'ProgId_Parent', u'Y', None, None, u'ProgId', 1, u'Text', None, u'The Parent Program Identifier. If specified, the ProgId column becomes a version independent prog id.'), (u'CompLocator', u'Type', u'Y', 0, 1, None, None, None, None, u'A boolean value that determines if the registry value is a filename or a directory location.'), (u'CompLocator', u'Signature_', u'N', None, None, None, None, u'Identifier', None, u'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table.'), (u'CompLocator', u'ComponentId', u'N', None, None, None, None, u'Guid', None, u'A string GUID unique to this component, version, and language.'), (u'Complus', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key referencing Component that controls the ComPlus component.'), (u'Complus', u'ExpType', u'Y', 0, 32767, None, None, None, None, u'ComPlus component attributes.'), (u'Directory', u'Directory', u'N', None, None, None, None, u'Identifier', None, u'Unique identifier for directory entry, primary key. If a property by this name is defined, it contains the full path to the directory.'), (u'Directory', u'DefaultDir', u'N', None, None, None, None, u'DefaultDir', None, u"The default sub-path under parent's path."), (u'Directory', u'Directory_Parent', u'Y', None, None, u'Directory', 1, u'Identifier', None, u'Reference to the entry in this table specifying the default parent directory. A record parented to itself or with a Null parent represents a root of the install tree.'), (u'CreateFolder', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table.'), (u'CreateFolder', u'Directory_', u'N', None, None, u'Directory', 1, u'Identifier', None, u'Primary key, could be foreign key into the Directory table.'), (u'CustomAction', u'Type', u'N', 1, 16383, None, None, None, None, u'The numeric custom action type, consisting of source location, code type, entry, option flags.'), (u'CustomAction', u'Action', u'N', None, None, None, None, u'Identifier', None, u'Primary key, name of action, normally appears in sequence table unless private use.'), (u'CustomAction', u'Source', u'Y', None, None, None, None, u'CustomSource', None, u'The table reference of the source of the code.'), (u'CustomAction', u'Target', u'Y', None, None, None, None, u'Formatted', None, u'Excecution parameter, depends on the type of custom action'), (u'DrLocator', u'Signature_', u'N', None, None, None, None, u'Identifier', None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature table.'), (u'DrLocator', u'Path', u'Y', None, None, None, None, u'AnyPath', None, u'The path on the user system. This is a either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.'), (u'DrLocator', u'Depth', u'Y', 0, 32767, None, None, None, None, u'The depth below the path to which the Signature_ is recursively searched. If absent, the depth is assumed to be 0.'), (u'DrLocator', u'Parent', u'Y', None, None, None, None, u'Identifier', None, u'The parent file signature. It is also a foreign key in the Signature table. If null and the Path column does not expand to a full path, then all the fixed drives of the user system are searched using the Path.'), (u'DuplicateFile', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'Foreign key referencing the source file to be duplicated.'), (u'DuplicateFile', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key referencing Component that controls the duplicate file.'), (u'DuplicateFile', u'DestFolder', u'Y', None, None, None, None, u'Identifier', None, u'Name of a property whose value is assumed to resolve to the full pathname to a destination folder.'), (u'DuplicateFile', u'DestName', u'Y', None, None, None, None, u'Filename', None, u'Filename to be given to the duplicate file.'), (u'DuplicateFile', u'FileKey', u'N', None, None, None, None, u'Identifier', None, u'Primary key used to identify a particular file entry'), (u'Environment', u'Name', u'N', None, None, None, None, u'Text', None, u'The name of the environmental value.'), (u'Environment', u'Value', u'Y', None, None, None, None, u'Formatted', None, u'The value to set in the environmental settings.'), (u'Environment', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table referencing component that controls the installing of the environmental value.'), (u'Environment', u'Environment', u'N', None, None, None, None, u'Identifier', None, u'Unique identifier for the environmental variable setting'), (u'Error', u'Error', u'N', 0, 32767, None, None, None, None, u'Integer error number, obtained from header file IError(...) macros.'), (u'Error', u'Message', u'Y', None, None, None, None, u'Template', None, u'Error formatting template, obtained from user ed. or localizers.'), (u'Extension', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the CLSID factory to be operational.'), (u'Extension', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.'), (u'Extension', u'Extension', u'N', None, None, None, None, u'Text', None, u'The extension associated with the table row.'), (u'Extension', u'MIME_', u'Y', None, None, u'MIME', 1, u'Text', None, u'Optional Context identifier, typically "type/format" associated with the extension'), (u'Extension', u'ProgId_', u'Y', None, None, u'ProgId', 1, u'Text', None, u'Optional ProgId associated with this extension.'), (u'MIME', u'CLSID', u'Y', None, None, None, None, u'Guid', None, u'Optional associated CLSID.'), (u'MIME', u'ContentType', u'N', None, None, None, None, u'Text', None, u'Primary key. Context identifier, typically "type/format".'), (u'MIME', u'Extension_', u'N', None, None, u'Extension', 1, u'Text', None, u'Optional associated extension (without dot)'), (u'FeatureComponents', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'Foreign key into Feature table.'), (u'FeatureComponents', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into Component table.'), (u'FileSFPCatalog', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'File associated with the catalog'), (u'FileSFPCatalog', u'SFPCatalog_', u'N', None, None, u'SFPCatalog', 1, u'Filename', None, u'Catalog associated with the file'), (u'SFPCatalog', u'SFPCatalog', u'N', None, None, None, None, u'Filename', None, u'File name for the catalog.'), (u'SFPCatalog', u'Catalog', u'N', None, None, None, None, u'Binary', None, u'SFP Catalog'), (u'SFPCatalog', u'Dependency', u'Y', None, None, None, None, u'Formatted', None, u'Parent catalog - only used by SFP'), (u'Font', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'Primary key, foreign key into File table referencing font file.'), (u'Font', u'FontTitle', u'Y', None, None, None, None, u'Text', None, u'Font name.'), (u'IniFile', u'Action', u'N', None, None, None, None, None, u'0;1;3', u'The type of modification to be made, one of iifEnum'), (u'IniFile', u'Value', u'N', None, None, None, None, u'Formatted', None, u'The value to be written.'), (u'IniFile', u'Key', u'N', None, None, None, None, u'Formatted', None, u'The .INI file key below Section.'), (u'IniFile', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table referencing component that controls the installing of the .INI value.'), (u'IniFile', u'FileName', u'N', None, None, None, None, u'Filename', None, u'The .INI file name in which to write the information'), (u'IniFile', u'IniFile', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token.'), (u'IniFile', u'DirProperty', u'Y', None, None, None, None, u'Identifier', None, u'Foreign key into the Directory table denoting the directory where the .INI file is.'), (u'IniFile', u'Section', u'N', None, None, None, None, u'Formatted', None, u'The .INI file Section.'), (u'IniLocator', u'Type', u'Y', 0, 2, None, None, None, None, u'An integer value that determines if the .INI value read is a filename or a directory location or to be used as is w/o interpretation.'), (u'IniLocator', u'Key', u'N', None, None, None, None, u'Text', None, u'Key value (followed by an equals sign in INI file).'), (u'IniLocator', u'Signature_', u'N', None, None, None, None, u'Identifier', None, u'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table.'), (u'IniLocator', u'FileName', u'N', None, None, None, None, u'Filename', None, u'The .INI file name.'), (u'IniLocator', u'Section', u'N', None, None, None, None, u'Text', None, u'Section name within in file (within square brackets in INI file).'), (u'IniLocator', u'Field', u'Y', 0, 32767, None, None, None, None, u'The field in the .INI line. If Field is null or 0 the entire line is read.'), (u'IsolatedComponent', u'Component_Application', u'N', None, None, u'Component', 1, u'Identifier', None, u'Key to Component table item for application'), (u'IsolatedComponent', u'Component_Shared', u'N', None, None, u'Component', 1, u'Identifier', None, u'Key to Component table item to be isolated'), (u'LaunchCondition', u'Condition', u'N', None, None, None, None, u'Condition', None, u'Expression which must evaluate to TRUE in order for install to commence.'), (u'LaunchCondition', u'Description', u'N', None, None, None, None, u'Formatted', None, u'Localizable text to display when condition fails and install must abort.'), (u'LockPermissions', u'Table', u'N', None, None, None, None, u'Identifier', u'Directory;File;Registry', u'Reference to another table name'), (u'LockPermissions', u'Domain', u'Y', None, None, None, None, u'Formatted', None, u'Domain name for user whose permissions are being set. (usually a property)'), (u'LockPermissions', u'LockObject', u'N', None, None, None, None, u'Identifier', None, u'Foreign key into Registry or File table'), (u'LockPermissions', u'Permission', u'Y', -2147483647, 2147483647, None, None, None, None, u'Permission Access mask. Full Control = 268435456 (GENERIC_ALL = 0x10000000)'), (u'LockPermissions', u'User', u'N', None, None, None, None, u'Formatted', None, u'User for permissions to be set. (usually a property)'), (u'Media', u'Source', u'Y', None, None, None, None, u'Property', None, u'The property defining the location of the cabinet file.'), (u'Media', u'Cabinet', u'Y', None, None, None, None, u'Cabinet', None, u'If some or all of the files stored on the media are compressed in a cabinet, the name of that cabinet.'), (u'Media', u'DiskId', u'N', 1, 32767, None, None, None, None, u'Primary key, integer to determine sort order for table.'), (u'Media', u'DiskPrompt', u'Y', None, None, None, None, u'Text', None, u'Disk name: the visible text actually printed on the disk. This will be used to prompt the user when this disk needs to be inserted.'), (u'Media', u'LastSequence', u'N', 0, 32767, None, None, None, None, u'File sequence number for the last file for this media.'), (u'Media', u'VolumeLabel', u'Y', None, None, None, None, u'Text', None, u'The label attributed to the volume.'), (u'ModuleComponents', u'Component', u'N', None, None, u'Component', 1, u'Identifier', None, u'Component contained in the module.'), (u'ModuleComponents', u'Language', u'N', None, None, u'ModuleSignature', 2, None, None, u'Default language ID for module (may be changed by transform).'), (u'ModuleComponents', u'ModuleID', u'N', None, None, u'ModuleSignature', 1, u'Identifier', None, u'Module containing the component.'), (u'ModuleSignature', u'Language', u'N', None, None, None, None, None, None, u'Default decimal language of module.'), (u'ModuleSignature', u'Version', u'N', None, None, None, None, u'Version', None, u'Version of the module.'), (u'ModuleSignature', u'ModuleID', u'N', None, None, None, None, u'Identifier', None, u'Module identifier (String.GUID).'), (u'ModuleDependency', u'ModuleID', u'N', None, None, u'ModuleSignature', 1, u'Identifier', None, u'Module requiring the dependency.'), (u'ModuleDependency', u'ModuleLanguage', u'N', None, None, u'ModuleSignature', 2, None, None, u'Language of module requiring the dependency.'), (u'ModuleDependency', u'RequiredID', u'N', None, None, None, None, None, None, u'String.GUID of required module.'), (u'ModuleDependency', u'RequiredLanguage', u'N', None, None, None, None, None, None, u'LanguageID of the required module.'), (u'ModuleDependency', u'RequiredVersion', u'Y', None, None, None, None, u'Version', None, u'Version of the required version.'), (u'ModuleExclusion', u'ModuleID', u'N', None, None, u'ModuleSignature', 1, u'Identifier', None, u'String.GUID of module with exclusion requirement.'), (u'ModuleExclusion', u'ModuleLanguage', u'N', None, None, u'ModuleSignature', 2, None, None, u'LanguageID of module with exclusion requirement.'), (u'ModuleExclusion', u'ExcludedID', u'N', None, None, None, None, None, None, u'String.GUID of excluded module.'), (u'ModuleExclusion', u'ExcludedLanguage', u'N', None, None, None, None, None, None, u'Language of excluded module.'), (u'ModuleExclusion', u'ExcludedMaxVersion', u'Y', None, None, None, None, u'Version', None, u'Maximum version of excluded module.'), (u'ModuleExclusion', u'ExcludedMinVersion', u'Y', None, None, None, None, u'Version', None, u'Minimum version of excluded module.'), (u'MoveFile', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'If this component is not "selected" for installation or removal, no action will be taken on the associated MoveFile entry'), (u'MoveFile', u'DestFolder', u'N', None, None, None, None, u'Identifier', None, u'Name of a property whose value is assumed to resolve to the full path to the destination directory'), (u'MoveFile', u'DestName', u'Y', None, None, None, None, u'Filename', None, u'Name to be given to the original file after it is moved or copied. If blank, the destination file will be given the same name as the source file'), (u'MoveFile', u'FileKey', u'N', None, None, None, None, u'Identifier', None, u'Primary key that uniquely identifies a particular MoveFile record'), (u'MoveFile', u'Options', u'N', 0, 1, None, None, None, None, u'Integer value specifying the MoveFile operating mode, one of imfoEnum'), (u'MoveFile', u'SourceFolder', u'Y', None, None, None, None, u'Identifier', None, u'Name of a property whose value is assumed to resolve to the full path to the source directory'), (u'MoveFile', u'SourceName', u'Y', None, None, None, None, u'Text', None, u"Name of the source file(s) to be moved or copied. Can contain the '*' or '?' wildcards."), (u'MsiAssembly', u'Attributes', u'Y', None, None, None, None, None, None, u'Assembly attributes'), (u'MsiAssembly', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'Foreign key into Feature table.'), (u'MsiAssembly', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into Component table.'), (u'MsiAssembly', u'File_Application', u'Y', None, None, u'File', 1, u'Identifier', None, u'Foreign key into File table, denoting the application context for private assemblies. Null for global assemblies.'), (u'MsiAssembly', u'File_Manifest', u'Y', None, None, u'File', 1, u'Identifier', None, u'Foreign key into the File table denoting the manifest file for the assembly.'), (u'MsiAssemblyName', u'Name', u'N', None, None, None, None, u'Text', None, u'The name part of the name-value pairs for the assembly name.'), (u'MsiAssemblyName', u'Value', u'N', None, None, None, None, u'Text', None, u'The value part of the name-value pairs for the assembly name.'), (u'MsiAssemblyName', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into Component table.'), (u'MsiDigitalCertificate', u'CertData', u'N', None, None, None, None, u'Binary', None, u'A certificate context blob for a signer certificate'), (u'MsiDigitalCertificate', u'DigitalCertificate', u'N', None, None, None, None, u'Identifier', None, u'A unique identifier for the row'), (u'MsiDigitalSignature', u'Table', u'N', None, None, None, None, None, u'Media', u'Reference to another table name (only Media table is supported)'), (u'MsiDigitalSignature', u'DigitalCertificate_', u'N', None, None, u'MsiDigitalCertificate', 1, u'Identifier', None, u'Foreign key to MsiDigitalCertificate table identifying the signer certificate'), (u'MsiDigitalSignature', u'Hash', u'Y', None, None, None, None, u'Binary', None, u'The encoded hash blob from the digital signature'), (u'MsiDigitalSignature', u'SignObject', u'N', None, None, None, None, u'Text', None, u'Foreign key to Media table'), (u'MsiFileHash', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'Primary key, foreign key into File table referencing file with this hash'), (u'MsiFileHash', u'Options', u'N', 0, 32767, None, None, None, None, u'Various options and attributes for this hash.'), (u'MsiFileHash', u'HashPart1', u'N', None, None, None, None, None, None, u'Size of file in bytes (long integer).'), (u'MsiFileHash', u'HashPart2', u'N', None, None, None, None, None, None, u'Size of file in bytes (long integer).'), (u'MsiFileHash', u'HashPart3', u'N', None, None, None, None, None, None, u'Size of file in bytes (long integer).'), (u'MsiFileHash', u'HashPart4', u'N', None, None, None, None, None, None, u'Size of file in bytes (long integer).'), (u'MsiPatchHeaders', u'StreamRef', u'N', None, None, None, None, u'Identifier', None, u'Primary key. A unique identifier for the row.'), (u'MsiPatchHeaders', u'Header', u'N', None, None, None, None, u'Binary', None, u'Binary stream. The patch header, used for patch validation.'), (u'ODBCAttribute', u'Value', u'Y', None, None, None, None, u'Text', None, u'Value for ODBC driver attribute'), (u'ODBCAttribute', u'Attribute', u'N', None, None, None, None, u'Text', None, u'Name of ODBC driver attribute'), (u'ODBCAttribute', u'Driver_', u'N', None, None, u'ODBCDriver', 1, u'Identifier', None, u'Reference to ODBC driver in ODBCDriver table'), (u'ODBCDriver', u'Description', u'N', None, None, None, None, u'Text', None, u'Text used as registered name for driver, non-localized'), (u'ODBCDriver', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'Reference to key driver file'), (u'ODBCDriver', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Reference to associated component'), (u'ODBCDriver', u'Driver', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized.internal token for driver'), (u'ODBCDriver', u'File_Setup', u'Y', None, None, u'File', 1, u'Identifier', None, u'Optional reference to key driver setup DLL'), (u'ODBCDataSource', u'Description', u'N', None, None, None, None, u'Text', None, u'Text used as registered name for data source'), (u'ODBCDataSource', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Reference to associated component'), (u'ODBCDataSource', u'DataSource', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized.internal token for data source'), (u'ODBCDataSource', u'DriverDescription', u'N', None, None, None, None, u'Text', None, u'Reference to driver description, may be existing driver'), (u'ODBCDataSource', u'Registration', u'N', 0, 1, None, None, None, None, u'Registration option: 0=machine, 1=user, others t.b.d.'), (u'ODBCSourceAttribute', u'Value', u'Y', None, None, None, None, u'Text', None, u'Value for ODBC data source attribute'), (u'ODBCSourceAttribute', u'Attribute', u'N', None, None, None, None, u'Text', None, u'Name of ODBC data source attribute'), (u'ODBCSourceAttribute', u'DataSource_', u'N', None, None, u'ODBCDataSource', 1, u'Identifier', None, u'Reference to ODBC data source in ODBCDataSource table'), (u'ODBCTranslator', u'Description', u'N', None, None, None, None, u'Text', None, u'Text used as registered name for translator'), (u'ODBCTranslator', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'Reference to key translator file'), (u'ODBCTranslator', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Reference to associated component'), (u'ODBCTranslator', u'File_Setup', u'Y', None, None, u'File', 1, u'Identifier', None, u'Optional reference to key translator setup DLL'), (u'ODBCTranslator', u'Translator', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized.internal token for translator'), (u'Patch', u'Sequence', u'N', 0, 32767, None, None, None, None, u'Primary key, sequence with respect to the media images; order must track cabinet order.'), (u'Patch', u'Attributes', u'N', 0, 32767, None, None, None, None, u'Integer containing bit flags representing patch attributes'), (u'Patch', u'File_', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token, foreign key to File table, must match identifier in cabinet.'), (u'Patch', u'Header', u'Y', None, None, None, None, u'Binary', None, u'Binary stream. The patch header, used for patch validation.'), (u'Patch', u'PatchSize', u'N', 0, 2147483647, None, None, None, None, u'Size of patch in bytes (long integer).'), (u'Patch', u'StreamRef_', u'Y', None, None, None, None, u'Identifier', None, u'Identifier. Foreign key to the StreamRef column of the MsiPatchHeaders table.'), (u'PatchPackage', u'Media_', u'N', 0, 32767, None, None, None, None, u'Foreign key to DiskId column of Media table. Indicates the disk containing the patch package.'), (u'PatchPackage', u'PatchId', u'N', None, None, None, None, u'Guid', None, u'A unique string GUID representing this patch.'), (u'PublishComponent', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'Foreign key into the Feature table.'), (u'PublishComponent', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table.'), (u'PublishComponent', u'ComponentId', u'N', None, None, None, None, u'Guid', None, u'A string GUID that represents the component id that will be requested by the alien product.'), (u'PublishComponent', u'AppData', u'Y', None, None, None, None, u'Text', None, u'This is localisable Application specific data that can be associated with a Qualified Component.'), (u'PublishComponent', u'Qualifier', u'N', None, None, None, None, u'Text', None, u'This is defined only when the ComponentId column is an Qualified Component Id. This is the Qualifier for ProvideComponentIndirect.'), (u'Registry', u'Name', u'Y', None, None, None, None, u'Formatted', None, u'The registry value name.'), (u'Registry', u'Value', u'Y', None, None, None, None, u'Formatted', None, u'The registry value.'), (u'Registry', u'Key', u'N', None, None, None, None, u'RegPath', None, u'The key for the registry value.'), (u'Registry', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table referencing component that controls the installing of the registry value.'), (u'Registry', u'Registry', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token.'), (u'Registry', u'Root', u'N', -1, 3, None, None, None, None, u'The predefined root key for the registry value, one of rrkEnum.'), (u'RegLocator', u'Name', u'Y', None, None, None, None, u'Formatted', None, u'The registry value name.'), (u'RegLocator', u'Type', u'Y', 0, 18, None, None, None, None, u'An integer value that determines if the registry value is a filename or a directory location or to be used as is w/o interpretation.'), (u'RegLocator', u'Key', u'N', None, None, None, None, u'RegPath', None, u'The key for the registry value.'), (u'RegLocator', u'Signature_', u'N', None, None, None, None, u'Identifier', None, u'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table. If the type is 0, the registry values refers a directory, and _Signature is not a foreign key.'), (u'RegLocator', u'Root', u'N', 0, 3, None, None, None, None, u'The predefined root key for the registry value, one of rrkEnum.'), (u'RemoveFile', u'InstallMode', u'N', None, None, None, None, None, u'1;2;3', u'Installation option, one of iimEnum.'), (u'RemoveFile', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key referencing Component that controls the file to be removed.'), (u'RemoveFile', u'FileKey', u'N', None, None, None, None, u'Identifier', None, u'Primary key used to identify a particular file entry'), (u'RemoveFile', u'FileName', u'Y', None, None, None, None, u'WildCardFilename', None, u'Name of the file to be removed.'), (u'RemoveFile', u'DirProperty', u'N', None, None, None, None, u'Identifier', None, u'Name of a property whose value is assumed to resolve to the full pathname to the folder of the file to be removed.'), (u'RemoveIniFile', u'Action', u'N', None, None, None, None, None, u'2;4', u'The type of modification to be made, one of iifEnum.'), (u'RemoveIniFile', u'Value', u'Y', None, None, None, None, u'Formatted', None, u'The value to be deleted. The value is required when Action is iifIniRemoveTag'), (u'RemoveIniFile', u'Key', u'N', None, None, None, None, u'Formatted', None, u'The .INI file key below Section.'), (u'RemoveIniFile', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table referencing component that controls the deletion of the .INI value.'), (u'RemoveIniFile', u'FileName', u'N', None, None, None, None, u'Filename', None, u'The .INI file name in which to delete the information'), (u'RemoveIniFile', u'DirProperty', u'Y', None, None, None, None, u'Identifier', None, u'Foreign key into the Directory table denoting the directory where the .INI file is.'), (u'RemoveIniFile', u'Section', u'N', None, None, None, None, u'Formatted', None, u'The .INI file Section.'), (u'RemoveIniFile', u'RemoveIniFile', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token.'), (u'RemoveRegistry', u'Name', u'Y', None, None, None, None, u'Formatted', None, u'The registry value name.'), (u'RemoveRegistry', u'Key', u'N', None, None, None, None, u'RegPath', None, u'The key for the registry value.'), (u'RemoveRegistry', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table referencing component that controls the deletion of the registry value.'), (u'RemoveRegistry', u'Root', u'N', -1, 3, None, None, None, None, u'The predefined root key for the registry value, one of rrkEnum'), (u'RemoveRegistry', u'RemoveRegistry', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token.'), (u'ReserveCost', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Reserve a specified amount of space if this component is to be installed.'), (u'ReserveCost', u'ReserveFolder', u'Y', None, None, None, None, u'Identifier', None, u'Name of a property whose value is assumed to resolve to the full path to the destination directory'), (u'ReserveCost', u'ReserveKey', u'N', None, None, None, None, u'Identifier', None, u'Primary key that uniquely identifies a particular ReserveCost record'), (u'ReserveCost', u'ReserveLocal', u'N', 0, 2147483647, None, None, None, None, u'Disk space to reserve if linked component is installed locally.'), (u'ReserveCost', u'ReserveSource', u'N', 0, 2147483647, None, None, None, None, u'Disk space to reserve if linked component is installed to run from the source location.'), (u'SelfReg', u'File_', u'N', None, None, u'File', 1, u'Identifier', None, u'Foreign key into the File table denoting the module that needs to be registered.'), (u'SelfReg', u'Cost', u'Y', 0, 32767, None, None, None, None, u'The cost of registering the module.'), (u'ServiceControl', u'Name', u'N', None, None, None, None, u'Formatted', None, u'Name of a service. /, \\, comma and space are invalid'), (u'ServiceControl', u'Event', u'N', 0, 187, None, None, None, None, u'Bit field: Install: 0x1 = Start, 0x2 = Stop, 0x8 = Delete, Uninstall: 0x10 = Start, 0x20 = Stop, 0x80 = Delete'), (u'ServiceControl', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Required foreign key into the Component Table that controls the startup of the service'), (u'ServiceControl', u'ServiceControl', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token.'), (u'ServiceControl', u'Arguments', u'Y', None, None, None, None, u'Formatted', None, u'Arguments for the service. Separate by [~].'), (u'ServiceControl', u'Wait', u'Y', 0, 1, None, None, None, None, u'Boolean for whether to wait for the service to fully start'), (u'ServiceInstall', u'Name', u'N', None, None, None, None, u'Formatted', None, u'Internal Name of the Service'), (u'ServiceInstall', u'Description', u'Y', None, None, None, None, u'Text', None, u'Description of service.'), (u'ServiceInstall', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Required foreign key into the Component Table that controls the startup of the service'), (u'ServiceInstall', u'Arguments', u'Y', None, None, None, None, u'Formatted', None, u'Arguments to include in every start of the service, passed to WinMain'), (u'ServiceInstall', u'ServiceInstall', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token.'), (u'ServiceInstall', u'Dependencies', u'Y', None, None, None, None, u'Formatted', None, u'Other services this depends on to start. Separate by [~], and end with [~][~]'), (u'ServiceInstall', u'DisplayName', u'Y', None, None, None, None, u'Formatted', None, u'External Name of the Service'), (u'ServiceInstall', u'ErrorControl', u'N', -2147483647, 2147483647, None, None, None, None, u'Severity of error if service fails to start'), (u'ServiceInstall', u'LoadOrderGroup', u'Y', None, None, None, None, u'Formatted', None, u'LoadOrderGroup'), (u'ServiceInstall', u'Password', u'Y', None, None, None, None, u'Formatted', None, u'password to run service with. (with StartName)'), (u'ServiceInstall', u'ServiceType', u'N', -2147483647, 2147483647, None, None, None, None, u'Type of the service'), (u'ServiceInstall', u'StartName', u'Y', None, None, None, None, u'Formatted', None, u'User or object name to run service as'), (u'ServiceInstall', u'StartType', u'N', 0, 4, None, None, None, None, u'Type of the service'), (u'Shortcut', u'Name', u'N', None, None, None, None, u'Filename', None, u'The name of the shortcut to be created.'), (u'Shortcut', u'Description', u'Y', None, None, None, None, u'Text', None, u'The description for the shortcut.'), (u'Shortcut', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table denoting the component whose selection gates the the shortcut creation/deletion.'), (u'Shortcut', u'Icon_', u'Y', None, None, u'Icon', 1, u'Identifier', None, u'Foreign key into the File table denoting the external icon file for the shortcut.'), (u'Shortcut', u'IconIndex', u'Y', -32767, 32767, None, None, None, None, u'The icon index for the shortcut.'), (u'Shortcut', u'Directory_', u'N', None, None, u'Directory', 1, u'Identifier', None, u'Foreign key into the Directory table denoting the directory where the shortcut file is created.'), (u'Shortcut', u'Target', u'N', None, None, None, None, u'Shortcut', None, u'The shortcut target. This is usually a property that is expanded to a file or a folder that the shortcut points to.'), (u'Shortcut', u'Arguments', u'Y', None, None, None, None, u'Formatted', None, u'The command-line arguments for the shortcut.'), (u'Shortcut', u'Shortcut', u'N', None, None, None, None, u'Identifier', None, u'Primary key, non-localized token.'), (u'Shortcut', u'Hotkey', u'Y', 0, 32767, None, None, None, None, u'The hotkey for the shortcut. It has the virtual-key code for the key in the low-order byte, and the modifier flags in the high-order byte. '), (u'Shortcut', u'ShowCmd', u'Y', None, None, None, None, None, u'1;3;7', u'The show command for the application window.The following values may be used.'), (u'Shortcut', u'WkDir', u'Y', None, None, None, None, u'Identifier', None, u'Name of property defining location of working directory.'), (u'Signature', u'FileName', u'N', None, None, None, None, u'Filename', None, u'The name of the file. This may contain a "short name|long name" pair.'), (u'Signature', u'Signature', u'N', None, None, None, None, u'Identifier', None, u'The table key. The Signature represents a unique file signature.'), (u'Signature', u'Languages', u'Y', None, None, None, None, u'Language', None, u'The languages supported by the file.'), (u'Signature', u'MaxDate', u'Y', 0, 2147483647, None, None, None, None, u'The maximum creation date of the file.'), (u'Signature', u'MaxSize', u'Y', 0, 2147483647, None, None, None, None, u'The maximum size of the file. '), (u'Signature', u'MaxVersion', u'Y', None, None, None, None, u'Text', None, u'The maximum version of the file.'), (u'Signature', u'MinDate', u'Y', 0, 2147483647, None, None, None, None, u'The minimum creation date of the file.'), (u'Signature', u'MinSize', u'Y', 0, 2147483647, None, None, None, None, u'The minimum size of the file.'), (u'Signature', u'MinVersion', u'Y', None, None, None, None, u'Text', None, u'The minimum version of the file.'), (u'TypeLib', u'Feature_', u'N', None, None, u'Feature', 1, u'Identifier', None, u'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the type library to be operational.'), (u'TypeLib', u'Description', u'Y', None, None, None, None, u'Text', None, None), (u'TypeLib', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.'), (u'TypeLib', u'Directory_', u'Y', None, None, u'Directory', 1, u'Identifier', None, u'Optional. The foreign key into the Directory table denoting the path to the help file for the type library.'), (u'TypeLib', u'Language', u'N', 0, 32767, None, None, None, None, u'The language of the library.'), (u'TypeLib', u'Version', u'Y', 0, 16777215, None, None, None, None, u'The version of the library. The minor version is in the lower 8 bits of the integer. The major version is in the next 16 bits. '), (u'TypeLib', u'Cost', u'Y', 0, 2147483647, None, None, None, None, u'The cost associated with the registration of the typelib. This column is currently optional.'), (u'TypeLib', u'LibID', u'N', None, None, None, None, u'Guid', None, u'The GUID that represents the library.'), (u'Upgrade', u'Attributes', u'N', 0, 2147483647, None, None, None, None, u'The attributes of this product set.'), (u'Upgrade', u'Remove', u'Y', None, None, None, None, u'Formatted', None, u'The list of features to remove when uninstalling a product from this set. The default is "ALL".'), (u'Upgrade', u'Language', u'Y', None, None, None, None, u'Language', None, u'A comma-separated list of languages for either products in this set or products not in this set.'), (u'Upgrade', u'ActionProperty', u'N', None, None, None, None, u'UpperCase', None, u'The property to set when a product in this set is found.'), (u'Upgrade', u'UpgradeCode', u'N', None, None, None, None, u'Guid', None, u'The UpgradeCode GUID belonging to the products in this set.'), (u'Upgrade', u'VersionMax', u'Y', None, None, None, None, u'Text', None, u'The maximum ProductVersion of the products in this set. The set may or may not include products with this particular version.'), (u'Upgrade', u'VersionMin', u'Y', None, None, None, None, u'Text', None, u'The minimum ProductVersion of the products in this set. The set may or may not include products with this particular version.'), (u'Verb', u'Sequence', u'Y', 0, 32767, None, None, None, None, u'Order within the verbs for a particular extension. Also used simply to specify the default verb.'), (u'Verb', u'Argument', u'Y', None, None, None, None, u'Formatted', None, u'Optional value for the command arguments.'), (u'Verb', u'Extension_', u'N', None, None, u'Extension', 1, u'Text', None, u'The extension associated with the table row.'), (u'Verb', u'Verb', u'N', None, None, None, None, u'Text', None, u'The verb for the command.'), (u'Verb', u'Command', u'Y', None, None, None, None, u'Formatted', None, u'The command text.'), ] Error = [ (0, u'{{Fatal error: }}'), (1, u'{{Error [1]. }}'), (2, u'Warning [1]. '), (3, None), (4, u'Info [1]. '), (5, u'The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is [1]. {{The arguments are: [2], [3], [4]}}'), (6, None), (7, u'{{Disk full: }}'), (8, u'Action [Time]: [1]. [2]'), (9, u'[ProductName]'), (10, u'{[2]}{, [3]}{, [4]}'), (11, u'Message type: [1], Argument: [2]'), (12, u'=== Logging started: [Date] [Time] ==='), (13, u'=== Logging stopped: [Date] [Time] ==='), (14, u'Action start [Time]: [1].'), (15, u'Action ended [Time]: [1]. Return value [2].'), (16, u'Time remaining: {[1] minutes }{[2] seconds}'), (17, u'Out of memory. Shut down other applications before retrying.'), (18, u'Installer is no longer responding.'), (19, u'Installer stopped prematurely.'), (20, u'Please wait while Windows configures [ProductName]'), (21, u'Gathering required information...'), (22, u'Removing older versions of this application...'), (23, u'Preparing to remove older versions of this application...'), (32, u'{[ProductName] }Setup completed successfully.'), (33, u'{[ProductName] }Setup failed.'), (1101, u'Error reading from file: [2]. {{ System error [3].}} Verify that the file exists and that you can access it.'), (1301, u"Cannot create the file '[2]'. A directory with this name already exists. Cancel the install and try installing to a different location."), (1302, u'Please insert the disk: [2]'), (1303, u'The installer has insufficient privileges to access this directory: [2]. The installation cannot continue. Log on as administrator or contact your system administrator.'), (1304, u'Error writing to file: [2]. Verify that you have access to that directory.'), (1305, u'Error reading from file [2]. {{ System error [3].}} Verify that the file exists and that you can access it.'), (1306, u"Another application has exclusive access to the file '[2]'. Please shut down all other applications, then click Retry."), (1307, u'There is not enough disk space to install this file: [2]. Free some disk space and click Retry, or click Cancel to exit.'), (1308, u'Source file not found: [2]. Verify that the file exists and that you can access it.'), (1309, u'Error reading from file: [3]. {{ System error [2].}} Verify that the file exists and that you can access it.'), (1310, u'Error writing to file: [3]. {{ System error [2].}} Verify that you have access to that directory.'), (1311, u'Source file not found{{(cabinet)}}: [2]. Verify that the file exists and that you can access it.'), (1312, u"Cannot create the directory '[2]'. A file with this name already exists. Please rename or remove the file and click retry, or click Cancel to exit."), (1313, u'The volume [2] is currently unavailable. Please select another.'), (1314, u"The specified path '[2]' is unavailable."), (1315, u'Unable to write to the specified folder: [2].'), (1316, u'A network error occurred while attempting to read from the file: [2]'), (1317, u'An error occurred while attempting to create the directory: [2]'), (1318, u'A network error occurred while attempting to create the directory: [2]'), (1319, u'A network error occurred while attempting to open the source file cabinet: [2]'), (1320, u'The specified path is too long: [2]'), (1321, u'The Installer has insufficient privileges to modify this file: [2].'), (1322, u"A portion of the folder path '[2]' is invalid. It is either empty or exceeds the length allowed by the system."), (1323, u"The folder path '[2]' contains words that are not valid in folder paths."), (1324, u"The folder path '[2]' contains an invalid character."), (1325, u"'[2]' is not a valid short file name."), (1326, u'Error getting file security: [3] GetLastError: [2]'), (1327, u'Invalid Drive: [2]'), (1328, u'Error applying patch to file [2]. It has probably been updated by other means, and can no longer be modified by this patch. For more information contact your patch vendor. {{System Error: [3]}}'), (1329, u'A file that is required cannot be installed because the cabinet file [2] is not digitally signed. This may indicate that the cabinet file is corrupt.'), (1330, u'A file that is required cannot be installed because the cabinet file [2] has an invalid digital signature. This may indicate that the cabinet file is corrupt.{{ Error [3] was returned by WinVerifyTrust.}}'), (1331, u'Failed to correctly copy [2] file: CRC error.'), (1332, u'Failed to correctly move [2] file: CRC error.'), (1333, u'Failed to correctly patch [2] file: CRC error.'), (1334, u"The file '[2]' cannot be installed because the file cannot be found in cabinet file '[3]'. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package."), (1335, u"The cabinet file '[2]' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package."), (1336, u'There was an error creating a temporary file that is needed to complete this installation.{{ Folder: [3]. System error code: [2]}}'), (1401, u'Could not create key: [2]. {{ System error [3].}} Verify that you have sufficient access to that key, or contact your support personnel. '), (1402, u'Could not open key: [2]. {{ System error [3].}} Verify that you have sufficient access to that key, or contact your support personnel. '), (1403, u'Could not delete value [2] from key [3]. {{ System error [4].}} Verify that you have sufficient access to that key, or contact your support personnel. '), (1404, u'Could not delete key [2]. {{ System error [3].}} Verify that you have sufficient access to that key, or contact your support personnel. '), (1405, u'Could not read value [2] from key [3]. {{ System error [4].}} Verify that you have sufficient access to that key, or contact your support personnel. '), (1406, u'Could not write value [2] to key [3]. {{ System error [4].}} Verify that you have sufficient access to that key, or contact your support personnel.'), (1407, u'Could not get value names for key [2]. {{ System error [3].}} Verify that you have sufficient access to that key, or contact your support personnel.'), (1408, u'Could not get sub key names for key [2]. {{ System error [3].}} Verify that you have sufficient access to that key, or contact your support personnel.'), (1409, u'Could not read security information for key [2]. {{ System error [3].}} Verify that you have sufficient access to that key, or contact your support personnel.'), (1410, u'Could not increase the available registry space. [2] KB of free registry space is required for the installation of this application.'), (1500, u'Another installation is in progress. You must complete that installation before continuing this one.'), (1501, u'Error accessing secured data. Please make sure the Windows Installer is configured properly and try the install again.'), (1502, u"User '[2]' has previously initiated an install for product '[3]'. That user will need to run that install again before they can use that product. Your current install will now continue."), (1503, u"User '[2]' has previously initiated an install for product '[3]'. That user will need to run that install again before they can use that product."), (1601, u"Out of disk space -- Volume: '[2]'; required space: [3] KB; available space: [4] KB. Free some disk space and retry."), (1602, u'Are you sure you want to cancel?'), (1603, u"The file [2][3] is being held in use{ by the following process: Name: [4], Id: [5], Window Title: '[6]'}. Close that application and retry."), (1604, u"The product '[2]' is already installed, preventing the installation of this product. The two products are incompatible."), (1605, u"There is not enough disk space on the volume '[2]' to continue the install with recovery enabled. [3] KB are required, but only [4] KB are available. Click Ignore to continue the install without saving recovery information, click Retry to check for available space again, or click Cancel to quit the installation."), (1606, u'Could not access network location [2].'), (1607, u'The following applications should be closed before continuing the install:'), (1608, u'Could not find any previously installed compliant products on the machine for installing this product.'), (1609, u"An error occurred while applying security settings. [2] is not a valid user or group. This could be a problem with the package, or a problem connecting to a domain controller on the network. Check your network connection and click Retry, or Cancel to end the install. {{Unable to locate the user's SID, system error [3]}}"), (1701, u'The key [2] is not valid. Verify that you entered the correct key.'), (1702, u'The installer must restart your system before configuration of [2] can continue. Click Yes to restart now or No if you plan to manually restart later.'), (1703, u'You must restart your system for the configuration changes made to [2] to take effect. Click Yes to restart now or No if you plan to manually restart later.'), (1704, u'An installation for [2] is currently suspended. You must undo the changes made by that installation to continue. Do you want to undo those changes?'), (1705, u'A previous installation for this product is in progress. You must undo the changes made by that installation to continue. Do you want to undo those changes?'), (1706, u"An installation package for the product [2] cannot be found. Try the installation again using a valid copy of the installation package '[3]'."), (1707, u'Installation completed successfully.'), (1708, u'Installation failed.'), (1709, u'Product: [2] -- [3]'), (1710, u'You may either restore your computer to its previous state or continue the install later. Would you like to restore?'), (1711, u'An error occurred while writing installation information to disk. Check to make sure enough disk space is available, and click Retry, or Cancel to end the install.'), (1712, u'One or more of the files required to restore your computer to its previous state could not be found. Restoration will not be possible.'), (1713, u'[2] cannot install one of its required products. Contact your technical support group. {{System Error: [3].}}'), (1714, u'The older version of [2] cannot be removed. Contact your technical support group. {{System Error [3].}}'), (1715, u'Installed [2]'), (1716, u'Configured [2]'), (1717, u'Removed [2]'), (1718, u'File [2] was rejected by digital signature policy.'), (1719, u'The Windows Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the Windows Installer is not correctly installed. Contact your support personnel for assistance.'), (1720, u'There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. {{Custom action [2] script error [3], [4]: [5] Line [6], Column [7], [8] }}'), (1721, u'There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. {{Action: [2], location: [3], command: [4] }}'), (1722, u'There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. {{Action [2], location: [3], command: [4] }}'), (1723, u'There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. {{Action [2], entry: [3], library: [4] }}'), (1724, u'Removal completed successfully.'), (1725, u'Removal failed.'), (1726, u'Advertisement completed successfully.'), (1727, u'Advertisement failed.'), (1728, u'Configuration completed successfully.'), (1729, u'Configuration failed.'), (1730, u'You must be an Administrator to remove this application. To remove this application, you can log on as an Administrator, or contact your technical support group for assistance.'), (1801, u'The path [2] is not valid. Please specify a valid path.'), (1802, u'Out of memory. Shut down other applications before retrying.'), (1803, u'There is no disk in drive [2]. Please insert one and click Retry, or click Cancel to go back to the previously selected volume.'), (1804, u'There is no disk in drive [2]. Please insert one and click Retry, or click Cancel to return to the browse dialog and select a different volume.'), (1805, u'The folder [2] does not exist. Please enter a path to an existing folder.'), (1806, u'You have insufficient privileges to read this folder.'), (1807, u'A valid destination folder for the install could not be determined.'), (1901, u'Error attempting to read from the source install database: [2].'), (1902, u'Scheduling reboot operation: Renaming file [2] to [3]. Must reboot to complete operation.'), (1903, u'Scheduling reboot operation: Deleting file [2]. Must reboot to complete operation.'), (1904, u'Module [2] failed to register. HRESULT [3]. Contact your support personnel.'), (1905, u'Module [2] failed to unregister. HRESULT [3]. Contact your support personnel.'), (1906, u'Failed to cache package [2]. Error: [3]. Contact your support personnel.'), (1907, u'Could not register font [2]. Verify that you have sufficient permissions to install fonts, and that the system supports this font.'), (1908, u'Could not unregister font [2]. Verify that you that you have sufficient permissions to remove fonts.'), (1909, u'Could not create Shortcut [2]. Verify that the destination folder exists and that you can access it.'), (1910, u'Could not remove Shortcut [2]. Verify that the shortcut file exists and that you can access it.'), (1911, u'Could not register type library for file [2]. Contact your support personnel.'), (1912, u'Could not unregister type library for file [2]. Contact your support personnel.'), (1913, u'Could not update the ini file [2][3]. Verify that the file exists and that you can access it.'), (1914, u'Could not schedule file [2] to replace file [3] on reboot. Verify that you have write permissions to file [3].'), (1915, u'Error removing ODBC driver manager, ODBC error [2]: [3]. Contact your support personnel.'), (1916, u'Error installing ODBC driver manager, ODBC error [2]: [3]. Contact your support personnel.'), (1917, u'Error removing ODBC driver: [4], ODBC error [2]: [3]. Verify that you have sufficient privileges to remove ODBC drivers.'), (1918, u'Error installing ODBC driver: [4], ODBC error [2]: [3]. Verify that the file [4] exists and that you can access it.'), (1919, u'Error configuring ODBC data source: [4], ODBC error [2]: [3]. Verify that the file [4] exists and that you can access it.'), (1920, u"Service '[2]' ([3]) failed to start. Verify that you have sufficient privileges to start system services."), (1921, u"Service '[2]' ([3]) could not be stopped. Verify that you have sufficient privileges to stop system services."), (1922, u"Service '[2]' ([3]) could not be deleted. Verify that you have sufficient privileges to remove system services."), (1923, u"Service '[2]' ([3]) could not be installed. Verify that you have sufficient privileges to install system services."), (1924, u"Could not update environment variable '[2]'. Verify that you have sufficient privileges to modify environment variables."), (1925, u'You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation.'), (1926, u"Could not set file security for file '[3]'. Error: [2]. Verify that you have sufficient privileges to modify the security permissions for this file."), (1927, u'Component Services (COM+ 1.0) are not installed on this computer. This installation requires Component Services in order to complete successfully. Component Services are available on Windows 2000.'), (1928, u'Error registering COM+ Application. Contact your support personnel for more information.'), (1929, u'Error unregistering COM+ Application. Contact your support personnel for more information.'), (1930, u"The description for service '[2]' ([3]) could not be changed."), (1931, u'The Windows Installer service cannot update the system file [2] because the file is protected by Windows. You may need to update your operating system for this program to work correctly. {{Package version: [3], OS Protected version: [4]}}'), (1932, u'The Windows Installer service cannot update the protected Windows file [2]. {{Package version: [3], OS Protected version: [4], SFP Error: [5]}}'), (1933, u'The Windows Installer service cannot update one or more protected Windows files. {{SFP Error: [2]. List of protected files:\\r\\n[3]}}'), (1934, u'User installations are disabled via policy on the machine.'), (1935, u'An error occurred during the installation of assembly component [2]. HRESULT: [3]. {{assembly interface: [4], function: [5], assembly name: [6]}}'), ] tables=['AdminExecuteSequence', 'AdminUISequence', 'AdvtExecuteSequence', 'BBControl', 'Billboard', 'Binary', 'CheckBox', 'Property', 'ComboBox', 'Control', 'ListBox', 'ActionText', 'ControlCondition', 'ControlEvent', 'Dialog', 'EventMapping', 'InstallExecuteSequence', 'InstallUISequence', 'ListView', 'RadioButton', 'TextStyle', 'UIText', '_Validation', 'Error']
gpl-2.0
DevDean/joomla-cms
administrator/components/com_hikashop/extensions/plg_hikashoppayment_sofort/library/helper/xml_to_array_node.php
2413
<?php /** * @package HikaShop for Joomla! * @version 2.6.0 * @author hikashop.com * @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class XmlToArrayNode { private $_attributes = array(); private $_children = array(); private $_data = ''; private $_name = ''; private $_open = true; private $_ParentXmlToArrayNode = null; public function __construct($name, $attributes) { $this->_name = $name; $this->_attributes = $attributes; } public function addChild(XmlToArrayNode $XmlToArrayNode) { $this->_children[] = $XmlToArrayNode; } public function getData() { return $this->_data; } public function getName() { return $this->_name; } public function getParentXmlToArrayNode() { return $this->_ParentXmlToArrayNode; } public function hasChildren() { return count($this->_children); } public function hasParentXmlToArrayNode() { return $this->_ParentXmlToArrayNode instanceof XmlToArrayNode; } public function isOpen() { return $this->_open; } public function render($simpleStructure) { $array = array(); $multiples = array(); foreach ($this->_children as $Child) { $multiples[$Child->getName()] = isset($multiples[$Child->getName()]) ? $multiples[$Child->getName()] + 1 : 0; } foreach ($this->_children as $Child) { if ($multiples[$Child->getName()]) { if ($simpleStructure && !$Child->hasChildren()) { $array[$Child->getName()][] = $Child->getData(); } else { $array[$Child->getName()][] = $Child->render($simpleStructure); } } elseif ($simpleStructure && !$Child->hasChildren()) { $array[$Child->getName()] = $Child->getData(); } else { $array[$Child->getName()] = $Child->render($simpleStructure); } } if (!$simpleStructure) { $array['@data'] = $this->_data; $array['@attributes'] = $this->_attributes; } return $this->_ParentXmlToArrayNode instanceof XmlToArrayNode ? $array : array($this->_name => $simpleStructure && !$this->hasChildren() ? $this->getData() : $array); } public function setClosed() { $this->_open = false; } public function setData($data) { $this->_data .= $data; } public function setParentXmlToArrayNode(XmlToArrayNode $XmlToArrayNode) { $this->_ParentXmlToArrayNode = $XmlToArrayNode; } } ?>
gpl-2.0
skyorbit/work1
TMessagesProj/src/main/java/org/telegram/android/Emoji.java
33982
/* * This is the source code of Telegram for Android v. 1.3.2. * It is licensed under GNU GPL v. 2 or later. * You should have received a copy of the license in this archive (see LICENSE). * * Copyright Nikolai Kudashov, 2013. */ package org.telegram.android; import java.io.File; import java.io.InputStream; import java.util.HashMap; import java.util.Locale; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.text.Spannable; import android.text.style.DynamicDrawableSpan; import android.text.style.ImageSpan; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import org.telegram.messenger.FileLog; import org.telegram.messenger.Utilities; import org.telegram.ui.ApplicationLoader; public class Emoji { private static HashMap<Long, DrawableInfo> rects = new HashMap<Long, DrawableInfo>(); private static int drawImgSize, bigImgSize; private static boolean inited = false; private static Paint placeholderPaint; private static EmojiBitmap emojiBmp[] = new EmojiBitmap[5]; private static boolean loadingEmoji[] = new boolean[5]; private static int emojiFullSize; private static class EmojiBitmap { public int[] colors; public int width; public int height; public EmojiBitmap(int[] colors, int width, int height) { this.colors = colors; this.width = width; this.height = height; } } private static final int[] cols = { 13, 10, 15, 10, 14 }; private static final char[] emojiChars = { 0x00A9, 0x00AE, 0x203C, 0x2049, 0x2122, 0x2139, 0x2194, 0x2195, 0x2196, 0x2197, 0x2198, 0x2199, 0x21A9, 0x21AA, 0x231A, 0x231B, 0x23E9, 0x23EA, 0x23EB, 0x23EC, 0x23F0, 0x23F3, 0x24C2, 0x25AA, 0x25AB, 0x25B6, 0x25C0, 0x25FB, 0x25FC, 0x25FD, 0x25FE, 0x2600, 0x2601, 0x260E, 0x2611, 0x2614, 0x2615, 0x261D, 0x263A, 0x2648, 0x2649, 0x264A, 0x264B, 0x264C, 0x264D, 0x264E, 0x264F, 0x2650, 0x2651, 0x2652, 0x2653, 0x2660, 0x2663, 0x2665, 0x2666, 0x2668, 0x267B, 0x267F, 0x2693, 0x26A0, 0x26A1, 0x26AA, 0x26AB, 0x26BD, 0x26BE, 0x26C4, 0x26C5, 0x26CE, 0x26D4, 0x26EA, 0x26F2, 0x26F3, 0x26F5, 0x26FA, 0x26FD, 0x2702, 0x2705, 0x2708, 0x2709, 0x270A, 0x270B, 0x270C, 0x270F, 0x2712, 0x2714, 0x2716, 0x2728, 0x2733, 0x2734, 0x2744, 0x2747, 0x274C, 0x274E, 0x2753, 0x2754, 0x2755, 0x2757, 0x2764, 0x2795, 0x2796, 0x2797, 0x27A1, 0x27B0, 0x27BF, 0x2934, 0x2935, 0x2B05, 0x2B06, 0x2B07, 0x2B1B, 0x2B1C, 0x2B50, 0x2B55, 0x3030, 0x303D, 0x3297, 0x3299 }; public static long[][] data = { new long[] {}, new long[]//189 {0x00000000D83DDE04L, 0x00000000D83DDE03L, 0x00000000D83DDE00L, 0x00000000D83DDE0AL, 0x000000000000263AL, 0x00000000D83DDE09L, 0x00000000D83DDE0DL, 0x00000000D83DDE18L, 0x00000000D83DDE1AL, 0x00000000D83DDE17L, 0x00000000D83DDE19L, 0x00000000D83DDE1CL, 0x00000000D83DDE1DL, 0x00000000D83DDE1BL, 0x00000000D83DDE33L, 0x00000000D83DDE01L, 0x00000000D83DDE14L, 0x00000000D83DDE0CL, 0x00000000D83DDE12L, 0x00000000D83DDE1EL, 0x00000000D83DDE23L, 0x00000000D83DDE22L, 0x00000000D83DDE02L, 0x00000000D83DDE2DL, 0x00000000D83DDE2AL, 0x00000000D83DDE25L, 0x00000000D83DDE30L, 0x00000000D83DDE05L, 0x00000000D83DDE13L, 0x00000000D83DDE29L, 0x00000000D83DDE2BL, 0x00000000D83DDE28L, 0x00000000D83DDE31L, 0x00000000D83DDE20L, 0x00000000D83DDE21L, 0x00000000D83DDE24L, 0x00000000D83DDE16L, 0x00000000D83DDE06L, 0x00000000D83DDE0BL, 0x00000000D83DDE37L, 0x00000000D83DDE0EL, 0x00000000D83DDE34L, 0x00000000D83DDE35L, 0x00000000D83DDE32L, 0x00000000D83DDE1FL, 0x00000000D83DDE26L, 0x00000000D83DDE27L, 0x00000000D83DDE08L, 0x00000000D83DDC7FL, 0x00000000D83DDE2EL, 0x00000000D83DDE2CL, 0x00000000D83DDE10L, 0x00000000D83DDE15L, 0x00000000D83DDE2FL, 0x00000000D83DDE36L, 0x00000000D83DDE07L, 0x00000000D83DDE0FL, 0x00000000D83DDE11L, 0x00000000D83DDC72L, 0x00000000D83DDC73L, 0x00000000D83DDC6EL, 0x00000000D83DDC77L, 0x00000000D83DDC82L, 0x00000000D83DDC76L, 0x00000000D83DDC66L, 0x00000000D83DDC67L, 0x00000000D83DDC68L, 0x00000000D83DDC69L, 0x00000000D83DDC74L, 0x00000000D83DDC75L, 0x00000000D83DDC71L, 0x00000000D83DDC7CL, 0x00000000D83DDC78L, 0x00000000D83DDE3AL, 0x00000000D83DDE38L, 0x00000000D83DDE3BL, 0x00000000D83DDE3DL, 0x00000000D83DDE3CL, 0x00000000D83DDE40L, 0x00000000D83DDE3FL, 0x00000000D83DDE39L, 0x00000000D83DDE3EL, 0x00000000D83DDC79L, 0x00000000D83DDC7AL, 0x00000000D83DDE48L, 0x00000000D83DDE49L, 0x00000000D83DDE4AL, 0x00000000D83DDC80L, 0x00000000D83DDC7DL, 0x00000000D83DDCA9L, 0x00000000D83DDD25L, 0x0000000000002728L, 0x00000000D83CDF1FL, 0x00000000D83DDCABL, 0x00000000D83DDCA5L, 0x00000000D83DDCA2L, 0x00000000D83DDCA6L, 0x00000000D83DDCA7L, 0x00000000D83DDCA4L, 0x00000000D83DDCA8L, 0x00000000D83DDC42L, 0x00000000D83DDC40L, 0x00000000D83DDC43L, 0x00000000D83DDC45L, 0x00000000D83DDC44L, 0x00000000D83DDC4DL, 0x00000000D83DDC4EL, 0x00000000D83DDC4CL, 0x00000000D83DDC4AL, 0x000000000000270AL, 0x000000000000270CL, 0x00000000D83DDC4BL, 0x000000000000270BL, 0x00000000D83DDC50L, 0x00000000D83DDC46L, 0x00000000D83DDC47L, 0x00000000D83DDC49L, 0x00000000D83DDC48L, 0x00000000D83DDE4CL, 0x00000000D83DDE4FL, 0x000000000000261DL, 0x00000000D83DDC4FL, 0x00000000D83DDCAAL, 0x00000000D83DDEB6L, 0x00000000D83CDFC3L, 0x00000000D83DDC83L, 0x00000000D83DDC6BL, 0x00000000D83DDC6AL, 0x00000000D83DDC6CL, 0x00000000D83DDC6DL, 0x00000000D83DDC8FL, 0x00000000D83DDC91L, 0x00000000D83DDC6FL, 0x00000000D83DDE46L, 0x00000000D83DDE45L, 0x00000000D83DDC81L, 0x00000000D83DDE4BL, 0x00000000D83DDC86L, 0x00000000D83DDC87L, 0x00000000D83DDC85L, 0x00000000D83DDC70L, 0x00000000D83DDE4EL, 0x00000000D83DDE4DL, 0x00000000D83DDE47L, 0x00000000D83CDFA9L, 0x00000000D83DDC51L, 0x00000000D83DDC52L, 0x00000000D83DDC5FL, 0x00000000D83DDC5EL, 0x00000000D83DDC61L, 0x00000000D83DDC60L, 0x00000000D83DDC62L, 0x00000000D83DDC55L, 0x00000000D83DDC54L, 0x00000000D83DDC5AL, 0x00000000D83DDC57L, 0x00000000D83CDFBDL, 0x00000000D83DDC56L, 0x00000000D83DDC58L, 0x00000000D83DDC59L, 0x00000000D83DDCBCL, 0x00000000D83DDC5CL, 0x00000000D83DDC5DL, 0x00000000D83DDC5BL, 0x00000000D83DDC53L, 0x00000000D83CDF80L, 0x00000000D83CDF02L, 0x00000000D83DDC84L, 0x00000000D83DDC9BL, 0x00000000D83DDC99L, 0x00000000D83DDC9CL, 0x00000000D83DDC9AL, 0x0000000000002764L, 0x00000000D83DDC94L, 0x00000000D83DDC97L, 0x00000000D83DDC93L, 0x00000000D83DDC95L, 0x00000000D83DDC96L, 0x00000000D83DDC9EL, 0x00000000D83DDC98L, 0x00000000D83DDC8CL, 0x00000000D83DDC8BL, 0x00000000D83DDC8DL, 0x00000000D83DDC8EL, 0x00000000D83DDC64L, 0x00000000D83DDC65L, 0x00000000D83DDCACL, 0x00000000D83DDC63L, 0x00000000D83DDCADL}, new long[]//116 {0x00000000D83DDC36L, 0x00000000D83DDC3AL, 0x00000000D83DDC31L, 0x00000000D83DDC2DL, 0x00000000D83DDC39L, 0x00000000D83DDC30L, 0x00000000D83DDC38L, 0x00000000D83DDC2FL, 0x00000000D83DDC28L, 0x00000000D83DDC3BL, 0x00000000D83DDC37L, 0x00000000D83DDC3DL, 0x00000000D83DDC2EL, 0x00000000D83DDC17L, 0x00000000D83DDC35L, 0x00000000D83DDC12L, 0x00000000D83DDC34L, 0x00000000D83DDC11L, 0x00000000D83DDC18L, 0x00000000D83DDC3CL, 0x00000000D83DDC27L, 0x00000000D83DDC26L, 0x00000000D83DDC24L, 0x00000000D83DDC25L, 0x00000000D83DDC23L, 0x00000000D83DDC14L, 0x00000000D83DDC0DL, 0x00000000D83DDC22L, 0x00000000D83DDC1BL, 0x00000000D83DDC1DL, 0x00000000D83DDC1CL, 0x00000000D83DDC1EL, 0x00000000D83DDC0CL, 0x00000000D83DDC19L, 0x00000000D83DDC1AL, 0x00000000D83DDC20L, 0x00000000D83DDC1FL, 0x00000000D83DDC2CL, 0x00000000D83DDC33L, 0x00000000D83DDC0BL, 0x00000000D83DDC04L, 0x00000000D83DDC0FL, 0x00000000D83DDC00L, 0x00000000D83DDC03L, 0x00000000D83DDC05L, 0x00000000D83DDC07L, 0x00000000D83DDC09L, 0x00000000D83DDC0EL, 0x00000000D83DDC10L, 0x00000000D83DDC13L, 0x00000000D83DDC15L, 0x00000000D83DDC16L, 0x00000000D83DDC01L, 0x00000000D83DDC02L, 0x00000000D83DDC32L, 0x00000000D83DDC21L, 0x00000000D83DDC0AL, 0x00000000D83DDC2BL, 0x00000000D83DDC2AL, 0x00000000D83DDC06L, 0x00000000D83DDC08L, 0x00000000D83DDC29L, 0x00000000D83DDC3EL, 0x00000000D83DDC90L, 0x00000000D83CDF38L, 0x00000000D83CDF37L, 0x00000000D83CDF40L, 0x00000000D83CDF39L, 0x00000000D83CDF3BL, 0x00000000D83CDF3AL, 0x00000000D83CDF41L, 0x00000000D83CDF43L, 0x00000000D83CDF42L, 0x00000000D83CDF3FL, 0x00000000D83CDF3EL, 0x00000000D83CDF44L, 0x00000000D83CDF35L, 0x00000000D83CDF34L, 0x00000000D83CDF32L, 0x00000000D83CDF33L, 0x00000000D83CDF30L, 0x00000000D83CDF31L, 0x00000000D83CDF3CL, 0x00000000D83CDF10L, 0x00000000D83CDF1EL, 0x00000000D83CDF1DL, 0x00000000D83CDF1AL, 0x00000000D83CDF11L, 0x00000000D83CDF12L, 0x00000000D83CDF13L, 0x00000000D83CDF14L, 0x00000000D83CDF15L, 0x00000000D83CDF16L, 0x00000000D83CDF17L, 0x00000000D83CDF18L, 0x00000000D83CDF1CL, 0x00000000D83CDF1BL, 0x00000000D83CDF19L, 0x00000000D83CDF0DL, 0x00000000D83CDF0EL, 0x00000000D83CDF0FL, 0x00000000D83CDF0BL, 0x00000000D83CDF0CL, 0x00000000D83CDF20L, 0x0000000000002B50L, 0x0000000000002600L, 0x00000000000026C5L, 0x0000000000002601L, 0x00000000000026A1L, 0x0000000000002614L, 0x0000000000002744L, 0x00000000000026C4L, 0x00000000D83CDF00L, 0x00000000D83CDF01L, 0x00000000D83CDF08L, 0x00000000D83CDF0AL}, new long[]//230 {0x00000000D83CDF8DL, 0x00000000D83DDC9DL, 0x00000000D83CDF8EL, 0x00000000D83CDF92L, 0x00000000D83CDF93L, 0x00000000D83CDF8FL, 0x00000000D83CDF86L, 0x00000000D83CDF87L, 0x00000000D83CDF90L, 0x00000000D83CDF91L, 0x00000000D83CDF83L, 0x00000000D83DDC7BL, 0x00000000D83CDF85L, 0x00000000D83CDF84L, 0x00000000D83CDF81L, 0x00000000D83CDF8BL, 0x00000000D83CDF89L, 0x00000000D83CDF8AL, 0x00000000D83CDF88L, 0x00000000D83CDF8CL, 0x00000000D83DDD2EL, 0x00000000D83CDFA5L, 0x00000000D83DDCF7L, 0x00000000D83DDCF9L, 0x00000000D83DDCFCL, 0x00000000D83DDCBFL, 0x00000000D83DDCC0L, 0x00000000D83DDCBDL, 0x00000000D83DDCBEL, 0x00000000D83DDCBBL, 0x00000000D83DDCF1L, 0x000000000000260EL, 0x00000000D83DDCDEL, 0x00000000D83DDCDFL, 0x00000000D83DDCE0L, 0x00000000D83DDCE1L, 0x00000000D83DDCFAL, 0x00000000D83DDCFBL, 0x00000000D83DDD0AL, 0x00000000D83DDD09L, 0x00000000D83DDD08L, 0x00000000D83DDD07L, 0x00000000D83DDD14L, 0x00000000D83DDD15L, 0x00000000D83DDCE2L, 0x00000000D83DDCE3L, 0x00000000000023F3L, 0x000000000000231BL, 0x00000000000023F0L, 0x000000000000231AL, 0x00000000D83DDD13L, 0x00000000D83DDD12L, 0x00000000D83DDD0FL, 0x00000000D83DDD10L, 0x00000000D83DDD11L, 0x00000000D83DDD0EL, 0x00000000D83DDCA1L, 0x00000000D83DDD26L, 0x00000000D83DDD06L, 0x00000000D83DDD05L, 0x00000000D83DDD0CL, 0x00000000D83DDD0BL, 0x00000000D83DDD0DL, 0x00000000D83DDEC1L, 0x00000000D83DDEC0L, 0x00000000D83DDEBFL, 0x00000000D83DDEBDL, 0x00000000D83DDD27L, 0x00000000D83DDD29L, 0x00000000D83DDD28L, 0x00000000D83DDEAAL, 0x00000000D83DDEACL, 0x00000000D83DDCA3L, 0x00000000D83DDD2BL, 0x00000000D83DDD2AL, 0x00000000D83DDC8AL, 0x00000000D83DDC89L, 0x00000000D83DDCB0L, 0x00000000D83DDCB4L, 0x00000000D83DDCB5L, 0x00000000D83DDCB7L, 0x00000000D83DDCB6L, 0x00000000D83DDCB3L, 0x00000000D83DDCB8L, 0x00000000D83DDCF2L, 0x00000000D83DDCE7L, 0x00000000D83DDCE5L, 0x00000000D83DDCE4L, 0x0000000000002709L, 0x00000000D83DDCE9L, 0x00000000D83DDCE8L, 0x00000000D83DDCEFL, 0x00000000D83DDCEBL, 0x00000000D83DDCEAL, 0x00000000D83DDCECL, 0x00000000D83DDCEDL, 0x00000000D83DDCEEL, 0x00000000D83DDCE6L, 0x00000000D83DDCDDL, 0x00000000D83DDCC4L, 0x00000000D83DDCC3L, 0x00000000D83DDCD1L, 0x00000000D83DDCCAL, 0x00000000D83DDCC8L, 0x00000000D83DDCC9L, 0x00000000D83DDCDCL, 0x00000000D83DDCCBL, 0x00000000D83DDCC5L, 0x00000000D83DDCC6L, 0x00000000D83DDCC7L, 0x00000000D83DDCC1L, 0x00000000D83DDCC2L, 0x0000000000002702L, 0x00000000D83DDCCCL, 0x00000000D83DDCCEL, 0x0000000000002712L, 0x000000000000270FL, 0x00000000D83DDCCFL, 0x00000000D83DDCD0L, 0x00000000D83DDCD5L, 0x00000000D83DDCD7L, 0x00000000D83DDCD8L, 0x00000000D83DDCD9L, 0x00000000D83DDCD3L, 0x00000000D83DDCD4L, 0x00000000D83DDCD2L, 0x00000000D83DDCDAL, 0x00000000D83DDCD6L, 0x00000000D83DDD16L, 0x00000000D83DDCDBL, 0x00000000D83DDD2CL, 0x00000000D83DDD2DL, 0x00000000D83DDCF0L, 0x00000000D83CDFA8L, 0x00000000D83CDFACL, 0x00000000D83CDFA4L, 0x00000000D83CDFA7L, 0x00000000D83CDFBCL, 0x00000000D83CDFB5L, 0x00000000D83CDFB6L, 0x00000000D83CDFB9L, 0x00000000D83CDFBBL, 0x00000000D83CDFBAL, 0x00000000D83CDFB7L, 0x00000000D83CDFB8L, 0x00000000D83DDC7EL, 0x00000000D83CDFAEL, 0x00000000D83CDCCFL, 0x00000000D83CDFB4L, 0x00000000D83CDC04L, 0x00000000D83CDFB2L, 0x00000000D83CDFAFL, 0x00000000D83CDFC8L, 0x00000000D83CDFC0L, 0x00000000000026BDL, 0x00000000000026BEL, 0x00000000D83CDFBEL, 0x00000000D83CDFB1L, 0x00000000D83CDFC9L, 0x00000000D83CDFB3L, 0x00000000000026F3L, 0x00000000D83DDEB5L, 0x00000000D83DDEB4L, 0x00000000D83CDFC1L, 0x00000000D83CDFC7L, 0x00000000D83CDFC6L, 0x00000000D83CDFBFL, 0x00000000D83CDFC2L, 0x00000000D83CDFCAL, 0x00000000D83CDFC4L, 0x00000000D83CDFA3L, 0x0000000000002615L, 0x00000000D83CDF75L, 0x00000000D83CDF76L, 0x00000000D83CDF7CL, 0x00000000D83CDF7AL, 0x00000000D83CDF7BL, 0x00000000D83CDF78L, 0x00000000D83CDF79L, 0x00000000D83CDF77L, 0x00000000D83CDF74L, 0x00000000D83CDF55L, 0x00000000D83CDF54L, 0x00000000D83CDF5FL, 0x00000000D83CDF57L, 0x00000000D83CDF56L, 0x00000000D83CDF5DL, 0x00000000D83CDF5BL, 0x00000000D83CDF64L, 0x00000000D83CDF71L, 0x00000000D83CDF63L, 0x00000000D83CDF65L, 0x00000000D83CDF59L, 0x00000000D83CDF58L, 0x00000000D83CDF5AL, 0x00000000D83CDF5CL, 0x00000000D83CDF72L, 0x00000000D83CDF62L, 0x00000000D83CDF61L, 0x00000000D83CDF73L, 0x00000000D83CDF5EL, 0x00000000D83CDF69L, 0x00000000D83CDF6EL, 0x00000000D83CDF66L, 0x00000000D83CDF68L, 0x00000000D83CDF67L, 0x00000000D83CDF82L, 0x00000000D83CDF70L, 0x00000000D83CDF6AL, 0x00000000D83CDF6BL, 0x00000000D83CDF6CL, 0x00000000D83CDF6DL, 0x00000000D83CDF6FL, 0x00000000D83CDF4EL, 0x00000000D83CDF4FL, 0x00000000D83CDF4AL, 0x00000000D83CDF4BL, 0x00000000D83CDF52L, 0x00000000D83CDF47L, 0x00000000D83CDF49L, 0x00000000D83CDF53L, 0x00000000D83CDF51L, 0x00000000D83CDF48L, 0x00000000D83CDF4CL, 0x00000000D83CDF50L, 0x00000000D83CDF4DL, 0x00000000D83CDF60L, 0x00000000D83CDF46L, 0x00000000D83CDF45L, 0x00000000D83CDF3DL}, new long[]//101 {0x00000000D83CDFE0L, 0x00000000D83CDFE1L, 0x00000000D83CDFEBL, 0x00000000D83CDFE2L, 0x00000000D83CDFE3L, 0x00000000D83CDFE5L, 0x00000000D83CDFE6L, 0x00000000D83CDFEAL, 0x00000000D83CDFE9L, 0x00000000D83CDFE8L, 0x00000000D83DDC92L, 0x00000000000026EAL, 0x00000000D83CDFECL, 0x00000000D83CDFE4L, 0x00000000D83CDF07L, 0x00000000D83CDF06L, 0x00000000D83CDFEFL, 0x00000000D83CDFF0L, 0x00000000000026FAL, 0x00000000D83CDFEDL, 0x00000000D83DDDFCL, 0x00000000D83DDDFEL, 0x00000000D83DDDFBL, 0x00000000D83CDF04L, 0x00000000D83CDF05L, 0x00000000D83CDF03L, 0x00000000D83DDDFDL, 0x00000000D83CDF09L, 0x00000000D83CDFA0L, 0x00000000D83CDFA1L, 0x00000000000026F2L, 0x00000000D83CDFA2L, 0x00000000D83DDEA2L, 0x00000000000026F5L, 0x00000000D83DDEA4L, 0x00000000D83DDEA3L, 0x0000000000002693L, 0x00000000D83DDE80L, 0x0000000000002708L, 0x00000000D83DDCBAL, 0x00000000D83DDE81L, 0x00000000D83DDE82L, 0x00000000D83DDE8AL, 0x00000000D83DDE89L, 0x00000000D83DDE9EL, 0x00000000D83DDE86L, 0x00000000D83DDE84L, 0x00000000D83DDE85L, 0x00000000D83DDE88L, 0x00000000D83DDE87L, 0x00000000D83DDE9DL, 0x00000000D83DDE8BL, 0x00000000D83DDE83L, 0x00000000D83DDE8EL, 0x00000000D83DDE8CL, 0x00000000D83DDE8DL, 0x00000000D83DDE99L, 0x00000000D83DDE98L, 0x00000000D83DDE97L, 0x00000000D83DDE95L, 0x00000000D83DDE96L, 0x00000000D83DDE9BL, 0x00000000D83DDE9AL, 0x00000000D83DDEA8L, 0x00000000D83DDE93L, 0x00000000D83DDE94L, 0x00000000D83DDE92L, 0x00000000D83DDE91L, 0x00000000D83DDE90L, 0x00000000D83DDEB2L, 0x00000000D83DDEA1L, 0x00000000D83DDE9FL, 0x00000000D83DDEA0L, 0x00000000D83DDE9CL, 0x00000000D83DDC88L, 0x00000000D83DDE8FL, 0x00000000D83CDFABL, 0x00000000D83DDEA6L, 0x00000000D83DDEA5L, 0x00000000000026A0L, 0x00000000D83DDEA7L, 0x00000000D83DDD30L, 0x00000000000026FDL, 0x00000000D83CDFEEL, 0x00000000D83CDFB0L, 0x0000000000002668L, 0x00000000D83DDDFFL, 0x00000000D83CDFAAL, 0x00000000D83CDFADL, 0x00000000D83DDCCDL, 0x00000000D83DDEA9L, 0xD83CDDEFD83CDDF5L, 0xD83CDDF0D83CDDF7L, 0xD83CDDE9D83CDDEAL, 0xD83CDDE8D83CDDF3L, 0xD83CDDFAD83CDDF8L, 0xD83CDDEBD83CDDF7L, 0xD83CDDEAD83CDDF8L, 0xD83CDDEED83CDDF9L, 0xD83CDDF7D83CDDFAL, 0xD83CDDECD83CDDE7L}, new long[]//209 {0x00000000003120E3L, 0x00000000003220E3L, 0x00000000003320E3L, 0x00000000003420E3L, 0x00000000003520E3L, 0x00000000003620E3L, 0x00000000003720E3L, 0x00000000003820E3L, 0x00000000003920E3L, 0x00000000003020E3L, 0x00000000D83DDD1FL, 0x00000000D83DDD22L, 0x00000000002320E3L, 0x00000000D83DDD23L, 0x0000000000002B06L, 0x0000000000002B07L, 0x0000000000002B05L, 0x00000000000027A1L, 0x00000000D83DDD20L, 0x00000000D83DDD21L, 0x00000000D83DDD24L, 0x0000000000002197L, 0x0000000000002196L, 0x0000000000002198L, 0x0000000000002199L, 0x0000000000002194L, 0x0000000000002195L, 0x00000000D83DDD04L, 0x00000000000025C0L, 0x00000000000025B6L, 0x00000000D83DDD3CL, 0x00000000D83DDD3DL, 0x00000000000021A9L, 0x00000000000021AAL, 0x0000000000002139L, 0x00000000000023EAL, 0x00000000000023E9L, 0x00000000000023EBL, 0x00000000000023ECL, 0x0000000000002935L, 0x0000000000002934L, 0x00000000D83CDD97L, 0x00000000D83DDD00L, 0x00000000D83DDD01L, 0x00000000D83DDD02L, 0x00000000D83CDD95L, 0x00000000D83CDD99L, 0x00000000D83CDD92L, 0x00000000D83CDD93L, 0x00000000D83CDD96L, 0x00000000D83DDCF6L, 0x00000000D83CDFA6L, 0x00000000D83CDE01L, 0x00000000D83CDE2FL, 0x00000000D83CDE33L, 0x00000000D83CDE35L, 0x00000000D83CDE32L, 0x00000000D83CDE34L, 0x00000000D83CDE50L, 0x00000000D83CDE39L, 0x00000000D83CDE3AL, 0x00000000D83CDE36L, 0x00000000D83CDE1AL, 0x00000000D83DDEBBL, 0x00000000D83DDEB9L, 0x00000000D83DDEBAL, 0x00000000D83DDEBCL, 0x00000000D83DDEBEL, 0x00000000D83DDEB0L, 0x00000000D83DDEAEL, 0x00000000D83CDD7FL, 0x000000000000267FL, 0x00000000D83DDEADL, 0x00000000D83CDE37L, 0x00000000D83CDE38L, 0x00000000D83CDE02L, 0x00000000000024C2L, 0x00000000D83DDEC2L, 0x00000000D83DDEC4L, 0x00000000D83DDEC5L, 0x00000000D83DDEC3L, 0x00000000D83CDE51L, 0x0000000000003299L, 0x0000000000003297L, 0x00000000D83CDD91L, 0x00000000D83CDD98L, 0x00000000D83CDD94L, 0x00000000D83DDEABL, 0x00000000D83DDD1EL, 0x00000000D83DDCF5L, 0x00000000D83DDEAFL, 0x00000000D83DDEB1L, 0x00000000D83DDEB3L, 0x00000000D83DDEB7L, 0x00000000D83DDEB8L, 0x00000000000026D4L, 0x0000000000002733L, 0x0000000000002747L, 0x000000000000274EL, 0x0000000000002705L, 0x0000000000002734L, 0x00000000D83DDC9FL, 0x00000000D83CDD9AL, 0x00000000D83DDCF3L, 0x00000000D83DDCF4L, 0x00000000D83CDD70L, 0x00000000D83CDD71L, 0x00000000D83CDD8EL, 0x00000000D83CDD7EL, 0x00000000D83DDCA0L, 0x00000000000027BFL, 0x000000000000267BL, 0x0000000000002648L, 0x0000000000002649L, 0x000000000000264AL, 0x000000000000264BL, 0x000000000000264CL, 0x000000000000264DL, 0x000000000000264EL, 0x000000000000264FL, 0x0000000000002650L, 0x0000000000002651L, 0x0000000000002652L, 0x0000000000002653L, 0x00000000000026CEL, 0x00000000D83DDD2FL, 0x00000000D83CDFE7L, 0x00000000D83DDCB9L, 0x00000000D83DDCB2L, 0x00000000D83DDCB1L, 0x00000000000000A9L, 0x00000000000000AEL, 0x0000000000002122L, 0x000000000000303DL, 0x0000000000003030L, 0x00000000D83DDD1DL, 0x00000000D83DDD1AL, 0x00000000D83DDD19L, 0x00000000D83DDD1BL, 0x00000000D83DDD1CL, 0x000000000000274CL, 0x0000000000002B55L, 0x0000000000002757L, 0x000000000000203CL, 0x0000000000002049L, 0x0000000000002753L, 0x0000000000002755L, 0x0000000000002754L, 0x00000000D83DDD03L, 0x00000000D83DDD5BL, 0x00000000D83DDD67L, 0x00000000D83DDD50L, 0x00000000D83DDD5CL, 0x00000000D83DDD51L, 0x00000000D83DDD5DL, 0x00000000D83DDD52L, 0x00000000D83DDD5EL, 0x00000000D83DDD53L, 0x00000000D83DDD5FL, 0x00000000D83DDD54L, 0x00000000D83DDD60L, 0x00000000D83DDD55L, 0x00000000D83DDD56L, 0x00000000D83DDD57L, 0x00000000D83DDD58L, 0x00000000D83DDD59L, 0x00000000D83DDD5AL, 0x00000000D83DDD61L, 0x00000000D83DDD62L, 0x00000000D83DDD63L, 0x00000000D83DDD64L, 0x00000000D83DDD65L, 0x00000000D83DDD66L, 0x0000000000002716L, 0x0000000000002795L, 0x0000000000002796L, 0x0000000000002797L, 0x0000000000002660L, 0x0000000000002665L, 0x0000000000002663L, 0x0000000000002666L, 0x00000000D83DDCAEL, 0x00000000D83DDCAFL, 0x0000000000002714L, 0x0000000000002611L, 0x00000000D83DDD18L, 0x00000000D83DDD17L, 0x00000000000027B0L, 0x00000000D83DDD31L, 0x00000000D83DDD32L, 0x00000000D83DDD33L, 0x00000000000025FCL, 0x00000000000025FBL, 0x00000000000025FEL, 0x00000000000025FDL, 0x00000000000025AAL, 0x00000000000025ABL, 0x00000000D83DDD3AL, 0x0000000000002B1CL, 0x0000000000002B1BL, 0x00000000000026ABL, 0x00000000000026AAL, 0x00000000D83DDD34L, 0x00000000D83DDD35L, 0x00000000D83DDD3BL, 0x00000000D83DDD36L, 0x00000000D83DDD37L, 0x00000000D83DDD38L, 0x00000000D83DDD39L}}; static { if (AndroidUtilities.density <= 1.0f) { emojiFullSize = 30; } else if (AndroidUtilities.density <= 1.5f) { emojiFullSize = 45; } else if (AndroidUtilities.density <= 2.0f) { emojiFullSize = 60; } else { emojiFullSize = 90; } drawImgSize = AndroidUtilities.dp(20); if (AndroidUtilities.isTablet()) { bigImgSize = AndroidUtilities.dp(40); } else { bigImgSize = AndroidUtilities.dp(30); } for (int j = 1; j < data.length; j++) { for (int i = 0; i < data[j].length; i++) { Rect rect = new Rect((i % cols[j - 1]) * emojiFullSize, (i / cols[j - 1]) * emojiFullSize, emojiFullSize, emojiFullSize); rects.put(data[j][i], new DrawableInfo(rect, (byte)(j - 1))); } } placeholderPaint = new Paint(); placeholderPaint.setColor(0x00000000); } private static void loadEmoji(final int page) { try { float scale = 1.0f; int imageResize = 1; if (AndroidUtilities.density <= 1.0f) { scale = 2.0f; imageResize = 2; } else if (AndroidUtilities.density <= 1.5f) { scale = 3.0f; imageResize = 2; } else if (AndroidUtilities.density <= 2.0f) { scale = 2.0f; } else { scale = 3.0f; } String imageName = String.format(Locale.US, "emoji%.01fx_%d.jpg", scale, page); File imageFile = ApplicationLoader.applicationContext.getFileStreamPath(imageName); if (!imageFile.exists()) { InputStream is = ApplicationLoader.applicationContext.getAssets().open("emoji/" + imageName); Utilities.copyFile(is, imageFile); is.close(); } BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inJustDecodeBounds = true; BitmapFactory.decodeFile(imageFile.getAbsolutePath(), opts); int width = opts.outWidth / imageResize; int height = opts.outHeight / imageResize; int[] bitmap = new int[width * height]; Utilities.loadBitmap(imageFile.getAbsolutePath(), bitmap, imageResize, 0, width, height); imageName = String.format(Locale.US, "emoji%.01fx_a_%d.jpg", scale, page); imageFile = ApplicationLoader.applicationContext.getFileStreamPath(imageName); if (!imageFile.exists()) { InputStream is = ApplicationLoader.applicationContext.getAssets().open("emoji/" + imageName); Utilities.copyFile(is, imageFile); is.close(); } Utilities.loadBitmap(imageFile.getAbsolutePath(), bitmap, imageResize, 0, width, height); final EmojiBitmap emojiBitmap = new EmojiBitmap(bitmap, width, height); AndroidUtilities.RunOnUIThread(new Runnable() { @Override public void run() { emojiBmp[page] = emojiBitmap; NotificationCenter.getInstance().postNotificationName(NotificationCenter.emojiDidLoaded); } }); } catch(Throwable x) { FileLog.e("tmessages", "Error loading emoji", x); } } private static void loadEmojiAsync(final int page) { if (loadingEmoji[page]) { return; } loadingEmoji[page] = true; new Thread(new Runnable() { public void run() { loadEmoji(page); loadingEmoji[page] = false; } }).start(); } public static void invalidateAll(View view) { if (view instanceof ViewGroup) { ViewGroup g = (ViewGroup)view; for (int i = 0; i < g.getChildCount(); i++) { invalidateAll(g.getChildAt(i)); } } else if (view instanceof TextView) { view.invalidate(); } } public static Drawable getEmojiDrawable(long code) { DrawableInfo info = rects.get(code); if (info == null) { FileLog.e("tmessages", "No emoji drawable for code " + String.format("%016X", code)); return null; } EmojiDrawable ed = new EmojiDrawable(info); ed.setBounds(0, 0, drawImgSize, drawImgSize); return ed; } public static Drawable getEmojiBigDrawable(long code) { EmojiDrawable ed = (EmojiDrawable)getEmojiDrawable(code); if (ed == null) { return null; } ed.setBounds(0, 0, bigImgSize, bigImgSize); ed.fullSize = true; return ed; } public static class EmojiDrawable extends Drawable { private DrawableInfo info; boolean fullSize = false; private static Paint paint; static { paint = new Paint(); paint.setFlags(Paint.FILTER_BITMAP_FLAG | Paint.ANTI_ALIAS_FLAG); } public EmojiDrawable(DrawableInfo i) { info = i; } @Override public void draw(Canvas canvas) { EmojiBitmap bitmap = emojiBmp[info.page]; if (bitmap == null) { loadEmojiAsync(info.page); canvas.drawRect(getBounds(), placeholderPaint); return; } float scale = 1; int offset = 0; if (fullSize) { scale = (float) bigImgSize / (float) emojiFullSize; offset = (getBounds().width() - bigImgSize) / 2; } else { scale = (float) getBounds().width() / (float) emojiFullSize; } canvas.save(); canvas.scale(scale, scale); canvas.drawBitmap(bitmap.colors, info.rect.top * bitmap.width + info.rect.left, bitmap.width, offset, offset, info.rect.right, info.rect.bottom, true, paint); canvas.restore(); } @Override public int getOpacity() { return 0; } @Override public void setAlpha(int alpha) { } @Override public void setColorFilter(ColorFilter cf) { } } private static class DrawableInfo { public Rect rect; public byte page; public DrawableInfo(Rect r, byte p) { rect = r; page = p; } } private static boolean inArray(char c, char[] a) { for (char cc : a) { if (cc == c) { return true; } } return false; } public static CharSequence replaceEmoji(CharSequence cs, Paint.FontMetricsInt fontMetrics, int size) { if (cs == null || cs.length() == 0) { return cs; } Spannable s; if (cs instanceof Spannable) { s = (Spannable)cs; } else { s = Spannable.Factory.getInstance().newSpannable(cs); } long buf = 0; int emojiCount = 0; try { for (int i = 0; i < cs.length(); i++) { char c = cs.charAt(i); if (c == 0xD83C || c == 0xD83D || (buf != 0 && (buf & 0xFFFFFFFF00000000L) == 0 && (c >= 0xDDE6 && c <= 0xDDFA))) { buf <<= 16; buf |= c; } else if (buf > 0 && (c & 0xF000) == 0xD000) { buf <<= 16; buf |= c; Drawable d = Emoji.getEmojiDrawable(buf); if (d != null) { EmojiSpan span = new EmojiSpan(d, DynamicDrawableSpan.ALIGN_BOTTOM, size, fontMetrics); emojiCount++; if (c>= 0xDDE6 && c <= 0xDDFA) { s.setSpan(span, i - 3, i + 1, 0); } else { s.setSpan(span, i - 1, i + 1, 0); } } buf = 0; } else if (c == 0x20E3) { if (i > 0) { char c2 = cs.charAt(i - 1); if ((c2 >= '0' && c2 <= '9') || c2 == '#') { buf = c2; buf <<= 16; buf |= c; Drawable d = Emoji.getEmojiDrawable(buf); if (d != null) { EmojiSpan span = new EmojiSpan(d, DynamicDrawableSpan.ALIGN_BOTTOM, size, fontMetrics); emojiCount++; s.setSpan(span, i - 1, i + 1, 0); } buf = 0; } } } else if (inArray(c, emojiChars)) { Drawable d = Emoji.getEmojiDrawable(c); if (d != null) { EmojiSpan span = new EmojiSpan(d, DynamicDrawableSpan.ALIGN_BOTTOM, size, fontMetrics); emojiCount++; s.setSpan(span, i, i + 1, 0); } } if (emojiCount >= 50) { break; } } } catch (Exception e) { FileLog.e("tmessages", e); return cs; } return s; } public static class EmojiSpan extends ImageSpan { private Paint.FontMetricsInt fontMetrics = null; int size = AndroidUtilities.dp(20); public EmojiSpan(Drawable d, int verticalAlignment, int s, Paint.FontMetricsInt original) { super(d, verticalAlignment); fontMetrics = original; if (original != null) { size = Math.abs(fontMetrics.descent) + Math.abs(fontMetrics.ascent); if (size == 0) { size = AndroidUtilities.dp(20); } } } @Override public int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) { if (fm == null) { fm = new Paint.FontMetricsInt(); } if (fontMetrics == null) { int sz = super.getSize(paint, text, start, end, fm); int offset = AndroidUtilities.dp(8); int w = AndroidUtilities.dp(10); fm.top = -w - offset; fm.bottom = w - offset; fm.ascent = -w - offset; fm.leading = 0; fm.descent = w - offset; return sz; } else { if (fm != null) { fm.ascent = fontMetrics.ascent; fm.descent = fontMetrics.descent; fm.top = fontMetrics.top; fm.bottom = fontMetrics.bottom; } if (getDrawable() != null) { getDrawable().setBounds(0, 0, size, size); } return size; } } } }
gpl-2.0
infoalex/huayra
srh/pages/vistas/catalogos/sigesp_srh_cat_uni_vipladin.php
5811
<?php session_start(); if (isset($_GET["valor_cat"])) { $ls_ejecucion=$_GET["valor_cat"]; } else {$ls_ejecucion="";} if (isset($_GET["tipo"])) { $ls_tipo=$_GET["tipo"]; } else {$ls_tipo="";} ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Cat&aacute;logo de Departamento</title> <script type="text/javascript" language="JavaScript1.2" src="../shared/js/valida_tecla.js"></script> <script type="text/javascript" language="JavaScript1.2" src="../../js/sigesp_srh_js_uni_vipladin.js"></script> <script type="text/javascript" language="JavaScript1.2" src="../../../public/js/librerias_comunes.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- a:link { color: #006699; } a:visited { color: #006699; } a:active { color: #006699; } --> </style> </head> <body onLoad="doOnLoad()"> <form name="form1" method="post" action=""> <p align="center"> <input name="hidstatus" type="hidden" id="hidstatus" value="<?php print $ls_ejecucion?>"> <input name="hidtipo" type="hidden" id="hidtipo" value="<?php print $ls_tipo?>"> </p> <table width="500" border="0" align="center" cellpadding="1" cellspacing="1"> <tr> <td width="496" colspan="2" class="titulo-celda">Cat&aacute;logo de Unidad VIPLADIN </td> </tr> </table> <br> <table width="500" border="0" cellpadding="0" cellspacing="0" class="formato-blanco" align="center"> <tr> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td width="110"><div align="right">C&oacute;digo</div></td> <td width="388" height="22"><div align="left"> <input name="txtcoduni" type="text" id="txtcoduni" onKeyPress="" onKeyUp="javascript: Buscar()" > </div></td> </tr> <tr> <td width="110"><div align="right">Denominaci&oacute;n</div></td> <td width="388" height="22"><div align="left"> <input name="txtdenuni" type="text" id="txtdenuni" size="60" maxlength="254" onKeyUp="javascript: Buscar()"> </div></td> </tr> <tr> <td>&nbsp;</td> <td><div align="right"></div></td> </tr> </table> <div align="center" id="mostrar" class="oculto1"></div> <table width="500" border="0" cellpadding="0" cellspacing="0" class="fondo-tabla" align="center"> <tr> <td bgcolor="#EBEBEB">&nbsp;</td> </tr> <tr> <td bgcolor="#EBEBEB">&nbsp;</td> </tr> <tr> <td align="center" bgcolor="#EBEBEB"><div id="gridbox" align="center" width="500" height="800" style="background-position:center"></div></td> </tr> </table> </form> <p>&nbsp;</p> <p>&nbsp;</p> </body> <script> var loadDataURL = "../../php/sigesp_srh_a_uni_vipladin.php?valor=createXML"; var actionURL = "../../php/sigesp_srh_a_uni_vipladin.php"; var img="<img src=\"../../../public/imagenes/progress.gif\"> "; var mygrid; var timeoutHandler;//update will be sent automatically to server if row editting was stoped; var rowUpdater;//async. Calls doUpdateRow function when got data from server var rowEraser;//async. Calls doDeleteRow function when got confirmation about row deletion var authorsLoader;//sync. Loads list of available authors from server to populate dropdown (co) var mandFields = [0,1,1,0,0] //initialise (from xml) and populate (from xml) grid function doOnLoad() { divResultado = document.getElementById('mostrar'); divResultado.innerHTML= img; mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../../../public/imagenes/"); //set columns properties mygrid.setHeader("Codigo,Denominacion"); mygrid.setInitWidths("120,380") mygrid.setColAlign("center,center") mygrid.setColTypes("link,ro"); mygrid.setColSorting("str,str")//nuevo ordenacion mygrid.setColumnColor("#FFFFFF,#FFFFFF") mygrid.loadXML(loadDataURL); mygrid.setSkin("xp"); mygrid.init(); setTimeout (terminar_buscar,500); } function terminar_buscar () { divResultado = document.getElementById('mostrar'); divResultado.innerHTML= ''; } function Buscar() { coduni=document.form1.txtcoduni.value; denuni=document.form1.txtdenuni.value; mygrid.clearAll(); divResultado = document.getElementById('mostrar'); divResultado.innerHTML= img; mygrid.loadXML("../../php/sigesp_srh_a_uni_vipladin.php?valor=buscar"+"&txtcodunivi="+coduni+"&txtdenunivi="+denuni); setTimeout (terminar_buscar,500); } function aceptar(ls_coduni,ls_denuni,ls_coddestino,ls_dendestino) { ls_tipo= document.form1.hidtipo.value; if (ls_tipo=='2') { obj=eval("opener.document.form1.txtcodunivi1"); obj.value=ls_coduni; obj1=eval("opener.document.form1.txtdenunivi1"); obj1.value=ls_denuni; } else { obj=eval("opener.document.form1."+ls_coddestino+""); obj.value=ls_coduni; obj1=eval("opener.document.form1."+ls_dendestino+""); obj1.value=ls_denuni; } ls_ejecucion=document.form1.hidstatus.value; if(ls_ejecucion=="1") { opener.document.form1.hidstatus.value="C"; }else{ opener.document.form1.hidstatus.value=""; } opener.document.form1.txtcodunivi.readOnly=true; close(); } function nextPAge(val) { grid.clearAll(); //clear existing data grid.loadXML("some_url.php?page="+val); } </script> </html>
gpl-2.0
white-wolf-17/hero-instantcms
system/controllers/admin/forms/form_ctypes_field.php
7800
<?php class formAdminCtypesField extends cmsForm { public function init($do, $ctype_name) { return array( 'basic' => array( 'type' => 'fieldset', 'childs' => array( new fieldString('name', array( 'title' => LANG_SYSTEM_NAME, 'hint' => $do=='edit' ? LANG_SYSTEM_EDIT_NOTICE : false, 'rules' => array( array('required'), array('sysname'), array('max_length', 20), $do == 'add' ? array('unique_ctype_field', $ctype_name) : false ) )), new fieldString('title', array( 'title' => LANG_CP_FIELD_TITLE, 'rules' => array( array('required'), array('max_length', 100) ) )), new fieldString('hint', array( 'title' => LANG_CP_FIELD_HINT, 'rules' => array( array('max_length', 255) ) )), ) ), 'type' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_TYPE, 'childs' => array( new fieldList('type', array( 'default' => 'string', 'generator' => function() { $field_types = array(); $field_types = cmsForm::getAvailableFormFields(); asort($field_types, SORT_STRING); return $field_types; } )) ) ), 'group' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_FIELDSET, 'childs' => array( new fieldList('fieldset', array( 'title' => LANG_CP_FIELD_FIELDSET_SELECT, 'generator' => function($field) { $model = cmsCore::getModel('content'); $fieldsets = $model->getContentFieldsets($field['ctype_id']); $items = array(''); foreach($fieldsets as $fieldset) { $items[$fieldset] = $fieldset; } return $items; } )), new fieldString('new_fieldset', array( 'title' => LANG_CP_FIELD_FIELDSET_ADD, 'rules' => array( array('max_length', 100) ) )), ) ), 'visibility' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_VISIBILITY, 'childs' => array( new fieldCheckbox('is_in_item', array( 'title' => LANG_CP_FIELD_IN_ITEM, 'default' => true )), new fieldCheckbox('is_in_list', array( 'title' => LANG_CP_FIELD_IN_LIST, )), new fieldCheckbox('is_in_filter', array( 'title' => LANG_CP_FIELD_IN_FILTER, )), ) ), 'labels' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_LABELS, 'childs' => array( new fieldList('options:label_in_list', array( 'title' => LANG_CP_FIELD_LABELS_IN_LIST, 'default' => 'left', 'items' => array( 'left' => LANG_CP_FIELD_LABEL_LEFT, 'top' => LANG_CP_FIELD_LABEL_TOP, 'none' => LANG_CP_FIELD_LABEL_NONE ) )), new fieldList('options:label_in_item', array( 'title' => LANG_CP_FIELD_LABELS_IN_ITEM, 'default' => 'left', 'items' => array( 'left' => LANG_CP_FIELD_LABEL_LEFT, 'top' => LANG_CP_FIELD_LABEL_TOP, 'none' => LANG_CP_FIELD_LABEL_NONE ) )), ) ), 'format' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_FORMAT, 'childs' => array( new fieldCheckbox('options:is_required', array( 'title' => LANG_VALIDATE_REQUIRED, )), new fieldCheckbox('options:is_digits', array( 'title' => LANG_VALIDATE_DIGITS, )), new fieldCheckbox('options:is_alphanumeric', array( 'title' => LANG_VALIDATE_ALPHANUMERIC, )), new fieldCheckbox('options:is_email', array( 'title' => LANG_VALIDATE_EMAIL, )), new fieldCheckbox('options:is_unique', array( 'title' => LANG_VALIDATE_UNIQUE, )), ) ), 'values' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_VALUES, 'childs' => array( new fieldText('values', array( 'size' => 8 )) ) ), 'profile' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_PROFILE_VALUE, 'childs' => array( new fieldList('options:profile_value', array( 'hint' => LANG_CP_FIELD_PROFILE_VALUE_HINT, 'generator' => function($field) { $model = cmsCore::getModel('content'); $model->setTablePrefix(''); $fields = $model->filterIn('type', array('string', 'text', 'html', 'list'))->getContentFields('{users}'); $items = array(''=>'') + array_collection_to_list($fields, 'name', 'title'); return $items; } )) ) ), // 'privacy' => array( // 'type' => 'fieldset', // 'title' => LANG_CP_FIELD_PRIVACY, // 'childs' => array( // new fieldCheckbox('is_private', array( // 'title' => LANG_CP_FIELD_PRIVATE, // )), // ) // ), 'read_access' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_GROUPS_READ, 'childs' => array( new fieldListGroups('groups_read', array( 'show_all' => true )) ) ), 'edit_access' => array( 'type' => 'fieldset', 'title' => LANG_CP_FIELD_GROUPS_EDIT, 'childs' => array( new fieldListGroups('groups_edit', array( 'show_all' => true )) ) ), ); } }
gpl-2.0