code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
import backgroundImages from '@const/background-images'; import * as actions from './actions.js'; import Background from './class.js'; // const getObj = (indexString) => { /* const [type, index] = indexString.split('-') if (typeof index === 'undefined') return {} return store.getState().bgimgState.list[type][index] */ // } const getListInitial = (type) => { let list = []; if (type === 'default') { list = backgroundImages.map( (filename, index) => new Background(filename, type + '-' + index) ); } /* const dir = type == 'custom' ? thePath.bgimgs_custom : thePath.bgimgs const parseData = (name) => { return { name: name } } if (self.nw) { const fs = require('fs') const path = require('path') const getList = (dir) => { return fs.readdirSync(dir) .filter(function (file) { return !fs.lstatSync(path.join(dir, file)).isDirectory() }) .map(function (filename) { return { name: filename, time: fs.statSync(path.join(dir, filename)).mtime.getTime() }; }) .sort(function (a, b) { return b.time - a.time; }) .map(function (o) { return o.name; }) } getList(dir) .forEach(function (name) { list.push(parseData( name, type === 'default' )) }) } else { } */ return list; }; export const initList = (currentIndex = 'default-0') => { const listDefault = getListInitial('default'); const listCustom = getListInitial('custom'); const [type, index] = currentIndex.split('-'); const current = eval( 'list' + type.substr(0, 1).toUpperCase() + type.substr(1) )[index]; // const currentPath = current ? { // original: current.getPath(), // blured: current.getPath('blured') // } : {} return (dispatch) => { dispatch( actions.init({ list: { default: listDefault, custom: listCustom, }, current, //, // currentIndex, // currentPath }) ); }; }; export const add = (/*filename*/) => {}; export const remove = (/*indexCustom*/) => {}; export const change = (obj) => { return (dispatch) => { dispatch(actions.change(obj)); }; }; export const mainImgLoaded = () => (dispatch) => dispatch(actions.mainLoaded());
Diablohu/WhoCallsTheFleet-React
src/api/bgimg/api.js
JavaScript
apache-2.0
2,700
package org.carlspring.strongbox.validation; import javax.inject.Inject; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.carlspring.strongbox.authorization.service.AuthorizationConfigService; import org.springframework.util.StringUtils; /** * @author Pablo Tirado */ public class UniqueRoleNameValidator implements ConstraintValidator<UniqueRoleName, String> { @Inject private AuthorizationConfigService authorizationConfigService; @Override public void initialize(UniqueRoleName constraint) { // empty by design } @Override public boolean isValid(String roleName, ConstraintValidatorContext context) { return StringUtils.isEmpty(roleName) || !authorizationConfigService.get().getRoles().stream().anyMatch(r -> r.getName().equals(roleName)); } }
sbespalov/strongbox
strongbox-web-core/src/main/java/org/carlspring/strongbox/validation/UniqueRoleNameValidator.java
Java
apache-2.0
922
# Copyright (C) 2014-2016 MongoDB, Inc. # # 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. module Mongo module ServerSelector # Encapsulates specifications for selecting servers, with the # primary preferred, given a list of candidates. # # @since 2.0.0 class PrimaryPreferred include Selectable # Get the name of the server mode type. # # @example Get the name of the server mode for this preference. # preference.name # # @return [ Symbol ] :primary_preferred # # @since 2.0.0 def name :primary_preferred end # Whether the slaveOk bit should be set on wire protocol messages. # I.e. whether the operation can be performed on a secondary server. # # @return [ true ] true # # @since 2.0.0 def slave_ok? true end # Whether tag sets are allowed to be defined for this server preference. # # @return [ true ] true # # @since 2.0.0 def tags_allowed? true end # Convert this server preference definition into a format appropriate # for a mongos server. # # @example Convert this server preference definition into a format # for mongos. # preference = Mongo::ServerSelector::PrimaryPreferred.new # preference.to_mongos # # @return [ Hash ] The server preference formatted for a mongos server. # # @since 2.0.0 def to_mongos preference = { :mode => 'primaryPreferred' } preference.merge!({ :tags => tag_sets }) unless tag_sets.empty? preference.merge!({ maxStalenessSeconds: max_staleness }) if max_staleness preference end private # Select servers taking into account any defined tag sets and # local threshold, with the primary preferred. # # @example Select servers given a list of candidates, # with the primary preferred. # preference = Mongo::ServerSelector::PrimaryPreferred.new # preference.select([candidate_1, candidate_2]) # # @return [ Array ] A list of servers matching tag sets and acceptable # latency with the primary preferred. # # @since 2.0.0 def select(candidates) primary = primary(candidates) secondaries = near_servers(secondaries(candidates)) primary.first ? primary : secondaries end def max_staleness_allowed? true end end end end
estolfo/mongo-ruby-driver
lib/mongo/server_selector/primary_preferred.rb
Ruby
apache-2.0
3,030
#chmod change a file's access permision: ``` chomd mode file ``` ``` chmod -R 777 [dir_name] //所有人可以读,写,执行 chmod 777 [file_name] chmod a=rwx [file_name] chmod ugo+r [file_name] //所有人可以读 chmod a+r [file_name] chmod ug+w,o-w [filename] //用户和用户组内用户可以写,其他人可以写 。 chmod -R a+r * ``` first 7 -->User second 7-->Group third 7 -->Other all r=4 w=2 x=1 rwx=4+2+1=7 rw-=4+2=6 r-x=4+1=5 提交文件的时候用: ``` chmod -R 777 [dir_name] //所有人可以读,写,执行 ```
sumomoshinqi/tips4mb
filename-chmod.md
Markdown
apache-2.0
591
/* Copyright 2014 The Kubernetes Authors 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. */ // Package options contains flags and options for initializing an apiserver package options import ( "net" "strings" "time" "k8s.io/kubernetes/pkg/admission" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/validation" "k8s.io/kubernetes/pkg/apimachinery/registered" "k8s.io/kubernetes/pkg/apiserver" "k8s.io/kubernetes/pkg/genericapiserver" kubeletclient "k8s.io/kubernetes/pkg/kubelet/client" "k8s.io/kubernetes/pkg/master/ports" "k8s.io/kubernetes/pkg/util" utilnet "k8s.io/kubernetes/pkg/util/net" "github.com/spf13/pflag" ) // APIServer runs a kubernetes api server. type APIServer struct { *genericapiserver.ServerRunOptions APIGroupPrefix string APIPrefix string AdmissionControl string AdmissionControlConfigFile string AdvertiseAddress net.IP AllowPrivileged bool AuthorizationMode string AuthorizationPolicyFile string BasicAuthFile string CloudConfigFile string CloudProvider string CorsAllowedOriginList []string DeprecatedStorageVersion string EnableLogsSupport bool EnableProfiling bool EnableWatchCache bool EtcdPathPrefix string EtcdServerList []string EtcdServersOverrides []string EventTTL time.Duration ExternalHost string KeystoneURL string KubeletConfig kubeletclient.KubeletClientConfig KubernetesServiceNodePort int MasterCount int MasterServiceNamespace string MaxConnectionBytesPerSec int64 MinRequestTimeout int OIDCCAFile string OIDCClientID string OIDCIssuerURL string OIDCUsernameClaim string RuntimeConfig util.ConfigurationMap SSHKeyfile string SSHUser string ServiceAccountKeyFile string ServiceAccountLookup bool ServiceClusterIPRange net.IPNet // TODO: make this a list ServiceNodePortRange utilnet.PortRange StorageVersions string TokenAuthFile string } // NewAPIServer creates a new APIServer object with default parameters func NewAPIServer() *APIServer { s := APIServer{ ServerRunOptions: genericapiserver.NewServerRunOptions(), APIGroupPrefix: "/apis", APIPrefix: "/api", AdmissionControl: "AlwaysAdmit", AuthorizationMode: "AlwaysAllow", EnableLogsSupport: true, EtcdPathPrefix: genericapiserver.DefaultEtcdPathPrefix, EventTTL: 1 * time.Hour, MasterCount: 1, MasterServiceNamespace: api.NamespaceDefault, RuntimeConfig: make(util.ConfigurationMap), StorageVersions: registered.AllPreferredGroupVersions(), KubeletConfig: kubeletclient.KubeletClientConfig{ Port: ports.KubeletPort, EnableHttps: true, HTTPTimeout: time.Duration(5) * time.Second, }, } return &s } // AddFlags adds flags for a specific APIServer to the specified FlagSet func (s *APIServer) AddFlags(fs *pflag.FlagSet) { // Note: the weird ""+ in below lines seems to be the only way to get gofmt to // arrange these text blocks sensibly. Grrr. fs.IntVar(&s.InsecurePort, "insecure-port", s.InsecurePort, ""+ "The port on which to serve unsecured, unauthenticated access. Default 8080. It is assumed "+ "that firewall rules are set up such that this port is not reachable from outside of "+ "the cluster and that port 443 on the cluster's public address is proxied to this "+ "port. This is performed by nginx in the default setup.") fs.IntVar(&s.InsecurePort, "port", s.InsecurePort, "DEPRECATED: see --insecure-port instead") fs.MarkDeprecated("port", "see --insecure-port instead") fs.IPVar(&s.InsecureBindAddress, "insecure-bind-address", s.InsecureBindAddress, ""+ "The IP address on which to serve the --insecure-port (set to 0.0.0.0 for all interfaces). "+ "Defaults to localhost.") fs.IPVar(&s.InsecureBindAddress, "address", s.InsecureBindAddress, "DEPRECATED: see --insecure-bind-address instead") fs.MarkDeprecated("address", "see --insecure-bind-address instead") fs.IPVar(&s.BindAddress, "bind-address", s.BindAddress, ""+ "The IP address on which to listen for the --secure-port port. The "+ "associated interface(s) must be reachable by the rest of the cluster, and by CLI/web "+ "clients. If blank, all interfaces will be used (0.0.0.0).") fs.IPVar(&s.AdvertiseAddress, "advertise-address", s.AdvertiseAddress, ""+ "The IP address on which to advertise the apiserver to members of the cluster. This "+ "address must be reachable by the rest of the cluster. If blank, the --bind-address "+ "will be used. If --bind-address is unspecified, the host's default interface will "+ "be used.") fs.IPVar(&s.BindAddress, "public-address-override", s.BindAddress, "DEPRECATED: see --bind-address instead") fs.MarkDeprecated("public-address-override", "see --bind-address instead") fs.IntVar(&s.SecurePort, "secure-port", s.SecurePort, ""+ "The port on which to serve HTTPS with authentication and authorization. If 0, "+ "don't serve HTTPS at all.") fs.StringVar(&s.TLSCertFile, "tls-cert-file", s.TLSCertFile, ""+ "File containing x509 Certificate for HTTPS. (CA cert, if any, concatenated after server cert). "+ "If HTTPS serving is enabled, and --tls-cert-file and --tls-private-key-file are not provided, "+ "a self-signed certificate and key are generated for the public address and saved to /var/run/kubernetes.") fs.StringVar(&s.TLSPrivateKeyFile, "tls-private-key-file", s.TLSPrivateKeyFile, "File containing x509 private key matching --tls-cert-file.") fs.StringVar(&s.CertDirectory, "cert-dir", s.CertDirectory, "The directory where the TLS certs are located (by default /var/run/kubernetes). "+ "If --tls-cert-file and --tls-private-key-file are provided, this flag will be ignored.") fs.StringVar(&s.APIPrefix, "api-prefix", s.APIPrefix, "The prefix for API requests on the server. Default '/api'.") fs.MarkDeprecated("api-prefix", "--api-prefix is deprecated and will be removed when the v1 API is retired.") fs.StringVar(&s.DeprecatedStorageVersion, "storage-version", s.DeprecatedStorageVersion, "The version to store the legacy v1 resources with. Defaults to server preferred") fs.MarkDeprecated("storage-version", "--storage-version is deprecated and will be removed when the v1 API is retired. See --storage-versions instead.") fs.StringVar(&s.StorageVersions, "storage-versions", s.StorageVersions, "The versions to store resources with. "+ "Different groups may be stored in different versions. Specified in the format \"group1/version1,group2/version2...\". "+ "This flag expects a complete list of storage versions of ALL groups registered in the server. "+ "It defaults to a list of preferred versions of all registered groups, which is derived from the KUBE_API_VERSIONS environment variable.") fs.StringVar(&s.CloudProvider, "cloud-provider", s.CloudProvider, "The provider for cloud services. Empty string for no provider.") fs.StringVar(&s.CloudConfigFile, "cloud-config", s.CloudConfigFile, "The path to the cloud provider configuration file. Empty string for no configuration file.") fs.DurationVar(&s.EventTTL, "event-ttl", s.EventTTL, "Amount of time to retain events. Default 1 hour.") fs.StringVar(&s.BasicAuthFile, "basic-auth-file", s.BasicAuthFile, "If set, the file that will be used to admit requests to the secure port of the API server via http basic authentication.") fs.StringVar(&s.ClientCAFile, "client-ca-file", s.ClientCAFile, "If set, any request presenting a client certificate signed by one of the authorities in the client-ca-file is authenticated with an identity corresponding to the CommonName of the client certificate.") fs.StringVar(&s.TokenAuthFile, "token-auth-file", s.TokenAuthFile, "If set, the file that will be used to secure the secure port of the API server via token authentication.") fs.StringVar(&s.OIDCIssuerURL, "oidc-issuer-url", s.OIDCIssuerURL, "The URL of the OpenID issuer, only HTTPS scheme will be accepted. If set, it will be used to verify the OIDC JSON Web Token (JWT)") fs.StringVar(&s.OIDCClientID, "oidc-client-id", s.OIDCClientID, "The client ID for the OpenID Connect client, must be set if oidc-issuer-url is set") fs.StringVar(&s.OIDCCAFile, "oidc-ca-file", s.OIDCCAFile, "If set, the OpenID server's certificate will be verified by one of the authorities in the oidc-ca-file, otherwise the host's root CA set will be used") fs.StringVar(&s.OIDCUsernameClaim, "oidc-username-claim", "sub", ""+ "The OpenID claim to use as the user name. Note that claims other than the default ('sub') is not "+ "guaranteed to be unique and immutable. This flag is experimental, please see the authentication documentation for further details.") fs.StringVar(&s.ServiceAccountKeyFile, "service-account-key-file", s.ServiceAccountKeyFile, "File containing PEM-encoded x509 RSA private or public key, used to verify ServiceAccount tokens. If unspecified, --tls-private-key-file is used.") fs.BoolVar(&s.ServiceAccountLookup, "service-account-lookup", s.ServiceAccountLookup, "If true, validate ServiceAccount tokens exist in etcd as part of authentication.") fs.StringVar(&s.KeystoneURL, "experimental-keystone-url", s.KeystoneURL, "If passed, activates the keystone authentication plugin") fs.StringVar(&s.AuthorizationMode, "authorization-mode", s.AuthorizationMode, "Ordered list of plug-ins to do authorization on secure port. Comma-delimited list of: "+strings.Join(apiserver.AuthorizationModeChoices, ",")) fs.StringVar(&s.AuthorizationPolicyFile, "authorization-policy-file", s.AuthorizationPolicyFile, "File with authorization policy in csv format, used with --authorization-mode=ABAC, on the secure port.") fs.StringVar(&s.AdmissionControl, "admission-control", s.AdmissionControl, "Ordered list of plug-ins to do admission control of resources into cluster. Comma-delimited list of: "+strings.Join(admission.GetPlugins(), ", ")) fs.StringVar(&s.AdmissionControlConfigFile, "admission-control-config-file", s.AdmissionControlConfigFile, "File with admission control configuration.") fs.StringSliceVar(&s.EtcdServerList, "etcd-servers", s.EtcdServerList, "List of etcd servers to watch (http://ip:port), comma separated. Mutually exclusive with -etcd-config") fs.StringSliceVar(&s.EtcdServersOverrides, "etcd-servers-overrides", s.EtcdServersOverrides, "Per-resource etcd servers overrides, comma separated. The individual override format: group/resource#servers, where servers are http://ip:port, semicolon separated.") fs.StringVar(&s.EtcdPathPrefix, "etcd-prefix", s.EtcdPathPrefix, "The prefix for all resource paths in etcd.") fs.BoolVar(&s.EtcdQuorumRead, "etcd-quorum-read", s.EtcdQuorumRead, "If true, enable quorum read") fs.StringSliceVar(&s.CorsAllowedOriginList, "cors-allowed-origins", s.CorsAllowedOriginList, "List of allowed origins for CORS, comma separated. An allowed origin can be a regular expression to support subdomain matching. If this list is empty CORS will not be enabled.") fs.BoolVar(&s.AllowPrivileged, "allow-privileged", s.AllowPrivileged, "If true, allow privileged containers.") fs.IPNetVar(&s.ServiceClusterIPRange, "service-cluster-ip-range", s.ServiceClusterIPRange, "A CIDR notation IP range from which to assign service cluster IPs. This must not overlap with any IP ranges assigned to nodes for pods.") fs.IPNetVar(&s.ServiceClusterIPRange, "portal-net", s.ServiceClusterIPRange, "Deprecated: see --service-cluster-ip-range instead.") fs.MarkDeprecated("portal-net", "see --service-cluster-ip-range instead.") fs.Var(&s.ServiceNodePortRange, "service-node-port-range", "A port range to reserve for services with NodePort visibility. Example: '30000-32767'. Inclusive at both ends of the range.") fs.Var(&s.ServiceNodePortRange, "service-node-ports", "Deprecated: see --service-node-port-range instead.") fs.MarkDeprecated("service-node-ports", "see --service-node-port-range instead.") fs.StringVar(&s.MasterServiceNamespace, "master-service-namespace", s.MasterServiceNamespace, "The namespace from which the kubernetes master services should be injected into pods") fs.IntVar(&s.MasterCount, "apiserver-count", s.MasterCount, "The number of apiservers running in the cluster") fs.Var(&s.RuntimeConfig, "runtime-config", "A set of key=value pairs that describe runtime configuration that may be passed to apiserver. apis/<groupVersion> key can be used to turn on/off specific api versions. apis/<groupVersion>/<resource> can be used to turn on/off specific resources. api/all and api/legacy are special keys to control all and legacy api versions respectively.") fs.BoolVar(&s.EnableProfiling, "profiling", true, "Enable profiling via web interface host:port/debug/pprof/") // TODO: enable cache in integration tests. fs.BoolVar(&s.EnableWatchCache, "watch-cache", true, "Enable watch caching in the apiserver") fs.StringVar(&s.ExternalHost, "external-hostname", "", "The hostname to use when generating externalized URLs for this master (e.g. Swagger API Docs.)") fs.IntVar(&s.MaxRequestsInFlight, "max-requests-inflight", 400, "The maximum number of requests in flight at a given time. When the server exceeds this, it rejects requests. Zero for no limit.") fs.IntVar(&s.MinRequestTimeout, "min-request-timeout", 1800, "An optional field indicating the minimum number of seconds a handler must keep a request open before timing it out. Currently only honored by the watch request handler, which picks a randomized value above this number as the connection timeout, to spread out load.") fs.StringVar(&s.LongRunningRequestRE, "long-running-request-regexp", s.LongRunningRequestRE, "A regular expression matching long running requests which should be excluded from maximum inflight request handling.") fs.StringVar(&s.SSHUser, "ssh-user", "", "If non-empty, use secure SSH proxy to the nodes, using this user name") fs.StringVar(&s.SSHKeyfile, "ssh-keyfile", "", "If non-empty, use secure SSH proxy to the nodes, using this user keyfile") fs.Int64Var(&s.MaxConnectionBytesPerSec, "max-connection-bytes-per-sec", 0, "If non-zero, throttle each user connection to this number of bytes/sec. Currently only applies to long-running requests") // Kubelet related flags: fs.BoolVar(&s.KubeletConfig.EnableHttps, "kubelet-https", s.KubeletConfig.EnableHttps, "Use https for kubelet connections") fs.UintVar(&s.KubeletConfig.Port, "kubelet-port", s.KubeletConfig.Port, "Kubelet port") fs.MarkDeprecated("kubelet-port", "kubelet-port is deprecated and will be removed") fs.DurationVar(&s.KubeletConfig.HTTPTimeout, "kubelet-timeout", s.KubeletConfig.HTTPTimeout, "Timeout for kubelet operations") fs.StringVar(&s.KubeletConfig.CertFile, "kubelet-client-certificate", s.KubeletConfig.CertFile, "Path to a client cert file for TLS.") fs.StringVar(&s.KubeletConfig.KeyFile, "kubelet-client-key", s.KubeletConfig.KeyFile, "Path to a client key file for TLS.") fs.StringVar(&s.KubeletConfig.CAFile, "kubelet-certificate-authority", s.KubeletConfig.CAFile, "Path to a cert. file for the certificate authority.") // See #14282 for details on how to test/try this option out. TODO remove this comment once this option is tested in CI. fs.IntVar(&s.KubernetesServiceNodePort, "kubernetes-service-node-port", 0, "If non-zero, the Kubernetes master service (which apiserver creates/maintains) will be of type NodePort, using this as the value of the port. If zero, the Kubernetes master service will be of type ClusterIP.") // TODO: delete this flag as soon as we identify and fix all clients that send malformed updates, like #14126. fs.BoolVar(&validation.RepairMalformedUpdates, "repair-malformed-updates", true, "If true, server will do its best to fix the update request to pass the validation, e.g., setting empty UID in update request to its existing value. This flag can be turned off after we fix all the clients that send malformed updates.") }
dcbw/kubernetes
cmd/kube-apiserver/app/options/options.go
GO
apache-2.0
16,709
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/proton/Proton_EXPORTS.h> #include <aws/proton/ProtonRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Proton { namespace Model { /** */ class AWS_PROTON_API DeleteEnvironmentTemplateVersionRequest : public ProtonRequest { public: DeleteEnvironmentTemplateVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteEnvironmentTemplateVersion"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * <p>The environment template major version to delete.</p> */ inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; } /** * <p>The environment template major version to delete.</p> */ inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; } /** * <p>The environment template major version to delete.</p> */ inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; } /** * <p>The environment template major version to delete.</p> */ inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); } /** * <p>The environment template major version to delete.</p> */ inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); } /** * <p>The environment template major version to delete.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithMajorVersion(const Aws::String& value) { SetMajorVersion(value); return *this;} /** * <p>The environment template major version to delete.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;} /** * <p>The environment template major version to delete.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;} /** * <p>The environment template minor version to delete.</p> */ inline const Aws::String& GetMinorVersion() const{ return m_minorVersion; } /** * <p>The environment template minor version to delete.</p> */ inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; } /** * <p>The environment template minor version to delete.</p> */ inline void SetMinorVersion(const Aws::String& value) { m_minorVersionHasBeenSet = true; m_minorVersion = value; } /** * <p>The environment template minor version to delete.</p> */ inline void SetMinorVersion(Aws::String&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::move(value); } /** * <p>The environment template minor version to delete.</p> */ inline void SetMinorVersion(const char* value) { m_minorVersionHasBeenSet = true; m_minorVersion.assign(value); } /** * <p>The environment template minor version to delete.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithMinorVersion(const Aws::String& value) { SetMinorVersion(value); return *this;} /** * <p>The environment template minor version to delete.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithMinorVersion(Aws::String&& value) { SetMinorVersion(std::move(value)); return *this;} /** * <p>The environment template minor version to delete.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithMinorVersion(const char* value) { SetMinorVersion(value); return *this;} /** * <p>The name of the environment template.</p> */ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** * <p>The name of the environment template.</p> */ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** * <p>The name of the environment template.</p> */ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** * <p>The name of the environment template.</p> */ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** * <p>The name of the environment template.</p> */ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** * <p>The name of the environment template.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** * <p>The name of the environment template.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** * <p>The name of the environment template.</p> */ inline DeleteEnvironmentTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} private: Aws::String m_majorVersion; bool m_majorVersionHasBeenSet; Aws::String m_minorVersion; bool m_minorVersionHasBeenSet; Aws::String m_templateName; bool m_templateNameHasBeenSet; }; } // namespace Model } // namespace Proton } // namespace Aws
awslabs/aws-sdk-cpp
aws-cpp-sdk-proton/include/aws/proton/model/DeleteEnvironmentTemplateVersionRequest.h
C
apache-2.0
6,027
/* * Copyright 2016 Netbrasoft * * 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 br.com.netbrasoft.gnuob.api.category; import static br.com.netbrasoft.gnuob.api.category.CategoryWebServiceWrapperHelper.wrapToCountCategory; import static br.com.netbrasoft.gnuob.api.category.CategoryWebServiceWrapperHelper.wrapToFindCategory; import static br.com.netbrasoft.gnuob.api.category.CategoryWebServiceWrapperHelper.wrapToFindCategoryById; import static br.com.netbrasoft.gnuob.api.category.CategoryWebServiceWrapperHelper.wrapToMergeCategory; import static br.com.netbrasoft.gnuob.api.category.CategoryWebServiceWrapperHelper.wrapToPersistCategory; import static br.com.netbrasoft.gnuob.api.category.CategoryWebServiceWrapperHelper.wrapToRefreshCategory; import static br.com.netbrasoft.gnuob.api.category.CategoryWebServiceWrapperHelper.wrapToRemoveCategory; import static br.com.netbrasoft.gnuob.api.generic.NetbrasoftApiConstants.CAN_NOT_INITIALIZE_THE_DEFAULT_WSDL_FROM_0; import static br.com.netbrasoft.gnuob.api.generic.NetbrasoftApiConstants.CATEGORY_WEB_SERVICE_REPOSITORY_NAME; import static br.com.netbrasoft.gnuob.api.generic.NetbrasoftApiConstants.GNUOB_SOAP_CATEGORY_WEBSERVICE_WSDL; import static br.com.netbrasoft.gnuob.api.generic.NetbrasoftApiConstants.HTTP_LOCALHOST_8080_GNUOB_SOAP_CATEGORY_WEB_SERVICE_IMPL_WSDL; import static br.com.netbrasoft.gnuob.api.generic.NetbrasoftApiConstants.UNCHECKED_VALUE; import static java.lang.System.getProperty; import static org.slf4j.LoggerFactory.getLogger; import java.net.MalformedURLException; import java.net.URL; import java.util.List; import org.javasimon.aop.Monitored; import org.slf4j.Logger; import org.springframework.stereotype.Repository; import br.com.netbrasoft.gnuob.api.Category; import br.com.netbrasoft.gnuob.api.CategoryWebServiceImpl; import br.com.netbrasoft.gnuob.api.CategoryWebServiceImplService; import br.com.netbrasoft.gnuob.api.MetaData; import br.com.netbrasoft.gnuob.api.OrderBy; import br.com.netbrasoft.gnuob.api.Paging; import br.com.netbrasoft.gnuob.api.generic.IGenericTypeWebServiceRepository; @Monitored @Repository(CATEGORY_WEB_SERVICE_REPOSITORY_NAME) public class CategoryWebServiceRepository<C extends Category> implements IGenericTypeWebServiceRepository<C> { private static final Logger LOGGER = getLogger(CategoryWebServiceRepository.class); private static final URL WSDL_LOCATION; static { URL url = null; try { url = new URL(getProperty(GNUOB_SOAP_CATEGORY_WEBSERVICE_WSDL, HTTP_LOCALHOST_8080_GNUOB_SOAP_CATEGORY_WEB_SERVICE_IMPL_WSDL)); } catch (final MalformedURLException e) { LOGGER.info(CAN_NOT_INITIALIZE_THE_DEFAULT_WSDL_FROM_0, getProperty(GNUOB_SOAP_CATEGORY_WEBSERVICE_WSDL, HTTP_LOCALHOST_8080_GNUOB_SOAP_CATEGORY_WEB_SERVICE_IMPL_WSDL)); } WSDL_LOCATION = url; } private transient CategoryWebServiceImpl categoryWebServiceImpl = null; private CategoryWebServiceImpl getCategoryWebServiceImpl() { if (categoryWebServiceImpl == null) { categoryWebServiceImpl = new CategoryWebServiceImplService(WSDL_LOCATION).getCategoryWebServiceImplPort(); } return categoryWebServiceImpl; } @Override public long count(final MetaData credentials, final C categoryExample) { return getCategoryWebServiceImpl().countCategory(wrapToCountCategory(categoryExample), credentials).getReturn(); } @Override @SuppressWarnings(UNCHECKED_VALUE) public List<C> find(final MetaData credentials, final C categoryExample, final Paging paging, final OrderBy orderingProperty) { return (List<C>) getCategoryWebServiceImpl() .findCategory(wrapToFindCategory(categoryExample, paging, orderingProperty), credentials).getReturn(); } @Override @SuppressWarnings(UNCHECKED_VALUE) public C find(final MetaData credentials, final C categoryExample) { return (C) getCategoryWebServiceImpl().findCategoryById(wrapToFindCategoryById(categoryExample), credentials) .getReturn(); } @Override @SuppressWarnings(UNCHECKED_VALUE) public C persist(final MetaData credentials, final C category) { return (C) getCategoryWebServiceImpl().persistCategory(wrapToPersistCategory(category), credentials).getReturn(); } @Override @SuppressWarnings(UNCHECKED_VALUE) public C merge(final MetaData credentials, final C category) { return (C) getCategoryWebServiceImpl().mergeCategory(wrapToMergeCategory(category), credentials).getReturn(); } @Override @SuppressWarnings(UNCHECKED_VALUE) public C refresh(final MetaData credentials, final C category) { return (C) getCategoryWebServiceImpl().refreshCategory(wrapToRefreshCategory(category), credentials).getReturn(); } @Override public void remove(final MetaData credentials, final C category) { getCategoryWebServiceImpl().removeCategory(wrapToRemoveCategory(category), credentials); } }
Netbrasoft/gnuob-api
src/main/java/br/com/netbrasoft/gnuob/api/category/CategoryWebServiceRepository.java
Java
apache-2.0
5,406
package org.wso2.carbon.apimgt.rest.api.publisher.v1.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import java.util.ArrayList; import java.util.List; import org.wso2.carbon.apimgt.rest.api.publisher.v1.dto.AlertTypeDTO; import javax.validation.constraints.*; import io.swagger.annotations.*; import java.util.Objects; import javax.xml.bind.annotation.*; import org.wso2.carbon.apimgt.rest.api.util.annotations.Scope; public class AlertTypesListDTO { private Integer count = null; private List<AlertTypeDTO> alerts = new ArrayList<>(); /** * The number of alerts **/ public AlertTypesListDTO count(Integer count) { this.count = count; return this; } @ApiModelProperty(example = "3", value = "The number of alerts") @JsonProperty("count") public Integer getCount() { return count; } public void setCount(Integer count) { this.count = count; } /** **/ public AlertTypesListDTO alerts(List<AlertTypeDTO> alerts) { this.alerts = alerts; return this; } @ApiModelProperty(value = "") @JsonProperty("alerts") public List<AlertTypeDTO> getAlerts() { return alerts; } public void setAlerts(List<AlertTypeDTO> alerts) { this.alerts = alerts; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AlertTypesListDTO alertTypesList = (AlertTypesListDTO) o; return Objects.equals(count, alertTypesList.count) && Objects.equals(alerts, alertTypesList.alerts); } @Override public int hashCode() { return Objects.hash(count, alerts); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlertTypesListDTO {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" alerts: ").append(toIndentedString(alerts)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
nuwand/carbon-apimgt
components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/dto/AlertTypesListDTO.java
Java
apache-2.0
2,369
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/cordova-plugin-whitelist/whitelist.js", "id": "cordova-plugin-whitelist.whitelist", "pluginId": "cordova-plugin-whitelist", "runs": true }, { "file": "plugins/cordova-plugin-file/www/DirectoryEntry.js", "id": "cordova-plugin-file.DirectoryEntry", "pluginId": "cordova-plugin-file", "clobbers": [ "window.DirectoryEntry" ] }, { "file": "plugins/cordova-plugin-file/www/DirectoryReader.js", "id": "cordova-plugin-file.DirectoryReader", "pluginId": "cordova-plugin-file", "clobbers": [ "window.DirectoryReader" ] }, { "file": "plugins/cordova-plugin-file/www/Entry.js", "id": "cordova-plugin-file.Entry", "pluginId": "cordova-plugin-file", "clobbers": [ "window.Entry" ] }, { "file": "plugins/cordova-plugin-file/www/File.js", "id": "cordova-plugin-file.File", "pluginId": "cordova-plugin-file", "clobbers": [ "window.File" ] }, { "file": "plugins/cordova-plugin-file/www/FileEntry.js", "id": "cordova-plugin-file.FileEntry", "pluginId": "cordova-plugin-file", "clobbers": [ "window.FileEntry" ] }, { "file": "plugins/cordova-plugin-file/www/FileError.js", "id": "cordova-plugin-file.FileError", "pluginId": "cordova-plugin-file", "clobbers": [ "window.FileError" ] }, { "file": "plugins/cordova-plugin-file/www/FileReader.js", "id": "cordova-plugin-file.FileReader", "pluginId": "cordova-plugin-file", "clobbers": [ "window.FileReader" ] }, { "file": "plugins/cordova-plugin-file/www/FileSystem.js", "id": "cordova-plugin-file.FileSystem", "pluginId": "cordova-plugin-file", "clobbers": [ "window.FileSystem" ] }, { "file": "plugins/cordova-plugin-file/www/FileUploadOptions.js", "id": "cordova-plugin-file.FileUploadOptions", "pluginId": "cordova-plugin-file", "clobbers": [ "window.FileUploadOptions" ] }, { "file": "plugins/cordova-plugin-file/www/FileUploadResult.js", "id": "cordova-plugin-file.FileUploadResult", "pluginId": "cordova-plugin-file", "clobbers": [ "window.FileUploadResult" ] }, { "file": "plugins/cordova-plugin-file/www/FileWriter.js", "id": "cordova-plugin-file.FileWriter", "pluginId": "cordova-plugin-file", "clobbers": [ "window.FileWriter" ] }, { "file": "plugins/cordova-plugin-file/www/Flags.js", "id": "cordova-plugin-file.Flags", "pluginId": "cordova-plugin-file", "clobbers": [ "window.Flags" ] }, { "file": "plugins/cordova-plugin-file/www/LocalFileSystem.js", "id": "cordova-plugin-file.LocalFileSystem", "pluginId": "cordova-plugin-file", "clobbers": [ "window.LocalFileSystem" ], "merges": [ "window" ] }, { "file": "plugins/cordova-plugin-file/www/Metadata.js", "id": "cordova-plugin-file.Metadata", "pluginId": "cordova-plugin-file", "clobbers": [ "window.Metadata" ] }, { "file": "plugins/cordova-plugin-file/www/ProgressEvent.js", "id": "cordova-plugin-file.ProgressEvent", "pluginId": "cordova-plugin-file", "clobbers": [ "window.ProgressEvent" ] }, { "file": "plugins/cordova-plugin-file/www/fileSystems.js", "id": "cordova-plugin-file.fileSystems", "pluginId": "cordova-plugin-file" }, { "file": "plugins/cordova-plugin-file/www/requestFileSystem.js", "id": "cordova-plugin-file.requestFileSystem", "pluginId": "cordova-plugin-file", "clobbers": [ "window.requestFileSystem" ] }, { "file": "plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js", "id": "cordova-plugin-file.resolveLocalFileSystemURI", "pluginId": "cordova-plugin-file", "merges": [ "window" ] }, { "file": "plugins/cordova-plugin-file/www/android/FileSystem.js", "id": "cordova-plugin-file.androidFileSystem", "pluginId": "cordova-plugin-file", "merges": [ "FileSystem" ] }, { "file": "plugins/cordova-plugin-file/www/fileSystems-roots.js", "id": "cordova-plugin-file.fileSystems-roots", "pluginId": "cordova-plugin-file", "runs": true }, { "file": "plugins/cordova-plugin-file/www/fileSystemPaths.js", "id": "cordova-plugin-file.fileSystemPaths", "pluginId": "cordova-plugin-file", "merges": [ "cordova" ], "runs": true }, { "file": "plugins/cordova-plugin-file-transfer/www/FileTransferError.js", "id": "cordova-plugin-file-transfer.FileTransferError", "pluginId": "cordova-plugin-file-transfer", "clobbers": [ "window.FileTransferError" ] }, { "file": "plugins/cordova-plugin-file-transfer/www/FileTransfer.js", "id": "cordova-plugin-file-transfer.FileTransfer", "pluginId": "cordova-plugin-file-transfer", "clobbers": [ "window.FileTransfer" ] }, { "file": "plugins/cordova-plugin-device/www/device.js", "id": "cordova-plugin-device.device", "pluginId": "cordova-plugin-device", "clobbers": [ "device" ] }, { "file": "plugins/de.appplant.cordova.plugin.email-composer/www/email_composer.js", "id": "de.appplant.cordova.plugin.email-composer.EmailComposer", "pluginId": "de.appplant.cordova.plugin.email-composer", "clobbers": [ "cordova.plugins.email", "plugin.email" ] } ]; module.exports.metadata = // TOP OF METADATA {} // BOTTOM OF METADATA });
sergiolucas/Projects
Guellcom/calculadora/platforms/android/platform_www/cordova_plugins.js
JavaScript
apache-2.0
6,421
function CredentialTypesStrings (BaseString) { BaseString.call(this, 'credential_types'); let t = this.t; let ns = this.credential_types; ns.deleteCredentialType = { CREDENTIAL_TYPE_IN_USE: t.s('This credential type is currently being used by one or more credentials. Credentials that use this credential type must be deleted before the credential type can be deleted.') }; } CredentialTypesStrings.$inject = ['BaseStringService']; export default CredentialTypesStrings;
GoogleCloudPlatform/sap-deployment-automation
third_party/github.com/ansible/awx/awx/ui/client/src/credential-types/credential-types.strings.js
JavaScript
apache-2.0
504
package libnetwork import ( "fmt" ) // ErrNoSuchNetwork is returned when a network query finds no result type ErrNoSuchNetwork string func (nsn ErrNoSuchNetwork) Error() string { return fmt.Sprintf("network %s not found", string(nsn)) } // BadRequest denotes the type of this error func (nsn ErrNoSuchNetwork) BadRequest() {} // ErrNoSuchEndpoint is returned when a endpoint query finds no result type ErrNoSuchEndpoint string func (nse ErrNoSuchEndpoint) Error() string { return fmt.Sprintf("endpoint %s not found", string(nse)) } // BadRequest denotes the type of this error func (nse ErrNoSuchEndpoint) BadRequest() {} // ErrInvalidNetworkDriver is returned if an invalid driver // name is passed. type ErrInvalidNetworkDriver string func (ind ErrInvalidNetworkDriver) Error() string { return fmt.Sprintf("invalid driver bound to network: %s", string(ind)) } // BadRequest denotes the type of this error func (ind ErrInvalidNetworkDriver) BadRequest() {} // ErrInvalidJoin is returned if a join is attempted on an endpoint // which already has a container joined. type ErrInvalidJoin struct{} func (ij ErrInvalidJoin) Error() string { return "a container has already joined the endpoint" } // BadRequest denotes the type of this error func (ij ErrInvalidJoin) BadRequest() {} // ErrNoContainer is returned when the endpoint has no container // attached to it. type ErrNoContainer struct{} func (nc ErrNoContainer) Error() string { return "a container has already joined the endpoint" } // Maskable denotes the type of this error func (nc ErrNoContainer) Maskable() {} // ErrInvalidID is returned when a query-by-id method is being invoked // with an empty id parameter type ErrInvalidID string func (ii ErrInvalidID) Error() string { return fmt.Sprintf("invalid id: %s", string(ii)) } // BadRequest denotes the type of this error func (ii ErrInvalidID) BadRequest() {} // ErrInvalidName is returned when a query-by-name or resource create method is // invoked with an empty name parameter type ErrInvalidName string func (in ErrInvalidName) Error() string { return fmt.Sprintf("invalid name: %s", string(in)) } // BadRequest denotes the type of this error func (in ErrInvalidName) BadRequest() {} // ErrInvalidConfigFile type is returned when an invalid LibNetwork config file is detected type ErrInvalidConfigFile string func (cf ErrInvalidConfigFile) Error() string { return fmt.Sprintf("Invalid Config file %q", string(cf)) } // NetworkTypeError type is returned when the network type string is not // known to libnetwork. type NetworkTypeError string func (nt NetworkTypeError) Error() string { return fmt.Sprintf("unknown driver %q", string(nt)) } // NotFound denotes the type of this error func (nt NetworkTypeError) NotFound() {} // NetworkNameError is returned when a network with the same name already exists. type NetworkNameError string func (nnr NetworkNameError) Error() string { return fmt.Sprintf("network with name %s already exists", string(nnr)) } // Forbidden denotes the type of this error func (nnr NetworkNameError) Forbidden() {} // UnknownNetworkError is returned when libnetwork could not find in it's database // a network with the same name and id. type UnknownNetworkError struct { name string id string } func (une *UnknownNetworkError) Error() string { return fmt.Sprintf("unknown network %s id %s", une.name, une.id) } // NotFound denotes the type of this error func (une *UnknownNetworkError) NotFound() {} // ActiveEndpointsError is returned when a network is deleted which has active // endpoints in it. type ActiveEndpointsError struct { name string id string } func (aee *ActiveEndpointsError) Error() string { return fmt.Sprintf("network with name %s id %s has active endpoints", aee.name, aee.id) } // Forbidden denotes the type of this error func (aee *ActiveEndpointsError) Forbidden() {} // UnknownEndpointError is returned when libnetwork could not find in it's database // an endpoint with the same name and id. type UnknownEndpointError struct { name string id string } func (uee *UnknownEndpointError) Error() string { return fmt.Sprintf("unknown endpoint %s id %s", uee.name, uee.id) } // NotFound denotes the type of this error func (uee *UnknownEndpointError) NotFound() {} // ActiveContainerError is returned when an endpoint is deleted which has active // containers attached to it. type ActiveContainerError struct { name string id string } func (ace *ActiveContainerError) Error() string { return fmt.Sprintf("endpoint with name %s id %s has active containers", ace.name, ace.id) } // Forbidden denotes the type of this error func (ace *ActiveContainerError) Forbidden() {} // InvalidContainerIDError is returned when an invalid container id is passed // in Join/Leave type InvalidContainerIDError string func (id InvalidContainerIDError) Error() string { return fmt.Sprintf("invalid container id %s", string(id)) } // BadRequest denotes the type of this error func (id InvalidContainerIDError) BadRequest() {}
Microsoft/libnetwork
error.go
GO
apache-2.0
5,043
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/servicediscovery/model/PublicDnsPropertiesMutable.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace ServiceDiscovery { namespace Model { PublicDnsPropertiesMutable::PublicDnsPropertiesMutable() : m_sOAHasBeenSet(false) { } PublicDnsPropertiesMutable::PublicDnsPropertiesMutable(JsonView jsonValue) : m_sOAHasBeenSet(false) { *this = jsonValue; } PublicDnsPropertiesMutable& PublicDnsPropertiesMutable::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SOA")) { m_sOA = jsonValue.GetObject("SOA"); m_sOAHasBeenSet = true; } return *this; } JsonValue PublicDnsPropertiesMutable::Jsonize() const { JsonValue payload; if(m_sOAHasBeenSet) { payload.WithObject("SOA", m_sOA.Jsonize()); } return payload; } } // namespace Model } // namespace ServiceDiscovery } // namespace Aws
awslabs/aws-sdk-cpp
aws-cpp-sdk-servicediscovery/source/model/PublicDnsPropertiesMutable.cpp
C++
apache-2.0
1,079
# please insert nothing before this line: -*- mode: cperl; cperl-indent-level: 4; cperl-continued-statement-offset: 4; indent-tabs-mode: nil -*- package TestApache::scanhdrs2; use strict; use warnings FATAL => 'all'; use Apache::Test; use Apache2::Const -compile => 'OK'; sub handler { my $r = shift; my $location = $r->args; print "Location: $location\n\n"; Apache2::Const::OK; } 1; __END__ SetHandler perl-script PerlOptions +ParseHeaders
dreamhost/dpkg-ndn-perl-mod-perl
t/response/TestApache/scanhdrs2.pm
Perl
apache-2.0
465
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.hawkular.agent.monitor.inventory; import org.hawkular.agent.monitor.inventory.dmr.DMRResource; import org.hawkular.agent.monitor.inventory.dmr.DMRResourceType; import org.hawkular.dmrclient.Address; import org.jboss.dmr.ModelNode; import org.jgrapht.graph.DefaultEdge; import org.jgrapht.traverse.BreadthFirstIterator; import org.jgrapht.traverse.DepthFirstIterator; import org.junit.Assert; import org.junit.Test; public class ResourceManagerTest { @Test public void testEmptyResourceManager() { ResourceManager<DMRResource> rm = new ResourceManager<>(); Assert.assertNull(rm.getResource(new ID("foo"))); Assert.assertTrue(rm.getAllResources().isEmpty()); Assert.assertTrue(rm.getRootResources().isEmpty()); Assert.assertFalse(rm.getBreadthFirstIterator().hasNext()); Assert.assertFalse(rm.getDepthFirstIterator().hasNext()); } @Test public void testResourceManager() { DMRResourceType type = new DMRResourceType(new ID("resType"), new Name("resTypeName")); ResourceManager<DMRResource> rm = new ResourceManager<>(); DMRResource root1 = new DMRResource(new ID("root1"), new Name("root1Name"), null, type, null, new Address(), new ModelNode()); DMRResource root2 = new DMRResource(new ID("root2"), new Name("root2Name"), null, type, null, new Address(), new ModelNode()); DMRResource child1 = new DMRResource(new ID("child1"), new Name("child1Name"), null, type, root1, new Address(), new ModelNode()); DMRResource child2 = new DMRResource(new ID("child2"), new Name("child2Name"), null, type, root1, new Address(), new ModelNode()); DMRResource grandChild1 = new DMRResource(new ID("grand1"), new Name("grand1Name"), null, type, child1, new Address(), new ModelNode()); // add root1 rm.addResource(root1); Assert.assertEquals(1, rm.getAllResources().size()); Assert.assertTrue(rm.getAllResources().contains(root1)); Assert.assertEquals(root1, rm.getResource(root1.getID())); DepthFirstIterator<DMRResource, DefaultEdge> dIter = rm.getDepthFirstIterator(); Assert.assertEquals(root1, dIter.next()); Assert.assertFalse(dIter.hasNext()); BreadthFirstIterator<DMRResource, DefaultEdge> bIter = rm.getBreadthFirstIterator(); Assert.assertEquals(root1, bIter.next()); Assert.assertFalse(bIter.hasNext()); Assert.assertEquals(1, rm.getRootResources().size()); Assert.assertTrue(rm.getRootResources().contains(root1)); // add child1 rm.addResource(child1); Assert.assertEquals(2, rm.getAllResources().size()); Assert.assertTrue(rm.getAllResources().contains(child1)); Assert.assertEquals(child1, rm.getResource(child1.getID())); // add grandChild1 rm.addResource(grandChild1); Assert.assertEquals(3, rm.getAllResources().size()); Assert.assertTrue(rm.getAllResources().contains(grandChild1)); Assert.assertEquals(grandChild1, rm.getResource(grandChild1.getID())); // add root2 rm.addResource(root2); Assert.assertEquals(4, rm.getAllResources().size()); Assert.assertTrue(rm.getAllResources().contains(root2)); Assert.assertEquals(root2, rm.getResource(root2.getID())); Assert.assertEquals(2, rm.getRootResources().size()); Assert.assertTrue(rm.getRootResources().contains(root2)); // add child2 rm.addResource(child2); Assert.assertEquals(5, rm.getAllResources().size()); Assert.assertTrue(rm.getAllResources().contains(child2)); Assert.assertEquals(child2, rm.getResource(child2.getID())); // // the tree now looks like: // // root1 root2 // / \ // child1 child2 // | // grandchild1 // Assert.assertEquals(2, rm.getChildren(root1).size()); Assert.assertTrue(rm.getChildren(root1).contains(child1)); Assert.assertTrue(rm.getChildren(root1).contains(child2)); Assert.assertEquals(1, rm.getChildren(child1).size()); Assert.assertTrue(rm.getChildren(child1).contains(grandChild1)); Assert.assertEquals(0, rm.getChildren(grandChild1).size()); Assert.assertEquals(0, rm.getChildren(root2).size()); Assert.assertEquals(null, rm.getParent(root1)); Assert.assertEquals(null, rm.getParent(root2)); Assert.assertEquals(root1, rm.getParent(child1)); Assert.assertEquals(root1, rm.getParent(child2)); Assert.assertEquals(child1, rm.getParent(grandChild1)); /* * WHY DOESN'T THIS ITERATE LIKE IT SHOULD? * // iterate depth first which should be: // root1 -> child1 -> grandchild1 -> child2 -> root2 dIter = rm.getDepthFirstIterator(); Assert.assertEquals(root1, dIter.next()); Assert.assertEquals(child1, dIter.next()); Assert.assertEquals(grandChild1, dIter.next()); Assert.assertEquals(child2, dIter.next()); Assert.assertEquals(root2, dIter.next()); Assert.assertFalse(dIter.hasNext()); // iterate breadth first which should be (assuming roots are done in order) // root1 -> child1 -> child2 -> grandchild1 -> root2 bIter = rm.getBreadthFirstIterator(); Assert.assertEquals(root1, bIter.next()); Assert.assertEquals(child1, bIter.next()); Assert.assertEquals(child2, bIter.next()); Assert.assertEquals(grandChild1, bIter.next()); Assert.assertEquals(root2, bIter.next()); Assert.assertFalse(bIter.hasNext()); * * THE ABOVE DOESN'T WORK AS EXPECTED */ } }
pavolloffay/hawkular-agent
hawkular-wildfly-monitor/src/test/java/org/hawkular/agent/monitor/inventory/ResourceManagerTest.java
Java
apache-2.0
6,531
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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.camel.component.docker.headers; import java.util.Map; import com.github.dockerjava.api.command.ListContainersCmd; import org.apache.camel.component.docker.DockerConstants; import org.apache.camel.component.docker.DockerOperation; import org.junit.Test; import org.mockito.Matchers; import org.mockito.Mock; import org.mockito.Mockito; /** * Validates List Containers Request headers are applied properly */ public class ListContainersCmdHeaderTest extends BaseDockerHeaderTest<ListContainersCmd> { @Mock private ListContainersCmd mockObject; @Test public void listContainerHeaderTest() { boolean showSize = true; boolean showAll = false; int limit = 2; String since = "id1"; String before = "id2"; Map<String, Object> headers = getDefaultParameters(); headers.put(DockerConstants.DOCKER_LIMIT, limit); headers.put(DockerConstants.DOCKER_SHOW_ALL, showAll); headers.put(DockerConstants.DOCKER_SHOW_SIZE, showSize); headers.put(DockerConstants.DOCKER_SINCE, since); headers.put(DockerConstants.DOCKER_BEFORE, before); template.sendBodyAndHeaders("direct:in", "", headers); Mockito.verify(dockerClient, Mockito.times(1)).listContainersCmd(); Mockito.verify(mockObject, Mockito.times(1)).withShowAll(Matchers.eq(showAll)); Mockito.verify(mockObject, Mockito.times(1)).withShowSize(Matchers.eq(showSize)); Mockito.verify(mockObject, Mockito.times(1)).withLimit(Matchers.eq(limit)); Mockito.verify(mockObject, Mockito.times(1)).withSince(Matchers.eq(since)); Mockito.verify(mockObject, Mockito.times(1)).withBefore(Matchers.eq(before)); } @Override protected void setupMocks() { Mockito.when(dockerClient.listContainersCmd()).thenReturn(mockObject); } @Override protected DockerOperation getOperation() { return DockerOperation.LIST_CONTAINERS; } }
koscejev/camel
components/camel-docker/src/test/java/org/apache/camel/component/docker/headers/ListContainersCmdHeaderTest.java
Java
apache-2.0
2,786
<!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <!-- BEGIN HEAD --> <head> <meta charset="utf-8"/> <title>DHP Đăng nhập quản trị</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1.0" name="viewport"/> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta content="" name="description"/> <meta content="" name="author"/> <!-- BEGIN GLOBAL MANDATORY STYLES --> <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/> <link href="/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> <link href="/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/> <link href="/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/> <link href="/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/> <!-- END GLOBAL MANDATORY STYLES --> <!-- BEGIN PAGE LEVEL STYLES --> <link href="/assets/admin/pages/css/login.css" rel="stylesheet" type="text/css"/> <!-- END PAGE LEVEL SCRIPTS --> <!-- BEGIN THEME STYLES --> <link href="/assets/global/css/components.css" rel="stylesheet" type="text/css"/> <link href="/assets/global/css/plugins.css" rel="stylesheet" type="text/css"/> <link href="/assets/admin/layout/css/layout.css" rel="stylesheet" type="text/css"/> <link href="/assets/admin/layout/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/> <link href="/assets/admin/layout/css/custom.css" rel="stylesheet" type="text/css"/> <!-- END THEME STYLES --> <link rel="shortcut icon" href="favicon.ico"/> </head> <!-- END HEAD --> <!-- BEGIN BODY --> <body class="login"> <!-- BEGIN SIDEBAR TOGGLER BUTTON --> <div class="menu-toggler sidebar-toggler"> </div> <!-- END SIDEBAR TOGGLER BUTTON --> <!-- BEGIN LOGO --> <div class="logo"> <a href="index.html"> <img src="/assets/admin/layout/img/logo-big.png" alt=""/> </a> </div> <!-- END LOGO --> <!-- BEGIN LOGIN --> <div class="content"> @if (count($errors) > 0) <div class="alert alert-danger"> <strong>Lỗi!</strong> Sai thông tin đăng nhập.<br><br> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <!-- BEGIN LOGIN FORM --> <form class="login-form" action="{{ url('/auth/login') }}" method="post"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <h3 class="form-title">Đăng nhập</h3> <div class="alert alert-danger display-hide"> <button class="close" data-close="alert"></button> <span> Nhập email và mật khẩu. </span> </div> <div class="form-group"> <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that--> <label class="control-label visible-ie8 visible-ie9">Tên đăng nhập</label> <input class="form-control form-control-solid placeholder-no-fix" type="email" autocomplete="off" placeholder="Email đăng nhập" name="email" value="{{ old('email') }}"/> </div> <div class="form-group"> <label class="control-label visible-ie8 visible-ie9">Mật khẩu</label> <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="Mật khẩu" name="password"/> </div> <div class="form-actions"> <button type="submit" class="btn btn-success uppercase">Đăng nhập</button> <label class="rememberme check"> <input type="checkbox" name="remember" value="1"/>Nhớ </label> <a id="forget-password" class="forget-password" href="{{ url('/password/email') }}">Quên mật khẩu?</a> </div> </form> <!-- END LOGIN FORM --> <!-- BEGIN FORGOT PASSWORD FORM --> <form class="forget-form" action="index.html" method="post"> <h3>Khôi phục mật khẩu?</h3> <p> Vui lòng nhập email để khôi phục mật khẩu. </p> <div class="form-group"> <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Email" name="email"/> </div> <div class="form-actions"> <button type="button" id="back-btn" class="btn btn-default">Trở về</button> <button type="submit" class="btn btn-success uppercase pull-right">Gửi</button> </div> </form> <!-- END FORGOT PASSWORD FORM --> </div> <div class="copyright"> 2015 © DHP Viet Nam </div> <!-- END LOGIN --> <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) --> <!-- BEGIN CORE PLUGINS --> <!--[if lt IE 9]> <script src="/assets/global/plugins/respond.min.js"></script> <script src="/assets/global/plugins/excanvas.min.js"></script> <![endif]--> <script src="/assets/global/plugins/jquery.min.js" type="text/javascript"></script> <script src="/assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script> <script src="/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script> <script src="/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script> <!-- END CORE PLUGINS --> <!-- BEGIN PAGE LEVEL PLUGINS --> <script src="/assets/global/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script> <!-- END PAGE LEVEL PLUGINS --> <!-- BEGIN PAGE LEVEL SCRIPTS --> <script src="/assets/global/scripts/metronic.js" type="text/javascript"></script> <script src="/assets/admin/layout/scripts/layout.js" type="text/javascript"></script> <script src="/assets/admin/pages/scripts/login.js" type="text/javascript"></script> <!-- END PAGE LEVEL SCRIPTS --> <script> jQuery(document).ready(function() { Metronic.init(); // init metronic core components Layout.init(); // init current layout Login.init(); }); </script> <!-- END JAVASCRIPTS --> </body> <!-- END BODY --> </html>
imtoantran/md
resources/views/auth/login.blade.php
PHP
apache-2.0
6,104
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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.shardingsphere.elasticjob.lite.spring.boot.reg.snapshot; import static org.junit.Assert.assertNotNull; import org.apache.shardingsphere.elasticjob.lite.internal.snapshot.SnapshotService; import org.apache.shardingsphere.elasticjob.lite.spring.boot.job.fixture.EmbedTestingServer; import org.junit.BeforeClass; import org.junit.Test; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; @SpringBootTest @SpringBootApplication @ActiveProfiles("snapshot") public class ElasticJobSnapshotServiceConfigurationTest extends AbstractJUnit4SpringContextTests { @BeforeClass public static void init() { EmbedTestingServer.start(); } @Test public void assertSnapshotServiceConfiguration() { assertNotNull(applicationContext); assertNotNull(applicationContext.getBean(SnapshotService.class)); } }
elasticjob/elastic-job
elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/test/java/org/apache/shardingsphere/elasticjob/lite/spring/boot/reg/snapshot/ElasticJobSnapshotServiceConfigurationTest.java
Java
apache-2.0
1,874
// bsla_scanf.cpp -*-C++-*- #include <bsla_scanf.h> #include <bsls_ident.h> BSLS_IDENT("$Id$ $CSID$") // ---------------------------------------------------------------------------- // Copyright 2019 Bloomberg Finance L.P. // // 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. // ----------------------------- END-OF-FILE ----------------------------------
che2/bde
groups/bsl/bsla/bsla_scanf.cpp
C++
apache-2.0
915
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2015-2017 Imperial College London * Copyright 2015-2017 Andreas Schuh * * 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. */ #include "mirtk/Common.h" #include "mirtk/Options.h" #include "mirtk/ImageConfig.h" #include "mirtk/IOConfig.h" #include "mirtk/DataOp.h" #include "mirtk/DataStatistics.h" #include "mirtk/DataFunctions.h" #if MIRTK_Image_WITH_VTK #include "vtkDataSet.h" #include "vtkSmartPointer.h" #include "vtkPointData.h" #include "vtkCellData.h" #include "vtkDataArray.h" #endif using namespace mirtk; using namespace mirtk::data; using namespace mirtk::data::op; using namespace mirtk::data::statistic; // ============================================================================= // Help // ============================================================================= // ----------------------------------------------------------------------------- void PrintHelp(const char *name) { cout << "\n"; cout << "Usage: " << name << " <input> [options]\n"; cout << "\n"; cout << "Description:\n"; cout << " This tool can be used for basic calculations from a sequence of data values read\n"; cout << " either from an image or a VTK pointset. It can be used, for example, to add two\n"; cout << " data sequences and to divide the result by a constant. The current sequence can\n"; cout << " be written to an output file again using :option:`-out`. Additionally, statistics\n"; cout << " of the current data sequence can be computed such as the mean or variance.\n"; cout << " The order of the data transformations and calculation of statistics is determined\n"; cout << " by the order of the command-line arguments.\n"; cout << "\n"; cout << " The data mask is used to include/exclude values from subsequent operations.\n"; cout << " Initially, all NaN values in the input data sequence are excluded.\n"; cout << " Further values can be excluded using one or more of the masking operations.\n"; cout << " Using the mask, operations can be performed on only a subset of the data,\n"; cout << " and the mask then reset using :option:`-reset-mask`.\n"; cout << "\n"; cout << " By default, data statistics are printed to STDOUT in a human readable format.\n"; cout << " This output can be appended to a text file using :option:`-append` instead.\n"; cout << " For a more machine readable output, e.g., as comma separated values (CSV),\n"; cout << " specify a delimiting string using :option:`-delimiter`. In this case, a header\n"; cout << " line is also printed when :option:`-header` is given with optional user\n"; cout << " specified column names for the individual output values.\n"; cout << "\n"; cout << "Input options:\n"; cout << " -pd, -point-data, -scalars <name> Name of input point data array. (default: active SCALARS array)\n"; cout << " -cd, -cell-data <name> Name of input cell data array. Overrides :option:`-pd`.\n"; cout << "\n"; cout << "Data masking options:\n"; cout << " -even\n"; cout << " Exclude values which are not an even number when cast to an integer.\n"; cout << " -odd\n"; cout << " Exclude values which are not an odd number when cast to an integer.\n"; cout << " -label <value|lower..upper>...\n"; cout << " Include data points with a value equal to either one of the given values.\n"; cout << " Closed intervals of values can be specified as \"lower..upper\".\n"; cout << " For example, \"-label 1 3 5..6 10 20..50\". This option is a shorthand for\n"; cout << " :option:`-mask-all` :option:`-threshold-inside` <lower> <upper> :option:`-invert-mask`\n"; cout << " where one :option:`-threshold-inside` operation is performed for each argument.\n"; cout << " -mask <value>... | <file> [<scalars>] [<value>]\n"; cout << " Exclude values equal a given threshold or with specified input mask <value>.\n"; cout << " The default mask value of values to be excluded is zero. When the input file\n"; cout << " is a point set file (e.g., .vtk, .vtp), the optional <scalars> argument can be\n"; cout << " used to specify the name of the point/cell data array to use as mask.\n"; cout << " Note that this operation does not modify the data values, but only marks them\n"; cout << " to be ignored from now on. Use :option:`-pad` following this operation to\n"; cout << " replace these values by a constant background value.\n"; cout << " -mask-all\n"; cout << " Exclude all values.\n"; cout << " -reset-mask\n"; cout << " Reset mask to include all values again.\n"; cout << " -invert-mask\n"; cout << " Invert mask to include all values that where excluded before and\n"; cout << " exclude all values that were included before.\n"; cout << " -set, -inside <value>\n"; cout << " Set new value for all currently included data values.\n"; cout << " -pad, -outside <value>\n"; cout << " Set new value for all currently excluded data values.\n"; cout << "\n"; cout << "Data thresholding options:\n"; cout << " -threshold <lower> [<upper>]\n"; cout << " This masking operation is equivalent to :option:`-threshold-outside`.\n"; cout << " When no upper threshold is specified, it defaults to +inf. Therefore,\n"; cout << " \"-threshold 0\" will exclude all negative values.\n"; cout << " -percentile-threshold, -pct-threshold <lower>\n"; cout << " This masking operation is equivalent to :option:`-threshold-outside-percentiles`.\n"; cout << " with an upper threshold of +inf. Therefore, \"-threshold 0\" excludes all negative values.\n"; cout << " -threshold-percentiles, -threshold-pcts <lower> <upper>\n"; cout << " This masking operation is equivalent to :option:`-threshold-outside-percentiles`.\n"; cout << " -threshold-inside, -mask-inside <lower> <upper>\n"; cout << " Exclude values which are inside a given closed interval.\n"; cout << " When the lower threshold is greater than the upper threshold,\n"; cout << " values less than or equal to the upper threshold and values greater\n"; cout << " than or equal to the lower threshold are excluded.\n"; cout << " -threshold-inside-percentiles, -threshold-inside-pcts, -mask-inside-percentiles, -mask-inside-pct <lower> <upper>\n"; cout << " Exclude values which are inside a given closed interval of percentiles.\n"; cout << " When the lower percentile is greater than the upper percentile,\n"; cout << " values less than or equal to the upper percentile and values greater\n"; cout << " than or equal to the lower percentile are excluded.\n"; cout << " -threshold-outside, -mask-outside <lower> <upper>\n"; cout << " Exclude values which are outside a given open interval.\n"; cout << " When the lower threshold is greater than the upper threshold,\n"; cout << " values inside the closed interval <upper>..<lower> are excluded.\n"; cout << " -threshold-outside-percentiles, -threshold-outside-pcts, -mask-outside-percentiles, -mask-outside-pcts <lower> <upper>\n"; cout << " Exclude values which are outside a given open interval of percentiles.\n"; cout << " When the lower percentile is greater than the upper percentile,\n"; cout << " values inside the closed interval <upper>..<lower> are excluded.\n"; cout << " -threshold-lt, -lower-threshold, -mask-lt <value>\n"; cout << " Exclude values less than a given threshold.\n"; cout << " -threshold-lt-percentile, -threshold-lt-pct, -lower-percentile-threshold, -lower-pct-threshold, -mask-lt-percentile, -mask-lt-pct <value>\n"; cout << " Exclude values less than a given precentile.\n"; cout << " -threshold-le, -mask-le, -mask-below <value>\n"; cout << " Exclude values less than or equal to a given threshold.\n"; cout << " -threshold-le-percentile, -threshold-le-pct, -mask-le-percentile, -mask-le-pct, -mask-below-percentile, -mask-below-pct <value>\n"; cout << " Exclude values less than or equal to a given percentile.\n"; cout << " -threshold-ge, -mask-ge, -mask-above <value>\n"; cout << " Exclude values greater than or equal to a given threshold.\n"; cout << " -threshold-ge-percentile, -threshold-ge-pct, -mask-ge-percentile, -mask-ge-pct, -mask-above-percentile, -mask-above-pct <value>\n"; cout << " Exclude values greater than or equal to a given percentile.\n"; cout << " -threshold-gt, -upper-threshold, -mask-gt <value>\n"; cout << " Exclude values greater than a given threshold.\n"; cout << " -threshold-gt-percentile, -threshold-gt-pct, -upper-percentile-threshold, -upper-pct-threshold, -mask-gt-percentile, -mask-gt-pct <value>\n"; cout << " Exclude values greater than a given percentile.\n"; cout << "\n"; cout << "Data rescaling options:\n"; cout << " -binarize <lower> [<upper>]\n"; cout << " Set values inside the closed interval <lower>..<upper> to one,\n"; cout << " and all other values to zero. The default upper threshold is +inf.\n"; cout << " When the lower threshold is greater than the upper threshold,\n"; cout << " values inside the closed interval <upper>..<lower> are set to zero\n"; cout << " and all other values to one instead. This operation is short for:\n"; cout << " :option:`-threshold-inside` <lower> <upper> :option:`-set` 1 :option:`-pad` 0\n"; cout << " -clamp <lower> <upper>\n"; cout << " Clamp values which are less than a lower or greater than an upper threshold.\n"; cout << " -clamp-percentiles, -clamp-pcts <lower> <upper>\n"; cout << " Clamp values which are less than a lower percentile or greater than an upper percentile.\n"; cout << " -clamp-below, -clamp-lt <value>\n"; cout << " Clamp values less than a given threshold.\n"; cout << " -clamp-below-percentile, -clamp-below-pct, -clamp-lt-percentile, -clamp-lt-pct <value>\n"; cout << " Clamp values less than a given percentile.\n"; cout << " -clamp-above, -clamp-gt <value>\n"; cout << " Clamp values greater than a given threshold.\n"; cout << " -clamp-above-percentile, -clamp-above-pct, -clamp-gt-percentile, -clamp-gt-pct <value>\n"; cout << " Clamp values greater than a given percentile.\n"; cout << " -rescale <min> <max>\n"; cout << " Linearly rescale values to the interval [min, max].\n"; cout << " -map <from> <to>...\n"; cout << " Replaces values equal to <from> by the specified <to> value. Multiple pairs of <from>\n"; cout << " and <to> value replacements can be specified in order to perform the substitutions in\n"; cout << " one step. For example, to swap the two values 1 and 2, use ``-map 1 2 2 1``.\n"; cout << "\n"; cout << "Arithmetic operation options:\n"; cout << " -add, -plus <value> | <file> [<scalars>]\n"; cout << " Add constant value or data sequence read from specified file.\n"; cout << " Another name for this option is the '+' sign, see Examples.\n"; cout << " -sub, -subtract, -minus <value> | <file> [<scalars>]\n"; cout << " Subtract constant value or data sequence read from specified file.\n"; cout << " Another name for this option is the '-' sign, see Examples.\n"; cout << " -mul, -multiply-with, -times <value> | <file> [<scalars>]\n"; cout << " Multiply by constant value or data sequence read from specified file.\n"; cout << " Another name for this option is the '*' sign, see Examples.\n"; cout << " -div, -divide-by, -over <value> | sum | <file> [<scalars>]\n"; cout << " Divide by constant value or data sequence read from specified file.\n"; cout << " When the argument is \"sum\", the divisor is the sum of the values.\n"; cout << " When dividing by zero values in the input file, the result is NaN.\n"; cout << " Use :option:`-mask` with argument NaN and :option:`-pad` to replace\n"; cout << " these undefined values by a constant such as zero.\n"; cout << " Another name for this option is the '/' sign, see Examples.\n"; cout << " -div-with-zero <value> | sum | <file> [<scalars>]\n"; cout << " Same as :option:`-div`, but set result to zero in case of division by zero.\n"; cout << " -abs\n"; cout << " Replace values by their respective absolute value.\n"; cout << " -pow, -power <exponent>\n"; cout << " Raise values to the power of the given exponent.\n"; cout << " -sq, -square\n"; cout << " Raise values to the power of 2 (i.e, -pow 2).\n"; cout << " -sqrt\n"; cout << " Calculate square root of each value (i.e, -pow .5).\n"; cout << " -exp\n"; cout << " Calculate exponential of data sequence.\n"; cout << " -log [<threshold>] [<base>]\n"; cout << " Compute logarithm after applying an optional threshold.\n"; cout << " (default threshold: min double, default base: e)\n"; cout << " -lb, -log2 [<threshold>]\n"; cout << " Compute binary logarithm, alias for :option:`-log` with base 2.\n"; cout << " -ln, -loge [<threshold>]\n"; cout << " Compute natural logarithm, alias for :option:`-log` with base e.\n"; cout << " -lg, -log10 [<threshold>]\n"; cout << " Compute logarithm to base 10, alias for :option:`-log` with base 10.\n"; cout << " -mod, -fmod <denominator>\n"; cout << " Compute modulo division of each value with specified denominator.\n"; cout << " -floor\n"; cout << " Round floating point values to largest integer value that is not greater.\n"; cout << " -ceil\n"; cout << " Round floating point values to smallest integer value that is greater.\n"; cout << " -round\n"; cout << " Round floating point values to the nearest integer value, away from zero for halfway cases.\n"; cout << "\n"; cout << "Data output options:\n"; cout << " -out, -o, -output <file> [<type>] [<name>]\n"; cout << " Write current data sequence to file in the format of the input file.\n"; cout << " Output data type can be: uchar, short, ushort, int, uint, float, double.\n"; cout << " The optional <name> argument can be used to save the modified data\n"; cout << " of an input point set data array with a different name along with the\n"; cout << " input data. Otherwise, the input data values are replaced by the modified\n"; cout << " values and stored with point data array name is unchanged.\n"; cout << " Another name for this option is the '=' sign, but the optional arguments are\n"; cout << " are not supported by this alternative notation. See Examples for usage.\n"; cout << "\n"; cout << "Data statistics options:\n"; cout << " -append <file>\n"; cout << " Append output to a file. (default: STDOUT)\n"; cout << " -delimiter, -delim, -d, -sep\n"; cout << " Delimiting character(s). (default: '')\n"; cout << " -header [<name>...]\n"; cout << " Request output of header line if delimiter was specified as well.\n"; cout << " If the output is appended to a text file, the header is only printed\n"; cout << " if it does not exist. If no or fewer custom column names are given,\n"; cout << " the default names for each statistic are printed. (default: none)\n"; cout << " -prefix <str>...\n"; cout << " One or more prefix strings to print. If no delimiter is specified,\n"; cout << " the concatenated strings are printed before each line of the output.\n"; cout << " Otherwise, each prefix string is printed as entry for the first columns\n"; cout << " in the delimited output row, separated by the specified delimiter. (default: none)\n"; cout << " -precision, -digits <int>\n"; cout << " Number of significant digits. (default: 5)\n"; cout << " -median\n"; cout << " Print median value, i.e., 50th percentile. (default: off)\n"; cout << " -mean, -avg, -average\n"; cout << " Print mean value. (default: on)\n"; cout << " -variance, -var\n"; cout << " Print variance of values. (default: off)\n"; cout << " -sigma, -std, -stddev, -stdev, -sd\n"; cout << " Print standard deviation of values. (default: on)\n"; cout << " -normal-distribution\n"; cout << " Print mean and standard deviation of values.\n"; cout << " Other option names: -mean+sigma, -mean+sd, -avg+std,... (default: off)\n"; cout << " -mad, -mean-absolute-difference, -mean-absolute-deviation\n"; cout << " Print mean absolute difference/deviation around the mean. (default: off)\n"; cout << " -mad-median, -median-absolute-difference, -median-absolute-deviation\n"; cout << " Print mean absolute difference/deviation around the median. (default: off)\n"; cout << " -minimum, -min\n"; cout << " Print minimum value. (default: off)\n"; cout << " -maximum, -max\n"; cout << " Print maximum value. (default: off)\n"; cout << " -extrema, -minmax\n"; cout << " Print minimum and maximum value. (default: on)\n"; cout << " -range\n"; cout << " Print range of values (i.e., max - min). (default: off)\n"; cout << " -percentile, -pct, -p <n>...\n"; cout << " Print n-th percentile. (default: none)\n"; cout << " -lower-percentile-mean, -lpctavg <n>\n"; cout << " Print mean intensity of values less than or equal to the n-th percentile. (default: off)\n"; cout << " -upper-percentile-mean, -upctavg <n>\n"; cout << " Print mean intensity of values greater than or equal to the n-th percentile. (default: off)\n"; cout << " -sum\n"; cout << " Print sum of values. Can be used to count values within a certain range using a thresholding\n"; cout << " followed by :option:`-set` 1 before summing these values. (default: off)\n"; cout << " -count\n"; cout << " Print number of values inside the mask, i.e., values not currently excluded. (default: off)\n"; PrintCommonOptions(cout); cout << "\n"; cout << "Examples:\n"; cout << "\n"; cout << " " << name << " mni305.nii.gz\n"; cout << " Mean = 26.9753\n"; cout << " Standard deviation = 50.3525\n"; cout << " Extrema = [0, 254]\n"; cout << " Range = 254\n"; cout << "\n"; cout << " " << name << " mni305.nii.gz -pct 77\n"; cout << " 77th percentile = 25\n"; cout << "\n"; cout << " " << name << " mni305.nii.gz -padding 25 -range -percentile 25 50 75 -prefix MNI305 '[>25]'\n"; cout << " MNI305 [>25] range = 254\n"; cout << " MNI305 [>25] 25th percentile = 69\n"; cout << " MNI305 [>25] 50th percentile = 113\n"; cout << " MNI305 [>25] 75th percentile = 150\n"; cout << "\n"; cout << " " << name << " mni305.nii.gz -d , -prefix MNI305\n"; cout << " MNI305,26.9753,50.3525,0,254,254 [no newline at end of line]\n"; cout << "\n"; cout << " " << name << " mni305.nii.gz -d , -prefix MNI305 -header\n"; cout << " ,Mean,Sigma,Min,Max,Range\n"; cout << " MNI305,26.9753,50.3525,0,254,254\n"; cout << "\n"; cout << " " << name << " mni305.nii.gz -d , -prefix MNI305 -header ID Mean SD\n"; cout << " ID,Mean,SD,Min,Max,Range\n"; cout << " MNI305,26.9753,50.3525,0,254,254\n"; cout << "\n"; cout << " " << name << " a.nii.gz + b.nii.gz = c.nii.gz\n"; cout << "\n"; cout << " " << name << " a.vtk + b.nii.gz - 10 / c.nii = d.vtk\n"; cout << " Adds data values at identical sequential memory indices in a and b,\n"; cout << " subtracts the constant 10, and then divides by the values in image c.\n"; cout << "\n"; cout << " Note: Operations are always executed from left to right,\n"; cout << " i.e., no mathematical operator precedence is considered!\n"; cout << "\n"; } // ============================================================================= // Main // ============================================================================= // ----------------------------------------------------------------------------- // Some special options do not start with a '-' as otherwise required #undef HAS_ARGUMENT #define HAS_ARGUMENT \ _IsArgument(ARGIDX, argc, argv) && \ strcmp(argv[ARGIDX+1], "+") != 0 && \ strcmp(argv[ARGIDX+1], "/") != 0 && \ strcmp(argv[ARGIDX+1], "=") != 0 // ----------------------------------------------------------------------------- int main(int argc, char **argv) { InitializeIOLibrary(); // Initial data values REQUIRES_POSARGS(1); const char *input_name = POSARG(1); UniquePtr<double[]> data; int datatype = MIRTK_VOXEL_DOUBLE; ImageAttributes attr; #if MIRTK_Image_WITH_VTK const char *scalars_name = nullptr; bool cell_data = false; for (ARGUMENTS_AFTER(1)) { if (OPTION("-point-data") || OPTION("-pointdata") || OPTION("-pd") || OPTION("-scalars")) { scalars_name = ARGUMENT; cell_data = false; } else if (OPTION("-cell-data") || OPTION("-celldata") || OPTION("-cd")) { scalars_name = ARGUMENT; cell_data = true; } } vtkSmartPointer<vtkDataSet> dataset; vtkSmartPointer<vtkDataSetAttributes> arrays; int n = Read(input_name, data, &datatype, &attr, &dataset, scalars_name, cell_data); if (dataset) { if (cell_data) { arrays = dataset->GetCellData(); } else { arrays = dataset->GetPointData(); } } #else // MIRTK_Image_WITH_VTK int n = Read(input_name, data, &datatype, &attr); #endif // MIRTK_Image_WITH_VTK // Optional arguments const double inf = numeric_limits<double>::infinity(); const double nan = numeric_limits<double>::quiet_NaN(); double a, b; int p; const char *append_name = NULL; const char *delimiter = NULL; bool print_header = false; int digits = 5; Array<string> header; Array<string> prefix; Array<UniquePtr<Op> > ops; for (ARGUMENTS_AFTER(1)) { if (OPTION("-append")) { append_name = ARGUMENT; } else if (OPTION("-point-data") || OPTION("-pointdata") || OPTION("-pd") || OPTION("-scalars")) { #if MIRTK_Image_WITH_VTK // Parsed before Read above scalars_name = ARGUMENT; cell_data = false; #else FatalError("Cannot process -point-data of VTK file because MIRTK Image library was built without VTK!"); #endif // MIRTK_Image_WITH_VTK } else if (OPTION("-cell-data") || OPTION("-celldata") || OPTION("-cd")) { #if MIRTK_Image_WITH_VTK // Parsed before Read above scalars_name = ARGUMENT; cell_data = true; #else FatalError("Cannot process -cell-data of VTK file because MIRTK Image library was built without VTK!"); #endif // MIRTK_Image_WITH_VTK } else if (OPTION("-prefix")) { do { prefix.push_back(ARGUMENT); } while (HAS_ARGUMENT); } else if (OPTION("-header")) { print_header = true; while (HAS_ARGUMENT) header.push_back(ARGUMENT); // Masking } else if (OPTION("-label")) { ops.push_back(UniquePtr<Op>(new ResetMask(true))); do { const char *arg = ARGUMENT; const Array<string> parts = Split(arg, ".."); if (parts.size() == 1) { if (!FromString(parts[0], a)) a = nan; b = a; } else if (parts.size() == 2) { if (!FromString(parts[0], a) || !FromString(parts[1], b)) { a = b = nan; } } else { a = b = nan; } if (IsNaN(a) || IsNaN(b)) { FatalError("Invalid -label argument: " << arg); } ops.push_back(UniquePtr<Op>(new MaskInsideInterval(a, b))); } while (HAS_ARGUMENT); ops.push_back(UniquePtr<Op>(new InvertMask())); } else if (OPTION("-mask-all")) { ops.push_back(UniquePtr<Op>(new ResetMask(false))); } else if (OPTION("-reset-mask")) { ops.push_back(UniquePtr<Op>(new ResetMask(true))); } else if (OPTION("-invert-mask")) { ops.push_back(UniquePtr<Op>(new InvertMask())); } else if (OPTION("-mask")) { double c; do { const char *arg = ARGUMENT; if (FromString(arg, c)) { ops.push_back(UniquePtr<Op>(new Mask(c))); } else { const char *fname = arg; const char *aname = nullptr; if (HAS_ARGUMENT) { arg = ARGUMENT; if (HAS_ARGUMENT) { aname = arg; PARSE_ARGUMENT(c); } else if (!FromString(arg, c)) { aname = arg, c = 0.; } } else { c = 0.; #if MIRTK_Image_WITH_VTK if (dataset && arrays->HasArray(fname)) { aname = fname; fname = input_name; } #endif } UniquePtr<Mask> op(new Mask(fname, c)); if (aname) { #if MIRTK_Image_WITH_VTK op->ArrayName(aname); op->IsCellData(cell_data); #else FatalError("Cannot read point set files when build without VTK or wrong usage!"); #endif } ops.push_back(UniquePtr<Op>(op.release())); break; } } while (HAS_ARGUMENT); } else if (OPTION("-threshold-outside") || OPTION("-mask-outside")) { PARSE_ARGUMENT(a); PARSE_ARGUMENT(b); ops.push_back(UniquePtr<Op>(new MaskOutsideOpenInterval(a, b))); } else if (OPTION("-threshold-outside-percentiles") || OPTION("-threshold-outside-pcts") || OPTION("-mask-outside-percentiles") || OPTION("-mask-outside-pcts")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); PARSE_ARGUMENT(p); Statistic *b = new Percentile(p); b->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(b)); Op *op = new MaskOutsideOpenInterval(&a->Value(), &b->Value()); ops.push_back(UniquePtr<Op>(op)); } else if (OPTION("-threshold")) { PARSE_ARGUMENT(a); if (HAS_ARGUMENT) PARSE_ARGUMENT(b); else b = inf; ops.push_back(UniquePtr<Op>(new MaskOutsideInterval(a, b))); } else if (OPTION("-percentile-threshold") || OPTION("-pct-threshold")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); Op *op = new MaskOutsideInterval(&a->Value(), inf); ops.push_back(UniquePtr<Op>(op)); } else if (OPTION("-threshold-percentiles") || OPTION("-threshold-pcts")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); PARSE_ARGUMENT(p); Statistic *b = new Percentile(p); b->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(b)); Op *op = new MaskOutsideInterval(&a->Value(), &b->Value()); ops.push_back(UniquePtr<Op>(op)); } else if (OPTION("-threshold-inside") || OPTION("-mask-inside")) { PARSE_ARGUMENT(a); PARSE_ARGUMENT(b); ops.push_back(UniquePtr<Op>(new MaskInsideInterval(a, b))); } else if (OPTION("-threshold-inside-percentiles") || OPTION("-threshold-inside-pcts") || OPTION("-mask-inside-percentiles") || OPTION("-mask-inside-pcts")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); PARSE_ARGUMENT(p); Statistic *b = new Percentile(p); b->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(b)); Op *op = new MaskInsideInterval(&a->Value(), &b->Value()); ops.push_back(UniquePtr<Op>(op)); } else if (OPTION("-threshold-lt") || OPTION("-lower-threshold") || OPTION("-mask-lt")) { PARSE_ARGUMENT(a); ops.push_back(UniquePtr<Op>(new MaskOutsideInterval(a, inf))); } else if (OPTION("-threshold-lt-percentile") || OPTION("-threshold-lt-pct") || OPTION("-lower-percentile-threshold") || OPTION("-lower-pct-threshold") || OPTION("-mask-lt-percentile") || OPTION("-mask-lt-pct")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); ops.push_back(UniquePtr<Op>(new MaskOutsideInterval(&a->Value(), inf))); } else if (OPTION("-threshold-le") || OPTION("-mask-below") || OPTION("-mask-le")) { PARSE_ARGUMENT(a); ops.push_back(UniquePtr<Op>(new MaskOutsideOpenInterval(a, inf))); } else if (OPTION("-threshold-le-percentile") || OPTION("-threshold-le-pct") || OPTION("-mask-below-percentile") || OPTION("-mask-below-pct") || OPTION("-mask-le-percentile") || OPTION("-mask-le-pct")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); ops.push_back(UniquePtr<Op>(new MaskOutsideOpenInterval(&a->Value(), inf))); } else if (OPTION("-threshold-ge") || OPTION("-mask-above") || OPTION("-mask-ge")) { PARSE_ARGUMENT(b); ops.push_back(UniquePtr<Op>(new MaskOutsideOpenInterval(-inf, b))); } else if (OPTION("-threshold-ge-percentile") || OPTION("-threshold-ge-pct") || OPTION("-mask-above-percentile") || OPTION("-mask-above-pct") || OPTION("-mask-ge-percentile") || OPTION("-mask-ge-pct")) { PARSE_ARGUMENT(p); Statistic *b = new Percentile(p); b->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(b)); ops.push_back(UniquePtr<Op>(new MaskOutsideOpenInterval(-inf, &b->Value()))); } else if (OPTION("-threshold-gt") || OPTION("-upper-threshold") || OPTION("-mask-gt")) { PARSE_ARGUMENT(b); ops.push_back(UniquePtr<Op>(new MaskOutsideInterval(-inf, b))); } else if (OPTION("-threshold-gt-percentile") || OPTION("-threshold-gt-pct") || OPTION("-upper-percentile-threshold") || OPTION("-upper-pct-threshold") || OPTION("-mask-gt-percentile") || OPTION("-mask-gt-pct")) { PARSE_ARGUMENT(p); Statistic *b = new Percentile(p); b->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(b)); ops.push_back(UniquePtr<Op>(new MaskOutsideInterval(-inf, &b->Value()))); } else if (OPTION("-even")) { ops.push_back(UniquePtr<Op>(new MaskOddValues())); } else if (OPTION("-odd")) { ops.push_back(UniquePtr<Op>(new MaskEvenValues())); // Clamping } else if (OPTION("-clamp")) { PARSE_ARGUMENT(a); PARSE_ARGUMENT(b); ops.push_back(UniquePtr<Op>(new Clamp(a, b))); } else if (OPTION("-clamp-percentiles") || OPTION("-clamp-pcts")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); PARSE_ARGUMENT(p); Statistic *b = new Percentile(p); b->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(b)); ops.push_back(UniquePtr<Op>(new Clamp(&a->Value(), &b->Value()))); } else if (OPTION("-clamp-lt") || OPTION("-clamp-below")) { PARSE_ARGUMENT(a); ops.push_back(UniquePtr<Op>(new LowerThreshold(a))); } else if (OPTION("-clamp-lt-percentile") || OPTION("-clamp-lt-pct") || OPTION("-clamp-below-percentile") || OPTION("-clamp-below-pct")) { PARSE_ARGUMENT(p); Statistic *a = new Percentile(p); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); ops.push_back(UniquePtr<Op>(new LowerThreshold(&a->Value()))); } else if (OPTION("-clamp-gt") || OPTION("-clamp-above")) { PARSE_ARGUMENT(b); ops.push_back(UniquePtr<Op>(new UpperThreshold(b))); } else if (OPTION("-clamp-gt-percentile") || OPTION("-clamp-gt-pct") || OPTION("-clamp-above-percentile") || OPTION("-clamp-above-pct")) { PARSE_ARGUMENT(p); Statistic *b = new Percentile(p); b->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(b)); ops.push_back(UniquePtr<Op>(new UpperThreshold(&b->Value()))); } else if (OPTION("-rescale")) { double min, max; if (!FromString(ARGUMENT, min)) { cerr << "Invalid -rescale minimum, must be a number!" << endl; exit(1); } if (!FromString(ARGUMENT, max)) { cerr << "Invalid -rescale maximum, must be a number!" << endl; exit(1); } ops.push_back(UniquePtr<Op>(new Rescale(min, max))); } else if (OPTION("-set") || OPTION("-inside")) { double inside_value; if (!FromString(ARGUMENT, inside_value)) { cerr << "Invalid -inside value, must be a number!" << endl; exit(1); } ops.push_back(UniquePtr<Op>(new SetInsideValue(inside_value))); } else if (OPTION("-pad") || OPTION("-outside")) { double outside_value; if (!FromString(ARGUMENT, outside_value)) { cerr << "Invalid -outside value, must be a number!" << endl; exit(1); } ops.push_back(UniquePtr<Op>(new SetOutsideValue(outside_value))); // Data transformations } else if (OPTION("-binarize")) { PARSE_ARGUMENT(a); if (HAS_ARGUMENT) PARSE_ARGUMENT(b); else b = inf; ops.push_back(UniquePtr<Op>(new Binarize(a, b))); } else if (OPTION("-map")) { UniquePtr<Map> map(new Map()); do { const char * const arg1 = ARGUMENT; const char * const arg2 = ARGUMENT; if (!FromString(arg1, a) || !FromString(arg2, b)) { FatalError("Arguments of -map option must be pairs of two numbers (i.e., number of arguments must be even)!"); } map->Insert(a, b); } while (HAS_ARGUMENT); ops.push_back(UniquePtr<Op>(map.release())); } else if (OPTION("-add") || OPTION("-plus") || OPTION("+")) { const char *arg = ARGUMENT; double c; if (FromString(arg, c)) { ops.push_back(UniquePtr<Op>(new Add(c))); } else { const char *fname = arg; const char *aname = nullptr; if (HAS_ARGUMENT) { aname = ARGUMENT; } else { #if MIRTK_Image_WITH_VTK if (dataset && arrays->HasArray(fname)) { aname = fname; fname = input_name; } #endif } UniquePtr<Add> op(new Add(fname)); if (aname) { #if MIRTK_Image_WITH_VTK op->ArrayName(aname); op->IsCellData(cell_data); #else FatalError("Cannot read scalars from point set file when build without VTK or wrong usage!"); #endif } ops.push_back(UniquePtr<Op>(op.release())); } } else if (OPTION("-sub") || OPTION("-subtract") || OPTION("-minus") || OPTION("-")) { const char *arg = ARGUMENT; double c; if (FromString(arg, c)) { ops.push_back(UniquePtr<Op>(new Sub(c))); } else { const char *fname = arg; const char *aname = nullptr; if (HAS_ARGUMENT) { aname = ARGUMENT; } else { #if MIRTK_Image_WITH_VTK if (dataset && arrays->HasArray(fname)) { aname = fname; fname = input_name; } #endif } UniquePtr<Sub> op(new Sub(fname)); if (aname) { #if MIRTK_Image_WITH_VTK op->ArrayName(aname); op->IsCellData(cell_data); #else FatalError("Cannot read point set files when build without VTK or wrong usage!"); #endif } ops.push_back(UniquePtr<Op>(op.release())); } } else if (OPTION("-mul") || OPTION("-multiply-by") || OPTION("-times") || OPTION("*")) { const char *arg = ARGUMENT; double c; if (FromString(arg, c)) { ops.push_back(UniquePtr<Op>(new Mul(c))); } else { const char *fname = arg; const char *aname = nullptr; if (HAS_ARGUMENT) { aname = ARGUMENT; } else { #if MIRTK_Image_WITH_VTK if (dataset && arrays->HasArray(fname)) { aname = fname; fname = input_name; } #endif } UniquePtr<Mul> op(new Mul(fname)); if (aname) { #if MIRTK_Image_WITH_VTK op->ArrayName(aname); op->IsCellData(cell_data); #else FatalError("Cannot read point set files when build without VTK or wrong usage!"); #endif } ops.push_back(UniquePtr<Op>(op.release())); } } else if (OPTION("-div") || OPTION("-divide-by") || OPTION("-over") || OPTION("/")) { const char *arg = ARGUMENT; double c; if (ToLower(arg) == "sum") { Statistic *a = new Sum(); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); ops.push_back(UniquePtr<Op>(new Div(&a->Value()))); } else if (FromString(arg, c)) { if (fequal(c, .0)) { cerr << "Invalid -div argument, value must not be zero!" << endl; exit(1); } ops.push_back(UniquePtr<Op>(new Div(c))); } else { const char *fname = arg; const char *aname = nullptr; if (HAS_ARGUMENT) { aname = ARGUMENT; } else { #if MIRTK_Image_WITH_VTK if (dataset && arrays->HasArray(fname)) { aname = fname; fname = input_name; } #endif } UniquePtr<Div> op(new Div(fname)); if (aname) { #if MIRTK_Image_WITH_VTK op->ArrayName(aname); op->IsCellData(cell_data); #else FatalError("Cannot read point set files when build without VTK or wrong usage!"); #endif } ops.push_back(UniquePtr<Op>(op.release())); } } else if (OPTION("-div-with-zero")) { const char *arg = ARGUMENT; double c; if (ToLower(arg) == "sum") { Statistic *a = new Sum(); a->Hidden(verbose < 1); ops.push_back(UniquePtr<Op>(a)); ops.push_back(UniquePtr<Op>(new DivWithZero(&a->Value()))); } else if (FromString(arg, c)) { ops.push_back(UniquePtr<Op>(new DivWithZero(c))); } else { const char *fname = arg; const char *aname = nullptr; if (HAS_ARGUMENT) { aname = ARGUMENT; } else { #if MIRTK_Image_WITH_VTK if (dataset && arrays->HasArray(fname)) { aname = fname; fname = input_name; } #endif } UniquePtr<DivWithZero> op(new DivWithZero(fname)); if (aname) { #if MIRTK_Image_WITH_VTK op->ArrayName(aname); op->IsCellData(cell_data); #else FatalError("Cannot read point set files when build without VTK or wrong usage!"); #endif } ops.push_back(UniquePtr<Op>(op.release())); } } else if (OPTION("-abs")) { ops.push_back(UniquePtr<Op>(new Abs())); } else if (OPTION("-pow") || OPTION("-power")) { const char *arg = ARGUMENT; double exponent; if (!FromString(arg, exponent)) { cerr << "Invalid -power value, must be a number!" << endl; exit(1); } ops.push_back(UniquePtr<Op>(new Pow(exponent))); } else if (OPTION("-sqrt")) { ops.push_back(UniquePtr<Op>(new Pow(.5))); } else if (OPTION("-square") || OPTION("-sq")) { ops.push_back(UniquePtr<Op>(new Pow(2.0))); } else if (OPTION("-exp")) { ops.push_back(UniquePtr<Op>(new Exp())); } else if (OPTION("-log") || OPTION("-log2") || OPTION("-loge") || OPTION("-log10") || OPTION("-lb") || OPTION("-ln") || OPTION("-lg")) { a = numeric_limits<double>::min(); if (HAS_ARGUMENT) { PARSE_ARGUMENT(a); if (a <= .0) { cerr << "Invalid -log threshold argument, must be a positive number" << endl; exit(1); } } Op *op = nullptr; if (strcmp(OPTNAME, "-log") == 0) { if (HAS_ARGUMENT) { double base; if (!FromString(ARGUMENT, base)) { char c; if (!FromString(ARGUMENT, c) || c != 'e') { cerr << "Invalid -log base argument, must be a positive number or character e" << endl; exit(1); } op = new Ln(a); } else { op = new Log(base, a); } } else { op = new Ln(a); } } else if (strcmp(OPTNAME, "-log2") == 0 || strcmp(OPTNAME, "-lb") == 0) { op = new Lb(a); } else if (strcmp(OPTNAME, "-log10") == 0 || strcmp(OPTNAME, "-lg") == 0) { op = new Lg(a); } else if (strcmp(OPTNAME, "-loge") == 0 || strcmp(OPTNAME, "-ln") == 0) { op = new Ln(a); } ops.push_back(UniquePtr<Op>(op)); } else if (OPTION("-mod") || OPTION("-fmod")) { const char *arg = ARGUMENT; double denominator; if (!FromString(arg, denominator) || abs(denominator) < 1e-12) { cerr << "Invalid -mod value, must be a non-zero number!" << endl; exit(1); } ops.push_back(UniquePtr<Op>(new Mod(denominator))); } else if (OPTION("-floor")) { ops.push_back(UniquePtr<Op>(new Floor())); } else if (OPTION("-ceil")) { ops.push_back(UniquePtr<Op>(new Ceil())); } else if (OPTION("-round")) { ops.push_back(UniquePtr<Op>(new Round())); } else if (OPTION("=")) { const char *fname = ARGUMENT; #if MIRTK_Image_WITH_VTK ops.push_back(UniquePtr<Op>(new Write(fname, datatype, attr, dataset, scalars_name, scalars_name))); #else ops.push_back(UniquePtr<Op>(new Write(fname, datatype, attr))); #endif } else if (OPTION("-o") || OPTION("-out") || OPTION("-output")) { const char *fname = ARGUMENT; int dtype = datatype; #if MIRTK_Image_WITH_VTK const char *output_scalars_name = scalars_name; #endif if (HAS_ARGUMENT) { const char *arg = ARGUMENT; dtype = ToDataType(arg); if (dtype == MIRTK_VOXEL_UNKNOWN) { cerr << "Invalid -out data type " << arg << endl; exit(1); } if (HAS_ARGUMENT) { #if MIRTK_Image_WITH_VTK output_scalars_name = ARGUMENT; #else Warning("Output scalars array name argument of -output option ignored"); #endif } } #if MIRTK_Image_WITH_VTK ops.push_back(UniquePtr<Op>(new Write(fname, dtype, attr, dataset, scalars_name, output_scalars_name, cell_data))); #else ops.push_back(UniquePtr<Op>(new Write(fname, dtype, attr))); #endif // Data statistics } else if (OPTION("-median")) { ops.push_back(UniquePtr<Op>(new Median())); } else if (OPTION("-mean") || OPTION("-average") || OPTION("-avg")) { ops.push_back(UniquePtr<Op>(new Mean())); } else if (OPTION("-sigma") || OPTION("-stddev") || OPTION("-stdev") || OPTION("-std") || OPTION("-sd")) { ops.push_back(UniquePtr<Op>(new StDev())); } else if (OPTION("-normal-distribution") || OPTION("-mean+sigma") || OPTION("-mean+stddev") || OPTION("-mean+stdev") || OPTION("-mean+std") || OPTION("-mean+sd") || OPTION("-avg+sigma") || OPTION("-avg+stddev") || OPTION("-avg+stdev") || OPTION("-avg+std") || OPTION("-avg+sd")) { ops.push_back(UniquePtr<Op>(new NormalDistribution())); } else if (OPTION("-variance") || OPTION("-var")) { ops.push_back(UniquePtr<Op>(new Var())); } else if (OPTION("-mean-absolute-difference") || OPTION("-mean-absolute-deviation") || OPTION("-mad") || OPTION("-mad-mean")) { ops.push_back(UniquePtr<Op>(new MeanAbsoluteDifference())); } else if (OPTION("-median-absolute-difference") || OPTION("-median-absolute-deviation") || OPTION("-mad-median")) { ops.push_back(UniquePtr<Op>(new MedianAbsoluteDifference())); } else if (OPTION("-minimum") || OPTION("-min")) { ops.push_back(UniquePtr<Op>(new Min())); } else if (OPTION("-maximum") || OPTION("-max")) { ops.push_back(UniquePtr<Op>(new Max())); } else if (OPTION("-extrema") || OPTION("-minmax")) { ops.push_back(UniquePtr<Op>(new Extrema())); } else if (OPTION("-range")) { ops.push_back(UniquePtr<Op>(new Range())); } else if (OPTION("-percentile") || OPTION("-pct") || OPTION("-p")) { do { int p; if (FromString(ARGUMENT, p) && 0 <= p && p <= 100) { ops.push_back(UniquePtr<Op>(new Percentile(p))); } else { cerr << "Invalid -percentile value, must be integer in the range [0, 100]!" << endl; exit(1); } } while (HAS_ARGUMENT); } else if (OPTION("-lower-percentile-mean") || OPTION("-lpctavg")) { do { int p; if (FromString(ARGUMENT, p) && 0 <= p && p <= 100) { ops.push_back(UniquePtr<Op>(new LowerPercentileMean(p))); } else { cerr << "Invalid -lower-percentile-mean value, must be integer in the range [0, 100]!" << endl; exit(1); } } while (HAS_ARGUMENT); } else if (OPTION("-upper-percentile-mean") || OPTION("-upctavg")) { do { int p; if (FromString(ARGUMENT, p) && 0 <= p && p <= 100) { ops.push_back(UniquePtr<Op>(new UpperPercentileMean(p))); } else { cerr << "Invalid -upper-percentile-mean value, must be integer in the range [0, 100]!" << endl; exit(1); } } while (HAS_ARGUMENT); } else if (OPTION("-sum")) { ops.push_back(UniquePtr<Op>(new Sum())); } else if (OPTION("-count")) { ops.push_back(UniquePtr<Op>(new Count())); } else if (OPTION("-delimiter") || OPTION("-delim") || OPTION("-d") || OPTION("-sep")) { delimiter = ARGUMENT; } else if (OPTION("-precision") || OPTION("-digits")) { if (!FromString(ARGUMENT, digits) || digits < 0) { cerr << "Invalid -precision argument, value must be non-negative integer!" << endl; exit(1); } } else { HANDLE_COMMON_OR_UNKNOWN_OPTION(); } } // If delimiter explicitly set to empty string, use none if (delimiter && delimiter[0] == '\0') delimiter = NULL; // Default statistics to compute if (ops.empty()) { ops.push_back(UniquePtr<Statistic>(new Mean())); ops.push_back(UniquePtr<Statistic>(new StDev())); ops.push_back(UniquePtr<Statistic>(new Extrema())); ops.push_back(UniquePtr<Statistic>(new Range())); } // Initial data mask UniquePtr<bool[]> mask(new bool[n]); for (int i = 0; i < n; ++i) { if (IsNaN(data[i])) { mask[i] = false; } else { mask[i] = true; } } // Process input data, either transform it or compute statistics from it for (size_t i = 0; i < ops.size(); ++i) { ops[i]->Process(n, data.get(), mask.get()); } mask.reset(); // Open output file to append to or use STDOUT if none specified ofstream ofs; if (append_name) { if (print_header) { ifstream ifs(append_name); if (ifs.is_open()) { print_header = false; ifs.close(); } } ofs.open(append_name, ios_base::app); if (!ofs.is_open()) { FatalError("Cannot append to file " << append_name); } } ostream &out = (ofs.is_open() ? ofs : cout); // Print column names if requested if (delimiter && print_header) { size_t c = 0; for (size_t i = 0; i < prefix.size(); ++i, ++c) { if (c > 0) out << delimiter; if (c < header.size()) out << header[c]; } for (size_t i = 0; i < ops.size(); ++i) { Statistic *stat = dynamic_cast<Statistic *>(ops[i].get()); if (stat != nullptr && !stat->Hidden()) { for (size_t j = 0; j < stat->Names().size(); ++j, ++c) { if (c > 0) out << delimiter; if (c < header.size()) out << header[c]; else out << stat->Names()[j]; } } } out << endl; } // Print image statistics if (delimiter) { for (size_t i = 0; i < prefix.size(); ++i) { if (i > 0) out << delimiter; out << prefix[i]; } bool first = prefix.empty(); for (size_t i = 0; i < ops.size(); ++i) { Statistic *stat = dynamic_cast<Statistic *>(ops[i].get()); if (stat != nullptr && !stat->Hidden() && !stat->Names().empty()) { if (!first) out << delimiter; else first = false; stat->PrintValues(out, digits, delimiter); } } // No newline at end of row if printing results to STDOUT which in this // case is usually assigned to a string in a calling script if (print_header || ofs.is_open()) out << endl; } else { string prefix_string; for (size_t i = 0; i < prefix.size(); ++i) { if (i > 0) prefix_string += ' '; prefix_string += prefix[i]; } for (size_t i = 0; i < ops.size(); ++i) { Statistic *stat = dynamic_cast<Statistic *>(ops[i].get()); if (stat != nullptr && !stat->Hidden()) { stat->Print(out, digits, prefix_string.c_str()); } } } ofs.close(); return 0; }
BioMedIA/MIRTK
Applications/src/calculate-element-wise.cc
C++
apache-2.0
50,080
<%# Copyright 2013-2017 the original author or authors. This file is part of the JHipster project, see https://jhipster.github.io/ for more information. 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. -%> import { SpyObject } from './spyobject'; import { Principal } from '../../../../main/webapp/app/shared/auth/principal.service'; import Spy = jasmine.Spy; export class MockPrincipal extends SpyObject { identitySpy: Spy; fakeResponse: any; constructor() { super(Principal); this.fakeResponse = {}; this.identitySpy = this.spy('identity').andReturn(Promise.resolve(this.fakeResponse)); } setResponse(json: any): void { this.fakeResponse = json; } }
fjuriolli/scribble
node_modules/generator-jhipster/generators/client/templates/angular/src/test/javascript/spec/helpers/_mock-principal.service.ts
TypeScript
apache-2.0
1,203
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.intellij.codeInsight.template.macro; import com.intellij.codeInsight.CodeInsightBundle; import com.intellij.codeInsight.lookup.LookupElement; import com.intellij.codeInsight.template.*; import com.intellij.openapi.project.Project; import com.intellij.psi.*; import com.intellij.psi.util.TypeConversionUtil; import org.jetbrains.annotations.NotNull; /** * @author ven */ public class IterableComponentTypeMacro implements Macro { public String getName() { return "iterableComponentType"; } public String getDescription() { return CodeInsightBundle.message("macro.iterable.component.type"); } public String getDefaultValue() { return "a"; } public Result calculateResult(@NotNull Expression[] params, ExpressionContext context) { if (params.length != 1) return null; final Result result = params[0].calculateResult(context); if (result == null) return null; Project project = context.getProject(); PsiDocumentManager.getInstance(project).commitAllDocuments(); PsiExpression expr = MacroUtil.resultToPsiExpression(result, context); if (expr == null) return null; PsiType type = expr.getType(); if (type instanceof PsiArrayType) { return new PsiTypeResult(((PsiArrayType)type).getComponentType(), project); } if (type instanceof PsiClassType) { PsiClassType.ClassResolveResult resolveResult = ((PsiClassType)type).resolveGenerics(); PsiClass aClass = resolveResult.getElement(); if (aClass != null) { PsiClass iterableClass = JavaPsiFacade.getInstance(project).findClass("java.lang.Iterable", aClass.getResolveScope()); if (iterableClass != null) { PsiSubstitutor substitutor = TypeConversionUtil.getClassSubstitutor(iterableClass, aClass, resolveResult.getSubstitutor()); if (substitutor != null) { PsiType parameterType = substitutor.substitute(iterableClass.getTypeParameters()[0]); if (parameterType instanceof PsiCapturedWildcardType) { parameterType = ((PsiCapturedWildcardType)parameterType).getWildcard(); } if (parameterType != null) { if (parameterType instanceof PsiWildcardType) { if (((PsiWildcardType)parameterType).isExtends()) { return new PsiTypeResult(((PsiWildcardType)parameterType).getBound(), project); } else return null; } return new PsiTypeResult(parameterType, project); } } } } } return null; } public Result calculateQuickResult(@NotNull Expression[] params, ExpressionContext context) { return calculateResult(params, context); } public LookupElement[] calculateLookupItems(@NotNull Expression[] params, ExpressionContext context) { return LookupElement.EMPTY_ARRAY; } }
joewalnes/idea-community
java/java-impl/src/com/intellij/codeInsight/template/macro/IterableComponentTypeMacro.java
Java
apache-2.0
3,485
const ng = require('angular'); ng.module('porybox.static', ['ngRoute']).config(['$routeProvider', $routeProvider => { [ 'about', 'donate', 'extracting-pokemon-files', 'faq', 'how-to-pk6-1-bvs', 'how-to-pk6-2-homebrew', 'how-to-pk6-3-4-save-files', 'how-to-pk6-6-decrypted-powersaves', 'how-to-pk7-1-bvs', 'how-to-pk7-2-homebrew', 'how-to-pk7-3-digital-save-files', 'how-to-pk7-4-tea', 'markdown', 'privacy-policy', 'tos' ].forEach(pageName => { $routeProvider.when(`/${pageName}`, {templateUrl: `/static/${pageName}.html`}); }); $routeProvider.when('/extracting-pk6-files', {redirectTo: '/extracting-pokemon-files'}); }]);
porybox/porybox
client/static/static.module.js
JavaScript
apache-2.0
696
--- ID_PAGE: 22591 PG_TITLE: How to use LOD --- Babylon.js comes with an integrated support for level of detail. This feature allows you to specify different meshes based on distance to viewer. For instance, here is how to define 4 levels of details for a given mesh: ```javascript var knot00 = BABYLON.Mesh.CreateTorusKnot("knot0", 0.5, 0.2, 128, 64, 2, 3, scene); var knot01 = BABYLON.Mesh.CreateTorusKnot("knot1", 0.5, 0.2, 32, 16, 2, 3, scene); var knot02 = BABYLON.Mesh.CreateTorusKnot("knot2", 0.5, 0.2, 24, 12, 2, 3, scene); var knot03 = BABYLON.Mesh.CreateTorusKnot("knot3", 0.5, 0.2, 16, 8, 2, 3, scene); knot00.addLODLevel(15, knot01); knot00.addLODLevel(30, knot02); knot00.addLODLevel(45, knot03); knot00.addLODLevel(55, null); ``` The first parameter used with ```addLODLevel``` defines the distance to the camera. Beyond this distance, the specified level is used. Each level is independent and can have its own material. By defining a level of detail to null, you disable rendering of the current mesh, when it is viewed beyond the indicated distance to camera. When a mesh is used as a level of detail for another mesh, it is linked to it and cannot be rendered directly. You can remove a LOD level by using ```removeLODLevel```: ```javascript knot00.removeLODLevel(knot02); knot00.removeLODLevel(null); ``` Try: [LOD playground](http://www.babylonjs-playground.com/#QE7KM) ## Using LOD and instances By default, instances will use LOD defined on root mesh. You do not have to specify anything on instances: ```javascript var count = 3; var scale = 4; var knot00 = BABYLON.Mesh.CreateTorusKnot("knot0", 0.5, 0.2, 128, 64, 2, 3, scene); var knot01 = BABYLON.Mesh.CreateTorusKnot("knot1", 0.5, 0.2, 32, 16, 2, 3, scene); var knot02 = BABYLON.Mesh.CreateTorusKnot("knot2", 0.5, 0.2, 24, 12, 2, 3, scene); var knot03 = BABYLON.Mesh.CreateTorusKnot("knot3", 0.5, 0.2, 16, 8, 2, 3, scene); knot00.setEnabled(false); knot00.addLODLevel(15, knot01); knot00.addLODLevel(30, knot02); knot00.addLODLevel(45, knot03); knot00.addLODLevel(55, null); for (var x = -count; x <= count; x++) {     for (var y = -count; y <= count; y++) {         for (var z = 5; z < 10; z++) {             var knot = knot00.createInstance("knotI"),             knot.position = new BABYLON.Vector3(x * scale, y * scale, z * scale);         }     } } ``` Try: [LOD and instances playground](http://www.babylonjs-playground.com/#14ESWC)
h53d/babylonjs-doc-cn
target/tutorials/03_Advanced/How_to_use_LOD.md
Markdown
apache-2.0
2,463
Follow these simple instructions to install this custom symbol; the overall process should only take a minutes. 1. In Windows Explorer, navigate to the "PIPC\PIVision" installation folder on your PI Vision server; typically, it's located in "C:\Program Files\PIPC\PIVision" 2. From within the folder named "PIVision", navigate to the "\Scripts\app\editor\symbols" sub-folder. 3. Within the folder named "symbols", if there is not already a folder called "ext", create a folder called "ext". 4. This is a symbol that uses the free plotly library; thus, download the plotly library .js file, located at https://cdn.plot.ly/plotly-latest.min.js. Now that the "ext" folder exists, or already exits, copy and paste the plotly-latest.min.js file that you just downloaded into the "ext" folder. 5. Now that the "ext" folder exists, or already exits, open it, and paste into the "ext" folder the one .js and two .html files contained in the custom symbol .ZIP folder that you were sent. 6. Within the folder named "ext", if there is not already a folder called "Icons", create a folder called "Icons". 7. Now that the "Icons" folder exists, or already exits, open it, and paste into the "Icons" folder the one .png image file contained in the custom symbol .ZIP folder that you were sent. The next time you open a web browser and navigate to PI Vision and create a new PI Vision display, you will see this new symbol appear in the top-left-hand corner of the PI Vision display editor.
osisoft/PI-Coresight-Custom-Symbols
Community Samples/OSIsoft/plotly-simpleTrend/README.md
Markdown
apache-2.0
1,491
--- title: Action Collection --- # Action Collection Design * Extract common code from the Resource Reporter and Data Collector. * Expose a general purpose API for querying a record of all actions taken during the Chef run. * Enable utilities like the 'zap' cookbook to be written to interact properly with Custom Resources. The Action Collection tracks all actions taken by all Chef resources. The resources can be in recipe code, as sub-resources of custom resources or they may be built "by hand". Since the Action Collection hooks the events which are fired from the `run_action` method on Chef::Resource it does not matter how the resources were built (as long as they were correctly passed the Chef `run_context`). This is complementary, but superior, to the resource collection which has an incomplete picture of what might happen or has happened in the run since there are many common ways of invoking resource actions which are not captured by how the resource collection is built. Replaying the sequence of actions in the Action Collection would be closer to replaying the chef-client converge than trying to re-converge the resource collection (although both of those models are still flawed in the presence of any imperative code that controls the shape of those objects). This design extracts common duplicated code from the Data Collection and old Resource Reporter, and is designed to be used by other consumers which need to ask questions like "in this run, what file resources had actions fired on them?", which can then be used to answer questions like "which files is Chef managing in this directory?". # Usage ## Action Collection Event Hook Registration Consumers may register an event handler which hooks the `action_collection_registration` hook. This event is fired directly before recipes are compiled and converged (after library loading, attributes, etc). This is just before the earliest point in time that a resource should fire an action so represents the latest point that a consumer should make a decision about if it needs the Action Collection to be enabled or not. Consumers can hook this method. They will be passed the Action Collection instance, which can be saved by the caller to be queried later. They should then register themselves with the Action Collection (since without registering any interest, the Action Collection will disable itself). ```ruby def action_collection_registration(action_collection) @action_collection = action_collection action_collection.register(self) end ``` ## Library Registration Any cookbook library code may also register itself with the Action Collection. The Action Collection will be registered with the `run_context` after it is created, so registration may be accomplished easily: ```ruby Chef.run_context.action_collection.register(self) ``` ## Action Collection Requires Registration If one of the prior methods is not used to register for the Action Collection, then the Action Collection will disable itself and will not compile the Action Collection in order to not waste the memory overhead of tracking the actions during the run. The Data Collector takes advantage of this since if the run start message from the Data Collector is refused by the server, then the Data Collector disables itself, and then does not register with the Action Collection, which would disable the Action Collection. This makes use of the delayed hooking through the `action_collection_regsitration` so that the Data Collector never registers itself after it is disabled. ## Searching There is a function `filtered_collection` which returns "slices" off of the `ActionCollection` object. The `max_nesting` argument can be used to prune how deep into sub-resources the returned view goes (`max_nesting: 0` will return only resources in recipe context, with any hand created resources, but no subresources). There are also 5 different states of the action: `up_to_date`, `skipped`, `updated`, `failed`, `unprocessed` which can be filtered on. All of these are true by default, so they must be disabled to remove them from the filtered collection. The `ActionCollection` object itself implements enumerable and returns `ActionRecord` objects (see the `ActionCollection` code for the fields exposed on `ActionRecord`s). This would return all file resources in any state in the recipe context: ``` Chef.run_context.action_collection.filtered_collection(max_nesting: 0).select { |rec| rec.new_resource.is_a?(Chef::Resource::File) } ``` NOTE: As the Action Collection API was initially designed around the Resource Reporter and Data Collector use cases, the searching API is currently rudimentary and could easily lift some of the searching features on the name of the resource from the resource collection, and could use a more fluent API for composing searches. # Implementation Details ## Resource Event Lifecycle Hooks Resources actions fire off several events in sequence: 1. `resource_action_start` - this is always fired first 2. `resource_current_state_loaded` - this is normally always second, but may be skipped in the case of a resource which throws an exception during `load_current_resource` (which means that the `current_resource` off the `ActionRecord` may be nil). 3. `resource_up_to_date` / `resource_skipped` / `resource_updated` / `resource_failed` - one of these is always called which corresponds to the state of the action. 4. `resource_completed` - this is always fired last For skipped resources, the conditional will be saved in the `ActionRecord`. For failed resources the exception is saved in the `ActionRecord`. ## Unprocessed Resources The unprocessed resource concept is to report on resources which are left in the resource collection after a failure. A successful Chef run should never leave any unprocessed resources (`action :nothing` resources are still inspected by the resource collection and are processed). There must be an exception thrown during the execution of the resource collection, and the unprocessed resources were never visited by the runner that executes the resource collection. This list will be necessarily incomplete of any unprocessed sub-resources in custom resources, since the run was aborted before those resources executed actions and built their own sub-resource collections. This was a design requirement of the Data Collector. To implement this in a more sane manner the runner that evaluates the resource collection now tracks the resources that it visits.
Tensibai/chef
docs/dev/design_documents/action_collection.md
Markdown
apache-2.0
6,542
This sample Android app demonstrates having several maps as pages in a `ViewPager`. This app is covered in [the chapter on Maps V2](https://commonsware.com/Android/previews/mapping-with-maps-v2) in [*The Busy Coder's Guide to Android Development*](https://commonsware.com/Android/).
alexsh/cw-omnibus
MapsV2/Pager/README.markdown
Markdown
apache-2.0
286
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.intellij.openapi.fileEditor.impl; import com.intellij.AppTopics; import com.intellij.CommonBundle; import com.intellij.codeStyle.CodeStyleFacade; import com.intellij.openapi.Disposable; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.TransactionGuard; import com.intellij.openapi.application.TransactionGuardImpl; import com.intellij.openapi.application.WriteAction; import com.intellij.openapi.command.CommandProcessor; import com.intellij.openapi.command.UndoConfirmationPolicy; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.EditorFactory; import com.intellij.openapi.editor.event.DocumentEvent; import com.intellij.openapi.editor.ex.DocumentEx; import com.intellij.openapi.editor.ex.PrioritizedDocumentListener; import com.intellij.openapi.editor.impl.EditorFactoryImpl; import com.intellij.openapi.editor.impl.TrailingSpacesStripper; import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.fileEditor.*; import com.intellij.openapi.fileEditor.impl.text.TextEditorImpl; import com.intellij.openapi.fileTypes.BinaryFileTypeDecompilers; import com.intellij.openapi.fileTypes.FileType; import com.intellij.openapi.fileTypes.UnknownFileType; import com.intellij.openapi.project.*; import com.intellij.openapi.ui.DialogWrapper; import com.intellij.openapi.util.Comparing; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.Key; import com.intellij.openapi.util.io.FileUtilRt; import com.intellij.openapi.util.text.StringUtil; import com.intellij.openapi.vfs.*; import com.intellij.openapi.vfs.encoding.EncodingManager; import com.intellij.openapi.vfs.newvfs.NewVirtualFileSystem; import com.intellij.pom.core.impl.PomModelImpl; import com.intellij.psi.ExternalChangeAction; import com.intellij.psi.PsiDocumentManager; import com.intellij.psi.PsiFile; import com.intellij.psi.SingleRootFileViewProvider; import com.intellij.psi.impl.source.PsiFileImpl; import com.intellij.testFramework.LightVirtualFile; import com.intellij.ui.UIBundle; import com.intellij.ui.components.JBScrollPane; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.messages.MessageBus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.TestOnly; import javax.swing.*; import java.awt.*; import java.io.IOException; import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.nio.charset.Charset; import java.util.*; import java.util.List; public class FileDocumentManagerImpl extends FileDocumentManager implements VirtualFileListener, VetoableProjectManagerListener, SafeWriteRequestor { private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl"); public static final Key<Document> HARD_REF_TO_DOCUMENT_KEY = Key.create("HARD_REF_TO_DOCUMENT_KEY"); private static final Key<String> LINE_SEPARATOR_KEY = Key.create("LINE_SEPARATOR_KEY"); private static final Key<VirtualFile> FILE_KEY = Key.create("FILE_KEY"); private static final Key<Boolean> MUST_RECOMPUTE_FILE_TYPE = Key.create("Must recompute file type"); private final Set<Document> myUnsavedDocuments = ContainerUtil.newConcurrentSet(); private final MessageBus myBus; private static final Object lock = new Object(); private final FileDocumentManagerListener myMultiCaster; private final TrailingSpacesStripper myTrailingSpacesStripper = new TrailingSpacesStripper(); private boolean myOnClose; private volatile MemoryDiskConflictResolver myConflictResolver = new MemoryDiskConflictResolver(); private final PrioritizedDocumentListener myPhysicalDocumentChangeTracker = new PrioritizedDocumentListener() { @Override public int getPriority() { return Integer.MIN_VALUE; } @Override public void documentChanged(DocumentEvent e) { final Document document = e.getDocument(); if (!ApplicationManager.getApplication().hasWriteAction(ExternalChangeAction.ExternalDocumentChange.class)) { myUnsavedDocuments.add(document); } final Runnable currentCommand = CommandProcessor.getInstance().getCurrentCommand(); Project project = currentCommand == null ? null : CommandProcessor.getInstance().getCurrentCommandProject(); if (project == null) project = ProjectUtil.guessProjectForFile(getFile(document)); String lineSeparator = CodeStyleFacade.getInstance(project).getLineSeparator(); document.putUserData(LINE_SEPARATOR_KEY, lineSeparator); // avoid documents piling up during batch processing if (areTooManyDocumentsInTheQueue(myUnsavedDocuments)) { saveAllDocumentsLater(); } } }; public FileDocumentManagerImpl(@NotNull VirtualFileManager virtualFileManager, @NotNull ProjectManager projectManager) { virtualFileManager.addVirtualFileListener(this); projectManager.addProjectManagerListener(this); myBus = ApplicationManager.getApplication().getMessageBus(); myBus.connect().subscribe(ProjectManager.TOPIC, this); InvocationHandler handler = (proxy, method, args) -> { multiCast(method, args); return null; }; final ClassLoader loader = FileDocumentManagerListener.class.getClassLoader(); myMultiCaster = (FileDocumentManagerListener)Proxy.newProxyInstance(loader, new Class[]{FileDocumentManagerListener.class}, handler); } private static void unwrapAndRethrow(Exception e) { Throwable unwrapped = e; if (e instanceof InvocationTargetException) { unwrapped = e.getCause() == null ? e : e.getCause(); } if (unwrapped instanceof Error) throw (Error)unwrapped; if (unwrapped instanceof RuntimeException) throw (RuntimeException)unwrapped; LOG.error(unwrapped); } @SuppressWarnings("OverlyBroadCatchBlock") private void multiCast(@NotNull Method method, Object[] args) { try { method.invoke(myBus.syncPublisher(AppTopics.FILE_DOCUMENT_SYNC), args); } catch (ClassCastException e) { LOG.error("Arguments: "+ Arrays.toString(args), e); } catch (Exception e) { unwrapAndRethrow(e); } // Allows pre-save document modification for (FileDocumentManagerListener listener : getListeners()) { try { method.invoke(listener, args); } catch (Exception e) { unwrapAndRethrow(e); } } // stripping trailing spaces try { method.invoke(myTrailingSpacesStripper, args); } catch (Exception e) { unwrapAndRethrow(e); } } @Override @Nullable public Document getDocument(@NotNull final VirtualFile file) { ApplicationManager.getApplication().assertReadAccessAllowed(); DocumentEx document = (DocumentEx)getCachedDocument(file); if (document == null) { if (!file.isValid() || file.isDirectory() || isBinaryWithoutDecompiler(file)) return null; boolean tooLarge = FileUtilRt.isTooLarge(file.getLength()); if (file.getFileType().isBinary() && tooLarge) return null; final CharSequence text = tooLarge ? LoadTextUtil.loadText(file, getPreviewCharCount(file)) : LoadTextUtil.loadText(file); synchronized (lock) { document = (DocumentEx)getCachedDocument(file); if (document != null) return document; // Double checking document = (DocumentEx)createDocument(text, file); document.setModificationStamp(file.getModificationStamp()); final FileType fileType = file.getFileType(); document.setReadOnly(tooLarge || !file.isWritable() || fileType.isBinary()); if (!(file instanceof LightVirtualFile || file.getFileSystem() instanceof NonPhysicalFileSystem)) { document.addDocumentListener(myPhysicalDocumentChangeTracker); } if (file instanceof LightVirtualFile) { registerDocument(document, file); } else { document.putUserData(FILE_KEY, file); cacheDocument(file, document); } } myMultiCaster.fileContentLoaded(file, document); } return document; } public static boolean areTooManyDocumentsInTheQueue(Collection<Document> documents) { if (documents.size() > 100) return true; int totalSize = 0; for (Document document : documents) { totalSize += document.getTextLength(); if (totalSize > FileUtilRt.LARGE_FOR_CONTENT_LOADING) return true; } return false; } private static Document createDocument(final CharSequence text, VirtualFile file) { boolean acceptSlashR = file instanceof LightVirtualFile && StringUtil.indexOf(text, '\r') >= 0; boolean freeThreaded = Boolean.TRUE.equals(file.getUserData(SingleRootFileViewProvider.FREE_THREADED)); return ((EditorFactoryImpl)EditorFactory.getInstance()).createDocument(text, acceptSlashR, freeThreaded); } @Override @Nullable public Document getCachedDocument(@NotNull VirtualFile file) { Document hard = file.getUserData(HARD_REF_TO_DOCUMENT_KEY); return hard != null ? hard : getDocumentFromCache(file); } public static void registerDocument(@NotNull final Document document, @NotNull VirtualFile virtualFile) { synchronized (lock) { document.putUserData(FILE_KEY, virtualFile); virtualFile.putUserData(HARD_REF_TO_DOCUMENT_KEY, document); } } @Override @Nullable public VirtualFile getFile(@NotNull Document document) { return document.getUserData(FILE_KEY); } @TestOnly public void dropAllUnsavedDocuments() { if (!ApplicationManager.getApplication().isUnitTestMode()) { throw new RuntimeException("This method is only for test mode!"); } ApplicationManager.getApplication().assertWriteAccessAllowed(); if (!myUnsavedDocuments.isEmpty()) { myUnsavedDocuments.clear(); fireUnsavedDocumentsDropped(); } } private void saveAllDocumentsLater() { // later because some document might have been blocked by PSI right now ApplicationManager.getApplication().invokeLater(() -> { if (ApplicationManager.getApplication().isDisposed()) { return; } final Document[] unsavedDocuments = getUnsavedDocuments(); for (Document document : unsavedDocuments) { VirtualFile file = getFile(document); if (file == null) continue; Project project = ProjectUtil.guessProjectForFile(file); if (project == null) continue; if (PsiDocumentManager.getInstance(project).isDocumentBlockedByPsi(document)) continue; saveDocument(document); } }); } @Override public void saveAllDocuments() { saveAllDocuments(true); } /** * @param isExplicit caused by user directly (Save action) or indirectly (e.g. Compile) */ public void saveAllDocuments(boolean isExplicit) { ApplicationManager.getApplication().assertIsDispatchThread(); ((TransactionGuardImpl)TransactionGuard.getInstance()).assertWriteActionAllowed(); myMultiCaster.beforeAllDocumentsSaving(); if (myUnsavedDocuments.isEmpty()) return; final Map<Document, IOException> failedToSave = new HashMap<>(); final Set<Document> vetoed = new HashSet<>(); while (true) { int count = 0; for (Document document : myUnsavedDocuments) { if (failedToSave.containsKey(document)) continue; if (vetoed.contains(document)) continue; try { doSaveDocument(document, isExplicit); } catch (IOException e) { //noinspection ThrowableResultOfMethodCallIgnored failedToSave.put(document, e); } catch (SaveVetoException e) { vetoed.add(document); } count++; } if (count == 0) break; } if (!failedToSave.isEmpty()) { handleErrorsOnSave(failedToSave); } } @Override public void saveDocument(@NotNull final Document document) { saveDocument(document, true); } public void saveDocument(@NotNull final Document document, final boolean explicit) { ApplicationManager.getApplication().assertIsDispatchThread(); ((TransactionGuardImpl)TransactionGuard.getInstance()).assertWriteActionAllowed(); if (!myUnsavedDocuments.contains(document)) return; try { doSaveDocument(document, explicit); } catch (IOException e) { handleErrorsOnSave(Collections.singletonMap(document, e)); } catch (SaveVetoException ignored) { } } @Override public void saveDocumentAsIs(@NotNull Document document) { VirtualFile file = getFile(document); boolean spaceStrippingEnabled = true; if (file != null) { spaceStrippingEnabled = TrailingSpacesStripper.isEnabled(file); TrailingSpacesStripper.setEnabled(file, false); } try { saveDocument(document); } finally { if (file != null) { TrailingSpacesStripper.setEnabled(file, spaceStrippingEnabled); } } } private static class SaveVetoException extends Exception {} private void doSaveDocument(@NotNull final Document document, boolean isExplicit) throws IOException, SaveVetoException { VirtualFile file = getFile(document); if (file == null || file instanceof LightVirtualFile || file.isValid() && !isFileModified(file)) { removeFromUnsaved(document); return; } if (file.isValid() && needsRefresh(file)) { file.refresh(false, false); if (!myUnsavedDocuments.contains(document)) return; } if (!maySaveDocument(file, document, isExplicit)) { throw new SaveVetoException(); } WriteAction.run(() -> doSaveDocumentInWriteAction(document, file)); } private boolean maySaveDocument(VirtualFile file, Document document, boolean isExplicit) { return !myConflictResolver.hasConflict(file) && Arrays.stream(Extensions.getExtensions(FileDocumentSynchronizationVetoer.EP_NAME)).allMatch(vetoer -> vetoer.maySaveDocument(document, isExplicit)); } private void doSaveDocumentInWriteAction(@NotNull final Document document, @NotNull final VirtualFile file) throws IOException { if (!file.isValid()) { removeFromUnsaved(document); return; } if (!file.equals(getFile(document))) { registerDocument(document, file); } if (!isSaveNeeded(document, file)) { if (document instanceof DocumentEx) { ((DocumentEx)document).setModificationStamp(file.getModificationStamp()); } removeFromUnsaved(document); updateModifiedProperty(file); return; } PomModelImpl.guardPsiModificationsIn(() -> { myMultiCaster.beforeDocumentSaving(document); LOG.assertTrue(file.isValid()); String text = document.getText(); String lineSeparator = getLineSeparator(document, file); if (!lineSeparator.equals("\n")) { text = StringUtil.convertLineSeparators(text, lineSeparator); } Project project = ProjectLocator.getInstance().guessProjectForFile(file); LoadTextUtil.write(project, file, this, text, document.getModificationStamp()); myUnsavedDocuments.remove(document); LOG.assertTrue(!myUnsavedDocuments.contains(document)); myTrailingSpacesStripper.clearLineModificationFlags(document); }); } private static void updateModifiedProperty(@NotNull VirtualFile file) { for (Project project : ProjectManager.getInstance().getOpenProjects()) { FileEditorManager fileEditorManager = FileEditorManager.getInstance(project); for (FileEditor editor : fileEditorManager.getAllEditors(file)) { if (editor instanceof TextEditorImpl) { ((TextEditorImpl)editor).updateModifiedProperty(); } } } } private void removeFromUnsaved(@NotNull Document document) { myUnsavedDocuments.remove(document); fireUnsavedDocumentsDropped(); LOG.assertTrue(!myUnsavedDocuments.contains(document)); } private static boolean isSaveNeeded(@NotNull Document document, @NotNull VirtualFile file) throws IOException { if (file.getFileType().isBinary() || document.getTextLength() > 1000 * 1000) { // don't compare if the file is too big return true; } byte[] bytes = file.contentsToByteArray(); CharSequence loaded = LoadTextUtil.getTextByBinaryPresentation(bytes, file, false, false); return !Comparing.equal(document.getCharsSequence(), loaded); } private static boolean needsRefresh(final VirtualFile file) { final VirtualFileSystem fs = file.getFileSystem(); return fs instanceof NewVirtualFileSystem && file.getTimeStamp() != ((NewVirtualFileSystem)fs).getTimeStamp(file); } @NotNull public static String getLineSeparator(@NotNull Document document, @NotNull VirtualFile file) { String lineSeparator = LoadTextUtil.getDetectedLineSeparator(file); if (lineSeparator == null) { lineSeparator = document.getUserData(LINE_SEPARATOR_KEY); assert lineSeparator != null : document; } return lineSeparator; } @Override @NotNull public String getLineSeparator(@Nullable VirtualFile file, @Nullable Project project) { String lineSeparator = file == null ? null : LoadTextUtil.getDetectedLineSeparator(file); if (lineSeparator == null) { CodeStyleFacade settingsManager = project == null ? CodeStyleFacade.getInstance() : CodeStyleFacade.getInstance(project); lineSeparator = settingsManager.getLineSeparator(); } return lineSeparator; } @Override public boolean requestWriting(@NotNull Document document, Project project) { final VirtualFile file = getInstance().getFile(document); if (project != null && file != null && file.isValid()) { return !file.getFileType().isBinary() && ReadonlyStatusHandler.ensureFilesWritable(project, file); } if (document.isWritable()) { return true; } document.fireReadOnlyModificationAttempt(); return false; } @Override public void reloadFiles(@NotNull final VirtualFile... files) { for (VirtualFile file : files) { if (file.exists()) { final Document doc = getCachedDocument(file); if (doc != null) { reloadFromDisk(doc); } } } } @Override @NotNull public Document[] getUnsavedDocuments() { if (myUnsavedDocuments.isEmpty()) { return Document.EMPTY_ARRAY; } List<Document> list = new ArrayList<>(myUnsavedDocuments); return list.toArray(new Document[list.size()]); } @Override public boolean isDocumentUnsaved(@NotNull Document document) { return myUnsavedDocuments.contains(document); } @Override public boolean isFileModified(@NotNull VirtualFile file) { final Document doc = getCachedDocument(file); return doc != null && isDocumentUnsaved(doc) && doc.getModificationStamp() != file.getModificationStamp(); } @Override public void propertyChanged(@NotNull VirtualFilePropertyEvent event) { final VirtualFile file = event.getFile(); if (VirtualFile.PROP_WRITABLE.equals(event.getPropertyName())) { final Document document = getCachedDocument(file); if (document != null) { ApplicationManager.getApplication().runWriteAction((ExternalChangeAction)() -> document.setReadOnly(!file.isWritable())); } } else if (VirtualFile.PROP_NAME.equals(event.getPropertyName())) { Document document = getCachedDocument(file); if (document != null) { // a file is linked to a document - chances are it is an "unknown text file" now if (isBinaryWithoutDecompiler(file)) { unbindFileFromDocument(file, document); } } } } private void unbindFileFromDocument(@NotNull VirtualFile file, @NotNull Document document) { removeDocumentFromCache(file); file.putUserData(HARD_REF_TO_DOCUMENT_KEY, null); document.putUserData(FILE_KEY, null); } private static boolean isBinaryWithDecompiler(@NotNull VirtualFile file) { final FileType ft = file.getFileType(); return ft.isBinary() && BinaryFileTypeDecompilers.INSTANCE.forFileType(ft) != null; } private static boolean isBinaryWithoutDecompiler(@NotNull VirtualFile file) { final FileType fileType = file.getFileType(); return fileType.isBinary() && BinaryFileTypeDecompilers.INSTANCE.forFileType(fileType) == null; } @Override public void contentsChanged(@NotNull VirtualFileEvent event) { if (event.isFromSave()) return; final VirtualFile file = event.getFile(); final Document document = getCachedDocument(file); if (document == null) { myMultiCaster.fileWithNoDocumentChanged(file); return; } if (isBinaryWithDecompiler(file)) { myMultiCaster.fileWithNoDocumentChanged(file); // This will generate PSI event at FileManagerImpl } if (document.getModificationStamp() == event.getOldModificationStamp() || !isDocumentUnsaved(document)) { reloadFromDisk(document); } } @Override public void reloadFromDisk(@NotNull final Document document) { ApplicationManager.getApplication().assertIsDispatchThread(); final VirtualFile file = getFile(document); assert file != null; if (!fireBeforeFileContentReload(file, document)) { return; } final Project project = ProjectLocator.getInstance().guessProjectForFile(file); boolean[] isReloadable = {isReloadable(file, document, project)}; if (isReloadable[0]) { CommandProcessor.getInstance().executeCommand(project, () -> ApplicationManager.getApplication().runWriteAction( new ExternalChangeAction.ExternalDocumentChange(document, project) { @Override public void run() { if (!isBinaryWithoutDecompiler(file)) { LoadTextUtil.setCharsetWasDetectedFromBytes(file, null); file.setBOM(null); // reset BOM in case we had one and the external change stripped it away file.setCharset(null, null, false); boolean wasWritable = document.isWritable(); document.setReadOnly(false); boolean tooLarge = FileUtilRt.isTooLarge(file.getLength()); CharSequence reloaded = tooLarge ? LoadTextUtil.loadText(file, getPreviewCharCount(file)) : LoadTextUtil.loadText(file); isReloadable[0] = isReloadable(file, document, project); if (isReloadable[0]) { DocumentEx documentEx = (DocumentEx)document; documentEx.replaceText(reloaded, file.getModificationStamp()); } document.setReadOnly(!wasWritable); } } } ), UIBundle.message("file.cache.conflict.action"), null, UndoConfirmationPolicy.REQUEST_CONFIRMATION); } if (isReloadable[0]) { myMultiCaster.fileContentReloaded(file, document); } else { unbindFileFromDocument(file, document); myMultiCaster.fileWithNoDocumentChanged(file); } myUnsavedDocuments.remove(document); } private static boolean isReloadable(@NotNull VirtualFile file, @NotNull Document document, @Nullable Project project) { PsiFile cachedPsiFile = project == null ? null : PsiDocumentManager.getInstance(project).getCachedPsiFile(document); return !(FileUtilRt.isTooLarge(file.getLength()) && file.getFileType().isBinary()) && (cachedPsiFile == null || cachedPsiFile instanceof PsiFileImpl || isBinaryWithDecompiler(file)); } @TestOnly void setAskReloadFromDisk(@NotNull Disposable disposable, @NotNull MemoryDiskConflictResolver newProcessor) { final MemoryDiskConflictResolver old = myConflictResolver; myConflictResolver = newProcessor; Disposer.register(disposable, () -> myConflictResolver = old); } @Override public void fileDeleted(@NotNull VirtualFileEvent event) { Document doc = getCachedDocument(event.getFile()); if (doc != null) { myTrailingSpacesStripper.documentDeleted(doc); } } @Override public void beforeContentsChange(@NotNull VirtualFileEvent event) { VirtualFile virtualFile = event.getFile(); // check file type in second order to avoid content detection running if (virtualFile.getLength() == 0 && virtualFile.getFileType() == UnknownFileType.INSTANCE) { virtualFile.putUserData(MUST_RECOMPUTE_FILE_TYPE, Boolean.TRUE); } myConflictResolver.beforeContentChange(event); } public static boolean recomputeFileTypeIfNecessary(@NotNull VirtualFile virtualFile) { if (virtualFile.getUserData(MUST_RECOMPUTE_FILE_TYPE) != null) { virtualFile.getFileType(); virtualFile.putUserData(MUST_RECOMPUTE_FILE_TYPE, null); return true; } return false; } @Override public boolean canClose(@NotNull Project project) { if (!myUnsavedDocuments.isEmpty()) { myOnClose = true; try { saveAllDocuments(); } finally { myOnClose = false; } } return myUnsavedDocuments.isEmpty(); } private void fireUnsavedDocumentsDropped() { myMultiCaster.unsavedDocumentsDropped(); } private boolean fireBeforeFileContentReload(final VirtualFile file, @NotNull Document document) { for (FileDocumentSynchronizationVetoer vetoer : Extensions.getExtensions(FileDocumentSynchronizationVetoer.EP_NAME)) { try { if (!vetoer.mayReloadFileContent(file, document)) { return false; } } catch (Exception e) { LOG.error(e); } } myMultiCaster.beforeFileContentReload(file, document); return true; } @NotNull private static FileDocumentManagerListener[] getListeners() { return FileDocumentManagerListener.EP_NAME.getExtensions(); } private static int getPreviewCharCount(@NotNull VirtualFile file) { Charset charset = EncodingManager.getInstance().getEncoding(file, false); float bytesPerChar = charset == null ? 2 : charset.newEncoder().averageBytesPerChar(); return (int)(FileUtilRt.LARGE_FILE_PREVIEW_SIZE / bytesPerChar); } private void handleErrorsOnSave(@NotNull Map<Document, IOException> failures) { if (ApplicationManager.getApplication().isUnitTestMode()) { IOException ioException = ContainerUtil.getFirstItem(failures.values()); if (ioException != null) { throw new RuntimeException(ioException); } return; } for (IOException exception : failures.values()) { LOG.warn(exception); } final String text = StringUtil.join(failures.values(), Throwable::getMessage, "\n"); final DialogWrapper dialog = new DialogWrapper(null) { { init(); setTitle(UIBundle.message("cannot.save.files.dialog.title")); } @Override protected void createDefaultActions() { super.createDefaultActions(); myOKAction.putValue(Action.NAME, UIBundle .message(myOnClose ? "cannot.save.files.dialog.ignore.changes" : "cannot.save.files.dialog.revert.changes")); myOKAction.putValue(DEFAULT_ACTION, null); if (!myOnClose) { myCancelAction.putValue(Action.NAME, CommonBundle.getCloseButtonText()); } } @Override protected JComponent createCenterPanel() { final JPanel panel = new JPanel(new BorderLayout(0, 5)); panel.add(new JLabel(UIBundle.message("cannot.save.files.dialog.message")), BorderLayout.NORTH); final JTextPane area = new JTextPane(); area.setText(text); area.setEditable(false); area.setMinimumSize(new Dimension(area.getMinimumSize().width, 50)); panel.add(new JBScrollPane(area, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER); return panel; } }; if (dialog.showAndGet()) { for (Document document : failures.keySet()) { reloadFromDisk(document); } } } private final Map<VirtualFile, Document> myDocumentCache = ContainerUtil.createConcurrentWeakValueMap(); // used in Upsource protected void cacheDocument(@NotNull VirtualFile file, @NotNull Document document) { myDocumentCache.put(file, document); } // used in Upsource protected void removeDocumentFromCache(@NotNull VirtualFile file) { myDocumentCache.remove(file); } // used in Upsource protected Document getDocumentFromCache(@NotNull VirtualFile file) { return myDocumentCache.get(file); } }
semonte/intellij-community
platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.java
Java
apache-2.0
29,248
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ using System; using System.Net; using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; using Org.Apache.REEF.Utilities.Diagnostics; using Org.Apache.REEF.Utilities.Logging; using Org.Apache.REEF.Wake.StreamingCodec; using Org.Apache.REEF.Wake.Util; namespace Org.Apache.REEF.Wake.Remote.Impl { /// <summary> /// Server to handle incoming remote messages. /// </summary> /// <typeparam name="T">Generic Type of message. It is constrained to have implemented IWritable and IType interface</typeparam> internal sealed class StreamingTransportServer<T> : IDisposable { private static readonly Logger LOGGER = Logger.GetLogger(typeof(TransportServer<>)); private TcpListener _listener; private readonly CancellationTokenSource _cancellationSource; private readonly IObserver<TransportEvent<T>> _remoteObserver; private readonly ITcpPortProvider _tcpPortProvider; private readonly IStreamingCodec<T> _streamingCodec; private bool _disposed; private Task _serverTask; /// <summary> /// Constructs a TransportServer to listen for remote events. /// Listens on the specified remote endpoint. When it receives a remote /// event, it will invoke the specified remote handler. /// </summary> /// <param name="address">Endpoint address to listen on</param> /// <param name="remoteHandler">The handler to invoke when receiving incoming /// remote messages</param> /// <param name="tcpPortProvider">Find port numbers if listenport is 0</param> /// <param name="streamingCodec">Streaming codec</param> internal StreamingTransportServer( IPAddress address, IObserver<TransportEvent<T>> remoteHandler, ITcpPortProvider tcpPortProvider, IStreamingCodec<T> streamingCodec) { _listener = new TcpListener(address, 0); _remoteObserver = remoteHandler; _tcpPortProvider = tcpPortProvider; _cancellationSource = new CancellationTokenSource(); _cancellationSource.Token.ThrowIfCancellationRequested(); _streamingCodec = streamingCodec; _disposed = false; } /// <summary> /// Returns the listening endpoint for the TransportServer /// </summary> public IPEndPoint LocalEndpoint { get { return _listener.LocalEndpoint as IPEndPoint; } } /// <summary> /// Starts listening for incoming remote messages. /// </summary> public void Run() { FindAPortAndStartListener(); _serverTask = Task.Run(() => StartServer()); } private void FindAPortAndStartListener() { var foundAPort = false; var exception = new SocketException((int)SocketError.AddressAlreadyInUse); for (var enumerator = _tcpPortProvider.GetEnumerator(); !foundAPort && enumerator.MoveNext();) { _listener = new TcpListener(LocalEndpoint.Address, enumerator.Current); try { _listener.Start(); foundAPort = true; } catch (SocketException e) { exception = e; } } if (!foundAPort) { Exceptions.Throw(exception, "Could not find a port to listen on", LOGGER); } LOGGER.Log(Level.Info, String.Format("Listening on {0}", _listener.LocalEndpoint.ToString())); } /// <summary> /// Close the TransportServer and all open connections /// </summary> public void Dispose() { if (!_disposed) { _cancellationSource.Cancel(); try { _listener.Stop(); } catch (SocketException) { LOGGER.Log(Level.Info, "Disposing of transport server before listener is created."); } if (_serverTask != null) { _serverTask.Wait(); // Give the TransportServer Task 500ms to shut down, ignore any timeout errors try { CancellationTokenSource serverDisposeTimeout = new CancellationTokenSource(500); _serverTask.Wait(serverDisposeTimeout.Token); } catch (Exception e) { Console.Error.WriteLine(e); } finally { _serverTask.Dispose(); } } } _disposed = true; } /// <summary> /// Helper method to start TransportServer. This will /// be run in an asynchronous Task. /// </summary> /// <returns>An asynchronous Task for the running server.</returns> private async Task StartServer() { try { while (!_cancellationSource.Token.IsCancellationRequested) { TcpClient client = await _listener.AcceptTcpClientAsync().ConfigureAwait(false); ProcessClient(client).Forget(); } } catch (InvalidOperationException) { LOGGER.Log(Level.Info, "TransportServer has been closed."); } catch (OperationCanceledException) { LOGGER.Log(Level.Info, "TransportServer has been closed."); } } /// <summary> /// Receives event from connected TcpClient and invokes handler on the event. /// </summary> /// <param name="client">The connected client</param> private async Task ProcessClient(TcpClient client) { // Keep reading messages from client until they disconnect or timeout CancellationToken token = _cancellationSource.Token; using (ILink<T> link = new StreamingLink<T>(client, _streamingCodec)) { while (!token.IsCancellationRequested) { T message = await link.ReadAsync(token); if (message == null) { break; } TransportEvent<T> transportEvent = new TransportEvent<T>(message, link); _remoteObserver.OnNext(transportEvent); } LOGGER.Log(Level.Error, "ProcessClient close the Link. IsCancellationRequested: " + token.IsCancellationRequested); } } } }
yunseong/incubator-reef
lang/cs/Org.Apache.REEF.Wake/Remote/Impl/StreamingTransportServer.cs
C#
apache-2.0
7,834
/* * Copyright (c) 2008-2017, Hazelcast, Inc. 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. */ package com.hazelcast.cluster.impl; import com.hazelcast.config.Config; import com.hazelcast.config.InterfacesConfig; import com.hazelcast.config.NetworkConfig; import com.hazelcast.config.TcpIpConfig; import com.hazelcast.instance.Node; import com.hazelcast.internal.cluster.impl.AbstractJoiner; import com.hazelcast.internal.cluster.impl.ClusterServiceImpl; import com.hazelcast.internal.cluster.impl.SplitBrainJoinMessage; import com.hazelcast.internal.cluster.impl.operations.JoinMastershipClaimOp; import com.hazelcast.nio.Address; import com.hazelcast.nio.Connection; import com.hazelcast.spi.properties.GroupProperty; import com.hazelcast.util.AddressUtil; import com.hazelcast.util.AddressUtil.AddressMatcher; import com.hazelcast.util.AddressUtil.InvalidAddressException; import com.hazelcast.util.Clock; import com.hazelcast.util.EmptyStatement; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.LinkedList; import java.util.Set; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import static com.hazelcast.util.AddressUtil.AddressHolder; public class TcpIpJoiner extends AbstractJoiner { private static final long JOIN_RETRY_WAIT_TIME = 1000L; private static final int LOOK_FOR_MASTER_MAX_TRY_COUNT = 20; private final int maxPortTryCount; private volatile boolean claimingMaster; public TcpIpJoiner(Node node) { super(node); int tryCount = node.getProperties().getInteger(GroupProperty.TCP_JOIN_PORT_TRY_COUNT); if (tryCount <= 0) { throw new IllegalArgumentException(String.format("%s should be greater than zero! Current value: %d", GroupProperty.TCP_JOIN_PORT_TRY_COUNT, tryCount)); } maxPortTryCount = tryCount; } public boolean isClaimingMaster() { return claimingMaster; } protected int getConnTimeoutSeconds() { return config.getNetworkConfig().getJoin().getTcpIpConfig().getConnectionTimeoutSeconds(); } @Override public void doJoin() { final Address targetAddress = getTargetAddress(); if (targetAddress != null) { long maxJoinMergeTargetMillis = node.getProperties().getMillis(GroupProperty.MAX_JOIN_MERGE_TARGET_SECONDS); joinViaTargetMember(targetAddress, maxJoinMergeTargetMillis); if (!clusterService.isJoined()) { joinViaPossibleMembers(); } } else if (config.getNetworkConfig().getJoin().getTcpIpConfig().getRequiredMember() != null) { Address requiredMember = getRequiredMemberAddress(); long maxJoinMillis = getMaxJoinMillis(); joinViaTargetMember(requiredMember, maxJoinMillis); } else { joinViaPossibleMembers(); } } private void joinViaTargetMember(Address targetAddress, long maxJoinMillis) { try { if (targetAddress == null) { throw new IllegalArgumentException("Invalid target address -> NULL"); } if (logger.isFineEnabled()) { logger.fine("Joining over target member " + targetAddress); } if (targetAddress.equals(node.getThisAddress()) || isLocalAddress(targetAddress)) { clusterJoinManager.setThisMemberAsMaster(); return; } long joinStartTime = Clock.currentTimeMillis(); Connection connection; while (shouldRetry() && (Clock.currentTimeMillis() - joinStartTime < maxJoinMillis)) { connection = node.connectionManager.getOrConnect(targetAddress); if (connection == null) { //noinspection BusyWait Thread.sleep(JOIN_RETRY_WAIT_TIME); continue; } if (logger.isFineEnabled()) { logger.fine("Sending joinRequest " + targetAddress); } clusterJoinManager.sendJoinRequest(targetAddress, true); //noinspection BusyWait Thread.sleep(JOIN_RETRY_WAIT_TIME); } } catch (final Exception e) { logger.warning(e); } } private void joinViaPossibleMembers() { try { blacklistedAddresses.clear(); Collection<Address> possibleAddresses = getPossibleAddresses(); boolean foundConnection = tryInitialConnection(possibleAddresses); if (!foundConnection) { logger.fine("This node will assume master role since no possible member where connected to."); clusterJoinManager.setThisMemberAsMaster(); return; } long maxJoinMillis = getMaxJoinMillis(); long startTime = Clock.currentTimeMillis(); while (shouldRetry() && (Clock.currentTimeMillis() - startTime < maxJoinMillis)) { tryToJoinPossibleAddresses(possibleAddresses); if (clusterService.isJoined()) { return; } if (isAllBlacklisted(possibleAddresses)) { logger.fine( "This node will assume master role since none of the possible members accepted join request."); clusterJoinManager.setThisMemberAsMaster(); return; } boolean masterCandidate = isThisNodeMasterCandidate(possibleAddresses); if (masterCandidate) { boolean consensus = claimMastership(possibleAddresses); if (consensus) { if (logger.isFineEnabled()) { Set<Address> votingEndpoints = new HashSet<Address>(possibleAddresses); votingEndpoints.removeAll(blacklistedAddresses.keySet()); logger.fine("Setting myself as master after consensus!" + " Voting endpoints: " + votingEndpoints); } clusterJoinManager.setThisMemberAsMaster(); claimingMaster = false; return; } } else { if (logger.isFineEnabled()) { logger.fine("Cannot claim myself as master! Will try to connect a possible master..."); } } claimingMaster = false; lookForMaster(possibleAddresses); } } catch (Throwable t) { logger.severe(t); } } @SuppressWarnings("checkstyle:npathcomplexity") private boolean claimMastership(Collection<Address> possibleAddresses) { if (logger.isFineEnabled()) { Set<Address> votingEndpoints = new HashSet<Address>(possibleAddresses); votingEndpoints.removeAll(blacklistedAddresses.keySet()); logger.fine("Claiming myself as master node! Asking to endpoints: " + votingEndpoints); } claimingMaster = true; Collection<Future<Boolean>> responses = new LinkedList<Future<Boolean>>(); for (Address address : possibleAddresses) { if (isBlacklisted(address)) { continue; } if (node.getConnectionManager().getConnection(address) != null) { Future<Boolean> future = node.nodeEngine.getOperationService() .createInvocationBuilder(ClusterServiceImpl.SERVICE_NAME, new JoinMastershipClaimOp(), address).setTryCount(1).invoke(); responses.add(future); } } final long maxWait = TimeUnit.SECONDS.toMillis(10); long waitTime = 0L; boolean consensus = true; for (Future<Boolean> response : responses) { long t = Clock.currentTimeMillis(); try { consensus = response.get(1, TimeUnit.SECONDS); } catch (Exception e) { logger.finest(e); consensus = false; } finally { waitTime += (Clock.currentTimeMillis() - t); } if (!consensus) { break; } if (waitTime > maxWait) { consensus = false; break; } } return consensus; } private boolean isThisNodeMasterCandidate(Collection<Address> possibleAddresses) { int thisHashCode = node.getThisAddress().hashCode(); for (Address address : possibleAddresses) { if (isBlacklisted(address)) { continue; } if (node.connectionManager.getConnection(address) != null) { if (thisHashCode > address.hashCode()) { return false; } } } return true; } private void tryToJoinPossibleAddresses(Collection<Address> possibleAddresses) throws InterruptedException { long connectionTimeoutMillis = TimeUnit.SECONDS.toMillis(getConnTimeoutSeconds()); long start = Clock.currentTimeMillis(); while (!clusterService.isJoined() && Clock.currentTimeMillis() - start < connectionTimeoutMillis) { Address masterAddress = clusterService.getMasterAddress(); if (isAllBlacklisted(possibleAddresses) && masterAddress == null) { return; } if (masterAddress != null) { if (logger.isFineEnabled()) { logger.fine("Sending join request to " + masterAddress); } clusterJoinManager.sendJoinRequest(masterAddress, true); } else { sendMasterQuestion(possibleAddresses); } if (!clusterService.isJoined()) { Thread.sleep(JOIN_RETRY_WAIT_TIME); } } } private boolean tryInitialConnection(Collection<Address> possibleAddresses) throws InterruptedException { long connectionTimeoutMillis = TimeUnit.SECONDS.toMillis(getConnTimeoutSeconds()); long start = Clock.currentTimeMillis(); while (Clock.currentTimeMillis() - start < connectionTimeoutMillis) { if (isAllBlacklisted(possibleAddresses)) { return false; } if (logger.isFineEnabled()) { logger.fine("Will send master question to each address in: " + possibleAddresses); } if (sendMasterQuestion(possibleAddresses)) { return true; } Thread.sleep(JOIN_RETRY_WAIT_TIME); } return false; } private boolean isAllBlacklisted(Collection<Address> possibleAddresses) { return blacklistedAddresses.keySet().containsAll(possibleAddresses); } @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) private void lookForMaster(Collection<Address> possibleAddresses) throws InterruptedException { int tryCount = 0; while (clusterService.getMasterAddress() == null && tryCount++ < LOOK_FOR_MASTER_MAX_TRY_COUNT) { sendMasterQuestion(possibleAddresses); //noinspection BusyWait Thread.sleep(JOIN_RETRY_WAIT_TIME); if (isAllBlacklisted(possibleAddresses)) { break; } } if (clusterService.isJoined()) { return; } if (isAllBlacklisted(possibleAddresses) && clusterService.getMasterAddress() == null) { if (logger.isFineEnabled()) { logger.fine("Setting myself as master! No possible addresses remaining to connect..."); } clusterJoinManager.setThisMemberAsMaster(); return; } long maxMasterJoinTime = getMaxJoinTimeToMasterNode(); long start = Clock.currentTimeMillis(); while (shouldRetry() && Clock.currentTimeMillis() - start < maxMasterJoinTime) { Address master = clusterService.getMasterAddress(); if (master != null) { if (logger.isFineEnabled()) { logger.fine("Joining to master " + master); } clusterJoinManager.sendJoinRequest(master, true); } else { break; } //noinspection BusyWait Thread.sleep(JOIN_RETRY_WAIT_TIME); } if (!clusterService.isJoined()) { Address master = clusterService.getMasterAddress(); if (master != null) { logger.warning("Couldn't join to the master: " + master); } else { if (logger.isFineEnabled()) { logger.fine("Couldn't find a master! But there was connections available: " + possibleAddresses); } } } } private boolean sendMasterQuestion(Collection<Address> possibleAddresses) { if (logger.isFineEnabled()) { logger.fine("NOT sending master question to blacklisted endpoints: " + blacklistedAddresses); } boolean sent = false; for (Address address : possibleAddresses) { if (isBlacklisted(address)) { continue; } if (logger.isFineEnabled()) { logger.fine("Sending master question to " + address); } if (clusterJoinManager.sendMasterQuestion(address)) { sent = true; } } return sent; } private Address getRequiredMemberAddress() { TcpIpConfig tcpIpConfig = config.getNetworkConfig().getJoin().getTcpIpConfig(); String host = tcpIpConfig.getRequiredMember(); try { AddressHolder addressHolder = AddressUtil.getAddressHolder(host, config.getNetworkConfig().getPort()); if (AddressUtil.isIpAddress(addressHolder.getAddress())) { return new Address(addressHolder.getAddress(), addressHolder.getPort()); } InterfacesConfig interfaces = config.getNetworkConfig().getInterfaces(); if (interfaces.isEnabled()) { InetAddress[] inetAddresses = InetAddress.getAllByName(addressHolder.getAddress()); if (inetAddresses.length > 1) { for (InetAddress inetAddress : inetAddresses) { if (AddressUtil.matchAnyInterface(inetAddress.getHostAddress(), interfaces.getInterfaces())) { return new Address(inetAddress, addressHolder.getPort()); } } } else if (AddressUtil.matchAnyInterface(inetAddresses[0].getHostAddress(), interfaces.getInterfaces())) { return new Address(addressHolder.getAddress(), addressHolder.getPort()); } } else { return new Address(addressHolder.getAddress(), addressHolder.getPort()); } } catch (final Exception e) { logger.warning(e); } return null; } @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) protected Collection<Address> getPossibleAddresses() { final Collection<String> possibleMembers = getMembers(); final Set<Address> possibleAddresses = new HashSet<Address>(); final NetworkConfig networkConfig = config.getNetworkConfig(); for (String possibleMember : possibleMembers) { AddressHolder addressHolder = AddressUtil.getAddressHolder(possibleMember); try { boolean portIsDefined = addressHolder.getPort() != -1 || !networkConfig.isPortAutoIncrement(); int count = portIsDefined ? 1 : maxPortTryCount; int port = addressHolder.getPort() != -1 ? addressHolder.getPort() : networkConfig.getPort(); AddressMatcher addressMatcher = null; try { addressMatcher = AddressUtil.getAddressMatcher(addressHolder.getAddress()); } catch (InvalidAddressException ignore) { EmptyStatement.ignore(ignore); } if (addressMatcher != null) { final Collection<String> matchedAddresses; if (addressMatcher.isIPv4()) { matchedAddresses = AddressUtil.getMatchingIpv4Addresses(addressMatcher); } else { // for IPv6 we are not doing wildcard matching matchedAddresses = Collections.singleton(addressHolder.getAddress()); } for (String matchedAddress : matchedAddresses) { addPossibleAddresses(possibleAddresses, null, InetAddress.getByName(matchedAddress), port, count); } } else { final String host = addressHolder.getAddress(); final InterfacesConfig interfaces = networkConfig.getInterfaces(); if (interfaces.isEnabled()) { final InetAddress[] inetAddresses = InetAddress.getAllByName(host); for (InetAddress inetAddress : inetAddresses) { if (AddressUtil.matchAnyInterface(inetAddress.getHostAddress(), interfaces.getInterfaces())) { addPossibleAddresses(possibleAddresses, host, inetAddress, port, count); } } } else { addPossibleAddresses(possibleAddresses, host, null, port, count); } } } catch (UnknownHostException e) { logger.warning("Cannot resolve hostname '" + addressHolder.getAddress() + "'. Please make sure host is valid and reachable."); if (logger.isFineEnabled()) { logger.fine("Error during resolving possible target!", e); } } } possibleAddresses.remove(node.getThisAddress()); return possibleAddresses; } private void addPossibleAddresses(final Set<Address> possibleAddresses, final String host, final InetAddress inetAddress, final int port, final int count) throws UnknownHostException { for (int i = 0; i < count; i++) { int currentPort = port + i; Address address; if (host != null && inetAddress != null) { address = new Address(host, inetAddress, currentPort); } else if (host != null) { address = new Address(host, currentPort); } else { address = new Address(inetAddress, currentPort); } if (!isLocalAddress(address)) { possibleAddresses.add(address); } } } private boolean isLocalAddress(final Address address) throws UnknownHostException { final Address thisAddress = node.getThisAddress(); final boolean local = thisAddress.getInetSocketAddress().equals(address.getInetSocketAddress()); if (logger.isFineEnabled()) { logger.fine(address + " is local? " + local); } return local; } protected Collection<String> getMembers() { return getConfigurationMembers(config); } public static Collection<String> getConfigurationMembers(Config config) { final TcpIpConfig tcpIpConfig = config.getNetworkConfig().getJoin().getTcpIpConfig(); final Collection<String> configMembers = tcpIpConfig.getMembers(); final Set<String> possibleMembers = new HashSet<String>(); for (String member : configMembers) { // split members defined in tcp-ip configuration by comma(,) semi-colon(;) space( ). String[] members = member.split("[,; ]"); Collections.addAll(possibleMembers, members); } return possibleMembers; } @Override public void searchForOtherClusters() { final Collection<Address> possibleAddresses; try { possibleAddresses = getPossibleAddresses(); } catch (Throwable e) { logger.severe(e); return; } possibleAddresses.remove(node.getThisAddress()); possibleAddresses.removeAll(node.getClusterService().getMemberAddresses()); if (possibleAddresses.isEmpty()) { return; } for (Address address : possibleAddresses) { SplitBrainJoinMessage response = sendSplitBrainJoinMessage(address); if (shouldMerge(response)) { logger.warning(node.getThisAddress() + " is merging [tcp/ip] to " + address); setTargetAddress(address); startClusterMerge(address); return; } } } @Override public String getType() { return "tcp-ip"; } }
tombujok/hazelcast
hazelcast/src/main/java/com/hazelcast/cluster/impl/TcpIpJoiner.java
Java
apache-2.0
22,055
# Copyright 2019 Google LLC # # 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 # # https://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. """mixup: Beyond Empirical Risk Minimization. Adaption to SSL of MixUp: https://arxiv.org/abs/1710.09412 """ import functools import os import tensorflow as tf from absl import app from absl import flags from libml import data, utils, models from libml.utils import EasyDict FLAGS = flags.FLAGS class Mixup(models.MultiModel): def augment(self, x, l, beta, **kwargs): del kwargs mix = tf.distributions.Beta(beta, beta).sample([tf.shape(x)[0], 1, 1, 1]) mix = tf.maximum(mix, 1 - mix) xmix = x * mix + x[::-1] * (1 - mix) lmix = l * mix[:, :, 0, 0] + l[::-1] * (1 - mix[:, :, 0, 0]) return xmix, lmix def model(self, batch, lr, wd, ema, **kwargs): hwc = [self.dataset.height, self.dataset.width, self.dataset.colors] xt_in = tf.placeholder(tf.float32, [batch] + hwc, 'xt') # For training x_in = tf.placeholder(tf.float32, [None] + hwc, 'x') y_in = tf.placeholder(tf.float32, [batch] + hwc, 'y') l_in = tf.placeholder(tf.int32, [batch], 'labels') wd *= lr classifier = lambda x, **kw: self.classifier(x, **kw, **kwargs).logits def get_logits(x): logits = classifier(x, training=True) return logits x, labels_x = self.augment(xt_in, tf.one_hot(l_in, self.nclass), **kwargs) logits_x = get_logits(x) post_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS) y, labels_y = self.augment(y_in, tf.nn.softmax(get_logits(y_in)), **kwargs) labels_y = tf.stop_gradient(labels_y) logits_y = get_logits(y) loss_xe = tf.nn.softmax_cross_entropy_with_logits_v2(labels=labels_x, logits=logits_x) loss_xe = tf.reduce_mean(loss_xe) loss_xeu = tf.nn.softmax_cross_entropy_with_logits_v2(labels=labels_y, logits=logits_y) loss_xeu = tf.reduce_mean(loss_xeu) tf.summary.scalar('losses/xe', loss_xe) tf.summary.scalar('losses/xeu', loss_xeu) ema = tf.train.ExponentialMovingAverage(decay=ema) ema_op = ema.apply(utils.model_vars()) ema_getter = functools.partial(utils.getter_ema, ema) post_ops.append(ema_op) post_ops.extend([tf.assign(v, v * (1 - wd)) for v in utils.model_vars('classify') if 'kernel' in v.name]) train_op = tf.train.AdamOptimizer(lr).minimize(loss_xe + loss_xeu, colocate_gradients_with_ops=True) with tf.control_dependencies([train_op]): train_op = tf.group(*post_ops) return EasyDict( xt=xt_in, x=x_in, y=y_in, label=l_in, train_op=train_op, classify_raw=tf.nn.softmax(classifier(x_in, training=False)), # No EMA, for debugging. classify_op=tf.nn.softmax(classifier(x_in, getter=ema_getter, training=False))) def main(argv): utils.setup_main() del argv # Unused. dataset = data.DATASETS()[FLAGS.dataset]() log_width = utils.ilog2(dataset.width) model = Mixup( os.path.join(FLAGS.train_dir, dataset.name), dataset, lr=FLAGS.lr, wd=FLAGS.wd, arch=FLAGS.arch, batch=FLAGS.batch, nclass=dataset.nclass, ema=FLAGS.ema, beta=FLAGS.beta, scales=FLAGS.scales or (log_width - 2), filters=FLAGS.filters, repeat=FLAGS.repeat) model.train(FLAGS.train_kimg << 10, FLAGS.report_kimg << 10) if __name__ == '__main__': utils.setup_tf() flags.DEFINE_float('wd', 0.02, 'Weight decay.') flags.DEFINE_float('ema', 0.999, 'Exponential moving average of params.') flags.DEFINE_float('beta', 0.5, 'Mixup beta distribution.') flags.DEFINE_integer('scales', 0, 'Number of 2x2 downscalings in the classifier.') flags.DEFINE_integer('filters', 32, 'Filter size of convolutions.') flags.DEFINE_integer('repeat', 4, 'Number of residual layers per stage.') FLAGS.set_default('dataset', 'cifar10.3@250-5000') FLAGS.set_default('batch', 64) FLAGS.set_default('lr', 0.002) FLAGS.set_default('train_kimg', 1 << 16) app.run(main)
google-research/remixmatch
mixup.py
Python
apache-2.0
4,608
package connect import ( "strings" "testing" ) func TestCatalogCommand_noTabs(t *testing.T) { t.Parallel() if strings.ContainsRune(New().Help(), '\t') { t.Fatal("help has tabs") } }
mhausenblas/burry.sh
vendor/github.com/hashicorp/consul/command/connect/connect_test.go
GO
apache-2.0
191
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ #ifndef ORC_STRIPE_STREAM_HH #define ORC_STRIPE_STREAM_HH #include "orc/Int128.hh" #include "orc/OrcFile.hh" #include "orc/Reader.hh" #include "Timezone.hh" #include "TypeImpl.hh" namespace orc { class RowReaderImpl; /** * StripeStream Implementation */ class StripeStreamsImpl: public StripeStreams { private: const RowReaderImpl& reader; const proto::StripeInformation& stripeInfo; const proto::StripeFooter& footer; const uint64_t stripeIndex; const uint64_t stripeStart; InputStream& input; const Timezone& writerTimezone; const Timezone& readerTimezone; public: StripeStreamsImpl(const RowReaderImpl& reader, uint64_t index, const proto::StripeInformation& stripeInfo, const proto::StripeFooter& footer, uint64_t stripeStart, InputStream& input, const Timezone& writerTimezone, const Timezone& readerTimezone); virtual ~StripeStreamsImpl() override; virtual const std::vector<bool> getSelectedColumns() const override; virtual proto::ColumnEncoding getEncoding(uint64_t columnId ) const override; virtual std::unique_ptr<SeekableInputStream> getStream(uint64_t columnId, proto::Stream_Kind kind, bool shouldStream) const override; MemoryPool& getMemoryPool() const override; const Timezone& getWriterTimezone() const override; const Timezone& getReaderTimezone() const override; std::ostream* getErrorStream() const override; bool getThrowOnHive11DecimalOverflow() const override; int32_t getForcedScaleOnHive11Decimal() const override; }; /** * StreamInformation Implementation */ class StreamInformationImpl: public StreamInformation { private: StreamKind kind; uint64_t column; uint64_t offset; uint64_t length; public: StreamInformationImpl(uint64_t _offset, const proto::Stream& stream ): kind(static_cast<StreamKind>(stream.kind())), column(stream.column()), offset(_offset), length(stream.length()) { // PASS } ~StreamInformationImpl() override; StreamKind getKind() const override { return kind; } uint64_t getColumnId() const override { return column; } uint64_t getOffset() const override { return offset; } uint64_t getLength() const override { return length; } }; /** * StripeInformation Implementation */ class StripeInformationImpl : public StripeInformation { uint64_t offset; uint64_t indexLength; uint64_t dataLength; uint64_t footerLength; uint64_t numRows; InputStream* stream; MemoryPool& memory; CompressionKind compression; uint64_t blockSize; mutable std::unique_ptr<proto::StripeFooter> stripeFooter; void ensureStripeFooterLoaded() const; public: StripeInformationImpl(uint64_t _offset, uint64_t _indexLength, uint64_t _dataLength, uint64_t _footerLength, uint64_t _numRows, InputStream* _stream, MemoryPool& _memory, CompressionKind _compression, uint64_t _blockSize ) : offset(_offset), indexLength(_indexLength), dataLength(_dataLength), footerLength(_footerLength), numRows(_numRows), stream(_stream), memory(_memory), compression(_compression), blockSize(_blockSize) { // PASS } virtual ~StripeInformationImpl() override { // PASS } uint64_t getOffset() const override { return offset; } uint64_t getLength() const override { return indexLength + dataLength + footerLength; } uint64_t getIndexLength() const override { return indexLength; } uint64_t getDataLength()const override { return dataLength; } uint64_t getFooterLength() const override { return footerLength; } uint64_t getNumberOfRows() const override { return numRows; } uint64_t getNumberOfStreams() const override { ensureStripeFooterLoaded(); return static_cast<uint64_t>(stripeFooter->streams_size()); } std::unique_ptr<StreamInformation> getStreamInformation(uint64_t streamId ) const override; ColumnEncodingKind getColumnEncoding(uint64_t colId) const override { ensureStripeFooterLoaded(); return static_cast<ColumnEncodingKind>(stripeFooter-> columns(static_cast<int>(colId)) .kind()); } uint64_t getDictionarySize(uint64_t colId) const override { ensureStripeFooterLoaded(); return static_cast<ColumnEncodingKind>(stripeFooter-> columns(static_cast<int>(colId)) .dictionarysize()); } const std::string& getWriterTimezone() const override { ensureStripeFooterLoaded(); return stripeFooter->writertimezone(); } }; } #endif
omalley/orc
c++/src/StripeStream.hh
C++
apache-2.0
6,482
@charset "utf-8"; /* CSS Document */
yanchhuong/ngday
src/main/webapp/css/css_page/button.css
CSS
apache-2.0
42
# Copyright 2015 Metaswitch Networks # # 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. import unittest from mock import patch, Mock, call from nose_parameterized import parameterized from netaddr import IPAddress, IPNetwork from subprocess import CalledProcessError from calico_ctl.bgp import * from calico_ctl import container from calico_ctl import utils from pycalico.datastore_datatypes import Endpoint, IPPool class TestContainer(unittest.TestCase): @parameterized.expand([ ({'<CONTAINER>':'node1', 'ip':1, 'add':1, '<IP>':'127.a.0.1'}, True), ({'<CONTAINER>':'node1', 'ip':1, 'add':1, '<IP>':'aa:bb::zz'}, True), ({'add':1, '<CONTAINER>':'node1', '<IP>':'127.a.0.1'}, True), ({'add':1, '<CONTAINER>':'node1', '<IP>':'aa:bb::zz'}, True) ]) def test_validate_arguments(self, case, sys_exit_called): """ Test validate_arguments for calicoctl container command """ with patch('sys.exit', autospec=True) as m_sys_exit: # Call method under test container.validate_arguments(case) # Assert method exits if bad input self.assertEqual(m_sys_exit.called, sys_exit_called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_add(self, m_netns, m_get_pool_or_exit, m_client, m_get_container_info_or_exit, m_enforce_root): """ Test container_add method of calicoctl container command """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'}, 'HostConfig': {'NetworkMode': "not host"} } m_client.get_endpoint.side_effect = KeyError m_client.get_default_next_hops.return_value = 'next_hops' # Call method under test test_return = container.container_add('container1', '1.1.1.1', 'interface') # Assert m_enforce_root.assert_called_once_with() m_get_container_info_or_exit.assert_called_once_with('container1') m_client.get_endpoint.assert_called_once_with( hostname=utils.hostname, orchestrator_id=utils.ORCHESTRATOR_ID, workload_id=666 ) m_get_pool_or_exit.assert_called_once_with(IPAddress('1.1.1.1')) m_client.get_default_next_hops.assert_called_once_with(utils.hostname) # Check an enpoint object was returned self.assertTrue(isinstance(test_return, Endpoint)) self.assertTrue(m_netns.create_veth.called) self.assertTrue(m_netns.move_veth_into_ns.called) self.assertTrue(m_netns.add_ip_to_ns_veth.called) self.assertTrue(m_netns.add_ns_default_route.called) self.assertTrue(m_netns.get_ns_veth_mac.called) self.assertTrue(m_client.set_endpoint.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) def test_container_add_container_host_ns(self, m_client, m_get_container_info_or_exit, m_enforce_root): """ Test container_add method of calicoctl container command when the container shares the host namespace. """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'}, 'HostConfig': {'NetworkMode': 'host'} } m_client.get_endpoint.side_effect = KeyError # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_add, 'container1', '1.1.1.1', 'interface') m_enforce_root.assert_called_once_with() @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) def test_container_add_existing_container( self, m_get_pool_or_exit, m_client, m_get_container_info_or_exit, m_enforce_root): """ Test container_add when a container already exists. Do not raise an exception when the client tries 'get_endpoint' Assert that the system then exits and all expected calls are made """ # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_add, 'container1', '1.1.1.1', 'interface') # Assert only expected calls were made self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertFalse(m_get_pool_or_exit.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) def test_container_add_container_not_running( self, m_get_pool_or_exit, m_client, m_get_container_info_or_exit, m_enforce_root): """ Test container_add when a container is not running get_container_info_or_exit returns a running state of value 0 Assert that the system then exits and all expected calls are made """ # Set up mock object m_client.get_endpoint.side_effect = KeyError m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 0, 'Pid': 'Pid_info'} } # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_add, 'container1', '1.1.1.1', 'interface') # Assert only expected calls were made self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertFalse(m_get_pool_or_exit.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) def test_container_add_not_ipv4_configured( self, m_get_pool_or_exit, m_client, m_get_container_info_or_exit, m_enforce_root): """ Test container_add when the client cannot obtain next hop IPs client.get_default_next_hops returns an empty dictionary, which produces a KeyError when trying to determine the IP. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_client.get_endpoint.side_effect = KeyError m_client.get_default_next_hops.return_value = {} # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_add, 'container1', '1.1.1.1', 'interface') # Assert only expected calls were made self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_client.get_default_next_hops.called) self.assertFalse(m_client.assign_address.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_add_ip_previously_assigned( self, m_netns, m_get_pool_or_exit, m_client, m_get_container_info_or_exit, m_enforce_root): """ Test container_add when an ip address is already assigned in pool client.assign_address returns an empty list. Assert that the system then exits and all expected calls are made """ # Set up mock object m_client.get_endpoint.side_effect = KeyError m_client.assign_address.return_value = [] # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_add, 'container1', '1.1.1.1', 'interface') # Assert only expected calls were made self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_client.get_default_next_hops.called) self.assertTrue(m_client.assign_address.called) self.assertFalse(m_netns.create_veth.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_id', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_remove(self, m_netns, m_client, m_get_container_id, m_enforce_root): """ Test for container_remove of calicoctl container command """ # Set up mock objects m_get_container_id.return_value = 666 ipv4_nets = set() ipv4_nets.add(IPNetwork(IPAddress('1.1.1.1'))) ipv6_nets = set() m_endpoint = Mock(spec=Endpoint) m_endpoint.ipv4_nets = ipv4_nets m_endpoint.ipv6_nets = ipv6_nets m_endpoint.endpoint_id = 12 m_endpoint.name = "eth1234" ippool = IPPool('1.1.1.1/24') m_client.get_endpoint.return_value = m_endpoint m_client.get_ip_pools.return_value = [ippool] # Call method under test container.container_remove('container1') # Assert m_enforce_root.assert_called_once_with() m_get_container_id.assert_called_once_with('container1') m_client.get_endpoint.assert_called_once_with( hostname=utils.hostname, orchestrator_id=utils.ORCHESTRATOR_ID, workload_id=666 ) self.assertEqual(m_client.unassign_address.call_count, 1) m_netns.remove_veth.assert_called_once_with("eth1234") m_client.remove_workload.assert_called_once_with( utils.hostname, utils.ORCHESTRATOR_ID, 666) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_container_id', autospec=True) @patch('calico_ctl.container.client', autospec=True) def test_container_remove_no_endpoint( self, m_client, m_get_container_id, m_enforce_root): """ Test for container_remove when the client cannot obtain an endpoint client.get_endpoint raises a KeyError. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_client.get_endpoint.side_effect = KeyError # Call function under test expecting a SystemExit self.assertRaises(SystemExit, container.container_remove, 'container1') # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_container_id.called) self.assertTrue(m_client.get_endpoint.called) self.assertFalse(m_client.get_ip_pools.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_ip_add_ipv4( self, m_netns, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_add with an ipv4 ip argument Assert that the correct calls associated with an ipv4 address are made """ # Set up mock objects pool_return = 'pool' m_get_pool_or_exit.return_value = pool_return m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_endpoint = Mock() m_client.get_endpoint.return_value = m_endpoint # Set up arguments to pass to method under test container_name = 'container1' ip = '1.1.1.1' ip_addr = IPAddress(ip) interface = 'interface' # Call method under test container.container_ip_add(container_name, ip, interface) # Assert m_enforce_root.assert_called_once_with() m_get_pool_or_exit.assert_called_once_with(ip_addr) m_get_container_info_or_exit.assert_called_once_with(container_name) m_client.get_endpoint.assert_called_once_with( hostname=utils.hostname, orchestrator_id=utils.ORCHESTRATOR_ID, workload_id=666 ) m_client.assign_address.assert_called_once_with(pool_return, ip_addr) m_endpoint.ipv4_nets.add.assert_called_once_with(IPNetwork(ip_addr)) m_client.update_endpoint.assert_called_once_with(m_endpoint) m_netns.add_ip_to_ns_veth.assert_called_once_with( 'Pid_info', ip_addr, interface ) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_ip_add_ipv6( self, m_netns, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_add with an ipv6 ip argument Assert that the correct calls associated with an ipv6 address are made """ # Set up mock objects pool_return = 'pool' m_get_pool_or_exit.return_value = pool_return m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_endpoint = Mock() m_client.get_endpoint.return_value = m_endpoint # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' ip_addr = IPAddress(ip) interface = 'interface' # Call method under test container.container_ip_add(container_name, ip, interface) # Assert m_enforce_root.assert_called_once_with() m_get_pool_or_exit.assert_called_once_with(ip_addr) m_get_container_info_or_exit.assert_called_once_with(container_name) m_client.get_endpoint.assert_called_once_with( hostname=utils.hostname, orchestrator_id=utils.ORCHESTRATOR_ID, workload_id=666 ) m_client.assign_address.assert_called_once_with(pool_return, ip_addr) m_endpoint.ipv6_nets.add.assert_called_once_with(IPNetwork(ip_addr)) m_client.update_endpoint.assert_called_once_with(m_endpoint) m_netns.add_ip_to_ns_veth.assert_called_once_with( 'Pid_info', ip_addr, interface ) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client.get_endpoint', autospec=True) def test_container_ip_add_container_not_running( self, m_client_get_endpoint, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_add when the container is not running get_container_info_or_exit returns a running state of value 0. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 0, 'Pid': 'Pid_info'} } # Set up arguments to pass to method under test container_name = 'container1' ip = '1.1.1.1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_add, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_get_pool_or_exit.called) self.assertFalse(m_client_get_endpoint.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.print_container_not_in_calico_msg', autospec=True) def test_container_ip_add_container_not_in_calico( self, m_print_container_not_in_calico_msg, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_add when the container is not networked into calico client.get_endpoint raises a KeyError. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_client.get_endpoint.return_value = Mock() m_client.get_endpoint.side_effect = KeyError # Set up arguments to pass to method under test container_name = 'container1' ip = '1.1.1.1' interface = 'interface' # Call method under test expecting a System Exit self.assertRaises(SystemExit, container.container_ip_add, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) m_print_container_not_in_calico_msg.assert_called_once_with(container_name) self.assertFalse(m_client.assign_address.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_ip_add_fail_assign_address( self, m_netns, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_add when the client cannot assign an IP client.assign_address returns an empty list. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_client.assign_address.return_value = [] # Set up arguments to pass to method under test container_name = 'container1' ip = '1.1.1.1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_add, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertFalse(m_netns.add_ip_to_ns_veth.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns.add_ip_to_ns_veth', autospec=True) def test_container_ip_add_error_updating_datastore( self, m_netns_add_ip_to_ns_veth, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_add when the client fails to update endpoint client.update_endpoint raises a KeyError. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_pool_or_exit.return_value = 'pool' m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_client.update_endpoint.side_effect = KeyError # Set up arguments to pass to method under test container_name = 'container1' ip = '1.1.1.1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_add, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertTrue(m_client.assign_address.called) m_client.unassign_address.assert_called_once_with('pool', ip) self.assertFalse(m_netns_add_ip_to_ns_veth.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns.add_ip_to_ns_veth', autospec=True) def test_container_ip_add_netns_error_ipv4( self, m_netns_add_ip_to_ns_veth, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test container_ip_add when netns cannot add an ipv4 to interface netns.add_ip_to_ns_veth throws a CalledProcessError. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_get_pool_or_exit.return_value = 'pool' m_endpoint = Mock() m_client.get_endpoint.return_value = m_endpoint err = CalledProcessError( 1, m_netns_add_ip_to_ns_veth, "Error updating container") m_netns_add_ip_to_ns_veth.side_effect = err # Set up arguments to pass to method under test container_name = 'container1' ip = '1.1.1.1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_add, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertTrue(m_client.assign_address.called) self.assertTrue(m_netns_add_ip_to_ns_veth.called) m_endpoint.ipv4_nets.remove.assert_called_once_with( IPNetwork(IPAddress(ip)) ) m_client.update_endpoint.assert_has_calls([ call(m_endpoint), call(m_endpoint)]) m_client.unassign_address.assert_called_once_with('pool', ip) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.print_container_not_in_calico_msg', autospec=True) @patch('calico_ctl.container.netns.add_ip_to_ns_veth', autospec=True) def test_container_ip_add_netns_error_ipv6( self, m_netns, m_print_container_not_in_calico_msg, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test container_ip_add when netns cannot add an ipv6 to interface netns.add_ip_to_ns_veth throws a CalledProcessError. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_get_pool_or_exit.return_value = 'pool' m_endpoint = Mock() m_client.get_endpoint.return_value = m_endpoint err = CalledProcessError(1, m_netns, "Error updating container") m_netns.side_effect = err # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' interface = 'interface' # Call method under test self.assertRaises(SystemExit, container.container_ip_add, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertTrue(m_client.assign_address.called) self.assertTrue(m_netns.called) m_endpoint.ipv6_nets.remove.assert_called_once_with( IPNetwork(IPAddress(ip)) ) m_client.update_endpoint.assert_has_calls([ call(m_endpoint), call(m_endpoint)]) m_client.unassign_address.assert_called_once_with('pool', ip) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_ip_remove_ipv4(self, m_netns, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test container_ip_remove with an ipv4 ip argument """ # Set up mock objects m_get_pool_or_exit.return_value = 'pool' m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } ipv4_nets = set() ipv4_nets.add(IPNetwork(IPAddress('1.1.1.1'))) m_endpoint = Mock(spec=Endpoint) m_endpoint.ipv4_nets = ipv4_nets m_client.get_endpoint.return_value = m_endpoint # Set up arguments to pass to method under test container_name = 'container1' ip = '1.1.1.1' interface = 'interface' # Call method under test container.container_ip_remove(container_name, ip, interface) # Assert m_enforce_root.assert_called_once_with() m_get_pool_or_exit.assert_called_once_with(IPAddress(ip)) m_get_container_info_or_exit.assert_called_once_with(container_name) m_client.get_endpoint.assert_called_once_with( hostname=utils.hostname, orchestrator_id=utils.ORCHESTRATOR_ID, workload_id=666 ) m_client.update_endpoint.assert_called_once_with(m_endpoint) m_netns.remove_ip_from_ns_veth.assert_called_once_with( 'Pid_info', IPAddress(ip), interface ) m_client.unassign_address.assert_called_once_with('pool', ip) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_ip_remove_ipv6(self, m_netns, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_remove with an ipv6 ip argument """ # Set up mock objects m_get_pool_or_exit.return_value = 'pool' m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } ipv6_nets = set() ipv6_nets.add(IPNetwork(IPAddress('1::1'))) m_endpoint = Mock(spec=Endpoint) m_endpoint.ipv6_nets = ipv6_nets m_client.get_endpoint.return_value = m_endpoint # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' interface = 'interface' # Call method under test container.container_ip_remove(container_name, ip, interface) # Assert m_enforce_root.assert_called_once_with() m_get_pool_or_exit.assert_called_once_with(IPAddress(ip)) m_get_container_info_or_exit.assert_called_once_with(container_name) m_client.get_endpoint.assert_called_once_with( hostname=utils.hostname, orchestrator_id=utils.ORCHESTRATOR_ID, workload_id=666 ) m_client.update_endpoint.assert_called_once_with(m_endpoint) m_netns.remove_ip_from_ns_veth.assert_called_once_with( 'Pid_info', IPAddress(ip), interface ) m_client.unassign_address.assert_called_once_with('pool', ip) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) def test_container_ip_remove_not_running( self, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_remove when the container is not running get_container_info_or_exit returns a running state of value 0. Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 0, 'Pid': 'Pid_info'} } # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_remove, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertFalse(m_client.get_endpoint.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) def test_container_ip_remove_ip_not_assigned( self, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test container_ip_remove when an IP address is not assigned to a container client.get_endpoint returns an endpoint with no ip nets Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } ipv6_nets = set() m_endpoint = Mock(spec=Endpoint) m_endpoint.ipv6_nets = ipv6_nets m_client.get_endpoint.return_value = m_endpoint # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_remove, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertFalse(m_client.update_endpoint.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) def test_container_ip_remove_container_not_on_calico( self, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test for container_ip_remove when container is not networked into Calico client.get_endpoint raises a KeyError Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } m_client.get_endpoint.side_effect = KeyError # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_remove, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertFalse(m_client.update_endpoint.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_ip_remove_fail_updating_datastore( self, m_netns, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test container_ip_remove when client fails to update endpoint in datastore client.update_endpoint throws a KeyError Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } ipv6_nets = set() ipv6_nets.add(IPNetwork(IPAddress('1::1'))) m_endpoint = Mock(spec=Endpoint) m_endpoint.ipv6_nets = ipv6_nets m_client.get_endpoint.return_value = m_endpoint m_client.update_endpoint.side_effect = KeyError # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_remove, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertTrue(m_client.update_endpoint.called) self.assertFalse(m_netns.remove_ip_from_ns_veth.called) @patch('calico_ctl.container.enforce_root', autospec=True) @patch('calico_ctl.container.get_pool_or_exit', autospec=True) @patch('calico_ctl.container.get_container_info_or_exit', autospec=True) @patch('calico_ctl.container.client', autospec=True) @patch('calico_ctl.container.netns', autospec=True) def test_container_ip_remove_netns_error( self, m_netns, m_client, m_get_container_info_or_exit, m_get_pool_or_exit, m_enforce_root): """ Test container_ip_remove when client fails on removing ip from interface netns.remove_ip_from_ns_veth raises a CalledProcessError Assert that the system then exits and all expected calls are made """ # Set up mock objects m_get_container_info_or_exit.return_value = { 'Id': 666, 'State': {'Running': 1, 'Pid': 'Pid_info'} } ipv6_nets = set() ipv6_nets.add(IPNetwork(IPAddress('1::1'))) m_endpoint = Mock(spec=Endpoint) m_endpoint.ipv6_nets = ipv6_nets m_client.get_endpoint.return_value = m_endpoint err = CalledProcessError(1, m_netns, "Error removing ip") m_netns.remove_ip_from_ns_veth.side_effect = err # Set up arguments to pass to method under test container_name = 'container1' ip = '1::1' interface = 'interface' # Call method under test expecting a SystemExit self.assertRaises(SystemExit, container.container_ip_remove, container_name, ip, interface) # Assert self.assertTrue(m_enforce_root.called) self.assertTrue(m_get_pool_or_exit.called) self.assertTrue(m_get_container_info_or_exit.called) self.assertTrue(m_client.get_endpoint.called) self.assertTrue(m_client.update_endpoint.called) self.assertTrue(m_netns.remove_ip_from_ns_veth.called) self.assertFalse(m_client.unassign_address.called)
TeaBough/calico-docker
calico_containers/tests/unit/container_test.py
Python
apache-2.0
39,497
/* * Copyright 2021 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.thoughtworks.go.server.perf.commands; import com.thoughtworks.go.config.Agent; import com.thoughtworks.go.server.service.AgentRuntimeInfo; import com.thoughtworks.go.server.service.AgentService; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Optional; import java.util.UUID; public class RegisterAgentCommand extends AgentPerformanceCommand { public RegisterAgentCommand(AgentService agentService) { this.agentService = agentService; } @Override Optional<String> execute() { return registerAgent(); } private Optional<String> registerAgent() { InetAddress localHost = getInetAddress(); Agent agent = new Agent("Perf-Test-Agent-" + UUID.randomUUID(), localHost.getHostName(), localHost.getHostAddress(), UUID.randomUUID().toString()); AgentRuntimeInfo agentRuntimeInfo = AgentRuntimeInfo.fromServer(agent, false, "location", 233232L, "osx"); agentService.requestRegistration(agentRuntimeInfo); return Optional.ofNullable(agent.getUuid()); } private InetAddress getInetAddress() { InetAddress localHost; try { localHost = InetAddress.getLocalHost(); } catch (UnknownHostException e) { throw new RuntimeException(e); } return localHost; } }
marques-work/gocd
server/src/test-shared/java/com/thoughtworks/go/server/perf/commands/RegisterAgentCommand.java
Java
apache-2.0
1,951
/* * Software License Agreement (Apache License) * * Copyright (c) 2014, Southwest Research Institute * * 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. */ #ifndef CERES_COSTS_UTILS_TEST_HPP_ #define CERES_COSTS_UTILS_TEST_HPP_ #include "ceres/ceres.h" #include "ceres/rotation.h" #include <industrial_extrinsic_cal/basic_types.h> namespace industrial_extrinsic_cal { /* local prototypes of helper functions */ /*! \brief print a quaternion plus position as a homogeneous transform * \param qx quaternion x value * \param qy quaternion y value * \param qz quaternion z value * \param qw quaternion w value * \param tx position x value * \param ty position y value * \param tz position z value */ void printQTasH(double qx, double qy, double qz, double qw, double tx, double ty, double tz); /*! \brief print an angle axis transform as a homogeneous transform * \param x angle axis x value * \param y angle axis y value * \param z angle axis z value * \param tx position x value * \param ty position y value * \param tz position z value */ void printAATasH(double ax, double ay, double az, double tx, double ty, double tz); /*! \brief print angle axis to homogeneous transform inverse * \param ax angle axis x value * \param ay angle axis y value * \param az angle axis z value * \param tx position x value * \param ty position y value * \param tz position z value */ void printAATasHI(double ax, double ay, double az, double tx, double ty, double tz); /*! \brief print angle axis as euler angles * \param ax angle axis x value * \param ay angle axis y value * \param az angle axis z value */ void printAAasEuler(double ax, double ay, double az); /*! \brief print Camera Parameters * \param CameraParameters include intrinsic and extrinsic * \param words to provide as a header */ void printCameraParameters(CameraParameters C, std::string words); /*! \brief computes image of point in cameras image plane * \param C both intrinsic and extrinsic camera parameters * \param P the point to be projected into image */ Observation projectPointWithDistortion(CameraParameters camera_parameters, Point3d point); Observation projectPointNoDistortion(CameraParameters camera_params, Point3d point_to_project); Observation projectPointWithDistortion(CameraParameters C, Point3d P) { double p[3]; double pt[3]; pt[0] = P.x; pt[1] = P.y; pt[2] = P.z; /* transform point into camera frame */ /* note, camera transform takes points from camera frame into world frame */ double aa[3]; aa[0] = C.pb_extrinsics[0]; aa[1] = C.pb_extrinsics[1]; aa[2] = C.pb_extrinsics[2]; ceres::AngleAxisRotatePoint(aa, pt, p); // apply camera translation double xp1 = p[0] + C.pb_extrinsics[3]; double yp1 = p[1] + C.pb_extrinsics[4]; double zp1 = p[2] + C.pb_extrinsics[5]; // p[0] +=C.pb_extrinsics[3]; // p[1] +=C.pb_extrinsics[4]; // p[2] +=C.pb_extrinsics[5]; double xp = xp1 / zp1; double yp = yp1 / zp1; // calculate terms for polynomial distortion double r2 = xp * xp + yp * yp; double r4 = r2 * r2; double r6 = r2 * r4; double xp2 = xp * xp; /* temporary variables square of others */ double yp2 = yp * yp; /* apply the distortion coefficients to refine pixel location */ double xpp = xp + C.distortion_k1 * r2 * xp + C.distortion_k2 * r4 * xp + C.distortion_k3 * r6 * xp + C.distortion_p2 * (r2 + 2 * xp2) + 2 * C.distortion_p1 * xp * yp; double ypp = yp + C.distortion_k1 * r2 * yp + C.distortion_k2 * r4 * yp + C.distortion_k3 * r6 * yp + C.distortion_p1 * (r2 + 2 * yp2) + 2 * C.distortion_p2 * xp * yp; /* perform projection using focal length and camera center into image plane */ Observation O; O.point_id = 0; O.image_loc_x = C.focal_length_x * xpp + C.center_x; O.image_loc_y = C.focal_length_y * ypp + C.center_y; return (O); } Observation projectPointNoDistortion(CameraParameters C, Point3d P) { double p[3]; // rotated into camera frame double point[3]; // world location of point double aa[3]; // angle axis representation of camera transform double tx = C.position[0]; // location of origin in camera frame x double ty = C.position[1]; // location of origin in camera frame y double tz = C.position[2]; // location of origin in camera frame z double fx = C.focal_length_x; // focal length x double fy = C.focal_length_y; // focal length y double cx = C.center_x; // optical center x double cy = C.center_y; // optical center y aa[0] = C.angle_axis[0]; aa[1] = C.angle_axis[1]; aa[2] = C.angle_axis[2]; point[0] = P.x; point[1] = P.y; point[2] = P.z; /** rotate and translate points into camera frame */ ceres::AngleAxisRotatePoint(aa, point, p); // apply camera translation double xp1 = p[0] + tx; double yp1 = p[1] + ty; double zp1 = p[2] + tz; // scale into the image plane by distance away from camera double xp = xp1 / zp1; double yp = yp1 / zp1; // perform projection using focal length and camera center into image plane Observation O; O.image_loc_x = fx * xp + cx; O.image_loc_y = fy * yp + cy; return (O); } } // end of namespace #endif
drchrislewis/industrial_calibration
industrial_extrinsic_cal/include/industrial_extrinsic_cal/ceres_costs_utils_test.hpp
C++
apache-2.0
5,769
<?php /* * Copyright 2014 Google Inc. * * 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. */ namespace Google\Service\CloudSourceRepositories; class UpdateProjectConfigRequest extends \Google\Model { protected $projectConfigType = ProjectConfig::class; protected $projectConfigDataType = ''; /** * @var string */ public $updateMask; /** * @param ProjectConfig */ public function setProjectConfig(ProjectConfig $projectConfig) { $this->projectConfig = $projectConfig; } /** * @return ProjectConfig */ public function getProjectConfig() { return $this->projectConfig; } /** * @param string */ public function setUpdateMask($updateMask) { $this->updateMask = $updateMask; } /** * @return string */ public function getUpdateMask() { return $this->updateMask; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(UpdateProjectConfigRequest::class, 'Google_Service_CloudSourceRepositories_UpdateProjectConfigRequest');
googleapis/google-api-php-client-services
src/CloudSourceRepositories/UpdateProjectConfigRequest.php
PHP
apache-2.0
1,552
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <!-- Title and other stuffs --> <title>插件3页面 Bootstrap响应式后台管理系统模版Mac - JS代码网</title> <meta name="keywords" content="Bootstrap模版,Bootstrap模版下载,Bootstrap教程,Bootstrap中文,后台管理系统模版,后台模版下载,后台管理系统,后台管理模版" /> <meta name="description" content="JS代码网提供Bootstrap模版,后台管理系统模版,后台管理界面,Bootstrap教程,Bootstrap中文翻译等相关Bootstrap插件下载" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="author" content=""> <!-- Stylesheets --> <link href="style/bootstrap.css" rel="stylesheet"> <!-- Font awesome icon --> <link rel="stylesheet" href="style/font-awesome.css"> <!-- jQuery UI --> <link rel="stylesheet" href="style/jquery-ui.css"> <!-- Calendar --> <link rel="stylesheet" href="style/fullcalendar.css"> <!-- prettyPhoto --> <link rel="stylesheet" href="style/prettyPhoto.css"> <!-- Star rating --> <link rel="stylesheet" href="style/rateit.css"> <!-- Date picker --> <link rel="stylesheet" href="style/bootstrap-datetimepicker.min.css"> <!-- CLEditor --> <link rel="stylesheet" href="style/jquery.cleditor.css"> <!-- Uniform --> <link rel="stylesheet" href="style/uniform.default.css"> <!-- Bootstrap toggle --> <link rel="stylesheet" href="style/bootstrap-switch.css"> <!-- Main stylesheet --> <link href="style/style.css" rel="stylesheet"> <!-- Widgets stylesheet --> <link href="style/widgets.css" rel="stylesheet"> <!-- HTML5 Support for IE --> <!--[if lt IE 9]> <script src="js/html5shim.js"></script> <![endif]--> <!-- Favicon --> <link rel="shortcut icon" href="img/favicon/favicon.png"> </head> <body> <div class="navbar navbar-fixed-top bs-docs-nav" role="banner"> <div class="conjtainer"> <!-- Menu button for smallar screens --> <div class="navbar-header"> <button class="navbar-toggle btn-navbar" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse"> <span>Menu</span> </button> <!-- Site name for smallar screens --> <a href="index.html" class="navbar-brand hidden-lg">MacBeth</a> </div> <!-- Navigation starts --> <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation"> <ul class="nav navbar-nav"> <!-- Upload to server link. Class "dropdown-big" creates big dropdown --> <li class="dropdown dropdown-big"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="label label-success"><i class="icon-cloud-upload"></i></span> Upload to Cloud</a> <!-- Dropdown --> <ul class="dropdown-menu"> <li> <!-- Progress bar --> <p>Photo Upload in Progress</p> <!-- Bootstrap progress bar --> <div class="progress progress-striped active"> <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete</span> </div> </div> <hr /> <!-- Progress bar --> <p>Video Upload in Progress</p> <!-- Bootstrap progress bar --> <div class="progress progress-striped active"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"> <span class="sr-only">80% Complete</span> </div> </div> <hr /> <!-- Dropdown menu footer --> <div class="drop-foot"> <a href="#">View All</a> </div> </li> </ul> </li> <!-- Sync to server link --> <li class="dropdown dropdown-big"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="label label-danger"><i class="icon-refresh"></i></span> Sync with Server</a> <!-- Dropdown --> <ul class="dropdown-menu"> <li> <!-- Using "icon-spin" class to rotate icon. --> <p><span class="label label-info"><i class="icon-cloud"></i></span> Syncing Members Lists to Server</p> <hr /> <p><span class="label label-warning"><i class="icon-cloud"></i></span> Syncing Bookmarks Lists to Cloud</p> <hr /> <!-- Dropdown menu footer --> <div class="drop-foot"> <a href="#">View All</a> </div> </li> </ul> </li> </ul> <!-- Search form --> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> </form> <!-- Links --> <ul class="nav navbar-nav pull-right"> <li class="dropdown pull-right"> <a data-toggle="dropdown" class="dropdown-toggle" href="#"> <i class="icon-user"></i> Admin <b class="caret"></b> </a> <!-- Dropdown menu --> <ul class="dropdown-menu"> <li><a href="#"><i class="icon-user"></i> Profile</a></li> <li><a href="#"><i class="icon-cogs"></i> Settings</a></li> <li><a href="login.html"><i class="icon-off"></i> Logout</a></li> </ul> </li> </ul> </nav> </div> </div> <!-- Header starts --> <header> <div class="container"> <div class="row"> <!-- Logo section --> <div class="col-md-4"> <!-- Logo. --> <div class="logo"> <h1><a href="#">Mac<span class="bold"></span></a></h1> <p class="meta">后台管理系统</p> </div> <!-- Logo ends --> </div> <!-- Button section --> <div class="col-md-4"> <!-- Buttons --> <ul class="nav nav-pills"> <!-- Comment button with number of latest comments count --> <li class="dropdown dropdown-big"> <a class="dropdown-toggle" href="#" data-toggle="dropdown"> <i class="icon-comments"></i> Chats <span class="label label-info">6</span> </a> <ul class="dropdown-menu"> <li> <!-- Heading - h5 --> <h5><i class="icon-comments"></i> Chats</h5> <!-- Use hr tag to add border --> <hr /> </li> <li> <!-- List item heading h6 --> <h6><a href="#">Hi :)</a> <span class="label label-warning pull-right">10:42</span></h6> <div class="clearfix"></div> <hr /> </li> <li> <h6><a href="#">How are you?</a> <span class="label label-warning pull-right">20:42</span></h6> <div class="clearfix"></div> <hr /> </li> <li> <h6><a href="#">What are you doing?</a> <span class="label label-warning pull-right">14:42</span></h6> <div class="clearfix"></div> <hr /> </li> <li> <div class="drop-foot"> <a href="#">View All</a> </div> </li> </ul> </li> <!-- Message button with number of latest messages count--> <li class="dropdown dropdown-big"> <a class="dropdown-toggle" href="#" data-toggle="dropdown"> <i class="icon-envelope-alt"></i> Inbox <span class="label label-primary">6</span> </a> <ul class="dropdown-menu"> <li> <!-- Heading - h5 --> <h5><i class="icon-envelope-alt"></i> Messages</h5> <!-- Use hr tag to add border --> <hr /> </li> <li> <!-- List item heading h6 --> <h6><a href="#">Hello how are you?</a></h6> <!-- List item para --> <p>Quisque eu consectetur erat eget semper...</p> <hr /> </li> <li> <h6><a href="#">Today is wonderful?</a></h6> <p>Quisque eu consectetur erat eget semper...</p> <hr /> </li> <li> <div class="drop-foot"> <a href="#">View All</a> </div> </li> </ul> </li> <!-- Members button with number of latest members count --> <li class="dropdown dropdown-big"> <a class="dropdown-toggle" href="#" data-toggle="dropdown"> <i class="icon-user"></i> Users <span class="label label-success">6</span> </a> <ul class="dropdown-menu"> <li> <!-- Heading - h5 --> <h5><i class="icon-user"></i> Users</h5> <!-- Use hr tag to add border --> <hr /> </li> <li> <!-- List item heading h6--> <h6><a href="#">Ravi Kumar</a> <span class="label label-warning pull-right">Free</span></h6> <div class="clearfix"></div> <hr /> </li> <li> <h6><a href="#">Balaji</a> <span class="label label-important pull-right">Premium</span></h6> <div class="clearfix"></div> <hr /> </li> <li> <h6><a href="#">Kumarasamy</a> <span class="label label-warning pull-right">Free</span></h6> <div class="clearfix"></div> <hr /> </li> <li> <div class="drop-foot"> <a href="#">View All</a> </div> </li> </ul> </li> </ul> </div> <!-- Data section --> <div class="col-md-4"> <div class="header-data"> <!-- Traffic data --> <div class="hdata"> <div class="mcol-left"> <!-- Icon with red background --> <i class="icon-signal bred"></i> </div> <div class="mcol-right"> <!-- Number of visitors --> <p><a href="#">7000</a> <em>visits</em></p> </div> <div class="clearfix"></div> </div> <!-- Members data --> <div class="hdata"> <div class="mcol-left"> <!-- Icon with blue background --> <i class="icon-user bblue"></i> </div> <div class="mcol-right"> <!-- Number of visitors --> <p><a href="#">3000</a> <em>users</em></p> </div> <div class="clearfix"></div> </div> <!-- revenue data --> <div class="hdata"> <div class="mcol-left"> <!-- Icon with green background --> <i class="icon-money bgreen"></i> </div> <div class="mcol-right"> <!-- Number of visitors --> <p><a href="#">5000</a><em>orders</em></p> </div> <div class="clearfix"></div> </div> </div> </div> </div> </div> </header> <!-- Header ends --> <!-- Main content starts --> <div class="content"> <!-- Sidebar --> <div class="sidebar"> <div class="sidebar-dropdown"><a href="#">Navigation</a></div> <!--- Sidebar navigation --> <!-- If the main navigation has sub navigation, then add the class "has_sub" to "li" of main navigation. --> <ul id="nav"> <!-- Main menu with font awesome icon --> <li><a href="index.html"><i class="icon-home"></i> Dashboard</a> <!-- Sub menu markup <ul> <li><a href="#">Submenu #1</a></li> <li><a href="#">Submenu #2</a></li> <li><a href="#">Submenu #3</a></li> </ul>--> </li> <li class="has_sub"><a href="#" class="open"><i class="icon-list-alt"></i> Widgets <span class="pull-right"><i class="icon-chevron-right"></i></span></a> <ul> <li><a href="widgets1.html">Widgets #1</a></li> <li><a href="widgets2.html">Widgets #2</a></li> <li><a href="widgets3.html">Widgets #3</a></li> </ul> </li> <li class="has_sub"><a href="#"><i class="icon-file-alt"></i> Pages #1 <span class="pull-right"><i class="icon-chevron-right"></i></span></a> <ul> <li><a href="post.html">Post</a></li> <li><a href="login.html">Login</a></li> <li><a href="register.html">Register</a></li> <li><a href="support.html">Support</a></li> <li><a href="invoice.html">Invoice</a></li> <li><a href="profile.html">Profile</a></li> <li><a href="gallery.html">Gallery</a></li> </ul> </li> <li class="has_sub"><a href="#"><i class="icon-file-alt"></i> Pages #2 <span class="pull-right"><i class="icon-chevron-right"></i></span></a> <ul> <li><a href="media.html">Media</a></li> <li><a href="statement.html">Statement</a></li> <li><a href="error.html">Error</a></li> <li><a href="error-log.html">Error Log</a></li> <li><a href="calendar.html">Calendar</a></li> <li><a href="grid.html">Grid</a></li> </ul> </li> <li><a href="charts.html"><i class="icon-bar-chart"></i> Charts</a></li> <li><a href="tables.html"><i class="icon-table"></i> Tables</a></li> <li><a href="forms.html"><i class="icon-tasks"></i> Forms</a></li> <li><a href="ui.html"><i class="icon-magic"></i> User Interface</a></li> <li><a href="calendar.html"><i class="icon-calendar"></i> Calendar</a></li> </ul> </div> <!-- Sidebar ends --> <!-- Main bar --> <div class="mainbar"> <!-- Page heading --> <div class="page-head"> <h2 class="pull-left"><i class="icon-list-alt"></i> Widgets</h2> <!-- Breadcrumb --> <div class="bread-crumb pull-right"> <a href="index.html"><i class="icon-home"></i> Home</a> <!-- Divider --> <span class="divider">/</span> <a href="#" class="bread-current">Dashboard</a> </div> <div class="clearfix"></div> </div> <!-- Page heading ends --> <!-- Matter --> <div class="matter"> <div class="container"> <div class="row"> <!-- Operating System --> <div class="col-md-4"> <div class="widget"> <!-- Widget title --> <div class="widget-head"> <div class="pull-left">Operating System</div> <div class="widget-icons pull-right"> <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a> <a href="#" class="wclose"><i class="icon-remove"></i></a> </div> <div class="clearfix"></div> </div> <div class="widget-content referrer"> <!-- Widget content --> <table class="table table-striped table-bordered table-hover"> <tr> <th><center>#</center></th> <th>Operating System</th> <th>Visits</th> </tr> <tr> <td><img src="img/icons/windows.png" alt="" /> <td>Windows 7</td> <td>3,005</td> </tr> <tr> <td><img src="img/icons/android.png" alt="" /> <td>Android ICS</td> <td>2,505</td> </tr> <tr> <td><img src="img/icons/ios.png" alt="" /> <td>Apple IOS</td> <td>1,405</td> </tr> <tr> <td><img src="img/icons/linux.png" alt="" /> <td>Linux</td> <td>4,005</td> </tr> <tr> <td><img src="img/icons/mac.png" alt="" /> <td>Mac</td> <td>505</td> </tr> <tr> <td><img src="img/icons/metro.png" alt="" /> <td>Windows Mobile</td> <td>305</td> </tr> </table> <div class="widget-foot"> </div> </div> </div> </div> <!-- Browsers --> <div class="col-md-4"> <div class="widget"> <!-- Widget title --> <div class="widget-head"> <div class="pull-left">Browsers</div> <div class="widget-icons pull-right"> <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a> <a href="#" class="wclose"><i class="icon-remove"></i></a> </div> <div class="clearfix"></div> </div> <div class="widget-content referrer"> <!-- Widget content --> <table class="table table-striped table-bordered table-hover"> <tr> <th><center>#</center></th> <th>Browsers</th> <th>Visits</th> </tr> <tr> <td><img src="img/icons/chrome.png" alt="" /> <td>Google Chrome</td> <td>3,005</td> </tr> <tr> <td><img src="img/icons/firefox.png" alt="" /> <td>Mozilla Firefox</td> <td>2,505</td> </tr> <tr> <td><img src="img/icons/ie.png" alt="" /> <td>Internet Explorer</td> <td>1,405</td> </tr> <tr> <td><img src="img/icons/opera.png" alt="" /> <td>Opera</td> <td>4,005</td> </tr> <tr> <td><img src="img/icons/safari.png" alt="" /> <td>Safari</td> <td>505</td> </tr> </table> <div class="widget-foot"> </div> </div> </div> </div> <!-- Recent News --> <div class="col-md-4"> <div class="widget"> <!-- Widget title --> <div class="widget-head"> <div class="pull-left">Recent News</div> <div class="widget-icons pull-right"> <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a> <a href="#" class="wclose"><i class="icon-remove"></i></a> </div> <div class="clearfix"></div> </div> <div class="widget-content referrer"> <!-- Widget content --> <div class="padd"> <ul class="latest-news"> <li> <!-- Title and date --> <h6><a href="#">Morbi ac felis nec </a> - <span>Jan 1, 2012</span></h6> <p>Suspendisse potenti. Morbi ac felis fermentum. Aenean lacus hendrerit sed rhoncus erat hendrerit. </p> </li> <li> <!-- Title and date --> <h6><a href="#">Aac felis nec imperdiet</a> - <span>Jan 1, 2012</span></h6> <p>Suspendisse potenti. Morbi ac felis fermentum. Aenean lacus hendrerit sed rhoncus erat hendrerit. </p> </li> <li> <!-- Title and date --> <h6><a href="#">Felis nec imperdiet</a> - <span>Jan 1, 2012</span></h6> <p>Suspendisse potenti. Morbi ac felis fermentum. Aenean hendrerit sed rhoncus erat hendrerit. </p> </li> </ul> </div> <div class="widget-foot"> </div> </div> </div> </div> </div> <div class="row"> <!-- Task widget --> <div class="col-md-5"> <div class="widget"> <!-- Widget title --> <div class="widget-head"> <div class="pull-left">Tasks</div> <div class="widget-icons pull-right"> <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a> <a href="#" class="wclose"><i class="icon-remove"></i></a> </div> <div class="clearfix"></div> </div> <div class="widget-content"> <!-- Widget content --> <!-- Task list starts --> <ul class="task"> <li> <!-- Checkbox --> <span class="uni"><input value="check1" type="checkbox"></span> <!-- Task --> Goto Shopping in Walmart <span class="label label-danger">Important</span> <!-- Delete button --> <a href="#" class="pull-right"><i class="icon-remove"></i></a> </li> <li> <!-- Checkbox --> <span class="uni"><input value="check1" type="checkbox"></span> <!-- Task --> Download some action movies <!-- Delete button --> <a href="#" class="pull-right"><i class="icon-remove"></i></a> </li> <li> <!-- Checkbox --> <span class="uni"><input value="check1" type="checkbox"></span> <!-- Task --> Read Harry Potter VII Book <span class="label label-danger">Important</span> <!-- Delete button --> <a href="#" class="pull-right"><i class="icon-remove"></i></a> </li> <li> <!-- Checkbox --> <span class="uni"><input value="check1" type="checkbox"></span> <!-- Task --> Collect cash from friends for camp <!-- Delete button --> <a href="#" class="pull-right"><i class="icon-remove"></i></a> </li> <li> <!-- Checkbox --> <span class="uni"><input value="check1" type="checkbox"></span> <!-- Task --> Sleep till tomorrow everning <!-- Delete button --> <a href="#" class="pull-right"><i class="icon-remove"></i></a> </li> </ul> <div class="clearfix"></div> <div class="widget-foot"> </div> </div> </div> </div> <div class="col-md-7"> <div class="widget"> <div class="widget-head"> <div class="pull-left">Quick Posts</div> <div class="widget-icons pull-right"> <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a> <a href="#" class="wclose"><i class="icon-remove"></i></a> </div> <div class="clearfix"></div> </div> <div class="widget-content"> <div class="padd"> <div class="form quick-post"> <!-- Edit profile form (not working)--> <form class="form-horizontal"> <!-- Title --> <div class="form-group"> <label class="control-label col-lg-3" for="title">Title</label> <div class="col-lg-9"> <input type="text" class="form-control" id="title"> </div> </div> <!-- Content --> <div class="form-group"> <label class="control-label col-lg-3" for="content">Content</label> <div class="col-lg-9"> <textarea class="form-control" id="content"></textarea> </div> </div> <!-- Cateogry --> <div class="form-group"> <label class="control-label col-lg-3">Category</label> <div class="col-lg-9"> <select class="form-control"> <option value="">- Choose Cateogry -</option> <option value="1">General</option> <option value="2">News</option> <option value="3">Media</option> <option value="4">Funny</option> </select> </div> </div> <!-- Tags --> <div class="form-group"> <label class="control-label col-lg-3" for="tags">Tags</label> <div class="col-lg-9"> <input type="text" class="form-control" id="tags"> </div> </div> <!-- Buttons --> <div class="form-group"> <!-- Buttons --> <div class="col-lg-offset-2 col-lg-9"> <button type="submit" class="btn btn-success">Publish</button> <button type="submit" class="btn btn-danger">Save Draft</button> <button type="reset" class="btn btn-default">Reset</button> </div> </div> </form> </div> </div> <div class="widget-foot"> <!-- Footer goes here --> </div> </div> </div> </div> </div> </div> </div> <!-- Matter ends --> </div> <!-- Mainbar ends --> <div class="clearfix"></div> </div> <!-- Content ends --> <!-- Footer starts --> <footer> <div class="container"> <div class="row"> <div class="col-md-12"> <!-- Copyright info --> <p class="copy">Copyright &copy; 2012 | <a href="#">Your Site</a> </p> </div> </div> </div> </footer> <!-- Footer ends --> <!-- Scroll to top --> <span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span> <!-- JS --> <script src="js/jquery.js"></script> <!-- jQuery --> <script src="js/bootstrap.js"></script> <!-- Bootstrap --> <script src="js/jquery-ui-1.9.2.custom.min.js"></script> <!-- jQuery UI --> <script src="js/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar --> <script src="js/jquery.rateit.min.js"></script> <!-- RateIt - Star rating --> <script src="js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto --> <!-- jQuery Flot --> <script src="js/excanvas.min.js"></script> <script src="js/jquery.flot.js"></script> <script src="js/jquery.flot.resize.js"></script> <script src="js/jquery.flot.pie.js"></script> <script src="js/jquery.flot.stack.js"></script> <!-- jQuery Notification - Noty --> <script src="js/jquery.noty.js"></script> <!-- jQuery Notify --> <script src="js/themes/default.js"></script> <!-- jQuery Notify --> <script src="js/layouts/bottom.js"></script> <!-- jQuery Notify --> <script src="js/layouts/topRight.js"></script> <!-- jQuery Notify --> <script src="js/layouts/top.js"></script> <!-- jQuery Notify --> <!-- jQuery Notification ends --> <script src="js/sparklines.js"></script> <!-- Sparklines --> <script src="js/jquery.cleditor.min.js"></script> <!-- CLEditor --> <script src="js/bootstrap-datetimepicker.min.js"></script> <!-- Date picker --> <script src="js/jquery.uniform.min.js"></script> <!-- jQuery Uniform --> <script src="js/bootstrap-switch.min.js"></script> <!-- Bootstrap Toggle --> <script src="js/filter.js"></script> <!-- Filter for support page --> <script src="js/custom.js"></script> <!-- Custom codes --> <script src="js/charts.js"></script> <!-- Charts & Graphs --> </body> </html>
hubcarl/smart-nodejs-express-ejs
demo/manage/widgets3.html
HTML
apache-2.0
32,115
/* * (C) Johannes Kepler University Linz, Austria, 2005-2013 * Institute for Systems Engineering and Automation (SEA) * * The software may only be used for academic purposes (teaching, scientific * research). Any redistribution or commercialization of the software program * and documentation (or any part thereof) requires prior written permission of * the JKU. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * This software program and documentation are copyrighted by Johannes Kepler * University Linz, Austria (the JKU). The software program and documentation * are supplied AS IS, without any accompanying services from the JKU. The JKU * does not warrant that the operation of the program will be uninterrupted or * error-free. The end-user understands that the program was developed for * research purposes and is advised not to rely exclusively on the program for * any reason. * * IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, * SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE * AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE AUTHOR * SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHOR HAS * NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, * OR MODIFICATIONS. */ /* * ArtifactIsNotACollectionException.java created on 13.03.2013 * * (c) alexander noehrer */ package at.jku.sea.cloud.exceptions; /** * @author alexander noehrer */ public class ArtifactIsNotACollectionException extends RuntimeException { private static final long serialVersionUID = 1L; public ArtifactIsNotACollectionException(final long version, final long id) { super("artifact (id=" + id + ", version=" + version + ") is not a collection"); } }
OnurKirkizoglu/master_thesis
at.jku.sea.cloud/src/main/java/at/jku/sea/cloud/exceptions/ArtifactIsNotACollectionException.java
Java
apache-2.0
2,111
/* * Copyright 2010-2012 Ning, Inc. * * Ning licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package com.ning.metrics.collector.filtering; import com.ning.metrics.collector.endpoint.ParsedRequest; import org.testng.Assert; import org.testng.annotations.Test; import java.util.Collections; import java.util.HashSet; import java.util.Set; import java.util.regex.Pattern; public class TestPatternSetFilter { @Test(groups = "fast") public void testNullValue() throws Exception { final Filter<ParsedRequest> filter = new PatternSetFilter(createFieldExtractor(null), createPatternSet("pattern1", "pattern2")); Assert.assertEquals(filter.passesFilter(null, null), false); } @Test(groups = "fast") public void testEmptySetPatternEventRESTRequestFilter() throws Exception { final Filter<ParsedRequest> filter = new PatternSetFilter(createFieldExtractor("test-host"), Collections.<Pattern>emptySet()); Assert.assertEquals(filter.passesFilter(null, null), false); } @Test(groups = "fast") public void testSinglePatternEventRESTRequestFilter() throws Exception { final Filter<ParsedRequest> filterShouldMatch = new PatternSetFilter(createFieldExtractor("test-host"), createPatternSet("test-host")); Assert.assertEquals(filterShouldMatch.passesFilter(null, null), true); final Filter<ParsedRequest> filterDoesNotMatch = new PatternSetFilter(createFieldExtractor("test-host"), createPatternSet("mugen")); Assert.assertEquals(filterDoesNotMatch.passesFilter(null, null), false); } @Test(groups = "fast") public void testMultiplePatternEventRESTRequestFilter() throws Exception { final Filter<ParsedRequest> trueFilter = new PatternSetFilter(createFieldExtractor("test-host"), createPatternSet("test-host", "nothing")); Assert.assertTrue(trueFilter.passesFilter(null, null)); final Filter<ParsedRequest> falseFilter = new PatternSetFilter(createFieldExtractor("test-host"), createPatternSet("mugen", "nothing")); Assert.assertFalse(falseFilter.passesFilter(null, null)); } @Test(groups = "fast") public void testSinglePatternEventInclusionFilter() throws Exception { final Filter<ParsedRequest> filterShouldMatch = new EventInclusionFilter(createFieldExtractor("test-host"), createPatternSet("test-host")); Assert.assertEquals(filterShouldMatch.passesFilter(null, null), false); final Filter<ParsedRequest> filterDoesNotMatch = new EventInclusionFilter(createFieldExtractor("test-host"), createPatternSet("mugen")); Assert.assertEquals(filterDoesNotMatch.passesFilter(null, null), true); } private Set<Pattern> createPatternSet(final String... patterns) { final Set<Pattern> patternSet = new HashSet<Pattern>(); for (final String str : patterns) { patternSet.add(Pattern.compile(str)); } return patternSet; } private FieldExtractor createFieldExtractor(final String value) { return new FieldExtractor() { @Override public String getField(final String eventName, final ParsedRequest annotation) { return value; } }; } }
ning/collector
src/test/java/com/ning/metrics/collector/filtering/TestPatternSetFilter.java
Java
apache-2.0
3,816
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You 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.geode.management.internal.cli.commands; import static org.assertj.core.api.Assertions.assertThat; import org.apache.geode.test.junit.rules.GfshShellConnectionRule; import org.apache.geode.test.junit.categories.DistributedTest; import org.junit.Rule; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.rules.TemporaryFolder; import java.io.File; import java.util.Arrays; import java.util.Set; import java.util.stream.Collectors; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @Category(DistributedTest.class) public class ExportLogsStatsOverHttpDUnitTest extends ExportLogsStatsDUnitTest { @Rule public TemporaryFolder temporaryFolder = new TemporaryFolder(); @Override public void connectIfNeeded() throws Exception { if (!connector.isConnected()) connector.connect(httpPort, GfshShellConnectionRule.PortType.http); } @Test public void testExportWithDir() throws Exception { connectIfNeeded(); File dir = temporaryFolder.newFolder(); // export the logs connector.executeCommand("export logs --dir=" + dir.getAbsolutePath()); // verify that the message contains a path to the user.dir String message = connector.getGfshOutput(); assertThat(message).contains("Logs exported to: "); assertThat(message).contains(dir.getAbsolutePath()); String zipPath = getZipPathFromCommandResult(message); Set<String> actualZipEntries = new ZipFile(zipPath).stream().map(ZipEntry::getName).collect(Collectors.toSet()); assertThat(actualZipEntries).isEqualTo(expectedZipEntries); // also verify that the zip file on locator is deleted assertThat(Arrays.stream(locator.getWorkingDir().listFiles()) .filter(file -> file.getName().endsWith(".zip")).collect(Collectors.toSet())).isEmpty(); } protected String getZipPathFromCommandResult(String message) { return message.replaceAll("Logs exported to: ", "").trim(); } }
pivotal-amurmann/geode
geode-web/src/test/java/org/apache/geode/management/internal/cli/commands/ExportLogsStatsOverHttpDUnitTest.java
Java
apache-2.0
2,773
# Copyright (C) 2014-2016 MongoDB, Inc. # # 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. module Mongo module Operation # Adds behaviour for updating the selector for operations # that may take a write concern. # # @since 2.4.0 module TakesWriteConcern private def update_selector_for_write_concern(sel, server) if write_concern && server.features.collation_enabled? sel.merge(writeConcern: write_concern.options) else sel end end end end end
estolfo/mongo-ruby-driver
lib/mongo/operation/takes_write_concern.rb
Ruby
apache-2.0
1,031
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Web.Razor.Parser { [Flags] public enum BalancingModes { None = 0, BacktrackOnFailure = 1, NoErrorOnFailure = 2, AllowCommentsAndTemplates = 4, AllowEmbeddedTransitions = 8 } }
Terminator-Aaron/Katana
aspnetwebsrc/System.Web.Razor/Parser/BalancingModes.cs
C#
apache-2.0
386
/* * Copyright 2014 Click Travel Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package com.clicktravel.infrastructure.persistence.aws.dynamodb; import static com.clicktravel.common.random.Randoms.randomId; import static com.clicktravel.common.random.Randoms.randomString; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.mockito.Matchers.any; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.powermock.api.mockito.PowerMockito.whenNew; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; import com.amazonaws.services.dynamodbv2.document.DynamoDB; import com.amazonaws.services.dynamodbv2.document.Item; import com.amazonaws.services.dynamodbv2.document.Table; import com.amazonaws.services.dynamodbv2.document.spec.DeleteItemSpec; import com.amazonaws.services.dynamodbv2.document.spec.GetItemSpec; import com.amazonaws.services.dynamodbv2.document.spec.PutItemSpec; import com.amazonaws.services.dynamodbv2.model.ConditionalCheckFailedException; import com.clicktravel.cheddar.infrastructure.persistence.database.ItemId; import com.clicktravel.cheddar.infrastructure.persistence.database.configuration.DatabaseSchemaHolder; import com.clicktravel.cheddar.infrastructure.persistence.database.configuration.ItemConfiguration; import com.clicktravel.cheddar.infrastructure.persistence.database.exception.NonExistentItemException; import com.clicktravel.cheddar.infrastructure.persistence.database.exception.OptimisticLockException; import com.clicktravel.common.random.Randoms; @RunWith(PowerMockRunner.class) @PrepareForTest({ DynamoDocumentStoreTemplate.class }) public class DynamoDocumentStoreTemplateTest { private DatabaseSchemaHolder mockDatabaseSchemaHolder; private String schemaName; private String tableName; private AmazonDynamoDB mockAmazonDynamoDbClient; private DynamoDB mockDynamoDBClient; @Before public void setup() throws Exception { schemaName = randomString(10); tableName = randomString(10); mockDatabaseSchemaHolder = mock(DatabaseSchemaHolder.class); when(mockDatabaseSchemaHolder.schemaName()).thenReturn(schemaName); mockAmazonDynamoDbClient = mock(AmazonDynamoDB.class); mockDynamoDBClient = mock(DynamoDB.class); whenNew(DynamoDB.class).withParameterTypes(AmazonDynamoDB.class).withArguments(eq(mockAmazonDynamoDbClient)) .thenReturn(mockDynamoDBClient); } @SuppressWarnings("deprecation") @Test public void shouldCreate_withItem() { // Given final ItemId itemId = new ItemId(randomId()); final StubItem stubItem = generateRandomStubItem(itemId); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); final Item mockTableItem = mock(Item.class); when(mockTableItem.toJSON()).thenReturn(dynamoDocumentStoreTemplate.itemToString(stubItem)); // When final StubItem returnedItem = dynamoDocumentStoreTemplate.create(stubItem); // Then final ArgumentCaptor<PutItemSpec> getItemRequestCaptor = ArgumentCaptor.forClass(PutItemSpec.class); verify(mockTable).putItem(getItemRequestCaptor.capture()); final PutItemSpec spec = getItemRequestCaptor.getValue(); assertEquals(itemId.value(), spec.getItem().get("id")); assertEquals(itemId.value(), returnedItem.getId()); assertEquals(stubItem.getStringProperty(), returnedItem.getStringProperty()); assertEquals(stubItem.getStringProperty2(), returnedItem.getStringProperty2()); assertEquals(stubItem.getStringSetProperty(), returnedItem.getStringSetProperty()); } @SuppressWarnings("deprecation") @Test public void shouldNotCreate_withItem() { // Given final ItemId itemId = new ItemId(randomId()); final StubItem stubItem = generateRandomStubItem(itemId); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); final Item mockTableItem = mock(Item.class); when(mockTableItem.toJSON()).thenReturn(dynamoDocumentStoreTemplate.itemToString(stubItem)); doThrow(RuntimeException.class).when(mockTable).putItem(any(PutItemSpec.class)); RuntimeException thrownException = null; // When try { dynamoDocumentStoreTemplate.create(stubItem); } catch (final RuntimeException runtimeException) { thrownException = runtimeException; } // Then assertNotNull(thrownException); } @SuppressWarnings("deprecation") @Test public void shouldRead_withItemIdAndItemClass() throws Exception { // Given final ItemId itemId = new ItemId(randomId()); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); final Item mockTableItem = mock(Item.class); when(mockTable.getItem(any(GetItemSpec.class))).thenReturn(mockTableItem); final StubItem stubItem = generateRandomStubItem(itemId); when(mockTableItem.toJSON()).thenReturn(dynamoDocumentStoreTemplate.itemToString(stubItem)); // When final StubItem returnedItem = dynamoDocumentStoreTemplate.read(itemId, StubItem.class); // Then final ArgumentCaptor<GetItemSpec> getItemRequestCaptor = ArgumentCaptor.forClass(GetItemSpec.class); verify(mockTable).getItem(getItemRequestCaptor.capture()); final GetItemSpec spec = getItemRequestCaptor.getValue(); assertEquals(1, spec.getKeyComponents().size()); assertEquals(itemId.value(), spec.getKeyComponents().iterator().next().getValue()); assertEquals(itemId.value(), returnedItem.getId()); assertEquals(stubItem.getStringProperty(), returnedItem.getStringProperty()); assertEquals(stubItem.getStringProperty2(), returnedItem.getStringProperty2()); assertEquals(stubItem.getStringSetProperty(), returnedItem.getStringSetProperty()); } @SuppressWarnings("deprecation") @Test public void shouldNotRead_withNonExistentItemExceptionNoItem() throws Exception { // Given final ItemId itemId = new ItemId(randomId()); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); when(mockTable.getItem(any(GetItemSpec.class))).thenReturn(null); NonExistentItemException thrownException = null; // When try { dynamoDocumentStoreTemplate.read(itemId, StubItem.class); } catch (final NonExistentItemException nonExistentItemException) { thrownException = nonExistentItemException; } // Then assertNotNull(thrownException); } @SuppressWarnings("deprecation") @Test public void shouldNotRead_withNonExistentItemExceptionNoContent() throws Exception { // Given final ItemId itemId = new ItemId(randomId()); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); final Item mockTableItem = mock(Item.class); when(mockTable.getItem(any(GetItemSpec.class))).thenReturn(mockTableItem); when(mockTableItem.toJSON()).thenReturn(""); NonExistentItemException thrownException = null; // When try { dynamoDocumentStoreTemplate.read(itemId, StubItem.class); } catch (final NonExistentItemException nonExistentItemException) { thrownException = nonExistentItemException; } // Then assertNotNull(thrownException); } @SuppressWarnings("deprecation") @Test public void shouldUpdate_withItem() { // Given final ItemId itemId = new ItemId(randomId()); final StubItem stubItem = generateRandomStubItem(itemId); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); final Item mockTableItem = mock(Item.class); when(mockTableItem.toJSON()).thenReturn(dynamoDocumentStoreTemplate.itemToString(stubItem)); // When final StubItem returnedItem = dynamoDocumentStoreTemplate.update(stubItem); // Then final ArgumentCaptor<PutItemSpec> getItemRequestCaptor = ArgumentCaptor.forClass(PutItemSpec.class); verify(mockTable).putItem(getItemRequestCaptor.capture()); final PutItemSpec spec = getItemRequestCaptor.getValue(); assertEquals(itemId.value(), spec.getItem().get("id")); assertEquals(itemId.value(), returnedItem.getId()); assertEquals(stubItem.getStringProperty(), returnedItem.getStringProperty()); assertEquals(stubItem.getStringProperty2(), returnedItem.getStringProperty2()); assertEquals(stubItem.getStringSetProperty(), returnedItem.getStringSetProperty()); } @SuppressWarnings("deprecation") @Test public void shouldNotUpdate_withItem() { // Given final ItemId itemId = new ItemId(randomId()); final StubItem stubItem = generateRandomStubItem(itemId); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); final Item mockTableItem = mock(Item.class); when(mockTableItem.toJSON()).thenReturn(dynamoDocumentStoreTemplate.itemToString(stubItem)); doThrow(ConditionalCheckFailedException.class).when(mockTable).putItem(any(PutItemSpec.class)); OptimisticLockException thrownException = null; // When try { dynamoDocumentStoreTemplate.update(stubItem); } catch (final OptimisticLockException optimisticLockException) { thrownException = optimisticLockException; } // Then assertNotNull(thrownException); } @SuppressWarnings("deprecation") @Test public void shouldDelete_withItem() { // Given final ItemId itemId = new ItemId(randomId()); final StubItem stubItem = generateRandomStubItem(itemId); final ItemConfiguration itemConfiguration = new ItemConfiguration(StubItem.class, tableName); final Collection<ItemConfiguration> itemConfigurations = Arrays.asList(itemConfiguration); when(mockDatabaseSchemaHolder.itemConfigurations()).thenReturn(itemConfigurations); final Table mockTable = mock(Table.class); when(mockDynamoDBClient.getTable(any(String.class))).thenReturn(mockTable); final DynamoDocumentStoreTemplate dynamoDocumentStoreTemplate = new DynamoDocumentStoreTemplate( mockDatabaseSchemaHolder); dynamoDocumentStoreTemplate.initialize(mockAmazonDynamoDbClient); // When dynamoDocumentStoreTemplate.delete(stubItem); // Then final ArgumentCaptor<DeleteItemSpec> getItemRequestCaptor = ArgumentCaptor.forClass(DeleteItemSpec.class); verify(mockTable).deleteItem(getItemRequestCaptor.capture()); } private StubItem generateRandomStubItem(final ItemId itemId) { final StubItem item = new StubItem(); item.setBooleanProperty(Randoms.randomBoolean()); item.setId(itemId.value()); item.setStringProperty(Randoms.randomString()); item.setStringProperty2(Randoms.randomString()); item.setVersion(Randoms.randomLong()); final Set<String> stringSet = new HashSet<String>(); for (int i = 0; i < Randoms.randomInt(20); i++) { stringSet.add(Randoms.randomString()); } item.setStringSetProperty(stringSet); return item; } }
clicktravel-martindimitrov/Cheddar
cheddar/cheddar-integration-aws/src/test/java/com/clicktravel/infrastructure/persistence/aws/dynamodb/DynamoDocumentStoreTemplateTest.java
Java
apache-2.0
16,505
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is 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. // __END_LICENSE__ /// \file MainWindow.h /// /// #ifndef __STEREO_GUI_MAINWINDOW_H__ #define __STEREO_GUI_MAINWINDOW_H__ #include <QMainWindow> #include <string> #include <vector> // Boost #include <boost/program_options.hpp> #include <vw/Math/Vector.h> #include <vw/InterestPoint/InterestData.h> #include <asp/Core/Common.h> #include <asp/GUI/GuiUtilities.h> // Forward declarations class QAction; class QLabel; class QTabWidget; class QSplitter; namespace vw { namespace gui { enum ViewType {VIEW_SIDE_BY_SIDE, VIEW_IN_SINGLE_WINDOW, VIEW_AS_TILES_ON_GRID}; class MainWidget; class chooseFilesDlg; /// This class handles the menues at the top bar and other application level details. class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(vw::cartography::GdalWriteOptions const& opt, std::vector<std::string> const& images, std::string& output_prefix, // non-const, so we can change it int grid_cols, vw::Vector2i const& window_size, bool single_window, bool use_georef, bool hillshade, bool view_matches, bool delete_temporary_files_on_exit, int argc, char ** argv); virtual ~MainWindow() {} private slots: void forceQuit (); // Ensure the program shuts down. void sizeToFit (); void viewSingleWindow (); void viewSideBySide (); void viewAsTiles (); void turnOnViewMatches (); void turnOffViewMatches (); void deleteImageFromWidget (); void zoomAllToSameRegionAction(int widget_id); void viewMatches (); void addDelMatches (); void saveMatches (); void writeGroundControlPoints (); ///< Write a ground control point file for bundle_adjust void save_screenshot (); void select_region (); void change_cursor (); void run_stereo (); void run_parallel_stereo (); void thresholdCalc (); void thresholdGetSet (); void setPolyColor (); void setLineWidth (); void viewThreshImages (); void viewUnthreshImages (); void contourImages (); void saveVectorLayer (); void viewHillshadedImages (); void viewGeoreferencedImages (); void overlayGeoreferencedImages (); void setZoomAllToSameRegion (); void setZoomAllToSameRegionAux(bool do_zoom); void viewNextImage (); void viewPrevImage (); void profileMode (); void polyEditMode (); void uncheckProfileModeCheckbox (); void uncheckPolyEditModeCheckbox(); void about (); protected: void keyPressEvent(QKeyEvent *event); bool eventFilter(QObject *obj, QEvent *e); private: void run_stereo_or_parallel_stereo(std::string const& cmd); /// Go through m_matches and retain only IPs detected in the first image. /// - If require_all is set, only keep IPs detected in all images. size_t consolidate_matches(bool require_all = true); void createLayout(); void createMenus (); // Event handlers void resizeEvent(QResizeEvent *); void closeEvent (QCloseEvent *); // See if in the middle of editing matches bool editingMatches() const; vw::cartography::GdalWriteOptions m_opt; std::string m_output_prefix; double m_widRatio; // ratio of sidebar to entire win wid std::vector<MainWidget*> m_widgets; ///< One of these for each seperate image pane. chooseFilesDlg * m_chooseFiles; // left sidebar for selecting files QMenu *m_file_menu; QMenu *m_view_menu; QMenu *m_matches_menu; QMenu *m_threshold_menu; QMenu *m_profile_menu; QMenu *m_vector_layer_menu; QMenu *m_help_menu; QAction *m_about_action; QAction *m_thresholdCalc_action; QAction *m_thresholdGetSet_action; QAction *m_setLineWidth_action; QAction *m_setPolyColor_action; QAction *m_sizeToFit_action; QAction *m_viewSingleWindow_action; QAction *m_viewSideBySide_action; QAction *m_viewAsTiles_action; QAction *m_viewHillshadedImages_action; QAction *m_viewGeoreferencedImages_action; QAction *m_overlayGeoreferencedImages_action; QAction *m_viewThreshImages_action; QAction *m_contourImages_action; QAction *m_saveVectorLayer_action; QAction *m_viewUnthreshImages_action; QAction *m_zoomAllToSameRegion_action; QAction *m_viewNextImage_action; QAction *m_viewPrevImage_action; QAction *m_viewMatches_action; QAction *m_addDelMatches_action; QAction *m_saveMatches_action; QAction *m_writeGcp_action; QAction *m_save_screenshot_action; QAction *m_select_region_action; QAction *m_change_cursor_action; QAction *m_run_stereo_action; QAction *m_run_parallel_stereo_action; QAction *m_exit_action; QAction *m_profileMode_action; QAction *m_polyEditMode_action; ViewType m_view_type, m_view_type_old; int m_grid_cols, m_grid_cols_old; bool m_use_georef, m_hillshade, m_view_matches, m_delete_temporary_files_on_exit; bool m_allowMultipleSelections; int m_argc; char ** m_argv; bool m_matches_exist; std::vector<bool> m_hillshade_vec; // Any vector of size equal to number of images must be adjusted when the function // deleteImageFromWidget() is invoked. That includes m_image_files and m_matches. std::vector<std::string> m_image_files; ///< Loaded image files /// Structure to keep track of all interest point matches. MatchList m_matchlist; int m_editMatchPointVecIndex; ///< Point being edited int m_cursor_count; }; }} // namespace vw::gui #endif // __STEREO_GUI_MAINWINDOW_H__
oleg-alexandrov/StereoPipeline
src/asp/GUI/MainWindow.h
C
apache-2.0
6,849
/* * RemoveRelationKnowhow.java * Created on 2013/06/28 * * Copyright (C) 2011-2013 Nippon Telegraph and Telephone Corporation * * 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 tubame.knowhow.plugin.ui.view.remove; import tubame.common.util.CmnStringUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import tubame.knowhow.plugin.logic.KnowhowManagement; import tubame.knowhow.plugin.model.view.CategoryViewType; import tubame.knowhow.plugin.model.view.KnowhowDetailType; import tubame.knowhow.plugin.model.view.KnowhowViewType; import tubame.knowhow.plugin.model.view.PortabilityKnowhowListViewOperation; import tubame.knowhow.plugin.ui.editor.multi.MaintenanceKnowhowMultiPageEditor; import tubame.knowhow.plugin.ui.editor.multi.docbook.KnowhowDetailEditor; import tubame.knowhow.util.PluginUtil; /** * Make a related item deletion process know-how information.<br/> * Delete stick know-how related to the item to be deleted,<br/> * the item that you want to match the key of its own from the reference list of * key know-how detailed information,<br/> * the parent category.<br/> */ public class RemoveRelationKnowhow implements RemoveRelationItemStrategy { /** Logger */ private static final Logger LOGGER = LoggerFactory .getLogger(RemoveRelationKnowhow.class); /** Know-how entry view item */ private KnowhowViewType knowhowViewType; /** Deleted items */ private PortabilityKnowhowListViewOperation portabilityKnowhowListViewOperation; /** * Constructor.<br/> * * @param portabilityKnowhowListViewOperation * Deleted items */ public RemoveRelationKnowhow( PortabilityKnowhowListViewOperation portabilityKnowhowListViewOperation) { this.portabilityKnowhowListViewOperation = portabilityKnowhowListViewOperation; this.knowhowViewType = (KnowhowViewType) portabilityKnowhowListViewOperation .getKnowhowViewType(); } /** * {@inheritDoc} */ @Override public void removeRelationItem() { RemoveRelationKnowhow.LOGGER.debug(CmnStringUtil.EMPTY); removeKnowhowDetail(); removeEntryViewItem(); } /** * Delete key reference to itself from the parent category that is * registered in the entry view.<br/> * */ private void removeEntryViewItem() { CategoryViewType categoryViewType = (CategoryViewType) portabilityKnowhowListViewOperation .getParent().getKnowhowViewType(); String removeTargetKey = null; for (String knowhowRefKey : categoryViewType.getKnowhowRefKeies()) { if (knowhowViewType.getRegisterKey().equals(knowhowRefKey)) { removeTargetKey = knowhowRefKey; } } if (removeTargetKey != null) { categoryViewType.getKnowhowRefKeies().remove(removeTargetKey); } } /** * Delete the data that matches the key from its own know-how detail data * list.<br/> * Remove know-how detail data that matches the reference key know-how from * its own know-how detail data list.<br/> * */ private void removeKnowhowDetail() { KnowhowDetailType removeTargetItem = null; for (KnowhowDetailType knowhowDetailType : KnowhowManagement .getKnowhowDetailTypes()) { if (knowhowDetailType.getKnowhowDetailId().equals( knowhowViewType.getKnowhowDetailRefKey())) { removeTargetItem = knowhowDetailType; } } if (removeTargetItem != null) { KnowhowManagement.getKnowhowDetailTypes().remove(removeTargetItem); clearKnowhoweDetaileditor(removeTargetItem); } } /** * Initialization of know-how detail page editor.<br/> * * @param removeTargetItem * Deleted items */ private void clearKnowhoweDetaileditor(KnowhowDetailType removeTargetItem) { MaintenanceKnowhowMultiPageEditor knowhowMultiPageEditor = PluginUtil .getKnowhowEditor(); KnowhowDetailEditor detailEditor = knowhowMultiPageEditor .getKnowhowDetailEditor(); if (detailEditor.getKnowhowDetailType() != null) { if (removeTargetItem.getKnowhowDetailId().equals( detailEditor.getKnowhowDetailType().getKnowhowDetailId())) { knowhowMultiPageEditor.clearKnowhowDetail(); } } } }
azkaoru/migration-tool
src/tubame.knowhow/src/tubame/knowhow/plugin/ui/view/remove/RemoveRelationKnowhow.java
Java
apache-2.0
5,041
/* * Copyright (C) 2013 Leszek Mzyk * Modifications Copyright (C) 2015 eccyan <g00.eccyan@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.eccyan.widget; import android.content.Context; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.util.AttributeSet; /** * A ViewPager subclass enabling infinte scrolling of the viewPager elements * * When used for paginating views (in opposite to fragments), no code changes * should be needed only change xml's from <android.support.v4.view.ViewPager> * to <com.imbryk.viewPager.LoopViewPager> * * If "blinking" can be seen when paginating to first or last view, simply call * seBoundaryCaching( true ), or change DEFAULT_BOUNDARY_CASHING to true * * When using a FragmentPagerAdapter or FragmentStatePagerAdapter, * additional changes in the adapter must be done. * The adapter must be prepared to create 2 extra items e.g.: * * The original adapter creates 4 items: [0,1,2,3] * The modified adapter will have to create 6 items [0,1,2,3,4,5] * with mapping realPosition=(position-1)%count * [0->3, 1->0, 2->1, 3->2, 4->3, 5->0] */ public class SpinningViewPager extends ViewPager { private static final boolean DEFAULT_BOUNDARY_CASHING = false; OnPageChangeListener mOuterPageChangeListener; private LoopPagerAdapterWrapper mAdapter; private boolean mBoundaryCaching = DEFAULT_BOUNDARY_CASHING; /** * helper function which may be used when implementing FragmentPagerAdapter * * @param position * @param count * @return (position-1)%count */ public static int toRealPosition( int position, int count ){ position = position-1; if( position < 0 ){ position += count; }else{ position = position%count; } return position; } /** * If set to true, the boundary views (i.e. first and last) will never be destroyed * This may help to prevent "blinking" of some views * * @param flag */ public void setBoundaryCaching(boolean flag) { mBoundaryCaching = flag; if (mAdapter != null) { mAdapter.setBoundaryCaching(flag); } } @Override public void setAdapter(PagerAdapter adapter) { mAdapter = new LoopPagerAdapterWrapper(adapter); mAdapter.setBoundaryCaching(mBoundaryCaching); super.setAdapter(mAdapter); } @Override public PagerAdapter getAdapter() { return mAdapter != null ? mAdapter.getRealAdapter() : mAdapter; } @Override public int getCurrentItem() { return mAdapter != null ? mAdapter.toRealPosition(super.getCurrentItem()) : 0; } public void setCurrentItem(int item, boolean smoothScroll) { int realItem = mAdapter.toInnerPosition(item); super.setCurrentItem(realItem, smoothScroll); } @Override public void setCurrentItem(int item) { if (getCurrentItem() != item) { setCurrentItem(item, true); } } @Override public void setOnPageChangeListener(OnPageChangeListener listener) { mOuterPageChangeListener = listener; }; public SpinningViewPager(Context context) { super(context); init(); } public SpinningViewPager(Context context, AttributeSet attrs) { super(context, attrs); init(); } private void init() { super.setOnPageChangeListener(onPageChangeListener); } private OnPageChangeListener onPageChangeListener = new OnPageChangeListener() { private float mPreviousOffset = -1; private float mPreviousPosition = -1; @Override public void onPageSelected(int position) { int realPosition = mAdapter.toRealPosition(position); if (mPreviousPosition != realPosition) { mPreviousPosition = realPosition; if (mOuterPageChangeListener != null) { mOuterPageChangeListener.onPageSelected(realPosition); } } } @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { int realPosition = position; if (mAdapter != null) { realPosition = mAdapter.toRealPosition(position); if (positionOffset == 0 && mPreviousOffset == 0 && (position == 0 || position == mAdapter.getCount() - 1)) { setCurrentItem(realPosition, false); } } mPreviousOffset = positionOffset; if (mOuterPageChangeListener != null) { mOuterPageChangeListener.onPageScrolled(realPosition, positionOffset, positionOffsetPixels); } } @Override public void onPageScrollStateChanged(int state) { if (mAdapter != null) { int position = SpinningViewPager.super.getCurrentItem(); int realPosition = mAdapter.toRealPosition(position); if (state == ViewPager.SCROLL_STATE_IDLE && (position == 0 || position == mAdapter.getCount() - 1)) { setCurrentItem(realPosition, false); } } if (mOuterPageChangeListener != null) { mOuterPageChangeListener.onPageScrollStateChanged(state); } } }; }
eccyan/SpinningTabStrip
spinning/src/main/java/com/eccyan/widget/SpinningViewPager.java
Java
apache-2.0
6,099
CREATE TABLE port_group ( id INTEGER CONSTRAINT port_group_id_nn NOT NULL, network_id INTEGER CONSTRAINT port_group_network_id_nn NOT NULL, network_tag INTEGER CONSTRAINT port_group_network_tag_nn NOT NULL, usage VARCHAR2(32) CONSTRAINT port_group_usage_nn NOT NULL, creation_date DATE CONSTRAINT port_group_cr_date_nn NOT NULL, CONSTRAINT port_group_network_uk UNIQUE (network_id), CONSTRAINT port_group_network_fk FOREIGN KEY (network_id) REFERENCES network (id) ON DELETE CASCADE, CONSTRAINT port_group_pk PRIMARY KEY (id) ); CREATE SEQUENCE port_group_seq; DECLARE CURSOR pg_curs IS SELECT ov.network_id, ov.vlan_id, vi.vlan_type, MAX(ov.creation_date) AS creation_date FROM observed_vlan ov JOIN vlan_info vi ON ov.vlan_id = vi.vlan_id GROUP BY ov.network_id, ov.vlan_id, vi.vlan_type; pg_rec pg_curs%ROWTYPE; BEGIN FOR pg_rec IN pg_curs LOOP INSERT INTO port_group (id, network_id, network_tag, usage, creation_date) VALUES (port_group_seq.NEXTVAL, pg_rec.network_id, pg_rec.vlan_id, pg_rec.vlan_type, pg_rec.creation_date); END LOOP; END; / CREATE INDEX port_group_usage_tag_idx ON port_group (usage, network_tag) COMPRESS 1; ALTER TABLE observed_vlan ADD port_group_id INTEGER; UPDATE observed_vlan SET port_group_id = (SELECT id FROM port_group WHERE observed_vlan.network_id = port_group.network_id); ALTER TABLE observed_vlan MODIFY port_group_id INTEGER CONSTRAINT observed_vlan_port_group_id_nn NOT NULL; ALTER TABLE observed_vlan DROP PRIMARY KEY DROP INDEX; ALTER TABLE observed_vlan DROP COLUMN network_id; ALTER TABLE observed_vlan DROP COLUMN vlan_id; ALTER TABLE observed_vlan DROP COLUMN creation_date; ALTER TABLE observed_vlan ADD CONSTRAINT observed_vlan_pk PRIMARY KEY (network_device_id, port_group_id); ALTER TABLE observed_vlan ADD CONSTRAINT obs_vlan_pg_fk FOREIGN KEY (port_group_id) REFERENCES port_group (id) ON DELETE CASCADE; CREATE INDEX observed_vlan_pg_idx ON observed_vlan (port_group_id); ALTER TABLE interface RENAME COLUMN port_group TO port_group_name; ALTER TABLE interface ADD port_group_id INTEGER; ALTER TABLE interface ADD CONSTRAINT iface_pg_fk FOREIGN KEY (port_group_id) REFERENCES port_group (id); ALTER TABLE interface ADD CONSTRAINT iface_pg_ck CHECK (port_group_id IS NULL OR port_group_name IS NULL); DECLARE CURSOR vm_iface_curs IS SELECT interface.id, port_group.id AS pg_id FROM interface JOIN hardware_entity ON interface.hardware_entity_id = hardware_entity.id JOIN model ON hardware_entity.model_id = model.id JOIN virtual_machine ON virtual_machine.machine_id = hardware_entity.id JOIN "resource" ON virtual_machine.resource_id = "resource".id JOIN resholder ON "resource".holder_id = resholder.id JOIN clstr ON resholder.cluster_id = clstr.id JOIN esx_cluster ON esx_cluster.esx_cluster_id = clstr.id JOIN network_device ON esx_cluster.network_device_id = network_device.hardware_entity_id JOIN observed_vlan ON network_device.hardware_entity_id = observed_vlan.network_device_id JOIN port_group ON observed_vlan.port_group_id = port_group.id JOIN vlan_info ON port_group.usage = vlan_info.vlan_type AND port_group.network_tag = vlan_info.vlan_id WHERE (model.model_type = 'virtual_machine' OR model.model_type = 'virtual_appliance') AND vlan_info.port_group = interface.port_group_name FOR UPDATE OF interface.port_group_name, interface.port_group_id; vm_iface_rec vm_iface_curs%ROWTYPE; BEGIN FOR vm_iface_rec IN vm_iface_curs LOOP UPDATE interface SET port_group_name = NULL, port_group_id = vm_iface_rec.pg_id WHERE CURRENT OF vm_iface_curs; END LOOP; END; / COMMIT; QUIT;
quattor/aquilon
upgrade/1.11.32/port_group.sql
SQL
apache-2.0
3,619
/* $Id$ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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.etch.util.core.io; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import org.apache.etch.util.FlexBuffer; import org.apache.etch.util.core.Who; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; /** Test UdpConnection. */ public class TestUdpConnection { /** @throws Exception */ @Before @Ignore public void init() throws Exception { aph = new MyPacketHandler(); ac = new UdpConnection( "udp://localhost:4011" ); ac.setSession( aph ); ac.start(); ac.waitUp( 4000 ); System.out.println( "ac up" ); bph = new MyPacketHandler(); bc = new UdpConnection( "udp://localhost:4010" ); bc.setSession( bph ); bc.start(); bc.waitUp( 4000 ); System.out.println( "bc up" ); } /** @throws Exception */ @After @Ignore public void fini() throws Exception { ac.close( false ); bc.close( false ); } private MyPacketHandler aph; private UdpConnection ac; private MyPacketHandler bph; private UdpConnection bc; /** @throws Exception */ @Test @Ignore public void blah() throws Exception { assertEquals( What.UP, aph.what ); assertEquals( What.UP, bph.what ); FlexBuffer buf = new FlexBuffer(); buf.put( 1 ); buf.put( 2 ); buf.put( 3 ); buf.put( 4 ); buf.put( 5 ); buf.setIndex( 0 ); ac.transportPacket( null, buf ); Thread.sleep( 500 ); assertEquals( What.PACKET, bph.what ); assertNotNull( bph.xsender ); assertNotSame( buf, bph.xbuf ); assertEquals( 0, bph.xbuf.index() ); assertEquals( 5, bph.xbuf.length() ); assertEquals( 1, bph.xbuf.get() ); assertEquals( 2, bph.xbuf.get() ); assertEquals( 3, bph.xbuf.get() ); assertEquals( 4, bph.xbuf.get() ); assertEquals( 5, bph.xbuf.get() ); } /** */ public enum What { /** */ UP, /** */ PACKET, /** */ DOWN } /** * receive packets from the udp connection */ public static class MyPacketHandler implements SessionPacket { /** */ public What what; /** */ public Who xsender; /** */ public FlexBuffer xbuf; public void sessionPacket( Who sender, FlexBuffer buf ) throws Exception { assertEquals( What.UP, what ); what = What.PACKET; xsender = sender; xbuf = buf; } public void sessionControl( Object control, Object value ) { // ignore. } public void sessionNotify( Object event ) { if (event.equals( Session.UP )) { assertNull( what ); what = What.UP; return; } if (event.equals( Session.DOWN )) { assertTrue( what == What.UP || what == What.PACKET ); what = What.DOWN; return; } } public Object sessionQuery( Object query ) { // ignore. return null; } } }
OBIGOGIT/etch
util/src/test/java/org/apache/etch/util/core/io/TestUdpConnection.java
Java
apache-2.0
3,671
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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.polygene.library.sql.generator.implementation.grammar.builders.query; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Objects; import org.apache.polygene.library.sql.generator.grammar.builders.query.OrderByBuilder; import org.apache.polygene.library.sql.generator.grammar.query.OrderByClause; import org.apache.polygene.library.sql.generator.grammar.query.SortSpecification; import org.apache.polygene.library.sql.generator.implementation.grammar.common.SQLBuilderBase; import org.apache.polygene.library.sql.generator.implementation.grammar.query.OrderByClauseImpl; import org.apache.polygene.library.sql.generator.implementation.transformation.spi.SQLProcessorAggregator; /** * @author Stanislav Muhametsin */ public class OrderByBuilderImpl extends SQLBuilderBase implements OrderByBuilder { private final List<SortSpecification> _sortSpecs; public OrderByBuilderImpl( SQLProcessorAggregator processor ) { super( processor ); this._sortSpecs = new ArrayList<SortSpecification>(); } public OrderByBuilder addSortSpecs( SortSpecification... specs ) { for( SortSpecification spec : specs ) { Objects.requireNonNull( spec, "specification" ); } this._sortSpecs.addAll( Arrays.asList( specs ) ); return this; } public List<SortSpecification> getSortSpecs() { return Collections.unmodifiableList( this._sortSpecs ); } public OrderByClause createExpression() { return new OrderByClauseImpl( this.getProcessor(), this._sortSpecs ); } }
apache/zest-qi4j
libraries/sql-generator/src/main/java/org/apache/polygene/library/sql/generator/implementation/grammar/builders/query/OrderByBuilderImpl.java
Java
apache-2.0
2,500
// Code generated by protoc-gen-go. DO NOT EDIT. // source: micro/go-plugins/registry/gossip/proto/gossip.proto package gossip import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Update is the message broadcast type Update struct { // time to live for entry Expires uint64 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` // type of update Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` // what action is taken Action int32 `protobuf:"varint,3,opt,name=action,proto3" json:"action,omitempty"` // any other associated metadata about the data Metadata map[string]string `protobuf:"bytes,6,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // the payload data; Data []byte `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Update) Reset() { *m = Update{} } func (m *Update) String() string { return proto.CompactTextString(m) } func (*Update) ProtoMessage() {} func (*Update) Descriptor() ([]byte, []int) { return fileDescriptor_e81db501087fb3b4, []int{0} } func (m *Update) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Update.Unmarshal(m, b) } func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Update.Marshal(b, m, deterministic) } func (m *Update) XXX_Merge(src proto.Message) { xxx_messageInfo_Update.Merge(m, src) } func (m *Update) XXX_Size() int { return xxx_messageInfo_Update.Size(m) } func (m *Update) XXX_DiscardUnknown() { xxx_messageInfo_Update.DiscardUnknown(m) } var xxx_messageInfo_Update proto.InternalMessageInfo func (m *Update) GetExpires() uint64 { if m != nil { return m.Expires } return 0 } func (m *Update) GetType() int32 { if m != nil { return m.Type } return 0 } func (m *Update) GetAction() int32 { if m != nil { return m.Action } return 0 } func (m *Update) GetMetadata() map[string]string { if m != nil { return m.Metadata } return nil } func (m *Update) GetData() []byte { if m != nil { return m.Data } return nil } func init() { proto.RegisterType((*Update)(nil), "gossip.Update") proto.RegisterMapType((map[string]string)(nil), "gossip.Update.MetadataEntry") } func init() { proto.RegisterFile("micro/go-plugins/registry/gossip/proto/gossip.proto", fileDescriptor_e81db501087fb3b4) } var fileDescriptor_e81db501087fb3b4 = []byte{ // 223 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x41, 0x4b, 0x03, 0x31, 0x10, 0x85, 0x49, 0xb7, 0x4d, 0xed, 0xa8, 0x20, 0x83, 0x48, 0x10, 0x0f, 0x8b, 0xa7, 0xbd, 0xb8, 0x01, 0x7b, 0x29, 0x7a, 0xf6, 0xe8, 0x25, 0xe0, 0x0f, 0x88, 0x6d, 0x08, 0xc1, 0x76, 0x13, 0x92, 0xa9, 0x98, 0x9f, 0xea, 0xbf, 0x91, 0x26, 0x51, 0xf0, 0xf6, 0xbe, 0x99, 0x37, 0xbc, 0x37, 0xb0, 0x3e, 0xb8, 0x6d, 0xf4, 0xd2, 0xfa, 0x87, 0xb0, 0x3f, 0x5a, 0x37, 0x25, 0x19, 0x8d, 0x75, 0x89, 0x62, 0x96, 0xd6, 0xa7, 0xe4, 0x82, 0x0c, 0xd1, 0x93, 0x6f, 0x30, 0x16, 0x40, 0x5e, 0xe9, 0xfe, 0x9b, 0x01, 0x7f, 0x0b, 0x3b, 0x4d, 0x06, 0x05, 0x2c, 0xcd, 0x57, 0x70, 0xd1, 0x24, 0xc1, 0x7a, 0x36, 0xcc, 0xd5, 0x2f, 0x22, 0xc2, 0x9c, 0x72, 0x30, 0x62, 0xd6, 0xb3, 0x61, 0xa1, 0x8a, 0xc6, 0x1b, 0xe0, 0x7a, 0x4b, 0xce, 0x4f, 0xa2, 0x2b, 0xd3, 0x46, 0xb8, 0x81, 0xb3, 0x83, 0x21, 0xbd, 0xd3, 0xa4, 0x05, 0xef, 0xbb, 0xe1, 0xfc, 0xf1, 0x6e, 0x6c, 0xc9, 0x35, 0x67, 0x7c, 0x6d, 0xeb, 0x97, 0x89, 0x62, 0x56, 0x7f, 0xee, 0x53, 0x4a, 0xb9, 0x5a, 0xf6, 0x6c, 0xb8, 0x50, 0x45, 0xdf, 0x3e, 0xc3, 0xe5, 0x3f, 0x3b, 0x5e, 0x41, 0xf7, 0x61, 0x72, 0x29, 0xb8, 0x52, 0x27, 0x89, 0xd7, 0xb0, 0xf8, 0xd4, 0xfb, 0x63, 0x6d, 0xb7, 0x52, 0x15, 0x9e, 0x66, 0x1b, 0xf6, 0xce, 0xcb, 0xab, 0xeb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xfb, 0xd3, 0xd6, 0x21, 0x01, 0x00, 0x00, }
micro/go-plugins
registry/gossip/proto/gossip.pb.go
GO
apache-2.0
4,480
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You 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.geode.management.internal.cli; import java.lang.annotation.Annotation; import java.lang.reflect.Method; import java.util.Collections; import java.util.HashMap; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.springframework.shell.core.annotation.CliCommand; import org.springframework.shell.core.annotation.CliOption; import org.springframework.shell.event.ParseResult; import org.apache.geode.management.cli.CliMetaData; import org.apache.geode.management.internal.cli.shell.GfshExecutionStrategy; import org.apache.geode.management.internal.cli.shell.OperationInvoker; /** * Immutable representation of the outcome of parsing a given shell line. * Extends * {@link ParseResult} to add a field to specify the command string that was input by the user. * * <p> * Some commands are required to be executed on a remote GemFire managing member. These should be * marked with the annotation {@link CliMetaData#shellOnly()} set to <code>false</code>. * {@link GfshExecutionStrategy} will detect whether the command is a remote command and send it to * ManagementMBean via {@link OperationInvoker}. * * * @since GemFire 7.0 */ public class GfshParseResult extends ParseResult { private String userInput; private String commandName; private Map<String, String> paramValueStringMap = new HashMap<>(); /** * Creates a GfshParseResult instance to represent parsing outcome. * * @param method Method associated with the command * @param instance Instance on which this method has to be executed * @param arguments arguments of the method * @param userInput user specified commands string */ protected GfshParseResult(final Method method, final Object instance, final Object[] arguments, final String userInput) { super(method, instance, arguments); this.userInput = userInput.trim(); CliCommand cliCommand = method.getAnnotation(CliCommand.class); commandName = cliCommand.value()[0]; Annotation[][] parameterAnnotations = method.getParameterAnnotations(); if (arguments == null) { return; } for (int i = 0; i < arguments.length; i++) { Object argument = arguments[i]; if (argument == null) { continue; } CliOption cliOption = getCliOption(parameterAnnotations, i); String argumentAsString; if (argument instanceof Object[]) { argumentAsString = StringUtils.join((Object[]) argument, ","); } else { argumentAsString = argument.toString(); } // this maps are used for easy access of option values in String form. // It's used in tests and validation of option values in pre-execution paramValueStringMap.put(cliOption.key()[0], argumentAsString); } } /** * @return the userInput */ public String getUserInput() { return userInput; } /** * Used only in tests and command pre-execution for validating arguments */ public String getParamValue(String param) { return paramValueStringMap.get(param); } /** * Used only in tests and command pre-execution for validating arguments * * @return the unmodifiable paramValueStringMap */ public Map<String, String> getParamValueStrings() { return Collections.unmodifiableMap(paramValueStringMap); } public String getCommandName() { return commandName; } private CliOption getCliOption(Annotation[][] parameterAnnotations, int index) { Annotation[] annotations = parameterAnnotations[index]; for (Annotation annotation : annotations) { if (annotation instanceof CliOption) { return (CliOption) annotation; } } return null; } }
pivotal-amurmann/geode
geode-core/src/main/java/org/apache/geode/management/internal/cli/GfshParseResult.java
Java
apache-2.0
4,495
/* * Autopsy Forensic Browser * * Copyright 2011-2015 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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.sleuthkit.autopsy.corecomponents; import java.awt.Insets; import java.io.File; import java.util.Collection; import java.util.Map; import java.util.TreeMap; import java.util.logging.Level; import javax.swing.BorderFactory; import javax.swing.UIManager; import javax.swing.UIManager.LookAndFeelInfo; import javax.swing.UnsupportedLookAndFeelException; import org.netbeans.spi.sendopts.OptionProcessor; import org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI; import org.openide.modules.ModuleInstall; import org.openide.util.Lookup; import org.openide.windows.WindowManager; import org.sleuthkit.autopsy.casemodule.Case; import org.sleuthkit.autopsy.casemodule.CaseActionException; import org.sleuthkit.autopsy.casemodule.OpenFromArguments; import org.sleuthkit.autopsy.coreutils.Logger; /** * Manages this module's life cycle. Opens the startup dialog during startup. */ public class Installer extends ModuleInstall { private static Installer instance; private static final Logger logger = Logger.getLogger(Installer.class.getName()); public synchronized static Installer getDefault() { if (instance == null) { instance = new Installer(); } return instance; } private Installer() { super(); } @Override public void restored() { super.restored(); setupLAF(); UIManager.put("ViewTabDisplayerUI", "org.sleuthkit.autopsy.corecomponents.NoTabsTabDisplayerUI"); UIManager.put(DefaultTabbedContainerUI.KEY_VIEW_CONTENT_BORDER, BorderFactory.createEmptyBorder()); UIManager.put("TabbedPane.contentBorderInsets", new Insets(0, 0, 0, 0)); /* * Open the passed in case, if an aut file was double clicked. */ WindowManager.getDefault().invokeWhenUIReady(() -> { Collection<? extends OptionProcessor> processors = Lookup.getDefault().lookupAll(OptionProcessor.class); for (OptionProcessor processor : processors) { if (processor instanceof OpenFromArguments) { OpenFromArguments argsProcessor = (OpenFromArguments) processor; final String caseFile = argsProcessor.getDefaultArg(); if (caseFile != null && !caseFile.equals("") && caseFile.endsWith(".aut") && new File(caseFile).exists()) { //NON-NLS new Thread(() -> { // Create case. try { Case.open(caseFile); } catch (Exception ex) { logger.log(Level.SEVERE, "Error opening case: ", ex); //NON-NLS } }).start(); return; } } } Case.invokeStartupDialog(); // bring up the startup dialog }); } @Override public void uninstalled() { super.uninstalled(); } @Override public void close() { new Thread(() -> { try { if (Case.isCaseOpen()) { Case.getCurrentCase().closeCase(); } } catch (CaseActionException | IllegalStateException unused) { // Exception already logged. Shutting down, no need to do popup. } }).start(); } private void setupLAF() { //TODO apply custom skinning //UIManager.put("nimbusBase", new Color()); //UIManager.put("nimbusBlueGrey", new Color()); //UIManager.put("control", new Color()); if (System.getProperty("os.name").toLowerCase().contains("mac")) { //NON-NLS setupMacOsXLAF(); } } /** * Set the look and feel to be the Cross Platform 'Metal', but keep Aqua * dependent elements that set the Menu Bar to be in the correct place on * Mac OS X. */ private void setupMacOsXLAF() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { logger.log(Level.WARNING, "Unable to set theme. ", ex); //NON-NLS } final String[] UI_MENU_ITEM_KEYS = new String[]{"MenuBarUI", //NON-NLS }; Map<Object, Object> uiEntries = new TreeMap<>(); // Store the keys that deal with menu items for (String key : UI_MENU_ITEM_KEYS) { uiEntries.put(key, UIManager.get(key)); } //use Metal if available for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { //NON-NLS try { UIManager.setLookAndFeel(info.getClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { logger.log(Level.WARNING, "Unable to set theme. ", ex); //NON-NLS } break; } } // Overwrite the Metal menu item keys to use the Aqua versions uiEntries.entrySet().stream().forEach((entry) -> { UIManager.put(entry.getKey(), entry.getValue()); }); } }
mhmdfy/autopsy
Core/src/org/sleuthkit/autopsy/corecomponents/Installer.java
Java
apache-2.0
6,087
#!/usr/bin/env python # # Copyright 2015-2021 Flavio Garcia # # 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. from firenado.util.sqlalchemy_util import Base, base_to_dict from sqlalchemy import Column, String from sqlalchemy.types import Integer, DateTime from sqlalchemy.sql import text import unittest class TestBase(Base): __tablename__ = "test" id = Column("id", Integer, primary_key=True) username = Column("username", String(150), nullable=False) first_name = Column("first_name", String(150), nullable=False) last_name = Column("last_name", String(150), nullable=False) password = Column("password", String(150), nullable=False) email = Column("email", String(150), nullable=False) created = Column("created", DateTime, nullable=False, server_default=text("now()")) modified = Column("modified", DateTime, nullable=False, server_default=text("now()")) class BaseToDictTestCase(unittest.TestCase): def setUp(self): self.test_object = TestBase() self.test_object.id = 1 self.test_object.username = "anusername" self.test_object.password = "apassword" self.test_object.first_name = "Test" self.test_object.last_name = "Object" self.test_object.email = "test@example.com" def test_base_to_dict(self): dict_from_base = base_to_dict(self.test_object) self.assertEqual(dict_from_base['id'], self.test_object.id) self.assertEqual(dict_from_base['username'], self.test_object.username) self.assertEqual(dict_from_base['password'], self.test_object.password) self.assertEqual(dict_from_base['first_name'], self.test_object.first_name) self.assertEqual(dict_from_base['last_name'], self.test_object.last_name) self.assertEqual(dict_from_base['email'], self.test_object.email) self.assertEqual(dict_from_base['created'], self.test_object.created) self.assertEqual(dict_from_base['modified'], self.test_object.modified) def test_base_to_dict(self): dict_from_base = base_to_dict(self.test_object, ["id", "username", "first_name"]) self.assertEqual(dict_from_base['id'], self.test_object.id) self.assertEqual(dict_from_base['username'], self.test_object.username) self.assertEqual(dict_from_base['first_name'], self.test_object.first_name) self.assertTrue("password" not in dict_from_base) self.assertTrue("last_name" not in dict_from_base) self.assertTrue("email" not in dict_from_base) self.assertTrue("created" not in dict_from_base) self.assertTrue("modified" not in dict_from_base)
piraz/firenado
tests/util/sqlalchemy_util_test.py
Python
apache-2.0
3,289
# 如何在本地运行RTK定位模块 本文档提供了如何在本地运行RTK定位模块的方法。 ## 1. 事先准备 - 从[GitHub网站](https://github.com/ApolloAuto/apollo)下载Apollo源代码 - 按照[教程](../quickstart/apollo_software_installation_guide.md)设置Docker环境 - 从[Apollo数据平台](http://data.apollo.auto/?name=sensor%20data&data_key=multisensor&data_type=1&locale=en-us&lang=en)下载多传感器融合定位demo数据包(仅限美国地区),使用其中*apollo3.5*文件夹下的数据。 ## 2. 编译apollo工程 ### 2.1 启动并进入Apollo开发版Docker容器 ``` bash docker/scripts/dev_start.sh bash docker/scripts/dev_into.sh ``` ### 2.2 编译工程 ``` # (Optional) To make sure you start clean bash apollo.sh clean -a bash apollo.sh build_opt ``` ## 3. 运行RTK模式定位 ``` cyber_launch start /apollo/modules/localization/launch/rtk_localization.launch ``` 在/apollo/data/log目录下,可以看到定位模块输出的相关log文件。 - localization.INFO : INFO级别的log信息 - localization.WARNING : WARNING级别的log信息 - localization.ERROR : ERROR级别的log信息 - localization.out : 标准输出重定向文件 - localizaiton.flags : 启动localization模块使用的配置 ## 4. 播放record文件 在下载好的定位demo数据中,找到一个名为"apollo3.5"的文件夹,假设该文件夹所在路径为DATA_PATH。 ``` cd DATA_PATH/records cyber_recorder play -f record.* ``` ## 6. 可视化定位结果(可选) ### 可视化定位结果 运行可视化工具 ``` cyber_launch start /apollo/modules/localization/launch/msf_visualizer.launch ``` 该可视化工具首先根据定位地图生成用于可视化的缓存文件,存放在/apollo/cyber/data/map_visual目录下。 然后接收以下topic并进行可视化绘制。 - /apollo/sensor/lidar128/compensator/PointCloud2 - /apollo/localization/pose 可视化效果如下 ![1](images/rtk_localization/online_visualizer.png)
xiaoxq/apollo
docs/howto/how_to_run_RTK_localization_module_on_your_local_computer_cn.md
Markdown
apache-2.0
2,005
package String::CRC32; require Exporter; require DynaLoader; @ISA = qw(Exporter DynaLoader); $VERSION = 1.5; # Items to export into callers namespace by default @EXPORT = qw(crc32); # Other items we are prepared to export if requested @EXPORT_OK = qw(); bootstrap String::CRC32; 1;
rwhitworth/precompiled-perl-mods
old/cygwin-per5.14/lib/String/CRC32.pm
Perl
artistic-2.0
290
/* * Package : org.ludo.codegenerator.core.gen.bean * Source : IStereotype.java */ package org.ludo.codegenerator.core.gen.bean; import java.io.Serializable; import java.util.Date; import java.util.ArrayList; import java.util.List; import org.ludo.codegenerator.core.gen.bean.impl.AttributBean; import org.ludo.codegenerator.core.gen.bean.impl.ClasseBean; import org.ludo.codegenerator.core.gen.bean.abst.IStereotypeAbstract; /** * <b>Description :</b> * IStereotype * */ public interface IStereotype extends IStereotypeAbstract, Serializable { }
ludo1026/tuto
generator-uml-to-config-xml/save/_3/src/org/ludo/codegenerator/core/gen/bean/IStereotype.java
Java
artistic-2.0
562
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_147-icedtea) on Tue Mar 27 20:06:55 PDT 2012 --> <title>Uses of Class Img</title> <meta name="date" content="2012-03-27"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class Img"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../Img.html" title="class in &lt;Unnamed&gt;">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li><a href="../index-files/index-1.html">Index</a></li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../index.html?class-useImg.html" target="_top">Frames</a></li> <li><a href="Img.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class Img" class="title">Uses of Class<br>Img</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href>&amp;lt;Unnamed&amp;gt;</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name> <!-- --> </a> <h3>Uses of <a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a> in <a href="../package-summary.html">&lt;Unnamed&gt;</a></h3> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation"> <caption><span>Fields in <a href="../package-summary.html">&lt;Unnamed&gt;</a> with type parameters of type <a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>private java.util.HashMap&lt;java.lang.Character,<a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a>&gt;</code></td> <td class="colLast"><span class="strong">ImageSet.</span><code><strong><a href="../ImageSet.html#image_set">image_set</a></strong></code> <div class="block">set of id character to SWT.Image mappings for game map images</div> </td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../package-summary.html">&lt;Unnamed&gt;</a> that return types with arguments of type <a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>java.util.HashMap&lt;java.lang.Character,<a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a>&gt;</code></td> <td class="colLast"><span class="strong">ImageSet.</span><code><strong><a href="../ImageSet.html#getImage_set()">getImage_set</a></strong>()</code>&nbsp;</td> </tr> </tbody> </table> <table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Method parameters in <a href="../package-summary.html">&lt;Unnamed&gt;</a> with type arguments of type <a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="strong">ImageSet.</span><code><strong><a href="../ImageSet.html#setImage_set(java.util.HashMap)">setImage_set</a></strong>(java.util.HashMap&lt;java.lang.Character,<a href="../Img.html" title="class in &lt;Unnamed&gt;">Img</a>&gt;&nbsp;image_set)</code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../Img.html" title="class in &lt;Unnamed&gt;">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li><a href="../index-files/index-1.html">Index</a></li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../index.html?class-useImg.html" target="_top">Frames</a></li> <li><a href="Img.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
cebericus/DemoTown
doc/class-use/Img.html
HTML
artistic-2.0
7,029
/* AngularJS v1.2.10 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(Z,Q,r){'use strict';function F(b){return function(){var a=arguments[0],c,a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.2.10/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)a=a+(1==c?"?":"&")+"p"+(c-1)+"="+encodeURIComponent("function"==typeof arguments[c]?arguments[c].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[c]?"undefined":"string"!=typeof arguments[c]?JSON.stringify(arguments[c]):arguments[c]);return Error(a)}}function rb(b){if(null==b||Aa(b))return!1; var a=b.length;return 1===b.nodeType&&a?!0:D(b)||K(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function q(b,a,c){var d;if(b)if(L(b))for(d in b)"prototype"==d||("length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d))||a.call(c,b[d],d);else if(b.forEach&&b.forEach!==q)b.forEach(a,c);else if(rb(b))for(d=0;d<b.length;d++)a.call(c,b[d],d);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d);return b}function Pb(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a.sort()}function Pc(b, a,c){for(var d=Pb(b),e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}function Qb(b){return function(a,c){b(c,a)}}function $a(){for(var b=ka.length,a;b;){b--;a=ka[b].charCodeAt(0);if(57==a)return ka[b]="A",ka.join("");if(90==a)ka[b]="0";else return ka[b]=String.fromCharCode(a+1),ka.join("")}ka.unshift("0");return ka.join("")}function Rb(b,a){a?b.$$hashKey=a:delete b.$$hashKey}function t(b){var a=b.$$hashKey;q(arguments,function(a){a!==b&&q(a,function(a,c){b[c]=a})});Rb(b,a);return b}function S(b){return parseInt(b, 10)}function Sb(b,a){return t(new (t(function(){},{prototype:b})),a)}function w(){}function Ba(b){return b}function $(b){return function(){return b}}function z(b){return"undefined"===typeof b}function B(b){return"undefined"!==typeof b}function X(b){return null!=b&&"object"===typeof b}function D(b){return"string"===typeof b}function sb(b){return"number"===typeof b}function La(b){return"[object Date]"===Ma.call(b)}function K(b){return"[object Array]"===Ma.call(b)}function L(b){return"function"===typeof b} function ab(b){return"[object RegExp]"===Ma.call(b)}function Aa(b){return b&&b.document&&b.location&&b.alert&&b.setInterval}function Qc(b){return!(!b||!(b.nodeName||b.on&&b.find))}function Rc(b,a,c){var d=[];q(b,function(b,g,f){d.push(a.call(c,b,g,f))});return d}function bb(b,a){if(b.indexOf)return b.indexOf(a);for(var c=0;c<b.length;c++)if(a===b[c])return c;return-1}function Na(b,a){var c=bb(b,a);0<=c&&b.splice(c,1);return a}function aa(b,a){if(Aa(b)||b&&b.$evalAsync&&b.$watch)throw Oa("cpws");if(a){if(b=== a)throw Oa("cpi");if(K(b))for(var c=a.length=0;c<b.length;c++)a.push(aa(b[c]));else{c=a.$$hashKey;q(a,function(b,c){delete a[c]});for(var d in b)a[d]=aa(b[d]);Rb(a,c)}}else(a=b)&&(K(b)?a=aa(b,[]):La(b)?a=new Date(b.getTime()):ab(b)?a=RegExp(b.source):X(b)&&(a=aa(b,{})));return a}function Tb(b,a){a=a||{};for(var c in b)b.hasOwnProperty(c)&&("$"!==c.charAt(0)&&"$"!==c.charAt(1))&&(a[c]=b[c]);return a}function ua(b,a){if(b===a)return!0;if(null===b||null===a)return!1;if(b!==b&&a!==a)return!0;var c=typeof b, d;if(c==typeof a&&"object"==c)if(K(b)){if(!K(a))return!1;if((c=b.length)==a.length){for(d=0;d<c;d++)if(!ua(b[d],a[d]))return!1;return!0}}else{if(La(b))return La(a)&&b.getTime()==a.getTime();if(ab(b)&&ab(a))return b.toString()==a.toString();if(b&&b.$evalAsync&&b.$watch||a&&a.$evalAsync&&a.$watch||Aa(b)||Aa(a)||K(a))return!1;c={};for(d in b)if("$"!==d.charAt(0)&&!L(b[d])){if(!ua(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c.hasOwnProperty(d)&&"$"!==d.charAt(0)&&a[d]!==r&&!L(a[d]))return!1;return!0}return!1} function Ub(){return Q.securityPolicy&&Q.securityPolicy.isActive||Q.querySelector&&!(!Q.querySelector("[ng-csp]")&&!Q.querySelector("[data-ng-csp]"))}function cb(b,a){var c=2<arguments.length?va.call(arguments,2):[];return!L(a)||a instanceof RegExp?a:c.length?function(){return arguments.length?a.apply(b,c.concat(va.call(arguments,0))):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}}function Sc(b,a){var c=a;"string"===typeof b&&"$"===b.charAt(0)?c=r:Aa(a)?c="$WINDOW": a&&Q===a?c="$DOCUMENT":a&&(a.$evalAsync&&a.$watch)&&(c="$SCOPE");return c}function qa(b,a){return"undefined"===typeof b?r:JSON.stringify(b,Sc,a?" ":null)}function Vb(b){return D(b)?JSON.parse(b):b}function Pa(b){"function"===typeof b?b=!0:b&&0!==b.length?(b=x(""+b),b=!("f"==b||"0"==b||"false"==b||"no"==b||"n"==b||"[]"==b)):b=!1;return b}function ga(b){b=A(b).clone();try{b.empty()}catch(a){}var c=A("<div>").append(b).html();try{return 3===b[0].nodeType?x(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/, function(a,b){return"<"+x(b)})}catch(d){return x(c)}}function Wb(b){try{return decodeURIComponent(b)}catch(a){}}function Xb(b){var a={},c,d;q((b||"").split("&"),function(b){b&&(c=b.split("="),d=Wb(c[0]),B(d)&&(b=B(c[1])?Wb(c[1]):!0,a[d]?K(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Yb(b){var a=[];q(b,function(b,d){K(b)?q(b,function(b){a.push(wa(d,!0)+(!0===b?"":"="+wa(b,!0)))}):a.push(wa(d,!0)+(!0===b?"":"="+wa(b,!0)))});return a.length?a.join("&"):""}function tb(b){return wa(b, !0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function wa(b,a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,a?"%20":"+")}function Tc(b,a){function c(a){a&&d.push(a)}var d=[b],e,g,f=["ng:app","ng-app","x-ng-app","data-ng-app"],h=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;q(f,function(a){f[a]=!0;c(Q.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(q(b.querySelectorAll("."+a),c),q(b.querySelectorAll("."+ a+"\\:"),c),q(b.querySelectorAll("["+a+"]"),c))});q(d,function(a){if(!e){var b=h.exec(" "+a.className+" ");b?(e=a,g=(b[2]||"").replace(/\s+/g,",")):q(a.attributes,function(b){!e&&f[b.name]&&(e=a,g=b.value)})}});e&&a(e,g?[g]:[])}function Zb(b,a){var c=function(){b=A(b);if(b.injector()){var c=b[0]===Q?"document":ga(b);throw Oa("btstrpd",c);}a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);a.unshift("ng");c=$b(a);c.invoke(["$rootScope","$rootElement","$compile","$injector","$animate", function(a,b,c,d,e){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return c},d=/^NG_DEFER_BOOTSTRAP!/;if(Z&&!d.test(Z.name))return c();Z.name=Z.name.replace(d,"");Ca.resumeBootstrap=function(b){q(b,function(b){a.push(b)});c()}}function db(b,a){a=a||"_";return b.replace(Uc,function(b,d){return(d?a:"")+b.toLowerCase()})}function ub(b,a,c){if(!b)throw Oa("areq",a||"?",c||"required");return b}function Qa(b,a,c){c&&K(b)&&(b=b[b.length-1]);ub(L(b),a,"not a function, got "+(b&&"object"==typeof b? b.constructor.name||"Object":typeof b));return b}function xa(b,a){if("hasOwnProperty"===b)throw Oa("badname",a);}function vb(b,a,c){if(!a)return b;a=a.split(".");for(var d,e=b,g=a.length,f=0;f<g;f++)d=a[f],b&&(b=(e=b)[d]);return!c&&L(b)?cb(e,b):b}function wb(b){var a=b[0];b=b[b.length-1];if(a===b)return A(a);var c=[a];do{a=a.nextSibling;if(!a)break;c.push(a)}while(a!==b);return A(c)}function Vc(b){var a=F("$injector"),c=F("ng");b=b.angular||(b.angular={});b.$$minErr=b.$$minErr||F;return b.module|| (b.module=function(){var b={};return function(e,g,f){if("hasOwnProperty"===e)throw c("badname","module");g&&b.hasOwnProperty(e)&&(b[e]=null);return b[e]||(b[e]=function(){function b(a,d,e){return function(){c[e||"push"]([a,d,arguments]);return n}}if(!g)throw a("nomod",e);var c=[],d=[],l=b("$injector","invoke"),n={_invokeQueue:c,_runBlocks:d,requires:g,name:e,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:b("$provide","value"),constant:b("$provide", "constant","unshift"),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),config:l,run:function(a){d.push(a);return this}};f&&l(f);return n}())}}())}function Ra(b){return b.replace(Wc,function(a,b,d,e){return e?d.toUpperCase():d}).replace(Xc,"Moz$1")}function xb(b,a,c,d){function e(b){var e=c&&b?[this.filter(b)]:[this],m=a,k,l,n,p,s,C;if(!d||null!=b)for(;e.length;)for(k=e.shift(), l=0,n=k.length;l<n;l++)for(p=A(k[l]),m?p.triggerHandler("$destroy"):m=!m,s=0,p=(C=p.children()).length;s<p;s++)e.push(Da(C[s]));return g.apply(this,arguments)}var g=Da.fn[b],g=g.$original||g;e.$original=g;Da.fn[b]=e}function O(b){if(b instanceof O)return b;if(!(this instanceof O)){if(D(b)&&"<"!=b.charAt(0))throw yb("nosel");return new O(b)}if(D(b)){var a=Q.createElement("div");a.innerHTML="<div>&#160;</div>"+b;a.removeChild(a.firstChild);zb(this,a.childNodes);A(Q.createDocumentFragment()).append(this)}else zb(this, b)}function Ab(b){return b.cloneNode(!0)}function Ea(b){ac(b);var a=0;for(b=b.childNodes||[];a<b.length;a++)Ea(b[a])}function bc(b,a,c,d){if(B(d))throw yb("offargs");var e=la(b,"events");la(b,"handle")&&(z(a)?q(e,function(a,c){Bb(b,c,a);delete e[c]}):q(a.split(" "),function(a){z(c)?(Bb(b,a,e[a]),delete e[a]):Na(e[a]||[],c)}))}function ac(b,a){var c=b[eb],d=Sa[c];d&&(a?delete Sa[c].data[a]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),bc(b)),delete Sa[c],b[eb]=r))}function la(b,a,c){var d= b[eb],d=Sa[d||-1];if(B(c))d||(b[eb]=d=++Yc,d=Sa[d]={}),d[a]=c;else return d&&d[a]}function cc(b,a,c){var d=la(b,"data"),e=B(c),g=!e&&B(a),f=g&&!X(a);d||f||la(b,"data",d={});if(e)d[a]=c;else if(g){if(f)return d&&d[a];t(d,a)}else return d}function Cb(b,a){return b.getAttribute?-1<(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" "):!1}function Db(b,a){a&&b.setAttribute&&q(a.split(" "),function(a){b.setAttribute("class",ba((" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g, " ").replace(" "+ba(a)+" "," ")))})}function Eb(b,a){if(a&&b.setAttribute){var c=(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");q(a.split(" "),function(a){a=ba(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});b.setAttribute("class",ba(c))}}function zb(b,a){if(a){a=a.nodeName||!B(a.length)||Aa(a)?[a]:a;for(var c=0;c<a.length;c++)b.push(a[c])}}function dc(b,a){return fb(b,"$"+(a||"ngController")+"Controller")}function fb(b,a,c){b=A(b);9==b[0].nodeType&&(b=b.find("html"));for(a=K(a)?a:[a];b.length;){for(var d= 0,e=a.length;d<e;d++)if((c=b.data(a[d]))!==r)return c;b=b.parent()}}function ec(b){for(var a=0,c=b.childNodes;a<c.length;a++)Ea(c[a]);for(;b.firstChild;)b.removeChild(b.firstChild)}function fc(b,a){var c=gb[a.toLowerCase()];return c&&gc[b.nodeName]&&c}function Zc(b,a){var c=function(c,e){c.preventDefault||(c.preventDefault=function(){c.returnValue=!1});c.stopPropagation||(c.stopPropagation=function(){c.cancelBubble=!0});c.target||(c.target=c.srcElement||Q);if(z(c.defaultPrevented)){var g=c.preventDefault; c.preventDefault=function(){c.defaultPrevented=!0;g.call(c)};c.defaultPrevented=!1}c.isDefaultPrevented=function(){return c.defaultPrevented||!1===c.returnValue};var f=Tb(a[e||c.type]||[]);q(f,function(a){a.call(b,c)});8>=M?(c.preventDefault=null,c.stopPropagation=null,c.isDefaultPrevented=null):(delete c.preventDefault,delete c.stopPropagation,delete c.isDefaultPrevented)};c.elem=b;return c}function Fa(b){var a=typeof b,c;"object"==a&&null!==b?"function"==typeof(c=b.$$hashKey)?c=b.$$hashKey():c=== r&&(c=b.$$hashKey=$a()):c=b;return a+":"+c}function Ta(b){q(b,this.put,this)}function hc(b){var a,c;"function"==typeof b?(a=b.$inject)||(a=[],b.length&&(c=b.toString().replace($c,""),c=c.match(ad),q(c[1].split(bd),function(b){b.replace(cd,function(b,c,d){a.push(d)})})),b.$inject=a):K(b)?(c=b.length-1,Qa(b[c],"fn"),a=b.slice(0,c)):Qa(b,"fn",!0);return a}function $b(b){function a(a){return function(b,c){if(X(b))q(b,Qb(a));else return a(b,c)}}function c(a,b){xa(a,"service");if(L(b)||K(b))b=n.instantiate(b); if(!b.$get)throw Ua("pget",a);return l[a+h]=b}function d(a,b){return c(a,{$get:b})}function e(a){var b=[],c,d,g,h;q(a,function(a){if(!k.get(a)){k.put(a,!0);try{if(D(a))for(c=Va(a),b=b.concat(e(c.requires)).concat(c._runBlocks),d=c._invokeQueue,g=0,h=d.length;g<h;g++){var f=d[g],m=n.get(f[0]);m[f[1]].apply(m,f[2])}else L(a)?b.push(n.invoke(a)):K(a)?b.push(n.invoke(a)):Qa(a,"module")}catch(s){throw K(a)&&(a=a[a.length-1]),s.message&&(s.stack&&-1==s.stack.indexOf(s.message))&&(s=s.message+"\n"+s.stack), Ua("modulerr",a,s.stack||s.message||s);}}});return b}function g(a,b){function c(d){if(a.hasOwnProperty(d)){if(a[d]===f)throw Ua("cdep",m.join(" <- "));return a[d]}try{return m.unshift(d),a[d]=f,a[d]=b(d)}catch(e){throw a[d]===f&&delete a[d],e;}finally{m.shift()}}function d(a,b,e){var g=[],h=hc(a),f,k,m;k=0;for(f=h.length;k<f;k++){m=h[k];if("string"!==typeof m)throw Ua("itkn",m);g.push(e&&e.hasOwnProperty(m)?e[m]:c(m))}a.$inject||(a=a[f]);return a.apply(b,g)}return{invoke:d,instantiate:function(a, b){var c=function(){},e;c.prototype=(K(a)?a[a.length-1]:a).prototype;c=new c;e=d(a,c,b);return X(e)||L(e)?e:c},get:c,annotate:hc,has:function(b){return l.hasOwnProperty(b+h)||a.hasOwnProperty(b)}}}var f={},h="Provider",m=[],k=new Ta,l={$provide:{provider:a(c),factory:a(d),service:a(function(a,b){return d(a,["$injector",function(a){return a.instantiate(b)}])}),value:a(function(a,b){return d(a,$(b))}),constant:a(function(a,b){xa(a,"constant");l[a]=b;p[a]=b}),decorator:function(a,b){var c=n.get(a+h), d=c.$get;c.$get=function(){var a=s.invoke(d,c);return s.invoke(b,null,{$delegate:a})}}}},n=l.$injector=g(l,function(){throw Ua("unpr",m.join(" <- "));}),p={},s=p.$injector=g(p,function(a){a=n.get(a+h);return s.invoke(a.$get,a)});q(e(b),function(a){s.invoke(a||w)});return s}function dd(){var b=!0;this.disableAutoScrolling=function(){b=!1};this.$get=["$window","$location","$rootScope",function(a,c,d){function e(a){var b=null;q(a,function(a){b||"a"!==x(a.nodeName)||(b=a)});return b}function g(){var b= c.hash(),d;b?(d=f.getElementById(b))?d.scrollIntoView():(d=e(f.getElementsByName(b)))?d.scrollIntoView():"top"===b&&a.scrollTo(0,0):a.scrollTo(0,0)}var f=a.document;b&&d.$watch(function(){return c.hash()},function(){d.$evalAsync(g)});return g}]}function ed(b,a,c,d){function e(a){try{a.apply(null,va.call(arguments,1))}finally{if(C--,0===C)for(;y.length;)try{y.pop()()}catch(b){c.error(b)}}}function g(a,b){(function T(){q(E,function(a){a()});u=b(T,a)})()}function f(){v=null;R!=h.url()&&(R=h.url(),q(ha, function(a){a(h.url())}))}var h=this,m=a[0],k=b.location,l=b.history,n=b.setTimeout,p=b.clearTimeout,s={};h.isMock=!1;var C=0,y=[];h.$$completeOutstandingRequest=e;h.$$incOutstandingRequestCount=function(){C++};h.notifyWhenNoOutstandingRequests=function(a){q(E,function(a){a()});0===C?a():y.push(a)};var E=[],u;h.addPollFn=function(a){z(u)&&g(100,n);E.push(a);return a};var R=k.href,H=a.find("base"),v=null;h.url=function(a,c){k!==b.location&&(k=b.location);l!==b.history&&(l=b.history);if(a){if(R!=a)return R= a,d.history?c?l.replaceState(null,"",a):(l.pushState(null,"",a),H.attr("href",H.attr("href"))):(v=a,c?k.replace(a):k.href=a),h}else return v||k.href.replace(/%27/g,"'")};var ha=[],N=!1;h.onUrlChange=function(a){if(!N){if(d.history)A(b).on("popstate",f);if(d.hashchange)A(b).on("hashchange",f);else h.addPollFn(f);N=!0}ha.push(a);return a};h.baseHref=function(){var a=H.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var V={},J="",ca=h.baseHref();h.cookies=function(a,b){var d,e,g,h;if(a)b=== r?m.cookie=escape(a)+"=;path="+ca+";expires=Thu, 01 Jan 1970 00:00:00 GMT":D(b)&&(d=(m.cookie=escape(a)+"="+escape(b)+";path="+ca).length+1,4096<d&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"));else{if(m.cookie!==J)for(J=m.cookie,d=J.split("; "),V={},g=0;g<d.length;g++)e=d[g],h=e.indexOf("="),0<h&&(a=unescape(e.substring(0,h)),V[a]===r&&(V[a]=unescape(e.substring(h+1))));return V}};h.defer=function(a,b){var c;C++;c=n(function(){delete s[c]; e(a)},b||0);s[c]=!0;return c};h.defer.cancel=function(a){return s[a]?(delete s[a],p(a),e(w),!0):!1}}function fd(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new ed(b,d,a,c)}]}function gd(){this.$get=function(){function b(b,d){function e(a){a!=n&&(p?p==a&&(p=a.n):p=a,g(a.n,a.p),g(a,n),n=a,n.n=null)}function g(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(b in a)throw F("$cacheFactory")("iid",b);var f=0,h=t({},d,{id:b}),m={},k=d&&d.capacity||Number.MAX_VALUE,l={},n=null,p=null; return a[b]={put:function(a,b){var c=l[a]||(l[a]={key:a});e(c);if(!z(b))return a in m||f++,m[a]=b,f>k&&this.remove(p.key),b},get:function(a){var b=l[a];if(b)return e(b),m[a]},remove:function(a){var b=l[a];b&&(b==n&&(n=b.p),b==p&&(p=b.n),g(b.n,b.p),delete l[a],delete m[a],f--)},removeAll:function(){m={};f=0;l={};n=p=null},destroy:function(){l=h=m=null;delete a[b]},info:function(){return t({},h,{size:f})}}}var a={};b.info=function(){var b={};q(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]}; return b}}function hd(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function jc(b,a){var c={},d="Directive",e=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,g=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,f=/^(on[a-z]+|formaction)$/;this.directive=function m(a,e){xa(a,"directive");D(a)?(ub(e,"directiveFactory"),c.hasOwnProperty(a)||(c[a]=[],b.factory(a+d,["$injector","$exceptionHandler",function(b,d){var e=[];q(c[a],function(c,g){try{var f=b.invoke(c);L(f)?f={compile:$(f)}:!f.compile&&f.link&&(f.compile= $(f.link));f.priority=f.priority||0;f.index=g;f.name=f.name||a;f.require=f.require||f.controller&&f.name;f.restrict=f.restrict||"A";e.push(f)}catch(m){d(m)}});return e}])),c[a].push(e)):q(a,Qb(m));return this};this.aHrefSanitizationWhitelist=function(b){return B(b)?(a.aHrefSanitizationWhitelist(b),this):a.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(b){return B(b)?(a.imgSrcSanitizationWhitelist(b),this):a.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate", "$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,b,l,n,p,s,C,y,E,u,R,H){function v(a,b,c,d,e){a instanceof A||(a=A(a));q(a,function(b,c){3==b.nodeType&&b.nodeValue.match(/\S+/)&&(a[c]=A(b).wrap("<span></span>").parent()[0])});var g=N(a,b,a,c,d,e);ha(a,"ng-scope");return function(b,c,d){ub(b,"scope");var e=c?Ga.clone.call(a):a;q(d,function(a,b){e.data("$"+b+"Controller",a)});d=0;for(var f=e.length;d<f;d++){var m= e[d].nodeType;1!==m&&9!==m||e.eq(d).data("$scope",b)}c&&c(e,b);g&&g(b,e,e);return e}}function ha(a,b){try{a.addClass(b)}catch(c){}}function N(a,b,c,d,e,g){function f(a,c,d,e){var g,k,s,l,n,p,I;g=c.length;var C=Array(g);for(n=0;n<g;n++)C[n]=c[n];I=n=0;for(p=m.length;n<p;I++)k=C[I],c=m[n++],g=m[n++],s=A(k),c?(c.scope?(l=a.$new(),s.data("$scope",l)):l=a,(s=c.transclude)||!e&&b?c(g,l,k,d,V(a,s||b)):c(g,l,k,d,e)):g&&g(a,k.childNodes,r,e)}for(var m=[],k,s,l,n,p=0;p<a.length;p++)k=new Fb,s=J(a[p],[],k,0=== p?d:r,e),(g=s.length?ia(s,a[p],k,b,c,null,[],[],g):null)&&g.scope&&ha(A(a[p]),"ng-scope"),k=g&&g.terminal||!(l=a[p].childNodes)||!l.length?null:N(l,g?g.transclude:b),m.push(g,k),n=n||g||k,g=null;return n?f:null}function V(a,b){return function(c,d,e){var g=!1;c||(c=a.$new(),g=c.$$transcluded=!0);d=b(c,d,e);if(g)d.on("$destroy",cb(c,c.$destroy));return d}}function J(a,b,c,d,f){var k=c.$attr,m;switch(a.nodeType){case 1:T(b,ma(Ha(a).toLowerCase()),"E",d,f);var s,l,n;m=a.attributes;for(var p=0,C=m&&m.length;p< C;p++){var y=!1,R=!1;s=m[p];if(!M||8<=M||s.specified){l=s.name;n=ma(l);W.test(n)&&(l=db(n.substr(6),"-"));var v=n.replace(/(Start|End)$/,"");n===v+"Start"&&(y=l,R=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6));n=ma(l.toLowerCase());k[n]=l;c[n]=s=ba(s.value);fc(a,n)&&(c[n]=!0);S(a,b,s,n);T(b,n,"A",d,f,y,R)}}a=a.className;if(D(a)&&""!==a)for(;m=g.exec(a);)n=ma(m[2]),T(b,n,"C",d,f)&&(c[n]=ba(m[3])),a=a.substr(m.index+m[0].length);break;case 3:F(b,a.nodeValue);break;case 8:try{if(m=e.exec(a.nodeValue))n= ma(m[1]),T(b,n,"M",d,f)&&(c[n]=ba(m[2]))}catch(E){}}b.sort(z);return b}function ca(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ja("uterdir",b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return A(d)}function P(a,b,c){return function(d,e,g,f,m){e=ca(e[0],b,c);return a(d,e,g,f,m)}}function ia(a,c,d,e,g,f,m,n,p){function y(a,b,c,d){if(a){c&&(a=P(a,c,d));a.require=G.require;if(H===G||G.$$isolateScope)a= kc(a,{isolateScope:!0});m.push(a)}if(b){c&&(b=P(b,c,d));b.require=G.require;if(H===G||G.$$isolateScope)b=kc(b,{isolateScope:!0});n.push(b)}}function R(a,b,c){var d,e="data",g=!1;if(D(a)){for(;"^"==(d=a.charAt(0))||"?"==d;)a=a.substr(1),"^"==d&&(e="inheritedData"),g=g||"?"==d;d=null;c&&"data"===e&&(d=c[a]);d=d||b[e]("$"+a+"Controller");if(!d&&!g)throw ja("ctreq",a,da);}else K(a)&&(d=[],q(a,function(a){d.push(R(a,b,c))}));return d}function E(a,e,g,f,p){function y(a,b){var c;2>arguments.length&&(b=a, a=r);z&&(c=ca);return p(a,b,c)}var I,v,N,u,P,J,ca={},hb;I=c===g?d:Tb(d,new Fb(A(g),d.$attr));v=I.$$element;if(H){var T=/^\s*([@=&])(\??)\s*(\w*)\s*$/;f=A(g);J=e.$new(!0);ia&&ia===H.$$originalDirective?f.data("$isolateScope",J):f.data("$isolateScopeNoTemplate",J);ha(f,"ng-isolate-scope");q(H.scope,function(a,c){var d=a.match(T)||[],g=d[3]||c,f="?"==d[2],d=d[1],m,l,n,p;J.$$isolateBindings[c]=d+g;switch(d){case "@":I.$observe(g,function(a){J[c]=a});I.$$observers[g].$$scope=e;I[g]&&(J[c]=b(I[g])(e)); break;case "=":if(f&&!I[g])break;l=s(I[g]);p=l.literal?ua:function(a,b){return a===b};n=l.assign||function(){m=J[c]=l(e);throw ja("nonassign",I[g],H.name);};m=J[c]=l(e);J.$watch(function(){var a=l(e);p(a,J[c])||(p(a,m)?n(e,a=J[c]):J[c]=a);return m=a},null,l.literal);break;case "&":l=s(I[g]);J[c]=function(a){return l(e,a)};break;default:throw ja("iscp",H.name,c,a);}})}hb=p&&y;V&&q(V,function(a){var b={$scope:a===H||a.$$isolateScope?J:e,$element:v,$attrs:I,$transclude:hb},c;P=a.controller;"@"==P&&(P= I[a.name]);c=C(P,b);ca[a.name]=c;z||v.data("$"+a.name+"Controller",c);a.controllerAs&&(b.$scope[a.controllerAs]=c)});f=0;for(N=m.length;f<N;f++)try{u=m[f],u(u.isolateScope?J:e,v,I,u.require&&R(u.require,v,ca),hb)}catch(G){l(G,ga(v))}f=e;H&&(H.template||null===H.templateUrl)&&(f=J);a&&a(f,g.childNodes,r,p);for(f=n.length-1;0<=f;f--)try{u=n[f],u(u.isolateScope?J:e,v,I,u.require&&R(u.require,v,ca),hb)}catch(B){l(B,ga(v))}}p=p||{};var N=-Number.MAX_VALUE,u,V=p.controllerDirectives,H=p.newIsolateScopeDirective, ia=p.templateDirective;p=p.nonTlbTranscludeDirective;for(var T=!1,z=!1,t=d.$$element=A(c),G,da,U,F=e,O,M=0,na=a.length;M<na;M++){G=a[M];var Wa=G.$$start,S=G.$$end;Wa&&(t=ca(c,Wa,S));U=r;if(N>G.priority)break;if(U=G.scope)u=u||G,G.templateUrl||(x("new/isolated scope",H,G,t),X(U)&&(H=G));da=G.name;!G.templateUrl&&G.controller&&(U=G.controller,V=V||{},x("'"+da+"' controller",V[da],G,t),V[da]=G);if(U=G.transclude)T=!0,G.$$tlb||(x("transclusion",p,G,t),p=G),"element"==U?(z=!0,N=G.priority,U=ca(c,Wa,S), t=d.$$element=A(Q.createComment(" "+da+": "+d[da]+" ")),c=t[0],ib(g,A(va.call(U,0)),c),F=v(U,e,N,f&&f.name,{nonTlbTranscludeDirective:p})):(U=A(Ab(c)).contents(),t.empty(),F=v(U,e));if(G.template)if(x("template",ia,G,t),ia=G,U=L(G.template)?G.template(t,d):G.template,U=Y(U),G.replace){f=G;U=A("<div>"+ba(U)+"</div>").contents();c=U[0];if(1!=U.length||1!==c.nodeType)throw ja("tplrt",da,"");ib(g,t,c);na={$attr:{}};U=J(c,[],na);var W=a.splice(M+1,a.length-(M+1));H&&ic(U);a=a.concat(U).concat(W);B(d,na); na=a.length}else t.html(U);if(G.templateUrl)x("template",ia,G,t),ia=G,G.replace&&(f=G),E=w(a.splice(M,a.length-M),t,d,g,F,m,n,{controllerDirectives:V,newIsolateScopeDirective:H,templateDirective:ia,nonTlbTranscludeDirective:p}),na=a.length;else if(G.compile)try{O=G.compile(t,d,F),L(O)?y(null,O,Wa,S):O&&y(O.pre,O.post,Wa,S)}catch(Z){l(Z,ga(t))}G.terminal&&(E.terminal=!0,N=Math.max(N,G.priority))}E.scope=u&&!0===u.scope;E.transclude=T&&F;return E}function ic(a){for(var b=0,c=a.length;b<c;b++)a[b]=Sb(a[b], {$$isolateScope:!0})}function T(b,e,g,f,k,s,n){if(e===k)return null;k=null;if(c.hasOwnProperty(e)){var p;e=a.get(e+d);for(var C=0,y=e.length;C<y;C++)try{p=e[C],(f===r||f>p.priority)&&-1!=p.restrict.indexOf(g)&&(s&&(p=Sb(p,{$$start:s,$$end:n})),b.push(p),k=p)}catch(v){l(v)}}return k}function B(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;q(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});q(b,function(b,g){"class"==g?(ha(e,b),a["class"]=(a["class"]?a["class"]+ " ":"")+b):"style"==g?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==g.charAt(0)||a.hasOwnProperty(g)||(a[g]=b,d[g]=c[g])})}function w(a,b,c,d,e,g,f,m){var k=[],s,l,C=b[0],y=a.shift(),v=t({},y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),R=L(y.templateUrl)?y.templateUrl(b,c):y.templateUrl;b.empty();n.get(u.getTrustedResourceUrl(R),{cache:p}).success(function(n){var p,E;n=Y(n);if(y.replace){n=A("<div>"+ba(n)+"</div>").contents();p=n[0];if(1!= n.length||1!==p.nodeType)throw ja("tplrt",y.name,R);n={$attr:{}};ib(d,b,p);var u=J(p,[],n);X(y.scope)&&ic(u);a=u.concat(a);B(c,n)}else p=C,b.html(n);a.unshift(v);s=ia(a,p,c,e,b,y,g,f,m);q(d,function(a,c){a==p&&(d[c]=b[0])});for(l=N(b[0].childNodes,e);k.length;){n=k.shift();E=k.shift();var H=k.shift(),ha=k.shift(),u=b[0];E!==C&&(u=Ab(p),ib(H,A(E),u));E=s.transclude?V(n,s.transclude):ha;s(l,n,u,d,E)}k=null}).error(function(a,b,c,d){throw ja("tpload",d.url);});return function(a,b,c,d,e){k?(k.push(b), k.push(c),k.push(d),k.push(e)):s(l,b,c,d,e)}}function z(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function x(a,b,c,d){if(b)throw ja("multidir",b.name,c.name,a,ga(d));}function F(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:$(function(a,b){var c=b.parent(),e=c.data("$binding")||[];e.push(d);ha(c.data("$binding",e),"ng-binding");a.$watch(d,function(a){b[0].nodeValue=a})})})}function O(a,b){if("srcdoc"==b)return u.HTML;var c=Ha(a);if("xlinkHref"== b||"FORM"==c&&"action"==b||"IMG"!=c&&("src"==b||"ngSrc"==b))return u.RESOURCE_URL}function S(a,c,d,e){var g=b(d,!0);if(g){if("multiple"===e&&"SELECT"===Ha(a))throw ja("selmulti",ga(a));c.push({priority:100,compile:function(){return{pre:function(c,d,m){d=m.$$observers||(m.$$observers={});if(f.test(e))throw ja("nodomevents");if(g=b(m[e],!0,O(a,e)))m[e]=g(c),(d[e]||(d[e]=[])).$$inter=!0,(m.$$observers&&m.$$observers[e].$$scope||c).$watch(g,function(a,b){"class"===e&&a!=b?m.$updateClass(a,b):m.$set(e, a)})}}}})}}function ib(a,b,c){var d=b[0],e=b.length,g=d.parentNode,f,m;if(a)for(f=0,m=a.length;f<m;f++)if(a[f]==d){a[f++]=c;m=f+e-1;for(var k=a.length;f<k;f++,m++)m<k?a[f]=a[m]:delete a[f];a.length-=e-1;break}g&&g.replaceChild(c,d);a=Q.createDocumentFragment();a.appendChild(d);c[A.expando]=d[A.expando];d=1;for(e=b.length;d<e;d++)g=b[d],A(g).remove(),a.appendChild(g),delete b[d];b[0]=c;b.length=1}function kc(a,b){return t(function(){return a.apply(null,arguments)},a,b)}var Fb=function(a,b){this.$$element= a;this.$attr=b||{}};Fb.prototype={$normalize:ma,$addClass:function(a){a&&0<a.length&&R.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&R.removeClass(this.$$element,a)},$updateClass:function(a,b){this.$removeClass(lc(b,a));this.$addClass(lc(a,b))},$set:function(a,b,c,d){var e=fc(this.$$element[0],a);e&&(this.$$element.prop(a,b),d=e);this[a]=b;d?this.$attr[a]=d:(d=this.$attr[a])||(this.$attr[a]=d=db(a,"-"));e=Ha(this.$$element);if("A"===e&&"href"===a||"IMG"===e&&"src"===a)this[a]= b=H(b,"src"===a);!1!==c&&(null===b||b===r?this.$$element.removeAttr(d):this.$$element.attr(d,b));(c=this.$$observers)&&q(c[a],function(a){try{a(b)}catch(c){l(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers={}),e=d[a]||(d[a]=[]);e.push(b);y.$evalAsync(function(){e.$$inter||b(c[a])});return b}};var da=b.startSymbol(),na=b.endSymbol(),Y="{{"==da||"}}"==na?Ba:function(a){return a.replace(/\{\{/g,da).replace(/}}/g,na)},W=/^ngAttr[A-Z]/;return v}]}function ma(b){return Ra(b.replace(id, ""))}function lc(b,a){var c="",d=b.split(/\s+/),e=a.split(/\s+/),g=0;a:for(;g<d.length;g++){for(var f=d[g],h=0;h<e.length;h++)if(f==e[h])continue a;c+=(0<c.length?" ":"")+f}return c}function jd(){var b={},a=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(a,d){xa(a,"controller");X(a)?t(b,a):b[a]=d};this.$get=["$injector","$window",function(c,d){return function(e,g){var f,h,m;D(e)&&(f=e.match(a),h=f[1],m=f[3],e=b.hasOwnProperty(h)?b[h]:vb(g.$scope,h,!0)||vb(d,h,!0),Qa(e,h,!0));f=c.instantiate(e,g); if(m){if(!g||"object"!=typeof g.$scope)throw F("$controller")("noscp",h||e.name,m);g.$scope[m]=f}return f}}]}function kd(){this.$get=["$window",function(b){return A(b.document)}]}function ld(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function mc(b){var a={},c,d,e;if(!b)return a;q(b.split("\n"),function(b){e=b.indexOf(":");c=x(ba(b.substr(0,e)));d=ba(b.substr(e+1));c&&(a[c]=a[c]?a[c]+(", "+d):d)});return a}function nc(b){var a=X(b)?b:r;return function(c){a|| (a=mc(b));return c?a[x(c)]||null:a}}function oc(b,a,c){if(L(c))return c(b,a);q(c,function(c){b=c(b,a)});return b}function md(){var b=/^\s*(\[|\{[^\{])/,a=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d={"Content-Type":"application/json;charset=utf-8"},e=this.defaults={transformResponse:[function(d){D(d)&&(d=d.replace(c,""),b.test(d)&&a.test(d)&&(d=Vb(d)));return d}],transformRequest:[function(a){return X(a)&&"[object File]"!==Ma.call(a)?qa(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:aa(d), put:aa(d),patch:aa(d)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},g=this.interceptors=[],f=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,c,d,n,p){function s(a){function c(a){var b=t({},a,{data:oc(a.data,a.headers,d.transformResponse)});return 200<=a.status&&300>a.status?b:n.reject(b)}var d={transformRequest:e.transformRequest,transformResponse:e.transformResponse},g=function(a){function b(a){var c;q(a,function(b, d){L(b)&&(c=b(),null!=c?a[d]=c:delete a[d])})}var c=e.headers,d=t({},a.headers),g,f,c=t({},c.common,c[x(a.method)]);b(c);b(d);a:for(g in c){a=x(g);for(f in d)if(x(f)===a)continue a;d[g]=c[g]}return d}(a);t(d,a);d.headers=g;d.method=Ia(d.method);(a=Gb(d.url)?b.cookies()[d.xsrfCookieName||e.xsrfCookieName]:r)&&(g[d.xsrfHeaderName||e.xsrfHeaderName]=a);var f=[function(a){g=a.headers;var b=oc(a.data,nc(g),a.transformRequest);z(a.data)&&q(g,function(a,b){"content-type"===x(b)&&delete g[b]});z(a.withCredentials)&& !z(e.withCredentials)&&(a.withCredentials=e.withCredentials);return C(a,b,g).then(c,c)},r],h=n.when(d);for(q(u,function(a){(a.request||a.requestError)&&f.unshift(a.request,a.requestError);(a.response||a.responseError)&&f.push(a.response,a.responseError)});f.length;){a=f.shift();var k=f.shift(),h=h.then(a,k)}h.success=function(a){h.then(function(b){a(b.data,b.status,b.headers,d)});return h};h.error=function(a){h.then(null,function(b){a(b.data,b.status,b.headers,d)});return h};return h}function C(b, c,g){function f(a,b,c){u&&(200<=a&&300>a?u.put(r,[a,b,mc(c)]):u.remove(r));m(b,a,c);d.$$phase||d.$apply()}function m(a,c,d){c=Math.max(c,0);(200<=c&&300>c?p.resolve:p.reject)({data:a,status:c,headers:nc(d),config:b})}function k(){var a=bb(s.pendingRequests,b);-1!==a&&s.pendingRequests.splice(a,1)}var p=n.defer(),C=p.promise,u,q,r=y(b.url,b.params);s.pendingRequests.push(b);C.then(k,k);(b.cache||e.cache)&&(!1!==b.cache&&"GET"==b.method)&&(u=X(b.cache)?b.cache:X(e.cache)?e.cache:E);if(u)if(q=u.get(r), B(q)){if(q.then)return q.then(k,k),q;K(q)?m(q[1],q[0],aa(q[2])):m(q,200,{})}else u.put(r,C);z(q)&&a(b.method,r,c,f,g,b.timeout,b.withCredentials,b.responseType);return C}function y(a,b){if(!b)return a;var c=[];Pc(b,function(a,b){null===a||z(a)||(K(a)||(a=[a]),q(a,function(a){X(a)&&(a=qa(a));c.push(wa(b)+"="+wa(a))}))});return a+(-1==a.indexOf("?")?"?":"&")+c.join("&")}var E=c("$http"),u=[];q(g,function(a){u.unshift(D(a)?p.get(a):p.invoke(a))});q(f,function(a,b){var c=D(a)?p.get(a):p.invoke(a);u.splice(b, 0,{response:function(a){return c(n.when(a))},responseError:function(a){return c(n.reject(a))}})});s.pendingRequests=[];(function(a){q(arguments,function(a){s[a]=function(b,c){return s(t(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){q(arguments,function(a){s[a]=function(b,c,d){return s(t(d||{},{method:a,url:b,data:c}))}})})("post","put");s.defaults=e;return s}]}function nd(b){return 8>=M&&"patch"===x(b)?new ActiveXObject("Microsoft.XMLHTTP"):new Z.XMLHttpRequest}function od(){this.$get= ["$browser","$window","$document",function(b,a,c){return pd(b,nd,b.defer,a.angular.callbacks,c[0])}]}function pd(b,a,c,d,e){function g(a,b){var c=e.createElement("script"),d=function(){c.onreadystatechange=c.onload=c.onerror=null;e.body.removeChild(c);b&&b()};c.type="text/javascript";c.src=a;M&&8>=M?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=function(){d()};e.body.appendChild(c);return d}var f=-1;return function(e,m,k,l,n,p,s,C){function y(){u=f; H&&H();v&&v.abort()}function E(a,d,e,g){r&&c.cancel(r);H=v=null;d=0===d?e?200:404:d;a(1223==d?204:d,e,g);b.$$completeOutstandingRequest(w)}var u;b.$$incOutstandingRequestCount();m=m||b.url();if("jsonp"==x(e)){var R="_"+(d.counter++).toString(36);d[R]=function(a){d[R].data=a};var H=g(m.replace("JSON_CALLBACK","angular.callbacks."+R),function(){d[R].data?E(l,200,d[R].data):E(l,u||-2);d[R]=Ca.noop})}else{var v=a(e);v.open(e,m,!0);q(n,function(a,b){B(a)&&v.setRequestHeader(b,a)});v.onreadystatechange= function(){if(v&&4==v.readyState){var a=null,b=null;u!==f&&(a=v.getAllResponseHeaders(),b="response"in v?v.response:v.responseText);E(l,u||v.status,b,a)}};s&&(v.withCredentials=!0);C&&(v.responseType=C);v.send(k||null)}if(0<p)var r=c(y,p);else p&&p.then&&p.then(y)}}function qd(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(b){return b?(a=b,this):a};this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function g(g,k,l){for(var n,p,s=0,C=[], y=g.length,E=!1,u=[];s<y;)-1!=(n=g.indexOf(b,s))&&-1!=(p=g.indexOf(a,n+f))?(s!=n&&C.push(g.substring(s,n)),C.push(s=c(E=g.substring(n+f,p))),s.exp=E,s=p+h,E=!0):(s!=y&&C.push(g.substring(s)),s=y);(y=C.length)||(C.push(""),y=1);if(l&&1<C.length)throw pc("noconcat",g);if(!k||E)return u.length=y,s=function(a){try{for(var b=0,c=y,f;b<c;b++)"function"==typeof(f=C[b])&&(f=f(a),f=l?e.getTrusted(l,f):e.valueOf(f),null===f||z(f)?f="":"string"!=typeof f&&(f=qa(f))),u[b]=f;return u.join("")}catch(h){a=pc("interr", g,h.toString()),d(a)}},s.exp=g,s.parts=C,s}var f=b.length,h=a.length;g.startSymbol=function(){return b};g.endSymbol=function(){return a};return g}]}function rd(){this.$get=["$rootScope","$window","$q",function(b,a,c){function d(d,f,h,m){var k=a.setInterval,l=a.clearInterval,n=c.defer(),p=n.promise,s=0,C=B(m)&&!m;h=B(h)?h:0;p.then(null,null,d);p.$$intervalId=k(function(){n.notify(s++);0<h&&s>=h&&(n.resolve(s),l(p.$$intervalId),delete e[p.$$intervalId]);C||b.$apply()},f);e[p.$$intervalId]=n;return p} var e={};d.cancel=function(a){return a&&a.$$intervalId in e?(e[a.$$intervalId].reject("canceled"),clearInterval(a.$$intervalId),delete e[a.$$intervalId],!0):!1};return d}]}function sd(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\u00a4",posSuf:"",negPre:"(\u00a4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "), SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(b){return 1===b?"one":"other"}}}}function qc(b){b=b.split("/");for(var a=b.length;a--;)b[a]= tb(b[a]);return b.join("/")}function rc(b,a,c){b=ya(b,c);a.$$protocol=b.protocol;a.$$host=b.hostname;a.$$port=S(b.port)||td[b.protocol]||null}function sc(b,a,c){var d="/"!==b.charAt(0);d&&(b="/"+b);b=ya(b,c);a.$$path=decodeURIComponent(d&&"/"===b.pathname.charAt(0)?b.pathname.substring(1):b.pathname);a.$$search=Xb(b.search);a.$$hash=decodeURIComponent(b.hash);a.$$path&&"/"!=a.$$path.charAt(0)&&(a.$$path="/"+a.$$path)}function oa(b,a){if(0===a.indexOf(b))return a.substr(b.length)}function Xa(b){var a= b.indexOf("#");return-1==a?b:b.substr(0,a)}function Hb(b){return b.substr(0,Xa(b).lastIndexOf("/")+1)}function tc(b,a){this.$$html5=!0;a=a||"";var c=Hb(b);rc(b,this,b);this.$$parse=function(a){var e=oa(c,a);if(!D(e))throw Ib("ipthprfx",a,c);sc(e,this,b);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Yb(this.$$search),b=this.$$hash?"#"+tb(this.$$hash):"";this.$$url=qc(this.$$path)+(a?"?"+a:"")+b;this.$$absUrl=c+this.$$url.substr(1)};this.$$rewrite=function(d){var e; if((e=oa(b,d))!==r)return d=e,(e=oa(a,e))!==r?c+(oa("/",e)||e):b+d;if((e=oa(c,d))!==r)return c+e;if(c==d+"/")return c}}function Jb(b,a){var c=Hb(b);rc(b,this,b);this.$$parse=function(d){var e=oa(b,d)||oa(c,d),e="#"==e.charAt(0)?oa(a,e):this.$$html5?e:"";if(!D(e))throw Ib("ihshprfx",d,a);sc(e,this,b);d=this.$$path;var g=/^\/?.*?:(\/.*)/;0===e.indexOf(b)&&(e=e.replace(b,""));g.exec(e)||(d=(e=g.exec(d))?e[1]:d);this.$$path=d;this.$$compose()};this.$$compose=function(){var c=Yb(this.$$search),e=this.$$hash? "#"+tb(this.$$hash):"";this.$$url=qc(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+(this.$$url?a+this.$$url:"")};this.$$rewrite=function(a){if(Xa(b)==Xa(a))return a}}function uc(b,a){this.$$html5=!0;Jb.apply(this,arguments);var c=Hb(b);this.$$rewrite=function(d){var e;if(b==Xa(d))return d;if(e=oa(c,d))return b+a+e;if(c===d+"/")return c}}function jb(b){return function(){return this[b]}}function vc(b,a){return function(c){if(z(c))return this[b];this[b]=a(c);this.$$compose();return this}}function ud(){var b= "",a=!1;this.hashPrefix=function(a){return B(a)?(b=a,this):b};this.html5Mode=function(b){return B(b)?(a=b,this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(c,d,e,g){function f(a){c.$broadcast("$locationChangeSuccess",h.absUrl(),a)}var h,m=d.baseHref(),k=d.url();a?(m=k.substring(0,k.indexOf("/",k.indexOf("//")+2))+(m||"/"),e=e.history?tc:uc):(m=Xa(k),e=Jb);h=new e(m,"#"+b);h.$$parse(h.$$rewrite(k));g.on("click",function(a){if(!a.ctrlKey&&!a.metaKey&&2!=a.which){for(var b= A(a.target);"a"!==x(b[0].nodeName);)if(b[0]===g[0]||!(b=b.parent())[0])return;var e=b.prop("href");X(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=ya(e.animVal).href);var f=h.$$rewrite(e);e&&(!b.attr("target")&&f&&!a.isDefaultPrevented())&&(a.preventDefault(),f!=d.url()&&(h.$$parse(f),c.$apply(),Z.angular["ff-684208-preventDefault"]=!0))}});h.absUrl()!=k&&d.url(h.absUrl(),!0);d.onUrlChange(function(a){h.absUrl()!=a&&(c.$evalAsync(function(){var b=h.absUrl();h.$$parse(a);c.$broadcast("$locationChangeStart", a,b).defaultPrevented?(h.$$parse(b),d.url(b)):f(b)}),c.$$phase||c.$digest())});var l=0;c.$watch(function(){var a=d.url(),b=h.$$replace;l&&a==h.absUrl()||(l++,c.$evalAsync(function(){c.$broadcast("$locationChangeStart",h.absUrl(),a).defaultPrevented?h.$$parse(a):(d.url(h.absUrl(),b),f(a))}));h.$$replace=!1;return l});return h}]}function vd(){var b=!0,a=this;this.debugEnabled=function(a){return B(a)?(b=a,this):b};this.$get=["$window",function(c){function d(a){a instanceof Error&&(a.stack?a=a.message&& -1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||{},e=b[a]||b.log||w;a=!1;try{a=!!e.apply}catch(m){}return a?function(){var a=[];q(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){b&&c.apply(a,arguments)}}()}}]}function ea(b, a){if("constructor"===b)throw za("isecfld",a);return b}function Ya(b,a){if(b){if(b.constructor===b)throw za("isecfn",a);if(b.document&&b.location&&b.alert&&b.setInterval)throw za("isecwindow",a);if(b.children&&(b.nodeName||b.on&&b.find))throw za("isecdom",a);}return b}function kb(b,a,c,d,e){e=e||{};a=a.split(".");for(var g,f=0;1<a.length;f++){g=ea(a.shift(),d);var h=b[g];h||(h={},b[g]=h);b=h;b.then&&e.unwrapPromises&&(ra(d),"$$v"in b||function(a){a.then(function(b){a.$$v=b})}(b),b.$$v===r&&(b.$$v= {}),b=b.$$v)}g=ea(a.shift(),d);return b[g]=c}function wc(b,a,c,d,e,g,f){ea(b,g);ea(a,g);ea(c,g);ea(d,g);ea(e,g);return f.unwrapPromises?function(f,m){var k=m&&m.hasOwnProperty(b)?m:f,l;if(null==k)return k;(k=k[b])&&k.then&&(ra(g),"$$v"in k||(l=k,l.$$v=r,l.then(function(a){l.$$v=a})),k=k.$$v);if(!a)return k;if(null==k)return r;(k=k[a])&&k.then&&(ra(g),"$$v"in k||(l=k,l.$$v=r,l.then(function(a){l.$$v=a})),k=k.$$v);if(!c)return k;if(null==k)return r;(k=k[c])&&k.then&&(ra(g),"$$v"in k||(l=k,l.$$v=r,l.then(function(a){l.$$v= a})),k=k.$$v);if(!d)return k;if(null==k)return r;(k=k[d])&&k.then&&(ra(g),"$$v"in k||(l=k,l.$$v=r,l.then(function(a){l.$$v=a})),k=k.$$v);if(!e)return k;if(null==k)return r;(k=k[e])&&k.then&&(ra(g),"$$v"in k||(l=k,l.$$v=r,l.then(function(a){l.$$v=a})),k=k.$$v);return k}:function(g,f){var k=f&&f.hasOwnProperty(b)?f:g;if(null==k)return k;k=k[b];if(!a)return k;if(null==k)return r;k=k[a];if(!c)return k;if(null==k)return r;k=k[c];if(!d)return k;if(null==k)return r;k=k[d];return e?null==k?r:k=k[e]:k}}function wd(b, a){ea(b,a);return function(a,d){return null==a?r:(d&&d.hasOwnProperty(b)?d:a)[b]}}function xd(b,a,c){ea(b,c);ea(a,c);return function(c,e){if(null==c)return r;c=(e&&e.hasOwnProperty(b)?e:c)[b];return null==c?r:c[a]}}function xc(b,a,c){if(Kb.hasOwnProperty(b))return Kb[b];var d=b.split("."),e=d.length,g;if(a.unwrapPromises||1!==e)if(a.unwrapPromises||2!==e)if(a.csp)g=6>e?wc(d[0],d[1],d[2],d[3],d[4],c,a):function(b,g){var f=0,h;do h=wc(d[f++],d[f++],d[f++],d[f++],d[f++],c,a)(b,g),g=r,b=h;while(f<e); return h};else{var f="var p;\n";q(d,function(b,d){ea(b,c);f+="if(s == null) return undefined;\ns="+(d?"s":'((k&&k.hasOwnProperty("'+b+'"))?k:s)')+'["'+b+'"];\n'+(a.unwrapPromises?'if (s && s.then) {\n pw("'+c.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")});var f=f+"return s;",h=new Function("s","k","pw",f);h.toString=$(f);g=a.unwrapPromises?function(a,b){return h(a,b,ra)}:h}else g=xd(d[0],d[1],c);else g= wd(d[0],c);"hasOwnProperty"!==b&&(Kb[b]=g);return g}function yd(){var b={},a={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(b){return B(b)?(a.unwrapPromises=!!b,this):a.unwrapPromises};this.logPromiseWarnings=function(b){return B(b)?(a.logPromiseWarnings=b,this):a.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(c,d,e){a.csp=d.csp;ra=function(b){a.logPromiseWarnings&&!yc.hasOwnProperty(b)&&(yc[b]=!0,e.warn("[$parse] Promise found in the expression `"+ b+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))};return function(d){var e;switch(typeof d){case "string":if(b.hasOwnProperty(d))return b[d];e=new Lb(a);e=(new Za(e,c,a)).parse(d,!1);"hasOwnProperty"!==d&&(b[d]=e);return e;case "function":return d;default:return w}}}]}function zd(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return Ad(function(a){b.$evalAsync(a)},a)}]}function Ad(b,a){function c(a){return a}function d(a){return f(a)}var e=function(){var h= [],m,k;return k={resolve:function(a){if(h){var c=h;h=r;m=g(a);c.length&&b(function(){for(var a,b=0,d=c.length;b<d;b++)a=c[b],m.then(a[0],a[1],a[2])})}},reject:function(a){k.resolve(f(a))},notify:function(a){if(h){var c=h;h.length&&b(function(){for(var b,d=0,e=c.length;d<e;d++)b=c[d],b[2](a)})}},promise:{then:function(b,g,f){var k=e(),C=function(d){try{k.resolve((L(b)?b:c)(d))}catch(e){k.reject(e),a(e)}},y=function(b){try{k.resolve((L(g)?g:d)(b))}catch(c){k.reject(c),a(c)}},E=function(b){try{k.notify((L(f)? f:c)(b))}catch(d){a(d)}};h?h.push([C,y,E]):m.then(C,y,E);return k.promise},"catch":function(a){return this.then(null,a)},"finally":function(a){function b(a,c){var d=e();c?d.resolve(a):d.reject(a);return d.promise}function d(e,g){var f=null;try{f=(a||c)()}catch(h){return b(h,!1)}return f&&L(f.then)?f.then(function(){return b(e,g)},function(a){return b(a,!1)}):b(e,g)}return this.then(function(a){return d(a,!0)},function(a){return d(a,!1)})}}}},g=function(a){return a&&L(a.then)?a:{then:function(c){var d= e();b(function(){d.resolve(c(a))});return d.promise}}},f=function(c){return{then:function(g,f){var l=e();b(function(){try{l.resolve((L(f)?f:d)(c))}catch(b){l.reject(b),a(b)}});return l.promise}}};return{defer:e,reject:f,when:function(h,m,k,l){var n=e(),p,s=function(b){try{return(L(m)?m:c)(b)}catch(d){return a(d),f(d)}},C=function(b){try{return(L(k)?k:d)(b)}catch(c){return a(c),f(c)}},y=function(b){try{return(L(l)?l:c)(b)}catch(d){a(d)}};b(function(){g(h).then(function(a){p||(p=!0,n.resolve(g(a).then(s, C,y)))},function(a){p||(p=!0,n.resolve(C(a)))},function(a){p||n.notify(y(a))})});return n.promise},all:function(a){var b=e(),c=0,d=K(a)?[]:{};q(a,function(a,e){c++;g(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&b.resolve(d);return b.promise}}}function Bd(){var b=10,a=F("$rootScope"),c=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(d, e,g,f){function h(){this.$id=$a();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function m(b){if(p.$$phase)throw a("inprog",p.$$phase);p.$$phase=b}function k(a,b){var c=g(a);Qa(c,b);return c}function l(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&& delete a.$$listenerCount[c];while(a=a.$parent)}function n(){}h.prototype={constructor:h,$new:function(a){a?(a=new h,a.$root=this.$root,a.$$asyncQueue=this.$$asyncQueue,a.$$postDigestQueue=this.$$postDigestQueue):(a=function(){},a.prototype=this,a=new a,a.$id=$a());a["this"]=a;a.$$listeners={};a.$$listenerCount={};a.$parent=this;a.$$watchers=a.$$nextSibling=a.$$childHead=a.$$childTail=null;a.$$prevSibling=this.$$childTail;this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=a:this.$$childHead= this.$$childTail=a;return a},$watch:function(a,b,d){var e=k(a,"watch"),g=this.$$watchers,f={fn:b,last:n,get:e,exp:a,eq:!!d};c=null;if(!L(b)){var h=k(b||w,"listener");f.fn=function(a,b,c){h(c)}}if("string"==typeof a&&e.constant){var m=f.fn;f.fn=function(a,b,c){m.call(this,a,b,c);Na(g,f)}}g||(g=this.$$watchers=[]);g.unshift(f);return function(){Na(g,f);c=null}},$watchCollection:function(a,b){var c=this,d,e,f=0,h=g(a),m=[],k={},l=0;return this.$watch(function(){e=h(c);var a,b;if(X(e))if(rb(e))for(d!== m&&(d=m,l=d.length=0,f++),a=e.length,l!==a&&(f++,d.length=l=a),b=0;b<a;b++)d[b]!==e[b]&&(f++,d[b]=e[b]);else{d!==k&&(d=k={},l=0,f++);a=0;for(b in e)e.hasOwnProperty(b)&&(a++,d.hasOwnProperty(b)?d[b]!==e[b]&&(f++,d[b]=e[b]):(l++,d[b]=e[b],f++));if(l>a)for(b in f++,d)d.hasOwnProperty(b)&&!e.hasOwnProperty(b)&&(l--,delete d[b])}else d!==e&&(d=e,f++);return f},function(){b(e,d,c)})},$digest:function(){var d,f,g,h,k=this.$$asyncQueue,l=this.$$postDigestQueue,q,v,r=b,N,V=[],J,A,P;m("$digest");c=null;do{v= !1;for(N=this;k.length;){try{P=k.shift(),P.scope.$eval(P.expression)}catch(B){p.$$phase=null,e(B)}c=null}a:do{if(h=N.$$watchers)for(q=h.length;q--;)try{if(d=h[q])if((f=d.get(N))!==(g=d.last)&&!(d.eq?ua(f,g):"number"==typeof f&&"number"==typeof g&&isNaN(f)&&isNaN(g)))v=!0,c=d,d.last=d.eq?aa(f):f,d.fn(f,g===n?f:g,N),5>r&&(J=4-r,V[J]||(V[J]=[]),A=L(d.exp)?"fn: "+(d.exp.name||d.exp.toString()):d.exp,A+="; newVal: "+qa(f)+"; oldVal: "+qa(g),V[J].push(A));else if(d===c){v=!1;break a}}catch(t){p.$$phase= null,e(t)}if(!(h=N.$$childHead||N!==this&&N.$$nextSibling))for(;N!==this&&!(h=N.$$nextSibling);)N=N.$parent}while(N=h);if((v||k.length)&&!r--)throw p.$$phase=null,a("infdig",b,qa(V));}while(v||k.length);for(p.$$phase=null;l.length;)try{l.shift()()}catch(z){e(z)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==p&&(q(this.$$listenerCount,cb(null,l,this)),a.$$childHead==this&&(a.$$childHead=this.$$nextSibling),a.$$childTail==this&& (a.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null)}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a){p.$$phase||p.$$asyncQueue.length||f.defer(function(){p.$$asyncQueue.length&&p.$digest()});this.$$asyncQueue.push({scope:this,expression:a})},$$postDigest:function(a){this.$$postDigestQueue.push(a)}, $apply:function(a){try{return m("$apply"),this.$eval(a)}catch(b){e(b)}finally{p.$$phase=null;try{p.$digest()}catch(c){throw e(c),c;}}},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){c[bb(c,b)]=null;l(e,1,a)}},$emit:function(a,b){var c=[],d,f=this,g=!1,h={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented= !0},defaultPrevented:!1},m=[h].concat(va.call(arguments,1)),k,l;do{d=f.$$listeners[a]||c;h.currentScope=f;k=0;for(l=d.length;k<l;k++)if(d[k])try{d[k].apply(null,m)}catch(p){e(p)}else d.splice(k,1),k--,l--;if(g)break;f=f.$parent}while(f);return h},$broadcast:function(a,b){for(var c=this,d=this,f={name:a,targetScope:this,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1},g=[f].concat(va.call(arguments,1)),h,k;c=d;){f.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null, g)}catch(m){e(m)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}return f}};var p=new h;return p}]}function Cd(){var b=/^\s*(https?|ftp|mailto|tel|file):/,a=/^\s*(https?|ftp|file):|data:image\//;this.aHrefSanitizationWhitelist=function(a){return B(a)?(b=a,this):b};this.imgSrcSanitizationWhitelist=function(b){return B(b)?(a=b,this):a};this.$get=function(){return function(c,d){var e=d?a:b,g;if(!M||8<= M)if(g=ya(c).href,""!==g&&!g.match(e))return"unsafe:"+g;return c}}}function Dd(b){if("self"===b)return b;if(D(b)){if(-1<b.indexOf("***"))throw sa("iwcard",b);b=b.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return RegExp("^"+b+"$")}if(ab(b))return RegExp("^"+b.source+"$");throw sa("imatcher");}function zc(b){var a=[];B(b)&&q(b,function(b){a.push(Dd(b))});return a}function Ed(){this.SCE_CONTEXTS=fa;var b=["self"],a=[];this.resourceUrlWhitelist= function(a){arguments.length&&(b=zc(a));return b};this.resourceUrlBlacklist=function(b){arguments.length&&(a=zc(b));return a};this.$get=["$injector",function(c){function d(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var e=function(a){throw sa("unsafe");};c.has("$sanitize")&&(e=c.get("$sanitize")); var g=d(),f={};f[fa.HTML]=d(g);f[fa.CSS]=d(g);f[fa.URL]=d(g);f[fa.JS]=d(g);f[fa.RESOURCE_URL]=d(f[fa.URL]);return{trustAs:function(a,b){var c=f.hasOwnProperty(a)?f[a]:null;if(!c)throw sa("icontext",a,b);if(null===b||b===r||""===b)return b;if("string"!==typeof b)throw sa("itype",a);return new c(b)},getTrusted:function(c,d){if(null===d||d===r||""===d)return d;var g=f.hasOwnProperty(c)?f[c]:null;if(g&&d instanceof g)return d.$$unwrapTrustedValue();if(c===fa.RESOURCE_URL){var g=ya(d.toString()),l,n,p= !1;l=0;for(n=b.length;l<n;l++)if("self"===b[l]?Gb(g):b[l].exec(g.href)){p=!0;break}if(p)for(l=0,n=a.length;l<n;l++)if("self"===a[l]?Gb(g):a[l].exec(g.href)){p=!1;break}if(p)return d;throw sa("insecurl",d.toString());}if(c===fa.HTML)return e(d);throw sa("unsafe");},valueOf:function(a){return a instanceof g?a.$$unwrapTrustedValue():a}}}]}function Fd(){var b=!0;this.enabled=function(a){arguments.length&&(b=!!a);return b};this.$get=["$parse","$sniffer","$sceDelegate",function(a,c,d){if(b&&c.msie&&8>c.msieDocumentMode)throw sa("iequirks"); var e=aa(fa);e.isEnabled=function(){return b};e.trustAs=d.trustAs;e.getTrusted=d.getTrusted;e.valueOf=d.valueOf;b||(e.trustAs=e.getTrusted=function(a,b){return b},e.valueOf=Ba);e.parseAs=function(b,c){var d=a(c);return d.literal&&d.constant?d:function(a,c){return e.getTrusted(b,d(a,c))}};var g=e.parseAs,f=e.getTrusted,h=e.trustAs;q(fa,function(a,b){var c=x(b);e[Ra("parse_as_"+c)]=function(b){return g(a,b)};e[Ra("get_trusted_"+c)]=function(b){return f(a,b)};e[Ra("trust_as_"+c)]=function(b){return h(a, b)}});return e}]}function Gd(){this.$get=["$window","$document",function(b,a){var c={},d=S((/android (\d+)/.exec(x((b.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((b.navigator||{}).userAgent),g=a[0]||{},f=g.documentMode,h,m=/^(Moz|webkit|O|ms)(?=[A-Z])/,k=g.body&&g.body.style,l=!1,n=!1;if(k){for(var p in k)if(l=m.exec(p)){h=l[0];h=h.substr(0,1).toUpperCase()+h.substr(1);break}h||(h="WebkitOpacity"in k&&"webkit");l=!!("transition"in k||h+"Transition"in k);n=!!("animation"in k||h+"Animation"in k);!d||l&&n||(l=D(g.body.style.webkitTransition),n=D(g.body.style.webkitAnimation))}return{history:!(!b.history||!b.history.pushState||4>d||e),hashchange:"onhashchange"in b&&(!f||7<f),hasEvent:function(a){if("input"==a&&9==M)return!1;if(z(c[a])){var b=g.createElement("div");c[a]="on"+a in b}return c[a]},csp:Ub(),vendorPrefix:h,transitions:l,animations:n,android:d,msie:M,msieDocumentMode:f}}]}function Hd(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(b,a,c,d){function e(e,h, m){var k=c.defer(),l=k.promise,n=B(m)&&!m;h=a.defer(function(){try{k.resolve(e())}catch(a){k.reject(a),d(a)}finally{delete g[l.$$timeoutId]}n||b.$apply()},h);l.$$timeoutId=h;g[h]=k;return l}var g={};e.cancel=function(b){return b&&b.$$timeoutId in g?(g[b.$$timeoutId].reject("canceled"),delete g[b.$$timeoutId],a.defer.cancel(b.$$timeoutId)):!1};return e}]}function ya(b,a){var c=b;M&&(Y.setAttribute("href",c),c=Y.href);Y.setAttribute("href",c);return{href:Y.href,protocol:Y.protocol?Y.protocol.replace(/:$/, ""):"",host:Y.host,search:Y.search?Y.search.replace(/^\?/,""):"",hash:Y.hash?Y.hash.replace(/^#/,""):"",hostname:Y.hostname,port:Y.port,pathname:"/"===Y.pathname.charAt(0)?Y.pathname:"/"+Y.pathname}}function Gb(b){b=D(b)?ya(b):b;return b.protocol===Ac.protocol&&b.host===Ac.host}function Id(){this.$get=$(Z)}function Bc(b){function a(d,e){if(X(d)){var g={};q(d,function(b,c){g[c]=a(c,b)});return g}return b.factory(d+c,e)}var c="Filter";this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+ c)}}];a("currency",Cc);a("date",Dc);a("filter",Jd);a("json",Kd);a("limitTo",Ld);a("lowercase",Md);a("number",Ec);a("orderBy",Fc);a("uppercase",Nd)}function Jd(){return function(b,a,c){if(!K(b))return b;var d=typeof c,e=[];e.check=function(a){for(var b=0;b<e.length;b++)if(!e[b](a))return!1;return!0};"function"!==d&&(c="boolean"===d&&c?function(a,b){return Ca.equals(a,b)}:function(a,b){b=(""+b).toLowerCase();return-1<(""+a).toLowerCase().indexOf(b)});var g=function(a,b){if("string"==typeof b&&"!"=== b.charAt(0))return!g(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return c(a,b);case "object":switch(typeof b){case "object":return c(a,b);default:for(var d in a)if("$"!==d.charAt(0)&&g(a[d],b))return!0}return!1;case "array":for(d=0;d<a.length;d++)if(g(a[d],b))return!0;return!1;default:return!1}};switch(typeof a){case "boolean":case "number":case "string":a={$:a};case "object":for(var f in a)(function(b){"undefined"!=typeof a[b]&&e.push(function(c){return g("$"==b?c: vb(c,b),a[b])})})(f);break;case "function":e.push(a);break;default:return b}d=[];for(f=0;f<b.length;f++){var h=b[f];e.check(h)&&d.push(h)}return d}}function Cc(b){var a=b.NUMBER_FORMATS;return function(b,d){z(d)&&(d=a.CURRENCY_SYM);return Gc(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,2).replace(/\u00A4/g,d)}}function Ec(b){var a=b.NUMBER_FORMATS;return function(b,d){return Gc(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function Gc(b,a,c,d,e){if(isNaN(b)||!isFinite(b))return"";var g=0>b;b=Math.abs(b); var f=b+"",h="",m=[],k=!1;if(-1!==f.indexOf("e")){var l=f.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>e+1?f="0":(h=f,k=!0)}if(k)0<e&&(-1<b&&1>b)&&(h=b.toFixed(e));else{f=(f.split(Hc)[1]||"").length;z(e)&&(e=Math.min(Math.max(a.minFrac,f),a.maxFrac));f=Math.pow(10,e);b=Math.round(b*f)/f;b=(""+b).split(Hc);f=b[0];b=b[1]||"";var l=0,n=a.lgSize,p=a.gSize;if(f.length>=n+p)for(l=f.length-n,k=0;k<l;k++)0===(l-k)%p&&0!==k&&(h+=c),h+=f.charAt(k);for(k=l;k<f.length;k++)0===(f.length-k)%n&&0!==k&&(h+=c), h+=f.charAt(k);for(;b.length<e;)b+="0";e&&"0"!==e&&(h+=d+b.substr(0,e))}m.push(g?a.negPre:a.posPre);m.push(h);m.push(g?a.negSuf:a.posSuf);return m.join("")}function Mb(b,a,c){var d="";0>b&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=b.substr(b.length-a));return d+b}function W(b,a,c,d){c=c||0;return function(e){e=e["get"+b]();if(0<c||e>-c)e+=c;0===e&&-12==c&&(e=12);return Mb(e,a,d)}}function lb(b,a){return function(c,d){var e=c["get"+b](),g=Ia(a?"SHORT"+b:b);return d[g][e]}}function Dc(b){function a(a){var b; if(b=a.match(c)){a=new Date(0);var g=0,f=0,h=b[8]?a.setUTCFullYear:a.setFullYear,m=b[8]?a.setUTCHours:a.setHours;b[9]&&(g=S(b[9]+b[10]),f=S(b[9]+b[11]));h.call(a,S(b[1]),S(b[2])-1,S(b[3]));g=S(b[4]||0)-g;f=S(b[5]||0)-f;h=S(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));m.call(a,g,f,h,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,e){var g="",f=[],h,m;e=e||"mediumDate";e=b.DATETIME_FORMATS[e]||e;D(c)&& (c=Od.test(c)?S(c):a(c));sb(c)&&(c=new Date(c));if(!La(c))return c;for(;e;)(m=Pd.exec(e))?(f=f.concat(va.call(m,1)),e=f.pop()):(f.push(e),e=null);q(f,function(a){h=Qd[a];g+=h?h(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function Kd(){return function(b){return qa(b,!0)}}function Ld(){return function(b,a){if(!K(b)&&!D(b))return b;a=S(a);if(D(b))return a?0<=a?b.slice(0,a):b.slice(a,b.length):"";var c=[],d,e;a>b.length?a=b.length:a<-b.length&&(a=-b.length);0<a?(d=0, e=a):(d=b.length+a,e=b.length);for(;d<e;d++)c.push(b[d]);return c}}function Fc(b){return function(a,c,d){function e(a,b){return Pa(b)?function(b,c){return a(c,b)}:a}if(!K(a)||!c)return a;c=K(c)?c:[c];c=Rc(c,function(a){var c=!1,d=a||Ba;if(D(a)){if("+"==a.charAt(0)||"-"==a.charAt(0))c="-"==a.charAt(0),a=a.substring(1);d=b(a)}return e(function(a,b){var c;c=d(a);var e=d(b),g=typeof c,f=typeof e;g==f?("string"==g&&(c=c.toLowerCase(),e=e.toLowerCase()),c=c===e?0:c<e?-1:1):c=g<f?-1:1;return c},c)});for(var g= [],f=0;f<a.length;f++)g.push(a[f]);return g.sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0},d))}}function ta(b){L(b)&&(b={link:b});b.restrict=b.restrict||"AC";return $(b)}function Ic(b,a){function c(a,c){c=c?"-"+db(c,"-"):"";b.removeClass((a?mb:nb)+c).addClass((a?nb:mb)+c)}var d=this,e=b.parent().controller("form")||ob,g=0,f=d.$error={},h=[];d.$name=a.name||a.ngForm;d.$dirty=!1;d.$pristine=!0;d.$valid=!0;d.$invalid=!1;e.$addControl(d);b.addClass(Ja);c(!0); d.$addControl=function(a){xa(a.$name,"input");h.push(a);a.$name&&(d[a.$name]=a)};d.$removeControl=function(a){a.$name&&d[a.$name]===a&&delete d[a.$name];q(f,function(b,c){d.$setValidity(c,!0,a)});Na(h,a)};d.$setValidity=function(a,b,h){var n=f[a];if(b)n&&(Na(n,h),n.length||(g--,g||(c(b),d.$valid=!0,d.$invalid=!1),f[a]=!1,c(!0,a),e.$setValidity(a,!0,d)));else{g||c(b);if(n){if(-1!=bb(n,h))return}else f[a]=n=[],g++,c(!1,a),e.$setValidity(a,!1,d);n.push(h);d.$valid=!1;d.$invalid=!0}};d.$setDirty=function(){b.removeClass(Ja).addClass(pb); d.$dirty=!0;d.$pristine=!1;e.$setDirty()};d.$setPristine=function(){b.removeClass(pb).addClass(Ja);d.$dirty=!1;d.$pristine=!0;q(h,function(a){a.$setPristine()})}}function pa(b,a,c,d){b.$setValidity(a,c);return c?d:r}function qb(b,a,c,d,e,g){if(!e.android){var f=!1;a.on("compositionstart",function(a){f=!0});a.on("compositionend",function(){f=!1})}var h=function(){if(!f){var e=a.val();Pa(c.ngTrim||"T")&&(e=ba(e));d.$viewValue!==e&&(b.$$phase?d.$setViewValue(e):b.$apply(function(){d.$setViewValue(e)}))}}; if(e.hasEvent("input"))a.on("input",h);else{var m,k=function(){m||(m=g.defer(function(){h();m=null}))};a.on("keydown",function(a){a=a.keyCode;91===a||(15<a&&19>a||37<=a&&40>=a)||k()});if(e.hasEvent("paste"))a.on("paste cut",k)}a.on("change",h);d.$render=function(){a.val(d.$isEmpty(d.$viewValue)?"":d.$viewValue)};var l=c.ngPattern;l&&((e=l.match(/^\/(.*)\/([gim]*)$/))?(l=RegExp(e[1],e[2]),e=function(a){return pa(d,"pattern",d.$isEmpty(a)||l.test(a),a)}):e=function(c){var e=b.$eval(l);if(!e||!e.test)throw F("ngPattern")("noregexp", l,e,ga(a));return pa(d,"pattern",d.$isEmpty(c)||e.test(c),c)},d.$formatters.push(e),d.$parsers.push(e));if(c.ngMinlength){var n=S(c.ngMinlength);e=function(a){return pa(d,"minlength",d.$isEmpty(a)||a.length>=n,a)};d.$parsers.push(e);d.$formatters.push(e)}if(c.ngMaxlength){var p=S(c.ngMaxlength);e=function(a){return pa(d,"maxlength",d.$isEmpty(a)||a.length<=p,a)};d.$parsers.push(e);d.$formatters.push(e)}}function Nb(b,a){b="ngClass"+b;return function(){return{restrict:"AC",link:function(c,d,e){function g(b){if(!0=== a||c.$index%2===a){var d=f(b||"");h?ua(b,h)||e.$updateClass(d,f(h)):e.$addClass(d)}h=aa(b)}function f(a){if(K(a))return a.join(" ");if(X(a)){var b=[];q(a,function(a,c){a&&b.push(c)});return b.join(" ")}return a}var h;c.$watch(e[b],g,!0);e.$observe("class",function(a){g(c.$eval(e[b]))});"ngClass"!==b&&c.$watch("$index",function(d,g){var h=d&1;if(h!==g&1){var n=f(c.$eval(e[b]));h===a?e.$addClass(n):e.$removeClass(n)}})}}}}var x=function(b){return D(b)?b.toLowerCase():b},Ia=function(b){return D(b)?b.toUpperCase(): b},M,A,Da,va=[].slice,Rd=[].push,Ma=Object.prototype.toString,Oa=F("ng"),Ca=Z.angular||(Z.angular={}),Va,Ha,ka=["0","0","0"];M=S((/msie (\d+)/.exec(x(navigator.userAgent))||[])[1]);isNaN(M)&&(M=S((/trident\/.*; rv:(\d+)/.exec(x(navigator.userAgent))||[])[1]));w.$inject=[];Ba.$inject=[];var ba=function(){return String.prototype.trim?function(b){return D(b)?b.trim():b}:function(b){return D(b)?b.replace(/^\s\s*/,"").replace(/\s\s*$/,""):b}}();Ha=9>M?function(b){b=b.nodeName?b:b[0];return b.scopeName&& "HTML"!=b.scopeName?Ia(b.scopeName+":"+b.nodeName):b.nodeName}:function(b){return b.nodeName?b.nodeName:b[0].nodeName};var Uc=/[A-Z]/g,Sd={full:"1.2.10",major:1,minor:2,dot:10,codeName:"augmented-serendipity"},Sa=O.cache={},eb=O.expando="ng-"+(new Date).getTime(),Yc=1,Jc=Z.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},Bb=Z.document.removeEventListener?function(b,a,c){b.removeEventListener(a,c,!1)}:function(b,a,c){b.detachEvent("on"+ a,c)},Wc=/([\:\-\_]+(.))/g,Xc=/^moz([A-Z])/,yb=F("jqLite"),Ga=O.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;"complete"===Q.readyState?setTimeout(a):(this.on("DOMContentLoaded",a),O(Z).on("load",a))},toString:function(){var b=[];q(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return 0<=b?A(this[b]):A(this[this.length+b])},length:0,push:Rd,sort:[].sort,splice:[].splice},gb={};q("multiple selected checked disabled readOnly required open".split(" "),function(b){gb[x(b)]= b});var gc={};q("input select option textarea button form details".split(" "),function(b){gc[Ia(b)]=!0});q({data:cc,inheritedData:fb,scope:function(b){return A(b).data("$scope")||fb(b.parentNode||b,["$isolateScope","$scope"])},isolateScope:function(b){return A(b).data("$isolateScope")||A(b).data("$isolateScopeNoTemplate")},controller:dc,injector:function(b){return fb(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:Cb,css:function(b,a,c){a=Ra(a);if(B(c))b.style[a]=c;else{var d; 8>=M&&(d=b.currentStyle&&b.currentStyle[a],""===d&&(d="auto"));d=d||b.style[a];8>=M&&(d=""===d?r:d);return d}},attr:function(b,a,c){var d=x(a);if(gb[d])if(B(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||w).specified?d:r;else if(B(c))b.setAttribute(a,c);else if(b.getAttribute)return b=b.getAttribute(a,2),null===b?r:b},prop:function(b,a,c){if(B(c))b[a]=c;else return b[a]},text:function(){function b(b,d){var e=a[b.nodeType];if(z(d))return e? b[e]:"";b[e]=d}var a=[];9>M?(a[1]="innerText",a[3]="nodeValue"):a[1]=a[3]="textContent";b.$dv="";return b}(),val:function(b,a){if(z(a)){if("SELECT"===Ha(b)&&b.multiple){var c=[];q(b.options,function(a){a.selected&&c.push(a.value||a.text)});return 0===c.length?null:c}return b.value}b.value=a},html:function(b,a){if(z(a))return b.innerHTML;for(var c=0,d=b.childNodes;c<d.length;c++)Ea(d[c]);b.innerHTML=a},empty:ec},function(b,a){O.prototype[a]=function(a,d){var e,g;if(b!==ec&&(2==b.length&&b!==Cb&&b!== dc?a:d)===r){if(X(a)){for(e=0;e<this.length;e++)if(b===cc)b(this[e],a);else for(g in a)b(this[e],g,a[g]);return this}e=b.$dv;g=e===r?Math.min(this.length,1):this.length;for(var f=0;f<g;f++){var h=b(this[f],a,d);e=e?e+h:h}return e}for(e=0;e<this.length;e++)b(this[e],a,d);return this}});q({removeData:ac,dealoc:Ea,on:function a(c,d,e,g){if(B(g))throw yb("onargs");var f=la(c,"events"),h=la(c,"handle");f||la(c,"events",f={});h||la(c,"handle",h=Zc(c,f));q(d.split(" "),function(d){var g=f[d];if(!g){if("mouseenter"== d||"mouseleave"==d){var l=Q.body.contains||Q.body.compareDocumentPosition?function(a,c){var d=9===a.nodeType?a.documentElement:a,e=c&&c.parentNode;return a===e||!!(e&&1===e.nodeType&&(d.contains?d.contains(e):a.compareDocumentPosition&&a.compareDocumentPosition(e)&16))}:function(a,c){if(c)for(;c=c.parentNode;)if(c===a)return!0;return!1};f[d]=[];a(c,{mouseleave:"mouseout",mouseenter:"mouseover"}[d],function(a){var c=a.relatedTarget;c&&(c===this||l(this,c))||h(a,d)})}else Jc(c,d,h),f[d]=[];g=f[d]}g.push(e)})}, off:bc,one:function(a,c,d){a=A(a);a.on(c,function g(){a.off(c,d);a.off(c,g)});a.on(c,d)},replaceWith:function(a,c){var d,e=a.parentNode;Ea(a);q(new O(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];q(a.childNodes,function(a){1===a.nodeType&&c.push(a)});return c},contents:function(a){return a.childNodes||[]},append:function(a,c){q(new O(c),function(c){1!==a.nodeType&&11!==a.nodeType||a.appendChild(c)})},prepend:function(a,c){if(1===a.nodeType){var d= a.firstChild;q(new O(c),function(c){a.insertBefore(c,d)})}},wrap:function(a,c){c=A(c)[0];var d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:function(a){Ea(a);var c=a.parentNode;c&&c.removeChild(a)},after:function(a,c){var d=a,e=a.parentNode;q(new O(c),function(a){e.insertBefore(a,d.nextSibling);d=a})},addClass:Eb,removeClass:Db,toggleClass:function(a,c,d){z(d)&&(d=!Cb(a,c));(d?Eb:Db)(a,c)},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){if(a.nextElementSibling)return a.nextElementSibling; for(a=a.nextSibling;null!=a&&1!==a.nodeType;)a=a.nextSibling;return a},find:function(a,c){return a.getElementsByTagName?a.getElementsByTagName(c):[]},clone:Ab,triggerHandler:function(a,c,d){c=(la(a,"events")||{})[c];d=d||[];var e=[{preventDefault:w,stopPropagation:w}];q(c,function(c){c.apply(a,e.concat(d))})}},function(a,c){O.prototype[c]=function(c,e,g){for(var f,h=0;h<this.length;h++)z(f)?(f=a(this[h],c,e,g),B(f)&&(f=A(f))):zb(f,a(this[h],c,e,g));return B(f)?f:this};O.prototype.bind=O.prototype.on; O.prototype.unbind=O.prototype.off});Ta.prototype={put:function(a,c){this[Fa(a)]=c},get:function(a){return this[Fa(a)]},remove:function(a){var c=this[a=Fa(a)];delete this[a];return c}};var ad=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,bd=/,/,cd=/^\s*(_?)(\S+?)\1\s*$/,$c=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ua=F("$injector"),Td=F("$animate"),Ud=["$provide",function(a){this.$$selectors={};this.register=function(c,d){var e=c+"-animation";if(c&&"."!=c.charAt(0))throw Td("notcsel",c);this.$$selectors[c.substr(1)]= e;a.factory(e,d)};this.classNameFilter=function(a){1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null);return this.$$classNameFilter};this.$get=["$timeout",function(a){return{enter:function(d,e,g,f){g?g.after(d):(e&&e[0]||(e=g.parent()),e.append(d));f&&a(f,0,!1)},leave:function(d,e){d.remove();e&&a(e,0,!1)},move:function(a,c,g,f){this.enter(a,c,g,f)},addClass:function(d,e,g){e=D(e)?e:K(e)?e.join(" "):"";q(d,function(a){Eb(a,e)});g&&a(g,0,!1)},removeClass:function(d,e,g){e=D(e)? e:K(e)?e.join(" "):"";q(d,function(a){Db(a,e)});g&&a(g,0,!1)},enabled:w}}]}],ja=F("$compile");jc.$inject=["$provide","$$sanitizeUriProvider"];var id=/^(x[\:\-_]|data[\:\-_])/i,pc=F("$interpolate"),Vd=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,td={http:80,https:443,ftp:21},Ib=F("$location");uc.prototype=Jb.prototype=tc.prototype={$$html5:!1,$$replace:!1,absUrl:jb("$$absUrl"),url:function(a,c){if(z(a))return this.$$url;var d=Vd.exec(a);d[1]&&this.path(decodeURIComponent(d[1]));(d[2]||d[1])&&this.search(d[3]|| "");this.hash(d[5]||"",c);return this},protocol:jb("$$protocol"),host:jb("$$host"),port:jb("$$port"),path:vc("$$path",function(a){return"/"==a.charAt(0)?a:"/"+a}),search:function(a,c){switch(arguments.length){case 0:return this.$$search;case 1:if(D(a))this.$$search=Xb(a);else if(X(a))this.$$search=a;else throw Ib("isrcharg");break;default:z(c)||null===c?delete this.$$search[a]:this.$$search[a]=c}this.$$compose();return this},hash:vc("$$hash",Ba),replace:function(){this.$$replace=!0;return this}}; var za=F("$parse"),yc={},ra,Ka={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:w,"+":function(a,c,d,e){d=d(a,c);e=e(a,c);return B(d)?B(e)?d+e:d:B(e)?e:r},"-":function(a,c,d,e){d=d(a,c);e=e(a,c);return(B(d)?d:0)-(B(e)?e:0)},"*":function(a,c,d,e){return d(a,c)*e(a,c)},"/":function(a,c,d,e){return d(a,c)/e(a,c)},"%":function(a,c,d,e){return d(a,c)%e(a,c)},"^":function(a,c,d,e){return d(a,c)^e(a,c)},"=":w,"===":function(a,c,d,e){return d(a,c)===e(a,c)}, "!==":function(a,c,d,e){return d(a,c)!==e(a,c)},"==":function(a,c,d,e){return d(a,c)==e(a,c)},"!=":function(a,c,d,e){return d(a,c)!=e(a,c)},"<":function(a,c,d,e){return d(a,c)<e(a,c)},">":function(a,c,d,e){return d(a,c)>e(a,c)},"<=":function(a,c,d,e){return d(a,c)<=e(a,c)},">=":function(a,c,d,e){return d(a,c)>=e(a,c)},"&&":function(a,c,d,e){return d(a,c)&&e(a,c)},"||":function(a,c,d,e){return d(a,c)||e(a,c)},"&":function(a,c,d,e){return d(a,c)&e(a,c)},"|":function(a,c,d,e){return e(a,c)(a,c,d(a,c))}, "!":function(a,c,d){return!d(a,c)}},Wd={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Lb=function(a){this.options=a};Lb.prototype={constructor:Lb,lex:function(a){this.text=a;this.index=0;this.ch=r;this.lastCh=":";this.tokens=[];var c;for(a=[];this.index<this.text.length;){this.ch=this.text.charAt(this.index);if(this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent(),this.was("{,")&& ("{"===a[0]&&(c=this.tokens[this.tokens.length-1]))&&(c.json=-1===c.text.indexOf("."));else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch,json:this.was(":[,")&&this.is("{[")||this.is("}]:,")}),this.is("{[")&&a.unshift(this.ch),this.is("}]")&&a.shift(),this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{var d=this.ch+this.peek(),e=d+this.peek(2),g=Ka[this.ch],f=Ka[d],h=Ka[e];h?(this.tokens.push({index:this.index,text:e,fn:h}),this.index+=3):f?(this.tokens.push({index:this.index, text:d,fn:f}),this.index+=2):g?(this.tokens.push({index:this.index,text:this.ch,fn:g,json:this.was("[,:")&&this.is("+-")}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(a){return-1!==a.indexOf(this.ch)},was:function(a){return-1!==a.indexOf(this.lastCh)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a},isWhitespace:function(a){return" "=== a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,c,d){d=d||this.index;c=B(c)?"s "+c+"-"+this.index+" ["+this.text.substring(c,d)+"]":" "+d;throw za("lexerr",a,c,this.text);},readNumber:function(){for(var a="",c=this.index;this.index<this.text.length;){var d=x(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var e= this.peek();if("e"==d&&this.isExpOperator(e))a+=d;else if(this.isExpOperator(d)&&e&&this.isNumber(e)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||e&&this.isNumber(e)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}a*=1;this.tokens.push({index:c,text:a,json:!0,fn:function(){return a}})},readIdent:function(){for(var a=this,c="",d=this.index,e,g,f,h;this.index<this.text.length;){h=this.text.charAt(this.index);if("."===h||this.isIdent(h)||this.isNumber(h))"."=== h&&(e=this.index),c+=h;else break;this.index++}if(e)for(g=this.index;g<this.text.length;){h=this.text.charAt(g);if("("===h){f=c.substr(e-d+1);c=c.substr(0,e-d);this.index=g;break}if(this.isWhitespace(h))g++;else break}d={index:d,text:c};if(Ka.hasOwnProperty(c))d.fn=Ka[c],d.json=Ka[c];else{var m=xc(c,this.options,this.text);d.fn=t(function(a,c){return m(a,c)},{assign:function(d,e){return kb(d,c,e,a.text,a.options)}})}this.tokens.push(d);f&&(this.tokens.push({index:e,text:".",json:!1}),this.tokens.push({index:e+ 1,text:f,json:!1}))},readString:function(a){var c=this.index;this.index++;for(var d="",e=a,g=!1;this.index<this.text.length;){var f=this.text.charAt(this.index),e=e+f;if(g)"u"===f?(f=this.text.substring(this.index+1,this.index+5),f.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+f+"]"),this.index+=4,d+=String.fromCharCode(parseInt(f,16))):d=(g=Wd[f])?d+g:d+f,g=!1;else if("\\"===f)g=!0;else{if(f===a){this.index++;this.tokens.push({index:c,text:e,string:d,json:!0,fn:function(){return d}}); return}d+=f}this.index++}this.throwError("Unterminated quote",c)}};var Za=function(a,c,d){this.lexer=a;this.$filter=c;this.options=d};Za.ZERO=function(){return 0};Za.prototype={constructor:Za,parse:function(a,c){this.text=a;this.json=c;this.tokens=this.lexer.lex(a);c&&(this.assignment=this.logicalOR,this.functionCall=this.fieldAccess=this.objectIndex=this.filterChain=function(){this.throwError("is not valid json",{text:a,index:0})});var d=c?this.primary():this.statements();0!==this.tokens.length&& this.throwError("is an unexpected token",this.tokens[0]);d.literal=!!d.literal;d.constant=!!d.constant;return d},primary:function(){var a;if(this.expect("("))a=this.filterChain(),this.consume(")");else if(this.expect("["))a=this.arrayDeclaration();else if(this.expect("{"))a=this.object();else{var c=this.expect();(a=c.fn)||this.throwError("not a primary expression",c);c.json&&(a.constant=!0,a.literal=!0)}for(var d;c=this.expect("(","[",".");)"("===c.text?(a=this.functionCall(a,d),d=null):"["===c.text? (d=a,a=this.objectIndex(a)):"."===c.text?(d=a,a=this.fieldAccess(a)):this.throwError("IMPOSSIBLE");return a},throwError:function(a,c){throw za("syntax",c.text,a,c.index+1,this.text,this.text.substring(c.index));},peekToken:function(){if(0===this.tokens.length)throw za("ueoe",this.text);return this.tokens[0]},peek:function(a,c,d,e){if(0<this.tokens.length){var g=this.tokens[0],f=g.text;if(f===a||f===c||f===d||f===e||!(a||c||d||e))return g}return!1},expect:function(a,c,d,e){return(a=this.peek(a,c,d, e))?(this.json&&!a.json&&this.throwError("is not valid json",a),this.tokens.shift(),a):!1},consume:function(a){this.expect(a)||this.throwError("is unexpected, expecting ["+a+"]",this.peek())},unaryFn:function(a,c){return t(function(d,e){return a(d,e,c)},{constant:c.constant})},ternaryFn:function(a,c,d){return t(function(e,g){return a(e,g)?c(e,g):d(e,g)},{constant:a.constant&&c.constant&&d.constant})},binaryFn:function(a,c,d){return t(function(e,g){return c(e,g,a,d)},{constant:a.constant&&d.constant})}, statements:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.filterChain()),!this.expect(";"))return 1===a.length?a[0]:function(c,d){for(var e,g=0;g<a.length;g++){var f=a[g];f&&(e=f(c,d))}return e}},filterChain:function(){for(var a=this.expression(),c;;)if(c=this.expect("|"))a=this.binaryFn(a,c.fn,this.filter());else return a},filter:function(){for(var a=this.expect(),c=this.$filter(a.text),d=[];;)if(a=this.expect(":"))d.push(this.expression());else{var e= function(a,e,h){h=[h];for(var m=0;m<d.length;m++)h.push(d[m](a,e));return c.apply(a,h)};return function(){return e}}},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary(),c,d;return(d=this.expect("="))?(a.assign||this.throwError("implies assignment but ["+this.text.substring(0,d.index)+"] can not be assigned to",d),c=this.ternary(),function(d,g){return a.assign(d,c(d,g),g)}):a},ternary:function(){var a=this.logicalOR(),c,d;if(this.expect("?")){c=this.ternary(); if(d=this.expect(":"))return this.ternaryFn(a,c,this.ternary());this.throwError("expected :",d)}else return a},logicalOR:function(){for(var a=this.logicalAND(),c;;)if(c=this.expect("||"))a=this.binaryFn(a,c.fn,this.logicalAND());else return a},logicalAND:function(){var a=this.equality(),c;if(c=this.expect("&&"))a=this.binaryFn(a,c.fn,this.logicalAND());return a},equality:function(){var a=this.relational(),c;if(c=this.expect("==","!=","===","!=="))a=this.binaryFn(a,c.fn,this.equality());return a}, relational:function(){var a=this.additive(),c;if(c=this.expect("<",">","<=",">="))a=this.binaryFn(a,c.fn,this.relational());return a},additive:function(){for(var a=this.multiplicative(),c;c=this.expect("+","-");)a=this.binaryFn(a,c.fn,this.multiplicative());return a},multiplicative:function(){for(var a=this.unary(),c;c=this.expect("*","/","%");)a=this.binaryFn(a,c.fn,this.unary());return a},unary:function(){var a;return this.expect("+")?this.primary():(a=this.expect("-"))?this.binaryFn(Za.ZERO,a.fn, this.unary()):(a=this.expect("!"))?this.unaryFn(a.fn,this.unary()):this.primary()},fieldAccess:function(a){var c=this,d=this.expect().text,e=xc(d,this.options,this.text);return t(function(c,d,h){return e(h||a(c,d))},{assign:function(e,f,h){return kb(a(e,h),d,f,c.text,c.options)}})},objectIndex:function(a){var c=this,d=this.expression();this.consume("]");return t(function(e,g){var f=a(e,g),h=d(e,g),m;if(!f)return r;(f=Ya(f[h],c.text))&&(f.then&&c.options.unwrapPromises)&&(m=f,"$$v"in f||(m.$$v=r,m.then(function(a){m.$$v= a})),f=f.$$v);return f},{assign:function(e,g,f){var h=d(e,f);return Ya(a(e,f),c.text)[h]=g}})},functionCall:function(a,c){var d=[];if(")"!==this.peekToken().text){do d.push(this.expression());while(this.expect(","))}this.consume(")");var e=this;return function(g,f){for(var h=[],m=c?c(g,f):g,k=0;k<d.length;k++)h.push(d[k](g,f));k=a(g,f,m)||w;Ya(m,e.text);Ya(k,e.text);h=k.apply?k.apply(m,h):k(h[0],h[1],h[2],h[3],h[4]);return Ya(h,e.text)}},arrayDeclaration:function(){var a=[],c=!0;if("]"!==this.peekToken().text){do{var d= this.expression();a.push(d);d.constant||(c=!1)}while(this.expect(","))}this.consume("]");return t(function(c,d){for(var f=[],h=0;h<a.length;h++)f.push(a[h](c,d));return f},{literal:!0,constant:c})},object:function(){var a=[],c=!0;if("}"!==this.peekToken().text){do{var d=this.expect(),d=d.string||d.text;this.consume(":");var e=this.expression();a.push({key:d,value:e});e.constant||(c=!1)}while(this.expect(","))}this.consume("}");return t(function(c,d){for(var e={},m=0;m<a.length;m++){var k=a[m];e[k.key]= k.value(c,d)}return e},{literal:!0,constant:c})}};var Kb={},sa=F("$sce"),fa={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Y=Q.createElement("a"),Ac=ya(Z.location.href,!0);Bc.$inject=["$provide"];Cc.$inject=["$locale"];Ec.$inject=["$locale"];var Hc=".",Qd={yyyy:W("FullYear",4),yy:W("FullYear",2,0,!0),y:W("FullYear",1),MMMM:lb("Month"),MMM:lb("Month",!0),MM:W("Month",2,1),M:W("Month",1,1),dd:W("Date",2),d:W("Date",1),HH:W("Hours",2),H:W("Hours",1),hh:W("Hours",2,-12),h:W("Hours", 1,-12),mm:W("Minutes",2),m:W("Minutes",1),ss:W("Seconds",2),s:W("Seconds",1),sss:W("Milliseconds",3),EEEE:lb("Day"),EEE:lb("Day",!0),a:function(a,c){return 12>a.getHours()?c.AMPMS[0]:c.AMPMS[1]},Z:function(a){a=-1*a.getTimezoneOffset();return a=(0<=a?"+":"")+(Mb(Math[0<a?"floor":"ceil"](a/60),2)+Mb(Math.abs(a%60),2))}},Pd=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Od=/^\-?\d+$/;Dc.$inject=["$locale"];var Md=$(x),Nd=$(Ia);Fc.$inject=["$parse"];var Xd=$({restrict:"E", compile:function(a,c){8>=M&&(c.href||c.name||c.$set("href",""),a.append(Q.createComment("IE fix")));if(!c.href&&!c.xlinkHref&&!c.name)return function(a,c){var g="[object SVGAnimatedString]"===Ma.call(c.prop("href"))?"xlink:href":"href";c.on("click",function(a){c.attr(g)||a.preventDefault()})}}}),Ob={};q(gb,function(a,c){if("multiple"!=a){var d=ma("ng-"+c);Ob[d]=function(){return{priority:100,link:function(a,g,f){a.$watch(f[d],function(a){f.$set(c,!!a)})}}}}});q(["src","srcset","href"],function(a){var c= ma("ng-"+a);Ob[c]=function(){return{priority:99,link:function(d,e,g){g.$observe(c,function(c){c&&(g.$set(a,c),M&&e.prop(a,g[a]))})}}}});var ob={$addControl:w,$removeControl:w,$setValidity:w,$setDirty:w,$setPristine:w};Ic.$inject=["$element","$attrs","$scope"];var Kc=function(a){return["$timeout",function(c){return{name:"form",restrict:a?"EAC":"E",controller:Ic,compile:function(){return{pre:function(a,e,g,f){if(!g.action){var h=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1};Jc(e[0], "submit",h);e.on("$destroy",function(){c(function(){Bb(e[0],"submit",h)},0,!1)})}var m=e.parent().controller("form"),k=g.name||g.ngForm;k&&kb(a,k,f,k);if(m)e.on("$destroy",function(){m.$removeControl(f);k&&kb(a,k,r,k);t(f,ob)})}}}}}]},Yd=Kc(),Zd=Kc(!0),$d=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ae=/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i,be=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Lc={text:qb,number:function(a,c,d,e,g,f){qb(a,c,d,e,g,f); e.$parsers.push(function(a){var c=e.$isEmpty(a);if(c||be.test(a))return e.$setValidity("number",!0),""===a?null:c?a:parseFloat(a);e.$setValidity("number",!1);return r});e.$formatters.push(function(a){return e.$isEmpty(a)?"":""+a});d.min&&(a=function(a){var c=parseFloat(d.min);return pa(e,"min",e.$isEmpty(a)||a>=c,a)},e.$parsers.push(a),e.$formatters.push(a));d.max&&(a=function(a){var c=parseFloat(d.max);return pa(e,"max",e.$isEmpty(a)||a<=c,a)},e.$parsers.push(a),e.$formatters.push(a));e.$formatters.push(function(a){return pa(e, "number",e.$isEmpty(a)||sb(a),a)})},url:function(a,c,d,e,g,f){qb(a,c,d,e,g,f);a=function(a){return pa(e,"url",e.$isEmpty(a)||$d.test(a),a)};e.$formatters.push(a);e.$parsers.push(a)},email:function(a,c,d,e,g,f){qb(a,c,d,e,g,f);a=function(a){return pa(e,"email",e.$isEmpty(a)||ae.test(a),a)};e.$formatters.push(a);e.$parsers.push(a)},radio:function(a,c,d,e){z(d.name)&&c.attr("name",$a());c.on("click",function(){c[0].checked&&a.$apply(function(){e.$setViewValue(d.value)})});e.$render=function(){c[0].checked= d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e){var g=d.ngTrueValue,f=d.ngFalseValue;D(g)||(g=!0);D(f)||(f=!1);c.on("click",function(){a.$apply(function(){e.$setViewValue(c[0].checked)})});e.$render=function(){c[0].checked=e.$viewValue};e.$isEmpty=function(a){return a!==g};e.$formatters.push(function(a){return a===g});e.$parsers.push(function(a){return a?g:f})},hidden:w,button:w,submit:w,reset:w},Mc=["$browser","$sniffer",function(a,c){return{restrict:"E",require:"?ngModel", link:function(d,e,g,f){f&&(Lc[x(g.type)]||Lc.text)(d,e,g,f,c,a)}}}],nb="ng-valid",mb="ng-invalid",Ja="ng-pristine",pb="ng-dirty",ce=["$scope","$exceptionHandler","$attrs","$element","$parse",function(a,c,d,e,g){function f(a,c){c=c?"-"+db(c,"-"):"";e.removeClass((a?mb:nb)+c).addClass((a?nb:mb)+c)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=d.name;var h=g(d.ngModel), m=h.assign;if(!m)throw F("ngModel")("nonassign",d.ngModel,ga(e));this.$render=w;this.$isEmpty=function(a){return z(a)||""===a||null===a||a!==a};var k=e.inheritedData("$formController")||ob,l=0,n=this.$error={};e.addClass(Ja);f(!0);this.$setValidity=function(a,c){n[a]!==!c&&(c?(n[a]&&l--,l||(f(!0),this.$valid=!0,this.$invalid=!1)):(f(!1),this.$invalid=!0,this.$valid=!1,l++),n[a]=!c,f(c,a),k.$setValidity(a,c,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(pb).addClass(Ja)}; this.$setViewValue=function(d){this.$viewValue=d;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,e.removeClass(Ja).addClass(pb),k.$setDirty());q(this.$parsers,function(a){d=a(d)});this.$modelValue!==d&&(this.$modelValue=d,m(a,d),q(this.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}}))};var p=this;a.$watch(function(){var c=h(a);if(p.$modelValue!==c){var d=p.$formatters,e=d.length;for(p.$modelValue=c;e--;)c=d[e](c);p.$viewValue!==c&&(p.$viewValue=c,p.$render())}return c})}],de=function(){return{require:["ngModel", "^?form"],controller:ce,link:function(a,c,d,e){var g=e[0],f=e[1]||ob;f.$addControl(g);a.$on("$destroy",function(){f.$removeControl(g)})}}},ee=$({require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),Nc=function(){return{require:"?ngModel",link:function(a,c,d,e){if(e){d.required=!0;var g=function(a){if(d.required&&e.$isEmpty(a))e.$setValidity("required",!1);else return e.$setValidity("required",!0),a};e.$formatters.push(g);e.$parsers.unshift(g);d.$observe("required", function(){g(e.$viewValue)})}}}},fe=function(){return{require:"ngModel",link:function(a,c,d,e){var g=(a=/\/(.*)\//.exec(d.ngList))&&RegExp(a[1])||d.ngList||",";e.$parsers.push(function(a){if(!z(a)){var c=[];a&&q(a.split(g),function(a){a&&c.push(ba(a))});return c}});e.$formatters.push(function(a){return K(a)?a.join(", "):r});e.$isEmpty=function(a){return!a||!a.length}}}},ge=/^(true|false|\d+)$/,he=function(){return{priority:100,compile:function(a,c){return ge.test(c.ngValue)?function(a,c,g){g.$set("value", a.$eval(g.ngValue))}:function(a,c,g){a.$watch(g.ngValue,function(a){g.$set("value",a)})}}}},ie=ta(function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBind);a.$watch(d.ngBind,function(a){c.text(a==r?"":a)})}),je=["$interpolate",function(a){return function(c,d,e){c=a(d.attr(e.$attr.ngBindTemplate));d.addClass("ng-binding").data("$binding",c);e.$observe("ngBindTemplate",function(a){d.text(a)})}}],ke=["$sce","$parse",function(a,c){return function(d,e,g){e.addClass("ng-binding").data("$binding", g.ngBindHtml);var f=c(g.ngBindHtml);d.$watch(function(){return(f(d)||"").toString()},function(c){e.html(a.getTrustedHtml(f(d))||"")})}}],le=Nb("",!0),me=Nb("Odd",0),ne=Nb("Even",1),oe=ta({compile:function(a,c){c.$set("ngCloak",r);a.removeClass("ng-cloak")}}),pe=[function(){return{scope:!0,controller:"@",priority:500}}],Oc={};q("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var c=ma("ng-"+ a);Oc[c]=["$parse",function(d){return{compile:function(e,g){var f=d(g[c]);return function(c,d,e){d.on(x(a),function(a){c.$apply(function(){f(c,{$event:a})})})}}}}]});var qe=["$animate",function(a){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,g,f){var h,m;c.$watch(e.ngIf,function(g){Pa(g)?m||(m=c.$new(),f(m,function(c){c[c.length++]=Q.createComment(" end ngIf: "+e.ngIf+" ");h={clone:c};a.enter(c,d.parent(),d)})):(m&&(m.$destroy(),m=null),h&&(a.leave(wb(h.clone)), h=null))})}}}],re=["$http","$templateCache","$anchorScroll","$animate","$sce",function(a,c,d,e,g){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ca.noop,compile:function(f,h){var m=h.ngInclude||h.src,k=h.onload||"",l=h.autoscroll;return function(f,h,q,r,y){var A=0,u,t,H=function(){u&&(u.$destroy(),u=null);t&&(e.leave(t),t=null)};f.$watch(g.parseAsResourceUrl(m),function(g){var m=function(){!B(l)||l&&!f.$eval(l)||d()},q=++A;g?(a.get(g,{cache:c}).success(function(a){if(q=== A){var c=f.$new();r.template=a;a=y(c,function(a){H();e.enter(a,null,h,m)});u=c;t=a;u.$emit("$includeContentLoaded");f.$eval(k)}}).error(function(){q===A&&H()}),f.$emit("$includeContentRequested")):(H(),r.template=null)})}}}}],se=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,g){d.html(g.template);a(d.contents())(c)}}}],te=ta({priority:450,compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),ue=ta({terminal:!0,priority:1E3}),ve=["$locale", "$interpolate",function(a,c){var d=/{}/g;return{restrict:"EA",link:function(e,g,f){var h=f.count,m=f.$attr.when&&g.attr(f.$attr.when),k=f.offset||0,l=e.$eval(m)||{},n={},p=c.startSymbol(),s=c.endSymbol(),r=/^when(Minus)?(.+)$/;q(f,function(a,c){r.test(c)&&(l[x(c.replace("when","").replace("Minus","-"))]=g.attr(f.$attr[c]))});q(l,function(a,e){n[e]=c(a.replace(d,p+h+"-"+k+s))});e.$watch(function(){var c=parseFloat(e.$eval(h));if(isNaN(c))return"";c in l||(c=a.pluralCat(c-k));return n[c](e,g,!0)},function(a){g.text(a)})}}}], we=["$parse","$animate",function(a,c){var d=F("ngRepeat");return{transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,link:function(e,g,f,h,m){var k=f.ngRepeat,l=k.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),n,p,s,r,y,t,u={$id:Fa};if(!l)throw d("iexp",k);f=l[1];h=l[2];(l=l[3])?(n=a(l),p=function(a,c,d){t&&(u[t]=a);u[y]=c;u.$index=d;return n(e,u)}):(s=function(a,c){return Fa(c)},r=function(a){return a});l=f.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!l)throw d("iidexp", f);y=l[3]||l[1];t=l[2];var B={};e.$watchCollection(h,function(a){var f,h,l=g[0],n,u={},z,P,D,x,T,w,F=[];if(rb(a))T=a,n=p||s;else{n=p||r;T=[];for(D in a)a.hasOwnProperty(D)&&"$"!=D.charAt(0)&&T.push(D);T.sort()}z=T.length;h=F.length=T.length;for(f=0;f<h;f++)if(D=a===T?f:T[f],x=a[D],x=n(D,x,f),xa(x,"`track by` id"),B.hasOwnProperty(x))w=B[x],delete B[x],u[x]=w,F[f]=w;else{if(u.hasOwnProperty(x))throw q(F,function(a){a&&a.scope&&(B[a.id]=a)}),d("dupes",k,x);F[f]={id:x};u[x]=!1}for(D in B)B.hasOwnProperty(D)&& (w=B[D],f=wb(w.clone),c.leave(f),q(f,function(a){a.$$NG_REMOVED=!0}),w.scope.$destroy());f=0;for(h=T.length;f<h;f++){D=a===T?f:T[f];x=a[D];w=F[f];F[f-1]&&(l=F[f-1].clone[F[f-1].clone.length-1]);if(w.scope){P=w.scope;n=l;do n=n.nextSibling;while(n&&n.$$NG_REMOVED);w.clone[0]!=n&&c.move(wb(w.clone),null,A(l));l=w.clone[w.clone.length-1]}else P=e.$new();P[y]=x;t&&(P[t]=D);P.$index=f;P.$first=0===f;P.$last=f===z-1;P.$middle=!(P.$first||P.$last);P.$odd=!(P.$even=0===(f&1));w.scope||m(P,function(a){a[a.length++]= Q.createComment(" end ngRepeat: "+k+" ");c.enter(a,null,A(l));l=a;w.scope=P;w.clone=a;u[w.id]=w})}B=u})}}}],xe=["$animate",function(a){return function(c,d,e){c.$watch(e.ngShow,function(c){a[Pa(c)?"removeClass":"addClass"](d,"ng-hide")})}}],ye=["$animate",function(a){return function(c,d,e){c.$watch(e.ngHide,function(c){a[Pa(c)?"addClass":"removeClass"](d,"ng-hide")})}}],ze=ta(function(a,c,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&q(d,function(a,d){c.css(d,"")});a&&c.css(a)},!0)}),Ae=["$animate", function(a){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,g){var f,h,m=[];c.$watch(e.ngSwitch||e.on,function(d){for(var l=0,n=m.length;l<n;l++)m[l].$destroy(),a.leave(h[l]);h=[];m=[];if(f=g.cases["!"+d]||g.cases["?"])c.$eval(e.change),q(f,function(d){var e=c.$new();m.push(e);d.transclude(e,function(c){var e=d.element;h.push(c);a.enter(c,e.parent(),e)})})})}}}],Be=ta({transclude:"element",priority:800,require:"^ngSwitch",link:function(a, c,d,e,g){e.cases["!"+d.ngSwitchWhen]=e.cases["!"+d.ngSwitchWhen]||[];e.cases["!"+d.ngSwitchWhen].push({transclude:g,element:c})}}),Ce=ta({transclude:"element",priority:800,require:"^ngSwitch",link:function(a,c,d,e,g){e.cases["?"]=e.cases["?"]||[];e.cases["?"].push({transclude:g,element:c})}}),De=ta({controller:["$element","$transclude",function(a,c){if(!c)throw F("ngTransclude")("orphan",ga(a));this.$transclude=c}],link:function(a,c,d,e){e.$transclude(function(a){c.empty();c.append(a)})}}),Ee=["$templateCache", function(a){return{restrict:"E",terminal:!0,compile:function(c,d){"text/ng-template"==d.type&&a.put(d.id,c[0].text)}}}],Fe=F("ngOptions"),Ge=$({terminal:!0}),He=["$compile","$parse",function(a,c){var d=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,e={$setViewValue:w};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope", "$attrs",function(a,c,d){var m=this,k={},l=e,n;m.databound=d.ngModel;m.init=function(a,c,d){l=a;n=d};m.addOption=function(c){xa(c,'"option value"');k[c]=!0;l.$viewValue==c&&(a.val(c),n.parent()&&n.remove())};m.removeOption=function(a){this.hasOption(a)&&(delete k[a],l.$viewValue==a&&this.renderUnknownOption(a))};m.renderUnknownOption=function(c){c="? "+Fa(c)+" ?";n.val(c);a.prepend(n);a.val(c);n.prop("selected",!0)};m.hasOption=function(a){return k.hasOwnProperty(a)};c.$on("$destroy",function(){m.renderUnknownOption= w})}],link:function(e,f,h,m){function k(a,c,d,e){d.$render=function(){var a=d.$viewValue;e.hasOption(a)?(x.parent()&&x.remove(),c.val(a),""===a&&w.prop("selected",!0)):z(a)&&w?c.val(""):e.renderUnknownOption(a)};c.on("change",function(){a.$apply(function(){x.parent()&&x.remove();d.$setViewValue(c.val())})})}function l(a,c,d){var e;d.$render=function(){var a=new Ta(d.$viewValue);q(c.find("option"),function(c){c.selected=B(a.get(c.value))})};a.$watch(function(){ua(e,d.$viewValue)||(e=aa(d.$viewValue), d.$render())});c.on("change",function(){a.$apply(function(){var a=[];q(c.find("option"),function(c){c.selected&&a.push(c.value)});d.$setViewValue(a)})})}function n(e,f,g){function h(){var a={"":[]},c=[""],d,k,r,t,v;t=g.$modelValue;v=A(e)||[];var C=n?Pb(v):v,F,I,z;I={};r=!1;var E,H;if(s)if(w&&K(t))for(r=new Ta([]),z=0;z<t.length;z++)I[m]=t[z],r.put(w(e,I),t[z]);else r=new Ta(t);for(z=0;F=C.length,z<F;z++){k=z;if(n){k=C[z];if("$"===k.charAt(0))continue;I[n]=k}I[m]=v[k];d=p(e,I)||"";(k=a[d])||(k=a[d]= [],c.push(d));s?d=B(r.remove(w?w(e,I):q(e,I))):(w?(d={},d[m]=t,d=w(e,d)===w(e,I)):d=t===q(e,I),r=r||d);E=l(e,I);E=B(E)?E:"";k.push({id:w?w(e,I):n?C[z]:z,label:E,selected:d})}s||(y||null===t?a[""].unshift({id:"",label:"",selected:!r}):r||a[""].unshift({id:"?",label:"",selected:!0}));I=0;for(C=c.length;I<C;I++){d=c[I];k=a[d];x.length<=I?(t={element:D.clone().attr("label",d),label:k.label},v=[t],x.push(v),f.append(t.element)):(v=x[I],t=v[0],t.label!=d&&t.element.attr("label",t.label=d));E=null;z=0;for(F= k.length;z<F;z++)r=k[z],(d=v[z+1])?(E=d.element,d.label!==r.label&&E.text(d.label=r.label),d.id!==r.id&&E.val(d.id=r.id),E[0].selected!==r.selected&&E.prop("selected",d.selected=r.selected)):(""===r.id&&y?H=y:(H=u.clone()).val(r.id).attr("selected",r.selected).text(r.label),v.push({element:H,label:r.label,id:r.id,selected:r.selected}),E?E.after(H):t.element.append(H),E=H);for(z++;v.length>z;)v.pop().element.remove()}for(;x.length>I;)x.pop()[0].element.remove()}var k;if(!(k=t.match(d)))throw Fe("iexp", t,ga(f));var l=c(k[2]||k[1]),m=k[4]||k[6],n=k[5],p=c(k[3]||""),q=c(k[2]?k[1]:m),A=c(k[7]),w=k[8]?c(k[8]):null,x=[[{element:f,label:""}]];y&&(a(y)(e),y.removeClass("ng-scope"),y.remove());f.empty();f.on("change",function(){e.$apply(function(){var a,c=A(e)||[],d={},h,k,l,p,t,u,v;if(s)for(k=[],p=0,u=x.length;p<u;p++)for(a=x[p],l=1,t=a.length;l<t;l++){if((h=a[l].element)[0].selected){h=h.val();n&&(d[n]=h);if(w)for(v=0;v<c.length&&(d[m]=c[v],w(e,d)!=h);v++);else d[m]=c[h];k.push(q(e,d))}}else if(h=f.val(), "?"==h)k=r;else if(""===h)k=null;else if(w)for(v=0;v<c.length;v++){if(d[m]=c[v],w(e,d)==h){k=q(e,d);break}}else d[m]=c[h],n&&(d[n]=h),k=q(e,d);g.$setViewValue(k)})});g.$render=h;e.$watch(h)}if(m[1]){var p=m[0];m=m[1];var s=h.multiple,t=h.ngOptions,y=!1,w,u=A(Q.createElement("option")),D=A(Q.createElement("optgroup")),x=u.clone();h=0;for(var v=f.children(),F=v.length;h<F;h++)if(""===v[h].value){w=y=v.eq(h);break}p.init(m,y,x);s&&(m.$isEmpty=function(a){return!a||0===a.length});t?n(e,f,m):s?l(e,f,m): k(e,f,m,p)}}}}],Ie=["$interpolate",function(a){var c={addOption:w,removeOption:w};return{restrict:"E",priority:100,compile:function(d,e){if(z(e.value)){var g=a(d.text(),!0);g||e.$set("value",d.text())}return function(a,d,e){var k=d.parent(),l=k.data("$selectController")||k.parent().data("$selectController");l&&l.databound?d.prop("selected",!1):l=c;g?a.$watch(g,function(a,c){e.$set("value",a);a!==c&&l.removeOption(c);l.addOption(a)}):l.addOption(e.value);d.on("$destroy",function(){l.removeOption(e.value)})}}}}], Je=$({restrict:"E",terminal:!0});(Da=Z.jQuery)?(A=Da,t(Da.fn,{scope:Ga.scope,isolateScope:Ga.isolateScope,controller:Ga.controller,injector:Ga.injector,inheritedData:Ga.inheritedData}),xb("remove",!0,!0,!1),xb("empty",!1,!1,!1),xb("html",!1,!1,!0)):A=O;Ca.element=A;(function(a){t(a,{bootstrap:Zb,copy:aa,extend:t,equals:ua,element:A,forEach:q,injector:$b,noop:w,bind:cb,toJson:qa,fromJson:Vb,identity:Ba,isUndefined:z,isDefined:B,isString:D,isFunction:L,isObject:X,isNumber:sb,isElement:Qc,isArray:K, version:Sd,isDate:La,lowercase:x,uppercase:Ia,callbacks:{counter:0},$$minErr:F,$$csp:Ub});Va=Vc(Z);try{Va("ngLocale")}catch(c){Va("ngLocale",[]).provider("$locale",sd)}Va("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:Cd});a.provider("$compile",jc).directive({a:Xd,input:Mc,textarea:Mc,form:Yd,script:Ee,select:He,style:Je,option:Ie,ngBind:ie,ngBindHtml:ke,ngBindTemplate:je,ngClass:le,ngClassEven:ne,ngClassOdd:me,ngCloak:oe,ngController:pe,ngForm:Zd,ngHide:ye,ngIf:qe,ngInclude:re, ngInit:te,ngNonBindable:ue,ngPluralize:ve,ngRepeat:we,ngShow:xe,ngStyle:ze,ngSwitch:Ae,ngSwitchWhen:Be,ngSwitchDefault:Ce,ngOptions:Ge,ngTransclude:De,ngModel:de,ngList:fe,ngChange:ee,required:Nc,ngRequired:Nc,ngValue:he}).directive({ngInclude:se}).directive(Ob).directive(Oc);a.provider({$anchorScroll:dd,$animate:Ud,$browser:fd,$cacheFactory:gd,$controller:jd,$document:kd,$exceptionHandler:ld,$filter:Bc,$interpolate:qd,$interval:rd,$http:md,$httpBackend:od,$location:ud,$log:vd,$parse:yd,$rootScope:Bd, $q:zd,$sce:Fd,$sceDelegate:Ed,$sniffer:Gd,$templateCache:hd,$timeout:Hd,$window:Id})}])})(Ca);A(Q).ready(function(){Tc(Q,Zb)})})(window,document);!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}</style>'); //# sourceMappingURL=angular.min.js.map
TurpIF/data-gouv
web/js/lib/angular.min.js
JavaScript
artistic-2.0
100,084
package org.glob3.mobile.specific; import java.util.Map; import org.glob3.mobile.generated.IByteBuffer; import org.glob3.mobile.generated.IJSONParser; import org.glob3.mobile.generated.JSONArray; import org.glob3.mobile.generated.JSONBaseObject; import org.glob3.mobile.generated.JSONBoolean; import org.glob3.mobile.generated.JSONDouble; import org.glob3.mobile.generated.JSONFloat; import org.glob3.mobile.generated.JSONInteger; import org.glob3.mobile.generated.JSONLong; import org.glob3.mobile.generated.JSONNull; import org.glob3.mobile.generated.JSONObject; import org.glob3.mobile.generated.JSONString; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.google.gson.JsonPrimitive; public class JSONParser_JavaDesktop extends IJSONParser { @Override public JSONBaseObject parse(final IByteBuffer buffer, final boolean nullAsObject) { return parse(buffer.getAsString(), nullAsObject); } @Override public JSONBaseObject parse(final String string, final boolean nullAsObject) { final JsonParser parser = new JsonParser(); final JsonElement element = parser.parse(string); return convert(element, nullAsObject); } private JSONBaseObject convert(final JsonElement element, final boolean nullAsObject) { if (element.isJsonNull()) { return nullAsObject ? new JSONNull() : null; } else if (element.isJsonObject()) { final JsonObject jsonObject = (JsonObject) element; final JSONObject result = new JSONObject(); for (final Map.Entry<String, JsonElement> entry : jsonObject.entrySet()) { result.put(entry.getKey(), convert(entry.getValue(), nullAsObject)); } return result; } else if (element.isJsonPrimitive()) { final JsonPrimitive jsonPrimitive = (JsonPrimitive) element; if (jsonPrimitive.isBoolean()) { return new JSONBoolean(jsonPrimitive.getAsBoolean()); } else if (jsonPrimitive.isNumber()) { final double doubleValue = jsonPrimitive.getAsDouble(); final long longValue = (long) doubleValue; if (doubleValue == longValue) { final int intValue = (int) longValue; return (intValue == longValue) ? new JSONInteger(intValue) : new JSONLong(longValue); } final float floatValue = (float) doubleValue; return (floatValue == doubleValue) ? new JSONFloat(floatValue) : new JSONDouble(doubleValue); } else if (jsonPrimitive.isString()) { return new JSONString(jsonPrimitive.getAsString()); } else { throw new RuntimeException("JSON unsopoerted" + element.getClass()); } } else if (element.isJsonArray()) { final JsonArray jsonArray = (JsonArray) element; final JSONArray result = new JSONArray(); for (final JsonElement child : jsonArray) { result.add(convert(child, nullAsObject)); } return result; } else { throw new RuntimeException("JSON unsopoerted" + element.getClass()); } } }
AeroGlass/g3m
JavaDesktop/G3MJavaDesktopSDK/src/org/glob3/mobile/specific/JSONParser_JavaDesktop.java
Java
bsd-2-clause
3,373
/* Copyright (c) Citrix Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the * following disclaimer in the documentation and/or other * materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ using System; using System.Collections.Generic; using System.Linq; using XenAdmin.Core; using XenAPI; namespace XenAdmin.Actions { public class EnableHAAction : PureAsyncAction { private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private readonly Dictionary<VM, VMStartupOptions> startupOptions; private readonly SR[] heartbeatSRs; private readonly long failuresToTolerate; public EnableHAAction(Pool pool, Dictionary<VM, VMStartupOptions> startupOptions, List<SR> heartbeatSRs, long failuresToTolerate) : base(pool.Connection, string.Format(Messages.ENABLING_HA_ON, Helpers.GetName(pool).Ellipsise(50)), Messages.ENABLING_HA, false) { if (heartbeatSRs.Count == 0) throw new ArgumentException("You must specify at least 1 heartbeat SR"); Pool = pool; this.startupOptions = startupOptions; this.heartbeatSRs = heartbeatSRs.ToArray(); this.failuresToTolerate = failuresToTolerate; } public List<SR> HeartbeatSRs { get { return new List<SR>(heartbeatSRs); } } protected override void Run() { if (startupOptions != null) { double increment = 10.0 / Math.Max(startupOptions.Count, 1); int i = 0; // First set any VM restart priorities supplied foreach (VM vm in startupOptions.Keys) { // Set new VM restart priority and ha_always_run log.DebugFormat("Setting HA priority on {0} to {1}", vm.Name(), startupOptions[vm].HaRestartPriority); XenAPI.VM.SetHaRestartPriority(this.Session, vm, (VM.HA_Restart_Priority)startupOptions[vm].HaRestartPriority); // Set new VM order and start_delay log.DebugFormat("Setting start order on {0} to {1}", vm.Name(), startupOptions[vm].Order); XenAPI.VM.set_order(this.Session, vm.opaque_ref, startupOptions[vm].Order); log.DebugFormat("Setting start order on {0} to {1}", vm.Name(), startupOptions[vm].StartDelay); XenAPI.VM.set_start_delay(this.Session, vm.opaque_ref, startupOptions[vm].StartDelay); this.PercentComplete = (int)(++i * increment); } } this.PercentComplete = 10; log.DebugFormat("Setting ha_host_failures_to_tolerate to {0}", failuresToTolerate); XenAPI.Pool.set_ha_host_failures_to_tolerate(this.Session, Pool.opaque_ref, failuresToTolerate); var refs = heartbeatSRs.Select(sr => new XenRef<SR>(sr.opaque_ref)).ToList(); try { log.Debug("Enabling HA for pool " + Pool.Name()); // NB the line below also performs a pool db sync RelatedTask = XenAPI.Pool.async_enable_ha(this.Session, refs, new Dictionary<string, string>()); PollToCompletion(15, 100); log.Debug("Success enabling HA on pool " + Pool.Name()); } catch (Failure f) { if (f.ErrorDescription.Count > 1 && f.ErrorDescription[0] == "VDI_NOT_AVAILABLE") { var vdi = Connection.Resolve(new XenRef<VDI>(f.ErrorDescription[1])); if (vdi != null) throw new Failure(string.Format(FriendlyErrorNames.VDI_NOT_AVAILABLE, vdi.uuid)); } throw; } this.Description = Messages.COMPLETED; } } }
kc284/xenadmin
XenModel/Actions/Pool/EnableHAAction.cs
C#
bsd-2-clause
5,306
<?php declare(strict_types=1); /* * Studio 107 (c) 2018 Maxim Falaleev * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Mindy\Orm\Tests\Databases\Sqlite; use Mindy\Orm\Tests\QueryBuilder\QueryTest; class SqliteQueryTest extends QueryTest { public $driver = 'sqlite'; }
MindyPHP/Mindy_Orm
Tests/Databases/Sqlite/SqliteQueryTest.php
PHP
bsd-2-clause
374
# frozen_string_literal: true require_relative "../../helpers/file" module Byebug # # Reopens the +info+ command to define the +file+ subcommand # class InfoCommand < Command # # Information about a particular source file # class FileCommand < Command include Helpers::FileHelper include Helpers::StringHelper self.allow_in_post_mortem = true def self.regexp /^\s* f(?:ile)? (?:\s+ (.+))? \s*$/x end def self.description <<-DESCRIPTION inf[o] f[ile] #{short_description} It informs about file name, number of lines, possible breakpoints in the file, last modification time and sha1 digest. DESCRIPTION end def self.short_description "Information about a particular source file." end def execute file = @match[1] || frame.file return errmsg(pr("info.errors.undefined_file", file: file)) unless File.exist?(file) puts prettify <<-RUBY File #{info_file_basic(file)} Breakpoint line numbers: #{info_file_breakpoints(file)} Modification time: #{info_file_mtime(file)} Sha1 Signature: #{info_file_sha1(file)} RUBY end private def info_file_basic(file) path = File.expand_path(file) return unless File.exist?(path) s = n_lines(path) == 1 ? "" : "s" "#{path} (#{n_lines(path)} line#{s})" end def info_file_breakpoints(file) breakpoints = Breakpoint.potential_lines(file) return unless breakpoints breakpoints.to_a.sort.join(" ") end def info_file_mtime(file) File.stat(file).mtime end def info_file_sha1(file) require "digest/sha1" Digest::SHA1.hexdigest(file) end end end end
deivid-rodriguez/byebug
lib/byebug/commands/info/file.rb
Ruby
bsd-2-clause
1,863
#include "private.h" #include <Elementary.h> #include "config.h" #include "termio.h" #include "media.h" #include "options.h" #include "options_wallpaper.h" #include "extns.h" #include "media.h" #include "main.h" #include <sys/stat.h> typedef struct _Background_Item { const char *path; Eina_Bool selected; Elm_Object_Item *item; } Background_Item; typedef struct _Insert_Gen_Grid_Item_Notify { Elm_Gengrid_Item_Class *class; Background_Item *item; } Insert_Gen_Grid_Item_Notify; static Eina_Stringshare *_system_path, *_user_path; static Evas_Object *_bg_grid = NULL, *_term = NULL, *_entry = NULL, *_flip = NULL, *_bubble = NULL; static Eina_List *_backgroundlist = NULL; static Ecore_Timer *_bubble_disappear; static Ecore_Thread *_thread; static void _cb_fileselector(void *data EINA_UNUSED, Evas_Object *obj, void* event) { if (event) { elm_object_text_set(_entry, elm_fileselector_path_get(obj)); elm_flip_go_to(_flip, EINA_TRUE, ELM_FLIP_PAGE_LEFT); } else { elm_flip_go_to(_flip, EINA_TRUE, ELM_FLIP_PAGE_LEFT); } } static Eina_Bool _cb_timer_bubble_disappear(void *data EINA_UNUSED) { evas_object_del(_bubble); _bubble_disappear = NULL; return ECORE_CALLBACK_CANCEL; } static void _bubble_show(char *text) { Evas_Object *opbox = elm_object_top_widget_get(_bg_grid); Evas_Object *o; int x = 0, y = 0, w , h; evas_object_geometry_get(_bg_grid, &x, &y, &w ,&h); if (_bubble_disappear) { ecore_timer_del(_bubble_disappear); _cb_timer_bubble_disappear(NULL); } _bubble = elm_bubble_add(opbox); elm_bubble_pos_set(_bubble, ELM_BUBBLE_POS_BOTTOM_RIGHT); evas_object_resize(_bubble, 200, 50); evas_object_move(_bubble, (x + w - 200), (y + h - 50)); evas_object_show(_bubble); o = elm_label_add(_bubble); elm_object_text_set(o, text); elm_object_content_set(_bubble, o); _bubble_disappear = ecore_timer_add(2.0, _cb_timer_bubble_disappear, NULL); } static char * _grid_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED) { Background_Item *item = data; const char *s; if (!item->path) return strdup(_("None")); s = ecore_file_file_get(item->path); if (s) return strdup(s); return NULL; } static Evas_Object * _grid_content_get(void *data, Evas_Object *obj, const char *part) { Background_Item *item = data; Evas_Object *o, *oe; Config *config = termio_config_get(_term); char path[PATH_MAX]; if (!strcmp(part, "elm.swallow.icon")) { if (item->path) { int i; Media_Type type; for (i = 0; extn_edj[i]; i++) { if (eina_str_has_extension(item->path, extn_edj[i])) return media_add(obj, item->path, config, MEDIA_BG, MEDIA_TYPE_EDJE); } type = media_src_type_get(item->path); return media_add(obj, item->path, config, MEDIA_THUMB, type); } else { if (!config->theme) return NULL; snprintf(path, PATH_MAX, "%s/themes/%s", elm_app_data_dir_get(), config->theme); o = elm_layout_add(obj); oe = elm_layout_edje_get(o); if (!edje_object_file_set(oe, path, "terminology/background")) { evas_object_del(o); return NULL; } evas_object_show(o); return o; } } return NULL; } static void _item_selected(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Background_Item *item = data; Config *config = termio_config_get(_term); if (!config) return; if (!item->path) { // no background eina_stringshare_del(config->background); config->background = NULL; config_save(config, NULL); main_media_update(config); } else if (eina_stringshare_replace(&(config->background), item->path)) { config_save(config, NULL); main_media_update(config); } } static void _insert_gengrid_item(Insert_Gen_Grid_Item_Notify *msg_data) { Insert_Gen_Grid_Item_Notify *insert_msg = msg_data; Config *config = termio_config_get(_term); if (insert_msg && insert_msg->item && insert_msg->class && config) { Background_Item *item = insert_msg->item; Elm_Gengrid_Item_Class *item_class = insert_msg->class; item->item = elm_gengrid_item_append(_bg_grid, item_class, item, _item_selected, item); if ((!item->path) && (!config->background)) { elm_gengrid_item_selected_set(item->item, EINA_TRUE); elm_gengrid_item_bring_in(item->item, ELM_GENGRID_ITEM_SCROLLTO_MIDDLE); } else if ((item->path) && (config->background)) { if (strcmp(item->path, config->background) == 0) { elm_gengrid_item_selected_set(item->item, EINA_TRUE); elm_gengrid_item_bring_in(item->item, ELM_GENGRID_ITEM_SCROLLTO_MIDDLE); } } } free(msg_data); } static Eina_List* _rec_read_directorys(Eina_List *list, const char *root_path, Elm_Gengrid_Item_Class *class) { Eina_List *childs = ecore_file_ls(root_path); char *file_name, path[PATH_MAX]; int i, j; Background_Item *item; const char **extns[5] = { extn_img, extn_scale, extn_edj, extn_mov, NULL }; const char **ex; Insert_Gen_Grid_Item_Notify *notify; if (!childs) return list; EINA_LIST_FREE(childs, file_name) { snprintf(path, PATH_MAX, "%s/%s", root_path, file_name); if ((!ecore_file_is_dir(path)) && (file_name[0] != '.')) { //file is found, search for correct file endings ! for (j = 0; extns[j]; j++) { ex = extns[j]; for (i = 0; ex[i]; i++) { if (eina_str_has_extension(file_name, ex[i])) { //File is found and valid item = calloc(1, sizeof(Background_Item)); if (item) { notify = calloc(1, sizeof(Insert_Gen_Grid_Item_Notify)); item->path = eina_stringshare_add(path); list = eina_list_append(list, item); //insert item to gengrid notify->class = class; notify->item = item; //ecore_thread_feedback(th, notify); _insert_gengrid_item(notify); } break; } } } } free(file_name); } return list; } static void _refresh_directory(const char* data) { Background_Item *item; Elm_Gengrid_Item_Class *item_class; // This will run elm_gengrid_clear elm_gengrid_clear(_bg_grid); if (_backgroundlist) { EINA_LIST_FREE(_backgroundlist, item) { if (item->path) eina_stringshare_del(item->path); free(item); } _backgroundlist = NULL; } item_class = elm_gengrid_item_class_new(); item_class->func.text_get = _grid_text_get; item_class->func.content_get = _grid_content_get; item = calloc(1, sizeof(Background_Item)); _backgroundlist = eina_list_append(_backgroundlist, item); //Insert None Item Insert_Gen_Grid_Item_Notify *notify = calloc(1, sizeof(Insert_Gen_Grid_Item_Notify)); notify->class = item_class; notify->item = item; _insert_gengrid_item(notify); _backgroundlist = _rec_read_directorys(_backgroundlist, data, item_class); elm_gengrid_item_class_free(item_class); _thread = NULL; } static void _gengrid_refresh_samples(const char *path) { if(!ecore_file_exists(path)) return; _refresh_directory(path); } static void _cb_entry_changed(void *data EINA_UNUSED, Evas_Object *parent, void *event EINA_UNUSED) { const char *path = elm_object_text_get(parent); _gengrid_refresh_samples(path); } static void _cb_hoversel_select(void *data, Evas_Object *hoversel EINA_UNUSED, void *event EINA_UNUSED) { Evas_Object *o; char *path = data; if (path) { elm_object_text_set(_entry, path); } else { o = elm_object_part_content_get(_flip, "back"); elm_fileselector_path_set(o, elm_object_text_get(_entry)); elm_flip_go_to(_flip, EINA_FALSE, ELM_FLIP_PAGE_RIGHT); } } static void _system_background_dir_init(void) { char path[PATH_MAX]; snprintf(path, PATH_MAX, "%s/backgrounds/", elm_app_data_dir_get()); if (_system_path) eina_stringshare_replace(&_system_path, path); else _system_path = eina_stringshare_add(path); } static const char* _user_background_dir_init(void){ char path[PATH_MAX], *user; user = getenv("HOME"); if(!user) return NULL; snprintf(path, PATH_MAX, "%s/.config/terminology/background/", user); if (!ecore_file_exists(path)) ecore_file_mkpath(path); if (!_user_path) _user_path = eina_stringshare_add(path); else eina_stringshare_replace(&_user_path, path); return _user_path; } static const char* _import_background(const char* background) { char path[PATH_MAX]; const char *filename = ecore_file_file_get(background); if (!filename) return NULL; if (!_user_background_dir_init()) return NULL; snprintf(path, PATH_MAX, "%s/%s", _user_path, filename); if (!ecore_file_cp(background, path)) return NULL; return eina_stringshare_add(path); } static void _cb_grid_doubleclick(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { Config *config = termio_config_get(_term); char *config_background_dir = ecore_file_dir_get(config->background); if (!_user_path) { if (!_user_background_dir_init()) return; } if (!config->background) return; if (strncmp(config_background_dir, _user_path, strlen(config_background_dir)) == 0) { _bubble_show(_("Source file is target file")); free(config_background_dir); return; } const char *newfile = _import_background(config->background); if (newfile) { eina_stringshare_replace(&(config->background), newfile); config_save(config, NULL); main_media_update(config); eina_stringshare_del(newfile); _bubble_show(_("Picture imported")); elm_object_text_set(_entry, config_background_dir); } else { _bubble_show(_("Failed")); } free(config_background_dir); } void options_wallpaper(Evas_Object *opbox, Evas_Object *term) { Evas_Object *frame, *o, *bx, *bx2; Config *config = termio_config_get(term); char path[PATH_MAX], *config_background_dir; _term = term; frame = o = elm_frame_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_text_set(o, _("Background")); evas_object_show(o); elm_box_pack_end(opbox, o); _flip = o = elm_flip_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_content_set(frame, o); evas_object_show(o); o = elm_fileselector_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_part_content_set(_flip, "back", o); elm_fileselector_folder_only_set(o, EINA_TRUE); evas_object_smart_callback_add(o, "done", _cb_fileselector, NULL); evas_object_show(o); bx = o = elm_box_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_part_content_set(_flip, "front", bx); evas_object_show(o); bx2 = o = elm_box_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0); elm_box_horizontal_set(o, EINA_TRUE); elm_box_pack_start(bx, o); evas_object_show(o); _entry = o = elm_entry_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0); elm_entry_single_line_set(o, EINA_TRUE); elm_entry_scrollable_set(o, EINA_TRUE); elm_scroller_policy_set(o, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF); evas_object_smart_callback_add(_entry, "changed", _cb_entry_changed, NULL); elm_box_pack_start(bx2, o); evas_object_show(o); o = elm_hoversel_add(opbox); evas_object_size_hint_weight_set(o, 0.0, 0.0); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0); elm_object_text_set(o, _("Select Path")); elm_box_pack_end(bx2, o); evas_object_show(o); snprintf(path, PATH_MAX, "%s/backgrounds/", elm_app_data_dir_get()); _system_background_dir_init(); elm_hoversel_item_add(o, _("System"), NULL, ELM_ICON_NONE, _cb_hoversel_select , _system_path); if (_user_background_dir_init()) elm_hoversel_item_add(o, _("User"), NULL, ELM_ICON_NONE, _cb_hoversel_select , _user_path); //In the other case it has failed, so dont show the user item elm_hoversel_item_add(o, _("Other"), NULL, ELM_ICON_NONE, _cb_hoversel_select , NULL); _bg_grid = o = elm_gengrid_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_smart_callback_add(o, "clicked,double", _cb_grid_doubleclick, NULL); elm_gengrid_item_size_set(o, elm_config_scale_get() * 100, elm_config_scale_get() * 80); elm_box_pack_end(bx, o); evas_object_show(o); o = elm_label_add(opbox); evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0); evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0); elm_object_text_set(o, _("Double click on a picture to import it")); elm_box_pack_end(bx, o); evas_object_show(o); if (config->background) { config_background_dir = ecore_file_dir_get(config->background); elm_object_text_set(_entry, config_background_dir); free(config_background_dir); } else { elm_object_text_set(_entry, _system_path); } } void options_wallpaper_clear(void) { Background_Item *item; EINA_LIST_FREE(_backgroundlist, item) { if (item->path) eina_stringshare_del(item->path); free(item); } _backgroundlist = NULL; if (_user_path) { eina_stringshare_del(_user_path); _user_path = NULL; } if (_system_path) { eina_stringshare_del(_system_path); _system_path = NULL; } }
ihorlaitan/terminology
src/bin/options_wallpaper.c
C
bsd-2-clause
15,837
/* * Copyright (C) 2011 Google Inc. All rights reserved. * Copyright (C) Research In Motion Limited 2011. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "config.h" #if ENABLE(WEB_SOCKETS) #include "WebSocketHandshake.h" #include "Base64.h" #include "Cookie.h" #include "CookieJar.h" #include "Document.h" #include "HTTPHeaderMap.h" #include "KURL.h" #include "Logging.h" #include "ScriptCallStack.h" #include "ScriptExecutionContext.h" #include "SecurityOrigin.h" #include <wtf/CryptographicallyRandomNumber.h> #include <wtf/MD5.h> #include <wtf/SHA1.h> #include <wtf/StdLibExtras.h> #include <wtf/StringExtras.h> #include <wtf/Vector.h> #include <wtf/text/CString.h> #include <wtf/text/StringBuilder.h> #include <wtf/text/WTFString.h> #include <wtf/unicode/CharacterNames.h> namespace WebCore { static const char randomCharacterInSecWebSocketKey[] = "!\"#$%&'()*+,-./:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; static String resourceName(const KURL& url) { String name = url.path(); if (name.isEmpty()) name = "/"; if (!url.query().isNull()) name += "?" + url.query(); ASSERT(!name.isEmpty()); ASSERT(!name.contains(' ')); return name; } static String hostName(const KURL& url, bool secure) { ASSERT(url.protocolIs("wss") == secure); StringBuilder builder; builder.append(url.host().lower()); if (url.port() && ((!secure && url.port() != 80) || (secure && url.port() != 443))) { builder.append(':'); builder.append(String::number(url.port())); } return builder.toString(); } static const size_t maxConsoleMessageSize = 128; static String trimConsoleMessage(const char* p, size_t len) { String s = String(p, std::min<size_t>(len, maxConsoleMessageSize)); if (len > maxConsoleMessageSize) s.append(horizontalEllipsis); return s; } static uint32_t randomNumberLessThan(uint32_t n) { if (!n) return 0; if (n == std::numeric_limits<uint32_t>::max()) return cryptographicallyRandomNumber(); uint32_t max = std::numeric_limits<uint32_t>::max() - (std::numeric_limits<uint32_t>::max() % n); ASSERT(!(max % n)); uint32_t v; do { v = cryptographicallyRandomNumber(); } while (v >= max); return v % n; } static void generateHixie76SecWebSocketKey(uint32_t& number, String& key) { uint32_t space = randomNumberLessThan(12) + 1; uint32_t max = 4294967295U / space; number = randomNumberLessThan(max); uint32_t product = number * space; String s = String::number(product); int n = randomNumberLessThan(12) + 1; DEFINE_STATIC_LOCAL(String, randomChars, (randomCharacterInSecWebSocketKey)); for (int i = 0; i < n; i++) { int pos = randomNumberLessThan(s.length() + 1); int chpos = randomNumberLessThan(randomChars.length()); s.insert(randomChars.substring(chpos, 1), pos); } DEFINE_STATIC_LOCAL(String, spaceChar, (" ")); for (uint32_t i = 0; i < space; i++) { int pos = randomNumberLessThan(s.length() - 1) + 1; s.insert(spaceChar, pos); } ASSERT(s[0] != ' '); ASSERT(s[s.length() - 1] != ' '); key = s; } static void generateHixie76Key3(unsigned char key3[8]) { cryptographicallyRandomValues(key3, 8); } static void setChallengeNumber(unsigned char* buf, uint32_t number) { unsigned char* p = buf + 3; for (int i = 0; i < 4; i++) { *p = number & 0xFF; --p; number >>= 8; } } static void generateHixie76ExpectedChallengeResponse(uint32_t number1, uint32_t number2, unsigned char key3[8], unsigned char expectedChallenge[16]) { unsigned char challenge[16]; setChallengeNumber(&challenge[0], number1); setChallengeNumber(&challenge[4], number2); memcpy(&challenge[8], key3, 8); MD5 md5; md5.addBytes(challenge, sizeof(challenge)); Vector<uint8_t, 16> digest; md5.checksum(digest); memcpy(expectedChallenge, digest.data(), 16); } static String generateSecWebSocketKey() { static const size_t nonceSize = 16; unsigned char key[nonceSize]; cryptographicallyRandomValues(key, nonceSize); return base64Encode(reinterpret_cast<char*>(key), nonceSize); } static String getExpectedWebSocketAccept(const String& secWebSocketKey) { static const char* const webSocketKeyGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; static const size_t sha1HashSize = 20; // FIXME: This should be defined in SHA1.h. SHA1 sha1; CString keyData = secWebSocketKey.ascii(); sha1.addBytes(reinterpret_cast<const uint8_t*>(keyData.data()), keyData.length()); sha1.addBytes(reinterpret_cast<const uint8_t*>(webSocketKeyGUID), strlen(webSocketKeyGUID)); Vector<uint8_t, sha1HashSize> hash; sha1.computeHash(hash); return base64Encode(reinterpret_cast<const char*>(hash.data()), sha1HashSize); } WebSocketHandshake::WebSocketHandshake(const KURL& url, const String& protocol, ScriptExecutionContext* context, bool useHixie76Protocol) : m_url(url) , m_clientProtocol(protocol) , m_secure(m_url.protocolIs("wss")) , m_context(context) , m_useHixie76Protocol(useHixie76Protocol) , m_mode(Incomplete) { if (m_useHixie76Protocol) { uint32_t number1; uint32_t number2; generateHixie76SecWebSocketKey(number1, m_hixie76SecWebSocketKey1); generateHixie76SecWebSocketKey(number2, m_hixie76SecWebSocketKey2); generateHixie76Key3(m_hixie76Key3); generateHixie76ExpectedChallengeResponse(number1, number2, m_hixie76Key3, m_hixie76ExpectedChallengeResponse); } else { m_secWebSocketKey = generateSecWebSocketKey(); m_expectedAccept = getExpectedWebSocketAccept(m_secWebSocketKey); } } WebSocketHandshake::~WebSocketHandshake() { } const KURL& WebSocketHandshake::url() const { return m_url; } void WebSocketHandshake::setURL(const KURL& url) { m_url = url.copy(); } const String WebSocketHandshake::host() const { return m_url.host().lower(); } const String& WebSocketHandshake::clientProtocol() const { return m_clientProtocol; } void WebSocketHandshake::setClientProtocol(const String& protocol) { m_clientProtocol = protocol; } bool WebSocketHandshake::secure() const { return m_secure; } String WebSocketHandshake::clientOrigin() const { return m_context->securityOrigin()->toString(); } String WebSocketHandshake::clientLocation() const { StringBuilder builder; builder.append(m_secure ? "wss" : "ws"); builder.append("://"); builder.append(hostName(m_url, m_secure)); builder.append(resourceName(m_url)); return builder.toString(); } CString WebSocketHandshake::clientHandshakeMessage() const { // Keep the following consistent with clientHandshakeRequest(). StringBuilder builder; builder.append("GET "); builder.append(resourceName(m_url)); builder.append(" HTTP/1.1\r\n"); Vector<String> fields; if (m_useHixie76Protocol) fields.append("Upgrade: WebSocket"); else fields.append("Upgrade: websocket"); fields.append("Connection: Upgrade"); fields.append("Host: " + hostName(m_url, m_secure)); if (m_useHixie76Protocol) fields.append("Origin: " + clientOrigin()); else fields.append("Sec-WebSocket-Origin: " + clientOrigin()); if (!m_clientProtocol.isEmpty()) fields.append("Sec-WebSocket-Protocol: " + m_clientProtocol); KURL url = httpURLForAuthenticationAndCookies(); if (m_context->isDocument()) { Document* document = static_cast<Document*>(m_context); String cookie = cookieRequestHeaderFieldValue(document, url); if (!cookie.isEmpty()) fields.append("Cookie: " + cookie); // Set "Cookie2: <cookie>" if cookies 2 exists for url? } if (m_useHixie76Protocol) { fields.append("Sec-WebSocket-Key1: " + m_hixie76SecWebSocketKey1); fields.append("Sec-WebSocket-Key2: " + m_hixie76SecWebSocketKey2); } else { fields.append("Sec-WebSocket-Key: " + m_secWebSocketKey); fields.append("Sec-WebSocket-Version: 8"); } // Fields in the handshake are sent by the client in a random order; the // order is not meaningful. Thus, it's ok to send the order we constructed // the fields. for (size_t i = 0; i < fields.size(); i++) { builder.append(fields[i]); builder.append("\r\n"); } builder.append("\r\n"); CString handshakeHeader = builder.toString().utf8(); // Hybi-10 handshake is complete at this point. if (!m_useHixie76Protocol) return handshakeHeader; // Hixie-76 protocol requires sending eight-byte data (so-called "key3") after the request header fields. char* characterBuffer = 0; CString msg = CString::newUninitialized(handshakeHeader.length() + sizeof(m_hixie76Key3), characterBuffer); memcpy(characterBuffer, handshakeHeader.data(), handshakeHeader.length()); memcpy(characterBuffer + handshakeHeader.length(), m_hixie76Key3, sizeof(m_hixie76Key3)); return msg; } WebSocketHandshakeRequest WebSocketHandshake::clientHandshakeRequest() const { // Keep the following consistent with clientHandshakeMessage(). // FIXME: do we need to store m_secWebSocketKey1, m_secWebSocketKey2 and // m_key3 in WebSocketHandshakeRequest? WebSocketHandshakeRequest request("GET", m_url); if (m_useHixie76Protocol) request.addHeaderField("Upgrade", "WebSocket"); else request.addHeaderField("Upgrade", "websocket"); request.addHeaderField("Connection", "Upgrade"); request.addHeaderField("Host", hostName(m_url, m_secure)); if (m_useHixie76Protocol) request.addHeaderField("Origin", clientOrigin()); else request.addHeaderField("Sec-WebSocket-Origin", clientOrigin()); if (!m_clientProtocol.isEmpty()) request.addHeaderField("Sec-WebSocket-Protocol:", m_clientProtocol); KURL url = httpURLForAuthenticationAndCookies(); if (m_context->isDocument()) { Document* document = static_cast<Document*>(m_context); String cookie = cookieRequestHeaderFieldValue(document, url); if (!cookie.isEmpty()) request.addHeaderField("Cookie", cookie); // Set "Cookie2: <cookie>" if cookies 2 exists for url? } if (m_useHixie76Protocol) { request.addHeaderField("Sec-WebSocket-Key1", m_hixie76SecWebSocketKey1); request.addHeaderField("Sec-WebSocket-Key2", m_hixie76SecWebSocketKey2); request.setKey3(m_hixie76Key3); } else { request.addHeaderField("Sec-WebSocket-Key", m_secWebSocketKey); request.addHeaderField("Sec-WebSocket-Version", "8"); } return request; } void WebSocketHandshake::reset() { m_mode = Incomplete; } void WebSocketHandshake::clearScriptExecutionContext() { m_context = 0; } int WebSocketHandshake::readServerHandshake(const char* header, size_t len) { m_mode = Incomplete; int statusCode; String statusText; int lineLength = readStatusLine(header, len, statusCode, statusText); if (lineLength == -1) return -1; if (statusCode == -1) { m_mode = Failed; // m_failureReason is set inside readStatusLine(). return len; } LOG(Network, "response code: %d", statusCode); m_response.setStatusCode(statusCode); m_response.setStatusText(statusText); if (statusCode != 101) { m_mode = Failed; m_failureReason = "Unexpected response code: " + String::number(statusCode); return len; } m_mode = Normal; if (!strnstr(header, "\r\n\r\n", len)) { // Just hasn't been received fully yet. m_mode = Incomplete; return -1; } const char* p = readHTTPHeaders(header + lineLength, header + len); if (!p) { LOG(Network, "readHTTPHeaders failed"); m_mode = Failed; // m_failureReason is set inside readHTTPHeaders(). return len; } if (!checkResponseHeaders()) { LOG(Network, "header process failed"); m_mode = Failed; return p - header; } if (!m_useHixie76Protocol) { // Hybi-10 handshake is complete at this point. m_mode = Connected; return p - header; } // In hixie-76 protocol, server's handshake contains sixteen-byte data (called "challenge response") // after the header fields. if (len < static_cast<size_t>(p - header + sizeof(m_hixie76ExpectedChallengeResponse))) { // Just hasn't been received /expected/ yet. m_mode = Incomplete; return -1; } m_response.setChallengeResponse(static_cast<const unsigned char*>(static_cast<const void*>(p))); if (memcmp(p, m_hixie76ExpectedChallengeResponse, sizeof(m_hixie76ExpectedChallengeResponse))) { m_mode = Failed; return (p - header) + sizeof(m_hixie76ExpectedChallengeResponse); } m_mode = Connected; return (p - header) + sizeof(m_hixie76ExpectedChallengeResponse); } WebSocketHandshake::Mode WebSocketHandshake::mode() const { return m_mode; } String WebSocketHandshake::failureReason() const { return m_failureReason; } String WebSocketHandshake::serverWebSocketOrigin() const { return m_response.headerFields().get("sec-websocket-origin"); } String WebSocketHandshake::serverWebSocketLocation() const { return m_response.headerFields().get("sec-websocket-location"); } String WebSocketHandshake::serverWebSocketProtocol() const { return m_response.headerFields().get("sec-websocket-protocol"); } String WebSocketHandshake::serverSetCookie() const { return m_response.headerFields().get("set-cookie"); } String WebSocketHandshake::serverSetCookie2() const { return m_response.headerFields().get("set-cookie2"); } String WebSocketHandshake::serverUpgrade() const { return m_response.headerFields().get("upgrade"); } String WebSocketHandshake::serverConnection() const { return m_response.headerFields().get("connection"); } String WebSocketHandshake::serverWebSocketAccept() const { return m_response.headerFields().get("sec-websocket-accept"); } String WebSocketHandshake::serverWebSocketExtensions() const { return m_response.headerFields().get("sec-websocket-extensions"); } const WebSocketHandshakeResponse& WebSocketHandshake::serverHandshakeResponse() const { return m_response; } KURL WebSocketHandshake::httpURLForAuthenticationAndCookies() const { KURL url = m_url.copy(); bool couldSetProtocol = url.setProtocol(m_secure ? "https" : "http"); ASSERT_UNUSED(couldSetProtocol, couldSetProtocol); return url; } // Returns the header length (including "\r\n"), or -1 if we have not received enough data yet. // If the line is malformed or the status code is not a 3-digit number, // statusCode and statusText will be set to -1 and a null string, respectively. int WebSocketHandshake::readStatusLine(const char* header, size_t headerLength, int& statusCode, String& statusText) { // Arbitrary size limit to prevent the server from sending an unbounded // amount of data with no newlines and forcing us to buffer it all. static const int maximumLength = 1024; statusCode = -1; statusText = String(); const char* space1 = 0; const char* space2 = 0; const char* p; size_t consumedLength; for (p = header, consumedLength = 0; consumedLength < headerLength; p++, consumedLength++) { if (*p == ' ') { if (!space1) space1 = p; else if (!space2) space2 = p; } else if (*p == '\0') { // The caller isn't prepared to deal with null bytes in status // line. WebSockets specification doesn't prohibit this, but HTTP // does, so we'll just treat this as an error. m_failureReason = "Status line contains embedded null"; return p + 1 - header; } else if (*p == '\n') break; } if (consumedLength == headerLength) return -1; // We have not received '\n' yet. const char* end = p + 1; int lineLength = end - header; if (lineLength > maximumLength) { m_failureReason = "Status line is too long"; return maximumLength; } // The line must end with "\r\n". if (lineLength < 2 || *(end - 2) != '\r') { m_failureReason = "Status line does not end with CRLF"; return lineLength; } if (!space1 || !space2) { m_failureReason = "No response code found: " + trimConsoleMessage(header, lineLength - 2); return lineLength; } String statusCodeString(space1 + 1, space2 - space1 - 1); if (statusCodeString.length() != 3) // Status code must consist of three digits. return lineLength; for (int i = 0; i < 3; ++i) if (statusCodeString[i] < '0' || statusCodeString[i] > '9') { m_failureReason = "Invalid status code: " + statusCodeString; return lineLength; } bool ok = false; statusCode = statusCodeString.toInt(&ok); ASSERT(ok); statusText = String(space2 + 1, end - space2 - 3); // Exclude "\r\n". return lineLength; } const char* WebSocketHandshake::readHTTPHeaders(const char* start, const char* end) { m_response.clearHeaderFields(); Vector<char> name; Vector<char> value; for (const char* p = start; p < end; p++) { name.clear(); value.clear(); for (; p < end; p++) { switch (*p) { case '\r': if (name.isEmpty()) { if (p + 1 < end && *(p + 1) == '\n') return p + 2; m_failureReason = "CR doesn't follow LF at " + trimConsoleMessage(p, end - p); return 0; } m_failureReason = "Unexpected CR in name at " + trimConsoleMessage(name.data(), name.size()); return 0; case '\n': m_failureReason = "Unexpected LF in name at " + trimConsoleMessage(name.data(), name.size()); return 0; case ':': break; default: name.append(*p); continue; } if (*p == ':') { ++p; break; } } for (; p < end && *p == 0x20; p++) { } for (; p < end; p++) { switch (*p) { case '\r': break; case '\n': m_failureReason = "Unexpected LF in value at " + trimConsoleMessage(value.data(), value.size()); return 0; default: value.append(*p); } if (*p == '\r') { ++p; break; } } if (p >= end || *p != '\n') { m_failureReason = "CR doesn't follow LF after value at " + trimConsoleMessage(p, end - p); return 0; } AtomicString nameStr = AtomicString::fromUTF8(name.data(), name.size()); String valueStr = String::fromUTF8(value.data(), value.size()); if (nameStr.isNull()) { m_failureReason = "Invalid UTF-8 sequence in header name"; return 0; } if (valueStr.isNull()) { m_failureReason = "Invalid UTF-8 sequence in header value"; return 0; } LOG(Network, "name=%s value=%s", nameStr.string().utf8().data(), valueStr.utf8().data()); m_response.addHeaderField(nameStr, valueStr); } ASSERT_NOT_REACHED(); return 0; } bool WebSocketHandshake::checkResponseHeaders() { const String& serverWebSocketLocation = this->serverWebSocketLocation(); const String& serverWebSocketOrigin = this->serverWebSocketOrigin(); const String& serverWebSocketProtocol = this->serverWebSocketProtocol(); const String& serverUpgrade = this->serverUpgrade(); const String& serverConnection = this->serverConnection(); const String& serverWebSocketAccept = this->serverWebSocketAccept(); const String& serverWebSocketExtensions = this->serverWebSocketExtensions(); if (serverUpgrade.isNull()) { m_failureReason = "Error during WebSocket handshake: 'Upgrade' header is missing"; return false; } if (serverConnection.isNull()) { m_failureReason = "Error during WebSocket handshake: 'Connection' header is missing"; return false; } if (m_useHixie76Protocol) { if (serverWebSocketOrigin.isNull()) { m_failureReason = "Error during WebSocket handshake: 'Sec-WebSocket-Origin' header is missing"; return false; } if (serverWebSocketLocation.isNull()) { m_failureReason = "Error during WebSocket handshake: 'Sec-WebSocket-Location' header is missing"; return false; } } else { if (serverWebSocketAccept.isNull()) { m_failureReason = "Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing"; return false; } } if (!equalIgnoringCase(serverUpgrade, "websocket")) { m_failureReason = "Error during WebSocket handshake: 'Upgrade' header value is not 'WebSocket'"; return false; } if (!equalIgnoringCase(serverConnection, "upgrade")) { m_failureReason = "Error during WebSocket handshake: 'Connection' header value is not 'Upgrade'"; return false; } if (m_useHixie76Protocol) { if (clientOrigin() != serverWebSocketOrigin) { m_failureReason = "Error during WebSocket handshake: origin mismatch: " + clientOrigin() + " != " + serverWebSocketOrigin; return false; } if (clientLocation() != serverWebSocketLocation) { m_failureReason = "Error during WebSocket handshake: location mismatch: " + clientLocation() + " != " + serverWebSocketLocation; return false; } if (!m_clientProtocol.isEmpty() && m_clientProtocol != serverWebSocketProtocol) { m_failureReason = "Error during WebSocket handshake: protocol mismatch: " + m_clientProtocol + " != " + serverWebSocketProtocol; return false; } } else { if (serverWebSocketAccept != m_expectedAccept) { m_failureReason = "Error during WebSocket handshake: Sec-WebSocket-Accept mismatch"; return false; } if (!serverWebSocketExtensions.isNull()) { // WebSocket protocol extensions are not supported yet. // We do not send Sec-WebSocket-Extensions header in our request, thus // servers should not return this header, either. m_failureReason = "Error during WebSocket handshake: Sec-WebSocket-Extensions header is invalid"; return false; } } return true; } } // namespace WebCore #endif // ENABLE(WEB_SOCKETS)
Treeeater/WebPermission
websockets/WebSocketHandshake.cpp
C++
bsd-2-clause
24,458
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of EITHER: * * (1) The GNU Lesser General Public License as published by the Free * * Software Foundation; either version 2.1 of the License, or (at * * your option) any later version. The text of the GNU Lesser * * General Public License is included with this library in the * * file LICENSE.TXT. * * (2) The BSD-style license that is included with this library in * * the file LICENSE-BSD.TXT. * * * * 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 files * * LICENSE.TXT and LICENSE-BSD.TXT for more details. * * * *************************************************************************/ /* optimized and unoptimized vector and matrix functions */ #ifndef _ODE_MATRIX_H_ #define _ODE_MATRIX_H_ #include "common.h" #ifdef __cplusplus extern "C" { #endif /* set a vector/matrix of size n to all zeros, or to a specific value. */ ODE_API void dSetZero (dReal *a, int n); ODE_API void dSetValue (dReal *a, int n, dReal value); /* get the dot product of two n*1 vectors. if n <= 0 then * zero will be returned (in which case a and b need not be valid). */ ODE_API dReal dDot (const dReal *a, const dReal *b, int n); /* get the dot products of (a0,b), (a1,b), etc and return them in outsum. * all vectors are n*1. if n <= 0 then zeroes will be returned (in which case * the input vectors need not be valid). this function is somewhat faster * than calling dDot() for all of the combinations separately. */ /* NOT INCLUDED in the library for now. void dMultidot2 (const dReal *a0, const dReal *a1, const dReal *b, dReal *outsum, int n); */ /* matrix multiplication. all matrices are stored in standard row format. * the digit refers to the argument that is transposed: * 0: A = B * C (sizes: A:p*r B:p*q C:q*r) * 1: A = B' * C (sizes: A:p*r B:q*p C:q*r) * 2: A = B * C' (sizes: A:p*r B:p*q C:r*q) * case 1,2 are equivalent to saying that the operation is A=B*C but * B or C are stored in standard column format. */ ODE_API void dMultiply0 (dReal *A, const dReal *B, const dReal *C, int p,int q,int r); ODE_API void dMultiply1 (dReal *A, const dReal *B, const dReal *C, int p,int q,int r); ODE_API void dMultiply2 (dReal *A, const dReal *B, const dReal *C, int p,int q,int r); /* do an in-place cholesky decomposition on the lower triangle of the n*n * symmetric matrix A (which is stored by rows). the resulting lower triangle * will be such that L*L'=A. return 1 on success and 0 on failure (on failure * the matrix is not positive definite). */ ODE_API int dFactorCholesky (dReal *A, int n); /* solve for x: L*L'*x = b, and put the result back into x. * L is size n*n, b is size n*1. only the lower triangle of L is considered. */ ODE_API void dSolveCholesky (const dReal *L, dReal *b, int n); /* compute the inverse of the n*n positive definite matrix A and put it in * Ainv. this is not especially fast. this returns 1 on success (A was * positive definite) or 0 on failure (not PD). */ ODE_API int dInvertPDMatrix (const dReal *A, dReal *Ainv, int n); /* check whether an n*n matrix A is positive definite, return 1/0 (yes/no). * positive definite means that x'*A*x > 0 for any x. this performs a * cholesky decomposition of A. if the decomposition fails then the matrix * is not positive definite. A is stored by rows. A is not altered. */ ODE_API int dIsPositiveDefinite (const dReal *A, int n); /* factorize a matrix A into L*D*L', where L is lower triangular with ones on * the diagonal, and D is diagonal. * A is an n*n matrix stored by rows, with a leading dimension of n rounded * up to 4. L is written into the strict lower triangle of A (the ones are not * written) and the reciprocal of the diagonal elements of D are written into * d. */ ODE_API void dFactorLDLT (dReal *A, dReal *d, int n, int nskip); /* solve L*x=b, where L is n*n lower triangular with ones on the diagonal, * and x,b are n*1. b is overwritten with x. * the leading dimension of L is `nskip'. */ ODE_API void dSolveL1 (const dReal *L, dReal *b, int n, int nskip); /* solve L'*x=b, where L is n*n lower triangular with ones on the diagonal, * and x,b are n*1. b is overwritten with x. * the leading dimension of L is `nskip'. */ ODE_API void dSolveL1T (const dReal *L, dReal *b, int n, int nskip); /* in matlab syntax: a(1:n) = a(1:n) .* d(1:n) */ ODE_API void dVectorScale (dReal *a, const dReal *d, int n); /* given `L', a n*n lower triangular matrix with ones on the diagonal, * and `d', a n*1 vector of the reciprocal diagonal elements of an n*n matrix * D, solve L*D*L'*x=b where x,b are n*1. x overwrites b. * the leading dimension of L is `nskip'. */ ODE_API void dSolveLDLT (const dReal *L, const dReal *d, dReal *b, int n, int nskip); /* given an L*D*L' factorization of an n*n matrix A, return the updated * factorization L2*D2*L2' of A plus the following "top left" matrix: * * [ b a' ] <-- b is a[0] * [ a 0 ] <-- a is a[1..n-1] * * - L has size n*n, its leading dimension is nskip. L is lower triangular * with ones on the diagonal. only the lower triangle of L is referenced. * - d has size n. d contains the reciprocal diagonal elements of D. * - a has size n. * the result is written into L, except that the left column of L and d[0] * are not actually modified. see ldltaddTL.m for further comments. */ ODE_API void dLDLTAddTL (dReal *L, dReal *d, const dReal *a, int n, int nskip); /* given an L*D*L' factorization of a permuted matrix A, produce a new * factorization for row and column `r' removed. * - A has size n1*n1, its leading dimension in nskip. A is symmetric and * positive definite. only the lower triangle of A is referenced. * A itself may actually be an array of row pointers. * - L has size n2*n2, its leading dimension in nskip. L is lower triangular * with ones on the diagonal. only the lower triangle of L is referenced. * - d has size n2. d contains the reciprocal diagonal elements of D. * - p is a permutation vector. it contains n2 indexes into A. each index * must be in the range 0..n1-1. * - r is the row/column of L to remove. * the new L will be written within the old L, i.e. will have the same leading * dimension. the last row and column of L, and the last element of d, are * undefined on exit. * * a fast O(n^2) algorithm is used. see ldltremove.m for further comments. */ ODE_API void dLDLTRemove (dReal **A, const int *p, dReal *L, dReal *d, int n1, int n2, int r, int nskip); /* given an n*n matrix A (with leading dimension nskip), remove the r'th row * and column by moving elements. the new matrix will have the same leading * dimension. the last row and column of A are untouched on exit. */ ODE_API void dRemoveRowCol (dReal *A, int n, int nskip, int r); //#if defined(__ODE__) void _dSetZero (dReal *a, size_t n); void _dSetValue (dReal *a, size_t n, dReal value); dReal _dDot (const dReal *a, const dReal *b, int n); void _dMultiply0 (dReal *A, const dReal *B, const dReal *C, int p,int q,int r); void _dMultiply1 (dReal *A, const dReal *B, const dReal *C, int p,int q,int r); void _dMultiply2 (dReal *A, const dReal *B, const dReal *C, int p,int q,int r); int _dFactorCholesky (dReal *A, int n, void *tmpbuf); void _dSolveCholesky (const dReal *L, dReal *b, int n, void *tmpbuf); int _dInvertPDMatrix (const dReal *A, dReal *Ainv, int n, void *tmpbuf); int _dIsPositiveDefinite (const dReal *A, int n, void *tmpbuf); void _dFactorLDLT (dReal *A, dReal *d, int n, int nskip); void _dSolveL1 (const dReal *L, dReal *b, int n, int nskip); void _dSolveL1T (const dReal *L, dReal *b, int n, int nskip); void _dVectorScale (dReal *a, const dReal *d, int n); void _dSolveLDLT (const dReal *L, const dReal *d, dReal *b, int n, int nskip); void _dLDLTAddTL (dReal *L, dReal *d, const dReal *a, int n, int nskip, void *tmpbuf); void _dLDLTRemove (dReal **A, const int *p, dReal *L, dReal *d, int n1, int n2, int r, int nskip, void *tmpbuf); void _dRemoveRowCol (dReal *A, int n, int nskip, int r); PURE_INLINE size_t _dEstimateFactorCholeskyTmpbufSize(int n) { return dPAD(n) * sizeof(dReal); } PURE_INLINE size_t _dEstimateSolveCholeskyTmpbufSize(int n) { return dPAD(n) * sizeof(dReal); } PURE_INLINE size_t _dEstimateInvertPDMatrixTmpbufSize(int n) { size_t FactorCholesky_size = _dEstimateFactorCholeskyTmpbufSize(n); size_t SolveCholesky_size = _dEstimateSolveCholeskyTmpbufSize(n); size_t MaxCholesky_size = FactorCholesky_size > SolveCholesky_size ? FactorCholesky_size : SolveCholesky_size; return dPAD(n) * (n + 1) * sizeof(dReal) + MaxCholesky_size; } PURE_INLINE size_t _dEstimateIsPositiveDefiniteTmpbufSize(int n) { return dPAD(n) * n * sizeof(dReal) + _dEstimateFactorCholeskyTmpbufSize(n); } PURE_INLINE size_t _dEstimateLDLTAddTLTmpbufSize(int nskip) { return nskip * 2 * sizeof(dReal); } PURE_INLINE size_t _dEstimateLDLTRemoveTmpbufSize(int n2, int nskip) { return n2 * sizeof(dReal) + _dEstimateLDLTAddTLTmpbufSize(nskip); } // For internal use #define dSetZero(a, n) _dSetZero(a, n) #define dSetValue(a, n, value) _dSetValue(a, n, value) #define dDot(a, b, n) _dDot(a, b, n) #define dMultiply0(A, B, C, p, q, r) _dMultiply0(A, B, C, p, q, r) #define dMultiply1(A, B, C, p, q, r) _dMultiply1(A, B, C, p, q, r) #define dMultiply2(A, B, C, p, q, r) _dMultiply2(A, B, C, p, q, r) #define dFactorCholesky(A, n, tmpbuf) _dFactorCholesky(A, n, tmpbuf) #define dSolveCholesky(L, b, n, tmpbuf) _dSolveCholesky(L, b, n, tmpbuf) #define dInvertPDMatrix(A, Ainv, n, tmpbuf) _dInvertPDMatrix(A, Ainv, n, tmpbuf) #define dIsPositiveDefinite(A, n, tmpbuf) _dIsPositiveDefinite(A, n, tmpbuf) #define dFactorLDLT(A, d, n, nskip) _dFactorLDLT(A, d, n, nskip) #define dSolveL1(L, b, n, nskip) _dSolveL1(L, b, n, nskip) #define dSolveL1T(L, b, n, nskip) _dSolveL1T(L, b, n, nskip) #define dVectorScale(a, d, n) _dVectorScale(a, d, n) #define dSolveLDLT(L, d, b, n, nskip) _dSolveLDLT(L, d, b, n, nskip) #define dLDLTAddTL(L, d, a, n, nskip, tmpbuf) _dLDLTAddTL(L, d, a, n, nskip, tmpbuf) #define dLDLTRemove(A, p, L, d, n1, n2, r, nskip, tmpbuf) _dLDLTRemove(A, p, L, d, n1, n2, r, nskip, tmpbuf) #define dRemoveRowCol(A, n, nskip, r) _dRemoveRowCol(A, n, nskip, r) #define dEstimateFactorCholeskyTmpbufSize(n) _dEstimateFactorCholeskyTmpbufSize(n) #define dEstimateSolveCholeskyTmpbufSize(n) _dEstimateSolveCholeskyTmpbufSize(n) #define dEstimateInvertPDMatrixTmpbufSize(n) _dEstimateInvertPDMatrixTmpbufSize(n) #define dEstimateIsPositiveDefiniteTmpbufSize(n) _dEstimateIsPositiveDefiniteTmpbufSize(n) #define dEstimateLDLTAddTLTmpbufSize(nskip) _dEstimateLDLTAddTLTmpbufSize(nskip) #define dEstimateLDLTRemoveTmpbufSize(n2, nskip) _dEstimateLDLTRemoveTmpbufSize(n2, nskip) //#endif // defined(__ODE__) #ifdef __cplusplus } #endif #endif
axeisghost/DART6motionBlur
dart/external/odelcpsolver/matrix.h
C
bsd-2-clause
11,792
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Connoisseur</title> <link href="styles/style.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <div id="container"> <header> <nav> <ul id="nav"> <li><a href="index.html">Home</a></li> <li><a href="about.html">About</a></li> <li><a href="menu.html">Menu</a></li> <li><a href="gallery.html">Gallery</a></li> <li><a href="reviews.html" class="current">Reviews</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <div class="wrapper"> <div class="border"></div> <article> <h3>Reviews</h3> <blockquote>Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.<span>~Lorem</span></blockquote> <div class="border3"></div> <blockquote>Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.<span>~Lorem</span></blockquote> <div class="border3"></div> <blockquote>Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.<span>~Lorem</span></blockquote> <div class="border3"></div> <blockquote>Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.<span>~Lorem</span></blockquote> <div class="border3"></div> </article> <aside class="sidebar"> <h3>Sidebar Widget</h3> <img src="images/home/1.jpg" width="280" alt="" /> <p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. In turpis pulvinar facilisis. Ut felis.<br> <a href="" class="right" style="padding-top:7px"><strong>Continue Reading &raquo;</strong></a></p> </aside> <div class="border2"></div> <br> </div> <footer> <div class="border"></div> <div class="footer-widget"> <h4>Some Title</h4> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. </p> </div> <div class="footer-widget"> <h4>From The Blog</h4> <ul class="blog"> <li><a href="#">Lorem Ipsum Dolor</a><br/> Orciint erdum condimen terdum nulla mcorper elit nam curabitur... </li> <li><a href="#">Praesent Et Eros</a><br/> Orciint erdum condimen terdum nulla mcorper elit nam curabitur... </li> <li><a href="#">Suspendisse In Neque</a><br/> Orciint erdum condimen terdum nulla mcorper elit nam curabitur... </li> <li><a href="#">Suspendisse In Neque</a><br/> Orciint erdum condimen terdum nulla mcorper elit nam curabitur... </li> </ul> </div> <div class="footer-widget"> <h4>We Are Social!</h4> <div id="social"> <a href="http://twitter.com/priteshgupta" class="s3d twitter"> Twitter <span class="icons twitter"></span> </a> <a href="http://www.facebook.com/priteshgupta" class="s3d facebook"> Facebook <span class="icons facebook"></span> </a> <a href="http://forrst.com/people/priteshgupta" class="s3d forrst"> Forrst <span class="icons forrst"></span> </a> <a href="http://www.flickr.com/photos/priteshgupta" class="s3d flickr"> Flickr <span class="icons flickr"></span> </a> <a href="#" class="s3d designmoo"> Designmoo <span class="icons designmoo"></span> </a> </div> </div> <div class="border2"></div> <br /> <span class="copyright"><span class="left"><br /> &copy; Copyright 2012 - All Rights Reserved - <a href="#">Domain Name</a></span><span class="right"><br /> Design by <a href="http://www.priteshgupta.com">PriteshGupta.com</a><br /> <br> <br /> </span></span></footer> </div> </body> </html>
priteshgupta/connoisseur
reviews.html
HTML
bsd-2-clause
5,233
/* * Copyright (C) 1997 Martin Jones (mjones@kde.org) * (C) 1997 Torben Weis (weis@kde.org) * (C) 1998 Waldo Bastian (bastian@kde.org) * (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserved. * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "config.h" #include "RenderTableSection.h" #include "CachedImage.h" #include "Document.h" #include "HitTestResult.h" #include "HTMLNames.h" #include "PaintInfo.h" #include "RenderTableCell.h" #include "RenderTableCol.h" #include "RenderTableRow.h" #include "RenderView.h" #include <limits> #include <wtf/HashSet.h> #include <wtf/Vector.h> using namespace std; namespace WebCore { using namespace HTMLNames; // Those 2 variables are used to balance the memory consumption vs the repaint time on big tables. static unsigned gMinTableSizeToUseFastPaintPathWithOverflowingCell = 75 * 75; static float gMaxAllowedOverflowingCellRatioForFastPaintPath = 0.1f; static inline void setRowLogicalHeightToRowStyleLogicalHeightIfNotRelative(RenderTableSection::RowStruct* row) { ASSERT(row && row->rowRenderer); row->logicalHeight = row->rowRenderer->style()->logicalHeight(); if (row->logicalHeight.isRelative()) row->logicalHeight = Length(); } RenderTableSection::RenderTableSection(Node* node) : RenderBox(node) , m_gridRows(0) , m_cCol(0) , m_cRow(-1) , m_outerBorderStart(0) , m_outerBorderEnd(0) , m_outerBorderBefore(0) , m_outerBorderAfter(0) , m_needsCellRecalc(false) , m_hasMultipleCellLevels(false) { // init RenderObject attributes setInline(false); // our object is not Inline } RenderTableSection::~RenderTableSection() { clearGrid(); } void RenderTableSection::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) { RenderBox::styleDidChange(diff, oldStyle); propagateStyleToAnonymousChildren(); } void RenderTableSection::willBeDestroyed() { RenderTable* recalcTable = table(); RenderBox::willBeDestroyed(); // recalc cell info because RenderTable has unguarded pointers // stored that point to this RenderTableSection. if (recalcTable) recalcTable->setNeedsSectionRecalc(); } void RenderTableSection::addChild(RenderObject* child, RenderObject* beforeChild) { // Make sure we don't append things after :after-generated content if we have it. if (!beforeChild) { if (RenderObject* afterContentRenderer = findAfterContentRenderer()) beforeChild = anonymousContainer(afterContentRenderer); } if (!child->isTableRow()) { RenderObject* last = beforeChild; if (!last) last = lastChild(); if (last && last->isAnonymous() && !last->isBeforeOrAfterContent()) { if (beforeChild == last) beforeChild = last->firstChild(); last->addChild(child, beforeChild); return; } // If beforeChild is inside an anonymous cell/row, insert into the cell or into // the anonymous row containing it, if there is one. RenderObject* lastBox = last; while (lastBox && lastBox->parent()->isAnonymous() && !lastBox->isTableRow()) lastBox = lastBox->parent(); if (lastBox && lastBox->isAnonymous() && !lastBox->isBeforeOrAfterContent()) { lastBox->addChild(child, beforeChild); return; } RenderObject* row = new (renderArena()) RenderTableRow(document() /* anonymous table row */); RefPtr<RenderStyle> newStyle = RenderStyle::create(); newStyle->inheritFrom(style()); newStyle->setDisplay(TABLE_ROW); row->setStyle(newStyle.release()); addChild(row, beforeChild); row->addChild(child); return; } if (beforeChild) setNeedsCellRecalc(); ++m_cRow; m_cCol = 0; // make sure we have enough rows if (!ensureRows(m_cRow + 1)) return; m_grid[m_cRow].rowRenderer = toRenderTableRow(child); if (!beforeChild) setRowLogicalHeightToRowStyleLogicalHeightIfNotRelative(&m_grid[m_cRow]); // If the next renderer is actually wrapped in an anonymous table row, we need to go up and find that. while (beforeChild && beforeChild->parent() != this) beforeChild = beforeChild->parent(); ASSERT(!beforeChild || beforeChild->isTableRow()); RenderBox::addChild(child, beforeChild); toRenderTableRow(child)->updateBeforeAndAfterContent(); } void RenderTableSection::removeChild(RenderObject* oldChild) { setNeedsCellRecalc(); RenderBox::removeChild(oldChild); } bool RenderTableSection::ensureRows(int numRows) { int nRows = m_gridRows; if (numRows > nRows) { if (numRows > static_cast<int>(m_grid.size())) { size_t maxSize = numeric_limits<size_t>::max() / sizeof(RowStruct); if (static_cast<size_t>(numRows) > maxSize) return false; m_grid.grow(numRows); } m_gridRows = numRows; int nCols = max(1, table()->numEffCols()); for (int r = nRows; r < numRows; r++) { m_grid[r].row = new Row(nCols); m_grid[r].rowRenderer = 0; m_grid[r].baseline = 0; m_grid[r].logicalHeight = Length(); } } return true; } void RenderTableSection::addCell(RenderTableCell* cell, RenderTableRow* row) { int rSpan = cell->rowSpan(); int cSpan = cell->colSpan(); Vector<RenderTable::ColumnStruct>& columns = table()->columns(); int nCols = columns.size(); // ### mozilla still seems to do the old HTML way, even for strict DTD // (see the annotation on table cell layouting in the CSS specs and the testcase below: // <TABLE border> // <TR><TD>1 <TD rowspan="2">2 <TD>3 <TD>4 // <TR><TD colspan="2">5 // </TABLE> while (m_cCol < nCols && (cellAt(m_cRow, m_cCol).hasCells() || cellAt(m_cRow, m_cCol).inColSpan)) m_cCol++; if (rSpan == 1) { // we ignore height settings on rowspan cells Length logicalHeight = cell->style()->logicalHeight(); if (logicalHeight.isPositive() || (logicalHeight.isRelative() && logicalHeight.value() >= 0)) { Length cRowLogicalHeight = m_grid[m_cRow].logicalHeight; switch (logicalHeight.type()) { case Percent: if (!(cRowLogicalHeight.isPercent()) || (cRowLogicalHeight.isPercent() && cRowLogicalHeight.percent() < logicalHeight.percent())) m_grid[m_cRow].logicalHeight = logicalHeight; break; case Fixed: if (cRowLogicalHeight.type() < Percent || (cRowLogicalHeight.isFixed() && cRowLogicalHeight.value() < logicalHeight.value())) m_grid[m_cRow].logicalHeight = logicalHeight; break; case Relative: default: break; } } } // make sure we have enough rows if (!ensureRows(m_cRow + rSpan)) return; m_grid[m_cRow].rowRenderer = row; int col = m_cCol; // tell the cell where it is bool inColSpan = false; while (cSpan) { int currentSpan; if (m_cCol >= nCols) { table()->appendColumn(cSpan); currentSpan = cSpan; } else { if (cSpan < (int)columns[m_cCol].span) table()->splitColumn(m_cCol, cSpan); currentSpan = columns[m_cCol].span; } for (int r = 0; r < rSpan; r++) { CellStruct& c = cellAt(m_cRow + r, m_cCol); ASSERT(cell); c.cells.append(cell); // If cells overlap then we take the slow path for painting. if (c.cells.size() > 1) m_hasMultipleCellLevels = true; if (inColSpan) c.inColSpan = true; } m_cCol++; cSpan -= currentSpan; inColSpan = true; } cell->setRow(m_cRow); cell->setCol(table()->effColToCol(col)); } void RenderTableSection::setCellLogicalWidths() { Vector<LayoutUnit>& columnPos = table()->columnPositions(); LayoutStateMaintainer statePusher(view()); for (int i = 0; i < m_gridRows; i++) { Row& row = *m_grid[i].row; int cols = row.size(); for (int j = 0; j < cols; j++) { CellStruct& current = row[j]; RenderTableCell* cell = current.primaryCell(); if (!cell || current.inColSpan) continue; int endCol = j; int cspan = cell->colSpan(); while (cspan && endCol < cols) { ASSERT(endCol < (int)table()->columns().size()); cspan -= table()->columns()[endCol].span; endCol++; } int w = columnPos[endCol] - columnPos[j] - table()->hBorderSpacing(); int oldLogicalWidth = cell->logicalWidth(); if (w != oldLogicalWidth) { cell->setNeedsLayout(true); if (!table()->selfNeedsLayout() && cell->checkForRepaintDuringLayout()) { if (!statePusher.didPush()) { // Technically, we should also push state for the row, but since // rows don't push a coordinate transform, that's not necessary. statePusher.push(this, IntSize(x(), y())); } cell->repaint(); } cell->updateLogicalWidth(w); } } } statePusher.pop(); // only pops if we pushed } LayoutUnit RenderTableSection::calcRowLogicalHeight() { #ifndef NDEBUG setNeedsLayoutIsForbidden(true); #endif ASSERT(!needsLayout()); RenderTableCell* cell; LayoutUnit spacing = table()->vBorderSpacing(); LayoutStateMaintainer statePusher(view()); m_rowPos.resize(m_gridRows + 1); m_rowPos[0] = spacing; for (int r = 0; r < m_gridRows; r++) { m_rowPos[r + 1] = 0; m_grid[r].baseline = 0; LayoutUnit baseline = 0; LayoutUnit bdesc = 0; LayoutUnit ch = m_grid[r].logicalHeight.calcMinValue(0); LayoutUnit pos = m_rowPos[r] + ch + (m_grid[r].rowRenderer ? spacing : 0); m_rowPos[r + 1] = max(m_rowPos[r + 1], pos); Row* row = m_grid[r].row; int totalCols = row->size(); for (int c = 0; c < totalCols; c++) { CellStruct& current = cellAt(r, c); cell = current.primaryCell(); if (!cell || current.inColSpan) continue; if ((cell->row() + cell->rowSpan() - 1) > r) continue; int indx = max(r - cell->rowSpan() + 1, 0); if (cell->hasOverrideHeight()) { if (!statePusher.didPush()) { // Technically, we should also push state for the row, but since // rows don't push a coordinate transform, that's not necessary. statePusher.push(this, locationOffset()); } cell->clearIntrinsicPadding(); cell->clearOverrideSize(); cell->setChildNeedsLayout(true, false); cell->layoutIfNeeded(); } LayoutUnit adjustedPaddingBefore = cell->paddingBefore() - cell->intrinsicPaddingBefore(); LayoutUnit adjustedPaddingAfter = cell->paddingAfter() - cell->intrinsicPaddingAfter(); LayoutUnit adjustedLogicalHeight = cell->logicalHeight() - (cell->intrinsicPaddingBefore() + cell->intrinsicPaddingAfter()); // Explicit heights use the border box in quirks mode. In strict mode do the right // thing and actually add in the border and padding. ch = cell->style()->logicalHeight().calcValue(0) + (document()->inQuirksMode() ? 0 : (adjustedPaddingBefore + adjustedPaddingAfter + cell->borderBefore() + cell->borderAfter())); ch = max(ch, adjustedLogicalHeight); pos = m_rowPos[indx] + ch + (m_grid[r].rowRenderer ? spacing : 0); m_rowPos[r + 1] = max(m_rowPos[r + 1], pos); // find out the baseline EVerticalAlign va = cell->style()->verticalAlign(); if (va == BASELINE || va == TEXT_BOTTOM || va == TEXT_TOP || va == SUPER || va == SUB) { LayoutUnit b = cell->cellBaselinePosition(); if (b > cell->borderBefore() + cell->paddingBefore()) { baseline = max(baseline, b - cell->intrinsicPaddingBefore()); bdesc = max(bdesc, m_rowPos[indx] + ch - (b - cell->intrinsicPaddingBefore())); } } } // do we have baseline aligned elements? if (baseline) { // increase rowheight if baseline requires m_rowPos[r + 1] = max(m_rowPos[r + 1], baseline + bdesc + (m_grid[r].rowRenderer ? spacing : 0)); m_grid[r].baseline = baseline; } m_rowPos[r + 1] = max(m_rowPos[r + 1], m_rowPos[r]); } #ifndef NDEBUG setNeedsLayoutIsForbidden(false); #endif ASSERT(!needsLayout()); statePusher.pop(); return m_rowPos[m_gridRows]; } void RenderTableSection::layout() { ASSERT(needsLayout()); LayoutStateMaintainer statePusher(view(), this, locationOffset(), style()->isFlippedBlocksWritingMode()); for (RenderObject* child = children()->firstChild(); child; child = child->nextSibling()) { if (child->isTableRow()) { child->layoutIfNeeded(); ASSERT(!child->needsLayout()); } } statePusher.pop(); setNeedsLayout(false); } LayoutUnit RenderTableSection::layoutRows(LayoutUnit toAdd) { #ifndef NDEBUG setNeedsLayoutIsForbidden(true); #endif ASSERT(!needsLayout()); LayoutUnit rHeight; int rindx; int totalRows = m_gridRows; // Set the width of our section now. The rows will also be this width. setLogicalWidth(table()->contentLogicalWidth()); m_overflow.clear(); m_overflowingCells.clear(); m_forceSlowPaintPathWithOverflowingCell = false; if (toAdd && totalRows && (m_rowPos[totalRows] || !nextSibling())) { LayoutUnit totalHeight = m_rowPos[totalRows] + toAdd; LayoutUnit dh = toAdd; int totalPercent = 0; int numAuto = 0; for (int r = 0; r < totalRows; r++) { if (m_grid[r].logicalHeight.isAuto()) numAuto++; else if (m_grid[r].logicalHeight.isPercent()) totalPercent += m_grid[r].logicalHeight.percent(); } if (totalPercent) { // try to satisfy percent LayoutUnit add = 0; totalPercent = min(totalPercent, 100); int rh = m_rowPos[1] - m_rowPos[0]; for (int r = 0; r < totalRows; r++) { if (totalPercent > 0 && m_grid[r].logicalHeight.isPercent()) { LayoutUnit toAdd = min(dh, static_cast<LayoutUnit>((totalHeight * m_grid[r].logicalHeight.percent() / 100) - rh)); // If toAdd is negative, then we don't want to shrink the row (this bug // affected Outlook Web Access). toAdd = max<LayoutUnit>(0, toAdd); add += toAdd; dh -= toAdd; totalPercent -= m_grid[r].logicalHeight.percent(); } if (r < totalRows - 1) rh = m_rowPos[r + 2] - m_rowPos[r + 1]; m_rowPos[r + 1] += add; } } if (numAuto) { // distribute over variable cols LayoutUnit add = 0; for (int r = 0; r < totalRows; r++) { if (numAuto > 0 && m_grid[r].logicalHeight.isAuto()) { LayoutUnit toAdd = dh / numAuto; add += toAdd; dh -= toAdd; numAuto--; } m_rowPos[r + 1] += add; } } if (dh > 0 && m_rowPos[totalRows]) { // if some left overs, distribute equally. LayoutUnit tot = m_rowPos[totalRows]; LayoutUnit add = 0; LayoutUnit prev = m_rowPos[0]; for (int r = 0; r < totalRows; r++) { // weight with the original height add += dh * (m_rowPos[r + 1] - prev) / tot; prev = m_rowPos[r + 1]; m_rowPos[r + 1] += add; } } } LayoutUnit hspacing = table()->hBorderSpacing(); LayoutUnit vspacing = table()->vBorderSpacing(); LayoutUnit nEffCols = table()->numEffCols(); LayoutStateMaintainer statePusher(view(), this, LayoutSize(x(), y()), style()->isFlippedBlocksWritingMode()); for (int r = 0; r < totalRows; r++) { // Set the row's x/y position and width/height. if (RenderTableRow* rowRenderer = m_grid[r].rowRenderer) { rowRenderer->setLocation(LayoutPoint(0, m_rowPos[r])); rowRenderer->setLogicalWidth(logicalWidth()); rowRenderer->setLogicalHeight(m_rowPos[r + 1] - m_rowPos[r] - vspacing); rowRenderer->updateLayerTransform(); } for (int c = 0; c < nEffCols; c++) { CellStruct& cs = cellAt(r, c); RenderTableCell* cell = cs.primaryCell(); if (!cell || cs.inColSpan) continue; rindx = cell->row(); rHeight = m_rowPos[rindx + cell->rowSpan()] - m_rowPos[rindx] - vspacing; // Force percent height children to lay themselves out again. // This will cause these children to grow to fill the cell. // FIXME: There is still more work to do here to fully match WinIE (should // it become necessary to do so). In quirks mode, WinIE behaves like we // do, but it will clip the cells that spill out of the table section. In // strict mode, Mozilla and WinIE both regrow the table to accommodate the // new height of the cell (thus letting the percentages cause growth one // time only). We may also not be handling row-spanning cells correctly. // // Note also the oddity where replaced elements always flex, and yet blocks/tables do // not necessarily flex. WinIE is crazy and inconsistent, and we can't hope to // match the behavior perfectly, but we'll continue to refine it as we discover new // bugs. :) bool cellChildrenFlex = false; bool flexAllChildren = cell->style()->logicalHeight().isFixed() || (!table()->style()->logicalHeight().isAuto() && rHeight != cell->logicalHeight()); for (RenderObject* o = cell->firstChild(); o; o = o->nextSibling()) { if (!o->isText() && o->style()->logicalHeight().isPercent() && (flexAllChildren || o->isReplaced() || (o->isBox() && toRenderBox(o)->scrollsOverflow()))) { // Tables with no sections do not flex. if (!o->isTable() || toRenderTable(o)->hasSections()) { o->setNeedsLayout(true, false); cellChildrenFlex = true; } } } if (HashSet<RenderBox*>* percentHeightDescendants = cell->percentHeightDescendants()) { HashSet<RenderBox*>::iterator end = percentHeightDescendants->end(); for (HashSet<RenderBox*>::iterator it = percentHeightDescendants->begin(); it != end; ++it) { RenderBox* box = *it; if (!box->isReplaced() && !box->scrollsOverflow() && !flexAllChildren) continue; while (box != cell) { if (box->normalChildNeedsLayout()) break; box->setChildNeedsLayout(true, false); box = box->containingBlock(); ASSERT(box); if (!box) break; } cellChildrenFlex = true; } } if (cellChildrenFlex) { cell->setChildNeedsLayout(true, false); // Alignment within a cell is based off the calculated // height, which becomes irrelevant once the cell has // been resized based off its percentage. cell->setOverrideHeightFromRowHeight(rHeight); cell->layoutIfNeeded(); // If the baseline moved, we may have to update the data for our row. Find out the new baseline. EVerticalAlign va = cell->style()->verticalAlign(); if (va == BASELINE || va == TEXT_BOTTOM || va == TEXT_TOP || va == SUPER || va == SUB) { LayoutUnit baseline = cell->cellBaselinePosition(); if (baseline > cell->borderBefore() + cell->paddingBefore()) m_grid[r].baseline = max(m_grid[r].baseline, baseline); } } LayoutUnit oldIntrinsicPaddingBefore = cell->intrinsicPaddingBefore(); LayoutUnit oldIntrinsicPaddingAfter = cell->intrinsicPaddingAfter(); LayoutUnit logicalHeightWithoutIntrinsicPadding = cell->logicalHeight() - oldIntrinsicPaddingBefore - oldIntrinsicPaddingAfter; LayoutUnit intrinsicPaddingBefore = 0; switch (cell->style()->verticalAlign()) { case SUB: case SUPER: case TEXT_TOP: case TEXT_BOTTOM: case BASELINE: { LayoutUnit b = cell->cellBaselinePosition(); if (b > cell->borderBefore() + cell->paddingBefore()) intrinsicPaddingBefore = getBaseline(r) - (b - oldIntrinsicPaddingBefore); break; } case TOP: break; case MIDDLE: intrinsicPaddingBefore = (rHeight - logicalHeightWithoutIntrinsicPadding) / 2; break; case BOTTOM: intrinsicPaddingBefore = rHeight - logicalHeightWithoutIntrinsicPadding; break; default: break; } LayoutUnit intrinsicPaddingAfter = rHeight - logicalHeightWithoutIntrinsicPadding - intrinsicPaddingBefore; cell->setIntrinsicPaddingBefore(intrinsicPaddingBefore); cell->setIntrinsicPaddingAfter(intrinsicPaddingAfter); LayoutRect oldCellRect(cell->x(), cell->y() , cell->width(), cell->height()); LayoutPoint cellLocation(0, m_rowPos[rindx]); if (!style()->isLeftToRightDirection()) cellLocation.setX(table()->columnPositions()[nEffCols] - table()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] + hspacing); else cellLocation.setX(table()->columnPositions()[c] + hspacing); cell->setLogicalLocation(cellLocation); view()->addLayoutDelta(oldCellRect.location() - cell->location()); if (intrinsicPaddingBefore != oldIntrinsicPaddingBefore || intrinsicPaddingAfter != oldIntrinsicPaddingAfter) cell->setNeedsLayout(true, false); if (!cell->needsLayout() && view()->layoutState()->pageLogicalHeight() && view()->layoutState()->pageLogicalOffset(cell->logicalTop()) != cell->pageLogicalOffset()) cell->setChildNeedsLayout(true, false); cell->layoutIfNeeded(); // FIXME: Make pagination work with vertical tables. if (style()->isHorizontalWritingMode() && view()->layoutState()->pageLogicalHeight() && cell->height() != rHeight) cell->setHeight(rHeight); // FIXME: Pagination might have made us change size. For now just shrink or grow the cell to fit without doing a relayout. LayoutSize childOffset(cell->location() - oldCellRect.location()); if (childOffset.width() || childOffset.height()) { view()->addLayoutDelta(childOffset); // If the child moved, we have to repaint it as well as any floating/positioned // descendants. An exception is if we need a layout. In this case, we know we're going to // repaint ourselves (and the child) anyway. if (!table()->selfNeedsLayout() && cell->checkForRepaintDuringLayout()) cell->repaintDuringLayoutIfMoved(oldCellRect); } } } #ifndef NDEBUG setNeedsLayoutIsForbidden(false); #endif ASSERT(!needsLayout()); setLogicalHeight(m_rowPos[totalRows]); unsigned totalCellsCount = nEffCols * totalRows; int maxAllowedOverflowingCellsCount = totalCellsCount < gMinTableSizeToUseFastPaintPathWithOverflowingCell ? 0 : gMaxAllowedOverflowingCellRatioForFastPaintPath * totalCellsCount; #ifndef NDEBUG bool hasOverflowingCell = false; #endif // Now that our height has been determined, add in overflow from cells. for (int r = 0; r < totalRows; r++) { for (int c = 0; c < nEffCols; c++) { CellStruct& cs = cellAt(r, c); RenderTableCell* cell = cs.primaryCell(); if (!cell || cs.inColSpan) continue; if (r < totalRows - 1 && cell == primaryCellAt(r + 1, c)) continue; addOverflowFromChild(cell); #ifndef NDEBUG hasOverflowingCell |= cell->hasVisualOverflow(); #endif if (cell->hasVisualOverflow() && !m_forceSlowPaintPathWithOverflowingCell) { m_overflowingCells.add(cell); if (m_overflowingCells.size() > maxAllowedOverflowingCellsCount) { // We need to set m_forcesSlowPaintPath only if there is a least one overflowing cells as the hit testing code rely on this information. m_forceSlowPaintPathWithOverflowingCell = true; // The slow path does not make any use of the overflowing cells info, don't hold on to the memory. m_overflowingCells.clear(); } } } } ASSERT(hasOverflowingCell == this->hasOverflowingCell()); statePusher.pop(); return height(); } LayoutUnit RenderTableSection::calcOuterBorderBefore() const { int totalCols = table()->numEffCols(); if (!m_gridRows || !totalCols) return 0; unsigned borderWidth = 0; const BorderValue& sb = style()->borderBefore(); if (sb.style() == BHIDDEN) return -1; if (sb.style() > BHIDDEN) borderWidth = sb.width(); const BorderValue& rb = firstChild()->style()->borderBefore(); if (rb.style() == BHIDDEN) return -1; if (rb.style() > BHIDDEN && rb.width() > borderWidth) borderWidth = rb.width(); bool allHidden = true; for (int c = 0; c < totalCols; c++) { const CellStruct& current = cellAt(0, c); if (current.inColSpan || !current.hasCells()) continue; const BorderValue& cb = current.primaryCell()->style()->borderBefore(); // FIXME: Make this work with perpendicular and flipped cells. // FIXME: Don't repeat for the same col group RenderTableCol* colGroup = table()->colElement(c); if (colGroup) { const BorderValue& gb = colGroup->style()->borderBefore(); if (gb.style() == BHIDDEN || cb.style() == BHIDDEN) continue; allHidden = false; if (gb.style() > BHIDDEN && gb.width() > borderWidth) borderWidth = gb.width(); if (cb.style() > BHIDDEN && cb.width() > borderWidth) borderWidth = cb.width(); } else { if (cb.style() == BHIDDEN) continue; allHidden = false; if (cb.style() > BHIDDEN && cb.width() > borderWidth) borderWidth = cb.width(); } } if (allHidden) return -1; return borderWidth / 2; } LayoutUnit RenderTableSection::calcOuterBorderAfter() const { int totalCols = table()->numEffCols(); if (!m_gridRows || !totalCols) return 0; unsigned borderWidth = 0; const BorderValue& sb = style()->borderAfter(); if (sb.style() == BHIDDEN) return -1; if (sb.style() > BHIDDEN) borderWidth = sb.width(); const BorderValue& rb = lastChild()->style()->borderAfter(); if (rb.style() == BHIDDEN) return -1; if (rb.style() > BHIDDEN && rb.width() > borderWidth) borderWidth = rb.width(); bool allHidden = true; for (int c = 0; c < totalCols; c++) { const CellStruct& current = cellAt(m_gridRows - 1, c); if (current.inColSpan || !current.hasCells()) continue; const BorderValue& cb = current.primaryCell()->style()->borderAfter(); // FIXME: Make this work with perpendicular and flipped cells. // FIXME: Don't repeat for the same col group RenderTableCol* colGroup = table()->colElement(c); if (colGroup) { const BorderValue& gb = colGroup->style()->borderAfter(); if (gb.style() == BHIDDEN || cb.style() == BHIDDEN) continue; allHidden = false; if (gb.style() > BHIDDEN && gb.width() > borderWidth) borderWidth = gb.width(); if (cb.style() > BHIDDEN && cb.width() > borderWidth) borderWidth = cb.width(); } else { if (cb.style() == BHIDDEN) continue; allHidden = false; if (cb.style() > BHIDDEN && cb.width() > borderWidth) borderWidth = cb.width(); } } if (allHidden) return -1; return (borderWidth + 1) / 2; } LayoutUnit RenderTableSection::calcOuterBorderStart() const { int totalCols = table()->numEffCols(); if (!m_gridRows || !totalCols) return 0; unsigned borderWidth = 0; const BorderValue& sb = style()->borderStart(); if (sb.style() == BHIDDEN) return -1; if (sb.style() > BHIDDEN) borderWidth = sb.width(); if (RenderTableCol* colGroup = table()->colElement(0)) { const BorderValue& gb = colGroup->style()->borderStart(); if (gb.style() == BHIDDEN) return -1; if (gb.style() > BHIDDEN && gb.width() > borderWidth) borderWidth = gb.width(); } bool allHidden = true; for (int r = 0; r < m_gridRows; r++) { const CellStruct& current = cellAt(r, 0); if (!current.hasCells()) continue; // FIXME: Don't repeat for the same cell const BorderValue& cb = current.primaryCell()->style()->borderStart(); // FIXME: Make this work with perpendicular and flipped cells. const BorderValue& rb = current.primaryCell()->parent()->style()->borderStart(); if (cb.style() == BHIDDEN || rb.style() == BHIDDEN) continue; allHidden = false; if (cb.style() > BHIDDEN && cb.width() > borderWidth) borderWidth = cb.width(); if (rb.style() > BHIDDEN && rb.width() > borderWidth) borderWidth = rb.width(); } if (allHidden) return -1; return (borderWidth + (table()->style()->isLeftToRightDirection() ? 0 : 1)) / 2; } LayoutUnit RenderTableSection::calcOuterBorderEnd() const { int totalCols = table()->numEffCols(); if (!m_gridRows || !totalCols) return 0; unsigned borderWidth = 0; const BorderValue& sb = style()->borderEnd(); if (sb.style() == BHIDDEN) return -1; if (sb.style() > BHIDDEN) borderWidth = sb.width(); if (RenderTableCol* colGroup = table()->colElement(totalCols - 1)) { const BorderValue& gb = colGroup->style()->borderEnd(); if (gb.style() == BHIDDEN) return -1; if (gb.style() > BHIDDEN && gb.width() > borderWidth) borderWidth = gb.width(); } bool allHidden = true; for (int r = 0; r < m_gridRows; r++) { const CellStruct& current = cellAt(r, totalCols - 1); if (!current.hasCells()) continue; // FIXME: Don't repeat for the same cell const BorderValue& cb = current.primaryCell()->style()->borderEnd(); // FIXME: Make this work with perpendicular and flipped cells. const BorderValue& rb = current.primaryCell()->parent()->style()->borderEnd(); if (cb.style() == BHIDDEN || rb.style() == BHIDDEN) continue; allHidden = false; if (cb.style() > BHIDDEN && cb.width() > borderWidth) borderWidth = cb.width(); if (rb.style() > BHIDDEN && rb.width() > borderWidth) borderWidth = rb.width(); } if (allHidden) return -1; return (borderWidth + (table()->style()->isLeftToRightDirection() ? 1 : 0)) / 2; } void RenderTableSection::recalcOuterBorder() { m_outerBorderBefore = calcOuterBorderBefore(); m_outerBorderAfter = calcOuterBorderAfter(); m_outerBorderStart = calcOuterBorderStart(); m_outerBorderEnd = calcOuterBorderEnd(); } LayoutUnit RenderTableSection::firstLineBoxBaseline() const { if (!m_gridRows) return -1; LayoutUnit firstLineBaseline = m_grid[0].baseline; if (firstLineBaseline) return firstLineBaseline + m_rowPos[0]; firstLineBaseline = -1; Row* firstRow = m_grid[0].row; for (size_t i = 0; i < firstRow->size(); ++i) { CellStruct& cs = firstRow->at(i); RenderTableCell* cell = cs.primaryCell(); if (cell) firstLineBaseline = max(firstLineBaseline, cell->logicalTop() + cell->paddingBefore() + cell->borderBefore() + cell->contentLogicalHeight()); } return firstLineBaseline; } void RenderTableSection::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) { // put this back in when all layout tests can handle it // ASSERT(!needsLayout()); // avoid crashing on bugs that cause us to paint with dirty layout if (needsLayout()) return; unsigned totalRows = m_gridRows; unsigned totalCols = table()->columns().size(); if (!totalRows || !totalCols) return; LayoutPoint adjustedPaintOffset = paintOffset + location(); PaintPhase phase = paintInfo.phase; bool pushedClip = pushContentsClip(paintInfo, adjustedPaintOffset); paintObject(paintInfo, adjustedPaintOffset); if (pushedClip) popContentsClip(paintInfo, phase, adjustedPaintOffset); } static inline bool compareCellPositions(RenderTableCell* elem1, RenderTableCell* elem2) { return elem1->row() < elem2->row(); } // This comparison is used only when we have overflowing cells as we have an unsorted array to sort. We thus need // to sort both on rows and columns to properly repaint. static inline bool compareCellPositionsWithOverflowingCells(RenderTableCell* elem1, RenderTableCell* elem2) { if (elem1->row() != elem2->row()) return elem1->row() < elem2->row(); return elem1->col() < elem2->col(); } void RenderTableSection::paintCell(RenderTableCell* cell, PaintInfo& paintInfo, const LayoutPoint& paintOffset) { LayoutPoint cellPoint = flipForWritingMode(cell, paintOffset, ParentToChildFlippingAdjustment); PaintPhase paintPhase = paintInfo.phase; RenderTableRow* row = toRenderTableRow(cell->parent()); if (paintPhase == PaintPhaseBlockBackground || paintPhase == PaintPhaseChildBlockBackground) { // We need to handle painting a stack of backgrounds. This stack (from bottom to top) consists of // the column group, column, row group, row, and then the cell. RenderObject* col = table()->colElement(cell->col()); RenderObject* colGroup = 0; if (col && col->parent()->style()->display() == TABLE_COLUMN_GROUP) colGroup = col->parent(); // Column groups and columns first. // FIXME: Columns and column groups do not currently support opacity, and they are being painted "too late" in // the stack, since we have already opened a transparency layer (potentially) for the table row group. // Note that we deliberately ignore whether or not the cell has a layer, since these backgrounds paint "behind" the // cell. cell->paintBackgroundsBehindCell(paintInfo, cellPoint, colGroup); cell->paintBackgroundsBehindCell(paintInfo, cellPoint, col); // Paint the row group next. cell->paintBackgroundsBehindCell(paintInfo, cellPoint, this); // Paint the row next, but only if it doesn't have a layer. If a row has a layer, it will be responsible for // painting the row background for the cell. if (!row->hasSelfPaintingLayer()) cell->paintBackgroundsBehindCell(paintInfo, cellPoint, row); } if ((!cell->hasSelfPaintingLayer() && !row->hasSelfPaintingLayer()) || paintInfo.phase == PaintPhaseCollapsedTableBorders) cell->paint(paintInfo, cellPoint); } void RenderTableSection::paintObject(PaintInfo& paintInfo, const LayoutPoint& paintOffset) { // Check which rows and cols are visible and only paint these. unsigned totalRows = m_gridRows; unsigned totalCols = table()->columns().size(); PaintPhase paintPhase = paintInfo.phase; LayoutUnit os = 2 * maximalOutlineSize(paintPhase); unsigned startrow = 0; unsigned endrow = totalRows; LayoutRect localRepaintRect = paintInfo.rect; localRepaintRect.moveBy(-paintOffset); if (style()->isFlippedBlocksWritingMode()) { if (style()->isHorizontalWritingMode()) localRepaintRect.setY(height() - localRepaintRect.maxY()); else localRepaintRect.setX(width() - localRepaintRect.maxX()); } if (!m_forceSlowPaintPathWithOverflowingCell) { LayoutUnit before = (style()->isHorizontalWritingMode() ? localRepaintRect.y() : localRepaintRect.x()) - os; // binary search to find a row startrow = std::lower_bound(m_rowPos.begin(), m_rowPos.end(), before) - m_rowPos.begin(); // The binary search above gives us the first row with // a y position >= the top of the paint rect. Thus, the previous // may need to be repainted as well. if (startrow == m_rowPos.size() || (startrow > 0 && (m_rowPos[startrow] > before))) --startrow; LayoutUnit after = (style()->isHorizontalWritingMode() ? localRepaintRect.maxY() : localRepaintRect.maxX()) + os; endrow = std::lower_bound(m_rowPos.begin(), m_rowPos.end(), after) - m_rowPos.begin(); if (endrow == m_rowPos.size()) --endrow; if (!endrow && m_rowPos[0] - table()->outerBorderBefore() <= after) ++endrow; } unsigned startcol = 0; unsigned endcol = totalCols; // FIXME: Implement RTL. if (!m_forceSlowPaintPathWithOverflowingCell && style()->isLeftToRightDirection()) { LayoutUnit start = (style()->isHorizontalWritingMode() ? localRepaintRect.x() : localRepaintRect.y()) - os; Vector<LayoutUnit>& columnPos = table()->columnPositions(); startcol = std::lower_bound(columnPos.begin(), columnPos.end(), start) - columnPos.begin(); if ((startcol == columnPos.size()) || (startcol > 0 && (columnPos[startcol] > start))) --startcol; LayoutUnit end = (style()->isHorizontalWritingMode() ? localRepaintRect.maxX() : localRepaintRect.maxY()) + os; endcol = std::lower_bound(columnPos.begin(), columnPos.end(), end) - columnPos.begin(); if (endcol == columnPos.size()) --endcol; if (!endcol && columnPos[0] - table()->outerBorderStart() <= end) ++endcol; } if (startcol < endcol) { if (!m_hasMultipleCellLevels && !m_overflowingCells.size()) { // Draw the dirty cells in the order that they appear. for (unsigned r = startrow; r < endrow; r++) { for (unsigned c = startcol; c < endcol; c++) { CellStruct& current = cellAt(r, c); RenderTableCell* cell = current.primaryCell(); if (!cell || (r > startrow && primaryCellAt(r - 1, c) == cell) || (c > startcol && primaryCellAt(r, c - 1) == cell)) continue; paintCell(cell, paintInfo, paintOffset); } } } else { // The overflowing cells should be scarce to avoid adding a lot of cells to the HashSet. ASSERT(m_overflowingCells.size() < totalRows * totalCols * gMaxAllowedOverflowingCellRatioForFastPaintPath); // To make sure we properly repaint the section, we repaint all the overflowing cells that we collected. Vector<RenderTableCell*> cells; copyToVector(m_overflowingCells, cells); HashSet<RenderTableCell*> spanningCells; for (unsigned r = startrow; r < endrow; r++) { for (unsigned c = startcol; c < endcol; c++) { CellStruct& current = cellAt(r, c); if (!current.hasCells()) continue; for (unsigned i = 0; i < current.cells.size(); ++i) { if (m_overflowingCells.contains(current.cells[i])) continue; if (current.cells[i]->rowSpan() > 1 || current.cells[i]->colSpan() > 1) { if (spanningCells.contains(current.cells[i])) continue; spanningCells.add(current.cells[i]); } cells.append(current.cells[i]); } } } // Sort the dirty cells by paint order. if (!m_overflowingCells.size()) std::stable_sort(cells.begin(), cells.end(), compareCellPositions); else std::sort(cells.begin(), cells.end(), compareCellPositionsWithOverflowingCells); int size = cells.size(); // Paint the cells. for (int i = 0; i < size; ++i) paintCell(cells[i], paintInfo, paintOffset); } } } void RenderTableSection::imageChanged(WrappedImagePtr, const IntRect*) { // FIXME: Examine cells and repaint only the rect the image paints in. repaint(); } void RenderTableSection::recalcCells() { m_cCol = 0; m_cRow = -1; clearGrid(); m_gridRows = 0; for (RenderObject* row = firstChild(); row; row = row->nextSibling()) { if (row->isTableRow()) { m_cRow++; m_cCol = 0; if (!ensureRows(m_cRow + 1)) break; RenderTableRow* tableRow = toRenderTableRow(row); m_grid[m_cRow].rowRenderer = tableRow; setRowLogicalHeightToRowStyleLogicalHeightIfNotRelative(&m_grid[m_cRow]); for (RenderObject* cell = row->firstChild(); cell; cell = cell->nextSibling()) { if (cell->isTableCell()) addCell(toRenderTableCell(cell), tableRow); } } } m_needsCellRecalc = false; setNeedsLayout(true); } void RenderTableSection::setNeedsCellRecalc() { m_needsCellRecalc = true; if (RenderTable* t = table()) t->setNeedsSectionRecalc(); } void RenderTableSection::clearGrid() { int rows = m_gridRows; while (rows--) delete m_grid[rows].row; } int RenderTableSection::numColumns() const { int result = 0; for (int r = 0; r < m_gridRows; ++r) { for (int c = result; c < table()->numEffCols(); ++c) { const CellStruct& cell = cellAt(r, c); if (cell.hasCells() || cell.inColSpan) result = c; } } return result + 1; } void RenderTableSection::appendColumn(int pos) { for (int row = 0; row < m_gridRows; ++row) m_grid[row].row->resize(pos + 1); } void RenderTableSection::splitColumn(int pos, int first) { if (m_cCol > pos) m_cCol++; for (int row = 0; row < m_gridRows; ++row) { Row& r = *m_grid[row].row; r.insert(pos + 1, CellStruct()); if (r[pos].hasCells()) { r[pos + 1].cells.append(r[pos].cells); RenderTableCell* cell = r[pos].primaryCell(); ASSERT(cell); int colleft = cell->colSpan() - r[pos].inColSpan; if (first > colleft) r[pos + 1].inColSpan = 0; else r[pos + 1].inColSpan = first + r[pos].inColSpan; } else { r[pos + 1].inColSpan = 0; } } } // Hit Testing bool RenderTableSection::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset, HitTestAction action) { // If we have no children then we have nothing to do. if (!firstChild()) return false; // Table sections cannot ever be hit tested. Effectively they do not exist. // Just forward to our children always. LayoutPoint adjustedLocation = accumulatedOffset + location(); if (hasOverflowClip() && !overflowClipRect(adjustedLocation).intersects(result.rectForPoint(pointInContainer))) return false; if (hasOverflowingCell()) { for (RenderObject* child = lastChild(); child; child = child->previousSibling()) { // FIXME: We have to skip over inline flows, since they can show up inside table rows // at the moment (a demoted inline <form> for example). If we ever implement a // table-specific hit-test method (which we should do for performance reasons anyway), // then we can remove this check. if (child->isBox() && !toRenderBox(child)->hasSelfPaintingLayer()) { LayoutPoint childPoint = flipForWritingMode(toRenderBox(child), adjustedLocation, ParentToChildFlippingAdjustment); if (child->nodeAtPoint(request, result, pointInContainer, childPoint, action)) { updateHitTestResult(result, toLayoutPoint(pointInContainer - childPoint)); return true; } } } return false; } LayoutPoint location = pointInContainer - toLayoutSize(adjustedLocation); if (style()->isFlippedBlocksWritingMode()) { if (style()->isHorizontalWritingMode()) location.setY(height() - location.y()); else location.setX(width() - location.x()); } LayoutUnit offsetInColumnDirection = style()->isHorizontalWritingMode() ? location.y() : location.x(); // Find the first row that starts after offsetInColumnDirection. unsigned nextRow = std::upper_bound(m_rowPos.begin(), m_rowPos.end(), offsetInColumnDirection) - m_rowPos.begin(); if (nextRow == m_rowPos.size()) return false; // Now set hitRow to the index of the hit row, or 0. unsigned hitRow = nextRow > 0 ? nextRow - 1 : 0; Vector<LayoutUnit>& columnPos = table()->columnPositions(); LayoutUnit offsetInRowDirection = style()->isHorizontalWritingMode() ? location.x() : location.y(); if (!style()->isLeftToRightDirection()) offsetInRowDirection = columnPos[columnPos.size() - 1] - offsetInRowDirection; unsigned nextColumn = std::lower_bound(columnPos.begin(), columnPos.end(), offsetInRowDirection) - columnPos.begin(); if (nextColumn == columnPos.size()) return false; unsigned hitColumn = nextColumn > 0 ? nextColumn - 1 : 0; CellStruct& current = cellAt(hitRow, hitColumn); // If the cell is empty, there's nothing to do if (!current.hasCells()) return false; for (int i = current.cells.size() - 1; i >= 0; --i) { RenderTableCell* cell = current.cells[i]; LayoutPoint cellPoint = flipForWritingMode(cell, adjustedLocation, ParentToChildFlippingAdjustment); if (static_cast<RenderObject*>(cell)->nodeAtPoint(request, result, pointInContainer, cellPoint, action)) { updateHitTestResult(result, toLayoutPoint(pointInContainer - cellPoint)); return true; } } return false; } } // namespace WebCore
Treeeater/WebPermission
rendering/RenderTableSection.cpp
C++
bsd-2-clause
49,679
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- template designed by Marco Von Ballmoos --> <title>Docs for page edit_clock.php</title> <link rel="stylesheet" href="../media/stylesheet.css" /> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> </head> <body> <div class="page-body"> <h2 class="file-name">/examples/edit_clock.php</h2> <a name="sec-description"></a> <div class="info-box"> <div class="info-box-title">Description</div> <div class="nav-bar"> <span class="disabled">Description</span> | <a href="#sec-includes">Includes</a> </div> <div class="info-box-body"> <!-- ========== Info from phpDoc block ========= --> </div> </div> <a name="sec-includes"></a> <div class="info-box"> <div class="info-box-title">Includes</div> <div class="nav-bar"> <a href="#sec-description">Description</a> | <span class="disabled">Includes</span> </div> <div class="info-box-body"> <a name="_/home/automation/Desktop/netconf-php-master/netconf/Device_php"><!-- --></a> <div class="oddrow"> <div> <span class="include-title"> <span class="include-type">include</span> (<span class="include-name">'/home/automation/Desktop/netconf-php-master/netconf/Device.php'</span>) (line <span class="line-number">2</span>) </span> </div> <!-- ========== Info from phpDoc block ========= --> </div> </div> </div> <p class="notes" id="credit"> Documentation generated on Thu, 27 Feb 2014 13:55:59 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a> </p> </div></body> </html>
Juniper/netconf-php
phpdoc/default/_examples---edit_clock.php.html
HTML
bsd-2-clause
1,821
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import logging import traceback import mallet_lda class MalletTagTopics(mallet_lda.MalletLDA): """ Topic modeling with separation based on tags """ def _basic_params(self): self.name = 'mallet_lda_tags' self.categorical = False self.template_name = 'mallet_lda' self.dry_run = False self.topics = 50 self.dfr = len(self.extra_args) > 0 if self.dfr: self.dfr_dir = self.extra_args[0] def post_setup(self): if self.named_args is not None: if 'tags' in self.named_args: self.tags = self.named_args['tags'] for filename in self.metadata.keys(): my_tags = [x for (x, y) in self.tags.iteritems() if int(self.metadata[filename]['itemID' ]) in y] if len(my_tags) > 0: self.metadata[filename]['label'] = my_tags[0] else: del self.metadata[filename] self.files.remove(filename) if __name__ == '__main__': try: processor = MalletTagTopics(track_progress=False) processor.process() except: logging.error(traceback.format_exc())
ChristianFrisson/papermachines
chrome/content/papermachines/processors/mallet_lda_tags.py
Python
bsd-2-clause
1,353
cask 'kanmusmemory' do version '0.15' sha256 'af64ae0846ab0b4366693bc602a81ba7e626bafee820862594c4bcbf92acfcef' url "http://relog.xii.jp/download/kancolle/KanmusuMemory-#{version}-mac.dmg" appcast 'https://github.com/ioriayane/KanmusuMemory/releases.atom', :checkpoint => 'f8cddbd8afc99bff82204851ed915bf9f8246499cc870ee7481ec24135e29faa' name 'KanmusuMemory' homepage 'http://relog.xii.jp/mt5r/2013/08/post-349.html' license :apache app 'KanmusuMemory.app' end
williamboman/homebrew-cask
Casks/kanmusmemory.rb
Ruby
bsd-2-clause
490
class Zmap < Formula desc "Network scanner for Internet-wide network studies" homepage "https://zmap.io" url "https://github.com/zmap/zmap/archive/v2.1.1.tar.gz" sha256 "29627520c81101de01b0213434adb218a9f1210bfd3f2dcfdfc1f975dbce6399" revision 1 head "https://github.com/zmap/zmap.git" bottle do rebuild 1 sha256 "af12dfa471443be095ccbbb1d0fb8f706e966786d8526b2190f2cfe78f28550c" => :mojave sha256 "d64ac689f0e80bc125a5e4899cc044395b0ba5c75ad365f65a3f6f8a62520137" => :high_sierra sha256 "233f9e5e6964477295c0e9edbf607cd71571155510704124f374934f97eff55c" => :sierra end depends_on "byacc" => :build depends_on "cmake" => :build depends_on "gengetopt" => :build depends_on "pkg-config" => :build depends_on "gmp" depends_on "json-c" depends_on "libdnet" def install inreplace ["conf/zmap.conf", "src/zmap.c", "src/zopt.ggo.in"], "/etc", etc system "cmake", ".", *std_cmake_args, "-DENABLE_DEVELOPMENT=OFF", "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" system "make" system "make", "install" end test do system "#{sbin}/zmap", "--version" end end
jdubois/homebrew-core
Formula/zmap.rb
Ruby
bsd-2-clause
1,142
import sys import os import subprocess import string printable = set(string.printable) def sanitize(txt): txt = ''.join(filter(lambda c: c in printable, txt)) return txt def traverse(t, outfile): print>>outfile, sanitize(t.code+'\t'+t.description) for c in t.children: traverse(c, outfile) def getEdges(t, outfile): for c in t.children: print >>outfile, sanitize(t.code+'\t'+c.code) getEdges(c, outfile) print 'cloning github repository sirrice/icd9.git' subprocess.call('git clone https://github.com/sirrice/icd9.git', shell=1) sys.path.append('icd9') from icd9 import ICD9 tree = ICD9('icd9/codes.json') toplevelnodes = tree.children print 'creating name file' outfile = file('code.names', 'w') traverse(tree, outfile) outfile.close() print 'creating edges file' outfile = file('code.edges', 'w') getEdges(tree, outfile) outfile.close() print 'cleaning up' #os.chdir('..') #subprocess.call('rm -rf icd9', shell=1)
yhalpern/anchorExplorer
examples/ICD9/load_ICD9_structure.py
Python
bsd-2-clause
971
<?php class GuildWarsMenu extends btThemeMenu { public function __construct($sqlConnection) { parent::__construct("guildwars", $sqlConnection); } public function displayLink() { if($this->intMenuSection == 3) { $menuLinkInfo = $this->menuItemObj->objLink->get_info(); $checkURL = parse_url($menuLinkInfo['link']); if(!isset($checkURL['scheme']) || $checkURL['scheme'] = "") { $menuLinkInfo['link'] = MAIN_ROOT.$menuLinkInfo['link']; } echo "<div style='display: inline-block; vertical-align: middle; height: 50px; padding-right: 20px'><a href='".$menuLinkInfo['link']."' target='".$menuLinkInfo['linktarget']."'>".$menuItemInfo['name']."</a></div>"; } else { parent::displayLink(); } } public function displayMenuCategory($loc="top") { $menuCatInfo = $this->menuCatObj->get_info(); if($loc == "top") { echo $this->getHeaderCode($menuCatInfo); } else { echo "<br>"; } } public function displayLoggedOut() { echo " <form action='".MAIN_ROOT."login.php' method='post' style='padding: 0px; margin: 0px'> <div class='usernameIMG'></div> <div class='usernameTextDiv'> <input name='user' type='text' class='loginTextbox'> </div> <div class='passwordIMG'></div> <div class='passwordTextDiv'> <input name='pass' type='password' class='loginTextbox'> </div> <div class='rememberMeCheckBox' id='fakeRememberMe'></div> <div class='rememberMeIMG'></div> <div id='fakeSubmit' class='loginButton'></div> <input type='checkbox' name='rememberme' value='1' id='realRememberMe' style='display: none'> <input type='submit' name='submit' id='realSubmit' style='display: none' value='Log In'> </form> "; } public function displayLoggedIn() { echo " <div class='loggedInIMG'></div> <div class='loggedInProfilePic'>".$this->memberObj->getProfilePic("45px", "60px")."</div> <div class='loggedInMemberNameIMG'></div> <div class='loggedInMemberNameText'> ".$this->memberObj->getMemberLink(array("color" => "false"))." </div> <div class='loggedInRankIMG'></div> <div class='loggedInRankText'> ".$this->data['memberRank']." </div> <div class='loggedInMemberOptionsSection'> <div class='loggedInMemberOptionsIMG'></div> <div class='loggedInMemberOptions'> <a href='".MAIN_ROOT."members'>My Account</a> - ".$this->data['pmLink']." - <a href='".MAIN_ROOT."members/signout.php'>Sign Out</a><br> </div> </div> "; } } ?>
bluethrust/cs4
themes/guildwars/guildwarsmenu.php
PHP
bsd-2-clause
2,632
Changelog ========= 3.x (unreleased) ---------------- * Allow including many templates without reaching recursion limits. Merge of [#787](https://github.com/mozilla/nunjucks/pull/787). Thanks Gleb Khudyakov. * Allow explicitly setting `null` (aka `none`) as the value of a variable; don't ignore that value and look on up the frame stack or context. Fixes [#478](https://github.com/mozilla/nunjucks/issues/478). Thanks Jonny Gerig Meyer for the report. * Execute blocks in a child frame that can't write to its parent. This means that vars set inside blocks will not leak outside of the block, base templates can no longer see vars set in templates that inherit them, and `super()` can no longer set vars in its calling scope. Fixes the inheritance portion of [#561](https://github.com/mozilla/nunjucks/issues/561), which fully closes that issue. Thanks legutierr for the report. * Prevent macros from seeing or affecting their calling scope. Merge of [#667](https://github.com/mozilla/nunjucks/pull/667). * Fix handling of macro arg with default value which shares a name with another macro. Merge of [#791](https://github.com/mozilla/nunjucks/pull/791). 2.x (unreleased) ---------------- * Ensure that precompiling on Windows still outputs POSIX-style path separators. Merge of [#761](https://github.com/mozilla/nunjucks/pull/761). * Add support for strict type check comparisons (=== and !===). Thanks oughter. Merge of [#746](https://github.com/mozilla/nunjucks/pull/746). * Allow full expressions (incl. filters) in import and from tags. Thanks legutierr. Merge of [#710](https://github.com/mozilla/nunjucks/pull/710). 2.4.2 (Apr 15 2016) ------------------- * Fix use of `in` operator with strings. Fixes [#714](https://github.com/mozilla/nunjucks/issues/714). Thanks Zubrik for the report. * Support ES2015 Map and Set in `length` filter. Merge of [#705](https://github.com/mozilla/nunjucks/pull/705). Thanks ricordisamoa. * Remove truncation of long function names in error messages. Thanks Daniel Bendavid. Merge of [#702](https://github.com/mozilla/nunjucks/pull/702). 2.4.1 (Mar 17 2016) ------------------- * Don't double-escape. Thanks legutierr. Merge of [#701](https://github.com/mozilla/nunjucks/pull/701). * Prevent filter.escape from escaping SafeString. Thanks atian25. Merge of [#623](https://github.com/mozilla/nunjucks/pull/623). * Throw an error if a block is defined multiple times. Refs [#696](https://github.com/mozilla/nunjucks/issues/696). * Officially recommend the `.njk` extension. Thanks David Kebler. Merge of [#691](https://github.com/mozilla/nunjucks/pull/691). * Allow block-set to wrap an inheritance block. Unreported; fixed as a side effect of the fix for [#576](https://github.com/mozilla/nunjucks/issues/576). * Fix `filter` tag with non-trivial contents. Thanks Stefan Cruz and Fabien Franzen for report and investigation, Jan Oopkaup for failing tests. Fixes [#576](https://github.com/mozilla/nunjucks/issues/576). 2.4.0 (Mar 10 2016) ------------------- * Allow retrieving boolean-false as a global. Thanks Marius Büscher. Merge of [#694](https://github.com/mozilla/nunjucks/pull/694). * Don't automatically convert any for-loop that has an include statement into an async loop. Reverts [7d4716f4fd](https://github.com/mozilla/nunjucks/commit/7d4716f4fd), re-opens [#372](https://github.com/mozilla/nunjucks/issues/372), fixes [#527](https://github.com/mozilla/nunjucks/issues/527). Thanks Tom Delmas for the report. * Switch from Optimist to Yargs for argument-parsing. Thanks Bogdan Chadkin. Merge of [#672](https://github.com/mozilla/nunjucks/pull/672). * Prevent includes from writing to their including scope. Merge of [#667](https://github.com/mozilla/nunjucks/pull/667) (only partially backported to 2.x; macro var visibility not backported). * Fix handling of `dev` environment option, to get full tracebacks on errors (including nunjucks internals). Thanks Tobias Petry and Chandrasekhar Ambula V for the report, Aleksandr Motsjonov for draft patch. * Support using `in` operator to search in both arrays and objects, and it will throw an error for other data types. Fix [#659](https://github.com/mozilla/nunjucks/pull/659). Thanks Alex Mayfield for report and test, Ouyang Yadong for fix. Merge of [#661](https://github.com/mozilla/nunjucks/pull/661). * Add support for `{% set %}` block assignments as in jinja2. Thanks Daniele Rapagnani. Merge of [#656](https://github.com/mozilla/nunjucks/pull/656) * Fix `{% set %}` scoping within macros. Fixes [#577](https://github.com/mozilla/nunjucks/issues/577) and the macro portion of [#561](https://github.com/mozilla/nunjucks/issues/561). Thanks Ouyang Yadong. Merge of [#653](https://github.com/mozilla/nunjucks/pull/653). * Add support for named `endblock` (e.g. `{% endblock foo %}`). Thanks ricordisamoa. Merge of [#641](https://github.com/mozilla/nunjucks/pull/641). * Fix `range` global with zero as stop-value. Thanks Thomas Hunkapiller. Merge of [#638](https://github.com/mozilla/nunjucks/pull/638). * Fix a bug in urlize that collapsed whitespace. Thanks Paulo Bu. Merge of [#637](https://github.com/mozilla/nunjucks/pull/637). * Add `sum` filter. Thanks Pablo Matías Lazo. Merge of [#629](https://github.com/mozilla/nunjucks/pull/629). * Don't suppress errors inside {% if %} tags. Thanks Artemy Tregubenko for report and test, Ouyang Yadong for fix. Merge of [#634](https://github.com/mozilla/nunjucks/pull/634). * Allow whitespace control on comment blocks, too. Thanks Ouyang Yadong. Merge of [#632](https://github.com/mozilla/nunjucks/pull/632). * Fix whitespace control around nested tags/variables/comments. Thanks Ouyang Yadong. Merge of [#631](https://github.com/mozilla/nunjucks/pull/631). v2.3.0 (Jan 6 2016) ------------------- * Return `null` from `WebLoader` on missing template instead of throwing an error, for consistency with other loaders. This allows `WebLoader` to support the new `ignore missing` flag on the `include` tag. If `ignore missing` is not set, a generic "template not found" error will still be thrown, just like for any other loader. Ajax errors other than 404 will still cause `WebLoader` to throw an error directly. * Add preserve-linebreaks option to `striptags` filter. Thanks Ivan Kleshnin. Merge of [#619](https://github.com/mozilla/nunjucks/pull/619). v2.2.0 (Nov 23 2015) -------------------- * Add `striptags` filter. Thanks Anthony Giniers. Merge of [#589](https://github.com/mozilla/nunjucks/pull/589). * Allow compiled templates to be imported, included and extended. Thanks Luis Gutierrez-Sheris. Merge of [#581](https://github.com/mozilla/nunjucks/pull/581). * Fix issue with different nunjucks environments sharing same globals. Each environment is now independent. Thanks Paul Pechin. Merge of [#574](https://github.com/mozilla/nunjucks/pull/574). * Add negative steps support for range function. Thanks Nikita Mostovoy. Merge of [#575](https://github.com/mozilla/nunjucks/pull/575). * Remove deprecation warning when using the `default` filter without specifying a third argument. Merge of [#567](https://github.com/mozilla/nunjucks/pull/567). * Add support for chaining of addGlobal, addFilter, etc. Thanks Rob Graeber. Merge of [#537](https://github.com/mozilla/nunjucks/pull/537) * Fix error propagation. Thanks Tom Delmas. Merge of [#534](https://github.com/mozilla/nunjucks/pull/534). * trimBlocks now also trims windows style line endings. Thanks Magnus Tovslid. Merge of [#548](https://github.com/mozilla/nunjucks/pull/548) * `include` now supports an option to suppress errors if the template does not exist. Thanks Mathias Nestler. Merge of [#559](https://github.com/mozilla/nunjucks/pull/559) v2.1.0 (Sep 21 2015) -------------------- * Fix creating `WebLoader` without `opts`. Merge of [#524](https://github.com/mozilla/nunjucks/pull/524). * Add `hasExtension` and `removeExtension` methods to `Environment`. Merge of [#512](https://github.com/mozilla/nunjucks/pull/512). * Add support for kwargs in `sort` filter. Merge of [#510](https://github.com/mozilla/nunjucks/pull/510). * Add `none` as a lexed constant evaluating to `null`. Merge of [#480](https://github.com/mozilla/nunjucks/pull/480). * Fix rendering of multiple `raw` blocks. Thanks Aaron O'Mullan. Merge of [#503](https://github.com/mozilla/nunjucks/pull/503). * Avoid crashing on async loader error. Thanks Samy Pessé. Merge of [#504](https://github.com/mozilla/nunjucks/pull/504). * Add support for keyword arguments for sort filter. Thanks Andres Pardini. Merge of [#510](https://github.com/mozilla/nunjucks/pull/510) v2.0.0 (Aug 30 2015) -------------------- Most of the changes can be summed up in the [issues tagged 2.0](https://github.com/mozilla/nunjucks/issues?q=is%3Aissue+milestone%3A2.0+is%3Aclosed). Or you can [see all commits](https://github.com/mozilla/nunjucks/compare/v1.3.4...f8aabccefc31a9ffaccdc6797938b5187e07ea87). Most important changes: * **autoescape is now on by default.** You need to explicitly pass `{ autoescape: false }` in the options to turn it off. * **watch is off by default.** You need to explicitly pass `{ watch: true }` to start the watcher. * The `default` filter has changed. It will show the default value only if the argument is **undefined**. Any other value, even false-y values like `false` and `null`, will be returned. You can get back the old behavior by passing `true` as a 3rd argument to activate the loose-y behavior: `foo | default("bar", true)`. In 2.0 if you don't pass the 3rd argument, a warning will be displayed about this change in behavior. In 2.1 this warning will be removed. * [New filter tag](http://mozilla.github.io/nunjucks/templating.html#filter) * Lots of other bug fixes and small features, view the above issue list! v1.3.4 (Apr 27 2015) -------------------- This is an extremely minor release that only adds an .npmignore so that the bench, tests, and docs folders do not get published to npm. Nunjucks should download a lot faster now. v1.3.3 (Apr 3 2015) ------------------- This is exactly the same as v1.3.1, just fixing a typo in the git version tag. v1.3.2 (Apr 3 2015) ------------------- (no notes) v1.3.1 (Apr 3 2015) ------------------- We added strict mode to all the files, but that broke running nunjucks in the browser. Should work now with this small fix. v1.3.0 (Apr 3 2015) ------------------- * Relative templates: you can now load a template relatively by starting the path with ., like ./foo.html * FileSystemLoader now takes a noCache option, if true will disable caching entirely * Additional lstripBlocks and trimBlocks available to clean output automatically * New selectattr and rejectattr filters * Small fixes to the watcher * Several bug fixes v1.2.0 (Feb 4 2015) ------------------- * The special non-line-breaking space is considered whitespace now * The in operator has a lower precedence now. This is potentially a breaking change, thus the minor version bump. See [#336](https://github.com/mozilla/nunjucks/pull/336) * import with context now implemented: [#319](https://github.com/mozilla/nunjucks/pull/319) * async rendering doesn't throw compile errors v1.1.0 (Sep 30 2014) -------------------- User visible changes: * Fix a bug in urlize that would remove periods * custom tag syntax (like {% and %}) was made Environment-specific internally. Previously they were global even though you set them through the Environment. * Remove aggressive optimization that only emitted loop variables when uses. It introduced several bugs and didn't really improve perf. * Support the regular expression syntax like /foo/g. * The replace filter can take a regex as the first argument * The call tag was implemented * for tags can now take an else clause * The cycler object now exposes the current item as the current property * The chokidar library was updated and should fix various issues Dev changes: * Test coverage now available via istanbul. Will automatically display after running tests. v1.0.7 (Aug 15 2014) -------------------- Mixed up a few things in the 1.0.6 release, so another small bump. This merges in one thing: * The length filter will not throw an error is used on an undefined variable. It will return 0 if the variable is undefined. v1.0.6 (Aug 15 2014) -------------------- * Added the addGlobal method to the Environment object * import/extends/include now can take an arbitrary expression * fix bugs in set * improve express integration (allows rendering templates without an extension) v1.0.5 (May 1 2014) ------------------- * Added support for browserify * Added option to specify template output path when precompiling templates * Keep version comment in browser minified files * Speed up SafeString implementation * Handle null and non-matching cases for word count filter * Added support for node-webkit * Other various minor bugfixes chokidar repo fix - v1.0.4 (Apr 4 2014) --------------------------------------- * The chokidar dependency moved repos, and though the git URL should have been forwarded some people were having issues. This fixed the repo and version. (v1.0.3 is skipped because it was published with a bad URL, quickly fixed with another version bump) Bug fixes - v1.0.2 (Mar 25 2014) -------------------------------- * Use chokidar for watching file changes. This should fix a lot of problems on OS X machines. * Always use / in paths when precompiling templates * Fix bug where async filters hang indefinitely inside if statements * Extensions now can override autoescaping with an autoescape property * Other various minor bugfixes v1.0.1 (Dec 16, 2013) --------------------- (no notes) We've reached 1.0! Better APIs, asynchronous control, and more (Oct 24, 2013) ----------------------------------------------------------------------------- * An asynchronous API is now available, and async filters, extensions, and loaders is supported. The async API is optional and if you don't do anything async (the default), nothing changes for you. You can read more about this [here](http://jlongster.github.io/nunjucks/api.html#asynchronous-support). (fixes [#41](https://github.com/mozilla/nunjucks/issues/41)) * Much simpler higher-level API for initiating/configuring nunjucks is available. Read more [here](http://jlongster.github.io/nunjucks/api.html#simple-api). * An official grunt plugin is available for precompiling templates: [grunt-nunjucks](https://github.com/jlongster/grunt-nunjucks) * **The browser files have been renamed.** nunjucks.js is now the full library with compiler, and nunjucks-slim.js is the small version that only works with precompiled templates * urlencode filter has been added * The express integration has been refactored and isn't a kludge anymore. Should avoid some bugs and be more future-proof; * The order in which variables are lookup up in the context and frame lookup has been reversed. It will now look in the frame first, and then the context. This means that if a for loop introduces a new var, like {% for name in names %}, and if you have name in the context as well, it will properly reference name from the for loop inside the loop. (fixes [#122](https://github.com/mozilla/nunjucks/pull/122) and [#119](https://github.com/mozilla/nunjucks/issues/119)) v0.1.10 (Aug 9 2013) -------------------- (no notes) v0.1.9 (May 30 2013) -------------------- (no notes) v0.1.8 - whitespace controls, unpacking, better errors, and more! (Feb 6 2013) ------------------------------------------------------------------------------ There are lots of cool new features in this release, as well as many critical bug fixes. Full list of changes: * Whitespace control is implemented. Use {%- and -%} to strip whitespace before/after the block. * `for` loops implement Python-style array unpacking. This is a really nice feature which lets you do this: {% for x, y, z in [[2, 2, 2], [3, 3, 3]] %} --{{ x }} {{ y }} {{ z }}-- {% endfor %} The above would output: --2 2 2----3 3 3-- You can pass any number of variable names to for and it will destructure each array in the list to the variables. This makes the syntax between arrays and objects more consistent. Additionally, it allows us to implement the `dictsort` filter which sorts an object by keys or values. Technically, it returns an array of 2-value arrays and the unpacking takes care of it. Example: {% for k, v in { b: 2, a: 1 } %} --{{ k }}: {{ v }}-- {% endfor %} Output: `--b: 2----a: 1--` (note: the order could actually be anything because it uses javascript’s `for k in obj` syntax to iterate, and ordering depends on the js implementation) {% for k, v in { b: 2, a: 1} | dictsort %} --{{ k }}: {{ v }}-- {% endfor %} Output: `--a: 1----b: 2--` The above output will always be ordered that way. See the documentation for more details. Thanks to novocaine for this! * Much better error handling with at runtime (shows template/line/col information for attempting to call undefined values, etc) * Fixed a regression which broke the {% raw %} block * Fix some edge cases with variable lookups * Fix a regression with loading precompiled templates * Tweaks to allow usage with YUICompressor * Use the same error handling as normal when precompiling (shows proper errors) * Fix template loading on Windows machines * Fix int/float filters * Fix regression with super() v0.1.7 - helpful errors, many bug fixes (Dec 12 2012) ----------------------------------------------------- The biggest change in v0.1.7 comes from devoidfury (thanks!) which implements consistent and helpful error messages. The errors are still simply raw text, and not pretty HTML, but they at least contain all the necessary information to track down an error, such as template names, line and column numbers, and the inheritance stack. So if an error happens in a child template, it will print out all the templates that it inherits. In the future, we will most likely display the actual line causing an error. Full list of changes: * Consistent and helpful error messages * Expressions are more consistent now. Previously, there were several places that wouldn’t accept an arbitrary expression that should. For example, you can now do {% include templateNames['foo'] %}, whereas previously you could only give it a simply variable name. * app.locals is fixed with express 2.5 * Method calls on objects now have correct scope for this. Version 0.1.6 broke this and this was referencing the global scope. * A check was added to enforce loading of templates within the correct path. Previously you could load a file outside of the template with something like ../../crazyPrivateFile.txt You can [view all the code changes here](https://github.com/jlongster/nunjucks/compare/v0.1.6...v0.1.7). Please [file an issue](https://github.com/jlongster/nunjucks/issues?page=1&state=open) if something breaks! v0.1.6 - undefined handling, bugfixes (Nov 13, 2012) ---------------------------------------------------- This is mostly a bugfix release, but there are a few small tweaks based on feedback: * In some cases, backslashes in the template would not appear in the output. This has been fixed. * An error is thrown if a filter is not found * Old versions of express are now supported (2.5.11 was tested) * References on undefined objects are now suppressed. For example, {{ foo }}, {{ foo.bar }}, {{ foo.bar.baz }} all output nothing if foo is undefined. Previously only the first form would be suppressed, and a cryptic error thrown for the latter 2 references. Note: I believe this is a departure from jinja, which throws errors when referencing undefined objects. I feel that this is a good and non-breaking addition though. (thanks to devoidfury) * A bug in set where you couldn’t not reference other variables is fixed (thanks chriso and panta) * Other various small bugfixes You can view [all the code changes here](https://github.com/jlongster/nunjucks/compare/v0.1.5...v0.1.6). As always, [file an issue](https://github.com/jlongster/nunjucks/issues) if something breaks! v0.1.5 - macros, keyword arguments, bugfixes (Oct 11 2012) ---------------------------------------------------------- v0.1.5 has been pushed to npm, and it’s a big one. Please file any issues you find, and I’ll fix them as soon as possible! * The node data structure has been completely refactored to reduce redundancy and make it easier to add more types in the future. * Thanks to Brent Hagany, macros now have been implemented. They should act exactly the way jinja2 macros do. * A calling convention which implements keyword arguments now exists. All keyword args are converted into a hash and passed as the last argument. Macros needed this to implement keyword/default arguments. * Function and filter calls apply the new keyword argument calling convention * The “set” block now appropriately only sets a variable for the current scope. * Many other bugfixes. I’m watching this release carefully because of the large amount of code that has changed, so please [file an issue](https://github.com/jlongster/nunjucks/issues) if you have a problem with it.
kevinschaul/nunjucks
CHANGELOG.md
Markdown
bsd-2-clause
21,487
cask :v1 => 'chunkulus' do version :latest sha256 :no_check url 'http://presstube.com/screensavers/presstube-chunkulus-mac.zip' homepage 'http://presstube.com/blog/2011/chunkulus/' license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder screen_saver 'presstube-chunkulus.app/Contents/Resources/Presstube - Chunkulus.saver' postflight do system '/usr/libexec/PlistBuddy', '-c', 'Set :CFBundleName Chunkulus (Presstube)', "#{staged_path}/presstube-chunkulus.app/Contents/Resources/Presstube - Chunkulus.saver/Contents/Info.plist" end caveats <<-EOS.undent #{token} requires Adobe Air, available via brew cask install adobe-air EOS end
nelsonjchen/homebrew-cask
Casks/chunkulus.rb
Ruby
bsd-2-clause
730
// I would prefer this to be delete.lua and load it using NSBundle // But I failed. I don't know why. static const char * deletelua = "" "-- This script receives three parameters, all encoded with\n" "-- MessagePack. The decoded values are used for deleting a model\n" "-- instance in Redis and removing any reference to it in sets\n" "-- (indices) and hashes (unique indices).\n" "--\n" "-- # model\n" "--\n" "-- Table with three attributes:\n" "-- id (model instance id)\n" "-- key (hash where the attributes will be saved)\n" "-- name (model name)\n" "--\n" "-- # uniques\n" "--\n" "-- Fields and values to be removed from the unique indices.\n" "--\n" "-- # tracked\n" "--\n" "-- Keys that share the lifecycle of this model instance, that\n" "-- should be removed as this object is deleted.\n" "--\n" "local model = cmsgpack.unpack(ARGV[1])\n" "local uniques = cmsgpack.unpack(ARGV[2])\n" "local tracked = cmsgpack.unpack(ARGV[3])\n" "\n" "local function remove_indices(model)\n" " local memo = model.key .. \":_indices\"\n" " local existing = redis.call(\"SMEMBERS\", memo)\n" "\n" " for _, key in ipairs(existing) do\n" " redis.call(\"SREM\", key, model.id)\n" " redis.call(\"SREM\", memo, key)\n" " end\n" "end\n" "\n" "local function remove_uniques(model, uniques)\n" " local memo = model.key .. \":_uniques\"\n" "\n" " for field, _ in pairs(uniques) do\n" " local key = model.name .. \":uniques:\" .. field\n" "\n" " local field = redis.call(\"HGET\", memo, key)\n" " if field then\n" " redis.call(\"HDEL\", key, field)\n" " end\n" " redis.call(\"HDEL\", memo, key)\n" " end\n" "end\n" "\n" "local function remove_tracked(model, tracked)\n" " for _, tracked_key in ipairs(tracked) do\n" " local key = model.key .. \":\" .. tracked_key\n" "\n" " redis.call(\"DEL\", key)\n" " end\n" "end\n" "\n" "local function delete(model)\n" " local keys = {\n" " model.key .. \":counters\",\n" " model.key .. \":_indices\",\n" " model.key .. \":_uniques\",\n" " model.key\n" " }\n" "\n" " redis.call(\"SREM\", model.name .. \":all\", model.id)\n" " redis.call(\"DEL\", unpack(keys))\n" "end\n" "\n" "remove_indices(model)\n" "remove_uniques(model, uniques)\n" "remove_tracked(model, tracked)\n" "delete(model)\n" "\n" "return model.id\n";
seppo0010/notion-ios
Pods/ohmoc/Pod/Classes/OOCdeletelua.h
C
bsd-2-clause
2,267
/* Copyright (c) Citrix Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the * following disclaimer in the documentation and/or other * materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ using System; using System.Collections.Generic; using System.IO; using XenAdmin.Network; using XenAdmin.Core; using XenAPI; using XenAdmin.Actions; using XenAdmin; using System.Linq; using System.Globalization; using System.Xml; namespace XenServerHealthCheck { public class XenServerHealthCheckBugTool { private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private static readonly List<string> reportExcluded = new List<string> { "blobs", "vncterm", "xapi-debug" }; private static readonly Dictionary<string, int> reportWithVerbosity = new Dictionary<string, int> { {"host-crashdump-logs", 2}, {"system-logs", 2}, {"tapdisk-logs", 2}, {"xapi", 2}, {"xcp-rrdd-plugins", 2}, {"xenserver-install", 2}, {"xenserver-logs", 2} }; public readonly string outputFile; public XenServerHealthCheckBugTool() { string name = string.Format("{0}{1}.zip", Messages.BUGTOOL_FILE_PREFIX, DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss", CultureInfo.InvariantCulture)); string folder = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); if (Directory.Exists(folder)) Directory.Delete(folder); Directory.CreateDirectory(folder); if (!name.EndsWith(".zip")) name = string.Concat(name, ".zip"); outputFile = string.Format(@"{0}\{1}", folder, name); } public void RunBugtool(IXenConnection connection, Session session) { if (connection == null || session == null) return; // Fetch the common capabilities of all hosts. Dictionary<Host, List<string>> hostCapabilities = new Dictionary<Host, List<string>>(); foreach (Host host in connection.Cache.Hosts) { GetSystemStatusCapabilities action = new GetSystemStatusCapabilities(host); action.RunExternal(session); if (!action.Succeeded) return; List<string> keys = new List<string>(); XmlDocument doc = new XmlDocument(); doc.LoadXml(action.Result); foreach (XmlNode node in doc.GetElementsByTagName("capability")) { foreach (XmlAttribute a in node.Attributes) { if (a.Name == "key") keys.Add(a.Value); } } hostCapabilities[host] = keys; } List<string> combination = null; foreach (List<string> capabilities in hostCapabilities.Values) { if (capabilities == null) continue; if (combination == null) { combination = capabilities; continue; } combination = Helpers.ListsCommonItems<string>(combination, capabilities); } if (combination == null || combination.Count <= 0) return; // The list of the reports which are required in Health Check Report. List<string> reportIncluded = combination.Except(reportExcluded).ToList(); // Verbosity works for xen-bugtool since Dundee. if (Helpers.DundeeOrGreater(connection)) { List<string> verbReport = new List<string>(reportWithVerbosity.Keys); int idx = -1; for (int x = 0; x < verbReport.Count; x++) { idx = reportIncluded.IndexOf(verbReport[x]); if (idx >= 0) { reportIncluded[idx] = reportIncluded[idx] + ":" + reportWithVerbosity[verbReport[x]].ToString(); } } } // Ensure downloaded filenames are unique even for hosts with the same hostname: append a counter to the timestring string filepath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); if (Directory.Exists(filepath)) Directory.Delete(filepath); Directory.CreateDirectory(filepath); string timestring = DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss"); // Collect all master/slave information to output as a separate text file with the report List<string> mastersInfo = new List<string>(); int i = 0; Pool p = Helpers.GetPool(connection); foreach (Host host in connection.Cache.Hosts) { // master/slave information if (p == null) { mastersInfo.Add(string.Format("Server '{0}' is a stand alone server", host.Name())); } else { mastersInfo.Add(string.Format("Server '{0}' is a {1} of pool '{2}'", host.Name(), p.master.opaque_ref == host.opaque_ref ? "master" : "slave", p.Name())); } HostWithStatus hostWithStatus = new HostWithStatus(host, 0); SingleHostStatusAction statAction = new SingleHostStatusAction(hostWithStatus, reportIncluded, filepath, timestring + "-" + ++i); statAction.RunExternal(session); } // output the slave/master info string mastersDestination = string.Format("{0}\\{1}-Masters.txt", filepath, timestring); WriteExtraInfoToFile(mastersInfo, mastersDestination); // output the XenCenter metadata var metadata = XenAdminConfigManager.Provider.GetXenCenterMetadata(false); string metadataDestination = string.Format("{0}\\{1}-Metadata.json", filepath, timestring); WriteExtraInfoToFile(new List<string> {metadata}, metadataDestination); // Finish the collection of logs with bugtool. // Start to zip the files. ZipStatusReportAction zipAction = new ZipStatusReportAction(filepath, outputFile); zipAction.RunExternal(session); log.InfoFormat("Server Status Report is collected: {0}", outputFile); } private void WriteExtraInfoToFile(List<string> info, string fileName) { if (File.Exists(fileName)) File.Delete(fileName); StreamWriter sw = null; try { sw = new StreamWriter(fileName); foreach (string s in info) sw.WriteLine(s); sw.Flush(); } catch (Exception e) { log.ErrorFormat("Exception while writing {0} file: {1}", fileName, e); } finally { if (sw != null) sw.Close(); } } } }
stephen-turner/xenadmin
XenServerHealthCheck/XenServerHealthCheckBugTool.cs
C#
bsd-2-clause
8,841
class PureFtpd < Formula desc "Secure and efficient FTP server" homepage "https://www.pureftpd.org/" url "https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.49.tar.gz" sha256 "767bf458c70b24f80c0bb7a1bbc89823399e75a0a7da141d30051a2b8cc892a5" revision 1 bottle do cellar :any sha256 "aa0a342b50ae3761120370fc0e6605241e03545441c472d778ef030239784454" => :catalina sha256 "e3a63b9af91de3c29eef40a76d7962cdf8623a8e8992aeb67bdf3948293c450d" => :mojave sha256 "a6a9549f3d8bde87cf01210e9fa29b403ed258246a7928d195a57f0c5ace6988" => :high_sierra sha256 "11dfcec52ae727128c8201a4779fc7feea1d547fe86989a621d4ba339f70de92" => :sierra end depends_on "libsodium" depends_on "openssl@1.1" def install args = %W[ --disable-dependency-tracking --prefix=#{prefix} --mandir=#{man} --sysconfdir=#{etc} --with-everything --with-pam --with-tls --with-bonjour ] system "./configure", *args system "make", "install" end plist_options manual: "pure-ftpd" def plist <<~EOS <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>#{plist_name}</string> <key>ProgramArguments</key> <array> <string>#{opt_sbin}/pure-ftpd</string> <string>--chrooteveryone</string> <string>--createhomedir</string> <string>--allowdotfiles</string> <string>--login=puredb:#{etc}/pureftpd.pdb</string> </array> <key>RunAtLoad</key> <true/> <key>WorkingDirectory</key> <string>#{var}</string> <key>StandardErrorPath</key> <string>#{var}/log/pure-ftpd.log</string> <key>StandardOutPath</key> <string>#{var}/log/pure-ftpd.log</string> </dict> </plist> EOS end test do system bin/"pure-pw", "--help" end end
lembacon/homebrew-core
Formula/pure-ftpd.rb
Ruby
bsd-2-clause
2,125
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>DbSync: DbSync_DbAdapter_AdapterInterface Interface Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.7.4 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">DbSync</div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li id="searchli"> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">DbSync_DbAdapter_AdapterInterface Interface Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="DbSync_DbAdapter_AdapterInterface" --><div class="dynheader"> Inheritance diagram for DbSync_DbAdapter_AdapterInterface:</div> <div class="dyncontent"> <div class="center"> <img src="interfaceDbSync__DbAdapter__AdapterInterface.png" usemap="#DbSync_DbAdapter_AdapterInterface_map" alt=""/> <map id="DbSync_DbAdapter_AdapterInterface_map" name="DbSync_DbAdapter_AdapterInterface_map"> <area href="classDbSync__DbAdapter__Mysql.html" alt="DbSync_DbAdapter_Mysql" shape="rect" coords="0,56,227,80"/> </map> </div></div> <p><a href="interfaceDbSync__DbAdapter__AdapterInterface-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a29aeee3cbdac7e08ca3c08f464f5b443">__construct</a> (array $config)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a683e550d89b21e02e4068993f30079fc">parseSchema</a> ($tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#acc0350206ef7c623402bb19633ad3f6a">createAlter</a> ($config, $tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#acea54c81f65be6ea4eceb8dcf3b93659">parseTrigger</a> ($triggerName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a2efd82563860bf45fc07fbeb4d67b056">createTriggerSql</a> ($config)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a4e19047119e11123e47f8c8c14e0c665">execute</a> ($sql)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a686c3e752907a09cc1d87fce2d2bb101">getTriggerList</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a6df405111c98ca40324423f8981d7974">getTableByTrigger</a> ($triggerName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a84b87f76dc8ebc123d42dda7393e0cb9">getTableList</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#ac1cb4888b127b104ed231feae87d3056">hasTable</a> ($tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#aa8f4119b6cc6cf5bfd0d97d45a849d9d">hasTrigger</a> ($triggerName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#ad60b6d7e34fba4e763132e47134b35e1">fetchData</a> ($tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#ad535c5d4d074383feb578fab1e71d2e7">insert</a> ($data, $tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a06dfb3597de81841661535373ce06e0d">merge</a> ($data, $tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a2cc0eb5ae7c4aa0b69a899e84040da83">truncate</a> ($tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#a18ccca4e55a874ed85acd00506f4fff2">dropTable</a> ($tableName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#afb0b32f718a3a499955444966929997b">dropTrigger</a> ($triggerName)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceDbSync__DbAdapter__AdapterInterface.html#abe0d20fb62067de68fb354adc3eb7e8a">isEmpty</a> ($tableName)</td></tr> </table> <hr/><h2>Constructor &amp; Destructor Documentation</h2> <a class="anchor" id="a29aeee3cbdac7e08ca3c08f464f5b443"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::__construct" ref="a29aeee3cbdac7e08ca3c08f464f5b443" args="(array $config)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::__construct </td> <td>(</td> <td class="paramtype">array $&#160;</td> <td class="paramname"><em>config</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">array</td><td class="paramname">$config</td><td></td></tr> </table> </dd> </dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#abf098ec8f68514927dacce23e5a30030">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="acc0350206ef7c623402bb19633ad3f6a"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::createAlter" ref="acc0350206ef7c623402bb19633ad3f6a" args="($config, $tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::createAlter </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>config</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Generate Alter Table</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">array</td><td class="paramname">$config</td><td></td></tr> <tr><td class="paramtype">string</td><td class="paramname">$tableName</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>string </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a51b9a8196dcbef50547417d4fe8a0666">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a2efd82563860bf45fc07fbeb4d67b056"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::createTriggerSql" ref="a2efd82563860bf45fc07fbeb4d67b056" args="($config)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::createTriggerSql </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>config</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Generate trigger sql</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">array</td><td class="paramname">$config</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>string </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#af58ff620be0d1f4cac9b865ca0000fcf">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a18ccca4e55a874ed85acd00506f4fff2"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::dropTable" ref="a18ccca4e55a874ed85acd00506f4fff2" args="($tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::dropTable </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Drop table</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">string</td><td class="paramname">$tableName</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>number </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a95bec76ffdfe365cc68a682724443488">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="afb0b32f718a3a499955444966929997b"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::dropTrigger" ref="afb0b32f718a3a499955444966929997b" args="($triggerName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::dropTrigger </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>triggerName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Drop trigger</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">string</td><td class="paramname">$triggerName</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>number </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a9a98e8e32ececd6cc3b101d5cc87fa4f">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a4e19047119e11123e47f8c8c14e0c665"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::execute" ref="a4e19047119e11123e47f8c8c14e0c665" args="($sql)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::execute </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>sql</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Execute sql query</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">string</td><td class="paramname">$sql</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>integer </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a279036935ed06d1cd41c4ec1d8b107cc">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="ad60b6d7e34fba4e763132e47134b35e1"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::fetchData" ref="ad60b6d7e34fba4e763132e47134b35e1" args="($tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::fetchData </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Fetch all data from table</p> <dl class="return"><dt><b>Returns:</b></dt><dd>array </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a76d3e3c3e80fee76c7057724a55a8d58">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a6df405111c98ca40324423f8981d7974"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::getTableByTrigger" ref="a6df405111c98ca40324423f8981d7974" args="($triggerName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::getTableByTrigger </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>triggerName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Get table name by trigger name</p> <dl class="return"><dt><b>Returns:</b></dt><dd>string </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a1bb1fb6762c987d2bdcd243c37875a54">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a84b87f76dc8ebc123d42dda7393e0cb9"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::getTableList" ref="a84b87f76dc8ebc123d42dda7393e0cb9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::getTableList </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Get tables list</p> <dl class="return"><dt><b>Returns:</b></dt><dd>array </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#ab6a45a23420b3f1e5817fbe287c53842">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a686c3e752907a09cc1d87fce2d2bb101"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::getTriggerList" ref="a686c3e752907a09cc1d87fce2d2bb101" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::getTriggerList </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Get triggers list</p> <dl class="return"><dt><b>Returns:</b></dt><dd>array </dd></dl> </div> </div> <a class="anchor" id="ac1cb4888b127b104ed231feae87d3056"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::hasTable" ref="ac1cb4888b127b104ed231feae87d3056" args="($tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::hasTable </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Is db table exists</p> <dl class="return"><dt><b>Returns:</b></dt><dd>boolen </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#aceee5101dd14398aa51b7f3abfe88306">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="aa8f4119b6cc6cf5bfd0d97d45a849d9d"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::hasTrigger" ref="aa8f4119b6cc6cf5bfd0d97d45a849d9d" args="($triggerName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::hasTrigger </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>triggerName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Is db trigger exists</p> <dl class="return"><dt><b>Returns:</b></dt><dd>boolen </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a7c89b938e8554a37e1244207cb75b3ff">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="ad535c5d4d074383feb578fab1e71d2e7"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::insert" ref="ad535c5d4d074383feb578fab1e71d2e7" args="($data, $tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::insert </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Push data to db table</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">boolen</td><td class="paramname">$force</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>boolen </dd></dl> <dl><dt><b>Exceptions:</b></dt><dd> <table class="exception"> <tr><td class="paramname">Exception</td><td></td></tr> </table> </dd> </dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a5f9f2976276f71419539cb1da154f5de">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="abe0d20fb62067de68fb354adc3eb7e8a"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::isEmpty" ref="abe0d20fb62067de68fb354adc3eb7e8a" args="($tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::isEmpty </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Is db table empty</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">string</td><td class="paramname">$tableName</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>boolean </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#ab8b4ba488780a70e219b04cb893549df">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a06dfb3597de81841661535373ce06e0d"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::merge" ref="a06dfb3597de81841661535373ce06e0d" args="($data, $tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::merge </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Merge data to db table</p> <dl><dt><b>Exceptions:</b></dt><dd> <table class="exception"> <tr><td class="paramname">Exception</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>boolean </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a8a92a7e594687733c08bacd9d4217521">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a683e550d89b21e02e4068993f30079fc"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::parseSchema" ref="a683e550d89b21e02e4068993f30079fc" args="($tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::parseSchema </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Parse schema</p> <dl class="return"><dt><b>Returns:</b></dt><dd>array </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#a1eeb0ab74018b405fdd42ba5c37adc2d">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="acea54c81f65be6ea4eceb8dcf3b93659"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::parseTrigger" ref="acea54c81f65be6ea4eceb8dcf3b93659" args="($triggerName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::parseTrigger </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>triggerName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Fetch db triggers</p> <dl class="return"><dt><b>Returns:</b></dt><dd>string </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#acf8d25625a74af2fe9f31e4b621ef0f0">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <a class="anchor" id="a2cc0eb5ae7c4aa0b69a899e84040da83"></a><!-- doxytag: member="DbSync_DbAdapter_AdapterInterface::truncate" ref="a2cc0eb5ae7c4aa0b69a899e84040da83" args="($tableName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DbSync_DbAdapter_AdapterInterface::truncate </td> <td>(</td> <td class="paramtype">$&#160;</td> <td class="paramname"><em>tableName</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Truncate table</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramtype">string</td><td class="paramname">$tableName</td><td></td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>number </dd></dl> <p>Implemented in <a class="el" href="classDbSync__DbAdapter__Mysql.html#afb653194c5832eb8205adb4fe13a35db">DbSync_DbAdapter_Mysql</a>.</p> </div> </div> <hr/>The documentation for this interface was generated from the following file:<ul> <li>DbSync/DbAdapter/AdapterInterface.php</li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Nov 3 2011 03:55:10 for DbSync by&#160; <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>
yhbyun/php-dbsync
docs/html/interfaceDbSync__DbAdapter__AdapterInterface.html
HTML
bsd-2-clause
26,730
<?php $service_doc['departamentos|departments'] = array( 'en' => array ( 'pattern' => '/ubigeo/departments', 'description' => 'Lists the ubigeo codes for all departments', ), 'es' => array( 'patron' => '/ubigeo/departamentos', 'descripción' => 'Lista los códigos de ubigeo de todos los departamentos', ) ); $fdepas = function () use ($app, $db) { $res = get_from_cache('departamentos'); if ($res === false) { $stmt = $db->query("select * from ubigeo where nombreCompleto like '%//'"); $res = $stmt->fetchAll(); save_to_cache('departamentos', $res); } echo json_encode(array( $app->request()->getResourceUri() => $res )); }; $app->get('/ubigeo/departamentos', $fdepas)->name('departamentos'); $app->get('/ubigeo/departments', $fdepas)->name('departments');
emedinaa/ubigeo-peru
app/srv_departamentos.php
PHP
bsd-2-clause
885
#!/usr/bin/env python """Bootstrap setuptools installation To use setuptools in your package's setup.py, include this file in the same directory and add this to the top of your setup.py:: from ez_setup import use_setuptools use_setuptools() To require a specific version of setuptools, set a download mirror, or use an alternate download directory, simply supply the appropriate options to ``use_setuptools()``. This file can also be run as a script to install or upgrade setuptools. """ import os import shutil import sys import tempfile import zipfile import optparse import subprocess import platform import textwrap import contextlib from distutils import log try: # noinspection PyCompatibility from urllib.request import urlopen except ImportError: # noinspection PyCompatibility from urllib2 import urlopen try: from site import USER_SITE except ImportError: USER_SITE = None DEFAULT_VERSION = "7.0" DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/" def _python_cmd(*args): """ Return True if the command succeeded. """ args = (sys.executable,) + args return subprocess.call(args) == 0 def _install(archive_filename, install_args=()): with archive_context(archive_filename): # installing log.warn('Installing Setuptools') if not _python_cmd('setup.py', 'install', *install_args): log.warn('Something went wrong during the installation.') log.warn('See the error message above.') # exitcode will be 2 return 2 def _build_egg(egg, archive_filename, to_dir): with archive_context(archive_filename): # building an egg log.warn('Building a Setuptools egg in %s', to_dir) _python_cmd('setup.py', '-q', 'bdist_egg', '--dist-dir', to_dir) # returning the result log.warn(egg) if not os.path.exists(egg): raise IOError('Could not build the egg.') class ContextualZipFile(zipfile.ZipFile): """ Supplement ZipFile class to support context manager for Python 2.6 """ def __enter__(self): return self def __exit__(self, type, value, traceback): self.close() def __new__(cls, *args, **kwargs): """ Construct a ZipFile or ContextualZipFile as appropriate """ if hasattr(zipfile.ZipFile, '__exit__'): return zipfile.ZipFile(*args, **kwargs) return super(ContextualZipFile, cls).__new__(cls) @contextlib.contextmanager def archive_context(filename): # extracting the archive tmpdir = tempfile.mkdtemp() log.warn('Extracting in %s', tmpdir) old_wd = os.getcwd() try: os.chdir(tmpdir) with ContextualZipFile(filename) as archive: archive.extractall() # going in the directory subdir = os.path.join(tmpdir, os.listdir(tmpdir)[0]) os.chdir(subdir) log.warn('Now working in %s', subdir) yield finally: os.chdir(old_wd) shutil.rmtree(tmpdir) def _do_download(version, download_base, to_dir, download_delay): egg = os.path.join(to_dir, 'setuptools-%s-py%d.%d.egg' % (version, sys.version_info[0], sys.version_info[1])) if not os.path.exists(egg): archive = download_setuptools(version, download_base, to_dir, download_delay) _build_egg(egg, archive, to_dir) sys.path.insert(0, egg) # Remove previously-imported pkg_resources if present (see # https://bitbucket.org/pypa/setuptools/pull-request/7/ for details). if 'pkg_resources' in sys.modules: del sys.modules['pkg_resources'] import setuptools setuptools.bootstrap_install_from = egg def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, download_delay=15): to_dir = os.path.abspath(to_dir) rep_modules = 'pkg_resources', 'setuptools' imported = set(sys.modules).intersection(rep_modules) try: import pkg_resources except ImportError: return _do_download(version, download_base, to_dir, download_delay) try: pkg_resources.require("setuptools>=" + version) return except pkg_resources.DistributionNotFound: return _do_download(version, download_base, to_dir, download_delay) except pkg_resources.VersionConflict as VC_err: if imported: msg = textwrap.dedent(""" The required version of setuptools (>={version}) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U setuptools'. (Currently using {VC_err.args[0]!r}) """).format(VC_err=VC_err, version=version) sys.stderr.write(msg) sys.exit(2) # otherwise, reload ok del pkg_resources, sys.modules['pkg_resources'] return _do_download(version, download_base, to_dir, download_delay) def _clean_check(cmd, target): """ Run the command to download target. If the command fails, clean up before re-raising the error. """ try: subprocess.check_call(cmd) except subprocess.CalledProcessError: if os.access(target, os.F_OK): os.unlink(target) raise def download_file_powershell(url, target): """ Download the file at url to target using Powershell (which will validate trust). Raise an exception if the command cannot complete. """ target = os.path.abspath(target) ps_cmd = ( "[System.Net.WebRequest]::DefaultWebProxy.Credentials = " "[System.Net.CredentialCache]::DefaultCredentials; " "(new-object System.Net.WebClient).DownloadFile(%(url)r, %(target)r)" % vars() ) cmd = [ 'powershell', '-Command', ps_cmd, ] _clean_check(cmd, target) def has_powershell(): if platform.system() != 'Windows': return False cmd = ['powershell', '-Command', 'echo test'] with open(os.path.devnull, 'wb') as devnull: try: subprocess.check_call(cmd, stdout=devnull, stderr=devnull) except Exception: return False return True download_file_powershell.viable = has_powershell def download_file_curl(url, target): cmd = ['curl', url, '--silent', '--output', target] _clean_check(cmd, target) def has_curl(): cmd = ['curl', '--version'] with open(os.path.devnull, 'wb') as devnull: try: subprocess.check_call(cmd, stdout=devnull, stderr=devnull) except Exception: return False return True download_file_curl.viable = has_curl def download_file_wget(url, target): cmd = ['wget', url, '--quiet', '--output-document', target] _clean_check(cmd, target) def has_wget(): cmd = ['wget', '--version'] with open(os.path.devnull, 'wb') as devnull: try: subprocess.check_call(cmd, stdout=devnull, stderr=devnull) except Exception: return False return True download_file_wget.viable = has_wget def download_file_insecure(url, target): """ Use Python to download the file, even though it cannot authenticate the connection. """ src = urlopen(url) try: # Read all the data in one block. data = src.read() finally: src.close() # Write all the data in one block to avoid creating a partial file. with open(target, "wb") as dst: dst.write(data) download_file_insecure.viable = lambda: True def get_best_downloader(): downloaders = ( download_file_powershell, download_file_curl, download_file_wget, download_file_insecure, ) viable_downloaders = (dl for dl in downloaders if dl.viable()) return next(viable_downloaders, None) def download_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, delay=15, downloader_factory=get_best_downloader): """ Download setuptools from a specified location and return its filename `version` should be a valid setuptools version number that is available as an sdist for download under the `download_base` URL (which should end with a '/'). `to_dir` is the directory where the egg will be downloaded. `delay` is the number of seconds to pause before an actual download attempt. ``downloader_factory`` should be a function taking no arguments and returning a function for downloading a URL to a target. """ # making sure we use the absolute path to_dir = os.path.abspath(to_dir) zip_name = "setuptools-%s.zip" % version url = download_base + zip_name saveto = os.path.join(to_dir, zip_name) if not os.path.exists(saveto): # Avoid repeated downloads log.warn("Downloading %s", url) downloader = downloader_factory() downloader(url, saveto) return os.path.realpath(saveto) def _build_install_args(options): """ Build the arguments to 'python setup.py install' on the setuptools package """ return ['--user'] if options.user_install else [] def _parse_args(): """ Parse the command line for options """ parser = optparse.OptionParser() parser.add_option( '--user', dest='user_install', action='store_true', default=False, help='install in user site package (requires Python 2.6 or later)') parser.add_option( '--download-base', dest='download_base', metavar="URL", default=DEFAULT_URL, help='alternative URL from where to download the setuptools package') parser.add_option( '--insecure', dest='downloader_factory', action='store_const', const=lambda: download_file_insecure, default=get_best_downloader, help='Use internal, non-validating downloader' ) parser.add_option( '--version', help="Specify which version to download", default=DEFAULT_VERSION, ) options, args = parser.parse_args() # positional arguments are ignored return options def main(): """Install or upgrade setuptools and EasyInstall""" options = _parse_args() archive = download_setuptools( version=options.version, download_base=options.download_base, downloader_factory=options.downloader_factory, ) return _install(archive, _build_install_args(options)) if __name__ == '__main__': sys.exit(main())
mtholder/peyotl
ez_setup.py
Python
bsd-2-clause
10,592
import sys import unittest from streamlink.plugin.api.utils import itertags def unsupported_versions_1979(): """Unsupported python versions for itertags 3.7.0 - 3.7.2 and 3.8.0a1 - https://github.com/streamlink/streamlink/issues/1979 - https://bugs.python.org/issue34294 """ v = sys.version_info if (v.major == 3) and ( # 3.7.0 - 3.7.2 (v.minor == 7 and v.micro <= 2) # 3.8.0a1 or (v.minor == 8 and v.micro == 0 and v.releaselevel == 'alpha' and v.serial <= 1) ): return True else: return False class TestPluginUtil(unittest.TestCase): test_html = """ <!doctype html> <html lang="en" class="no-js"> <title>Title</title> <meta property="og:type" content= "website" /> <meta property="og:url" content="http://test.se/"/> <meta property="og:site_name" content="Test" /> <script src="https://test.se/test.js"></script> <link rel="stylesheet" type="text/css" href="https://test.se/test.css"> <script>Tester.ready(function () { alert("Hello, world!"); });</script> <p> <a href="http://test.se/foo">bar</a> </p> </html> """ # noqa: W291 def test_itertags_single_text(self): title = list(itertags(self.test_html, "title")) self.assertTrue(len(title), 1) self.assertEqual(title[0].tag, "title") self.assertEqual(title[0].text, "Title") self.assertEqual(title[0].attributes, {}) def test_itertags_attrs_text(self): script = list(itertags(self.test_html, "script")) self.assertTrue(len(script), 2) self.assertEqual(script[0].tag, "script") self.assertEqual(script[0].text, "") self.assertEqual(script[0].attributes, {"src": "https://test.se/test.js"}) self.assertEqual(script[1].tag, "script") self.assertEqual(script[1].text.strip(), """Tester.ready(function () {\nalert("Hello, world!"); });""") self.assertEqual(script[1].attributes, {}) @unittest.skipIf(unsupported_versions_1979(), "python3.7 issue, see bpo-34294") def test_itertags_multi_attrs(self): metas = list(itertags(self.test_html, "meta")) self.assertTrue(len(metas), 3) self.assertTrue(all(meta.tag == "meta" for meta in metas)) self.assertEqual(metas[0].text, None) self.assertEqual(metas[1].text, None) self.assertEqual(metas[2].text, None) self.assertEqual(metas[0].attributes, {"property": "og:type", "content": "website"}) self.assertEqual(metas[1].attributes, {"property": "og:url", "content": "http://test.se/"}) self.assertEqual(metas[2].attributes, {"property": "og:site_name", "content": "Test"}) def test_multi_line_a(self): anchor = list(itertags(self.test_html, "a")) self.assertTrue(len(anchor), 1) self.assertEqual(anchor[0].tag, "a") self.assertEqual(anchor[0].text, "bar") self.assertEqual(anchor[0].attributes, {"href": "http://test.se/foo"}) @unittest.skipIf(unsupported_versions_1979(), "python3.7 issue, see bpo-34294") def test_no_end_tag(self): links = list(itertags(self.test_html, "link")) self.assertTrue(len(links), 1) self.assertEqual(links[0].tag, "link") self.assertEqual(links[0].text, None) self.assertEqual(links[0].attributes, {"rel": "stylesheet", "type": "text/css", "href": "https://test.se/test.css"}) def test_tag_inner_tag(self): links = list(itertags(self.test_html, "p")) self.assertTrue(len(links), 1) self.assertEqual(links[0].tag, "p") self.assertEqual(links[0].text.strip(), '<a \nhref="http://test.se/foo">bar</a>') self.assertEqual(links[0].attributes, {})
beardypig/streamlink
tests/test_plugin_utils.py
Python
bsd-2-clause
3,845
import { inject, injectable } from 'inversify'; import { ServiceIdentifiers } from '../../../container/ServiceIdentifiers'; import * as ESTree from 'estree'; import { TNodeWithStatements } from '../../../types/node/TNodeWithStatements'; import { TObjectExpressionKeysTransformerCustomNodeFactory } from '../../../types/container/custom-nodes/TObjectExpressionKeysTransformerCustomNodeFactory'; import { IObjectExpressionExtractorResult } from '../../../interfaces/node-transformers/converting-transformers/object-expression-extractors/IObjectExpressionExtractorResult'; import { TStatement } from '../../../types/node/TStatement'; import { ICustomNode } from '../../../interfaces/custom-nodes/ICustomNode'; import { TInitialData } from '../../../types/TInitialData'; import { IObjectExpressionExtractor } from '../../../interfaces/node-transformers/converting-transformers/object-expression-extractors/IObjectExpressionExtractor'; import { ObjectExpressionKeysTransformerCustomNode } from '../../../enums/custom-nodes/ObjectExpressionKeysTransformerCustomNode'; import { ObjectExpressionVariableDeclarationHostNode } from '../../../custom-nodes/object-expression-keys-transformer-nodes/ObjectExpressionVariableDeclarationHostNode'; import { NodeAppender } from '../../../node/NodeAppender'; import { NodeGuards } from '../../../node/NodeGuards'; import { NodeStatementUtils } from '../../../node/NodeStatementUtils'; import { NodeUtils } from '../../../node/NodeUtils'; import { TNodeWithLexicalScope } from '../../../types/node/TNodeWithLexicalScope'; import { NodeLexicalScopeUtils } from '../../../node/NodeLexicalScopeUtils'; @injectable() export class ObjectExpressionToVariableDeclarationExtractor implements IObjectExpressionExtractor { /** * @type {TObjectExpressionKeysTransformerCustomNodeFactory} */ private readonly objectExpressionKeysTransformerCustomNodeFactory: TObjectExpressionKeysTransformerCustomNodeFactory; /** * @param {TObjectExpressionKeysTransformerCustomNodeFactory} objectExpressionKeysTransformerCustomNodeFactory */ public constructor ( @inject(ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode) objectExpressionKeysTransformerCustomNodeFactory: TObjectExpressionKeysTransformerCustomNodeFactory, ) { this.objectExpressionKeysTransformerCustomNodeFactory = objectExpressionKeysTransformerCustomNodeFactory; } /** * extracts object expression: * var object = { * foo: 1, * bar: 2 * }; * * to: * var _0xabc123 = { * foo: 1, * bar: 2 * }; * var object = _0xabc123; * * @param {ObjectExpression} objectExpressionNode * @param {Statement} hostStatement * @returns {IObjectExpressionExtractorResult} */ public extract ( objectExpressionNode: ESTree.ObjectExpression, hostStatement: ESTree.Statement ): IObjectExpressionExtractorResult { return this.transformObjectExpressionToVariableDeclaration( objectExpressionNode, hostStatement ); } /** * @param {ObjectExpression} objectExpressionNode * @param {Statement} hostStatement * @returns {Node} */ private transformObjectExpressionToVariableDeclaration ( objectExpressionNode: ESTree.ObjectExpression, hostStatement: ESTree.Statement ): IObjectExpressionExtractorResult { const hostNodeWithStatements: TNodeWithStatements = NodeStatementUtils.getScopeOfNode(hostStatement); const lexicalScopeNode: TNodeWithLexicalScope | null = NodeGuards.isNodeWithLexicalScope(hostNodeWithStatements) ? hostNodeWithStatements : NodeLexicalScopeUtils.getLexicalScope(hostNodeWithStatements) ?? null; if (!lexicalScopeNode) { throw new Error('Cannot find lexical scope node for the host statement node'); } const properties: (ESTree.Property | ESTree.SpreadElement)[] = objectExpressionNode.properties; const newObjectExpressionHostStatement: ESTree.VariableDeclaration = this.getObjectExpressionHostNode( lexicalScopeNode, properties ); const statementsToInsert: TStatement[] = [newObjectExpressionHostStatement]; NodeAppender.insertBefore(hostNodeWithStatements, statementsToInsert, hostStatement); NodeUtils.parentizeAst(newObjectExpressionHostStatement); NodeUtils.parentizeNode(newObjectExpressionHostStatement, hostNodeWithStatements); const newObjectExpressionIdentifier: ESTree.Identifier = this.getObjectExpressionIdentifierNode(newObjectExpressionHostStatement); const newObjectExpressionNode: ESTree.ObjectExpression = this.getObjectExpressionNode(newObjectExpressionHostStatement); return { nodeToReplace: newObjectExpressionIdentifier, objectExpressionHostStatement: newObjectExpressionHostStatement, objectExpressionNode: newObjectExpressionNode }; } /** * @param {TNodeWithLexicalScope} lexicalScopeNode * @param {(Property | SpreadElement)[]} properties * @returns {VariableDeclaration} */ private getObjectExpressionHostNode ( lexicalScopeNode: TNodeWithLexicalScope, properties: (ESTree.Property | ESTree.SpreadElement)[] ): ESTree.VariableDeclaration { const variableDeclarationHostNodeCustomNode: ICustomNode<TInitialData<ObjectExpressionVariableDeclarationHostNode>> = this.objectExpressionKeysTransformerCustomNodeFactory( ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode ); variableDeclarationHostNodeCustomNode.initialize(lexicalScopeNode, properties); const statementNode: TStatement = variableDeclarationHostNodeCustomNode.getNode()[0]; if ( !statementNode || !NodeGuards.isVariableDeclarationNode(statementNode) ) { throw new Error('`objectExpressionHostCustomNode.getNode()[0]` should returns array with `VariableDeclaration` node'); } return statementNode; } /** * @param {VariableDeclaration} objectExpressionHostNode * @returns {Identifier} */ private getObjectExpressionIdentifierNode (objectExpressionHostNode: ESTree.VariableDeclaration): ESTree.Identifier { const newObjectExpressionIdentifierNode: ESTree.Pattern = objectExpressionHostNode.declarations[0].id; if (!NodeGuards.isIdentifierNode(newObjectExpressionIdentifierNode)) { throw new Error('`objectExpressionHostNode` should contain `VariableDeclarator` node with `Identifier` id property'); } return newObjectExpressionIdentifierNode; } /** * @param {VariableDeclaration} objectExpressionHostNode * @returns {Identifier} */ private getObjectExpressionNode (objectExpressionHostNode: ESTree.VariableDeclaration): ESTree.ObjectExpression { const newObjectExpressionNode: ESTree.Expression | null = objectExpressionHostNode.declarations[0].init ?? null; if (!newObjectExpressionNode || !NodeGuards.isObjectExpressionNode(newObjectExpressionNode)) { throw new Error('`objectExpressionHostNode` should contain `VariableDeclarator` node with `ObjectExpression` init property'); } return newObjectExpressionNode; } }
javascript-obfuscator/javascript-obfuscator
src/node-transformers/converting-transformers/object-expression-extractors/ObjectExpressionToVariableDeclarationExtractor.ts
TypeScript
bsd-2-clause
7,524
# $FreeBSD: soc2013/dpl/head/usr.sbin/nfsdumpstate/Makefile 192854 2009-05-26 15:19:04Z rmacklem $ PROG= nfsdumpstate MAN= nfsdumpstate.8 .include <bsd.prog.mk>
dplbsd/zcaplib
head/usr.sbin/nfsdumpstate/Makefile
Makefile
bsd-2-clause
163
function(modal) { function ajaxifyLinks (context) { $('a.address-choice', context).click(function() { modal.loadUrl(this.href); return false; }); $('.pagination a', context).click(function() { var page = this.getAttribute("data-page"); setPage(page); return false; }); }; var searchUrl = $('form.address-search', modal.body).attr('action') function search() { $.ajax({ url: searchUrl, data: {q: $('#id_q').val()}, success: function(data, status) { $('#search-results').html(data); ajaxifyLinks($('#search-results')); } }); return false; }; function setPage(page) { if($('#id_q').val().length){ dataObj = {q: $('#id_q').val(), p: page}; } else { dataObj = {p: page}; } $.ajax({ url: searchUrl, data: dataObj, success: function(data, status) { $('#search-results').html(data); ajaxifyLinks($('#search-results')); } }); return false; } ajaxifyLinks(modal.body); function submitForm() { var formdata = new FormData(this); $.ajax({ url: this.action, data: formdata, processData: false, contentType: false, type: 'POST', dataType: 'text', success: function(response){ modal.loadResponseText(response); } }); return false; } $('form.address-create', modal.body).submit(submitForm); $('form.address-edit', modal.body).submit(submitForm); $('form.address-search', modal.body).submit(search); $('#id_q').on('input', function() { clearTimeout($.data(this, 'timer')); var wait = setTimeout(search, 50); $(this).data('timer', wait); }); {% url 'wagtailadmin_tag_autocomplete' as autocomplete_url %} $('#id_tags', modal.body).tagit({ autocomplete: {source: "{{ autocomplete_url|addslashes }}"} }); function detectErrors() { var errorSections = {}; // First count up all the errors $('form.address-create .error-message').each(function(){ var parentSection = $(this).closest('section'); if(!errorSections[parentSection.attr('id')]){ errorSections[parentSection.attr('id')] = 0; } errorSections[parentSection.attr('id')] = errorSections[parentSection.attr('id')]+1; }); // Now identify them on each tab for(var index in errorSections) { $('.tab-nav a[href=#'+ index +']').addClass('errors').attr('data-count', errorSections[index]); } } detectErrors(); }
MechanisM/wagtailplus
wagtailplus/wagtailaddresses/templates/wagtailaddresses/component-chooser/chooser.js
JavaScript
bsd-2-clause
3,032
require 'spec_helper' describe Hbc::CLI do it "lists the taps for Casks that show up in two taps" do listing = Hbc::CLI.nice_listing(%w[ caskroom/cask/adium caskroom/cask/google-chrome passcod/homebrew-cask/adium ]) expect(listing).to eq(%w[ caskroom/cask/adium google-chrome passcod/cask/adium ]) end describe ".process" do let(:noop_command) { double('CLI::Noop') } before { allow(Hbc::CLI).to receive(:lookup_command) { noop_command } allow(noop_command).to receive(:run) } it "respects the env variable when choosing what appdir to create" do EnvHelper.with_env_var('HOMEBREW_CASK_OPTS', "--appdir=/custom/appdir") do allow(Hbc).to receive(:init) { expect(Hbc.appdir.to_s).to eq('/custom/appdir') } Hbc::CLI.process('noop') end end # todo: merely invoking init causes an attempt to create the caskroom directory # # it "respects the ENV variable when choosing a non-default Caskroom location" do # EnvHelper.with_env_var 'HOMEBREW_CASK_OPTS', "--caskroom=/custom/caskdir" do # allow(Hbc).to receive(:init) { # expect(Hbc.caskroom.to_s).to eq('/custom/caskdir') # } # Hbc::CLI.process('noop') # end # end it "exits with a status of 1 when something goes wrong" do Hbc::CLI.expects(:exit).with(1) Hbc::CLI.expects(:lookup_command).raises(Hbc::CaskError) allow(Hbc).to receive(:init) { shutup { Hbc::CLI.process('noop') } } end it "passes `--version` along to the subcommand" do expect(Hbc::CLI).to receive(:run_command).with(noop_command, '--version') shutup { Hbc::CLI.process(['noop', '--version']) } end end end
jppelteret/homebrew-cask
spec/cask/cli_spec.rb
Ruby
bsd-2-clause
1,816
# $FreeBSD: soc2013/dpl/head/lib/libiconv_modules/UTF1632/Makefile 219062 2011-02-25 00:04:39Z gabor $ SHLIB= UTF1632 SRCS+= citrus_utf1632.c CFLAGS+= --param max-inline-insns-single=32 .include <bsd.lib.mk>
dplbsd/soc2013
head/lib/libiconv_modules/UTF1632/Makefile
Makefile
bsd-2-clause
210
class Fio < Formula desc "I/O benchmark and stress test" homepage "https://github.com/axboe/fio" url "https://github.com/axboe/fio/archive/fio-3.19.tar.gz" sha256 "809963b1d023dbc9ac7065557af8129aee17b6895e0e8c5ca671b0b14285f404" license "GPL-2.0" bottle do cellar :any_skip_relocation sha256 "252dd7cba1c767568b9ecb13fbbd891e1ffe47f590ed126cfea8214ff20333f5" => :catalina sha256 "2b4b3372f9ad040eb974ba38ecdde11c08b0328fae71d785e5d0b88c77ecffc3" => :mojave sha256 "89e47c70a1cca2e1acf29b97720da6b968348ea93a5e417fdca7ad86d670114d" => :high_sierra sha256 "36e4581c322b86af955360a9986647ed433cff09029e47e67450d65dc9a95766" => :x86_64_linux end uses_from_macos "zlib" def install system "./configure" # fio's CFLAGS passes vital stuff around, and crushing it will break the build system "make", "prefix=#{prefix}", "mandir=#{man}", "sharedir=#{share}", "CC=#{ENV.cc}", "V=true", # get normal verbose output from fio's makefile "install" end test do system "#{bin}/fio", "--parse-only" end end
rwhogg/homebrew-core
Formula/fio.rb
Ruby
bsd-2-clause
1,150
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>SFMT: Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">SFMT &#160;<span id="projectnumber">1.4</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); </script> <div id="main-nav"></div> </div><!-- top --> <div class="contents"> &#160;<ul> <li>sfmt_t : <a class="el" href="_s_f_m_t_8h.html#a786e4a6ba82d3cb2f62241d6351d973f">SFMT.h</a> </li> <li>w128_t : <a class="el" href="_s_f_m_t_8h.html#ab1ee414cba9ca0f33a3716e7a92c2b79">SFMT.h</a> </li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Feb 7 2017 13:45:36 for SFMT by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.13 </small></address> </body> </html>
dc1394/kakegruitwin_MC
src/SFMT-src-1.5.1/html/globals_type.html
HTML
bsd-2-clause
1,925
/**************************************************************************** * arch/arm/src/nuc1xx/nuc_lowputc.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ /**************************************************************************** * Included Files ****************************************************************************/ #include <nuttx/config.h> #include <stdint.h> #include <assert.h> #include <debug.h> #include <arch/board/board.h> #include "up_arch.h" #include "chip.h" #include "nuc_config.h" #include "chip/chip/nuc_clk.h" #include "chip/chip/nuc_uart.h" #include "chip/nuc_gcr.h" #include "nuc_lowputc.h" /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ /* Get the serial console UART configuration */ #ifdef HAVE_SERIAL_CONSOLE # if defined(CONFIG_UART0_SERIAL_CONSOLE) # define NUC_CONSOLE_BASE NUC_UART0_BASE # define NUC_CONSOLE_DEPTH UART0_FIFO_DEPTH # define NUC_CONSOLE_BAUD CONFIG_UART0_BAUD # define NUC_CONSOLE_BITS CONFIG_UART0_BITS # define NUC_CONSOLE_PARITY CONFIG_UART0_PARITY # define NUC_CONSOLE_2STOP CONFIG_UART0_2STOP # elif defined(CONFIG_UART1_SERIAL_CONSOLE) # define NUC_CONSOLE_BASE NUC_UART1_BASE # define NUC_CONSOLE_DEPTH UART1_FIFO_DEPTH # define NUC_CONSOLE_BAUD CONFIG_UART1_BAUD # define NUC_CONSOLE_BITS CONFIG_UART1_BITS # define NUC_CONSOLE_PARITY CONFIG_UART1_PARITY # define NUC_CONSOLE_2STOP CONFIG_UART1_2STOP # elif defined(CONFIG_UART2_SERIAL_CONSOLE) # define NUC_CONSOLE_BASE NUC_UART2_BASE # define NUC_CONSOLE_DEPTH UART2_FIFO_DEPTH # define NUC_CONSOLE_BAUD CONFIG_UART2_BAUD # define NUC_CONSOLE_BITS CONFIG_UART2_BITS # define NUC_CONSOLE_PARITY CONFIG_UART2_PARITY # define NUC_CONSOLE_2STOP CONFIG_UART2_2STOP # endif #endif /* Select either the external high speed crystal, the PLL output, or * the internal high speed clock as the UART clock source. */ #if defined(CONFIG_NUC_UARTCLK_XTALHI) # define NUC_UART_CLK BOARD_XTALHI_FREQUENCY #elif defined(CONFIG_NUC_UARTCLK_PLL) # define NUC_UART_CLK BOARD_PLL_FOUT #elif defined(CONFIG_NUC_UARTCLK_INTHI) # define NUC_UART_CLK NUC_INTHI_FREQUENCY #endif /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** * Name: nuc_console_ready * * Description: * Wait until the console is ready to add another character to the TX * FIFO. * *****************************************************************************/ #ifdef HAVE_SERIAL_CONSOLE static inline void nuc_console_ready(void) { #if 1 /* Wait for the TX FIFO to be empty (excessive!) */ while ((getreg32(NUC_CONSOLE_BASE + NUC_UART_FSR_OFFSET) & UART_FSR_TX_EMPTY) == 0); #else uint32_t depth; /* Wait until there is space in the TX FIFO */ do { register uint32_t regval = getreg32(NUC_CONSOLE_BASE + NUC_UART_FSR_OFFSET); depth = (regval & UART_FSR_TX_POINTER_MASK) >> UART_FSR_TX_POINTER_SHIFT; } while (depth >= (NUC_CONSOLE_DEPTH-1)); #endif } #endif /* HAVE_SERIAL_CONSOLE */ /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** * Name: nuc_lowsetup * * Description: * Called at the very beginning of _start. Performs low level initialization. * *****************************************************************************/ void nuc_lowsetup(void) { #ifdef HAVE_UART uint32_t regval; /* Configure UART GPIO pins. * * Basic UART0 TX/RX requires that GPIOB MFP bits 0 and 1 be set. If flow * control is enabled, then GPIOB MFP bits 3 and 4 must also be set and ALT * MFP bits 11, 13, and 14 must be cleared. */ #if defined(CONFIG_NUC_UART0) || defined(CONFIG_NUC_UART1) regval = getreg32(NUC_GCR_GPB_MFP); #ifdef CONFIG_NUC_UART0 #ifdef CONFIG_UART0_FLOW_CONTROL regval |= (GCR_GPB_MFP0 | GCR_GPB_MFP1 | GCR_GPB_MFP2| GCR_GPB_MFP3); #else regval |= (GCR_GPB_MFP0 | GCR_GPB_MFP1); #endif #endif /* CONFIG_NUC_UART0 */ /* Basic UART1 TX/RX requires that GPIOB MFP bits 4 and 5 be set. If flow * control is enabled, then GPIOB MFP bits 6 and 7 must also be set and ALT * MFP bit 11 must be cleared. */ #ifdef CONFIG_NUC_UART1 #ifdef CONFIG_UART1_FLOW_CONTROL regval |= (GCR_GPB_MFP4 | GCR_GPB_MFP5 | GCR_GPB_MFP6| GCR_GPB_MFP7) #else regval |= (GCR_GPB_MFP4 | GCR_GPB_MFP5); #endif #endif /* CONFIG_NUC_UART1 */ putreg32(regval, NUC_GCR_GPB_MFP); #if defined(CONFIG_UART0_FLOW_CONTROL) || defined(CONFIG_UART1_FLOW_CONTROL) regval = getreg32(NUC_GCR_ALT_MFP); regval &= ~GCR_ALT_MFP_EBI_EN; #ifdef CONFIG_UART0_FLOW_CONTROL regval &= ~(GCR_ALT_MFP_EBI_NWRL_EN | GCR_ALT_MFP_EBI_NWRH_WN); #endif putreg32(NUC_GCR_ALT_MFP); #endif /* CONFIG_UART0_FLOW_CONTROL || CONFIG_UART1_FLOW_CONTROL */ #endif /* CONFIG_NUC_UART0 || CONFIG_NUC_UART1 */ /* UART1 TX/RX support requires that GPIOD bits 14 and 15 be set. UART2 * does not support flow control. */ #ifdef CONFIG_NUC_UART2 regval = getreg32(NUC_GCR_GPD_MFP); regval |= (GCR_GPD_MFP14 | GCR_GPD_MFP15); putreg32(regval, NUC_GCR_GPD_MFP); #endif /* CONFIG_NUC_UART2 */ /* Reset the UART peripheral(s) */ regval = getreg32(NUC_GCR_IPRSTC2); #ifdef CONFIG_NUC_UART0 regval |= GCR_IPRSTC2_UART0_RST; putreg32(regval, NUC_GCR_IPRSTC2); regval &= ~GCR_IPRSTC2_UART0_RST; putreg32(regval, NUC_GCR_IPRSTC2); #endif #ifdef CONFIG_NUC_UART1 regval |= GCR_IPRSTC2_UART1_RST; putreg32(regval, NUC_GCR_IPRSTC2); regval &= ~GCR_IPRSTC2_UART1_RST; putreg32(regval, NUC_GCR_IPRSTC2); #endif #ifdef CONFIG_NUC_UART2 regval |= GCR_IPRSTC2_UART2_RST; putreg32(regval, NUC_GCR_IPRSTC2); regval &= ~GCR_IPRSTC2_UART2_RST; putreg32(regval, NUC_GCR_IPRSTC2); #endif /* Configure the UART clock source. Set the UART clock source to either * the external high speed crystal (CLKSEL1 reset value), the PLL output, * or the internal high speed clock. */ regval = getreg32(NUC_CLK_CLKSEL1); regval &= ~CLK_CLKSEL1_UART_S_MASK; #if defined(CONFIG_NUC_UARTCLK_XTALHI) regval |= CLK_CLKSEL1_UART_S_XTALHI; #elif defined(CONFIG_NUC_UARTCLK_PLL) regval |= CLK_CLKSEL1_UART_S_PLL; #elif defined(CONFIG_NUC_UARTCLK_INTHI) regval |= CLK_CLKSEL1_UART_S_INTHI; #endif putreg32(regval, NUC_CLK_CLKSEL1); /* Enable UART clocking for the selected UARTs */ regval = getreg32(NUC_CLK_APBCLK); regval &= ~(CLK_APBCLK_UART0_EN | CLK_APBCLK_UART1_EN | CLK_APBCLK_UART2_EN); #ifdef CONFIG_NUC_UART0 regval |= CLK_APBCLK_UART0_EN; #endif #ifdef CONFIG_NUC_UART1 regval |= CLK_APBCLK_UART1_EN; #endif #ifdef CONFIG_NUC_UART2 regval |= CLK_APBCLK_UART2_EN; #endif putreg32(regval, NUC_CLK_APBCLK); /* Configure the console UART */ #ifdef HAVE_SERIAL_CONSOLE /* Reset the TX FIFO */ regval = getreg32(NUC_CONSOLE_BASE + NUC_UART_FCR_OFFSET); regval &= ~(UART_FCR_TFR | UART_FCR_RFR); putreg32(regval | UART_FCR_TFR, NUC_CONSOLE_BASE + NUC_UART_FCR_OFFSET); /* Reset the RX FIFO */ putreg32(regval | UART_FCR_RFR, NUC_CONSOLE_BASE + NUC_UART_FCR_OFFSET); /* Set Rx Trigger Level */ regval &= ~UART_FCR_RFITL_MASK; regval |= UART_FCR_RFITL_4; putreg32(regval, NUC_CONSOLE_BASE + NUC_UART_FCR_OFFSET); /* Set Parity & Data bits and Stop bits */ regval = 0; #if NUC_CONSOLE_BITS == 5 regval |= UART_LCR_WLS_5; #elif NUC_CONSOLE_BITS == 6 regval |= UART_LCR_WLS_6; #elif NUC_CONSOLE_BITS == 7 regval |= UART_LCR_WLS_7; #elif NUC_CONSOLE_BITS == 8 regval |= UART_LCR_WLS_8; #else error "Unknown console UART data width" #endif #if NUC_CONSOLE_PARITY == 1 regval |= UART_LCR_PBE; #elif NUC_CONSOLE_PARITY == 2 regval |= (UART_LCR_PBE | UART_LCR_EPE); #endif #if NUC_CONSOLE_2STOP != 0 regval |= UART_LCR_NSB; #endif putreg32(regval, NUC_CONSOLE_BASE + NUC_UART_LCR_OFFSET); /* Set Time-Out values */ regval = UART_TOR_TOIC(40) | UART_TOR_DLY(0); putreg32(regval, NUC_CONSOLE_BASE + NUC_UART_TOR_OFFSET); /* Set the baud */ nuc_setbaud(NUC_CONSOLE_BASE, NUC_CONSOLE_BAUD); #endif /* HAVE_SERIAL_CONSOLE */ #endif /* HAVE_UART */ } /**************************************************************************** * Name: nuc_lowputc * * Description: * Output one character to the UART using a simple polling method. * *****************************************************************************/ void nuc_lowputc(uint32_t ch) { #ifdef HAVE_SERIAL_CONSOLE /* Wait for the TX FIFO to become available */ nuc_console_ready(); /* Then write the character to to the TX FIFO */ putreg32(ch, NUC_CONSOLE_BASE + NUC_UART_THR_OFFSET); #endif /* HAVE_SERIAL_CONSOLE */ } /**************************************************************************** * Name: nuc_setbaud * * Description: * Set the BAUD divxisor for the selected UART * * Mode DIV_X_EN DIV_X_ONE Divider X BRD (Baud rate equation) * ------------------------------------------------------------- * 0 0 0 B A UART_CLK / [16 * (A+2)] * 1 1 0 B A UART_CLK / [(B+1) * (A+2)] , B must >= 8 * 2 1 1 Don't care A UART_CLK / (A+2), A must >=3 * * Here we assume that the default clock source for the UART modules is * the external high speed crystal. * *****************************************************************************/ #ifdef HAVE_UART void nuc_setbaud(uintptr_t base, uint32_t baud) { uint32_t regval; uint32_t clksperbit; uint32_t brd; uint32_t divx; regval = getreg32(base + NUC_UART_BAUD_OFFSET); /* Mode 0: Source Clock mod 16 < 3 => Using Divider X = 16 */ clksperbit = (NUC_UART_CLK + (baud >> 1)) / baud; if ((clksperbit & 15) < 3) { regval &= ~(UART_BAUD_DIV_X_ONE | UART_BAUD_DIV_X_EN); brd = (clksperbit >> 4) - 2; } /* Source Clock mod 16 >3 => Up 5% Error BaudRate */ else { /* Mode 2: Try to Set Divider X = 1 */ regval |= (UART_BAUD_DIV_X_ONE | UART_BAUD_DIV_X_EN); brd = clksperbit - 2; /* Check if the divxider exceeds the range */ if (brd > 0xffff) { /* Mode 1: Try to Set Divider X up 10 */ regval &= ~UART_BAUD_DIV_X_ONE; for (divx = 8; divx < 16; divx++) { brd = clksperbit % (divx + 1); if (brd < 3) { regval &= ~UART_BAUD_DIVIDER_X_MASK; regval |= UART_BAUD_DIVIDER_X(divx); brd -= 2; break; } } } } regval &= ~UART_BAUD_BRD_MASK; regval |= UART_BAUD_BRD(brd); putreg32(regval, base + NUC_UART_BAUD_OFFSET); } #endif /* HAVE_UART */
IUTInfoAix/terrarium_2015
nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c
C
bsd-2-clause
12,821
require "language/haskell" class Purescript < Formula include Language::Haskell::Cabal desc "Strongly typed programming language that compiles to JavaScript" homepage "http://www.purescript.org" url "https://github.com/purescript/purescript/archive/v0.11.7.tar.gz" sha256 "56b715acc4b92a5e389f7ec5244c9306769a515e1da2696d9c2c89e318adc9f9" head "https://github.com/purescript/purescript.git" bottle do cellar :any_skip_relocation sha256 "b1e281b76d895e1791902765491a35ed2524cff90ecb99a72a190b1e0f387b77" => :high_sierra sha256 "01c8ec5708e23689a7e47a2cea0a3130cdcc4cce3b621c3b4c6b3653a1481617" => :sierra sha256 "ee0a11eb6bfd302a27653c074a0d237b5bdf570579394b94fe21ee0638a8e0ef" => :el_capitan end depends_on "cabal-install" => :build depends_on "ghc" => :build def install inreplace (buildpath/"scripts").children, /^purs /, "#{bin}/purs " bin.install (buildpath/"scripts").children cabal_sandbox do if build.head? cabal_install "hpack" system "./.cabal-sandbox/bin/hpack" else system "cabal", "get", "purescript-#{version}" mv "purescript-#{version}/purescript.cabal", "." end install_cabal_package "-f release", :using => ["alex", "happy"] end end test do test_module_path = testpath/"Test.purs" test_target_path = testpath/"test-module.js" test_module_path.write <<~EOS module Test where main :: Int main = 1 EOS system bin/"psc", test_module_path, "-o", test_target_path assert_predicate test_target_path, :exist? end end
aren55555/homebrew-core
Formula/purescript.rb
Ruby
bsd-2-clause
1,593
# Keywords This listing explains the usage of every Pony keyword. |Keyword | Usage| | --- | --- | | actor | defines an actor | as | conversion of a value to another Type (can raise an error) | be | behavior, executed asynchronously | box | default reference capability – object is readable, but not writable | break | to step out of a loop statement | class | defines a class | compile_error | will provoke a compile error | continue | continues a loop with the next iteration | consume | move a value to a new variable, leaving the original variable empty | do | loop statement, or after a with statement | else | conditional statement in if, for, while, repeat, try (as a catch block), match | elseif | conditional statement, also used with ifdef | embed | embed a class as a field of another class | end | ending of: if then, ifdef, while do, for in, repeat until, try, object, lambda, recover, match | error | raises an error | for | loop statement | fun | define a function, executed synchronously | if | (1) conditional statement | | (2) to define a guard in a pattern match | ifdef | when defining a build flag at compile time: ponyc –D "foo" | in | used in a for in - loop statement | interface | used in structural subtyping | is | (1) used in nominal subtyping | | (2) in type aliasing | iso | reference capability – read and write uniqueness | lambda | to make a closure | let | declaration of immutable variable: you can't rebind this name to a new value | match | pattern matching | new | constructor | object | to make an object literal | primitive | declares a primitive type | recover | removes the reference capability of a variable | ref | reference capability – object (on which function is called) is mutable | repeat | loop statement | return | to return early from a function | tag | reference capability – neither readable nor writeable, only object identity | then | (1) in if conditional statement | | (2) as a (finally) block in try | this | the current object | trait | used in nominal subtyping: class Foo is TraitName | trn | reference capability – write uniqueness, no other actor can write to the object | try | error handling | type | to declare a type alias | until | loop statement | use | (1) using a package | | (2) using an external library foo: use "lib:foo" | | (3) declaration of an FFI signature | | (4) add a search path for external libraries: use "path:/usr/local/lib" | var | declaration of mutable variable: you can rebind this name to a new value | val | reference capability – globally immutable object | where | when specifying named arguments | while | loop statement | with | ensure disposal of an object
rurban/pony-tutorial
appendices/keywords.md
Markdown
bsd-2-clause
2,703
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Dirk Mueller (mueller@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #ifndef HTMLButtonElement_h #define HTMLButtonElement_h #include "HTMLFormControlElement.h" namespace WebCore { class HTMLButtonElement : public HTMLFormControlElement { public: static PassRefPtr<HTMLButtonElement> create(const QualifiedName&, Document*, HTMLFormElement*); void setType(const AtomicString&); String value() const; virtual bool willRespondToMouseClickEvents() OVERRIDE; private: HTMLButtonElement(const QualifiedName& tagName, Document*, HTMLFormElement*); enum Type { SUBMIT, RESET, BUTTON }; virtual const AtomicString& formControlType() const; virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); virtual void willAddAuthorShadowRoot() OVERRIDE; virtual void parseAttribute(const Attribute&) OVERRIDE; virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; virtual void defaultEventHandler(Event*); virtual bool appendFormData(FormDataList&, bool); virtual bool isEnumeratable() const { return true; } virtual bool supportLabels() const OVERRIDE { return true; } virtual bool isSuccessfulSubmitButton() const; virtual bool isActivatedSubmit() const; virtual void setActivatedSubmit(bool flag); virtual void accessKeyAction(bool sendMouseEvents); virtual bool isURLAttribute(const Attribute&) const OVERRIDE; virtual bool canStartSelection() const { return false; } virtual bool isOptionalFormControl() const { return true; } virtual bool recalcWillValidate() const; Type m_type; bool m_isActivatedSubmit; }; } // namespace #endif
yoavweiss/RespImg-WebCore
html/HTMLButtonElement.h
C
bsd-2-clause
2,638
/* * Copyright (c) 2008-2011, Matthias Mann * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Matthias Mann nor the names of its contributors may * be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package de.matthiasmann.twl; import de.matthiasmann.twl.model.IntegerModel; import de.matthiasmann.twl.model.ListModel; import de.matthiasmann.twl.renderer.Image; import de.matthiasmann.twl.utils.TypeMapping; /** * A wheel widget. * * @param <T> The data type for the wheel items * * @author Matthias Mann */ public class WheelWidget<T> extends Widget { public interface ItemRenderer { public Widget getRenderWidget(Object data); } private final TypeMapping<ItemRenderer> itemRenderer; private final L listener; private final R renderer; private final Runnable timerCB; protected int itemHeight; protected int numVisibleItems; protected Image selectedOverlay; private static final int TIMER_INTERVAL = 30; private static final int MIN_SPEED = 3; private static final int MAX_SPEED = 100; protected Timer timer; protected int dragStartY; protected long lastDragTime; protected long lastDragDelta; protected int lastDragDist; protected boolean hasDragStart; protected boolean dragActive; protected int scrollOffset; protected int scrollAmount; protected ListModel<T> model; protected IntegerModel selectedModel; protected int selected; protected boolean cyclic; public WheelWidget() { this.itemRenderer = new TypeMapping<ItemRenderer>(); this.listener = new L(); this.renderer = new R(); this.timerCB = new Runnable() { public void run() { onTimer(); } }; itemRenderer.put(String.class, new StringItemRenderer()); super.insertChild(renderer, 0); setCanAcceptKeyboardFocus(true); } public WheelWidget(ListModel<T> model) { this(); this.model = model; } public ListModel<T> getModel() { return model; } public void setModel(ListModel<T> model) { removeListener(); this.model = model; addListener(); invalidateLayout(); } public IntegerModel getSelectedModel() { return selectedModel; } public void setSelectedModel(IntegerModel selectedModel) { removeSelectedListener(); this.selectedModel = selectedModel; addSelectedListener(); } public int getSelected() { return selected; } public void setSelected(int selected) { int oldSelected = this.selected; if(oldSelected != selected) { this.selected = selected; if(selectedModel != null) { selectedModel.setValue(selected); } firePropertyChange("selected", oldSelected, selected); } } public boolean isCyclic() { return cyclic; } public void setCyclic(boolean cyclic) { this.cyclic = cyclic; } public int getItemHeight() { return itemHeight; } public int getNumVisibleItems() { return numVisibleItems; } public boolean removeItemRenderer(Class<? extends T> clazz) { if(itemRenderer.remove(clazz)) { super.removeAllChildren(); invalidateLayout(); return true; } return false; } public void registerItemRenderer(Class<? extends T> clazz, ItemRenderer value) { itemRenderer.put(clazz, value); invalidateLayout(); } public void scroll(int amount) { scrollInt(amount); scrollAmount = 0; } protected void scrollInt(int amount) { int pos = selected; int half = itemHeight / 2; scrollOffset += amount; while(scrollOffset >= half) { scrollOffset -= itemHeight; pos++; } while(scrollOffset <= -half) { scrollOffset += itemHeight; pos--; } if(!cyclic) { int n = getNumEntries(); if(n > 0) { while(pos >= n) { pos--; scrollOffset += itemHeight; } } while(pos < 0) { pos++; scrollOffset -= itemHeight; } scrollOffset = Math.max(-itemHeight, Math.min(itemHeight, scrollOffset)); } setSelected(pos); if(scrollOffset == 0 && scrollAmount == 0) { stopTimer(); } else { startTimer(); } } public void autoScroll(int dir) { if(dir != 0) { if(scrollAmount != 0 && Integer.signum(scrollAmount) != Integer.signum(dir)) { scrollAmount = dir; } else { scrollAmount += dir; } startTimer(); } } @Override public int getPreferredInnerHeight() { return numVisibleItems * itemHeight; } @Override public int getPreferredInnerWidth() { int width = 0; for(int i=0,n=getNumEntries() ; i<n ; i++) { Widget w = getItemRenderer(i); if(w != null) { width = Math.max(width, w.getPreferredWidth()); } } return width; } @Override protected void paintOverlay(GUI gui) { super.paintOverlay(gui); if(selectedOverlay != null) { int y = getInnerY() + itemHeight * (numVisibleItems/2); if((numVisibleItems & 1) == 0) { y -= itemHeight/2; } selectedOverlay.draw(getAnimationState(), getX(), y, getWidth(), itemHeight); } } @Override protected boolean handleEvent(Event evt) { if(evt.isMouseDragEnd() && dragActive) { int absDist = Math.abs(lastDragDist); if(absDist > 3 && lastDragDelta > 0) { int amount = (int)Math.min(1000, absDist * 100 / lastDragDelta); autoScroll(amount * Integer.signum(lastDragDist)); } hasDragStart = false; dragActive = false; return true; } if(evt.isMouseDragEvent()) { if(hasDragStart) { long time = getTime(); dragActive = true; lastDragDist = dragStartY - evt.getMouseY(); lastDragDelta = Math.max(1, time - lastDragTime); scroll(lastDragDist); dragStartY = evt.getMouseY(); lastDragTime = time; } return true; } if(super.handleEvent(evt)) { return true; } switch(evt.getType()) { case MOUSE_WHEEL: autoScroll(itemHeight * evt.getMouseWheelDelta()); return true; case MOUSE_BTNDOWN: if(evt.getMouseButton() == Event.MOUSE_LBUTTON) { dragStartY = evt.getMouseY(); lastDragTime = getTime(); hasDragStart = true; } return true; case KEY_PRESSED: switch(evt.getKeyCode()) { case Event.KEY_UP: autoScroll(-itemHeight); return true; case Event.KEY_DOWN: autoScroll(+itemHeight); return true; } return false; } return evt.isMouseEvent(); } protected long getTime() { GUI gui = getGUI(); return (gui != null) ? gui.getCurrentTime() : 0; } protected int getNumEntries() { return (model == null) ? 0 : model.getNumEntries(); } protected Widget getItemRenderer(int i) { T item = model.getEntry(i); if(item != null) { ItemRenderer ir = itemRenderer.get(item.getClass()); if(ir != null) { Widget w = ir.getRenderWidget(item); if(w != null) { if(w.getParent() != renderer) { w.setVisible(false); renderer.add(w); } return w; } } } return null; } protected void startTimer() { if(timer != null && !timer.isRunning()) { timer.start(); } } protected void stopTimer() { if(timer != null) { timer.stop(); } } protected void onTimer() { int amount = scrollAmount; int newAmount = amount; if(amount == 0 && !dragActive) { amount = -scrollOffset; } if(amount != 0) { int absAmount = Math.abs(amount); int speed = absAmount * TIMER_INTERVAL / 200; int dir = Integer.signum(amount) * Math.min(absAmount, Math.max(MIN_SPEED, Math.min(MAX_SPEED, speed))); if(newAmount != 0) { newAmount -= dir; } scrollAmount = newAmount; scrollInt(dir); } } @Override protected void layout() { layoutChildFullInnerArea(renderer); } @Override protected void applyTheme(ThemeInfo themeInfo) { super.applyTheme(themeInfo); applyThemeWheel(themeInfo); } protected void applyThemeWheel(ThemeInfo themeInfo) { itemHeight = themeInfo.getParameter("itemHeight", 10); numVisibleItems = themeInfo.getParameter("visibleItems", 5); selectedOverlay = themeInfo.getImage("selectedOverlay"); invalidateLayout(); } @Override protected void afterAddToGUI(GUI gui) { super.afterAddToGUI(gui); addListener(); addSelectedListener(); timer = gui.createTimer(); timer.setCallback(timerCB); timer.setDelay(TIMER_INTERVAL); timer.setContinuous(true); } @Override protected void beforeRemoveFromGUI(GUI gui) { timer.stop(); timer = null; removeListener(); removeSelectedListener(); super.beforeRemoveFromGUI(gui); } @Override public void insertChild(Widget child, int index) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } @Override public void removeAllChildren() throws UnsupportedOperationException { throw new UnsupportedOperationException(); } @Override public Widget removeChild(int index) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } private void addListener() { if(model != null) { model.addChangeListener(listener); } } private void removeListener() { if(model != null) { model.removeChangeListener(listener); } } private void addSelectedListener() { if(selectedModel != null) { selectedModel.addCallback(listener); syncSelected(); } } private void removeSelectedListener() { if(selectedModel != null) { selectedModel.removeCallback(listener); } } void syncSelected() { setSelected(selectedModel.getValue()); } void entriesDeleted(int first, int last) { if(selected > first) { if(selected > last) { setSelected(selected - (last-first+1)); } else { setSelected(first); } } invalidateLayout(); } void entriesInserted(int first, int last) { if(selected >= first) { setSelected(selected + (last-first+1)); } invalidateLayout(); } class L implements ListModel.ChangeListener, Runnable { public void allChanged() { invalidateLayout(); } public void entriesChanged(int first, int last) { invalidateLayout(); } public void entriesDeleted(int first, int last) { WheelWidget.this.entriesDeleted(first, last); } public void entriesInserted(int first, int last) { WheelWidget.this.entriesInserted(first, last); } public void run() { syncSelected(); } } class R extends Widget { public R() { setTheme(""); setClip(true); } @Override protected void paintWidget(GUI gui) { if(model == null) { return; } int width = getInnerWidth(); int x = getInnerX(); int y = getInnerY(); int numItems = model.getNumEntries(); int numDraw = numVisibleItems; int startIdx = selected - numVisibleItems/2; if((numDraw & 1) == 0) { y -= itemHeight / 2; numDraw++; } if(scrollOffset > 0) { y -= scrollOffset; numDraw++; } if(scrollOffset < 0) { y -= itemHeight + scrollOffset; numDraw++; startIdx--; } main: for(int i=0 ; i<numDraw ; i++) { int idx = startIdx + i; while(idx < 0) { if(!cyclic) { continue main; } idx += numItems; } while(idx >= numItems) { if(!cyclic) { continue main; } idx -= numItems; } Widget w = getItemRenderer(idx); if(w != null) { w.setSize(width, itemHeight); w.setPosition(x, y + i*itemHeight); w.validateLayout(); paintChild(gui, w); } } } @Override public void invalidateLayout() { } @Override protected void sizeChanged() { } } public static class StringItemRenderer extends Label implements WheelWidget.ItemRenderer { public StringItemRenderer() { setCache(false); } public Widget getRenderWidget(Object data) { setText(String.valueOf(data)); return this; } @Override protected void sizeChanged() { } } }
ColaMachine/MyBlock
src/main/java/de/matthiasmann/twl/WheelWidget.java
Java
bsd-2-clause
16,353
/* * Copyright (c) 2001 Alexander Kabaev * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer * in this position and unchanged. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: soc2013/dpl/head/lib/libkse/thread/thr_rtld.c 174155 2007-11-30 17:20:29Z deischen $ */ #include <sys/cdefs.h> #include <stdlib.h> #include "rtld_lock.h" #include "thr_private.h" static int _thr_rtld_clr_flag(int); static void *_thr_rtld_lock_create(void); static void _thr_rtld_lock_destroy(void *); static void _thr_rtld_lock_release(void *); static void _thr_rtld_rlock_acquire(void *); static int _thr_rtld_set_flag(int); static void _thr_rtld_wlock_acquire(void *); #ifdef NOTYET static void * _thr_rtld_lock_create(void) { pthread_rwlock_t prwlock; if (_pthread_rwlock_init(&prwlock, NULL)) return (NULL); return (prwlock); } static void _thr_rtld_lock_destroy(void *lock) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)lock; if (prwlock != NULL) _pthread_rwlock_destroy(&prwlock); } static void _thr_rtld_rlock_acquire(void *lock) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)lock; _thr_rwlock_rdlock(&prwlock); } static void _thr_rtld_wlock_acquire(void *lock) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)lock; _thr_rwlock_wrlock(&prwlock); } static void _thr_rtld_lock_release(void *lock) { pthread_rwlock_t prwlock; prwlock = (pthread_rwlock_t)lock; _thr_rwlock_unlock(&prwlock); } static int _thr_rtld_set_flag(int mask) { struct pthread *curthread; int bits; curthread = _get_curthread(); if (curthread != NULL) { bits = curthread->rtld_bits; curthread->rtld_bits |= mask; } else { bits = 0; PANIC("No current thread in rtld call"); } return (bits); } static int _thr_rtld_clr_flag(int mask) { struct pthread *curthread; int bits; curthread = _get_curthread(); if (curthread != NULL) { bits = curthread->rtld_bits; curthread->rtld_bits &= ~mask; } else { bits = 0; PANIC("No current thread in rtld call"); } return (bits); } void _thr_rtld_init(void) { struct RtldLockInfo li; li.lock_create = _thr_rtld_lock_create; li.lock_destroy = _thr_rtld_lock_destroy; li.rlock_acquire = _thr_rtld_rlock_acquire; li.wlock_acquire = _thr_rtld_wlock_acquire; li.lock_release = _thr_rtld_lock_release; li.thread_set_flag = _thr_rtld_set_flag; li.thread_clr_flag = _thr_rtld_clr_flag; li.at_fork = NULL; _rtld_thread_init(&li); } void _thr_rtld_fini(void) { _rtld_thread_init(NULL); } #endif struct rtld_kse_lock { struct lock lck; struct kse *owner; kse_critical_t crit; int count; int write; }; static void * _thr_rtld_lock_create(void) { struct rtld_kse_lock *l; if ((l = malloc(sizeof(struct rtld_kse_lock))) != NULL) { _lock_init(&l->lck, LCK_ADAPTIVE, _kse_lock_wait, _kse_lock_wakeup, calloc); l->owner = NULL; l->count = 0; l->write = 0; } return (l); } static void _thr_rtld_lock_destroy(void *lock __unused) { /* XXX We really can not free memory after a fork() */ #if 0 struct rtld_kse_lock *l; l = (struct rtld_kse_lock *)lock; _lock_destroy(&l->lck); free(l); #endif return; } static void _thr_rtld_rlock_acquire(void *lock) { struct rtld_kse_lock *l; kse_critical_t crit; struct kse *curkse; l = (struct rtld_kse_lock *)lock; crit = _kse_critical_enter(); curkse = _get_curkse(); if (l->owner == curkse) { l->count++; _kse_critical_leave(crit); /* probably not necessary */ } else { KSE_LOCK_ACQUIRE(curkse, &l->lck); l->crit = crit; l->owner = curkse; l->count = 1; l->write = 0; } } static void _thr_rtld_wlock_acquire(void *lock) { struct rtld_kse_lock *l; kse_critical_t crit; struct kse *curkse; l = (struct rtld_kse_lock *)lock; crit = _kse_critical_enter(); curkse = _get_curkse(); if (l->owner == curkse) { _kse_critical_leave(crit); PANIC("Recursive write lock attempt on rtld lock"); } else { KSE_LOCK_ACQUIRE(curkse, &l->lck); l->crit = crit; l->owner = curkse; l->count = 1; l->write = 1; } } static void _thr_rtld_lock_release(void *lock) { struct rtld_kse_lock *l; kse_critical_t crit; struct kse *curkse; l = (struct rtld_kse_lock *)lock; crit = _kse_critical_enter(); curkse = _get_curkse(); if (l->owner != curkse) { /* * We might want to forcibly unlock the rtld lock * and/or disable threaded mode so there is better * chance that the panic will work. Otherwise, * we could end up trying to take the rtld lock * again. */ _kse_critical_leave(crit); PANIC("Attempt to unlock rtld lock when not owner."); } else { l->count--; if (l->count == 0) { /* * If there ever is a count associated with * _kse_critical_leave(), we'll need to add * another call to it here with the crit * value from above. */ crit = l->crit; l->owner = NULL; l->write = 0; KSE_LOCK_RELEASE(curkse, &l->lck); } _kse_critical_leave(crit); } } static int _thr_rtld_set_flag(int mask __unused) { return (0); } static int _thr_rtld_clr_flag(int mask __unused) { return (0); } void _thr_rtld_init(void) { struct RtldLockInfo li; li.lock_create = _thr_rtld_lock_create; li.lock_destroy = _thr_rtld_lock_destroy; li.rlock_acquire = _thr_rtld_rlock_acquire; li.wlock_acquire = _thr_rtld_wlock_acquire; li.lock_release = _thr_rtld_lock_release; li.thread_set_flag = _thr_rtld_set_flag; li.thread_clr_flag = _thr_rtld_clr_flag; li.at_fork = NULL; _rtld_thread_init(&li); } void _thr_rtld_fini(void) { _rtld_thread_init(NULL); }
dplbsd/zcaplib
head/lib/libkse/thread/thr_rtld.c
C
bsd-2-clause
6,843
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Qtc.Classes.Types</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ><SCRIPT TYPE="text/javascript" >window.onload = function () {setSynopsis("mini_Qtc-Classes-Types.html")};</SCRIPT ></HEAD ><BODY ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="topbar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" " ></TD ><TD CLASS="title" ></TD ><TD CLASS="topbut" ><A HREF="index.html" >Contents</A ></TD ><TD CLASS="topbut" ><A HREF="doc-index.html" >Index</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="modulebar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><FONT SIZE="6" >Qtc.Classes.Types</FONT ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Documentation</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:Object" ><A NAME="t%3AObject" ></A ></A ><B >Object</B > a </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:Object" ><A NAME="v%3AObject" ></A ></A ><B >Object</B > !(ForeignPtr a)</TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Object')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:Object" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" >Eq (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a)</TD ></TR ><TR ><TD CLASS="decl" >Ord (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a)</TD ></TR ><TR ><TD CLASS="decl" >Show (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Qtc-Core-Base.html#t%3AQes" >Qes</A > (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > c)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimeLine (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimeLine" >QTimeLine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimeLine" >QTimeLine</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimer (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimer" >QTimer</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimer" >QTimer</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTranslator (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTranslator" >QTranslator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTranslator" >QTranslator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMimeData (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMimeData" >QMimeData</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMimeData" >QMimeData</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEventLoop (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEventLoop" >QEventLoop</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEventLoop" >QEventLoop</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFile (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFileOpenEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileOpenEvent" >QFileOpenEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileOpenEvent" >QFileOpenEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QChildEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChildEvent" >QChildEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChildEvent" >QChildEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDynamicPropertyChangeEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDynamicPropertyChangeEvent" >QDynamicPropertyChangeEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDynamicPropertyChangeEvent" >QDynamicPropertyChangeEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimerEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimerEvent" >QTimerEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimerEvent" >QTimerEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractListModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractListModel" >QAbstractListModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractListModel" >QAbstractListModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractTableModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractTableModel" >QAbstractTableModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractTableModel" >QAbstractTableModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPolygon (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygon" >QPolygon</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygon" >QPolygon</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLine (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLine" >QLine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLine" >QLine</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRegExp (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRegExp" >QRegExp</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRegExp" >QRegExp</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRect (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRect" >QRect</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRect" >QRect</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QVariant (<A HREF="Qtc-ClassTypes-Core.html#t%3AQVariant" >QVariant</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQVariant" >QVariant</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPolygonF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygonF" >QPolygonF</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygonF" >QPolygonF</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractFileEngine (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractFileEngine" >QAbstractFileEngine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractFileEngine" >QAbstractFileEngine</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QChar (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChar" >QChar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChar" >QChar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDir (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDir" >QDir</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDir" >QDir</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLocale (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLocale" >QLocale</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLocale" >QLocale</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUuid (<A HREF="Qtc-ClassTypes-Core.html#t%3AQUuid" >QUuid</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQUuid" >QUuid</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextStream (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTextStream" >QTextStream</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTextStream" >QTextStream</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMatrix (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMatrix" >QMatrix</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMatrix" >QMatrix</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPoint (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPoint" >QPoint</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPoint" >QPoint</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QModelIndex (<A HREF="Qtc-ClassTypes-Core.html#t%3AQModelIndex" >QModelIndex</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQModelIndex" >QModelIndex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDataStream (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDataStream" >QDataStream</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDataStream" >QDataStream</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBasicTimer (<A HREF="Qtc-ClassTypes-Core.html#t%3AQBasicTimer" >QBasicTimer</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQBasicTimer" >QBasicTimer</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSizeF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQSizeF" >QSizeF</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQSizeF" >QSizeF</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUrl (<A HREF="Qtc-ClassTypes-Core.html#t%3AQUrl" >QUrl</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQUrl" >QUrl</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTime (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDateTime" >QDateTime</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDateTime" >QDateTime</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRectF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRectF" >QRectF</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRectF" >QRectF</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSize (<A HREF="Qtc-ClassTypes-Core.html#t%3AQSize" >QSize</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQSize" >QSize</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPointF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPointF" >QPointF</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPointF" >QPointF</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTime (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTime" >QTime</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTime" >QTime</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDate (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDate" >QDate</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDate" >QDate</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFileInfo (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileInfo" >QFileInfo</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileInfo" >QFileInfo</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_Qt (<A HREF="Qtc-ClassTypes-Core.html#t%3AQt" >Qt</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQt" >Qt</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLineF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLineF" >QLineF</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLineF" >QLineF</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCodec (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTextCodec" >QTextCodec</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTextCodec" >QTextCodec</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIODevice (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQIODevice" >QIODevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIODevice (<A HREF="Qtc-ClassTypes-Core.html#t%3AQIODevice" >QIODevice</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQIODevice" >QIODevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractListModel" >QAbstractListModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractItemModel" >QAbstractItemModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractTableModel" >QAbstractTableModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractItemModel" >QAbstractItemModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractItemModel" >QAbstractItemModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractItemModel" >QAbstractItemModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileOpenEvent" >QFileOpenEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEvent" >QEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChildEvent" >QChildEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEvent" >QEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDynamicPropertyChangeEvent" >QDynamicPropertyChangeEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEvent" >QEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimerEvent" >QTimerEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEvent" >QEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEvent" >QEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEvent" >QEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimeLine" >QTimeLine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimer" >QTimer</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQCoreApplication" >QCoreApplication</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTranslator" >QTranslator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMimeData" >QMimeData</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEventLoop" >QEventLoop</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractListModel" >QAbstractListModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractTableModel" >QAbstractTableModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQIODevice" >QIODevice</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractItemModel" >QAbstractItemModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()) ([] (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBar" >QToolBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBar" >QToolBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGroupBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGroupBox" >QGroupBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGroupBox" >QGroupBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTabBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabBar" >QTabBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabBar" >QTabBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStatusBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusBar" >QStatusBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusBar" >QStatusBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSizeGrip (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizeGrip" >QSizeGrip</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizeGrip" >QSizeGrip</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDockWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDockWidget" >QDockWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDockWidget" >QDockWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMenuBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenuBar" >QMenuBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenuBar" >QMenuBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRubberBand (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRubberBand" >QRubberBand</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRubberBand" >QRubberBand</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialogButtonBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialogButtonBox" >QDialogButtonBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialogButtonBox" >QDialogButtonBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QProgressBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressBar" >QProgressBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressBar" >QProgressBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTabWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabWidget" >QTabWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabWidget" >QTabWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSplashScreen (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplashScreen" >QSplashScreen</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplashScreen" >QSplashScreen</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFocusFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusFrame" >QFocusFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusFrame" >QFocusFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMainWindow (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMainWindow" >QMainWindow</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMainWindow" >QMainWindow</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSplitterHandle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitterHandle" >QSplitterHandle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitterHandle" >QSplitterHandle</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDesktopWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDesktopWidget" >QDesktopWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDesktopWidget" >QDesktopWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLineEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLineEdit" >QLineEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLineEdit" >QLineEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCalendarWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCalendarWidget" >QCalendarWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCalendarWidget" >QCalendarWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMenu (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenu" >QMenu</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenu" >QMenu</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDoubleValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleValidator" >QDoubleValidator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleValidator" >QDoubleValidator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIntValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIntValidator" >QIntValidator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIntValidator" >QIntValidator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRegExpValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegExpValidator" >QRegExpValidator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegExpValidator" >QRegExpValidator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextTableFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextTable (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextListFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextListFormat" >QTextListFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextListFormat" >QTextListFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockFormat" >QTextBlockFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockFormat" >QTextBlockFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBrowser (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextImageFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextList (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItemV3 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBoxV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBoxV2" >QStyleOptionToolBoxV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBoxV2" >QStyleOptionToolBoxV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTabV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionProgressBarV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBarV2" >QStyleOptionProgressBarV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBarV2" >QStyleOptionProgressBarV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFrameV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrameV2" >QStyleOptionFrameV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrameV2" >QStyleOptionFrameV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionDockWidgetV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidgetV2" >QStyleOptionDockWidgetV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidgetV2" >QStyleOptionDockWidgetV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionSizeGrip (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSizeGrip" >QStyleOptionSizeGrip</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSizeGrip" >QStyleOptionSizeGrip</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComboBox" >QStyleOptionComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComboBox" >QStyleOptionComboBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSpinBox" >QStyleOptionSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSpinBox" >QStyleOptionSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionGroupBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGroupBox" >QStyleOptionGroupBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGroupBox" >QStyleOptionGroupBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTitleBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTitleBar" >QStyleOptionTitleBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTitleBar" >QStyleOptionTitleBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSlider" >QStyleOptionSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSlider" >QStyleOptionSlider</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolButton" >QStyleOptionToolButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolButton" >QStyleOptionToolButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionButton" >QStyleOptionButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionButton" >QStyleOptionButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionMenuItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionMenuItem" >QStyleOptionMenuItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionMenuItem" >QStyleOptionMenuItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTabWidgetFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabWidgetFrame" >QStyleOptionTabWidgetFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabWidgetFrame" >QStyleOptionTabWidgetFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFocusRect (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFocusRect" >QStyleOptionFocusRect</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFocusRect" >QStyleOptionFocusRect</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTabBarBase (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabBarBase" >QStyleOptionTabBarBase</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabBarBase" >QStyleOptionTabBarBase</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionHeader (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionHeader" >QStyleOptionHeader</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionHeader" >QStyleOptionHeader</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBar" >QStyleOptionToolBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBar" >QStyleOptionToolBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGraphicsItem" >QStyleOptionGraphicsItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGraphicsItem" >QStyleOptionGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionRubberBand (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionRubberBand" >QStyleOptionRubberBand</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionRubberBand" >QStyleOptionRubberBand</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBitmap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QImage (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQImage" >QImage</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQImage" >QImage</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPrinter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrinter" >QPrinter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrinter" >QPrinter</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPicture (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPicture" >QPicture</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPicture" >QPicture</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QItemSelectionModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQItemSelectionModel" >QItemSelectionModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQItemSelectionModel" >QItemSelectionModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QActionGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionGroup" >QActionGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionGroup" >QActionGroup</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsTextItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsTextItem" >QGraphicsTextItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsTextItem" >QGraphicsTextItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoGroup" >QUndoGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoGroup" >QUndoGroup</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsScene (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsScene" >QGraphicsScene</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsScene" >QGraphicsScene</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QClipboard (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQClipboard" >QClipboard</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQClipboard" >QClipboard</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSystemTrayIcon (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSystemTrayIcon" >QSystemTrayIcon</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSystemTrayIcon" >QSystemTrayIcon</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDataWidgetMapper (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDataWidgetMapper" >QDataWidgetMapper</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDataWidgetMapper" >QDataWidgetMapper</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractTextDocumentLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractTextDocumentLayout" >QAbstractTextDocumentLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractTextDocumentLayout" >QAbstractTextDocumentLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputContext (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputContext" >QInputContext</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputContext" >QInputContext</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoStack (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoStack" >QUndoStack</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoStack" >QUndoStack</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCompleter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCompleter" >QCompleter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCompleter" >QCompleter</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSyntaxHighlighter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSyntaxHighlighter" >QSyntaxHighlighter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSyntaxHighlighter" >QSyntaxHighlighter</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemDelegate (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemDelegate" >QAbstractItemDelegate</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemDelegate" >QAbstractItemDelegate</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSound (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSound" >QSound</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSound" >QSound</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QShortcut (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShortcut" >QShortcut</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShortcut" >QShortcut</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDrag (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDrag" >QDrag</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDrag" >QDrag</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QButtonGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQButtonGroup" >QButtonGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQButtonGroup" >QButtonGroup</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAction (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAction" >QAction</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAction" >QAction</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMovie (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMovie" >QMovie</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMovie" >QMovie</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextDocument (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextDocument" >QTextDocument</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextDocument" >QTextDocument</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItemAnimation (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemAnimation" >QGraphicsItemAnimation</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemAnimation" >QGraphicsItemAnimation</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSpacerItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpacerItem" >QSpacerItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpacerItem" >QSpacerItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStackedLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedLayout" >QStackedLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedLayout" >QStackedLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGridLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGridLayout" >QGridLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGridLayout" >QGridLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QContextMenuEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQContextMenuEvent" >QContextMenuEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQContextMenuEvent" >QContextMenuEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTabletEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabletEvent" >QTabletEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabletEvent" >QTabletEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWheelEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWheelEvent" >QWheelEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWheelEvent" >QWheelEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QKeyEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeyEvent" >QKeyEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeyEvent" >QKeyEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMouseEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMouseEvent" >QMouseEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMouseEvent" >QMouseEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconEngineV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngineV2" >QIconEngineV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngineV2" >QIconEngineV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneWheelEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneWheelEvent" >QGraphicsSceneWheelEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneWheelEvent" >QGraphicsSceneWheelEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneDragDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneDragDropEvent" >QGraphicsSceneDragDropEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneDragDropEvent" >QGraphicsSceneDragDropEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneMouseEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneMouseEvent" >QGraphicsSceneMouseEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneMouseEvent" >QGraphicsSceneMouseEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneContextMenuEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneContextMenuEvent" >QGraphicsSceneContextMenuEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneContextMenuEvent" >QGraphicsSceneContextMenuEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneHoverEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHoverEvent" >QGraphicsSceneHoverEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHoverEvent" >QGraphicsSceneHoverEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneHelpEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHelpEvent" >QGraphicsSceneHelpEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHelpEvent" >QGraphicsSceneHelpEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItemGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemGroup" >QGraphicsItemGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemGroup" >QGraphicsItemGroup</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsPixmapItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPixmapItem" >QGraphicsPixmapItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPixmapItem" >QGraphicsPixmapItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsLineItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsLineItem" >QGraphicsLineItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsLineItem" >QGraphicsLineItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRadialGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadialGradient" >QRadialGradient</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadialGradient" >QRadialGradient</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QConicalGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQConicalGradient" >QConicalGradient</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQConicalGradient" >QConicalGradient</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLinearGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLinearGradient" >QLinearGradient</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLinearGradient" >QLinearGradient</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSplitter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStackedWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLCDNumber (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLCDNumber" >QLCDNumber</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLCDNumber" >QLCDNumber</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBox" >QToolBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBox" >QToolBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLabel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLabel" >QLabel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLabel" >QLabel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMoveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMoveEvent" >QMoveEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMoveEvent" >QMoveEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCloseEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCloseEvent" >QCloseEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCloseEvent" >QCloseEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QShortcutEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShortcutEvent" >QShortcutEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShortcutEvent" >QShortcutEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHideEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHideEvent" >QHideEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHideEvent" >QHideEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragLeaveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragLeaveEvent" >QDragLeaveEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragLeaveEvent" >QDragLeaveEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStatusTipEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusTipEvent" >QStatusTipEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusTipEvent" >QStatusTipEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHelpEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHelpEvent" >QHelpEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHelpEvent" >QHelpEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QResizeEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQResizeEvent" >QResizeEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQResizeEvent" >QResizeEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFocusEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusEvent" >QFocusEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusEvent" >QFocusEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputMethodEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputMethodEvent" >QInputMethodEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputMethodEvent" >QInputMethodEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QActionEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionEvent" >QActionEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionEvent" >QActionEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QShowEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShowEvent" >QShowEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShowEvent" >QShowEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconDragEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconDragEvent" >QIconDragEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconDragEvent" >QIconDragEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolBarChangeEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBarChangeEvent" >QToolBarChangeEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBarChangeEvent" >QToolBarChangeEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWhatsThisClickedEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWhatsThisClickedEvent" >QWhatsThisClickedEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWhatsThisClickedEvent" >QWhatsThisClickedEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHoverEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHoverEvent" >QHoverEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHoverEvent" >QHoverEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEvent" >QPaintEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEvent" >QPaintEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWindowStateChangeEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowStateChangeEvent" >QWindowStateChangeEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowStateChangeEvent" >QWindowStateChangeEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragEnterEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QProgressDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFileDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QErrorMessage (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMessageBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractPageSetupDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPageSetupDialog" >QAbstractPageSetupDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPageSetupDialog" >QAbstractPageSetupDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QColorDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWindowsStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QVBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDoubleSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QScrollBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDial (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPrintDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHeaderView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractProxyModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractProxyModel" >QAbstractProxyModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractProxyModel" >QAbstractProxyModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStandardItemModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStandardItemModel" >QStandardItemModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStandardItemModel" >QStandardItemModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDirModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDirModel" >QDirModel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDirModel" >QDirModel</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsPolygonItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPolygonItem" >QGraphicsPolygonItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPolygonItem" >QGraphicsPolygonItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsPathItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsRectItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSimpleTextItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSimpleTextItem" >QGraphicsSimpleTextItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSimpleTextItem" >QGraphicsSimpleTextItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsEllipseItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsEllipseItem" >QGraphicsEllipseItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsEllipseItem" >QGraphicsEllipseItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCheckBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRadioButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPushButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontMetricsF (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetricsF" >QFontMetricsF</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetricsF" >QFontMetricsF</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLayout" >QTextLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLayout" >QTextLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFont (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFont" >QFont</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFont" >QFont</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPalette (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPalette" >QPalette</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPalette" >QPalette</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLength (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLength" >QTextLength</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLength" >QTextLength</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStandardItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStandardItem" >QStandardItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStandardItem" >QStandardItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeWidgetItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidgetItem" >QTreeWidgetItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidgetItem" >QTreeWidgetItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QKeySequence (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeySequence" >QKeySequence</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeySequence" >QKeySequence</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintEngine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEngine" >QPaintEngine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEngine" >QPaintEngine</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QColormap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColormap" >QColormap</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColormap" >QColormap</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLine" >QTextLine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLine" >QTextLine</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCursor (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCursor" >QCursor</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCursor" >QCursor</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontDatabase (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDatabase" >QFontDatabase</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDatabase" >QFontDatabase</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPainter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPainter" >QPainter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPainter" >QPainter</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextDocumentFragment (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextDocumentFragment" >QTextDocumentFragment</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextDocumentFragment" >QTextDocumentFragment</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableWidgetSelectionRange (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidgetSelectionRange" >QTableWidgetSelectionRange</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidgetSelectionRange" >QTableWidgetSelectionRange</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLayout__FormatRange (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLayout__FormatRange" >QTextLayout__FormatRange</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLayout__FormatRange" >QTextLayout__FormatRange</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QColor (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColor" >QColor</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColor" >QColor</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIcon (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIcon" >QIcon</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIcon" >QIcon</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlock (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlock" >QTextBlock</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlock" >QTextBlock</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRegion (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegion" >QRegion</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegion" >QRegion</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoCommand (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoCommand" >QUndoCommand</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoCommand" >QUndoCommand</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolTip (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolTip" >QToolTip</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolTip" >QToolTip</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QItemSelection (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQItemSelection" >QItemSelection</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQItemSelection" >QItemSelection</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListWidgetItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidgetItem" >QListWidgetItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidgetItem" >QListWidgetItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPen (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPen" >QPen</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPen" >QPen</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontMetrics (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetrics" >QFontMetrics</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetrics" >QFontMetrics</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextTableCell (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableCell" >QTextTableCell</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableCell" >QTextTableCell</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFragment (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFragment" >QTextFragment</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFragment" >QTextFragment</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCursor (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCursor" >QTextCursor</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCursor" >QTextCursor</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBrush (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBrush" >QBrush</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBrush" >QBrush</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSizePolicy (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizePolicy" >QSizePolicy</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizePolicy" >QSizePolicy</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontInfo (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontInfo" >QFontInfo</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontInfo" >QFontInfo</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPixmapCache (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmapCache" >QPixmapCache</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmapCache" >QPixmapCache</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleHintReturn (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleHintReturn" >QStyleHintReturn</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleHintReturn" >QStyleHintReturn</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockUserData (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockUserData" >QTextBlockUserData</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockUserData" >QTextBlockUserData</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPainterPath (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPainterPath" >QPainterPath</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPainterPath" >QPainterPath</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableWidgetItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidgetItem" >QTableWidgetItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidgetItem" >QTableWidgetItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrameLayoutData (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameLayoutData" >QTextFrameLayoutData</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameLayoutData" >QTextFrameLayoutData</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextOption" >QTextOption</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextOption" >QTextOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQComboBox" >QComboBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQComboBox" >QComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQComboBox" >QComboBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCharFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCharFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrameFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrameFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItemV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItemV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBoxV2" >QStyleOptionToolBoxV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBox" >QStyleOptionToolBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBox" >QStyleOptionToolBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBox" >QStyleOptionToolBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTab (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTab (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrameV2" >QStyleOptionFrameV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionDockWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidgetV2" >QStyleOptionDockWidgetV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidget" >QStyleOptionDockWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionDockWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidget" >QStyleOptionDockWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidget" >QStyleOptionDockWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionProgressBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBarV2" >QStyleOptionProgressBarV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBar" >QStyleOptionProgressBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionProgressBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBar" >QStyleOptionProgressBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBar" >QStyleOptionProgressBar</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCommonStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCommonStyle" >QCommonStyle</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCommonStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCommonStyle" >QCommonStyle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCommonStyle" >QCommonStyle</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPixmap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmap" >QPixmap</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPixmap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmap" >QPixmap</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmap" >QPixmap</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragMoveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragMoveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractPrintDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractPrintDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconEngine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngineV2" >QIconEngineV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngine" >QIconEngine</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconEngine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngine" >QIconEngine</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngine" >QIconEngine</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItem" >QStyleOptionViewItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItem" >QStyleOptionViewItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItem" >QStyleOptionViewItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItem" >QStyleOptionViewItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyle" >QStyle</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCommonStyle" >QCommonStyle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyle" >QStyle</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyle" >QStyle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyle" >QStyle</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDropEvent" >QDropEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDropEvent" >QDropEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDropEvent" >QDropEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDropEvent" >QDropEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMimeSource (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMimeSource" >QMimeSource</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMimeSource" >QMimeSource</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleValidator" >QDoubleValidator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQValidator" >QValidator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIntValidator" >QIntValidator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQValidator" >QValidator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegExpValidator" >QRegExpValidator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQValidator" >QValidator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQValidator" >QValidator</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQValidator" >QValidator</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadialGradient" >QRadialGradient</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGradient" >QGradient</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQConicalGradient" >QConicalGradient</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGradient" >QGradient</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLinearGradient" >QLinearGradient</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGradient" >QGradient</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGradient" >QGradient</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGradient" >QGradient</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQContextMenuEvent" >QContextMenuEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabletEvent" >QTabletEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWheelEvent" >QWheelEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeyEvent" >QKeyEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMouseEvent" >QMouseEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedLayout" >QStackedLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGridLayout" >QGridLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPolygonItem" >QGraphicsPolygonItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSimpleTextItem" >QGraphicsSimpleTextItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsEllipseItem" >QGraphicsEllipseItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneWheelEvent" >QGraphicsSceneWheelEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneDragDropEvent" >QGraphicsSceneDragDropEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneMouseEvent" >QGraphicsSceneMouseEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneContextMenuEvent" >QGraphicsSceneContextMenuEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHoverEvent" >QGraphicsSceneHoverEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHelpEvent" >QGraphicsSceneHelpEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextListFormat" >QTextListFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockFormat" >QTextBlockFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayoutItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpacerItem" >QSpacerItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayoutItem" >QLayoutItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayoutItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayoutItem" >QLayoutItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayoutItem" >QLayoutItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSizeGrip" >QStyleOptionSizeGrip</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComboBox" >QStyleOptionComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSpinBox" >QStyleOptionSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGroupBox" >QStyleOptionGroupBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTitleBar" >QStyleOptionTitleBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSlider" >QStyleOptionSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolButton" >QStyleOptionToolButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPageSetupDialog" >QAbstractPageSetupDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemGroup" >QGraphicsItemGroup</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPixmapItem" >QGraphicsPixmapItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsLineItem" >QGraphicsLineItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPolygonItem" >QGraphicsPolygonItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSimpleTextItem" >QGraphicsSimpleTextItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsEllipseItem" >QGraphicsEllipseItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLCDNumber" >QLCDNumber</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBox" >QToolBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLabel" >QLabel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBoxV2" >QStyleOptionToolBoxV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBarV2" >QStyleOptionProgressBarV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrameV2" >QStyleOptionFrameV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidgetV2" >QStyleOptionDockWidgetV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSizeGrip" >QStyleOptionSizeGrip</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComboBox" >QStyleOptionComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSpinBox" >QStyleOptionSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGroupBox" >QStyleOptionGroupBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTitleBar" >QStyleOptionTitleBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSlider" >QStyleOptionSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolButton" >QStyleOptionToolButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionButton" >QStyleOptionButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionMenuItem" >QStyleOptionMenuItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabWidgetFrame" >QStyleOptionTabWidgetFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFocusRect" >QStyleOptionFocusRect</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabBarBase" >QStyleOptionTabBarBase</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionHeader" >QStyleOptionHeader</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBar" >QStyleOptionToolBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGraphicsItem" >QStyleOptionGraphicsItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionRubberBand" >QStyleOptionRubberBand</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBox" >QStyleOptionToolBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidget" >QStyleOptionDockWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBar" >QStyleOptionProgressBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItem" >QStyleOptionViewItem</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBar" >QToolBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGroupBox" >QGroupBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabBar" >QTabBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusBar" >QStatusBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizeGrip" >QSizeGrip</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDockWidget" >QDockWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenuBar" >QMenuBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRubberBand" >QRubberBand</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialogButtonBox" >QDialogButtonBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressBar" >QProgressBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabWidget" >QTabWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplashScreen" >QSplashScreen</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusFrame" >QFocusFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMainWindow" >QMainWindow</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitterHandle" >QSplitterHandle</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDesktopWidget" >QDesktopWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLineEdit" >QLineEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCalendarWidget" >QCalendarWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenu" >QMenu</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLCDNumber" >QLCDNumber</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBox" >QToolBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLabel" >QLabel</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPageSetupDialog" >QAbstractPageSetupDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQComboBox" >QComboBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQImage" >QImage</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrinter" >QPrinter</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPicture" >QPicture</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmap" >QPixmap</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()) ([] (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()))</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Qtc-Core-Base.html#t%3AQqpoints" >Qqpoints</A > (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygon" >QPolygon</A > ()) (IO ([] <A HREF="Qth-ClassTypes-Core-Point.html#t%3APoint" >Point</A >))</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Qtc-Core-Base.html#t%3AQqpoints" >Qqpoints</A > (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygonF" >QPolygonF</A > ()) (IO ([] <A HREF="Qth-ClassTypes-Core-Point.html#t%3APointF" >PointF</A >))</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimeLine a r =&gt; QqCastList_QTimeLine (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimeLine" >QTimeLine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimer a r =&gt; QqCastList_QTimer (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimer" >QTimer</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTranslator a r =&gt; QqCastList_QTranslator (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTranslator" >QTranslator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMimeData a r =&gt; QqCastList_QMimeData (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMimeData" >QMimeData</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEventLoop a r =&gt; QqCastList_QEventLoop (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEventLoop" >QEventLoop</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFile a r =&gt; QqCastList_QFile (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFileOpenEvent a r =&gt; QqCastList_QFileOpenEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileOpenEvent" >QFileOpenEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QChildEvent a r =&gt; QqCastList_QChildEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChildEvent" >QChildEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDynamicPropertyChangeEvent a r =&gt; QqCastList_QDynamicPropertyChangeEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDynamicPropertyChangeEvent" >QDynamicPropertyChangeEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimerEvent a r =&gt; QqCastList_QTimerEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimerEvent" >QTimerEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractListModel a r =&gt; QqCastList_QAbstractListModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractListModel" >QAbstractListModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractTableModel a r =&gt; QqCastList_QAbstractTableModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractTableModel" >QAbstractTableModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPolygon a r =&gt; QqCastList_QPolygon (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygon" >QPolygon</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLine a r =&gt; QqCastList_QLine (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLine" >QLine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRegExp a r =&gt; QqCastList_QRegExp (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRegExp" >QRegExp</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRect a r =&gt; QqCastList_QRect (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRect" >QRect</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QVariant a r =&gt; QqCastList_QVariant (<A HREF="Qtc-ClassTypes-Core.html#t%3AQVariant" >QVariant</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPolygonF a r =&gt; QqCastList_QPolygonF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPolygonF" >QPolygonF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractFileEngine a r =&gt; QqCastList_QAbstractFileEngine (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractFileEngine" >QAbstractFileEngine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QChar a r =&gt; QqCastList_QChar (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChar" >QChar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDir a r =&gt; QqCastList_QDir (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDir" >QDir</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLocale a r =&gt; QqCastList_QLocale (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLocale" >QLocale</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUuid a r =&gt; QqCastList_QUuid (<A HREF="Qtc-ClassTypes-Core.html#t%3AQUuid" >QUuid</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextStream a r =&gt; QqCastList_QTextStream (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTextStream" >QTextStream</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMatrix a r =&gt; QqCastList_QMatrix (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMatrix" >QMatrix</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPoint a r =&gt; QqCastList_QPoint (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPoint" >QPoint</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QModelIndex a r =&gt; QqCastList_QModelIndex (<A HREF="Qtc-ClassTypes-Core.html#t%3AQModelIndex" >QModelIndex</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDataStream a r =&gt; QqCastList_QDataStream (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDataStream" >QDataStream</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBasicTimer a r =&gt; QqCastList_QBasicTimer (<A HREF="Qtc-ClassTypes-Core.html#t%3AQBasicTimer" >QBasicTimer</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSizeF a r =&gt; QqCastList_QSizeF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQSizeF" >QSizeF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUrl a r =&gt; QqCastList_QUrl (<A HREF="Qtc-ClassTypes-Core.html#t%3AQUrl" >QUrl</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTime a r =&gt; QqCastList_QDateTime (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDateTime" >QDateTime</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRectF a r =&gt; QqCastList_QRectF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQRectF" >QRectF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSize a r =&gt; QqCastList_QSize (<A HREF="Qtc-ClassTypes-Core.html#t%3AQSize" >QSize</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPointF a r =&gt; QqCastList_QPointF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQPointF" >QPointF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTime a r =&gt; QqCastList_QTime (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTime" >QTime</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDate a r =&gt; QqCastList_QDate (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDate" >QDate</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFileInfo a r =&gt; QqCastList_QFileInfo (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileInfo" >QFileInfo</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_Qt a r =&gt; QqCastList_Qt (<A HREF="Qtc-ClassTypes-Core.html#t%3AQt" >Qt</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLineF a r =&gt; QqCastList_QLineF (<A HREF="Qtc-ClassTypes-Core.html#t%3AQLineF" >QLineF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCodec a r =&gt; QqCastList_QTextCodec (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTextCodec" >QTextCodec</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIODevice a r =&gt; QqCastList_QIODevice (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIODevice a r =&gt; QqCastList_QIODevice (<A HREF="Qtc-ClassTypes-Core.html#t%3AQIODevice" >QIODevice</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemModel a r =&gt; QqCastList_QAbstractItemModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractListModel" >QAbstractListModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemModel a r =&gt; QqCastList_QAbstractItemModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractTableModel" >QAbstractTableModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemModel a r =&gt; QqCastList_QAbstractItemModel (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractItemModel" >QAbstractItemModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent a r =&gt; QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFileOpenEvent" >QFileOpenEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent a r =&gt; QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQChildEvent" >QChildEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent a r =&gt; QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQDynamicPropertyChangeEvent" >QDynamicPropertyChangeEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent a r =&gt; QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimerEvent" >QTimerEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QEvent a r =&gt; QqCastList_QEvent (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEvent" >QEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimeLine" >QTimeLine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTimer" >QTimer</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQCoreApplication" >QCoreApplication</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQTranslator" >QTranslator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQMimeData" >QMimeData</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQEventLoop" >QEventLoop</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQFile" >QFile</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractListModel" >QAbstractListModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractTableModel" >QAbstractTableModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQIODevice" >QIODevice</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQAbstractItemModel" >QAbstractItemModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QObject a r =&gt; QqCastList_QObject (<A HREF="Qtc-ClassTypes-Core.html#t%3AQObject" >QObject</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolBar a r =&gt; QqCastList_QToolBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBar" >QToolBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGroupBox a r =&gt; QqCastList_QGroupBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGroupBox" >QGroupBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTabBar a r =&gt; QqCastList_QTabBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabBar" >QTabBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStatusBar a r =&gt; QqCastList_QStatusBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusBar" >QStatusBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSizeGrip a r =&gt; QqCastList_QSizeGrip (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizeGrip" >QSizeGrip</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDockWidget a r =&gt; QqCastList_QDockWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDockWidget" >QDockWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMenuBar a r =&gt; QqCastList_QMenuBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenuBar" >QMenuBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRubberBand a r =&gt; QqCastList_QRubberBand (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRubberBand" >QRubberBand</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialogButtonBox a r =&gt; QqCastList_QDialogButtonBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialogButtonBox" >QDialogButtonBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QProgressBar a r =&gt; QqCastList_QProgressBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressBar" >QProgressBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTabWidget a r =&gt; QqCastList_QTabWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabWidget" >QTabWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSplashScreen a r =&gt; QqCastList_QSplashScreen (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplashScreen" >QSplashScreen</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFocusFrame a r =&gt; QqCastList_QFocusFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusFrame" >QFocusFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMainWindow a r =&gt; QqCastList_QMainWindow (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMainWindow" >QMainWindow</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSplitterHandle a r =&gt; QqCastList_QSplitterHandle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitterHandle" >QSplitterHandle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDesktopWidget a r =&gt; QqCastList_QDesktopWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDesktopWidget" >QDesktopWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLineEdit a r =&gt; QqCastList_QLineEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLineEdit" >QLineEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCalendarWidget a r =&gt; QqCastList_QCalendarWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCalendarWidget" >QCalendarWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMenu a r =&gt; QqCastList_QMenu (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenu" >QMenu</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDoubleValidator a r =&gt; QqCastList_QDoubleValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleValidator" >QDoubleValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIntValidator a r =&gt; QqCastList_QIntValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIntValidator" >QIntValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRegExpValidator a r =&gt; QqCastList_QRegExpValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegExpValidator" >QRegExpValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeWidget a r =&gt; QqCastList_QTreeWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextTableFormat a r =&gt; QqCastList_QTextTableFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextTable a r =&gt; QqCastList_QTextTable (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextListFormat a r =&gt; QqCastList_QTextListFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextListFormat" >QTextListFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockFormat a r =&gt; QqCastList_QTextBlockFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockFormat" >QTextBlockFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBrowser a r =&gt; QqCastList_QTextBrowser (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextImageFormat a r =&gt; QqCastList_QTextImageFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextList a r =&gt; QqCastList_QTextList (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableWidget a r =&gt; QqCastList_QTableWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItemV3 a r =&gt; QqCastList_QStyleOptionViewItemV3 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBoxV2 a r =&gt; QqCastList_QStyleOptionToolBoxV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBoxV2" >QStyleOptionToolBoxV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTabV2 a r =&gt; QqCastList_QStyleOptionTabV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionProgressBarV2 a r =&gt; QqCastList_QStyleOptionProgressBarV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBarV2" >QStyleOptionProgressBarV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFrameV2 a r =&gt; QqCastList_QStyleOptionFrameV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrameV2" >QStyleOptionFrameV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionDockWidgetV2 a r =&gt; QqCastList_QStyleOptionDockWidgetV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidgetV2" >QStyleOptionDockWidgetV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionSizeGrip a r =&gt; QqCastList_QStyleOptionSizeGrip (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSizeGrip" >QStyleOptionSizeGrip</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComboBox a r =&gt; QqCastList_QStyleOptionComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComboBox" >QStyleOptionComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionSpinBox a r =&gt; QqCastList_QStyleOptionSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSpinBox" >QStyleOptionSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionGroupBox a r =&gt; QqCastList_QStyleOptionGroupBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGroupBox" >QStyleOptionGroupBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTitleBar a r =&gt; QqCastList_QStyleOptionTitleBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTitleBar" >QStyleOptionTitleBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionSlider a r =&gt; QqCastList_QStyleOptionSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSlider" >QStyleOptionSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolButton a r =&gt; QqCastList_QStyleOptionToolButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolButton" >QStyleOptionToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionButton a r =&gt; QqCastList_QStyleOptionButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionButton" >QStyleOptionButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionMenuItem a r =&gt; QqCastList_QStyleOptionMenuItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionMenuItem" >QStyleOptionMenuItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTabWidgetFrame a r =&gt; QqCastList_QStyleOptionTabWidgetFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabWidgetFrame" >QStyleOptionTabWidgetFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFocusRect a r =&gt; QqCastList_QStyleOptionFocusRect (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFocusRect" >QStyleOptionFocusRect</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTabBarBase a r =&gt; QqCastList_QStyleOptionTabBarBase (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabBarBase" >QStyleOptionTabBarBase</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionHeader a r =&gt; QqCastList_QStyleOptionHeader (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionHeader" >QStyleOptionHeader</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBar a r =&gt; QqCastList_QStyleOptionToolBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBar" >QStyleOptionToolBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionGraphicsItem a r =&gt; QqCastList_QStyleOptionGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGraphicsItem" >QStyleOptionGraphicsItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionRubberBand a r =&gt; QqCastList_QStyleOptionRubberBand (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionRubberBand" >QStyleOptionRubberBand</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBitmap a r =&gt; QqCastList_QBitmap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QImage a r =&gt; QqCastList_QImage (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQImage" >QImage</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPrinter a r =&gt; QqCastList_QPrinter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrinter" >QPrinter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPicture a r =&gt; QqCastList_QPicture (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPicture" >QPicture</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QItemSelectionModel a r =&gt; QqCastList_QItemSelectionModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQItemSelectionModel" >QItemSelectionModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QActionGroup a r =&gt; QqCastList_QActionGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionGroup" >QActionGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsTextItem a r =&gt; QqCastList_QGraphicsTextItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsTextItem" >QGraphicsTextItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoGroup a r =&gt; QqCastList_QUndoGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoGroup" >QUndoGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsScene a r =&gt; QqCastList_QGraphicsScene (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsScene" >QGraphicsScene</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QClipboard a r =&gt; QqCastList_QClipboard (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQClipboard" >QClipboard</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSystemTrayIcon a r =&gt; QqCastList_QSystemTrayIcon (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSystemTrayIcon" >QSystemTrayIcon</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDataWidgetMapper a r =&gt; QqCastList_QDataWidgetMapper (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDataWidgetMapper" >QDataWidgetMapper</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractTextDocumentLayout a r =&gt; QqCastList_QAbstractTextDocumentLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractTextDocumentLayout" >QAbstractTextDocumentLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputContext a r =&gt; QqCastList_QInputContext (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputContext" >QInputContext</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoStack a r =&gt; QqCastList_QUndoStack (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoStack" >QUndoStack</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCompleter a r =&gt; QqCastList_QCompleter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCompleter" >QCompleter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSyntaxHighlighter a r =&gt; QqCastList_QSyntaxHighlighter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSyntaxHighlighter" >QSyntaxHighlighter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemDelegate a r =&gt; QqCastList_QAbstractItemDelegate (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemDelegate" >QAbstractItemDelegate</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSound a r =&gt; QqCastList_QSound (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSound" >QSound</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QShortcut a r =&gt; QqCastList_QShortcut (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShortcut" >QShortcut</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDrag a r =&gt; QqCastList_QDrag (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDrag" >QDrag</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QButtonGroup a r =&gt; QqCastList_QButtonGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQButtonGroup" >QButtonGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAction a r =&gt; QqCastList_QAction (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAction" >QAction</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMovie a r =&gt; QqCastList_QMovie (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMovie" >QMovie</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextDocument a r =&gt; QqCastList_QTextDocument (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextDocument" >QTextDocument</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItemAnimation a r =&gt; QqCastList_QGraphicsItemAnimation (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemAnimation" >QGraphicsItemAnimation</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoView a r =&gt; QqCastList_QUndoView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListWidget a r =&gt; QqCastList_QListWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSpacerItem a r =&gt; QqCastList_QSpacerItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpacerItem" >QSpacerItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStackedLayout a r =&gt; QqCastList_QStackedLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedLayout" >QStackedLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGridLayout a r =&gt; QqCastList_QGridLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGridLayout" >QGridLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QContextMenuEvent a r =&gt; QqCastList_QContextMenuEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQContextMenuEvent" >QContextMenuEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTabletEvent a r =&gt; QqCastList_QTabletEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabletEvent" >QTabletEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWheelEvent a r =&gt; QqCastList_QWheelEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWheelEvent" >QWheelEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QKeyEvent a r =&gt; QqCastList_QKeyEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeyEvent" >QKeyEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMouseEvent a r =&gt; QqCastList_QMouseEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMouseEvent" >QMouseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconEngineV2 a r =&gt; QqCastList_QIconEngineV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngineV2" >QIconEngineV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneWheelEvent a r =&gt; QqCastList_QGraphicsSceneWheelEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneWheelEvent" >QGraphicsSceneWheelEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneDragDropEvent a r =&gt; QqCastList_QGraphicsSceneDragDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneDragDropEvent" >QGraphicsSceneDragDropEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneMouseEvent a r =&gt; QqCastList_QGraphicsSceneMouseEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneMouseEvent" >QGraphicsSceneMouseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneContextMenuEvent a r =&gt; QqCastList_QGraphicsSceneContextMenuEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneContextMenuEvent" >QGraphicsSceneContextMenuEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneHoverEvent a r =&gt; QqCastList_QGraphicsSceneHoverEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHoverEvent" >QGraphicsSceneHoverEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneHelpEvent a r =&gt; QqCastList_QGraphicsSceneHelpEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHelpEvent" >QGraphicsSceneHelpEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItemGroup a r =&gt; QqCastList_QGraphicsItemGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemGroup" >QGraphicsItemGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsPixmapItem a r =&gt; QqCastList_QGraphicsPixmapItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPixmapItem" >QGraphicsPixmapItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsLineItem a r =&gt; QqCastList_QGraphicsLineItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsLineItem" >QGraphicsLineItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRadialGradient a r =&gt; QqCastList_QRadialGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadialGradient" >QRadialGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QConicalGradient a r =&gt; QqCastList_QConicalGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQConicalGradient" >QConicalGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLinearGradient a r =&gt; QqCastList_QLinearGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLinearGradient" >QLinearGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSplitter a r =&gt; QqCastList_QSplitter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStackedWidget a r =&gt; QqCastList_QStackedWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLCDNumber a r =&gt; QqCastList_QLCDNumber (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLCDNumber" >QLCDNumber</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolBox a r =&gt; QqCastList_QToolBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBox" >QToolBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLabel a r =&gt; QqCastList_QLabel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLabel" >QLabel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMoveEvent a r =&gt; QqCastList_QMoveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMoveEvent" >QMoveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCloseEvent a r =&gt; QqCastList_QCloseEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCloseEvent" >QCloseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QShortcutEvent a r =&gt; QqCastList_QShortcutEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShortcutEvent" >QShortcutEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHideEvent a r =&gt; QqCastList_QHideEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHideEvent" >QHideEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragLeaveEvent a r =&gt; QqCastList_QDragLeaveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragLeaveEvent" >QDragLeaveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStatusTipEvent a r =&gt; QqCastList_QStatusTipEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusTipEvent" >QStatusTipEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHelpEvent a r =&gt; QqCastList_QHelpEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHelpEvent" >QHelpEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QResizeEvent a r =&gt; QqCastList_QResizeEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQResizeEvent" >QResizeEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFocusEvent a r =&gt; QqCastList_QFocusEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusEvent" >QFocusEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputMethodEvent a r =&gt; QqCastList_QInputMethodEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputMethodEvent" >QInputMethodEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QActionEvent a r =&gt; QqCastList_QActionEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQActionEvent" >QActionEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QShowEvent a r =&gt; QqCastList_QShowEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQShowEvent" >QShowEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconDragEvent a r =&gt; QqCastList_QIconDragEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconDragEvent" >QIconDragEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolBarChangeEvent a r =&gt; QqCastList_QToolBarChangeEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBarChangeEvent" >QToolBarChangeEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWhatsThisClickedEvent a r =&gt; QqCastList_QWhatsThisClickedEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWhatsThisClickedEvent" >QWhatsThisClickedEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHoverEvent a r =&gt; QqCastList_QHoverEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHoverEvent" >QHoverEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintEvent a r =&gt; QqCastList_QPaintEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEvent" >QPaintEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWindowStateChangeEvent a r =&gt; QqCastList_QWindowStateChangeEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowStateChangeEvent" >QWindowStateChangeEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragEnterEvent a r =&gt; QqCastList_QDragEnterEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QProgressDialog a r =&gt; QqCastList_QProgressDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontDialog a r =&gt; QqCastList_QFontDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFileDialog a r =&gt; QqCastList_QFileDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QErrorMessage a r =&gt; QqCastList_QErrorMessage (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMessageBox a r =&gt; QqCastList_QMessageBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractPageSetupDialog a r =&gt; QqCastList_QAbstractPageSetupDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPageSetupDialog" >QAbstractPageSetupDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QColorDialog a r =&gt; QqCastList_QColorDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateEdit a r =&gt; QqCastList_QDateEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTimeEdit a r =&gt; QqCastList_QTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWindowsStyle a r =&gt; QqCastList_QWindowsStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontComboBox a r =&gt; QqCastList_QFontComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHBoxLayout a r =&gt; QqCastList_QHBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QVBoxLayout a r =&gt; QqCastList_QVBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSpinBox a r =&gt; QqCastList_QSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDoubleSpinBox a r =&gt; QqCastList_QDoubleSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QScrollBar a r =&gt; QqCastList_QScrollBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDial a r =&gt; QqCastList_QDial (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSlider a r =&gt; QqCastList_QSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QScrollArea a r =&gt; QqCastList_QScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsView a r =&gt; QqCastList_QGraphicsView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPrintDialog a r =&gt; QqCastList_QPrintDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QHeaderView a r =&gt; QqCastList_QHeaderView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractProxyModel a r =&gt; QqCastList_QAbstractProxyModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractProxyModel" >QAbstractProxyModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStandardItemModel a r =&gt; QqCastList_QStandardItemModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStandardItemModel" >QStandardItemModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDirModel a r =&gt; QqCastList_QDirModel (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDirModel" >QDirModel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsPolygonItem a r =&gt; QqCastList_QGraphicsPolygonItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPolygonItem" >QGraphicsPolygonItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsPathItem a r =&gt; QqCastList_QGraphicsPathItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsRectItem a r =&gt; QqCastList_QGraphicsRectItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSimpleTextItem a r =&gt; QqCastList_QGraphicsSimpleTextItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSimpleTextItem" >QGraphicsSimpleTextItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsEllipseItem a r =&gt; QqCastList_QGraphicsEllipseItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsEllipseItem" >QGraphicsEllipseItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolButton a r =&gt; QqCastList_QToolButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCheckBox a r =&gt; QqCastList_QCheckBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRadioButton a r =&gt; QqCastList_QRadioButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPushButton a r =&gt; QqCastList_QPushButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontMetricsF a r =&gt; QqCastList_QFontMetricsF (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetricsF" >QFontMetricsF</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLayout a r =&gt; QqCastList_QTextLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLayout" >QTextLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFont a r =&gt; QqCastList_QFont (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFont" >QFont</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPalette a r =&gt; QqCastList_QPalette (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPalette" >QPalette</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLength a r =&gt; QqCastList_QTextLength (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLength" >QTextLength</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStandardItem a r =&gt; QqCastList_QStandardItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStandardItem" >QStandardItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeWidgetItem a r =&gt; QqCastList_QTreeWidgetItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidgetItem" >QTreeWidgetItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QKeySequence a r =&gt; QqCastList_QKeySequence (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeySequence" >QKeySequence</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintEngine a r =&gt; QqCastList_QPaintEngine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintEngine" >QPaintEngine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QColormap a r =&gt; QqCastList_QColormap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColormap" >QColormap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLine a r =&gt; QqCastList_QTextLine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLine" >QTextLine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCursor a r =&gt; QqCastList_QCursor (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCursor" >QCursor</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontDatabase a r =&gt; QqCastList_QFontDatabase (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDatabase" >QFontDatabase</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPainter a r =&gt; QqCastList_QPainter (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPainter" >QPainter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextDocumentFragment a r =&gt; QqCastList_QTextDocumentFragment (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextDocumentFragment" >QTextDocumentFragment</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableWidgetSelectionRange a r =&gt; QqCastList_QTableWidgetSelectionRange (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidgetSelectionRange" >QTableWidgetSelectionRange</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextLayout__FormatRange a r =&gt; QqCastList_QTextLayout__FormatRange (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextLayout__FormatRange" >QTextLayout__FormatRange</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QColor a r =&gt; QqCastList_QColor (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColor" >QColor</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIcon a r =&gt; QqCastList_QIcon (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIcon" >QIcon</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlock a r =&gt; QqCastList_QTextBlock (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlock" >QTextBlock</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QRegion a r =&gt; QqCastList_QRegion (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegion" >QRegion</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QUndoCommand a r =&gt; QqCastList_QUndoCommand (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoCommand" >QUndoCommand</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QToolTip a r =&gt; QqCastList_QToolTip (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolTip" >QToolTip</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QItemSelection a r =&gt; QqCastList_QItemSelection (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQItemSelection" >QItemSelection</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListWidgetItem a r =&gt; QqCastList_QListWidgetItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidgetItem" >QListWidgetItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPen a r =&gt; QqCastList_QPen (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPen" >QPen</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontMetrics a r =&gt; QqCastList_QFontMetrics (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontMetrics" >QFontMetrics</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextTableCell a r =&gt; QqCastList_QTextTableCell (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableCell" >QTextTableCell</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFragment a r =&gt; QqCastList_QTextFragment (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFragment" >QTextFragment</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCursor a r =&gt; QqCastList_QTextCursor (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCursor" >QTextCursor</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBrush a r =&gt; QqCastList_QBrush (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBrush" >QBrush</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QSizePolicy a r =&gt; QqCastList_QSizePolicy (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizePolicy" >QSizePolicy</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFontInfo a r =&gt; QqCastList_QFontInfo (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontInfo" >QFontInfo</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPixmapCache a r =&gt; QqCastList_QPixmapCache (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmapCache" >QPixmapCache</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleHintReturn a r =&gt; QqCastList_QStyleHintReturn (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleHintReturn" >QStyleHintReturn</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockUserData a r =&gt; QqCastList_QTextBlockUserData (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockUserData" >QTextBlockUserData</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPainterPath a r =&gt; QqCastList_QPainterPath (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPainterPath" >QPainterPath</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableWidgetItem a r =&gt; QqCastList_QTableWidgetItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidgetItem" >QTableWidgetItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrameLayoutData a r =&gt; QqCastList_QTextFrameLayoutData (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameLayoutData" >QTextFrameLayoutData</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextOption a r =&gt; QqCastList_QTextOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextOption" >QTextOption</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QComboBox a r =&gt; QqCastList_QComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QComboBox a r =&gt; QqCastList_QComboBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQComboBox" >QComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrame a r =&gt; QqCastList_QTextFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrame a r =&gt; QqCastList_QTextFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockGroup a r =&gt; QqCastList_QTextBlockGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextBlockGroup a r =&gt; QqCastList_QTextBlockGroup (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCharFormat a r =&gt; QqCastList_QTextCharFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextCharFormat a r =&gt; QqCastList_QTextCharFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrameFormat a r =&gt; QqCastList_QTextFrameFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFrameFormat a r =&gt; QqCastList_QTextFrameFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItemV2 a r =&gt; QqCastList_QStyleOptionViewItemV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItemV2 a r =&gt; QqCastList_QStyleOptionViewItemV2 (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBox a r =&gt; QqCastList_QStyleOptionToolBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBoxV2" >QStyleOptionToolBoxV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionToolBox a r =&gt; QqCastList_QStyleOptionToolBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBox" >QStyleOptionToolBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTab a r =&gt; QqCastList_QStyleOptionTab (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionTab a r =&gt; QqCastList_QStyleOptionTab (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFrame a r =&gt; QqCastList_QStyleOptionFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrameV2" >QStyleOptionFrameV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionFrame a r =&gt; QqCastList_QStyleOptionFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionDockWidget a r =&gt; QqCastList_QStyleOptionDockWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidgetV2" >QStyleOptionDockWidgetV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionDockWidget a r =&gt; QqCastList_QStyleOptionDockWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidget" >QStyleOptionDockWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionProgressBar a r =&gt; QqCastList_QStyleOptionProgressBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBarV2" >QStyleOptionProgressBarV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionProgressBar a r =&gt; QqCastList_QStyleOptionProgressBar (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBar" >QStyleOptionProgressBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCommonStyle a r =&gt; QqCastList_QCommonStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QCommonStyle a r =&gt; QqCastList_QCommonStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCommonStyle" >QCommonStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPixmap a r =&gt; QqCastList_QPixmap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPixmap a r =&gt; QqCastList_QPixmap (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmap" >QPixmap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragMoveEvent a r =&gt; QqCastList_QDragMoveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDragMoveEvent a r =&gt; QqCastList_QDragMoveEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractPrintDialog a r =&gt; QqCastList_QAbstractPrintDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractPrintDialog a r =&gt; QqCastList_QAbstractPrintDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextEdit a r =&gt; QqCastList_QTextEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextEdit a r =&gt; QqCastList_QTextEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableView a r =&gt; QqCastList_QTableView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTableView a r =&gt; QqCastList_QTableView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeView a r =&gt; QqCastList_QTreeView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTreeView a r =&gt; QqCastList_QTreeView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconEngine a r =&gt; QqCastList_QIconEngine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngineV2" >QIconEngineV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QIconEngine a r =&gt; QqCastList_QIconEngine (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIconEngine" >QIconEngine</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItem a r =&gt; QqCastList_QStyleOptionViewItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItem a r =&gt; QqCastList_QStyleOptionViewItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionViewItem a r =&gt; QqCastList_QStyleOptionViewItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItem" >QStyleOptionViewItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyle a r =&gt; QqCastList_QStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWindowsStyle" >QWindowsStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyle a r =&gt; QqCastList_QStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCommonStyle" >QCommonStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyle a r =&gt; QqCastList_QStyle (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyle" >QStyle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBoxLayout a r =&gt; QqCastList_QBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBoxLayout a r =&gt; QqCastList_QBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QBoxLayout a r =&gt; QqCastList_QBoxLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDropEvent a r =&gt; QqCastList_QDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragEnterEvent" >QDragEnterEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDropEvent a r =&gt; QqCastList_QDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDragMoveEvent" >QDragMoveEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDropEvent a r =&gt; QqCastList_QDropEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDropEvent" >QDropEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTimeEdit a r =&gt; QqCastList_QDateTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTimeEdit a r =&gt; QqCastList_QDateTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDateTimeEdit a r =&gt; QqCastList_QDateTimeEdit (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListView a r =&gt; QqCastList_QListView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListView a r =&gt; QqCastList_QListView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QListView a r =&gt; QqCastList_QListView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QMimeSource a r =&gt; QqCastList_QMimeSource (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMimeSource" >QMimeSource</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider a r =&gt; QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider a r =&gt; QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider a r =&gt; QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSlider a r =&gt; QqCastList_QAbstractSlider (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator a r =&gt; QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleValidator" >QDoubleValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator a r =&gt; QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQIntValidator" >QIntValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator a r =&gt; QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRegExpValidator" >QRegExpValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QValidator a r =&gt; QqCastList_QValidator (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQValidator" >QValidator</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient a r =&gt; QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadialGradient" >QRadialGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient a r =&gt; QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQConicalGradient" >QConicalGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient a r =&gt; QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLinearGradient" >QLinearGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGradient a r =&gt; QqCastList_QGradient (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGradient" >QGradient</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton a r =&gt; QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton a r =&gt; QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton a r =&gt; QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton a r =&gt; QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractButton a r =&gt; QqCastList_QAbstractButton (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject a r =&gt; QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTable" >QTextTable</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject a r =&gt; QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextList" >QTextList</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject a r =&gt; QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrame" >QTextFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject a r =&gt; QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockGroup" >QTextBlockGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextObject a r =&gt; QqCastList_QTextObject (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextObject" >QTextObject</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent a r =&gt; QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQContextMenuEvent" >QContextMenuEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent a r =&gt; QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabletEvent" >QTabletEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent a r =&gt; QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWheelEvent" >QWheelEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent a r =&gt; QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQKeyEvent" >QKeyEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent a r =&gt; QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMouseEvent" >QMouseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QInputEvent a r =&gt; QqCastList_QInputEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQInputEvent" >QInputEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox a r =&gt; QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox a r =&gt; QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox a r =&gt; QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox a r =&gt; QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox a r =&gt; QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractSpinBox a r =&gt; QqCastList_QAbstractSpinBox (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout a r =&gt; QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedLayout" >QStackedLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout a r =&gt; QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGridLayout" >QGridLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout a r =&gt; QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHBoxLayout" >QHBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout a r =&gt; QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQVBoxLayout" >QVBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout a r =&gt; QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBoxLayout" >QBoxLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayout a r =&gt; QqCastList_QLayout (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayout" >QLayout</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem a r =&gt; QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPolygonItem" >QGraphicsPolygonItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem a r =&gt; QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem a r =&gt; QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem a r =&gt; QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSimpleTextItem" >QGraphicsSimpleTextItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem a r =&gt; QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsEllipseItem" >QGraphicsEllipseItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractGraphicsShapeItem a r =&gt; QqCastList_QAbstractGraphicsShapeItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent a r =&gt; QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneWheelEvent" >QGraphicsSceneWheelEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent a r =&gt; QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneDragDropEvent" >QGraphicsSceneDragDropEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent a r =&gt; QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneMouseEvent" >QGraphicsSceneMouseEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent a r =&gt; QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneContextMenuEvent" >QGraphicsSceneContextMenuEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent a r =&gt; QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHoverEvent" >QGraphicsSceneHoverEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent a r =&gt; QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneHelpEvent" >QGraphicsSceneHelpEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsSceneEvent a r =&gt; QqCastList_QGraphicsSceneEvent (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSceneEvent" >QGraphicsSceneEvent</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat a r =&gt; QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextTableFormat" >QTextTableFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat a r =&gt; QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextListFormat" >QTextListFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat a r =&gt; QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBlockFormat" >QTextBlockFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat a r =&gt; QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextImageFormat" >QTextImageFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat a r =&gt; QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextCharFormat" >QTextCharFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat a r =&gt; QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFrameFormat" >QTextFrameFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QTextFormat a r =&gt; QqCastList_QTextFormat (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextFormat" >QTextFormat</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayoutItem a r =&gt; QqCastList_QLayoutItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpacerItem" >QSpacerItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QLayoutItem a r =&gt; QqCastList_QLayoutItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLayoutItem" >QLayoutItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSizeGrip" >QStyleOptionSizeGrip</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComboBox" >QStyleOptionComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSpinBox" >QStyleOptionSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGroupBox" >QStyleOptionGroupBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTitleBar" >QStyleOptionTitleBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSlider" >QStyleOptionSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolButton" >QStyleOptionToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOptionComplex a r =&gt; QqCastList_QStyleOptionComplex (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractItemView a r =&gt; QqCastList_QAbstractItemView (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPageSetupDialog" >QAbstractPageSetupDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QDialog a r =&gt; QqCastList_QDialog (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItemGroup" >QGraphicsItemGroup</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPixmapItem" >QGraphicsPixmapItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsLineItem" >QGraphicsLineItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPolygonItem" >QGraphicsPolygonItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsPathItem" >QGraphicsPathItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsRectItem" >QGraphicsRectItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsSimpleTextItem" >QGraphicsSimpleTextItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsEllipseItem" >QGraphicsEllipseItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractGraphicsShapeItem" >QAbstractGraphicsShapeItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QGraphicsItem a r =&gt; QqCastList_QGraphicsItem (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsItem" >QGraphicsItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QAbstractScrollArea a r =&gt; QqCastList_QAbstractScrollArea (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLCDNumber" >QLCDNumber</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBox" >QToolBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLabel" >QLabel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QFrame a r =&gt; QqCastList_QFrame (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV3" >QStyleOptionViewItemV3</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBoxV2" >QStyleOptionToolBoxV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabV2" >QStyleOptionTabV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBarV2" >QStyleOptionProgressBarV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrameV2" >QStyleOptionFrameV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidgetV2" >QStyleOptionDockWidgetV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSizeGrip" >QStyleOptionSizeGrip</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComboBox" >QStyleOptionComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSpinBox" >QStyleOptionSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGroupBox" >QStyleOptionGroupBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTitleBar" >QStyleOptionTitleBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionSlider" >QStyleOptionSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolButton" >QStyleOptionToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionButton" >QStyleOptionButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionMenuItem" >QStyleOptionMenuItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabWidgetFrame" >QStyleOptionTabWidgetFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFocusRect" >QStyleOptionFocusRect</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTabBarBase" >QStyleOptionTabBarBase</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionHeader" >QStyleOptionHeader</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBar" >QStyleOptionToolBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionGraphicsItem" >QStyleOptionGraphicsItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionRubberBand" >QStyleOptionRubberBand</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItemV2" >QStyleOptionViewItemV2</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionToolBox" >QStyleOptionToolBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionTab" >QStyleOptionTab</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionFrame" >QStyleOptionFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionDockWidget" >QStyleOptionDockWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionProgressBar" >QStyleOptionProgressBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionViewItem" >QStyleOptionViewItem</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOptionComplex" >QStyleOptionComplex</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QStyleOption a r =&gt; QqCastList_QStyleOption (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStyleOption" >QStyleOption</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBar" >QToolBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGroupBox" >QGroupBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabBar" >QTabBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStatusBar" >QStatusBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSizeGrip" >QSizeGrip</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDockWidget" >QDockWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenuBar" >QMenuBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRubberBand" >QRubberBand</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialogButtonBox" >QDialogButtonBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressBar" >QProgressBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTabWidget" >QTabWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplashScreen" >QSplashScreen</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFocusFrame" >QFocusFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMainWindow" >QMainWindow</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitterHandle" >QSplitterHandle</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDesktopWidget" >QDesktopWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLineEdit" >QLineEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCalendarWidget" >QCalendarWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMenu" >QMenu</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeWidget" >QTreeWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextBrowser" >QTextBrowser</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableWidget" >QTableWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQUndoView" >QUndoView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListWidget" >QListWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSplitter" >QSplitter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQStackedWidget" >QStackedWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLCDNumber" >QLCDNumber</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolBox" >QToolBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQLabel" >QLabel</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQProgressDialog" >QProgressDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontDialog" >QFontDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFileDialog" >QFileDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQErrorMessage" >QErrorMessage</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQMessageBox" >QMessageBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPageSetupDialog" >QAbstractPageSetupDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQColorDialog" >QColorDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateEdit" >QDateEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTimeEdit" >QTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFontComboBox" >QFontComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSpinBox" >QSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDoubleSpinBox" >QDoubleSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollBar" >QScrollBar</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDial" >QDial</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQSlider" >QSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQScrollArea" >QScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQGraphicsView" >QGraphicsView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrintDialog" >QPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQHeaderView" >QHeaderView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQToolButton" >QToolButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQCheckBox" >QCheckBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQRadioButton" >QRadioButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPushButton" >QPushButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQComboBox" >QComboBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractPrintDialog" >QAbstractPrintDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTextEdit" >QTextEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTableView" >QTableView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQTreeView" >QTreeView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDateTimeEdit" >QDateTimeEdit</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQListView" >QListView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSlider" >QAbstractSlider</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractButton" >QAbstractButton</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractSpinBox" >QAbstractSpinBox</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractItemView" >QAbstractItemView</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQDialog" >QDialog</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQAbstractScrollArea" >QAbstractScrollArea</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQFrame" >QFrame</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QWidget a r =&gt; QqCastList_QWidget (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQWidget" >QWidget</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice a r =&gt; QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQBitmap" >QBitmap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice a r =&gt; QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQImage" >QImage</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice a r =&gt; QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPrinter" >QPrinter</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice a r =&gt; QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPicture" >QPicture</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice a r =&gt; QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPixmap" >QPixmap</A > ()) (a -&gt; r)</TD ></TR ><TR ><TD CLASS="decl" >QqCastList_QPaintDevice a r =&gt; QqCastList_QPaintDevice (<A HREF="Qtc-ClassTypes-Gui.html#t%3AQPaintDevice" >QPaintDevice</A > ()) (a -&gt; r)</TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:objectNull" ><A NAME="v%3AobjectNull" ></A ></A ><B >objectNull</B > :: <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:objectIsNull" ><A NAME="v%3AobjectIsNull" ></A ></A ><B >objectIsNull</B > :: <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a -&gt; Bool</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:objectCast" ><A NAME="v%3AobjectCast" ></A ></A ><B >objectCast</B > :: <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a -&gt; <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:objectFromPtr" ><A NAME="v%3AobjectFromPtr" ></A ></A ><B >objectFromPtr</B > :: FunPtr (Ptr a -&gt; IO ()) -&gt; Ptr a -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:objectFromPtr_nf" ><A NAME="v%3AobjectFromPtr_nf" ></A ></A ><B >objectFromPtr_nf</B > :: Ptr a -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withObjectPtr" ><A NAME="v%3AwithObjectPtr" ></A ></A ><B >withObjectPtr</B > :: <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a -&gt; (Ptr a -&gt; IO b) -&gt; IO b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:ptrFromObject" ><A NAME="v%3AptrFromObject" ></A ></A ><B >ptrFromObject</B > :: <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a -&gt; Ptr a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:objectListFromPtrList" ><A NAME="v%3AobjectListFromPtrList" ></A ></A ><B >objectListFromPtrList</B > :: FunPtr (Ptr a -&gt; IO ()) -&gt; [Ptr a] -&gt; IO [<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:objectListFromPtrList_nf" ><A NAME="v%3AobjectListFromPtrList_nf" ></A ></A ><B >objectListFromPtrList_nf</B > :: [Ptr a] -&gt; IO [<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QVoid" ><A NAME="t%3AQVoid" ></A ></A ><B >QVoid</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQVoid" >CQVoid</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQVoid" ><A NAME="t%3ATQVoid" ></A ></A ><B >TQVoid</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQVoid" >CQVoid</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQVoid" ><A NAME="t%3ACQVoid" ></A ></A ><B >CQVoid</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQVoidResult" ><A NAME="v%3AwithQVoidResult" ></A ></A ><B >withQVoidResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQVoid" >TQVoid</A > a)) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AQVoid" >QVoid</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QMetaObject" ><A NAME="t%3AQMetaObject" ></A ></A ><B >QMetaObject</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQMetaObject" >CQMetaObject</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQMetaObject" ><A NAME="t%3ATQMetaObject" ></A ></A ><B >TQMetaObject</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQMetaObject" >CQMetaObject</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQMetaObject" ><A NAME="t%3ACQMetaObject" ></A ></A ><B >CQMetaObject</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQMetaObjectResult" ><A NAME="v%3AwithQMetaObjectResult" ></A ></A ><B >withQMetaObjectResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQMetaObject" >TQMetaObject</A > a)) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AQMetaObject" >QMetaObject</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QString" ><A NAME="t%3AQString" ></A ></A ><B >QString</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQString" >CQString</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQString" ><A NAME="t%3ATQString" ></A ></A ><B >TQString</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQString" >CQString</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQString" ><A NAME="t%3ACQString" ></A ></A ><B >CQString</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QByteArray" ><A NAME="t%3AQByteArray" ></A ></A ><B >QByteArray</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQByteArray" >CQByteArray</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQByteArray" ><A NAME="t%3ATQByteArray" ></A ></A ><B >TQByteArray</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQByteArray" >CQByteArray</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQByteArray" ><A NAME="t%3ACQByteArray" ></A ></A ><B >CQByteArray</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QResource" ><A NAME="t%3AQResource" ></A ></A ><B >QResource</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQResource" >CQResource</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQResource" ><A NAME="t%3ATQResource" ></A ></A ><B >TQResource</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQResource" >CQResource</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQResource" ><A NAME="t%3ACQResource" ></A ></A ><B >CQResource</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQResourceResult" ><A NAME="v%3AwithQResourceResult" ></A ></A ><B >withQResourceResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQResource" >TQResource</A > a)) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AQResource" >QResource</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QTransform" ><A NAME="t%3AQTransform" ></A ></A ><B >QTransform</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQTransform" >CQTransform</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQTransform" ><A NAME="t%3ATQTransform" ></A ></A ><B >TQTransform</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQTransform" >CQTransform</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQTransform" ><A NAME="t%3ACQTransform" ></A ></A ><B >CQTransform</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQTransformResult" ><A NAME="v%3AwithQTransformResult" ></A ></A ><B >withQTransformResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQTransform" >TQTransform</A > a)) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AQTransform" >QTransform</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:Element" ><A NAME="t%3AElement" ></A ></A ><B >Element</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACElement" >CElement</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TElement" ><A NAME="t%3ATElement" ></A ></A ><B >TElement</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACElement" >CElement</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CElement" ><A NAME="t%3ACElement" ></A ></A ><B >CElement</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withElementResult" ><A NAME="v%3AwithElementResult" ></A ></A ><B >withElementResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATElement" >TElement</A > a)) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AElement" >Element</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:PaintContext" ><A NAME="t%3APaintContext" ></A ></A ><B >PaintContext</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACPaintContext" >CPaintContext</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TPaintContext" ><A NAME="t%3ATPaintContext" ></A ></A ><B >TPaintContext</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACPaintContext" >CPaintContext</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CPaintContext" ><A NAME="t%3ACPaintContext" ></A ></A ><B >CPaintContext</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withPaintContextResult" ><A NAME="v%3AwithPaintContextResult" ></A ></A ><B >withPaintContextResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATPaintContext" >TPaintContext</A > a)) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3APaintContext" >PaintContext</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:ExtraSelection" ><A NAME="t%3AExtraSelection" ></A ></A ><B >ExtraSelection</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACExtraSelection" >CExtraSelection</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TExtraSelection" ><A NAME="t%3ATExtraSelection" ></A ></A ><B >TExtraSelection</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACExtraSelection" >CExtraSelection</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CExtraSelection" ><A NAME="t%3ACExtraSelection" ></A ></A ><B >CExtraSelection</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QTextInlineObject" ><A NAME="t%3AQTextInlineObject" ></A ></A ><B >QTextInlineObject</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQTextInlineObject" >CQTextInlineObject</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQTextInlineObject" ><A NAME="t%3ATQTextInlineObject" ></A ></A ><B >TQTextInlineObject</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQTextInlineObject" >CQTextInlineObject</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQTextInlineObject" ><A NAME="t%3ACQTextInlineObject" ></A ></A ><B >CQTextInlineObject</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QTextObjectInterface" ><A NAME="t%3AQTextObjectInterface" ></A ></A ><B >QTextObjectInterface</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQTextObjectInterface" >CQTextObjectInterface</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQTextObjectInterface" ><A NAME="t%3ATQTextObjectInterface" ></A ></A ><B >TQTextObjectInterface</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQTextObjectInterface" >CQTextObjectInterface</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQTextObjectInterface" ><A NAME="t%3ACQTextObjectInterface" ></A ></A ><B >CQTextObjectInterface</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:QImageTextKeyLang" ><A NAME="t%3AQImageTextKeyLang" ></A ></A ><B >QImageTextKeyLang</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQImageTextKeyLang" >CQImageTextKeyLang</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQImageTextKeyLang" ><A NAME="t%3ATQImageTextKeyLang" ></A ></A ><B >TQImageTextKeyLang</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQImageTextKeyLang" >CQImageTextKeyLang</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQImageTextKeyLang" ><A NAME="t%3ACQImageTextKeyLang" ></A ></A ><B >CQImageTextKeyLang</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:Q_IPV6ADDR" ><A NAME="t%3AQ_IPV6ADDR" ></A ></A ><B >Q_IPV6ADDR</B > a = <A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > (<A HREF="Qtc-Classes-Types.html#t%3ACQ_IPV6ADDR" >CQ_IPV6ADDR</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TQ_IPV6ADDR" ><A NAME="t%3ATQ_IPV6ADDR" ></A ></A ><B >TQ_IPV6ADDR</B > a = <A HREF="Qtc-Classes-Types.html#t%3ACQ_IPV6ADDR" >CQ_IPV6ADDR</A > a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:CQ_IPV6ADDR" ><A NAME="t%3ACQ_IPV6ADDR" ></A ></A ><B >CQ_IPV6ADDR</B > a </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQ_IPV6ADDRResult" ><A NAME="v%3AwithQ_IPV6ADDRResult" ></A ></A ><B >withQ_IPV6ADDRResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQ_IPV6ADDR" >TQ_IPV6ADDR</A > a)) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AQ_IPV6ADDR" >Q_IPV6ADDR</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withObjectResult" ><A NAME="v%3AwithObjectResult" ></A ></A ><B >withObjectResult</B > :: FunPtr (Ptr a -&gt; IO ()) -&gt; IO (Ptr a) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withObjectRefResult" ><A NAME="v%3AwithObjectRefResult" ></A ></A ><B >withObjectRefResult</B > :: IO (Ptr a) -&gt; IO (<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:intFromBool" ><A NAME="v%3AintFromBool" ></A ></A ><B >intFromBool</B > :: Bool -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:boolFromInt" ><A NAME="v%3AboolFromInt" ></A ></A ><B >boolFromInt</B > :: Int -&gt; Bool</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListObject" ><A NAME="v%3AwithQListObject" ></A ></A ><B >withQListObject</B > :: [<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a] -&gt; (CInt -&gt; Ptr (Ptr a) -&gt; IO b) -&gt; IO b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withPtrPtrObject" ><A NAME="v%3AwithPtrPtrObject" ></A ></A ><B >withPtrPtrObject</B > :: [<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > ()] -&gt; (CInt -&gt; Ptr (Ptr ()) -&gt; IO a) -&gt; IO a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListString" ><A NAME="v%3AwithQListString" ></A ></A ><B >withQListString</B > :: [String] -&gt; (CInt -&gt; Ptr CWString -&gt; IO a) -&gt; IO a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListObjectResult" ><A NAME="v%3AwithQListObjectResult" ></A ></A ><B >withQListObjectResult</B > :: FunPtr (Ptr a -&gt; IO ()) -&gt; (Ptr (Ptr a) -&gt; IO CInt) -&gt; IO [<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListObjectRefResult" ><A NAME="v%3AwithQListObjectRefResult" ></A ></A ><B >withQListObjectRefResult</B > :: (Ptr (Ptr a) -&gt; IO CInt) -&gt; IO [<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > a]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withPtrPtrObjectResult" ><A NAME="v%3AwithPtrPtrObjectResult" ></A ></A ><B >withPtrPtrObjectResult</B > :: (Ptr (Ptr ()) -&gt; IO CInt) -&gt; IO [<A HREF="Qtc-Classes-Types.html#t%3AObject" >Object</A > ()]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListStringResult" ><A NAME="v%3AwithQListStringResult" ></A ></A ><B >withQListStringResult</B > :: (Ptr (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQString" >TQString</A > a)) -&gt; IO CInt) -&gt; IO [String]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListDouble" ><A NAME="v%3AwithQListDouble" ></A ></A ><B >withQListDouble</B > :: [Double] -&gt; (CInt -&gt; Ptr CDouble -&gt; IO b) -&gt; IO b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListDoubleResult" ><A NAME="v%3AwithQListDoubleResult" ></A ></A ><B >withQListDoubleResult</B > :: (Ptr CDouble -&gt; IO CInt) -&gt; IO [Double]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListIntResult" ><A NAME="v%3AwithQListIntResult" ></A ></A ><B >withQListIntResult</B > :: (Ptr CInt -&gt; IO CInt) -&gt; IO [Int]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withQListLongResult" ><A NAME="v%3AwithQListLongResult" ></A ></A ><B >withQListLongResult</B > :: (Ptr CLong -&gt; IO CInt) -&gt; IO [Int]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CString</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >withCString</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withStringResult" ><A NAME="v%3AwithStringResult" ></A ></A ><B >withStringResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQString" >TQString</A > a)) -&gt; IO String</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withCStringResult" ><A NAME="v%3AwithCStringResult" ></A ></A ><B >withCStringResult</B > :: IO (Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQByteArray" >TQByteArray</A > a)) -&gt; IO String</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:stringFromPtr" ><A NAME="v%3AstringFromPtr" ></A ></A ><B >stringFromPtr</B > :: Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQString" >TQString</A > a) -&gt; IO String</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:cstringFromPtr" ><A NAME="v%3AcstringFromPtr" ></A ></A ><B >cstringFromPtr</B > :: Ptr (<A HREF="Qtc-Classes-Types.html#t%3ATQByteArray" >TQByteArray</A > a) -&gt; IO String</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >newCWString</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CWString</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >withCWString</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CDouble</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCDouble" ><A NAME="v%3AtoCDouble" ></A ></A ><B >toCDouble</B > :: Double -&gt; CDouble</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCDouble" ><A NAME="v%3AfromCDouble" ></A ></A ><B >fromCDouble</B > :: CDouble -&gt; Double</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withDoubleResult" ><A NAME="v%3AwithDoubleResult" ></A ></A ><B >withDoubleResult</B > :: IO CDouble -&gt; IO Double</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CInt</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCInt" ><A NAME="v%3AtoCInt" ></A ></A ><B >toCInt</B > :: Int -&gt; CInt</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCInt" ><A NAME="v%3AfromCInt" ></A ></A ><B >fromCInt</B > :: CInt -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withIntResult" ><A NAME="v%3AwithIntResult" ></A ></A ><B >withIntResult</B > :: IO CInt -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CUInt</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCUInt" ><A NAME="v%3AtoCUInt" ></A ></A ><B >toCUInt</B > :: Int -&gt; CUInt</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCUInt" ><A NAME="v%3AfromCUInt" ></A ></A ><B >fromCUInt</B > :: CUInt -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withUnsignedIntResult" ><A NAME="v%3AwithUnsignedIntResult" ></A ></A ><B >withUnsignedIntResult</B > :: IO CUInt -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CShort</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCShort" ><A NAME="v%3AtoCShort" ></A ></A ><B >toCShort</B > :: Int -&gt; CShort</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCShort" ><A NAME="v%3AfromCShort" ></A ></A ><B >fromCShort</B > :: CShort -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withShortResult" ><A NAME="v%3AwithShortResult" ></A ></A ><B >withShortResult</B > :: IO CShort -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CUShort</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCUShort" ><A NAME="v%3AtoCUShort" ></A ></A ><B >toCUShort</B > :: Int -&gt; CUShort</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCUShort" ><A NAME="v%3AfromCUShort" ></A ></A ><B >fromCUShort</B > :: CUShort -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withUnsignedShortResult" ><A NAME="v%3AwithUnsignedShortResult" ></A ></A ><B >withUnsignedShortResult</B > :: IO CUShort -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CLong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCLong" ><A NAME="v%3AtoCLong" ></A ></A ><B >toCLong</B > :: Int -&gt; CLong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCLong" ><A NAME="v%3AfromCLong" ></A ></A ><B >fromCLong</B > :: CLong -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withLongResult" ><A NAME="v%3AwithLongResult" ></A ></A ><B >withLongResult</B > :: IO CLong -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CULong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCULong" ><A NAME="v%3AtoCULong" ></A ></A ><B >toCULong</B > :: Int -&gt; CULong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCULong" ><A NAME="v%3AfromCULong" ></A ></A ><B >fromCULong</B > :: CULong -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withUnsignedLongResult" ><A NAME="v%3AwithUnsignedLongResult" ></A ></A ><B >withUnsignedLongResult</B > :: IO CULong -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CLLong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCLLong" ><A NAME="v%3AtoCLLong" ></A ></A ><B >toCLLong</B > :: Int -&gt; CLLong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCLLong" ><A NAME="v%3AfromCLLong" ></A ></A ><B >fromCLLong</B > :: CLLong -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withLongLongResult" ><A NAME="v%3AwithLongLongResult" ></A ></A ><B >withLongLongResult</B > :: IO CLLong -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CULLong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCULLong" ><A NAME="v%3AtoCULLong" ></A ></A ><B >toCULLong</B > :: Int -&gt; CULLong</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCULLong" ><A NAME="v%3AfromCULLong" ></A ></A ><B >fromCULLong</B > :: CULLong -&gt; Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withUnsignedLongLongResult" ><A NAME="v%3AwithUnsignedLongLongResult" ></A ></A ><B >withUnsignedLongLongResult</B > :: IO CULLong -&gt; IO Int</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CChar</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCChar" ><A NAME="v%3AtoCChar" ></A ></A ><B >toCChar</B > :: Char -&gt; CChar</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCChar" ><A NAME="v%3AfromCChar" ></A ></A ><B >fromCChar</B > :: CChar -&gt; Char</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withCharResult" ><A NAME="v%3AwithCharResult" ></A ></A ><B >withCharResult</B > :: (Num a, Integral a) =&gt; IO a -&gt; IO Char</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >CWchar</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCWchar" ><A NAME="v%3AtoCWchar" ></A ></A ><B >toCWchar</B > :: Num a =&gt; Char -&gt; a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:CBool" ><A NAME="t%3ACBool" ></A ></A ><B >CBool</B > = CInt</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCBool" ><A NAME="v%3AtoCBool" ></A ></A ><B >toCBool</B > :: Bool -&gt; <A HREF="Qtc-Classes-Types.html#t%3ACBool" >CBool</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fromCBool" ><A NAME="v%3AfromCBool" ></A ></A ><B >fromCBool</B > :: <A HREF="Qtc-Classes-Types.html#t%3ACBool" >CBool</A > -&gt; Bool</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:withBoolResult" ><A NAME="v%3AwithBoolResult" ></A ></A ><B >withBoolResult</B > :: IO <A HREF="Qtc-Classes-Types.html#t%3ACBool" >CBool</A > -&gt; IO Bool</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >Ptr</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >nullPtr</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:ptrNull" ><A NAME="v%3AptrNull" ></A ></A ><B >ptrNull</B > :: Ptr a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:ptrIsNull" ><A NAME="v%3AptrIsNull" ></A ></A ><B >ptrIsNull</B > :: Ptr a -&gt; Bool</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:ptrCast" ><A NAME="v%3AptrCast" ></A ></A ><B >ptrCast</B > :: Ptr a -&gt; Ptr b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >ForeignPtr</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fptrNull" ><A NAME="v%3AfptrNull" ></A ></A ><B >fptrNull</B > :: IO (ForeignPtr a)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fptrIsNull" ><A NAME="v%3AfptrIsNull" ></A ></A ><B >fptrIsNull</B > :: ForeignPtr a -&gt; Bool</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:fptrCast" ><A NAME="v%3AfptrCast" ></A ></A ><B >fptrCast</B > :: ForeignPtr a -&gt; ForeignPtr b</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >FunPtr</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:toCFunPtr" ><A NAME="v%3AtoCFunPtr" ></A ></A ><B >toCFunPtr</B > :: FunPtr a -&gt; Ptr a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >freeHaskellFunPtr</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >castPtrToFunPtr</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" >addForeignPtrFinalizer</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http://www.haskell.org/haddock/" >Haddock</A > version 2.4.2</TD ></TR ></TABLE ></BODY ></HTML >
keera-studios/hsQt
doc/apiGuide/Qtc-Classes-Types.html
HTML
bsd-2-clause
253,925
using System; using System.Collections.Generic; namespace NMaier.SimpleDlna.Utilities { public abstract class Repository<TInterface> where TInterface : class, IRepositoryItem { private static readonly Dictionary<string, TInterface> items = BuildRepository(); private static Dictionary<string, TInterface> BuildRepository() { var items = new Dictionary<string, TInterface>(); var type = typeof(TInterface).Name; var a = typeof(TInterface).Assembly; foreach (Type t in a.GetTypes()) { if (t.GetInterface(type) == null) { continue; } var ctor = t.GetConstructor(new Type[] { }); if (ctor == null) { continue; } try { var item = ctor.Invoke(new object[] { }) as TInterface; if (item == null) { continue; } items.Add(item.Name.ToUpperInvariant(), item); } catch (Exception) { continue; } } return items; } public static IDictionary<string, IRepositoryItem> ListItems() { var rv = new Dictionary<string, IRepositoryItem>(); foreach (var v in items.Values) { rv.Add(v.Name, v); } return rv; } public static TInterface Lookup(string name) { if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentException( "Invalid repository name", "name"); } var n_p = name.Split(new char[] { ':' }, 2); name = n_p[0].ToUpperInvariant().Trim(); var result = (TInterface)null; if (!items.TryGetValue(name, out result)) { throw new RepositoryLookupException(name); } if (n_p.Length == 1) { return result; } var ctor = result.GetType().GetConstructor(new Type[] { }); if (ctor == null) { throw new RepositoryLookupException(name); } var parameters = new AttributeCollection(); foreach (var p in n_p[1].Split(',')) { var k_v = p.Split(new char[] { '=' }, 2); if (k_v.Length == 2) { parameters.Add(k_v[0], k_v[1]); } else { parameters.Add(k_v[0], null); } } try { var item = ctor.Invoke(new object[] { }) as TInterface; if (item == null) { throw new RepositoryLookupException(name); } item.SetParameters(parameters); return item; } catch (Exception ex) { throw new RepositoryLookupException(string.Format( "Cannot construct repository item: {0}", ex.Message), ex); } } } }
antonio-bakula/simpleDLNA
util/Repository.cs
C#
bsd-2-clause
2,638
// Package tag. package tag println("tag27")
ckxng/wakeup
tag/tag27.go
GO
bsd-2-clause
46
namespace XenAdmin.Dialogs { partial class AboutDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutDialog)); this.label2 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.VersionLabel = new System.Windows.Forms.Label(); this.OkButton = new System.Windows.Forms.Button(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.tableLayoutPanel1.SuspendLayout(); this.SuspendLayout(); // // label2 // resources.ApplyResources(this.label2, "label2"); this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Name = "label2"; // // pictureBox1 // resources.ApplyResources(this.pictureBox1, "pictureBox1"); this.pictureBox1.Image = global::XenAdmin.Properties.Resources.about_box_graphic_423x79; this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.TabStop = false; // // VersionLabel // resources.ApplyResources(this.VersionLabel, "VersionLabel"); this.VersionLabel.BackColor = System.Drawing.Color.Transparent; this.VersionLabel.Name = "VersionLabel"; // // OkButton // resources.ApplyResources(this.OkButton, "OkButton"); this.OkButton.BackColor = System.Drawing.SystemColors.Control; this.OkButton.DialogResult = System.Windows.Forms.DialogResult.OK; this.OkButton.Name = "OkButton"; this.OkButton.UseVisualStyleBackColor = true; this.OkButton.Click += new System.EventHandler(this.OkButton_Click); // // linkLabel1 // resources.ApplyResources(this.linkLabel1, "linkLabel1"); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.TabStop = true; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // tableLayoutPanel1 // resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1"); this.tableLayoutPanel1.Controls.Add(this.VersionLabel, 0, 0); this.tableLayoutPanel1.Controls.Add(this.OkButton, 0, 4); this.tableLayoutPanel1.Controls.Add(this.linkLabel1, 0, 3); this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; // // AboutDialog // this.AcceptButton = this.OkButton; resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.Color.White; this.CancelButton = this.OkButton; this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.pictureBox1); this.HelpButton = false; this.Name = "AboutDialog"; ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label label2; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Label VersionLabel; private System.Windows.Forms.Button OkButton; private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; } }
agimofcarmen/xenadmin
XenAdmin/Dialogs/AboutDialog.Designer.cs
C#
bsd-2-clause
5,068